/*!examples/mod.js*/
/** @license amis v6.4.1
*
* Copyright Baidu
*
* This source code is licensed under the Apache license found in the
* LICENSE file in the root directory of this source tree.
*/
!(function (n) {
var e,
t,
a = window.amis || {}
if (!a.require) {
var r = document.getElementsByTagName('head')[0],
i = {},
o = {},
s = {},
c = {},
u = {},
l = {},
f = function (n, t, a) {
for (var o = [], s = 0, f = n.length; s < f; s++) {
var p = n[s]
;(i[p] || (i[p] = [])).push(t)
var d,
h = u[p] || u[p + '.js'] || {},
v = h.pkg
;(d = v ? l[v].url || l[v].uri : h.url || h.uri || p), o.push({ id: p, url: d })
}
!(function (n, t) {
for (var a = document.createDocumentFragment(), i = 0, o = n.length; i < o; i++) {
var s = n[i].id,
u = n[i].url
if (!(u in c)) {
c[u] = !0
var l = document.createElement('script')
t &&
(function (n, a) {
var r = setTimeout(function () {
t(a)
}, e.timeout)
n.onerror = function () {
clearTimeout(r), t(a)
}
var i = function () {
clearTimeout(r)
}
'onload' in n
? (n.onload = i)
: (n.onreadystatechange = function () {
;('loaded' !== this.readyState && 'complete' !== this.readyState) || i()
})
})(l, s),
(l.type = 'text/javascript'),
(l.src = u),
a.appendChild(l)
}
}
r.appendChild(a)
})(o, a)
},
p = function (n) {
var e = i[n]
if (e) {
for (var t = 0, a = e.length; t < a; t++) e[t]()
delete i[n]
}
}
;(t = function (n, t) {
if (((n = n.replace(/\.js$/i, '')), (o[n] = t), ~t.toString().indexOf('__mod__async__load'))) {
var a = { exports: {} }
;(o[n] = { deffer: !0, callbacks: [], loaded: !1, load: function () {} }), t.apply(a, [e, a.exports, a])
var r = a.exports.__mod__async__load
;(o[n].load = function () {
this.loaded ||
((this.loaded = !0),
r(function (e) {
var t = o[n].callbacks
;(o[n] = function () {
return e
}),
t.forEach(function (n) {
n()
}),
p(n)
}))
}),
i[n] && i[n].length && o[n].load()
} else p(n)
}),
(e = function (n) {
if (n && n.splice) return e.async.apply(this, arguments)
n = e.alias(n)
var t = s[n]
if (t) return t.exports
var a = o[n]
if (!a) throw '[ModJS] Cannot find module `' + n + '`'
t = s[n] = { exports: {} }
var r = 'function' == typeof a ? a.apply(t, [e, t.exports, t]) : a
return r && (t.exports = r), t.exports
}),
(e.async = function (t, a, r) {
'string' == typeof t && (t = [t])
var i = {},
s = 0,
c = []
function l() {
if (0 == s--) {
for (var r = [], i = 0, o = t.length; i < o; i++) r[i] = e(t[i])
a && a.apply(n, r)
}
}
!(function n(t) {
for (var a, r = 0, f = t.length; r < f; r++) {
var p = e.alias(t[r])
p in i ||
((i[p] = !0),
p in o
? (o[p] && o[p].deffer && (s++, o[p].callbacks.push(l), o[p].load()), (a = u[p] || u[p + '.js']) && 'deps' in a && n(a.deps))
: (c.push(p), s++, (a = u[p] || u[p + '.js']) && 'deps' in a && n(a.deps)))
}
})(t),
f(c, l, r),
l()
}),
(e.ensure = function (n, t) {
e.async(n, function () {
t && t.call(this, e)
})
}),
(e.resourceMap = function (n) {
var e, t
for (e in (t = n.res)) t.hasOwnProperty(e) && (u[e] = t[e])
for (e in (t = n.pkg)) t.hasOwnProperty(e) && (l[e] = t[e])
}),
(e.loadJs = function (n) {
if (!(n in c)) {
c[n] = !0
var e = document.createElement('script')
return (e.type = 'text/javascript'), (e.src = n), r.appendChild(e), e
}
}),
(e.aliasMapping = {}),
(e.alias = function (n) {
return (n = e.aliasMapping[n] || n).replace(/\.js$/i, '')
}),
(e.exists = function (n) {
return (n = e.alias(n)), !!s[n]
}),
(e.timeout = 5e3),
(a.require = e),
(a.define = t),
(window.amis = a)
}
})(this) /*!node_modules/tslib/tslib.js*/
amis.define('68b98b9', function (e, t, r, n) {
var o, i, a, c, u, f, s, l, p, y, d, b, h, v, w, _, m, g, j, O, P, S, E, x, T, I, k, D, R, A, C
!(function (e) {
var t = 'object' == typeof global ? global : 'object' == typeof self ? self : 'object' == typeof this ? this : {}
function o(e, r) {
return (
e !== t && ('function' == typeof Object.create ? Object.defineProperty(e, '__esModule', { value: !0 }) : (e.__esModule = !0)),
function (t, n) {
return (e[t] = r ? r(t, n) : n)
}
)
}
'function' == typeof n && n.amd
? n('tslib', ['exports'], function (r) {
e(o(t, o(r)))
})
: 'object' == typeof r && 'object' == typeof r.exports
? e(o(t, o(r.exports)))
: e(o(t))
})(function (e) {
var t =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t
}) ||
function (e, t) {
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r])
}
;(o = function (e, r) {
if ('function' != typeof r && null !== r) throw new TypeError('Class extends value ' + String(r) + ' is not a constructor or null')
function n() {
this.constructor = e
}
t(e, r), (e.prototype = null === r ? Object.create(r) : ((n.prototype = r.prototype), new n()))
}),
(i =
Object.assign ||
function (e) {
for (var t, r = 1, n = arguments.length; r < n; r++) for (var o in (t = arguments[r])) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o])
return e
}),
(a = function (e, t) {
var r = {}
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n])
if (null != e && 'function' == typeof Object.getOwnPropertySymbols) {
var o = 0
for (n = Object.getOwnPropertySymbols(e); o < n.length; o++) t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]])
}
return r
}),
(c = function (e, t, r, n) {
var o,
i = arguments.length,
a = i < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, r)) : n
if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) a = Reflect.decorate(e, t, r, n)
else for (var c = e.length - 1; c >= 0; c--) (o = e[c]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, r, a) : o(t, r)) || a)
return i > 3 && a && Object.defineProperty(t, r, a), a
}),
(u = function (e, t) {
return function (r, n) {
t(r, n, e)
}
}),
(f = function (e, t, r, n, o, i) {
function a(e) {
if (void 0 !== e && 'function' != typeof e) throw new TypeError('Function expected')
return e
}
for (
var c,
u = n.kind,
f = 'getter' === u ? 'get' : 'setter' === u ? 'set' : 'value',
s = !t && e ? (n.static ? e : e.prototype) : null,
l = t || (s ? Object.getOwnPropertyDescriptor(s, n.name) : {}),
p = !1,
y = r.length - 1;
y >= 0;
y--
) {
var d = {}
for (var b in n) d[b] = 'access' === b ? {} : n[b]
for (var b in n.access) d.access[b] = n.access[b]
d.addInitializer = function (e) {
if (p) throw new TypeError('Cannot add initializers after decoration has completed')
i.push(a(e || null))
}
var h = (0, r[y])('accessor' === u ? { get: l.get, set: l.set } : l[f], d)
if ('accessor' === u) {
if (void 0 === h) continue
if (null === h || 'object' != typeof h) throw new TypeError('Object expected')
;(c = a(h.get)) && (l.get = c), (c = a(h.set)) && (l.set = c), (c = a(h.init)) && o.unshift(c)
} else (c = a(h)) && ('field' === u ? o.unshift(c) : (l[f] = c))
}
s && Object.defineProperty(s, n.name, l), (p = !0)
}),
(s = function (e, t, r) {
for (var n = arguments.length > 2, o = 0; o < t.length; o++) r = n ? t[o].call(e, r) : t[o].call(e)
return n ? r : void 0
}),
(l = function (e) {
return 'symbol' == typeof e ? e : ''.concat(e)
}),
(p = function (e, t, r) {
return 'symbol' == typeof t && (t = t.description ? '['.concat(t.description, ']') : ''), Object.defineProperty(e, 'name', { configurable: !0, value: r ? ''.concat(r, ' ', t) : t })
}),
(y = function (e, t) {
if ('object' == typeof Reflect && 'function' == typeof Reflect.metadata) return Reflect.metadata(e, t)
}),
(d = function (e, t, r, n) {
return new (r || (r = Promise))(function (o, i) {
function a(e) {
try {
u(n.next(e))
} catch (e) {
i(e)
}
}
function c(e) {
try {
u(n.throw(e))
} catch (e) {
i(e)
}
}
function u(e) {
var t
e.done
? o(e.value)
: ((t = e.value),
t instanceof r
? t
: new r(function (e) {
e(t)
})).then(a, c)
}
u((n = n.apply(e, t || [])).next())
})
}),
(b = function (e, t) {
var r,
n,
o,
i,
a = {
label: 0,
sent: function () {
if (1 & o[0]) throw o[1]
return o[1]
},
trys: [],
ops: []
}
return (
(i = { next: c(0), throw: c(1), return: c(2) }),
'function' == typeof Symbol &&
(i[Symbol.iterator] = function () {
return this
}),
i
)
function c(c) {
return function (u) {
return (function (c) {
if (r) throw new TypeError('Generator is already executing.')
for (; i && ((i = 0), c[0] && (a = 0)), a; )
try {
if (((r = 1), n && (o = 2 & c[0] ? n.return : c[0] ? n.throw || ((o = n.return) && o.call(n), 0) : n.next) && !(o = o.call(n, c[1])).done)) return o
switch (((n = 0), o && (c = [2 & c[0], o.value]), c[0])) {
case 0:
case 1:
o = c
break
case 4:
return a.label++, { value: c[1], done: !1 }
case 5:
a.label++, (n = c[1]), (c = [0])
continue
case 7:
;(c = a.ops.pop()), a.trys.pop()
continue
default:
if (!((o = a.trys), (o = o.length > 0 && o[o.length - 1]) || (6 !== c[0] && 2 !== c[0]))) {
a = 0
continue
}
if (3 === c[0] && (!o || (c[1] > o[0] && c[1] < o[3]))) {
a.label = c[1]
break
}
if (6 === c[0] && a.label < o[1]) {
;(a.label = o[1]), (o = c)
break
}
if (o && a.label < o[2]) {
;(a.label = o[2]), a.ops.push(c)
break
}
o[2] && a.ops.pop(), a.trys.pop()
continue
}
c = t.call(e, a)
} catch (e) {
;(c = [6, e]), (n = 0)
} finally {
r = o = 0
}
if (5 & c[0]) throw c[1]
return { value: c[0] ? c[1] : void 0, done: !0 }
})([c, u])
}
}
}),
(h = function (e, t) {
for (var r in e) 'default' === r || Object.prototype.hasOwnProperty.call(t, r) || R(t, e, r)
}),
(R = Object.create
? function (e, t, r, n) {
void 0 === n && (n = r)
var o = Object.getOwnPropertyDescriptor(t, r)
;(o && !('get' in o ? !t.__esModule : o.writable || o.configurable)) ||
(o = {
enumerable: !0,
get: function () {
return t[r]
}
}),
Object.defineProperty(e, n, o)
}
: function (e, t, r, n) {
void 0 === n && (n = r), (e[n] = t[r])
}),
(v = function (e) {
var t = 'function' == typeof Symbol && Symbol.iterator,
r = t && e[t],
n = 0
if (r) return r.call(e)
if (e && 'number' == typeof e.length)
return {
next: function () {
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e }
}
}
throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.')
}),
(w = function (e, t) {
var r = 'function' == typeof Symbol && e[Symbol.iterator]
if (!r) return e
var n,
o,
i = r.call(e),
a = []
try {
for (; (void 0 === t || t-- > 0) && !(n = i.next()).done; ) a.push(n.value)
} catch (e) {
o = { error: e }
} finally {
try {
n && !n.done && (r = i.return) && r.call(i)
} finally {
if (o) throw o.error
}
}
return a
}),
(_ = function () {
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(w(arguments[t]))
return e
}),
(m = function () {
for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length
var n = Array(e),
o = 0
for (t = 0; t < r; t++) for (var i = arguments[t], a = 0, c = i.length; a < c; a++, o++) n[o] = i[a]
return n
}),
(g = function (e, t, r) {
if (r || 2 === arguments.length) for (var n, o = 0, i = t.length; o < i; o++) (!n && o in t) || (n || (n = Array.prototype.slice.call(t, 0, o)), (n[o] = t[o]))
return e.concat(n || Array.prototype.slice.call(t))
}),
(j = function (e) {
return this instanceof j ? ((this.v = e), this) : new j(e)
}),
(O = function (e, t, r) {
if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.')
var n,
o = r.apply(e, t || []),
i = []
return (
(n = {}),
a('next'),
a('throw'),
a('return'),
(n[Symbol.asyncIterator] = function () {
return this
}),
n
)
function a(e) {
o[e] &&
(n[e] = function (t) {
return new Promise(function (r, n) {
i.push([e, t, r, n]) > 1 || c(e, t)
})
})
}
function c(e, t) {
try {
;(r = o[e](t)).value instanceof j ? Promise.resolve(r.value.v).then(u, f) : s(i[0][2], r)
} catch (e) {
s(i[0][3], e)
}
var r
}
function u(e) {
c('next', e)
}
function f(e) {
c('throw', e)
}
function s(e, t) {
e(t), i.shift(), i.length && c(i[0][0], i[0][1])
}
}),
(P = function (e) {
var t, r
return (
(t = {}),
n('next'),
n('throw', function (e) {
throw e
}),
n('return'),
(t[Symbol.iterator] = function () {
return this
}),
t
)
function n(n, o) {
t[n] = e[n]
? function (t) {
return (r = !r) ? { value: j(e[n](t)), done: !1 } : o ? o(t) : t
}
: o
}
}),
(S = function (e) {
if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.')
var t,
r = e[Symbol.asyncIterator]
return r
? r.call(e)
: ((e = v(e)),
(t = {}),
n('next'),
n('throw'),
n('return'),
(t[Symbol.asyncIterator] = function () {
return this
}),
t)
function n(r) {
t[r] =
e[r] &&
function (t) {
return new Promise(function (n, o) {
;(function (e, t, r, n) {
Promise.resolve(n).then(function (t) {
e({ value: t, done: r })
}, t)
})(n, o, (t = e[r](t)).done, t.value)
})
}
}
}),
(E = function (e, t) {
return Object.defineProperty ? Object.defineProperty(e, 'raw', { value: t }) : (e.raw = t), e
})
var r = Object.create
? function (e, t) {
Object.defineProperty(e, 'default', { enumerable: !0, value: t })
}
: function (e, t) {
e.default = t
}
;(x = function (e) {
if (e && e.__esModule) return e
var t = {}
if (null != e) for (var n in e) 'default' !== n && Object.prototype.hasOwnProperty.call(e, n) && R(t, e, n)
return r(t, e), t
}),
(T = function (e) {
return e && e.__esModule ? e : { default: e }
}),
(I = function (e, t, r, n) {
if ('a' === r && !n) throw new TypeError('Private accessor was defined without a getter')
if ('function' == typeof t ? e !== t || !n : !t.has(e)) throw new TypeError('Cannot read private member from an object whose class did not declare it')
return 'm' === r ? n : 'a' === r ? n.call(e) : n ? n.value : t.get(e)
}),
(k = function (e, t, r, n, o) {
if ('m' === n) throw new TypeError('Private method is not writable')
if ('a' === n && !o) throw new TypeError('Private accessor was defined without a setter')
if ('function' == typeof t ? e !== t || !o : !t.has(e)) throw new TypeError('Cannot write private member to an object whose class did not declare it')
return 'a' === n ? o.call(e, r) : o ? (o.value = r) : t.set(e, r), r
}),
(D = function (e, t) {
if (null === t || ('object' != typeof t && 'function' != typeof t)) throw new TypeError("Cannot use 'in' operator on non-object")
return 'function' == typeof e ? t === e : e.has(t)
}),
(A = function (e, t, r) {
if (null != t) {
if ('object' != typeof t && 'function' != typeof t) throw new TypeError('Object expected.')
var n
if (r) {
if (!Symbol.asyncDispose) throw new TypeError('Symbol.asyncDispose is not defined.')
n = t[Symbol.asyncDispose]
}
if (void 0 === n) {
if (!Symbol.dispose) throw new TypeError('Symbol.dispose is not defined.')
n = t[Symbol.dispose]
}
if ('function' != typeof n) throw new TypeError('Object not disposable.')
e.stack.push({ value: t, dispose: n, async: r })
} else r && e.stack.push({ async: !0 })
return t
})
var n =
'function' == typeof SuppressedError
? SuppressedError
: function (e, t, r) {
var n = new Error(r)
return (n.name = 'SuppressedError'), (n.error = e), (n.suppressed = t), n
}
;(C = function (e) {
function t(t) {
;(e.error = e.hasError ? new n(t, e.error, 'An error was suppressed during disposal.') : t), (e.hasError = !0)
}
return (function r() {
for (; e.stack.length; ) {
var n = e.stack.pop()
try {
var o = n.dispose && n.dispose.call(n.value)
if (n.async)
return Promise.resolve(o).then(r, function (e) {
return t(e), r()
})
} catch (e) {
t(e)
}
}
if (e.hasError) throw e.error
})()
}),
e('__extends', o),
e('__assign', i),
e('__rest', a),
e('__decorate', c),
e('__param', u),
e('__esDecorate', f),
e('__runInitializers', s),
e('__propKey', l),
e('__setFunctionName', p),
e('__metadata', y),
e('__awaiter', d),
e('__generator', b),
e('__exportStar', h),
e('__createBinding', R),
e('__values', v),
e('__read', w),
e('__spread', _),
e('__spreadArrays', m),
e('__spreadArray', g),
e('__await', j),
e('__asyncGenerator', O),
e('__asyncDelegator', P),
e('__asyncValues', S),
e('__makeTemplateObject', E),
e('__importStar', x),
e('__importDefault', T),
e('__classPrivateFieldGet', I),
e('__classPrivateFieldSet', k),
e('__classPrivateFieldIn', D),
e('__addDisposableResource', A),
e('__disposeResources', C)
})
}) /*!node_modules/core-js/internals/global.js*/
amis.define('a75038c', function (t, o, e, i) {
'use strict'
var n = function (t) {
return t && t.Math === Math && t
}
e.exports =
n('object' == typeof globalThis && globalThis) ||
n('object' == typeof window && window) ||
n('object' == typeof self && self) ||
n('object' == typeof global && global) ||
n('object' == typeof this && this) ||
(function () {
return this
})() ||
Function('return this')()
}) /*!node_modules/core-js/internals/fails.js*/
amis.define('59e4f2d', function (t, e, n, r) {
'use strict'
n.exports = function (t) {
try {
return !!t()
} catch (t) {
return !0
}
}
}) /*!node_modules/core-js/internals/descriptors.js*/
amis.define('3ac3ae6', function (e, t, n, r) {
'use strict'
var i = e('59e4f2d')
n.exports = !i(function () {
return (
7 !==
Object.defineProperty({}, 1, {
get: function () {
return 7
}
})[1]
)
})
}) /*!node_modules/core-js/internals/function-bind-native.js*/
amis.define('d2ca7d5', function (n, t, e, o) {
'use strict'
var r = n('59e4f2d')
e.exports = !r(function () {
var n = function () {}.bind()
return 'function' != typeof n || n.hasOwnProperty('prototype')
})
}) /*!node_modules/core-js/internals/function-call.js*/
amis.define('4d44ef6', function (n, t, e, i) {
'use strict'
var c = n('d2ca7d5'),
o = Function.prototype.call
e.exports = c
? o.bind(o)
: function () {
return o.apply(o, arguments)
}
}) /*!node_modules/core-js/internals/object-property-is-enumerable.js*/
amis.define('7d0001a', function (e, r, t, n) {
'use strict'
var a = {}.propertyIsEnumerable,
i = Object.getOwnPropertyDescriptor,
c = i && !a.call({ 1: 2 }, 1)
r.f = c
? function (e) {
var r = i(this, e)
return !!r && r.enumerable
}
: a
}) /*!node_modules/core-js/internals/create-property-descriptor.js*/
amis.define('7130212', function (e, n, i, r) {
'use strict'
i.exports = function (e, n) {
return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: n }
}
}) /*!node_modules/core-js/internals/function-uncurry-this.js*/
amis.define('ba83a07', function (n, t, i, r) {
'use strict'
var a = n('d2ca7d5'),
c = Function.prototype,
e = c.call,
o = a && c.bind.bind(e, e)
i.exports = a
? o
: function (n) {
return function () {
return e.apply(n, arguments)
}
}
}) /*!node_modules/core-js/internals/classof-raw.js*/
amis.define('f5c8b1f', function (t, i, n, e) {
'use strict'
var r = t('ba83a07'),
c = r({}.toString),
f = r(''.slice)
n.exports = function (t) {
return f(c(t), 8, -1)
}
}) /*!node_modules/core-js/internals/indexed-object.js*/
amis.define('6da2d90', function (t, e, n, r) {
'use strict'
var i = t('ba83a07'),
f = t('59e4f2d'),
u = t('f5c8b1f'),
a = Object,
c = i(''.split)
n.exports = f(function () {
return !a('z').propertyIsEnumerable(0)
})
? function (t) {
return 'String' === u(t) ? c(t, '') : a(t)
}
: a
}) /*!node_modules/core-js/internals/is-null-or-undefined.js*/
amis.define('f6fafe8', function (n, e, f, t) {
'use strict'
f.exports = function (n) {
return null == n
}
}) /*!node_modules/core-js/internals/require-object-coercible.js*/
amis.define('dad1772', function (e, n, r, t) {
'use strict'
var f = e('f6fafe8'),
o = TypeError
r.exports = function (e) {
if (f(e)) throw new o("Can't call method on " + e)
return e
}
}) /*!node_modules/core-js/internals/to-indexed-object.js*/
amis.define('ceac33c', function (c, e, n, t) {
'use strict'
var a = c('6da2d90'),
d = c('dad1772')
n.exports = function (c) {
return a(d(c))
}
}) /*!node_modules/core-js/internals/is-callable.js*/
amis.define('b16ce39', function (t, n, o, e) {
'use strict'
var c = 'object' == typeof document && document.all
o.exports =
void 0 === c && void 0 !== c
? function (t) {
return 'function' == typeof t || t === c
}
: function (t) {
return 'function' == typeof t
}
}) /*!node_modules/core-js/internals/is-object.js*/
amis.define('e22c0bf', function (e, t, n, c) {
'use strict'
var f = e('b16ce39')
n.exports = function (e) {
return 'object' == typeof e ? null !== e : f(e)
}
}) /*!node_modules/core-js/internals/get-built-in.js*/
amis.define('7b94a91', function (n, t, e, i) {
'use strict'
var r = n('a75038c'),
c = n('b16ce39'),
u = function (n) {
return c(n) ? n : void 0
}
e.exports = function (n, t) {
return arguments.length < 2 ? u(r[n]) : r[n] && r[n][t]
}
}) /*!node_modules/core-js/internals/object-is-prototype-of.js*/
amis.define('c8d2907', function (t, e, i, s) {
'use strict'
var a = t('ba83a07')
i.exports = a({}.isPrototypeOf)
}) /*!node_modules/core-js/internals/engine-user-agent.js*/
amis.define('6f754a4', function (e, n, t, i) {
'use strict'
t.exports = ('undefined' != typeof navigator && String(navigator.userAgent)) || ''
}) /*!node_modules/core-js/internals/engine-v8-version.js*/
amis.define('97488db', function (e, s, i, o) {
'use strict'
var r,
t,
a = e('a75038c'),
c = e('6f754a4'),
n = a.process,
d = a.Deno,
m = (n && n.versions) || (d && d.version),
v = m && m.v8
v && (t = (r = v.split('.'))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !t && c && (!(r = c.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = c.match(/Chrome\/(\d+)/)) && (t = +r[1]), (i.exports = t)
}) /*!node_modules/core-js/internals/symbol-constructor-detection.js*/
amis.define('50b6a8f', function (t, e, n, o) {
'use strict'
var b = t('97488db'),
r = t('59e4f2d'),
c = t('a75038c').String
n.exports =
!!Object.getOwnPropertySymbols &&
!r(function () {
var t = Symbol('symbol detection')
return !c(t) || !(Object(t) instanceof Symbol) || (!Symbol.sham && b && b < 41)
})
}) /*!node_modules/core-js/internals/use-symbol-as-uid.js*/
amis.define('0911bfb', function (o, t, b, e) {
'use strict'
var s = o('50b6a8f')
b.exports = s && !Symbol.sham && 'symbol' == typeof Symbol.iterator
}) /*!node_modules/core-js/internals/is-symbol.js*/
amis.define('eb6dc0d', function (t, e, n, o) {
'use strict'
var r = t('7b94a91'),
b = t('b16ce39'),
c = t('c8d2907'),
f = t('0911bfb'),
i = Object
n.exports = f
? function (t) {
return 'symbol' == typeof t
}
: function (t) {
var e = r('Symbol')
return b(e) && c(e.prototype, i(t))
}
}) /*!node_modules/core-js/internals/try-to-string.js*/
amis.define('f00042b', function (t, r, n, e) {
'use strict'
var c = String
n.exports = function (t) {
try {
return c(t)
} catch (t) {
return 'Object'
}
}
}) /*!node_modules/core-js/internals/a-callable.js*/
amis.define('836cafb', function (n, r, t, e) {
'use strict'
var i = n('b16ce39'),
f = n('f00042b'),
o = TypeError
t.exports = function (n) {
if (i(n)) return n
throw new o(f(n) + ' is not a function')
}
}) /*!node_modules/core-js/internals/get-method.js*/
amis.define('7bf29e9', function (f, e, i, n) {
'use strict'
var r = f('836cafb'),
t = f('f6fafe8')
i.exports = function (f, e) {
var i = f[e]
return t(i) ? void 0 : r(i)
}
}) /*!node_modules/core-js/internals/ordinary-to-primitive.js*/
amis.define('f0120b4', function (r, t, e, i) {
'use strict'
var n = r('4d44ef6'),
f = r('b16ce39'),
o = r('e22c0bf'),
u = TypeError
e.exports = function (r, t) {
var e, i
if ('string' === t && f((e = r.toString)) && !o((i = n(e, r)))) return i
if (f((e = r.valueOf)) && !o((i = n(e, r)))) return i
if ('string' !== t && f((e = r.toString)) && !o((i = n(e, r)))) return i
throw new u("Can't convert object to primitive value")
}
}) /*!node_modules/core-js/internals/is-pure.js*/
amis.define('3254a35', function (e, i, s, t) {
'use strict'
s.exports = !1
}) /*!node_modules/core-js/internals/define-global-property.js*/
amis.define('25e411a', function (e, t, r, a) {
'use strict'
var c = e('a75038c'),
i = Object.defineProperty
r.exports = function (e, t) {
try {
i(c, e, { value: t, configurable: !0, writable: !0 })
} catch (r) {
c[e] = t
}
return t
}
}) /*!node_modules/core-js/internals/shared-store.js*/
amis.define('5f314d7', function (o, s, e, r) {
'use strict'
var i = o('3254a35'),
c = o('a75038c'),
t = o('25e411a'),
u = '__core-js_shared__',
a = (e.exports = c[u] || t(u, {}))
;(a.versions || (a.versions = [])).push({
version: '3.36.1',
mode: i ? 'pure' : 'global',
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
source: 'https://github.com/zloirock/core-js'
})
}) /*!node_modules/core-js/internals/shared.js*/
amis.define('ec3c77c', function (c, e, n, t) {
'use strict'
var i = c('5f314d7')
n.exports = function (c, e) {
return i[c] || (i[c] = e || {})
}
}) /*!node_modules/core-js/internals/to-object.js*/
amis.define('aa306ae', function (e, t, a, n) {
'use strict'
var i = e('dad1772'),
r = Object
a.exports = function (e) {
return r(i(e))
}
}) /*!node_modules/core-js/internals/has-own-property.js*/
amis.define('6da6c64', function (a, e, n, t) {
'use strict'
var r = a('ba83a07'),
s = a('aa306ae'),
c = r({}.hasOwnProperty)
n.exports =
Object.hasOwn ||
function (a, e) {
return c(s(a), e)
}
}) /*!node_modules/core-js/internals/uid.js*/
amis.define('5fca6e6', function (t, n, a, i) {
'use strict'
var o = t('ba83a07'),
r = 0,
e = Math.random(),
c = o((1).toString)
a.exports = function (t) {
return 'Symbol(' + (void 0 === t ? '' : t) + ')_' + c(++r + e, 36)
}
}) /*!node_modules/core-js/internals/well-known-symbol.js*/
amis.define('cb951a6', function (c, t, e, a) {
'use strict'
var f = c('a75038c'),
o = c('ec3c77c'),
r = c('6da6c64'),
b = c('5fca6e6'),
i = c('50b6a8f'),
n = c('0911bfb'),
s = f.Symbol,
u = o('wks'),
m = n ? s.for || s : (s && s.withoutSetter) || b
e.exports = function (c) {
return r(u, c) || (u[c] = i && r(s, c) ? s[c] : m('Symbol.' + c)), u[c]
}
}) /*!node_modules/core-js/internals/to-primitive.js*/
amis.define('5162863', function (e, r, t, i) {
'use strict'
var n = e('4d44ef6'),
f = e('e22c0bf'),
o = e('eb6dc0d'),
u = e('7bf29e9'),
c = e('f0120b4'),
v = e('cb951a6'),
a = TypeError,
b = v('toPrimitive')
t.exports = function (e, r) {
if (!f(e) || o(e)) return e
var t,
i = u(e, b)
if (i) {
if ((void 0 === r && (r = 'default'), (t = n(i, e, r)), !f(t) || o(t))) return t
throw new a("Can't convert object to primitive value")
}
return void 0 === r && (r = 'number'), c(e, r)
}
}) /*!node_modules/core-js/internals/to-property-key.js*/
amis.define('46b6bd8', function (n, r, t, e) {
'use strict'
var i = n('5162863'),
s = n('eb6dc0d')
t.exports = function (n) {
var r = i(n, 'string')
return s(r) ? r : r + ''
}
}) /*!node_modules/core-js/internals/document-create-element.js*/
amis.define('7978201', function (e, t, n, c) {
'use strict'
var r = e('a75038c'),
a = e('e22c0bf'),
i = r.document,
u = a(i) && a(i.createElement)
n.exports = function (e) {
return u ? i.createElement(e) : {}
}
}) /*!node_modules/core-js/internals/ie8-dom-define.js*/
amis.define('63bef4b', function (e, t, n, r) {
'use strict'
var i = e('3ac3ae6'),
f = e('59e4f2d'),
a = e('7978201')
n.exports =
!i &&
!f(function () {
return (
7 !==
Object.defineProperty(a('div'), 'a', {
get: function () {
return 7
}
}).a
)
})
}) /*!node_modules/core-js/internals/object-get-own-property-descriptor.js*/
amis.define('b1bc9da', function (c, e, t, r) {
'use strict'
var a = c('3ac3ae6'),
f = c('4d44ef6'),
i = c('7d0001a'),
n = c('7130212'),
b = c('ceac33c'),
d = c('46b6bd8'),
u = c('6da6c64'),
o = c('63bef4b'),
s = Object.getOwnPropertyDescriptor
e.f = a
? s
: function (c, e) {
if (((c = b(c)), (e = d(e)), o))
try {
return s(c, e)
} catch (c) {}
if (u(c, e)) return n(!f(i.f, c, e), c[e])
}
}) /*!node_modules/core-js/internals/v8-prototype-define-bug.js*/
amis.define('02e0c49', function (e, t, r, n) {
'use strict'
var o = e('3ac3ae6'),
i = e('59e4f2d')
r.exports =
o &&
i(function () {
return 42 !== Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 }).prototype
})
}) /*!node_modules/core-js/internals/an-object.js*/
amis.define('9931e5b', function (e, n, r, t) {
'use strict'
var i = e('e22c0bf'),
o = String,
c = TypeError
r.exports = function (e) {
if (i(e)) return e
throw new c(o(e) + ' is not an object')
}
}) /*!node_modules/core-js/internals/object-define-property.js*/
amis.define('04e2cae', function (e, r, n, t) {
'use strict'
var i = e('3ac3ae6'),
a = e('63bef4b'),
u = e('02e0c49'),
b = e('9931e5b'),
c = e('46b6bd8'),
o = TypeError,
f = Object.defineProperty,
l = Object.getOwnPropertyDescriptor,
p = 'enumerable',
s = 'configurable',
w = 'writable'
r.f = i
? u
? function (e, r, n) {
if ((b(e), (r = c(r)), b(n), 'function' == typeof e && 'prototype' === r && 'value' in n && w in n && !n.writable)) {
var t = l(e, r)
t && t.writable && ((e[r] = n.value), (n = { configurable: s in n ? n.configurable : t.configurable, enumerable: p in n ? n.enumerable : t.enumerable, writable: !1 }))
}
return f(e, r, n)
}
: f
: function (e, r, n) {
if ((b(e), (r = c(r)), b(n), a))
try {
return f(e, r, n)
} catch (e) {}
if ('get' in n || 'set' in n) throw new o('Accessors not supported')
return 'value' in n && (e[r] = n.value), e
}
}) /*!node_modules/core-js/internals/create-non-enumerable-property.js*/
amis.define('1695238', function (e, n, t, r) {
'use strict'
var c = e('3ac3ae6'),
i = e('04e2cae'),
u = e('7130212')
t.exports = c
? function (e, n, t) {
return i.f(e, n, u(1, t))
}
: function (e, n, t) {
return (e[n] = t), e
}
}) /*!node_modules/core-js/internals/function-name.js*/
amis.define('b9cef32', function (e, n, t, c) {
'use strict'
var o = e('3ac3ae6'),
a = e('6da6c64'),
i = Function.prototype,
r = o && Object.getOwnPropertyDescriptor,
s = a(i, 'name'),
f = s && 'something' === function () {}.name,
m = s && (!o || (o && r(i, 'name').configurable))
t.exports = { EXISTS: s, PROPER: f, CONFIGURABLE: m }
}) /*!node_modules/core-js/internals/inspect-source.js*/
amis.define('8638c52', function (c, e, n, t) {
'use strict'
var i = c('ba83a07'),
r = c('b16ce39'),
o = c('5f314d7'),
u = i(Function.toString)
r(o.inspectSource) ||
(o.inspectSource = function (c) {
return u(c)
}),
(n.exports = o.inspectSource)
}) /*!node_modules/core-js/internals/weak-map-basic-detection.js*/
amis.define('0c89b60', function (e, t, a, c) {
'use strict'
var i = e('a75038c'),
n = e('b16ce39'),
s = i.WeakMap
a.exports = n(s) && /native code/.test(String(s))
}) /*!node_modules/core-js/internals/shared-key.js*/
amis.define('bfee225', function (e, c, n, t) {
'use strict'
var f = e('ec3c77c'),
i = e('5fca6e6'),
r = f('keys')
n.exports = function (e) {
return r[e] || (r[e] = i(e))
}
}) /*!node_modules/core-js/internals/hidden-keys.js*/
amis.define('10fbc0a', function (e, i, s, t) {
'use strict'
s.exports = {}
}) /*!node_modules/core-js/internals/internal-state.js*/
amis.define('3309a19', function (e, t, r, n) {
'use strict'
var a,
i,
c,
f = e('0c89b60'),
u = e('a75038c'),
o = e('e22c0bf'),
s = e('1695238'),
d = e('6da6c64'),
h = e('5f314d7'),
w = e('bfee225'),
b = e('10fbc0a'),
g = 'Object already initialized',
p = u.TypeError,
v = u.WeakMap
if (f || h.state) {
var l = h.state || (h.state = new v())
;(l.get = l.get),
(l.has = l.has),
(l.set = l.set),
(a = function (e, t) {
if (l.has(e)) throw new p(g)
return (t.facade = e), l.set(e, t), t
}),
(i = function (e) {
return l.get(e) || {}
}),
(c = function (e) {
return l.has(e)
})
} else {
var y = w('state')
;(b[y] = !0),
(a = function (e, t) {
if (d(e, y)) throw new p(g)
return (t.facade = e), s(e, y, t), t
}),
(i = function (e) {
return d(e, y) ? e[y] : {}
}),
(c = function (e) {
return d(e, y)
})
}
r.exports = {
set: a,
get: i,
has: c,
enforce: function (e) {
return c(e) ? i(e) : a(e, {})
},
getterFor: function (e) {
return function (t) {
var r
if (!o(t) || (r = i(t)).type !== e) throw new p('Incompatible receiver, ' + e + ' required')
return r
}
}
}
}) /*!node_modules/core-js/internals/make-built-in.js*/
amis.define('4791c0d', function (t, e, r, n) {
'use strict'
var o = t('ba83a07'),
i = t('59e4f2d'),
c = t('b16ce39'),
a = t('6da6c64'),
u = t('3ac3ae6'),
s = t('b9cef32').CONFIGURABLE,
g = t('8638c52'),
l = t('3309a19'),
p = l.enforce,
f = l.get,
y = String,
b = Object.defineProperty,
h = o(''.slice),
S = o(''.replace),
m = o([].join),
d =
u &&
!i(function () {
return 8 !== b(function () {}, 'length', { value: 8 }).length
}),
v = String(String).split('String'),
j = (r.exports = function (t, e, r) {
'Symbol(' === h(y(e), 0, 7) && (e = '[' + S(y(e), /^Symbol\(([^)]*)\).*$/, '$1') + ']'),
r && r.getter && (e = 'get ' + e),
r && r.setter && (e = 'set ' + e),
(!a(t, 'name') || (s && t.name !== e)) && (u ? b(t, 'name', { value: e, configurable: !0 }) : (t.name = e)),
d && r && a(r, 'arity') && t.length !== r.arity && b(t, 'length', { value: r.arity })
try {
r && a(r, 'constructor') && r.constructor ? u && b(t, 'prototype', { writable: !1 }) : t.prototype && (t.prototype = void 0)
} catch (t) {}
var n = p(t)
return a(n, 'source') || (n.source = m(v, 'string' == typeof e ? e : '')), t
})
Function.prototype.toString = j(function () {
return (c(this) && f(this).source) || g(this)
}, 'toString')
}) /*!node_modules/core-js/internals/define-built-in.js*/
amis.define('04b0f9b', function (e, a, n, r) {
'use strict'
var i = e('b16ce39'),
l = e('04e2cae'),
t = e('4791c0d'),
b = e('25e411a')
n.exports = function (e, a, n, r) {
r || (r = {})
var u = r.enumerable,
c = void 0 !== r.name ? r.name : a
if ((i(n) && t(n, c, r), r.global)) u ? (e[a] = n) : b(a, n)
else {
try {
r.unsafe ? e[a] && (u = !0) : delete e[a]
} catch (e) {}
u ? (e[a] = n) : l.f(e, a, { value: n, enumerable: !1, configurable: !r.nonConfigurable, writable: !r.nonWritable })
}
return e
}
}) /*!node_modules/core-js/internals/math-trunc.js*/
amis.define('fbaa50f', function (t, a, r, n) {
'use strict'
var e = Math.ceil,
f = Math.floor
r.exports =
Math.trunc ||
function (t) {
var a = +t
return (a > 0 ? f : e)(a)
}
}) /*!node_modules/core-js/internals/to-integer-or-infinity.js*/
amis.define('d98733e', function (e, n, r, t) {
'use strict'
var a = e('fbaa50f')
r.exports = function (e) {
var n = +e
return n != n || 0 === n ? 0 : a(n)
}
}) /*!node_modules/core-js/internals/to-absolute-index.js*/
amis.define('6b41e2b', function (t, e, n, a) {
'use strict'
var i = t('d98733e'),
r = Math.max,
s = Math.min
n.exports = function (t, e) {
var n = i(t)
return n < 0 ? r(n + e, 0) : s(n, e)
}
}) /*!node_modules/core-js/internals/to-length.js*/
amis.define('bafbf06', function (n, t, e, i) {
'use strict'
var r = n('d98733e'),
a = Math.min
e.exports = function (n) {
var t = r(n)
return t > 0 ? a(t, 9007199254740991) : 0
}
}) /*!node_modules/core-js/internals/length-of-array-like.js*/
amis.define('e162ecc', function (e, n, t, c) {
'use strict'
var f = e('bafbf06')
t.exports = function (e) {
return f(e.length)
}
}) /*!node_modules/core-js/internals/array-includes.js*/
amis.define('c370266', function (e, r, n, i) {
'use strict'
var c = e('ceac33c'),
f = e('6b41e2b'),
t = e('e162ecc'),
u = function (e) {
return function (r, n, i) {
var u = c(r),
o = t(u)
if (0 === o) return !e && -1
var s,
a = f(i, o)
if (e && n != n) {
for (; o > a; ) if ((s = u[a++]) != s) return !0
} else for (; o > a; a++) if ((e || a in u) && u[a] === n) return e || a || 0
return !e && -1
}
}
n.exports = { includes: u(!0), indexOf: u(!1) }
}) /*!node_modules/core-js/internals/object-keys-internal.js*/
amis.define('c31467e', function (c, e, n, a) {
'use strict'
var r = c('ba83a07'),
f = c('6da6c64'),
i = c('ceac33c'),
t = c('c370266').indexOf,
o = c('10fbc0a'),
s = r([].push)
n.exports = function (c, e) {
var n,
a = i(c),
r = 0,
u = []
for (n in a) !f(o, n) && f(a, n) && s(u, n)
for (; e.length > r; ) f(a, (n = e[r++])) && (~t(u, n) || s(u, n))
return u
}
}) /*!node_modules/core-js/internals/enum-bug-keys.js*/
amis.define('fbb024e', function (t, e, r, o) {
'use strict'
r.exports = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf']
}) /*!node_modules/core-js/internals/object-get-own-property-names.js*/
amis.define('4768dc6', function (e, t, n, c) {
'use strict'
var r = e('c31467e'),
o = e('fbb024e').concat('length', 'prototype')
t.f =
Object.getOwnPropertyNames ||
function (e) {
return r(e, o)
}
}) /*!node_modules/core-js/internals/object-get-own-property-symbols.js*/
amis.define('0bf2240', function (e, t, f, i) {
'use strict'
t.f = Object.getOwnPropertySymbols
}) /*!node_modules/core-js/internals/own-keys.js*/
amis.define('2335efa', function (e, a, f, n) {
'use strict'
var t = e('7b94a91'),
c = e('ba83a07'),
r = e('4768dc6'),
i = e('0bf2240'),
o = e('9931e5b'),
s = c([].concat)
f.exports =
t('Reflect', 'ownKeys') ||
function (e) {
var a = r.f(o(e)),
f = i.f
return f ? s(a, f(e)) : a
}
}) /*!node_modules/core-js/internals/copy-constructor-properties.js*/
amis.define('0093b05', function (a, e, f, c) {
'use strict'
var n = a('6da6c64'),
r = a('2335efa'),
t = a('b1bc9da'),
i = a('04e2cae')
f.exports = function (a, e, f) {
for (var c = r(e), o = i.f, s = t.f, b = 0; b < c.length; b++) {
var d = c[b]
n(a, d) || (f && n(f, d)) || o(a, d, s(e, d))
}
}
}) /*!node_modules/core-js/internals/is-forced.js*/
amis.define('bb6edfa', function (e, r, t, n) {
'use strict'
var a = e('59e4f2d'),
o = e('b16ce39'),
i = /#|\.prototype\./,
c = function (e, r) {
var t = u[f(e)]
return t === d || (t !== s && (o(r) ? a(r) : !!r))
},
f = (c.normalize = function (e) {
return String(e).replace(i, '.').toLowerCase()
}),
u = (c.data = {}),
s = (c.NATIVE = 'N'),
d = (c.POLYFILL = 'P')
t.exports = c
}) /*!node_modules/core-js/internals/export.js*/
amis.define('c70ca0a', function (a, t, e, f) {
'use strict'
var o = a('a75038c'),
i = a('b1bc9da').f,
c = a('1695238'),
n = a('04b0f9b'),
b = a('25e411a'),
r = a('0093b05'),
s = a('bb6edfa')
e.exports = function (a, t) {
var e,
f,
d,
l,
p,
u = a.target,
m = a.global,
v = a.stat
if ((e = m ? o : v ? o[u] || b(u, {}) : o[u] && o[u].prototype))
for (f in t) {
if (((l = t[f]), (d = a.dontCallGetSet ? (p = i(e, f)) && p.value : e[f]), !s(m ? f : u + (v ? '.' : '#') + f, a.forced) && void 0 !== d)) {
if (typeof l == typeof d) continue
r(l, d)
}
;(a.sham || (d && d.sham)) && c(l, 'sham', !0), n(e, f, l, a)
}
}
}) /*!node_modules/core-js/internals/function-uncurry-this-clause.js*/
amis.define('45c377b', function (n, i, t, c) {
'use strict'
var f = n('f5c8b1f'),
e = n('ba83a07')
t.exports = function (n) {
if ('Function' === f(n)) return e(n)
}
}) /*!node_modules/core-js/internals/function-bind-context.js*/
amis.define('0fa4ad6', function (n, i, t, a) {
'use strict'
var c = n('45c377b'),
r = n('836cafb'),
d = n('d2ca7d5'),
e = c(c.bind)
t.exports = function (n, i) {
return (
r(n),
void 0 === i
? n
: d
? e(n, i)
: function () {
return n.apply(i, arguments)
}
)
}
}) /*!node_modules/core-js/internals/is-array.js*/
amis.define('3363486', function (r, i, n, t) {
'use strict'
var a = r('f5c8b1f')
n.exports =
Array.isArray ||
function (r) {
return 'Array' === a(r)
}
}) /*!node_modules/core-js/internals/to-string-tag-support.js*/
amis.define('4af5bf0', function (t, i, a, e) {
'use strict'
var n = {}
;(n[t('cb951a6')('toStringTag')] = 'z'), (a.exports = '[object z]' === String(n))
}) /*!node_modules/core-js/internals/classof.js*/
amis.define('9a10497', function (t, n, e, r) {
'use strict'
var c = t('4af5bf0'),
u = t('b16ce39'),
f = t('f5c8b1f'),
i = t('cb951a6')('toStringTag'),
a = Object,
o =
'Arguments' ===
f(
(function () {
return arguments
})()
)
e.exports = c
? f
: function (t) {
var n, e, r
return void 0 === t
? 'Undefined'
: null === t
? 'Null'
: 'string' ==
typeof (e = (function (t, n) {
try {
return t[n]
} catch (t) {}
})((n = a(t)), i))
? e
: o
? f(n)
: 'Object' === (r = f(n)) && u(n.callee)
? 'Arguments'
: r
}
}) /*!node_modules/core-js/internals/is-constructor.js*/
amis.define('c9efb41', function (n, t, c, e) {
'use strict'
var r = n('ba83a07'),
u = n('59e4f2d'),
a = n('b16ce39'),
i = n('9a10497'),
s = n('7b94a91'),
o = n('8638c52'),
f = function () {},
b = s('Reflect', 'construct'),
h = /^\s*(?:class|function)\b/,
l = r(h.exec),
y = !h.test(f),
F = function (n) {
if (!a(n)) return !1
try {
return b(f, [], n), !0
} catch (n) {
return !1
}
},
d = function (n) {
if (!a(n)) return !1
switch (i(n)) {
case 'AsyncFunction':
case 'GeneratorFunction':
case 'AsyncGeneratorFunction':
return !1
}
try {
return y || !!l(h, o(n))
} catch (n) {
return !0
}
}
;(d.sham = !0),
(c.exports =
!b ||
u(function () {
var n
return (
F(F.call) ||
!F(Object) ||
!F(function () {
n = !0
}) ||
n
)
})
? d
: F)
}) /*!node_modules/core-js/internals/array-species-constructor.js*/
amis.define('021dc42', function (r, c, e, t) {
'use strict'
var o = r('3363486'),
i = r('c9efb41'),
n = r('e22c0bf'),
s = r('cb951a6')('species'),
u = Array
e.exports = function (r) {
var c
return o(r) && ((c = r.constructor), ((i(c) && (c === u || o(c.prototype))) || (n(c) && null === (c = c[s]))) && (c = void 0)), void 0 === c ? u : c
}
}) /*!node_modules/core-js/internals/array-species-create.js*/
amis.define('4cd20fd', function (n, e, t, c) {
'use strict'
var i = n('021dc42')
t.exports = function (n, e) {
return new (i(n))(0 === e ? 0 : e)
}
}) /*!node_modules/core-js/internals/array-iteration.js*/
amis.define('80f61af', function (e, r, a, c) {
'use strict'
var f = e('0fa4ad6'),
i = e('ba83a07'),
n = e('6da2d90'),
t = e('aa306ae'),
s = e('e162ecc'),
u = e('4cd20fd'),
d = i([].push),
o = function (e) {
var r = 1 === e,
a = 2 === e,
c = 3 === e,
i = 4 === e,
o = 6 === e,
v = 7 === e,
h = 5 === e || o
return function (l, m, p, w) {
for (var x, b, j = t(l), y = n(j), E = s(y), I = f(m, p), R = 0, g = w || u, k = r ? g(l, E) : a || v ? g(l, 0) : void 0; E > R; R++)
if ((h || R in y) && ((b = I((x = y[R]), R, j)), e))
if (r) k[R] = b
else if (b)
switch (e) {
case 3:
return !0
case 5:
return x
case 6:
return R
case 2:
d(k, x)
}
else
switch (e) {
case 4:
return !1
case 7:
d(k, x)
}
return o ? -1 : c || i ? i : k
}
}
a.exports = { forEach: o(0), map: o(1), filter: o(2), some: o(3), every: o(4), find: o(5), findIndex: o(6), filterReject: o(7) }
}) /*!node_modules/core-js/internals/object-keys.js*/
amis.define('c117cde', function (e, c, t, n) {
'use strict'
var i = e('c31467e'),
r = e('fbb024e')
t.exports =
Object.keys ||
function (e) {
return i(e, r)
}
}) /*!node_modules/core-js/internals/object-define-properties.js*/
amis.define('a928ae4', function (e, c, a, n) {
'use strict'
var r = e('3ac3ae6'),
t = e('02e0c49'),
f = e('04e2cae'),
i = e('9931e5b'),
o = e('ceac33c'),
s = e('c117cde')
c.f =
r && !t
? Object.defineProperties
: function (e, c) {
i(e)
for (var a, n = o(c), r = s(c), t = r.length, u = 0; t > u; ) f.f(e, (a = r[u++]), n[a])
return e
}
}) /*!node_modules/core-js/internals/html.js*/
amis.define('3693509', function (e, t, n, c) {
'use strict'
var i = e('7b94a91')
n.exports = i('document', 'documentElement')
}) /*!node_modules/core-js/internals/object-create.js*/
amis.define('04a4df6', function (e, t, n, r) {
'use strict'
var o,
c = e('9931e5b'),
i = e('a928ae4'),
a = e('fbb024e'),
u = e('10fbc0a'),
f = e('3693509'),
d = e('7978201'),
p = e('bfee225'),
l = p('IE_PROTO'),
s = function () {},
b = function (e) {
return ''))
: e.includes('$') && r.push(e))
},
10
),
r.join('|')
)
}),
(r.bulkBindFunctions = function (e, r) {
r.forEach(function (r) {
return (e[r] = e[r].bind(e))
})
}),
(r.camel = function (e) {
return e
? e
.split(/[\s_\-]/)
.map(function (e, r) {
return 0 === r ? q(e) : X(e)
})
.join('')
: ''
}),
(r.chainEvents = function (e, r) {
var n = {}
return (
Object.keys(e).forEach(function (t) {
var i
'on' === t.substr(0, 2) && 'function' == typeof e[t] && 'function' == typeof r[t] && r[t] !== e[t]
? e.formStore && 'onChange' === t
? (n[t] = e[t])
: (n[t] = K(r[t], e[t]))
: (n[t] = null !== (i = e[t]) && void 0 !== i ? i : r[t])
}),
n
)
}),
(r.chainFunctions = K),
(r.changedEffect = function (e, r, n, t, i) {
void 0 === i && (i = !0)
var a = {}
;('string' == typeof e
? e.split(',').map(function (e) {
return e.trim()
})
: e
).forEach(function (e) {
;(i ? r[e] !== n[e] : r[e] != n[e]) && (a[e] = n[e])
}),
Object.keys(a).length && t(a)
}),
(r.convertArrayValueToMoment = function (e, r, n) {
if (0 === e.length) return n
for (var t = 0; t < r.length; t++) {
var i = r[t]
n.set(i, e[t])
}
return n
}),
(r.countTree = function (e, r) {
var n = 0
return (
W(e, function (e, t, i, a) {
;(r && !r(e, t, i, a)) || n++
}),
n
)
}),
(r.detectPropValueChanged = function (e, r, n, t) {
var i
void 0 !== e.value
? e.value !== r.value && n(e.value)
: void 0 !== (i = null == t ? void 0 : t(e))
? i !== t(r) && n(i)
: 'string' == typeof e.name && void 0 !== (i = re(e.data, e.name))
? i !== re(r.data, r.name) && n(i)
: e.defaultValue !== r.defaultValue && n(e.defaultValue)
}),
(r.difference = function (e, r, n) {
return (function e(r, t) {
if (m.isObject(r) && m.isObject(t)) {
var i = T.default(Object.keys(r).concat(Object.keys(t))),
a = {}
return (
i.forEach(function (i) {
var o = r[i],
u = t[i]
n && ~n.indexOf(i) && (a[i] = o), N(o, u, !1, void 0, void 0, 10) && (r.hasOwnProperty(i) ? (Array.isArray(o) && Array.isArray(u) ? (a[i] = o) : (a[i] = e(o, u))) : (a[i] = void 0))
}),
a
)
}
return r
})(e, r)
}),
(r.differenceFromAll = function (e, r, n) {
if (e === oe.allOptions && r === oe.options) return oe.res
var t = new Map(
e.map(function (e) {
return [n(e), e]
})
),
i = r.filter(function (e) {
return !t.get(n(e))
})
return (oe.allOptions = e), (oe.options = r), (oe.res = i), i
}),
(r.eachTree = W),
(r.evalTrackExpression = function (e, r) {
if ('string' != typeof e) return ''
for (var n = []; ; ) {
var t = e.indexOf('')
if (-1 === i) throw new Error('Invalid trackExpression miss end script token ``')
t && n.push({ type: 'text', value: e.substring(0, t) }), n.push({ type: 'script', value: e.substring(t + 8, i) }), (e = e.substring(i + 9))
}
return (
e && n.push({ type: 'text', value: e }),
n
.map(function (e) {
return 'text' === e.type ? b.tokenize(e.value, r) : h.evalExpression(e.value, r)
})
.join('')
)
}),
(r.everyTree = B),
(r.filterTree = function e(r, n, t, a, o) {
return (
void 0 === t && (t = 1),
void 0 === a && (a = !1),
void 0 === o && (o = []),
a
? r
.map(function (r) {
var u = r.children ? e(r.children, n, t + 1, a, o.concat(r)) : void 0
return Array.isArray(u) && Array.isArray(r.children) && (r = i.__assign(i.__assign({}, r), { children: u })), r
})
.filter(function (e, r) {
return n(e, r, t, o)
})
: r
.filter(function (e, r) {
return n(e, r, t, o)
})
.map(function (r) {
var u
if (null === (u = r.children) || void 0 === u ? void 0 : u.splice) {
var c = e(r.children, n, t + 1, a, o.concat(r))
Array.isArray(c) && Array.isArray(r.children) && (r = i.__assign(i.__assign({}, r), { children: c }))
}
return r
})
)
}),
(r.findIndex = function (e, r) {
for (var n = 0, t = e.length; n < t; n++) if (r(e[n], n)) return n
return -1
}),
(r.findObjectsWithKey = function (e, r) {
return (function (e) {
var r = []
return (function e(n) {
if (n && 'object' == typeof n) {
if (-1 !== r.indexOf(n)) return !0
for (var t in (r.push(n), n)) if (n.hasOwnProperty(t) && e(n[t])) return !0
}
return !1
})(e)
})(e)
? []
: ee(e, r)
}),
(r.findTree = U),
(r.findTreeAll = function (e, r) {
var n = []
return (
B(e, function (e, t, i, a) {
return r(e, t, i, a) && n.push(e), !0
}),
n
)
}),
(r.findTreeIndex = function (e, r, n) {
var t = [],
a = function (r, n, i, a) {
;(t = [n]), (a = a.concat()).unshift({ children: e })
for (var o = a.length - 1; o > 0; o--) {
var u = a[o - 1],
c = a[o]
t.unshift(u.children.indexOf(c))
}
}
return (
U(
e,
function (e, n, t, i) {
return !!r(e, n, t, i) && (a(0, n, 0, i), !0)
},
n ? i.__assign(i.__assign({}, n), { foundEffect: a }) : void 0
),
t.length ? t : void 0
)
}),
(r.flattenTree = function (e, r) {
var n = []
return (
W(e, function (e, t, i, a) {
return n.push(r ? r(e, t, i, a) : e)
}),
n
)
}),
(r.flattenTreeWithLeafNodes = function (e, r) {
var n = []
return (
W(e, function (e, t) {
e.hasOwnProperty('children') || n.push(r ? r(e, t) : e)
}),
n
)
}),
(r.getLevelFromClassName = function (e, r) {
return void 0 === r && (r = 'default'), /\b(?:btn|text)-(link|primary|secondary|info|success|warning|danger|light|dark)\b/.test(e) ? RegExp.$1 : r
}),
(r.getPropValue = function (e, r, n) {
var t, i
void 0 === n && (n = e.canAccessSuperData)
var a = e.name,
o = e.value,
u = e.data,
c = e.defaultValue
return null !== (i = null !== (t = null != o ? o : null == r ? void 0 : r(e)) && void 0 !== t ? t : re(u, a, n)) && void 0 !== i
? i
: j.isExpression(c)
? _.resolveVariableAndFilter(c, u)
: j.replaceExpression(c)
}),
(r.getRange = function (e, r, n) {
void 0 === n && (n = 1)
for (var t = [], i = e; i <= r; i += n) t.push(i)
return t
}),
(r.getScrollParent = function e(r, n) {
if (
(void 0 === n &&
(n = function () {
return !0
}),
null == r)
)
return null
var t = getComputedStyle(r)
if (!t) return null
var i = t.getPropertyValue('overflow') + t.getPropertyValue('overflow-x') + t.getPropertyValue('overflow-y')
return 'BODY' === r.nodeName || (/auto|scroll/.test(i) && n(r)) ? r : e(r.parentNode, n)
}),
(r.getScrollbarWidth = function () {
if (void 0 !== Q) return Q
var e = document.createElement('div')
;(e.style.visibility = 'hidden'), (e.style.overflow = 'scroll'), (e.style.msOverflowStyle = 'scrollbar'), document.body.appendChild(e)
var r = document.createElement('div')
return e.appendChild(r), (Q = e.offsetWidth - r.offsetWidth), e.parentNode.removeChild(e), Q
}),
(r.getTree = function (e, r) {
for (var n = Array.isArray(r) ? r.concat() : [r], t = n.pop(), i = e, a = 0, o = n.length; a < o; a++) {
var u = n[a]
if (!i[u]) {
i = null
break
}
i = i[u].children
}
return i ? i[t] : void 0
}),
(r.getTreeAncestors = z),
(r.getTreeDepth = function e(r) {
return Array.isArray(r) && 0 === r.length
? 0
: Math.max.apply(
Math,
i.__spreadArray(
[],
i.__read(
r.map(function (r) {
return Array.isArray(r.children) ? 1 + e(r.children) : 1
})
),
!1
)
)
}),
(r.getTreeParent = function (e, r) {
var n = z(e, r)
return (null == n ? void 0 : n.length) ? n[n.length - 1] : null
}),
(r.getWidthRate = function (e, r) {
return void 0 === r && (r = !1), 'string' == typeof e && /\bcol\-\w+\-(\d+)\b/.test(e) ? parseInt(RegExp.$1, 10) : r ? 0 : e || 0
}),
(r.guid = function () {
function e() {
return Math.floor(65536 * (1 + Math.random()))
.toString(16)
.substring(1)
}
return e() + e() + e()
}),
(r.hasAbility = function (e, r, n, t) {
return void 0 === t && (t = !0), e.hasOwnProperty(r) ? e[r] : e.hasOwnProperty(''.concat(r, 'On')) ? h.evalExpression(e[''.concat(r, 'On')], n || e) : t
}),
(r.hasFile = function (e) {
return Object.keys(e).some(function (r) {
var n = e[r]
return n instanceof File || (Array.isArray(n) && n.length && n[0] instanceof File)
})
}),
(r.hasOwnPropertyInPath = function (e, r) {
for (var n = E.keyToPath(r); n.length; ) {
var t = n.shift()
if (!m.isObject(e) || !e.hasOwnProperty(t)) return !1
e = e[t]
}
return !0
}),
(r.hasVisibleExpression = function (e) {
return !(!e.visibleOn && !e.hiddenOn)
}),
(r.hashCode = function (e) {
return e.split('').reduce(function (e, r) {
return (e = (e << 5) - e + r.charCodeAt(0)) & e
}, 0)
}),
(r.immutableExtends = function (e, r, n) {
if (!m.isObject(e) || !m.isObject(r)) return e
var t = e
return (
Object.keys(r).forEach(function (n) {
var a = e[n],
o = r[n]
a !== o && ((t = t !== e ? t : i.__assign({}, e))[n] = o)
}),
t
)
}),
(r.importLazyComponent = function (e) {
return e.default.__esModule ? e.default : e
}),
(r.injectPropsToObject = function (e, r) {
var n = Object.create(e.__super || null)
Object.keys(r).forEach(function (e) {
return (n[e] = r[e])
})
var t = Object.create(n)
return (
Object.keys(e).forEach(function (r) {
return (t[r] = e[r])
}),
t
)
}),
(r.isArrayChildrenModified = function e(r, n, t) {
if ((void 0 === t && (t = !0), !Array.isArray(r) || !Array.isArray(n))) return t ? r !== n : r != n
if (r.length !== n.length) return !0
for (var i = r.length - 1; i >= 0; i--) if ((t ? r[i] !== n[i] : r[i] != n[i]) || e(r[i].children, n[i].children, t)) return !0
return !1
}),
(r.isBreakpoint = function (e) {
if ('string' != typeof e) return !!e
var r = e.split(/\s*,\s*|\s+/)
if (window.matchMedia)
return r.some(function (e) {
return (
'*' === e ||
('xs' === e && matchMedia('screen and (max-width: 767px)').matches) ||
('sm' === e && matchMedia('screen and (min-width: 768px) and (max-width: 991px)').matches) ||
('md' === e && matchMedia('screen and (min-width: 992px) and (max-width: 1199px)').matches) ||
('lg' === e && matchMedia('screen and (min-width: 1200px)').matches)
)
})
var n = window.innerWidth
return r.some(function (e) {
return '*' === e || ('xs' === e && n < 768) || ('sm' === e && n >= 768 && n < 992) || ('md' === e && n >= 992 && n < 1200) || ('lg' === e && n >= 1200)
})
}),
(r.isClickOnInput = function (e) {
var r,
n = e.target
return !!(
!e.currentTarget.contains(n) ||
~['INPUT', 'TEXTAREA'].indexOf(n.tagName) ||
((r = n.closest('button, a, [data-role="form-item"], label[data-role="checkbox"], label[data-role="switch"]')) && e.currentTarget.contains(r))
)
}),
(r.isDisabled = function (e, r) {
return e.disabled || (e.disabledOn && h.evalExpression(e.disabledOn, r))
}),
(r.isEmpty = function (e) {
return !(m.isObject(e) && Object.keys(e).length)
}),
(r.isMobile = function () {
var e, r
return null === (r = (e = window).matchMedia) || void 0 === r ? void 0 : r.call(e, '(max-width: 768px)').matches
}),
(r.isNumeric = ie),
(r.isObjectShallowModified = N),
(r.isSuperDataModified = function (e, r, n) {
var t
return (
(t =
n && 'FormStore' === n.storeType
? T.default(
n.items
.map(function (e) {
return ''.concat(e.name).replace(/\..*$/, '')
})
.concat(Object.keys(n.data))
)
: Object.keys(n.data)),
!(!Array.isArray(t) || !t.length) &&
t.some(function (n) {
return e[n] !== r[n]
})
)
}),
(r.isUnfolded = function (e, r) {
var n = r.foldedField,
t = r.unfoldedField
return t || (t = 'unfolded'), n || (n = 'folded'), t && void 0 !== e[t] ? !!e[t] : !(!n || void 0 === e[n]) && !e[n]
}),
(r.isVisible = D),
(r.lcFirst = q),
(r.loadScript = function (e) {
return new Promise(function (r, n) {
var t = document.createElement('script')
if (
((t.onerror = function (e) {
return n(e)
}),
~e.indexOf('{{callback}}'))
) {
var i = 'loadscriptcallback_'.concat($())
;(window[i] = function () {
r(), delete window[i]
}),
(e = e.replace('{{callback}}', i))
} else
t.onload = function () {
return r()
}
;(t.src = e), document.head.appendChild(t)
})
}),
(r.loadStyle = function (e) {
return new Promise(function (r, n) {
var t = document.createElement('link')
;(t.rel = 'stylesheet'),
(t.onerror = function (e) {
return n(e)
}),
(t.onload = function () {
return r()
}),
(t.href = e),
document.head.appendChild(t)
})
}),
(r.makeColumnClassBuild = function (e, r) {
void 0 === r && (r = 'col-sm-$value')
var n = 12,
t = Math.floor(n / e)
return function (i) {
if (i.columnClassName && /\bcol-(?:xs|sm|md|lg)-(\d+)\b/.test(i.columnClassName)) {
var a = parseInt(RegExp.$1, 10)
return (n -= a), e--, (t = Math.floor(n / e)), i.columnClassName
}
return i.columnClassName ? ((n -= t), e--, i.columnClassName) : ((n -= t), e--, r.replace('$value', '' + t))
}
}),
(r.makeHorizontalDeeper = function (e, r) {
if (r > 1 && /\bcol-(xs|sm|md|lg)-(\d+)\b/.test(e.left)) {
var n = parseInt(RegExp.$2, 10) * r
return { leftFixed: e.leftFixed, left: n, right: 12 - n, offset: n }
}
if (r > 1 && 'number' == typeof e.left) {
n = e.left * r
return { leftFixed: e.leftFixed, left: n, right: 12 - n, offset: n }
}
return e
}),
(r.mapObject = function e(r, n, t, i) {
if (
((t =
t && 'function' == typeof t
? t
: function (e) {
return e instanceof File
}),
t(r))
)
return r
if (Array.isArray(r))
return r.map(function (r) {
return e(r, n, t, i)
})
if (m.isObject(r)) {
var a = {}
return (
Object.keys(r).forEach(function (o) {
var u = i ? i(o) : o
a[u] = e(r[o], n, t, i)
}),
a
)
}
return n(r)
}),
(r.mapTree = function e(r, n, t, a, o, u) {
return (
void 0 === t && (t = 1),
void 0 === a && (a = !1),
void 0 === o && (o = []),
void 0 === u && (u = []),
r.map(function (r, c) {
if (a) {
var s = r.children ? e(r.children, n, t + 1, a, o.concat(r), u.concat(c)) : void 0
return s && (r = i.__assign(i.__assign({}, r), { children: s })), (r = n(r, c, t, o, u.concat(c)) || i.__assign({}, r))
}
return (r = n(r, c, t, o, u.concat(c)) || i.__assign({}, r)).children && r.children.splice && (r.children = e(r.children, n, t + 1, a, o.concat(r), u.concat(c))), r
})
)
}),
(r.noop = function () {}),
(r.normalizeNodePath = function (e, r, n, t, a, o) {
var u
void 0 === n && (n = 'label'), void 0 === t && (t = 'value'), void 0 === a && (a = '/'), void 0 === o && (o = ',')
var c = [],
s = [],
l = function (e) {
return k.default(e ? e.toString().split(a) : [])
}
return void 0 !== e && r
? (Array.isArray(e)
? e.forEach(function (e) {
var r
e && e.hasOwnProperty(t) ? (c.push(i.__assign(i.__assign({}, e), (((r = {})[n] = l(e[n])), (r[t] = l(e[t])), r))), s.push(e[t])) : (c.push(l(e)), s.push(e))
})
: 'string' == typeof e
? e
.toString()
.split(o)
.forEach(function (e) {
c.push(l(e)), s.push(e)
})
: (c.push(i.__assign(i.__assign({}, e), (((u = {})[n] = l(e[n])), (u[t || 'value'] = l(e[t])), u))), s.push(e[t])),
{ nodeValueArray: c, nodePathArray: s })
: { nodeValueArray: c, nodePathArray: s }
}),
(r.object2formData = function (e, r, n) {
void 0 === r && (r = { arrayFormat: 'indices', encodeValuesOnly: !0 }), void 0 === n && (n = new FormData())
var t = [],
i = {}
return (
Object.keys(e).forEach(function (r) {
var n = e[r]
n instanceof File
? t.push([r, n])
: Array.isArray(n) && n.length && n[0] instanceof File
? n.forEach(function (e) {
return t.push([''.concat(r, '[]'), e])
})
: (i[r] = n)
}),
H(i, r)
.split('&')
.forEach(function (e) {
var r = e.split('=')
r[0] && n.append(r[0], decodeURIComponent(r[1]))
}),
t.forEach(function (e) {
return n.append(e[0], e[1], e[1].name)
}),
n
)
}),
(r.omitControls = function (e, r) {
return e.filter(function (e) {
return !~r.indexOf(e.name || e._name)
})
}),
(r.padArr = function (e, r, n) {
void 0 === r && (r = 4), void 0 === n && (n = !1)
for (var t = [[]], i = e.concat(), a = 0; i.length || (n && t[t.length - 1].length < r); ) {
var o = t[a] || (t[a] = [])
o.length >= r ? (a += 1) : o.push(i.shift())
}
return t
}),
(r.parsePrimitiveQueryString = ae),
(r.parseQuery = function (e, r) {
var n,
t = r || {},
i = t.parsePrimitive,
a = void 0 !== i && i,
o = t.primitiveTypes,
u = void 0 === o ? ['boolean'] : o,
c =
(e && !(e instanceof Location) && (null == e ? void 0 : e.query)) ||
(e && (null == e ? void 0 : e.search) && J(e.search.substring(1))) ||
(window.location.search && J(window.location.search.substring(1))),
s = V.default(c) ? (a ? ae(c, { primitiveTypes: u }) : c) : {},
l = null === (n = window.location) || void 0 === n ? void 0 : n.hash,
f = {},
d = -1
return 'string' == typeof l && ~(d = l.indexOf('?')) && (f = J(l.substring(d + 1))), P.default(s, f)
}),
(r.pickEventsProps = function (e) {
var r = {}
return (
e &&
Object.keys(e).forEach(function (n) {
return /^on/.test(n) && (r[n] = e[n])
}),
r
)
}),
(r.preventDefault = function (e) {
;('boolean' != typeof e.cancelable || e.cancelable) && e.preventDefault()
}),
(r.promisify = function (e) {
if (e._promisified) return e
var r = function () {
try {
var r = e.apply(null, arguments)
return r && r.then
? r
: 'function' == typeof r
? new Promise(function (e, n) {
return r(function (r, t) {
return r ? n(r) : e(t)
})
})
: Promise.resolve(r)
} catch (e) {
return Promise.reject(e)
}
}
return (r.raw = e), (r._promisified = !0), r
}),
(r.qsparse = J),
(r.qsstringify = H),
(r.range = function (e, r, n) {
return Math.min(Math.max(e, r), n)
}),
(r.removeHTMLTag = function (e) {
return 'string' == typeof e ? e.replace(/<\/?[^>]+(>|$)/g, '') : e
}),
(r.repeatCount = function (e, r) {
for (var n = [], t = 0; e--; ) n.push(r(t++))
return n
}),
(r.replaceUrlParams = function (e, r) {
return 'string' == typeof e && /\:\w+/.test(e) ? p.compile(e)(r) : e
}),
(r.rmUndefined = I),
(r.someTree = function (e, r) {
var n = !1
return (
B(e, function (e, t, i, a) {
return !r(e, t, i, a) || ((n = !0), !1)
}),
n
)
}),
(r.sortArray = function (e, r, n, t) {
return e.sort(function (e, i) {
var a = t ? t(e, r) : e[r],
o = t ? t(i, r) : i[r]
return ('number' == typeof a && 'number' == typeof o ? (a < o ? -1 : a === o ? 0 : 1) : String(a).localeCompare(String(o))) * n
})
}),
(r.spliceTree = function (e, r, n) {
void 0 === n && (n = 0)
for (var t = [], a = 3; a < arguments.length; a++) t[a - 3] = arguments[a]
var o = e.concat()
if ('number' == typeof r) o.splice.apply(o, i.__spreadArray([r, n], i.__read(t), !1))
else if (Array.isArray(r) && r.length) {
var u = (r = r.concat()).pop(),
c = r.reduce(function (e, r) {
var n = i.__assign(i.__assign({}, e[r]), { children: e[r].children ? e[r].children.concat() : [] })
return (e[r] = n), n.children
}, o)
c.splice.apply(c, i.__spreadArray([u, n], i.__read(t), !1))
}
return o
}),
(r.syncDataFromSuper = function (e, r, n, t, a) {
var o = i.__assign({}, e),
u = []
return (
t && 'FormStore' === t.storeType
? (u = T.default(
t.items
.map(function (e) {
return ''.concat(e.name).replace(/\..*$/, '')
})
.concat(Object.keys(o))
))
: a && (u = Object.keys(o)),
(r || n) &&
u.forEach(function (e) {
e && ((r && void 0 !== r[e]) || (n && void 0 !== n[e])) && ((n && !r) || (!n && r) || n[e] !== r[e]) && (o[e] = r[e])
}),
o
)
}),
(r.ucFirst = X),
(r.until = function (e, r, n, t) {
var a,
o = this
void 0 === t && (t = 5e3)
var u = !1
return new Promise(function (c, s) {
var l = function () {
return i.__awaiter(o, void 0, void 0, function () {
var n, o
return i.__generator(this, function (i) {
switch (i.label) {
case 0:
return i.trys.push([0, 2, , 3]), [4, e()]
case 1:
return (n = i.sent()), u ? [2] : (r(n) ? ((u = !0), c(n)) : (a = setTimeout(l, t)), [3, 3])
case 2:
return (o = i.sent()), s(o), [3, 3]
case 3:
return [2]
}
})
})
}
l(),
n &&
n(function () {
clearTimeout(a), (u = !0)
})
})
}),
(r.uuid = $),
(r.uuidv4 = function () {
var e = R(),
r = R()
return e.slice(0, 8) + '-' + e.slice(8, 12) + '-4' + e.slice(13) + '-a' + r.slice(1, 4) + '-' + r.slice(4)
}),
(r.visibilityFilter = function (e, r) {
return e.filter(function (e) {
return D(e, r)
})
})
}) /*!node_modules/amis-core/lib/utils/dataMapping.js*/
amis.define('1c8d418', function (e, r, t, i) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var a = e('68b98b9'),
n = e('9c55168'),
s = e('42c789c'),
f = e('3853df4'),
o = e('0910768'),
l = e('bbe84d0')
function u(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var c = u(o)
function d(e, r, t, i) {
void 0 === t && (t = '| raw'), void 0 === i && (i = !1)
var a =
'string' == typeof e && n.isPureVariable(e)
? s.resolveVariableAndFilter(e, r, t, function () {
return ''
})
: 'string' == typeof e && ~e.indexOf('$')
? f.tokenize(e, r, t)
: e
return !i || (null != a && '' !== a) ? a : e
}
;(r.dataMapping = function e(r, t, i, n, s) {
if ((void 0 === t && (t = {}), void 0 === i && (i = !1), void 0 === s && (s = !1), Array.isArray(r)))
return r.map(function (r) {
return e(r, t, i, n, s)
})
if ('string' == typeof r) return d(r, t, void 0, s)
if (!c.default(r)) return r
var f = {},
o = Object.keys(r)
if (1 === o.length && '$' === o[0][0] && c.default(r[o[0]])) {
var u = d(o[0], t, '| raw')
if (!Array.isArray(u) && s) f[o[0]] = r[o[0]]
else {
var y = Array.isArray(u) ? u : [],
v = r[o[0]]
f = y.map(function (r) {
return e(v, l.createObject(t, a.__assign({ item: r }, r)), i, n, s)
})
}
} else {
var b = Object.keys(r),
g = b.indexOf('&')
if (~g) {
var p = r['&']
if ((b.splice(g, 1), '$$' === p)) f = a.__assign(a.__assign({}, f), t)
else {
var _,
A =
c.default(p) && (_ = Object.keys(p)) && 1 === _.length && t[_[0].substring(1)] && Array.isArray(t[_[0].substring(1)])
? t[_[0].substring(1)].map(function (r) {
return e(p[_[0]], l.createObject(t, r), i, n, s)
})
: d(p, t, void 0, s)
f = Array.isArray(A) || 'string' == typeof A ? A : 'function' == typeof A ? a.__assign(a.__assign({}, f), A(t)) : a.__assign(a.__assign({}, f), A)
}
}
b.forEach(function (a) {
var o = r[a]
if ('function' == typeof i && i(a, o)) l.setVariable(f, a, o, n)
else if ('$$' === o) l.setVariable(f, a, t, n)
else if ('string' == typeof o && o.length > 0 && '$' === o[0]) {
var u = d(o, t, void 0, s)
l.setVariable(f, a, u, n), '__undefined' === u && l.deleteVariable(f, a)
} else
c.default(o) || Array.isArray(o)
? l.setVariable(f, a, e(o, t, i, n, s), n)
: 'string' == typeof o && ~o.indexOf('$')
? l.setVariable(f, a, d(o, t, void 0, s), n)
: 'function' == typeof o && !0 !== i
? l.setVariable(f, a, o(t), n)
: (l.setVariable(f, a, o, n), '__undefined' === o && l.deleteVariable(f, a))
})
}
return f
}),
(r.resolveMapping = d),
(r.resolveMappingObject = function (e, r) {
var t, i
try {
for (var n = a.__values(Object.keys(e)), s = n.next(); !s.done; s = n.next()) {
var f = s.value
'string' == typeof e[f] && (e[f] = d(e[f], r))
}
} catch (e) {
t = { error: e }
} finally {
try {
s && !s.done && (i = n.return) && i.call(n)
} finally {
if (t) throw t.error
}
}
return e
})
}) /*!node_modules/lodash/_createFind.js*/
amis.define('d6d2de2', function (n, r, t, e) {
var i = n('8c8db6b'),
f = n('375361a'),
u = n('0092f09')
t.exports = function (n) {
return function (r, t, e) {
var a = Object(r)
if (!f(r)) {
var c = i(t, 3)
;(r = u(r)),
(t = function (n) {
return c(a[n], n, a)
})
}
var d = n(r, t, e)
return d > -1 ? a[c ? r[d] : d] : void 0
}
}
}) /*!node_modules/lodash/findIndex.js*/
amis.define('0150eb3', function (n, a, e, r) {
var t = n('2d54ea1'),
u = n('8c8db6b'),
i = n('0adc535'),
l = Math.max
e.exports = function (n, a, e) {
var r = null == n ? 0 : n.length
if (!r) return -1
var c = null == e ? 0 : i(e)
return c < 0 && (c = l(r + c, 0)), t(n, u(a, 3), c)
}
}) /*!node_modules/lodash/find.js*/
amis.define('0de7e2d', function (e, d, i, n) {
var a = e('d6d2de2')(e('0150eb3'))
i.exports = a
}) /*!node_modules/amis-core/lib/utils/SimpleMap.js*/
amis.define('d2a103e', function (t, e, i, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var u = t('0de7e2d'),
o = t('0150eb3')
function s(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var r = s(u),
l = s(o),
f = (function () {
function t() {
this.list = []
}
return (
(t.prototype.has = function (t) {
return !!r.default(this.list, function (e) {
return e.key === t
})
}),
(t.prototype.set = function (t, e) {
this.list.push({ key: t, value: e })
}),
(t.prototype.get = function (t) {
var e = r.default(this.list, function (e) {
return e.key === t
})
return e ? e.value : null
}),
(t.prototype.delete = function (t) {
var e = l.default(this.list, function (e) {
return e.key === t
})
~e && this.list.splice(e, 1)
}),
(t.prototype.dispose = function () {
this.list.splice(0, this.list.length)
}),
t
)
})()
e.SimpleMap = f
}) /*!node_modules/amis-core/lib/store/manager.js*/
amis.define('821b8e4', function (e, t, r, d) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('668845d'),
n = {}
var o = []
function a() {
for (var e = o.length - 1; e >= 0; ) {
var t = o[e],
r = n[t]
r && !i.isAlive(r) ? (delete n[t], o.splice(e, 1)) : e--
}
}
;(t.addStore = function (e) {
return n[e.id] ? n[e.id] : ((n[e.id] = e), e.parentId && !/(?:dialog|drawer)$/.test(e.path) && n[e.parentId].addChildId(e.id), a(), e)
}),
(t.getStoreById = function (e) {
return n[e]
}),
(t.getStores = function () {
return n
}),
(t.removeStore = function (e) {
var t = e.id
o.push(t), e.dispose(a)
})
}) /*!node_modules/amis-core/lib/store/node.js*/
amis.define('a533195', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('668845d'),
s = e('821b8e4'),
d = i.types
.model('StoreNode', { id: i.types.identifier, path: '', storeType: i.types.string, disposed: !1, parentId: '', childrenIds: i.types.optional(i.types.array(i.types.string), []) })
.views(function (e) {
return {
get parentStore() {
return i.isAlive(e) && e.parentId ? s.getStoreById(e.parentId) : null
},
get __() {
return i.getEnv(e).translate
},
get hasChildren() {
return !!e.childrenIds.length
},
get children() {
return e.childrenIds.map(function (e) {
return s.getStoreById(e)
})
}
}
})
.actions(function (e) {
function t(t) {
var r = e.childrenIds.filter(function (e) {
return e !== t
})
e.childrenIds.replace(r), e.disposed && n()
}
function n(t) {
if (((e.disposed = !0), /(?:dialog|drawer)$/.test(e.path))) i.destroy(e), null == t || t()
else if (!e.childrenIds.length) {
var n = e.parentStore
n && i.isAlive(n) && n.onChildStoreDispose(e), i.destroy(e), null == t || t()
}
}
return {
onChildStoreDispose: function (e) {
t(e.id)
},
syncProps: function (t, n, r) {
void 0 === r && (r = Object.keys(t))
var i = e
r.forEach(function (e) {
if (!n || t[e] !== n[e]) {
var r = 'set'.concat(e.substring(0, 1).toUpperCase()).concat(e.substring(1))
'function' == typeof i[r] ? i[r](t[e]) : i.hasOwnProperty(e) && (i[e] = t[e])
}
})
},
dispose: n,
addChildId: function (t) {
e.childrenIds.push(t)
},
removeChildId: t
}
})
t.StoreNode = d
}) /*!node_modules/lodash/_baseUnset.js*/
amis.define('c1f01fa', function (e, a, n, f) {
var t = e('94485a4'),
i = e('43579e9'),
r = e('e0a75b8'),
u = e('098a4a0')
n.exports = function (e, a) {
return (a = t(a, e)), null == (e = r(e, a)) || delete e[u(i(a))]
}
}) /*!node_modules/lodash/_customOmitClone.js*/
amis.define('d295b80', function (n, i, e, o) {
var r = n('0910768')
e.exports = function (n) {
return r(n) ? void 0 : n
}
}) /*!node_modules/lodash/omit.js*/
amis.define('1279020', function (n, r, a, t) {
var c = n('6d0c860'),
e = n('33d8dc3'),
f = n('c1f01fa'),
u = n('94485a4'),
d = n('64d9393'),
i = n('d295b80'),
o = n('6c2aac1'),
l = n('5a68868'),
v = o(function (n, r) {
var a = {}
if (null == n) return a
var t = !1
;(r = c(r, function (r) {
return (r = u(r, n)), t || (t = r.length > 1), r
})),
d(n, l(n), a),
t && (a = e(a, 7, i))
for (var o = r.length; o--; ) f(a, r[o])
return a
})
a.exports = v
}) /*!node_modules/classnames/index.js*/
amis.define('cb263ff', function (t, n, e, r) {
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!(function () {
'use strict'
var t = {}.hasOwnProperty
function n() {
for (var e = [], r = 0; r < arguments.length; r++) {
var i = arguments[r]
if (i) {
var o = typeof i
if ('string' === o || 'number' === o) e.push(i)
else if (Array.isArray(i)) {
if (i.length) {
var s = n.apply(null, i)
s && e.push(s)
}
} else if ('object' === o) {
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes('[native code]')) {
e.push(i.toString())
continue
}
for (var a in i) t.call(i, a) && i[a] && e.push(a)
}
}
}
return e.join(' ')
}
void 0 !== e && e.exports
? ((n.default = n), (e.exports = n))
: 'function' == typeof r && 'object' == typeof r.amd && r.amd
? r('classnames', [], function () {
return n
})
: (window.classNames = n)
})()
}) /*!node_modules/mobx-react-lite/lib/assertEnvironment.js*/
amis.define('8136cd5', function (e, r, t, o) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var i = e('30f4e61')
if (!e('ac704b9').useState) throw new Error('mobx-react-lite requires React with Hooks support')
if (!i.spy) throw new Error('mobx-react-lite requires mobx at least version 4 to be available')
}) /*!node_modules/mobx-react-lite/lib/utils/reactBatchedUpdates.js*/
amis.define('ea012c8', function (e, a, t, s) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var c = e('1e5c4ba')
a.unstable_batchedUpdates = c.unstable_batchedUpdates
}) /*!node_modules/mobx-react-lite/lib/utils.js*/
amis.define('5743f9e', function (e, t, n, r) {
'use strict'
var o =
(this && this.__read) ||
function (e, t) {
var n = 'function' == typeof Symbol && e[Symbol.iterator]
if (!n) return e
var r,
o,
f = n.call(e),
u = []
try {
for (; (void 0 === t || t-- > 0) && !(r = f.next()).done; ) u.push(r.value)
} catch (e) {
o = { error: e }
} finally {
try {
r && !r.done && (n = f.return) && n.call(f)
} finally {
if (o) throw o.error
}
}
return u
}
Object.defineProperty(t, '__esModule', { value: !0 })
var f = e('ac704b9'),
u = []
;(t.useUnmount = function (e) {
f.useEffect(function () {
return e
}, u)
}),
(t.useForceUpdate = function () {
var e = o(f.useState(0), 2)[1]
return f.useCallback(function () {
e(function (e) {
return e + 1
})
}, [])
}),
(t.isPlainObject = function (e) {
if (!e || 'object' != typeof e) return !1
var t = Object.getPrototypeOf(e)
return !t || t === Object.prototype
}),
(t.getSymbol = function (e) {
return 'function' == typeof Symbol ? Symbol.for(e) : '__$mobx-react ' + e + '__'
})
var i = {}
t.getGlobal = function () {
return 'undefined' != typeof window ? window : 'undefined' != typeof global ? global : 'undefined' != typeof self ? self : i
}
}) /*!node_modules/mobx-react-lite/lib/observerBatching.js*/
amis.define('08b96f8', function (e, t, n, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('30f4e61'),
c = e('5743f9e'),
i = c.getSymbol('observerBatching')
function a(e) {
e()
}
;(t.defaultNoopBatch = a),
(t.observerBatching = function (e) {
e || (e = a), r.configure({ reactionScheduler: e }), (c.getGlobal()[i] = !0)
}),
(t.isObserverBatched = function () {
return !!c.getGlobal()[i]
})
}) /*!node_modules/mobx-react-lite/lib/staticRendering.js*/
amis.define('6f2afca', function (e, n, i, t) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var c = !1
;(n.useStaticRendering = function (e) {
c = e
}),
(n.isUsingStaticRendering = function () {
return c
})
}) /*!node_modules/mobx-react-lite/lib/printDebugValue.js*/
amis.define('f6931cd', function (e, n, t, r) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var u = e('30f4e61')
n.printDebugValue = function (e) {
return u.getDependencyTree(e)
}
}) /*!node_modules/mobx-react-lite/lib/reactionCleanupTracking.js*/
amis.define('a58851e', function (e, n, t, o) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 }),
(n.createTrackingData = function (e) {
return { cleanAt: Date.now() + n.CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS, reaction: e }
}),
(n.CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS = 1e4),
(n.CLEANUP_TIMER_LOOP_MILLIS = 1e4)
var c,
i = new Set()
function a() {
void 0 === c && (c = setTimeout(r, n.CLEANUP_TIMER_LOOP_MILLIS))
}
function r() {
c = void 0
var e = Date.now()
i.forEach(function (n) {
var t = n.current
t && e >= t.cleanAt && (t.reaction.dispose(), (n.current = null), i.delete(n))
}),
i.size > 0 && a()
}
;(n.scheduleCleanupOfReactionIfLeaked = function (e) {
i.add(e), a()
}),
(n.recordReactionAsCommitted = function (e) {
i.delete(e)
}),
(n.forceCleanupTimerToRunNowForTests = function () {
c && (clearTimeout(c), r())
}),
(n.resetCleanupScheduleForTests = function () {
c && (clearTimeout(c), (c = void 0)), i.clear()
})
}) /*!node_modules/mobx-react-lite/lib/useQueuedForceUpdate.js*/
amis.define('9c16bea', function (e, t, u, n) {
'use strict'
var r =
(this && this.__importDefault) ||
function (e) {
return e && e.__esModule ? e : { default: e }
}
Object.defineProperty(t, '__esModule', { value: !0 })
var o = r(e('ac704b9')),
a = !1,
c = []
;(t.useQueuedForceUpdate = function (e) {
return function () {
a ? c.push(e) : e()
}
}),
(t.useQueuedForceUpdateBlock = function (e) {
;(a = !0), (c = [])
try {
var t = e()
a = !1
var u = c.length > 0 ? c : void 0
return (
o.default.useLayoutEffect(
function () {
u &&
u.forEach(function (e) {
return e()
})
},
[u]
),
t
)
} finally {
a = !1
}
})
}) /*!node_modules/mobx-react-lite/lib/useObserver.js*/
amis.define('0f786b0', function (e, t, r, n) {
'use strict'
var u =
(this && this.__importDefault) ||
function (e) {
return e && e.__esModule ? e : { default: e }
}
Object.defineProperty(t, '__esModule', { value: !0 })
var c = e('30f4e61'),
a = u(e('ac704b9')),
i = e('f6931cd'),
o = e('a58851e'),
f = e('6f2afca'),
d = e('5743f9e'),
s = e('9c16bea'),
l = {}
function v(e) {
return 'observer' + e
}
t.useObserver = function (e, t, r) {
if ((void 0 === t && (t = 'observed'), void 0 === r && (r = l), f.isUsingStaticRendering())) return e()
var n = (r.useForceUpdate || d.useForceUpdate)(),
u = s.useQueuedForceUpdate(n),
p = a.default.useRef(null)
if (!p.current) {
var b = new c.Reaction(v(t), function () {
m.mounted ? u() : (b.dispose(), (p.current = null))
}),
m = o.createTrackingData(b)
;(p.current = m), o.scheduleCleanupOfReactionIfLeaked(p)
}
var R = p.current.reaction
return (
a.default.useDebugValue(R, i.printDebugValue),
a.default.useEffect(function () {
return (
o.recordReactionAsCommitted(p),
p.current
? (p.current.mounted = !0)
: ((p.current = {
reaction: new c.Reaction(v(t), function () {
u()
}),
cleanAt: 1 / 0
}),
u()),
function () {
p.current.reaction.dispose(), (p.current = null)
}
)
}, []),
s.useQueuedForceUpdateBlock(function () {
var t, r
if (
(R.track(function () {
try {
t = e()
} catch (e) {
r = e
}
}),
r)
)
throw r
return t
})
)
}
}) /*!node_modules/mobx-react-lite/lib/observer.js*/
amis.define('73461e9', function (e, r, t, n) {
'use strict'
var a =
(this && this.__assign) ||
function () {
return (
(a =
Object.assign ||
function (e) {
for (var r, t = 1, n = arguments.length; t < n; t++) for (var a in (r = arguments[t])) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a])
return e
}),
a.apply(this, arguments)
)
}
Object.defineProperty(r, '__esModule', { value: !0 })
var i = e('ac704b9'),
o = e('6f2afca'),
f = e('0f786b0')
r.observer = function (e, r) {
if (o.isUsingStaticRendering()) return e
var t,
n,
c,
u = a({ forwardRef: !1 }, r),
p = e.displayName || e.name,
d = function (r, t) {
return f.useObserver(function () {
return e(r, t)
}, p)
}
return (
(d.displayName = p),
(t = u.forwardRef ? i.memo(i.forwardRef(d)) : i.memo(d)),
(n = e),
(c = t),
Object.keys(n).forEach(function (e) {
s[e] || Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(n, e))
}),
(t.displayName = p),
t
)
}
var s = { $$typeof: !0, render: !0, compare: !0, type: !0 }
}) /*!node_modules/mobx-react-lite/lib/ObserverComponent.js*/
amis.define('77f64e0', function (e, r, n, t) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var i = e('0f786b0')
function o(e) {
var r = e.children,
n = e.render,
t = r || n
return 'function' != typeof t ? null : i.useObserver(t)
}
function d(e, r, n, t, i) {
var o = 'children' === r ? 'render' : 'children',
d = 'function' == typeof e[r],
u = 'function' == typeof e[o]
return d && u
? new Error('MobX Observer: Do not use children and render in the same time in`' + n)
: d || u
? null
: new Error('Invalid prop `' + i + '` of type `' + typeof e[r] + '` supplied to `' + n + '`, expected `function`.')
}
;(r.Observer = o), (o.propTypes = { children: d, render: d }), (o.displayName = 'Observer')
}) /*!node_modules/mobx-react-lite/lib/useAsObservableSource.js*/
amis.define('1365ca8', function (e, r, t, n) {
'use strict'
var u =
(this && this.__read) ||
function (e, r) {
var t = 'function' == typeof Symbol && e[Symbol.iterator]
if (!t) return e
var n,
u,
o = t.call(e),
i = []
try {
for (; (void 0 === r || r-- > 0) && !(n = o.next()).done; ) i.push(n.value)
} catch (e) {
u = { error: e }
} finally {
try {
n && !n.done && (t = o.return) && t.call(o)
} finally {
if (u) throw u.error
}
}
return i
},
o =
(this && this.__importDefault) ||
function (e) {
return e && e.__esModule ? e : { default: e }
}
Object.defineProperty(r, '__esModule', { value: !0 })
var i = e('30f4e61'),
a = o(e('ac704b9'))
e('5743f9e')
function f(e, r) {
if (!r || void 0 !== e) {
0
var t = u(
a.default.useState(function () {
return i.observable(e, {}, { deep: !1 })
}),
1
)[0]
return (
i.runInAction(function () {
Object.assign(t, e)
}),
t
)
}
}
;(r.useAsObservableSourceInternal = f),
(r.useAsObservableSource = function (e) {
return f(e, !1)
})
}) /*!node_modules/mobx-react-lite/lib/useLocalStore.js*/
amis.define('92957be', function (e, t, n, r) {
'use strict'
var u =
(this && this.__importDefault) ||
function (e) {
return e && e.__esModule ? e : { default: e }
}
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('30f4e61'),
o = u(e('ac704b9')),
c = e('1365ca8'),
i = e('5743f9e')
t.useLocalStore = function (e, t) {
var n = c.useAsObservableSourceInternal(t, !0)
return o.default.useState(function () {
var t = a.observable(e(n))
return (
i.isPlainObject(t) &&
a.runInAction(function () {
Object.keys(t).forEach(function (e) {
var n,
r,
u = t[e]
'function' == typeof u &&
(t[e] =
((n = u),
(r = t),
function () {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
return a.transaction(function () {
return n.apply(r, e)
})
}))
})
}),
t
)
})[0]
}
}) /*!node_modules/mobx-react-lite/lib/index.js*/
amis.define('ad94cb1', function (e, r, s, a) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('8136cd5')
var c = e('ea012c8')
e('08b96f8').observerBatching(c.unstable_batchedUpdates)
var t = e('6f2afca')
;(r.isUsingStaticRendering = t.isUsingStaticRendering), (r.useStaticRendering = t.useStaticRendering)
var u = e('73461e9')
r.observer = u.observer
var b = e('0f786b0')
r.useObserver = b.useObserver
var v = e('77f64e0')
r.Observer = v.Observer
var d = e('5743f9e')
r.useForceUpdate = d.useForceUpdate
var i = e('1365ca8')
r.useAsObservableSource = i.useAsObservableSource
var o = e('92957be')
r.useLocalStore = o.useLocalStore
var n = e('9c16bea')
;(r.useQueuedForceUpdate = n.useQueuedForceUpdate), (r.useQueuedForceUpdateBlock = n.useQueuedForceUpdateBlock)
var f = e('08b96f8')
;(r.isObserverBatched = f.isObserverBatched), (r.observerBatching = f.observerBatching)
}) /*!node_modules/mobx-react/dist/mobxreact.cjs.production.min.js*/
amis.define('b2aba38', function (require, exports, module, define) {
'use strict'
Object.defineProperty(exports, '__esModule', { value: !0 })
var e,
r = require('30f4e61'),
t = require('ac704b9'),
n = (e = t) && 'object' == typeof e && 'default' in e ? e.default : e,
o = require('ad94cb1'),
a = 0,
i = {}
function s(e) {
return (
i[e] ||
(i[e] = (function (e) {
if ('function' == typeof Symbol) return Symbol(e)
var r = '__$mobx-react ' + e + ' (' + a + ')'
return a++, r
})(e)),
i[e]
)
}
function c(e, r) {
if (u(e, r)) return !0
if ('object' != typeof e || null === e || 'object' != typeof r || null === r) return !1
var t = Object.keys(e),
n = Object.keys(r)
if (t.length !== n.length) return !1
for (var o = 0; o < t.length; o++) if (!Object.hasOwnProperty.call(r, t[o]) || !u(e[t[o]], r[t[o]])) return !1
return !0
}
function u(e, r) {
return e === r ? 0 !== e || 1 / e == 1 / r : e != e && r != r
}
var f = {
$$typeof: 1,
render: 1,
compare: 1,
type: 1,
childContextTypes: 1,
contextType: 1,
contextTypes: 1,
defaultProps: 1,
getDefaultProps: 1,
getDerivedStateFromError: 1,
getDerivedStateFromProps: 1,
mixins: 1,
propTypes: 1
}
function l(e, r, t) {
Object.hasOwnProperty.call(e, r) ? (e[r] = t) : Object.defineProperty(e, r, { enumerable: !1, configurable: !0, writable: !0, value: t })
}
var p = s('patchMixins'),
b = s('patchedDefinition')
function d(e, r) {
for (var t = this, n = arguments.length, o = new Array(n > 2 ? n - 2 : 0), a = 2; a < n; a++) o[a - 2] = arguments[a]
r.locks++
try {
var i
return null != e && (i = e.apply(this, o)), i
} finally {
r.locks--,
0 === r.locks &&
r.methods.forEach(function (e) {
e.apply(t, o)
})
}
}
function y(e, r) {
return function () {
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++) n[o] = arguments[o]
d.call.apply(d, [this, e, r].concat(n))
}
}
function v(e, r, t) {
var n = (function (e, r) {
var t = (e[p] = e[p] || {}),
n = (t[r] = t[r] || {})
return (n.locks = n.locks || 0), (n.methods = n.methods || []), n
})(e, r)
n.methods.indexOf(t) < 0 && n.methods.push(t)
var o = Object.getOwnPropertyDescriptor(e, r)
if (!o || !o[b]) {
var a = (function e(r, t, n, o, a) {
var i,
s = y(a, o)
return (
((i = {})[b] = !0),
(i.get = function () {
return s
}),
(i.set = function (a) {
if (this === r) s = y(a, o)
else {
var i = e(this, t, n, o, a)
Object.defineProperty(this, t, i)
}
}),
(i.configurable = !0),
(i.enumerable = n),
i
)
})(e, r, o ? o.enumerable : void 0, n, e[r])
Object.defineProperty(e, r, a)
}
}
var m = r.$mobx || '$mobx',
h = s('isMobXReactObserver'),
O = s('isUnmounted'),
g = s('skipRender'),
w = s('isForcingUpdate')
function j(e) {
var r = e.prototype
if (e[h]) {
var n = x(r)
console.warn('The provided component class (' + n + ') \n has already been declared as an observer component.')
} else e[h] = !0
if (r.componentWillReact) throw new Error('The componentWillReact life-cycle event is no longer supported')
if (e.__proto__ !== t.PureComponent)
if (r.shouldComponentUpdate) {
if (r.shouldComponentUpdate !== R) throw new Error('It is not allowed to use shouldComponentUpdate in observer based components.')
} else r.shouldComponentUpdate = R
S(r, 'props'), S(r, 'state')
var a = r.render
return (
(r.render = function () {
return P.call(this, a)
}),
v(r, 'componentWillUnmount', function () {
var e
if (!0 !== o.isUsingStaticRendering() && (null === (e = this.render[m]) || void 0 === e || e.dispose(), (this[O] = !0), !this.render[m])) {
var r = x(this)
console.warn(
'The reactive render of an observer class component (' +
r +
') \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.'
)
}
}),
e
)
}
function x(e) {
return e.displayName || e.name || (e.constructor && (e.constructor.displayName || e.constructor.name)) || ''
}
function P(e) {
var n = this
if (!0 === o.isUsingStaticRendering()) return e.call(this)
l(this, g, !1), l(this, w, !1)
var a = x(this),
i = e.bind(this),
s = !1,
c = new r.Reaction(a + '.render()', function () {
if (!s && ((s = !0), !0 !== n[O])) {
var e = !0
try {
l(n, w, !0), n[g] || t.Component.prototype.forceUpdate.call(n), (e = !1)
} finally {
l(n, w, !1), e && c.dispose()
}
}
})
function u() {
s = !1
var e = void 0,
t = void 0
if (
(c.track(function () {
try {
t = r._allowStateChanges(!1, i)
} catch (r) {
e = r
}
}),
e)
)
throw e
return t
}
return (c.reactComponent = this), (u[m] = c), (this.render = u), u.call(this)
}
function R(e, r) {
return (
o.isUsingStaticRendering() &&
console.warn('[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.'),
this.state !== r || !c(this.props, e)
)
}
function S(e, t) {
var n = s('reactProp_' + t + '_valueHolder'),
o = s('reactProp_' + t + '_atomHolder')
function a() {
return this[o] || l(this, o, r.createAtom('reactive ' + t)), this[o]
}
Object.defineProperty(e, t, {
configurable: !0,
enumerable: !0,
get: function () {
var e = !1
return (
r._allowStateReadsStart && r._allowStateReadsEnd && (e = r._allowStateReadsStart(!0)),
a.call(this).reportObserved(),
r._allowStateReadsStart && r._allowStateReadsEnd && r._allowStateReadsEnd(e),
this[n]
)
},
set: function (e) {
this[w] || c(this[n], e) ? l(this, n, e) : (l(this, n, e), l(this, g, !0), a.call(this).reportChanged(), l(this, g, !1))
}
})
}
var C = 'function' == typeof Symbol && Symbol.for,
E = C
? Symbol.for('react.forward_ref')
: 'function' == typeof t.forwardRef &&
t.forwardRef(function (e) {
return null
}).$$typeof,
A = C
? Symbol.for('react.memo')
: 'function' == typeof t.memo &&
t.memo(function (e) {
return null
}).$$typeof
function k(e) {
if (
(!0 === e.isMobxInjector && console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),
A && e.$$typeof === A)
)
throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.")
if (E && e.$$typeof === E) {
var r = e.render
if ('function' != typeof r) throw new Error('render property of ForwardRef was not a function')
return t.forwardRef(function () {
var e = arguments
return t.createElement(o.Observer, null, function () {
return r.apply(void 0, e)
})
})
}
return 'function' != typeof e || (e.prototype && e.prototype.render) || e.isReactClass || Object.prototype.isPrototypeOf.call(t.Component, e) ? j(e) : o.observer(e)
}
function U() {
return (U =
Object.assign ||
function (e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}
return e
}).apply(this, arguments)
}
var _ = n.createContext({})
function M(e) {
var r = e.children,
t = (function (e, r) {
if (null == e) return {}
var t,
n,
o = {},
a = Object.keys(e)
for (n = 0; n < a.length; n++) r.indexOf((t = a[n])) >= 0 || (o[t] = e[t])
return o
})(e, ['children']),
o = n.useContext(_),
a = n.useRef(U({}, o, t))
return n.createElement(_.Provider, { value: a.current }, r)
}
function T(e, r, t, o) {
var a,
i,
s,
c = n.forwardRef(function (t, o) {
var a = U({}, t),
i = n.useContext(_)
return Object.assign(a, e(i || {}, a) || {}), o && (a.ref = o), n.createElement(r, a)
})
return (
o && (c = k(c)),
(c.isMobxInjector = !0),
(a = r),
(i = c),
(s = Object.getOwnPropertyNames(Object.getPrototypeOf(a))),
Object.getOwnPropertyNames(a).forEach(function (e) {
f[e] || -1 !== s.indexOf(e) || Object.defineProperty(i, e, Object.getOwnPropertyDescriptor(a, e))
}),
(c.wrappedComponent = r),
(c.displayName = (function (e, r) {
var t = e.displayName || e.name || (e.constructor && e.constructor.name) || 'Component'
return r ? 'inject-with-' + r + '(' + t + ')' : 'inject(' + t + ')'
})(r, t)),
c
)
}
function $(e) {
return function (r, t) {
return (
e.forEach(function (e) {
if (!(e in t)) {
if (!(e in r)) throw new Error("MobX injector: Store '" + e + "' is not available! Make sure it is provided by some Provider")
t[e] = r[e]
}
}),
t
)
}
}
M.displayName = 'MobXProvider'
var q = s('disposeOnUnmountProto'),
D = s('disposeOnUnmountInst')
function N() {
var e = this
;[].concat(this[q] || [], this[D] || []).forEach(function (r) {
var t = 'string' == typeof r ? e[r] : r
null != t &&
(Array.isArray(t)
? t.map(function (e) {
return e()
})
: t())
})
}
function I(e) {
function t(t, n, o, a, i, s) {
for (var c = arguments.length, u = new Array(c > 6 ? c - 6 : 0), f = 6; f < c; f++) u[f - 6] = arguments[f]
return r.untracked(function () {
return (
(a = a || '<>'),
(s = s || o),
null == n[o]
? t
? new Error('The ' + i + ' `' + s + '` is marked as required in `' + a + '`, but its value is `' + (null === n[o] ? 'null' : 'undefined') + '`.')
: null
: e.apply(void 0, [n, o, a, i, s].concat(u))
)
})
}
var n = t.bind(null, !1)
return (n.isRequired = t.bind(null, !0)), n
}
function X(e) {
var r = typeof e
return Array.isArray(e)
? 'array'
: e instanceof RegExp
? 'object'
: (function (e, r) {
return 'symbol' === e || 'Symbol' === r['@@toStringTag'] || ('function' == typeof Symbol && r instanceof Symbol)
})(r, e)
? 'symbol'
: r
}
function F(e, t) {
return I(function (n, o, a, i, s) {
return r.untracked(function () {
if (e && X(n[o]) === t.toLowerCase()) return null
var i
switch (t) {
case 'Array':
i = r.isObservableArray
break
case 'Object':
i = r.isObservableObject
break
case 'Map':
i = r.isObservableMap
break
default:
throw new Error('Unexpected mobxType: ' + t)
}
var c = n[o]
if (!i(c)) {
var u = (function (e) {
var r = X(e)
if ('object' === r) {
if (e instanceof Date) return 'date'
if (e instanceof RegExp) return 'regexp'
}
return r
})(c),
f = e ? ' or javascript `' + t.toLowerCase() + '`' : ''
return new Error('Invalid prop `' + s + '` of type `' + u + '` supplied to `' + a + '`, expected `mobx.Observable' + t + '`' + f + '.')
}
return null
})
})
}
function L(e, t) {
return I(function (n, o, a, i, s) {
for (var c = arguments.length, u = new Array(c > 5 ? c - 5 : 0), f = 5; f < c; f++) u[f - 5] = arguments[f]
return r.untracked(function () {
if ('function' != typeof t) return new Error('Property `' + s + '` of component `' + a + '` has invalid PropType notation.')
var r = F(e, 'Array')(n, o, a, i, s)
if (r instanceof Error) return r
for (var c = n[o], f = 0; f < c.length; f++) if ((r = t.apply(void 0, [c, f, a, i, s + '[' + f + ']'].concat(u))) instanceof Error) return r
return null
})
})
}
var W = {
observableArray: F(!1, 'Array'),
observableArrayOf: L.bind(null, !1),
observableMap: F(!1, 'Map'),
observableObject: F(!1, 'Object'),
arrayOrObservableArray: F(!0, 'Array'),
arrayOrObservableArrayOf: L.bind(null, !0),
objectOrObservableObject: F(!0, 'Object')
}
if (!t.Component) throw new Error('mobx-react requires React to be available')
if (!r.observable) throw new Error('mobx-react requires mobx to be available')
Object.defineProperty(exports, 'Observer', {
enumerable: !0,
get: function () {
return o.Observer
}
}),
Object.defineProperty(exports, 'isUsingStaticRendering', {
enumerable: !0,
get: function () {
return o.isUsingStaticRendering
}
}),
Object.defineProperty(exports, 'observerBatching', {
enumerable: !0,
get: function () {
return o.observerBatching
}
}),
Object.defineProperty(exports, 'useAsObservableSource', {
enumerable: !0,
get: function () {
return o.useAsObservableSource
}
}),
Object.defineProperty(exports, 'useLocalStore', {
enumerable: !0,
get: function () {
return o.useLocalStore
}
}),
Object.defineProperty(exports, 'useObserver', {
enumerable: !0,
get: function () {
return o.useObserver
}
}),
Object.defineProperty(exports, 'useStaticRendering', {
enumerable: !0,
get: function () {
return o.useStaticRendering
}
}),
(exports.MobXProviderContext = _),
(exports.PropTypes = W),
(exports.Provider = M),
(exports.disposeOnUnmount = function e(r, t) {
if (Array.isArray(t))
return t.map(function (t) {
return e(r, t)
})
var o = Object.getPrototypeOf(r).constructor,
a = Object.getPrototypeOf(r.constructor),
i = Object.getPrototypeOf(Object.getPrototypeOf(r))
if (o !== n.Component && o !== n.PureComponent && a !== n.Component && a !== n.PureComponent && i !== n.Component && i !== n.PureComponent)
throw new Error('[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.')
if ('string' != typeof t && 'function' != typeof t && !Array.isArray(t)) throw new Error('[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.')
var s = !!r[q] || !!r[D]
return ('string' == typeof t ? r[q] || (r[q] = []) : r[D] || (r[D] = [])).push(t), s || v(r, 'componentWillUnmount', N), 'string' != typeof t ? t : void 0
}),
(exports.inject = function () {
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++) r[t] = arguments[t]
if ('function' == typeof arguments[0]) {
var n = arguments[0]
return function (e) {
return T(n, e, n.name, !0)
}
}
return function (e) {
return T($(r), e, r.join('-'), !1)
}
}),
(exports.observer = k)
}) /*!node_modules/mobx-react/dist/index.js*/
amis.define('0d0462d', function (e, i, s, t) {
'use strict'
s.exports = e('b2aba38')
}) /*!node_modules/amis-core/lib/utils/offset.js*/
amis.define('05bc36b', function (t, e, n, i) {
'use strict'
function o(t) {
var e = null == t ? void 0 : t.ownerDocument,
n = { top: 0, left: 0, height: 0, width: 0 },
i = e && e.documentElement
return i && i.contains(t)
? (void 0 !== t.getBoundingClientRect && (n = t.getBoundingClientRect()),
(n = { top: n.top + i.scrollTop - (i.clientTop || 0), left: n.left + i.scrollLeft - (i.clientLeft || 0), width: n.width, height: n.height }))
: n
}
Object.defineProperty(e, '__esModule', { value: !0 }), (e.default = o), (e.offset = o)
}) /*!node_modules/amis-core/lib/utils/offsetParent.js*/
amis.define('dae8b22', function (e, t, n, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
function f(e) {
for (
var t, n = null == e ? void 0 : e.ownerDocument, o = e && e.offsetParent;
(t = o) && 'offsetParent' in t && 'HTML' !== o.nodeName && 'static' === getComputedStyle(o).getPropertyValue('position');
)
o = o.offsetParent
return o || n.documentElement
}
;(t.default = f), (t.offsetParent = f)
}) /*!node_modules/amis-core/lib/utils/position.js*/
amis.define('1d5900b', function (e, t, r, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
i = e('05bc36b'),
l = e('dae8b22')
function a(e, t) {
var r,
o = { top: 0, left: 0 }
if ('fixed' === getComputedStyle(e).getPropertyValue('position')) r = e.getBoundingClientRect()
else {
var a = t || l.offsetParent(e)
if (((r = i.offset(e)), a === e)) return { top: 0, left: 0, width: r.width, height: r.height }
'html' !==
(function (e) {
return e.nodeName && e.nodeName.toLowerCase()
})(a) && (o = i.offset(a))
var p = String(getComputedStyle(a).getPropertyValue('border-top-width') || 0)
o.top += parseInt(p, 10) - a.scrollTop || 0
var f = String(getComputedStyle(a).getPropertyValue('border-left-width') || 0)
o.left += parseInt(f, 10) - a.scrollLeft || 0
}
var g = String(getComputedStyle(e).getPropertyValue('margin-top') || 0),
d = String(getComputedStyle(e).getPropertyValue('margin-left') || 0)
return n.__assign(n.__assign({}, r), { top: r.top - o.top - (parseInt(g, 10) || 0), left: r.left - o.left - (parseInt(d, 10) || 0) })
}
;(t.default = a), (t.position = a)
}) /*!node_modules/amis-core/lib/utils/debug.js*/
amis.define('a3bbeb2', function (e, t, o, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('68b98b9'),
i = e('ac704b9'),
r = e('cb263ff'),
d = e('1e5c4ba'),
s = e('30f4e61'),
c = e('0d0462d'),
l = e('939b8bb'),
u = e('1d5900b')
function p(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var v = p(i),
b = p(r),
m = e('ac704b9'),
f = (m.default || m).createElement
;(m.default || m).Fragment
var g = v.default.lazy(function () {
return Promise.resolve()
.then(function () {
return new Promise(function (t) {
e(['30934f9'], function (e) {
t(a.__importStar(e))
})
})
})
.then(l.importLazyComponent)
})
!(function () {
function e() {
;(this.cat = ''), (this.level = ''), (this.msg = ''), (this.ext = '')
}
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'cat', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'level', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'msg', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'ext', void 0)
})()
var y = new ((function () {
function e() {
;(this.tab = 'log'), (this.position = 'right'), (this.logs = []), (this.isExpanded = !1), (this.inspectMode = !1)
}
return (
a.__decorate([s.observable, a.__metadata('design:type', String)], e.prototype, 'tab', void 0),
a.__decorate([s.observable, a.__metadata('design:type', String)], e.prototype, 'position', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Array)], e.prototype, 'logs', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'isExpanded', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Object)], e.prototype, 'inspectMode', void 0),
a.__decorate([s.observable, a.__metadata('design:type', String)], e.prototype, 'hoverId', void 0),
a.__decorate([s.observable, a.__metadata('design:type', String)], e.prototype, 'activeId', void 0),
a.__decorate([s.observable, a.__metadata('design:type', Number)], e.prototype, 'ellipsisThreshold', void 0),
e
)
})())(),
h = {},
_ = c.observer(function (e) {
var t,
o = e.store,
n = o.logs,
a = null !== (t = o.ellipsisThreshold) && void 0 !== t ? t : 50
return f(
v.default.Fragment,
null,
n.map(function (e, t) {
return f(
'div',
{ className: 'AMISDebug-logLine', key: 'log-'.concat(t) },
f('div', { className: 'AMISDebug-logLineMsg' }, '[', e.cat, '] ', e.msg),
e.ext
? f(
v.default.Suspense,
{ fallback: f('div', null, 'Loading...') },
f(g, { name: null, theme: 'monokai', src: JSON.parse(e.ext), collapsed: !0, enableClipboard: !1, displayDataTypes: !1, collapseStringsAfterLength: a, iconStyle: 'square' })
)
: null
)
})
)
}),
S = c.observer(function (e) {
for (
var t,
o,
n,
r,
d = e.store,
s = d.activeId,
c = h[s],
l = (null === (r = null === (n = null == c ? void 0 : c.component) || void 0 === n ? void 0 : n.props) || void 0 === r ? void 0 : r.data) || {},
u = [l];
Object.getPrototypeOf(l) !== Object.prototype;
) {
var p = Object.getPrototypeOf(l)
if ('[object Object]' !== Object.prototype.toString.call(p)) break
u.push(p), (l = p)
}
var m = []
if (Object.keys(u[0]).length || u.length > 1) {
var y = 0
try {
for (var S = a.__values(u), x = S.next(); !x.done; x = S.next()) {
var I = x.value
m.push(
f(
'div',
{ key: 'data-'.concat(y) },
f('h3', null, 'Data Level-', y),
f(
v.default.Suspense,
{ fallback: f('div', null, 'Loading...') },
f(g, { key: 'dataview-'.concat(I), name: null, theme: 'monokai', src: I, collapsed: 0 !== y, enableClipboard: !1, displayDataTypes: !1, iconStyle: 'square' })
)
)
),
(y += 1)
}
} catch (e) {
t = { error: e }
} finally {
try {
x && !x.done && (o = S.return) && o.call(S)
} finally {
if (t) throw t.error
}
}
}
var N = i.useRef(null),
D = a.__read(i.useState(!1), 2),
C = D[0],
E = D[1],
M = a.__read(i.useState(0), 2),
k = M[0],
O = M[1],
A = a.__read(i.useState(0), 2),
j = A[0],
L = A[1]
return (
i.useEffect(
function () {
var e = function () {
E(!1)
},
t = function (e) {
if (C) {
var t = 'right' === d.position ? e.clientX - k : k - e.clientX,
o = N.current,
n = Math.max(200, j - t)
return (o.style.width = n + 'px'), e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault(), (e.cancelBubble = !0), !1
}
}
return (
C && (document.addEventListener('mousemove', t), document.addEventListener('mouseup', e)),
function () {
C && (document.removeEventListener('mousemove', t), document.removeEventListener('mouseup', e))
}
)
},
[C]
),
f(
'div',
{ className: b.default('AMISDebug', { 'is-expanded': d.isExpanded, 'is-left': 'left' === d.position }), ref: N },
f(
'div',
{
className: 'AMISDebug-toggle',
title: 'open debug',
onClick: function () {
d.isExpanded = !0
}
},
d.isExpanded ? f('i', { className: 'fas fa-times' }) : f('i', { className: 'fas fa-bug' })
),
f(
'div',
{ className: b.default('AMISDebug-content') },
f(
'div',
{
className: 'AMISDebug-close',
title: 'Close',
onClick: function () {
;(d.isExpanded = !1), (d.activeId = ''), (d.hoverId = '')
}
},
f('i', { className: 'fas fa-times' })
),
f('div', {
className: 'AMISDebug-resize',
onMouseDown: function (e) {
O(e.clientX), L(parseInt(getComputedStyle(N.current).getPropertyValue('width'), 10)), E(!0)
}
}),
f(
'div',
{ className: 'AMISDebug-tab' },
f(
'button',
{
className: b.default({ active: 'log' === d.tab }),
onClick: function () {
d.tab = 'log'
}
},
'Log'
),
f(
'button',
{
className: b.default({ active: 'inspect' === d.tab }),
onClick: function () {
d.tab = 'inspect'
}
},
'Inspect'
)
),
f(
'div',
{ className: 'AMISDebug-changePosition' },
'right' === d.position
? f('i', {
className: 'fas fa-chevron-left',
title: 'move to left',
onClick: function () {
d.position = 'left'
}
})
: f('i', {
className: 'fas fa-chevron-right',
title: 'move to right',
onClick: function () {
d.position = 'right'
}
})
),
'log' === d.tab
? f(
'div',
{ className: 'AMISDebug-log' },
f(
'button',
{
onClick: function () {
d.logs = []
}
},
'Clear Log'
),
f(_, { store: d })
)
: null,
'inspect' === d.tab
? f(
'div',
{ className: 'AMISDebug-inspect' },
s ? f(v.default.Fragment, null, f('h3', null, 'Component:', ' ', f('span', { className: 'primary' }, c.name)), m) : 'Click component to display inspect'
)
: null
)
)
)
})
function x(e) {
if (y.isExpanded) {
var t = e.target.closest('[data-debug-id]')
t && (y.hoverId = t.getAttribute('data-debug-id'))
}
}
function I(e) {
if (y.isExpanded) {
var t = e.target.closest('[data-debug-id]')
t && !t.closest('.AMISDebug') && ((y.activeId = t.getAttribute('data-debug-id')), (y.tab = 'inspect'))
}
}
var N = document.createElement('div')
N.className = 'AMISDebug-hoverBox'
var D = document.createElement('div')
;(D.className = 'AMISDebug-activeBox'),
s.autorun(function () {
var e = y.hoverId,
t = document.querySelector('[data-debug-id="'.concat(e, '"]'))
if (t) {
var o = u.position(t, document.body)
;(N.style.top = ''.concat(o.top, 'px')), (N.style.left = ''.concat(o.left, 'px')), (N.style.width = ''.concat(o.width, 'px')), (N.style.height = ''.concat(o.height, 'px'))
} else N.style.top = '-999999px'
}),
s.autorun(function () {
var e = y.activeId,
t = document.querySelector('[data-debug-id="'.concat(e, '"]'))
if (t) {
var o = u.position(t, document.body)
;(D.style.top = ''.concat(o.top, 'px')), (D.style.left = ''.concat(o.left, 'px')), (D.style.width = ''.concat(o.width, 'px')), (D.style.height = ''.concat(o.height, 'px'))
} else D.style.top = '-999999px'
})
var C,
E = !1
var M = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this
return (t.debugId = l.uuidv4()), t
}
return (
a.__extends(t, e),
(t.prototype.componentDidMount = function () {
var e = d.findDOMNode(this)
if (e) {
var t = this.props.renderer
e.setAttribute('data-debug-id', this.debugId), (h[this.debugId] = { name: t.name, component: this.props.children })
}
}),
(t.prototype.componentDidUpdate = function (e) {
var t = this.props.renderer
h[this.debugId] && (h[this.debugId] = { name: t.name, component: this.props.children })
}),
(t.prototype.componentWillUnmount = function () {
delete h[this.debugId]
}),
(t.prototype.render = function () {
return this.props.children
}),
t
)
})(i.Component)
;(t.DebugWrapper = M),
(t.JsonView = g),
(t.debug = function (e, t, o) {
if (E) {
console.groupCollapsed('[amis debug]', t), console.debug(o), console.groupEnd()
var n = { cat: e, level: 'debug', msg: t, ext: JSON.stringify(o) }
y.logs.push(n)
}
}),
(t.disableDebug = function () {
E && ((E = !1), null == C || C(), document.body.removeChild(N), document.body.removeChild(D), document.removeEventListener('mousemove', x), document.removeEventListener('click', I))
}),
(t.enableDebug = function () {
if (!E) {
E = !0
var e = document.createElement('div')
document.body.appendChild(e)
var t = f(S, { store: y })
d.render(t, e),
(C = function () {
d.unmountComponentAtNode(e), document.body.removeChild(e)
}),
document.body.appendChild(N),
document.body.appendChild(D),
document.addEventListener('mousemove', x),
document.addEventListener('click', I)
}
}),
(t.traceProps = function (e, t, o) {
console.log(
o,
Object.keys(e)
.map(function (o) {
return e[o] !== t[o]
? 'data' === o
? 'data['.concat(
Object.keys(e[o])
.map(function (n) {
return e[o][n] !== t[o][n] ? ''.concat(n) : ''
})
.filter(function (e) {
return e
})
.join(', '),
']'
)
: o
: ''
})
.filter(function (e) {
return e
})
)
}),
(t.warning = function (e, t, o) {
if (E) {
var n = { cat: e, level: 'warn', msg: t, ext: JSON.stringify(o) }
console.groupCollapsed('amis debug', t), console.trace(n), console.groupEnd(), y.logs.push(n)
}
})
}) /*!node_modules/amis-core/lib/utils/api.js*/
amis.define('d9d4e46', function (e, t, r, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
o = e('1279020'),
s = e('c3389ff'),
i = e('48a08cf')
e('8b081ba')
var d = e('bbe84d0'),
u = e('3853df4'),
c = e('911be35'),
p = e('1c8d418')
e('8b641b6')
var l = e('575a22c'),
f = e('939b8bb'),
g = e('0910768'),
h = e('a3bbeb2')
function y(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var v = y(o),
_ = y(g),
m = /(?:^|raw\:)(get|post|put|delete|patch|options|head|jsonp|js):/i,
b = [],
w = !!document.documentMode
function q(e, t) {
if ((void 0 === t && (t = 'get'), 'string' == typeof e)) {
var r = m.test(e) ? RegExp.$1 : ''
r && (e = e.replace(r + ':', '')), (e = { method: r || t, url: e })
} else e = n.__assign({}, e)
return (e.url = 'string' == typeof e.url ? e.url.trim() : e.url), e
}
function O(e, t, r) {
void 0 === r && (r = {}), (e = q(e, r.method))
var a = r.autoAppend,
o = r.ignoreData,
i = n.__rest(r, ['autoAppend', 'ignoreData'])
if (
((e.config = n.__assign({}, i)),
(e.method = (e.method || r.method || 'get').toLowerCase()),
e.headers && (e.headers = p.dataMapping(e.headers, t, void 0, !1)),
e.requestAdaptor && 'string' == typeof e.requestAdaptor && (e.requestAdaptor = j(e.requestAdaptor, 'api', 'context')),
e.adaptor && 'string' == typeof e.adaptor && (e.adaptor = j(e.adaptor, 'payload', 'response', 'api', 'context')),
!t)
)
return e
if (t instanceof FormData || t instanceof Blob || t instanceof ArrayBuffer) return (e.data = t), e
var u = (e.url = e.url || ''),
l = void 0
try {
l = c.memoryParse(e.url)
} catch (t) {
return console.warn('api \u914d\u7f6e\u8bed\u6cd5\u51fa\u9519\uff1a'.concat(t)), e
}
var g = l.body
.map(function (e, t) {
return 'raw' === e.type ? e.value : '__expression__'.concat(t, '__')
})
.join(''),
h = g.indexOf('?'),
y = function (e, r, a) {
return (
void 0 === r && (r = 'url_encode'),
void 0 === a && (a = void 0),
e.replace(/__expression__(\d+)__/g, function (e, n) {
var o
return null !== (o = s.evaluate(l.body[n], t, { defaultFilter: r })) && void 0 !== o ? o : a
})
)
},
v = function (t) {
return f.qsstringify(
t,
(null == e ? void 0 : e.filterEmptyQuery)
? {
filter: function (e, t) {
return '' === t ? void 0 : t
}
}
: void 0
)
},
_ = function (e, t, r) {
var a = e.url.indexOf('?')
if (~a) {
var o = (e.query = n.__assign(n.__assign(n.__assign({}, f.qsparse(e.url.substring(a + 1))), e.query), t))
e.url = e.url.substring(0, a) + '?' + v(o)
} else {
e.query = n.__assign(n.__assign({}, e.query), t)
var s = v(r ? e.query : t)
s && (e.url = ''.concat(e.url, '?').concat(s))
}
return e
}
if (~h) {
var m = g.indexOf('#'),
b = f.qsparse(g.substring(h + 1, ~m && m > h ? m : void 0))
f.JSONTraverse(b, function (e, r, a) {
var n
'string' == typeof e && /^__expression__(\d+)__$/.test(e)
? (a[r] = null !== (n = s.evaluate(l.body[RegExp.$1].body, t)) && void 0 !== n ? n : '')
: 'string' == typeof e && (a[r] = y(a[r], 'raw', ''))
})
var w = y(g.substring(0, h), 'raw', '')
Object.assign(b, e.query), (e.url = w + (~w.indexOf('?') ? '&' : '?') + v((e.query = p.dataMapping(b, t, void 0, e.convertKeyToPath))) + (~m && m > h ? y(g.substring(m)) : ''))
} else e.url = y(g, 'raw', '')
if (o) return e
var O = e.data
if (
(e.data ? (e.body = e.data = p.dataMapping(e.data, t, void 0, e.convertKeyToPath)) : ('post' !== e.method && 'put' !== e.method && 'patch' !== e.method) || (e.body = e.data = t),
e.query && (e.query = p.dataMapping(e.query, t, void 0, e.convertKeyToPath)),
'get' === e.method || 'jsonp' === e.method || 'js' === e.method)
)
!e.data && ((!~u.indexOf('$') && a) || e.forceAppendDataToQuery)
? ((e.data = t), (e.query = n.__assign(n.__assign({}, e.query), t)))
: !1 === e.attachDataToQuery && e.data && ((!~u.indexOf('$') && a) || e.forceAppendDataToQuery) && (e = _(e, t, !1)),
e.data && !1 !== e.attachDataToQuery && delete (e = _(e, e.data, !0)).data
else if (e.method) {
var A = e.url.indexOf('?')
if (~A) {
b = e.query = n.__assign(n.__assign({}, f.qsparse(e.url.substring(A + 1))), e.query)
e.url = e.url.substring(0, A) + '?' + v(b)
} else {
var x = v(e.query)
x && (e.url = ''.concat(e.url, '?').concat(x))
}
}
return (
e.graphql
? 'get' === e.method
? (e.query = e.data = n.__assign(n.__assign({}, e.query), { query: e.graphql }))
: ('post' !== e.method && 'put' !== e.method && 'patch' !== e.method) || (e.body = e.data = { query: e.graphql, operationName: e.operationName, variables: d.cloneObject(e.data) })
: e.jsonql &&
((e.method = 'post'),
(e.jsonql = p.dataMapping(e.jsonql, d.extendObject(t, n.__assign(n.__assign({}, e.query), t), !1), void 0, !1, !0)),
(e.body = e.data = O && e.jsonql ? { data: e.data, jsonql: e.jsonql } : e.jsonql),
e.forceAppendDataToQuery && (e = _(e, t, !0))),
e
)
}
function A(e) {
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]
try {
var a = new (Function.bind.apply(Function, n.__spreadArray(n.__spreadArray([void 0], n.__read(t), !1), [e], !1)))()
return a
} catch (e) {
return console.warn(e), null
}
}
var x = Object.getPrototypeOf(function () {
return n.__awaiter(this, void 0, void 0, function () {
return n.__generator(this, function (e) {
return [2]
})
})
}).constructor
function j(e) {
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]
try {
var a = new (x.bind.apply(x, n.__spreadArray(n.__spreadArray([void 0], n.__read(t), !1), [e], !1)))()
return a
} catch (e) {
return console.warn(e), null
}
}
function D(e, t) {
var r,
a = e.data,
n = !0
if (!a) throw new Error('Response is empty')
if ('string' == typeof a) {
var o = (null === (r = e.headers) || void 0 === r ? void 0 : r['content-type']) || ''
if (e.headers && o.startsWith('text/') && !o.includes('markdown') && 'blob' !== t.responseType)
try {
if (void 0 === (a = JSON.parse(a))) throw new Error('Response should be JSON')
} catch (e) {
var s = 'string' == typeof a ? i.escapeHtml(a.substring(0, 100)) : ''
throw new Error('Response should be JSON\n '.concat(s))
}
else {
if ('blob' === t.responseType) throw new Error('Should have "Content-Disposition" in Header')
if (!o.includes('markdown')) throw new Error('Content is wrong content-type:"'.concat(o, '" content: ').concat(i.escapeHtml(a.substring(0, 100))))
}
}
a.hasOwnProperty('errorCode')
? ((a.status = a.errorCode), (a.msg = a.errorMessage || a.errorMsg))
: a.hasOwnProperty('errno')
? ((a.status = a.errno), (a.msg = a.errmsg || a.errstr || a.msg))
: a.hasOwnProperty('no')
? ((a.status = a.no), (a.msg = a.error || a.msg))
: a.hasOwnProperty('error') &&
('object' == typeof a.error && a.error.hasOwnProperty('code') ? ((a.status = a.error.code), (a.msg = a.error.message)) : ((a.status = a.error), (a.msg = a.errmsg || a.msg))),
a.hasOwnProperty('status') || (n = !1)
var u = { ok: !1 === n || 0 == a.status, status: !1 === n ? 0 : a.status, msg: a.msg || a.message, defaultMsg: a.defaultMsg, msgTimeout: a.msgTimeout, data: a.data || n ? a.data : a }
if ((a && a.type && (u.data = a), 422 == u.status && (u.errors = a.errors), h.debug('api', 'response', u), t.responseData && (u.ok || !f.isEmpty(u.data)))) {
h.debug('api', 'before dataMapping', u.data)
var c = p.dataMapping(t.responseData, d.createObject({ api: t }, S(u.data)), void 0, t.convertKeyToPath)
h.debug('api', 'after dataMapping', c), (u.data = c)
}
return u
}
function T(e, t, r) {
var a = this,
o = t.adaptor
return o
? e
.then(function (e) {
return n.__awaiter(a, void 0, void 0, function () {
var a
return n.__generator(this, function (s) {
switch (s.label) {
case 0:
return h.debug('api', 'before adaptor data', e.data), (null == (a = o(e.data, e, t, r)) ? void 0 : a.then) ? [4, a] : [3, 2]
case 1:
;(a = s.sent()), (s.label = 2)
case 2:
return h.debug('api', 'after adaptor data', a), [2, n.__assign(n.__assign({}, e), { data: a })]
}
})
})
})
.then(function (e) {
return D(e, t)
})
: e.then(function (e) {
return D(e, t)
})
}
function E(e, t) {
return new Promise(function (r, a) {
;(t.method = 'get'),
e(t).then(function (e) {
if ('string' == typeof e.data) {
var n = new Function('api', e.data)(t)
r({ status: 200, headers: {}, data: { status: 0, msg: '', data: n } })
} else a('must return string: ' + e.data)
})
})
}
function P(e) {
return new Promise(function (t, r) {
var a,
n = document.createElement('script'),
o = e.url
function s() {
n && ((n.onload = n.onreadystatechange = n.onerror = null), n.parentNode && n.parentNode.removeChild(n), (n = null))
}
n.async = !0
var i = (null === (a = e.query) || void 0 === a ? void 0 : a.callback) || 'axiosJsonpCallback' + f.uuid(),
d = window[i]
window[i] = function (e) {
;(window[i] = d), t({ data: e, status: 200, headers: {} })
}
var u = { _: new Date().getTime(), _callback: i }
;(o += (o.indexOf('?') >= 0 ? '&' : '?') + f.qsstringify(u)),
(n.onload = n.onreadystatechange =
function () {
;(n.readyState && !/loaded|complete/.test(n.readyState)) || s()
}),
(n.onerror = function () {
s()
r({ status: 0, headers: {} })
}),
(n.src = o),
document.head.appendChild(n)
})
}
function k(e) {
if (!e || 'string' != typeof e) return !1
var t = e.indexOf('://')
if (~t && t + 3 === e.length) return !1
try {
;(e = (~t ? '' : 'schema://domain'.concat('/' === e[0] ? '' : '/')) + e), new URL(e)
} catch (e) {
return !1
}
return !0
}
function C(e, t) {
return e.method === t.method && e.url === t.url && !f.isObjectShallowModified(e.data, t.data, !1)
}
function M(e) {
for (var t, r = Date.now(), a = 0, n = b.length; a < n; a++) {
var o = b[a]
if (r - o.requestTime > o.cache) b.splice(a, 1), n--, a--
else if (C(e, o)) {
t = o
break
}
}
return t
}
function F(e, t) {
return b.push(n.__assign(n.__assign({}, e), { cachedPromise: t, requestTime: Date.now() })), t
}
function S(e) {
var t
return void 0 === e ? (e = {}) : _.default(e) || (((t = {})[Array.isArray(e) ? 'items' : 'result'] = e), (e = t)), e
}
;(t.buildApi = O),
(t.callStrFunction = function (e, t) {
for (var r = [], a = 2; a < arguments.length; a++) r[a - 2] = arguments[a]
if ('function' == typeof e) return e.apply(this, r)
if ('string' == typeof e && e) {
var o = A.apply(void 0, n.__spreadArray([e], n.__read(t), !1))
return null == o ? void 0 : o.apply(this, r)
}
}),
(t.clearApiCache = function () {
b.splice(0, b.length)
}),
(t.getApiCache = M),
(t.isApiOutdated = function (e, t, r, a) {
var n
if (!t) return !1
if (void 0 === e && void 0 !== !t) return !0
if (((t = q(t)), (e = e ? q(e) : e), !1 === t.autoRefresh)) return !1
if ((e && e.url !== t.url) || !e) return !(!k(t.url) || (t.sendOn && !l.evalExpression(t.sendOn, a)))
var o = null !== (n = t.trackExpression) && void 0 !== n ? n : t.url
if ('string' != typeof o || !~o.indexOf('$')) return !1
var s = !1
return (
t.trackExpression || e.trackExpression
? (s = u.tokenize(e.trackExpression || '', r) !== u.tokenize(t.trackExpression || '', a))
: ((e = O(e, r, { ignoreData: !0 })), (t = O(t, a, { ignoreData: !0 })), (s = e.url !== t.url)),
!(!s || !k(t.url) || (t.sendOn && !l.evalExpression(t.sendOn, a)))
)
}),
(t.isApiOutdatedWithData = function (e, t, r, a) {
return !!t && (!e || f.isObjectShallowModified(O(q(e), r), O(q(t), a)))
}),
(t.isEffectiveApi = function (e, t, r, a) {
return !!e && !1 !== r && !(a && t && !l.evalExpression(a, t)) && (!('string' != typeof e || !e.length) || (!(!d.isObject(e) || !e.url) && !(e.sendOn && t && !l.evalExpression(e.sendOn, t))))
}),
(t.isSameApi = C),
(t.isValidApi = k),
(t.jsFetcher = E),
(t.jsonpFetcher = P),
(t.normalizeApi = q),
(t.normalizeApiResponseData = S),
(t.responseAdaptor = D),
(t.setApiCache = F),
(t.str2AsyncFunction = j),
(t.str2function = A),
(t.wrapAdaptor = T),
(t.wrapFetcher = function (e, t) {
if (e._wrappedFetcher) return e
var r = function (r, a, o) {
var s, i, d
return n.__awaiter(this, void 0, void 0, function () {
var u, c
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return ((r = O(r, a, o)).context = a), r.requestAdaptor ? (h.debug('api', 'before requestAdaptor', r), [4, r.requestAdaptor(r, a)]) : [3, 2]
case 1:
;(r = n.sent() || r), h.debug('api', 'after requestAdaptor', r), (n.label = 2)
case 2:
if (
(r.data && (r.data instanceof FormData || f.hasFile(r.data) || 'form-data' === r.dataType)
? (r.data = r.data instanceof FormData ? r.data : f.object2formData(r.data, r.qsOptions))
: r.data && 'string' != typeof r.data && 'form' === r.dataType
? ((r.data = f.qsstringify(r.data, r.qsOptions)), (r.headers = r.headers || (r.headers = {})), (r.headers['Content-Type'] = 'application/x-www-form-urlencoded'))
: r.data &&
'string' != typeof r.data &&
'json' === r.dataType &&
((r.data = JSON.stringify(r.data)), (r.headers = r.headers || (r.headers = {})), (r.headers['Content-Type'] = 'application/json')),
r.mockResponse)
)
return [2, T(Promise.resolve(r.mockResponse), r, a)]
if (!k(r.url)) throw new Error('invalid api url:'.concat(r.url))
return (
h.debug('api', 'request api', r),
null == t || t({ eventType: 'api', eventData: v.default(r, ['config', 'data', 'body']) }, r.data),
'jsonp' === (null === (s = r.method) || void 0 === s ? void 0 : s.toLocaleLowerCase())
? [2, T(P(r), r, a)]
: 'js' === (null === (i = r.method) || void 0 === i ? void 0 : i.toLocaleLowerCase())
? [2, T(E(e, r), r, a)]
: 'number' == typeof r.cache && r.cache > 0
? [2, T((u = M(r)) ? u.cachedPromise : F(r, e(r)), r, a)]
: (w &&
r &&
'get' === (null === (d = r.method) || void 0 === d ? void 0 : d.toLocaleLowerCase()) &&
((c = '_t='.concat(Date.now())), -1 === r.url.indexOf('?') ? (r.url = r.url + '?'.concat(c)) : (r.url = r.url + '&'.concat(c))),
[2, T(e(r), r, a)])
)
}
})
})
}
return (r._wrappedFetcher = !0), r
})
}) /*!node_modules/amis-core/lib/utils/browser.js*/
amis.define('8dd52de', function (e, r, n, i) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var a,
t = !!(a = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)) && parseInt(a[2], 10),
o = navigator.vendor && navigator.vendor.indexOf('Apple') > -1 && navigator.userAgent && -1 == navigator.userAgent.indexOf('CriOS') && -1 == navigator.userAgent.indexOf('FxiOS')
;(r.chromeVersion = t), (r.isSafari = o)
}) /*!node_modules/amis-core/lib/utils/ColorScale.js*/
amis.define('22a4ae5', function (t, o, i, r) {
'use strict'
Object.defineProperty(o, '__esModule', { value: !0 })
var n = t('68b98b9'),
a = (function () {
function t(t, o, i, r) {
void 0 === r && (r = 1), (this.r = t), (this.g = o), (this.b = i), (this.a = r)
}
return (
(t.prototype.toRGBString = function () {
return 'rgb('
.concat(Math.floor(this.r * this.a), ',')
.concat(Math.floor(this.g * this.a), ',')
.concat(Math.floor(this.b * this.a), ')')
}),
(t.prototype.toRGBAString = function () {
return 'rgba('.concat(this.r, ',').concat(this.g, ',').concat(this.b, ',').concat(this.a, ')')
}),
(t.prototype.toHexString = function () {
return (t = this), (o = Math.floor(t.r * t.a)), (i = Math.floor(t.g * t.a)), (r = Math.floor(t.b * t.a)), '#'.concat(h(o)).concat(h(i)).concat(h(r))
var t, o, i, r
}),
t
)
})()
function h(t) {
var o = t.toString(16)
return 1 === o.length ? '0' + o : o
}
var s = (function () {
function t(t, o, i, r) {
var h
void 0 === r && (r = 1),
(this.min = isNaN(t) ? 0 : t),
(this.max = isNaN(o) ? 0 : o),
this.min === this.max && (this.max = this.min + 1),
this.max < this.min && ((h = n.__read([this.min, this.max], 2)), (this.max = h[0]), (this.min = h[1])),
i.length < 2 && (i = ['#FFEF9C', '#FF7127']),
(this.alpha = r),
(this.colorStops = i.map(function (t) {
return (function (t, o) {
var i
;(i = /^#(?:[0-9a-fA-F]{3})$/),
t.match(i) &&
(t = t
.substring(1)
.split('')
.map(function (t) {
return t + t
})
.join(''))
var r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t)
if (r) return new a(parseInt(r[1], 16), parseInt(r[2], 16), parseInt(r[3], 16), o)
throw new Error(''.concat(t, ' is not a valid hex color.'))
})(t, r)
}))
}
return (
(t.prototype.getColor = function (t) {
var o = this.colorStops.length
if (t < this.min) return this.colorStops[0]
if (t > this.max) return this.colorStops[o - 1]
var i = this.max - this.min,
r = (t - this.min) / i,
n = Math.max(Math.ceil(r * (o - 1)), 1),
h = this.colorStops[n - 1],
s = this.colorStops[n]
r = r * (o - 1) - (n - 1)
var c = Math.floor(r * s.r + (1 - r) * h.r),
e = Math.floor(r * s.g + (1 - r) * h.g),
f = Math.floor(r * s.b + (1 - r) * h.b)
return new a(c, e, f, this.alpha)
}),
t
)
})()
;(o.ColorScale = s), (o.default = s)
}) /*!node_modules/lodash/chunk.js*/
amis.define('55e3bda', function (r, a, e, n) {
var t = r('b925f70'),
i = r('7767ed2'),
f = r('0adc535'),
d = Math.ceil,
o = Math.max
e.exports = function (r, a, e) {
a = (e ? i(r, a, e) : void 0 === a) ? 1 : o(f(a), 0)
var n = null == r ? 0 : r.length
if (!n || a < 1) return []
for (var u = 0, c = 0, l = Array(d(n / a)); u < n; ) l[c++] = t(r, u, (u += a))
return l
}
}) /*!node_modules/amis-core/lib/utils/columnsSplit.js*/
amis.define('5e0783e', function (e, a, r, t) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var n = e('68b98b9')
function u(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('ac704b9')
var c = u(e('55e3bda')),
i = e('ac704b9'),
l = (i.default || i).createElement
;(i.default || i).Fragment,
(a.columnsSplit = function (e, a, r) {
if (Array.isArray(r) && r.length) {
var t = 0,
u = [],
i = Math.max(Math.round(12 / Math.max.apply(Math, n.__spreadArray([], n.__read(r), !1))), 1),
o = 'Grid-col--sm'.concat(i)
r.forEach(function (r, n) {
r &&
(u.push(
l(
'div',
{ className: a('Grid'), key: n },
Array.from({ length: r }).map(function (r, n) {
return t + n < e.length ? l('div', { key: n, className: a(o) }, e[t + n]) : null
})
)
),
(t += r))
}),
(e = u)
} else if ('number' == typeof r && r > 1) {
var d = 12 / r,
f = 'Grid-col--sm'.concat(d === Math.round(d) ? d : '')
e = c.default(e, r).map(function (e, t) {
return l(
'div',
{ className: a('Grid'), key: t },
Array.from({ length: r }).map(function (r, t) {
return l('div', { key: t, className: a(f) }, e[t])
})
)
})
}
return e
})
}) /*!node_modules/amis-core/lib/utils/concatData.js*/
amis.define('a3127fc', function (a, e, r, t) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var i = a('68b98b9'),
n = a('e74b24f'),
c = a('bbe84d0')
e.concatData = function (a, e, r) {
r = Array.isArray(r)
? r
: r
.split(',')
.map(function (a) {
return a.trim()
})
.filter(function (a) {
return a
})
var t = i.__assign({}, a),
u = !1
return (
e &&
r.forEach(function (r) {
var i = n.getVariable(e, r),
o = n.getVariable(a, r),
f = []
void 0 !== i && f.push(i), void 0 !== o && f.push(o), (u = !0), c.setVariable(t, r, [].concat.apply([], f))
}),
u ? t : a
)
}
}) /*!node_modules/amis-core/lib/utils/DataScope.js*/
amis.define('5c95135', function (e, r, t, i) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var s = e('68b98b9'),
n = e('939b8bb'),
a = e('027080a'),
o = { boolean: '\u5e03\u5c14', integer: '\u6574\u6570', number: '\u6570\u5b57', string: '\u6587\u672c', array: '\u6570\u7ec4', object: '\u5bf9\u8c61' },
p = (function () {
function e(e, r) {
;(this.children = []), (this.schemas = []), this.setSchemas(Array.isArray(e) ? e : [e]), (this.id = r)
}
return (
(e.prototype.addChild = function (r, t) {
var i = new e(t || { type: 'object', properties: {} }, r)
return this.children.push(i), (i.parent = this), i
}),
(e.prototype.removeChild = function (e) {
var r = this.children.findIndex(function (r) {
return 'string' == typeof e ? e === r.id : r === e
})
~r && (delete this.children[r].parent, this.children.splice(r, 1))
}),
(e.prototype.setSchemas = function (e) {
var r, t
this.schemas.splice(0, this.schemas.length)
try {
for (var i = s.__values(e), a = i.next(); !a.done; a = i.next()) {
var o = a.value
if ('object' !== o.type) throw new TypeError('data scope accept only object')
this.schemas.push(s.__assign({ $id: n.guid() }, o))
}
} catch (e) {
r = { error: e }
} finally {
try {
a && !a.done && (t = i.return) && t.call(i)
} finally {
if (r) throw r.error
}
}
return this
}),
(e.prototype.addSchema = function (e) {
return (e = s.__assign({ $id: n.guid() }, e)), this.schemas.push(e), this
}),
(e.prototype.removeSchema = function (e) {
var r = this.schemas.findIndex(function (r) {
return r.$id === e
})
return ~r && this.schemas.splice(r, 1), this
}),
(e.prototype.contains = function (e) {
for (var r = e; r; ) {
if (this === r) return !0
r = r.parent
}
return !1
}),
(e.prototype.assignSchema = function (e, r) {
var t, i
if (e.type && e.type === r.type) {
if ('array' === e.type)
return e.items
? Array.isArray(e.items)
? r.items
? Array.isArray(r.items)
? r.items
: s.__assign(s.__assign({}, e), { items: s.__spreadArray(s.__spreadArray([], s.__read(e.items), !1), [r.items], !1) })
: s.__assign(s.__assign({}, e), r)
: s.__assign(s.__assign({}, e), { items: this.assignSchema(e.items, r.items) })
: r
if ('object' === e.type && e.properties) {
var n = {}
try {
for (
var a = s.__values(Array.from(new Set(s.__spreadArray(s.__spreadArray([], s.__read(Object.keys(e.properties)), !1), s.__read(Object.keys(r.properties)), !1)))), o = a.next();
!o.done;
o = a.next()
) {
var p = o.value,
l = e.properties[p]
n[p] = l ? (r.properties[p] ? this.assignSchema(l, r.properties[p]) : l) : r.properties[p]
}
} catch (e) {
t = { error: e }
} finally {
try {
o && !o.done && (i = a.return) && i.call(a)
} finally {
if (t) throw t.error
}
}
return s.__assign(s.__assign({}, e), { properties: n })
}
return r
}
return Array.isArray(e.oneOf)
? s.__assign(s.__assign({}, e), { oneOf: s.__spreadArray(s.__spreadArray([], s.__read(e.oneOf), !1), [r], !1) })
: s.__assign(s.__assign({}, e), { oneOf: [e, r] })
}),
(e.prototype.getMergedSchema = function () {
var e = this,
r = { type: 'object', properties: {} }
return (
this.schemas.forEach(function (t) {
var i = t.properties || {}
Object.keys(i).forEach(function (t) {
var s = i[t]
r.properties[t] ? (r.properties[t] = e.assignSchema(r.properties[t], s)) : (r.properties[t] = s)
})
}),
r
)
}),
(e.prototype.buildOptions = function (e, r, t, i, a) {
var p,
l,
c,
u = this
void 0 === t && (t = { label: '', value: '' }), void 0 === i && (i = '')
var h = {
label: r.title || i,
value: '\u6210\u5458' === r.title ? '' : t.value,
path: '\u6210\u5458' === r.title ? '' : t.label,
type: r.type,
tag: null !== (l = null !== (p = r.typeLabel) && void 0 !== p ? p : o[r.type]) && void 0 !== l ? l : r.type,
description: r.description,
isMember: a,
disabled: '\u6210\u5458' === r.title
}
if (r.group) {
var d = e.findIndex(function (e) {
return e.label === r.group
})
~d ? e[d].children.push(h) : e.push({ label: r.group, value: '', children: [h] })
} else e.push(h)
'object' === r.type && r.properties
? ((h.children = []),
Object.keys(r.properties).forEach(function (e) {
var i,
s = r.properties[e]
u.buildOptions(
h.children,
s,
{ label: t.label + (t.label ? '.' : '') + (null !== (i = s.title) && void 0 !== i ? i : e), value: t.value + (t.value ? '.' : '') + e },
e,
'\u6210\u5458' === r.title
)
}))
: 'array' === r.type &&
(null === (c = r.items) || void 0 === c ? void 0 : c.properties) &&
((h.children = []),
this.buildOptions(h.children, s.__assign(s.__assign({ title: '\u6210\u5458' }, r.items), { disabled: !0 }), { label: t.label, value: t.value }, 'items', '\u6210\u5458' === r.title),
(h.children = n.mapTree(h.children, function (e) {
return s.__assign({}, e)
})))
}),
(e.prototype.getDataPropsAsOptions = function () {
var e = []
return this.buildOptions(e, this.getMergedSchema()), e[0].children
}),
(e.prototype.getSchemaByPath = function (e) {
var r,
t,
i = a.keyToPath(e)
try {
for (var n = s.__values(this.schemas), o = n.next(); !o.done; o = n.next()) {
var p = o.value,
l = i.reduce(function (e, r) {
return e && 'object' === e.type && e.properties ? e.properties[r] : null
}, p)
if (l) return l
}
} catch (e) {
r = { error: e }
} finally {
try {
o && !o.done && (t = n.return) && t.call(n)
} finally {
if (r) throw r.error
}
}
return null
}),
(e.prototype.getSchemaById = function (e) {
var r
return null === (r = this.schemas) || void 0 === r
? void 0
: r.find(function (r) {
return r.$id === e
})
}),
e
)
})()
;(r.DATASCHEMA_TYPE_MAP = o), (r.DataScope = p)
}) /*!node_modules/amis-core/lib/utils/DataSchema.js*/
amis.define('607aee2', function (t, r, e, o) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var i = t('68b98b9'),
n = t('5c95135'),
a = t('939b8bb'),
p = (function () {
function t(t) {
;(this.idMap = {}), (this.root = new n.DataScope(t, 'root')), (this.idMap.root = this.root), (this.current = this.root)
}
return (
(t.prototype.setSchema = function (t) {
return this.current.setSchemas(t), this
}),
(t.prototype.addSchema = function (t) {
return this.current.addSchema(t), this
}),
(t.prototype.removeSchema = function (t) {
return this.current.removeSchema(t), delete this.idMap[t], this
}),
(t.prototype.getSchemas = function () {
for (var t = [], r = this.current; r; ) t.push.apply(t, i.__spreadArray([], i.__read(r.schemas), !1)), (r = r.parent)
return t
}),
(t.prototype.addScope = function (t, r) {
if ((void 0 === r && (r = a.guid()), this.idMap[r])) throw new Error('scope id `' + r + '` already exists')
return (this.current = this.current.addChild(r, t)), (this.idMap[r] = this.current), this
}),
(t.prototype.removeScope = function (t) {
var r,
e = this.getScope(t)
if (!e.parent) throw new Error('cannot remove root scope')
return e.contains(this.current) && (this.current = e.parent), null === (r = e.parent) || void 0 === r || r.removeChild(e), delete this.idMap[e.id], this
}),
(t.prototype.hasScope = function (t) {
var r = 'string' == typeof t ? t : t.id
return !!this.idMap[r]
}),
(t.prototype.getScope = function (t) {
var r = 'string' == typeof t ? t : t.id
return this.idMap[r]
}),
(t.prototype.switchToRoot = function () {
return (this.current = this.root), this
}),
(t.prototype.switchTo = function (t) {
var r = this.getScope(t)
return (this.current = r), this
}),
(t.prototype.pushVariable = function (t, r) {
t.tag ? r.push({ label: t.tag, children: t.getDataPropsAsOptions() }) : r.push.apply(r, i.__spreadArray([], i.__read(t.getDataPropsAsOptions()), !1))
}),
(t.prototype.getDataPropsAsOptions = function () {
for (var t, r = [], e = this.current; e; ) {
if (e.group) {
var o = []
this.pushVariable(e, o)
var n = r.findIndex(function (t) {
return t.label === (null == e ? void 0 : e.group)
})
~n ? (t = r[n].children).push.apply(t, i.__spreadArray([], i.__read(o), !1)) : r.push({ label: e.group, children: o })
} else this.pushVariable(e, r)
e = e.parent
}
return r
}),
(t.prototype.getSchemaByPath = function (t) {
for (var r = this.current; r; ) {
var e = r.getSchemaByPath(t)
if (e) return e
r = r.parent
}
return null
}),
t
)
})()
r.DataSchema = p
}) /*!node_modules/amis-core/lib/utils/dom.js*/
amis.define('933bc12', function (t, e, o, i) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var n = t('68b98b9'),
r = t('1e5c4ba')
t('ac704b9')
var f = t('05bc36b'),
l = t('1d5900b'),
a = t('939b8bb')
function d(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var h = d(r),
u = t('ac704b9'),
s = (u.default || u).createElement
function c(t) {
var e
return (null === (e = h.default.findDOMNode(t)) || void 0 === e ? void 0 : e.ownerDocument) || document
}
function g(t) {
var e, o, i, n
return (
'BODY' === t.tagName
? ((o = window.innerWidth), (i = window.innerHeight), (n = c(t).documentElement.scrollTop || (null == t ? void 0 : t.scrollTop)))
: ((o = (e = f.offset(t)).width), (i = e.height), (n = t.scrollTop)),
{ width: o, height: i, scroll: n }
)
}
;(u.default || u).Fragment,
(e.calculatePosition = function (t, e, o, i, r, d) {
var h
void 0 === r && (r = 0), void 0 === d && (d = [0, 0])
var u = a.getScrollParent(i),
s = 'BODY' === i.tagName ? f.offset(o) : l.position(o, i),
c = f.offset(e),
p = c.height,
v = c.width,
w = i.getBoundingClientRect(),
m = e.getBoundingClientRect(),
b = e.offsetWidth ? m.width / e.offsetWidth : 1,
y = e.offsetHeight ? m.height / e.offsetHeight : 1,
x = 'auto' === t,
O = 'left-bottom-left-top',
T = 0,
_ = 0,
P = '',
M = '',
Y = (t = x ? 'left-bottom-left-top right-bottom-right-top left-top-left-bottom right-top-right-bottom '.concat(O) : t)
if ('asContextMenu' === t) {
;(T = s.left + 1 + v <= w.width ? s.left + 1 : s.left - v >= 0 ? s.left - v : Math.max(w.width - v, 10)), (_ = s.top + 1 + p <= w.height ? s.top + 1 : Math.max(w.height - p - 5, 10))
var C = n.__read(d, 2),
N = C[0],
B = void 0 === N ? 0 : N,
D = C[1]
return { positionLeft: (T + B) / b, positionTop: (_ + (void 0 === D ? 0 : D)) / y, arrowOffsetLeft: P, arrowOffsetTop: M, activePlacement: Y }
}
if (~t.indexOf('-'))
for (var L = t.split(/\s+/), X = {}; L.length; ) {
var H = (Y = L.shift())
if (x && 0 === L.length) {
var W = n.__read(O.split('-'), 4),
S = W[0],
j = W[1],
E = W[2],
R = W[3],
k = X.atX,
F = void 0 === k ? S : k,
I = X.atY,
K = void 0 === I ? j : I,
V = X.myX,
q = void 0 === V ? E : V,
z = X.myY
H = Y = [F, K, q, void 0 === z ? R : z].join('-')
}
var A = n.__read(H.split('-'), 4),
G = A[0],
J = A[1],
Q = A[2],
U = A[3]
if (
((Q = Q || G),
(U = U || J),
(T = 'left' === G ? s.left : 'right' === G ? s.left + s.width : s.left + s.width / 2),
(_ = 'top' === J ? s.top : 'bottom' === J ? s.top + s.height : s.top + s.height / 2),
(T -= 'left' === Q ? 0 : 'right' === Q ? v : v / 2),
(_ -= 'top' === U ? 0 : 'bottom' === U ? p : p / 2),
L.length || x)
) {
var Z = { x: w.x + T / b, y: w.y + _ / y, width: v, height: p },
$ = !1,
tt = !1
if (
(Z.x >= 0 && Z.x + Z.width < window.innerWidth + u.scrollLeft && (($ = !0), !X.atX && (X.atX = G), !X.myX && (X.myX = Q)),
Z.y >= 0 && Z.y + Z.height < window.innerHeight + u.scrollTop && ((tt = !0), !X.atY && (X.atY = J), !X.myY && (X.myY = U)),
$ && tt)
)
break
if (x && 0 === L.length) {
for (var et = e.offsetParent; et && 'static' === window.getComputedStyle(et).position; ) et = et.offsetParent
var ot = null === (h = null == et ? void 0 : et.getBoundingClientRect) || void 0 === h ? void 0 : h.call(et),
it = { x: (null == ot ? void 0 : ot.x) || 0, y: (null == ot ? void 0 : ot.y) || 0 }
tt || (_ = Math.max(10, window.innerHeight - Z.height) + u.scrollTop - it.y - 10), $ || (T = Math.max(10, window.innerWidth - Z.width) + u.scrollLeft - it.x)
}
}
}
else if ('left' === t || 'right' === t) {
T = 'left' === t ? s.left - v : s.left + s.width
var nt = (function (t, e, o, i) {
var n = g(o),
r = n.scroll,
f = n.height,
l = t - i - r,
a = t + i - r + e
return l < 0 ? -l : a > f ? f - a : 0
})((_ = s.top + (s.height - p) / 2), p, i, r)
;(_ += nt), (M = 50 * (1 - (2 * nt) / p) + '%')
} else if ('top' === t || 'bottom' === t) {
_ = 'top' === t ? s.top - p : s.top + s.height
var rt = (function (t, e, o, i) {
var n = g(o).width,
r = t - i,
f = t + i + e
return r < 0 ? -r : f > n ? n - f : 0
})((T = s.left + (s.width - v) / 2), v, i, r)
;(T += rt), (P = 50 * (1 - (2 * rt) / p) + '%')
} else {
if ('center' !== t) throw new Error('calcOverlayPosition(): No such placement of "'.concat(t, '" found.'))
;(T = s.left + (s.width - v) / 2), (_ = s.top + (s.height - p) / 2), (P = M = void 0)
}
var ft = n.__read(d, 2),
lt = ft[0],
at = void 0 === lt ? 0 : lt,
dt = ft[1],
ht = void 0 === dt ? 0 : dt
return { positionLeft: (T + at) / b, positionTop: (_ + ht) / y, arrowOffsetLeft: (P + at) / b, arrowOffsetTop: (M + ht) / y, activePlacement: Y }
}),
(e.getContainer = function (t, e) {
return (t = 'function' == typeof t ? t() : t), h.default.findDOMNode(t) || e
}),
(e.getStyleNumber = function (t, e) {
return (t && parseInt(getComputedStyle(t).getPropertyValue(e), 10)) || 0
}),
(e.ownerDocument = c),
(e.renderTextByKeyword = function (t, e) {
if (!t || 'string' != typeof t) return t
if (e && ~t.indexOf(e)) {
var o = t.indexOf(e),
i = o + e.length
return s('span', null, t.substring(0, o), s('span', { className: 'is-keyword' }, e), t.substring(i))
}
return t
})
}) /*!node_modules/amis-core/lib/utils/errors.js*/
amis.define('3f15357', function (r, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var i = r('68b98b9'),
o = (function (r) {
function e(e, t) {
var n = r.call(this, e) || this
return (n.type = 'ServerError'), (n.response = t), n
}
return i.__extends(e, r), e
})(Error)
e.ServerError = o
}) /*!node_modules/amis-core/lib/utils/highlight.js*/
amis.define('cde5cad', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a = e('2cb1945'),
s = e('ac704b9'),
i = (s.default || s).createElement
;(s.default || s).Fragment,
(t.highlight = function (e, t, n) {
if ((void 0 === n && (n = 'is-matched'), !t)) return e
e = String(e)
var r = a.string2regExp(t, !1, !0)
if (!r.test(e)) return e
var s = [],
u = 0,
l = null
for (r.lastIndex = 0; (l = r.exec(e)); ) {
var c = e.substring(u, l.index)
c && s.push(i('span', { key: s.length }, c)), l[0] && s.push(i('span', { className: n, key: s.length }, l[0])), (u = l.index + l[0].length)
}
var d = e.substring(u)
return d && s.push(i('span', { key: s.length }, d)), s
})
}) /*!node_modules/amis-core/lib/utils/icon.js*/
amis.define('0dc59d3', function (e, t, n, i) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('ac704b9'),
c = e('e98f234')
function r(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var l = r(a),
f = r(c),
s = e('ac704b9'),
u = (s.default || s).createElement
;(s.default || s).Fragment
t.generateIcon = function (e, t, n, i) {
if ((f.default(t) && 'icon' === t.type && t.icon && (t = t.icon), l.default.isValidElement(t))) return t
if ('string' != typeof t)
return f.default(t) && 'string' == typeof t.id && t.id.startsWith('svg-')
? u('svg', { className: e('icon', 'icon-object', n, i) }, u('use', { xlinkHref: '#'.concat(t.id.replace(/^svg-/, '')) }))
: void 0
var a = -1 !== (null == t ? void 0 : t.indexOf('.'))
return t ? (a ? u('img', { className: e(n, i), src: t, key: t }) : u('i', { className: e(n, t, i), key: t })) : null
}
}) /*!node_modules/amis-core/lib/utils/image.js*/
amis.define('67e77ca', function (e, n, t, o) {
'use strict'
function r(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
Object.defineProperty(n, '__esModule', { value: !0 })
var i = r(e('5ee9171')),
a = i.default(function (e) {
return new Promise(function (n, t) {
var o = new XMLHttpRequest()
;(o.onload = function () {
var e = new FileReader()
;(e.onloadend = function () {
n(e.result)
}),
e.readAsDataURL(o.response)
}),
(o.onerror = t),
o.open('GET', e),
(o.responseType = 'blob'),
o.send()
})
}),
u = i.default(function (e) {
return new Promise(function (n, t) {
var o = new Image()
;(o.onerror = t),
(o.onload = function () {
n({ width: o.width, height: o.height })
}),
(o.src = e)
})
})
;(n.getImageDimensions = u), (n.toDataURL = a)
}) /*!node_modules/amis-core/lib/actions/Action.js*/
amis.define('e913672', function (e, a, n, o) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var t = e('68b98b9'),
r = e('1279020')
e('939b8bb')
var i = e('575a22c')
e('c3389ff'), e('8b081ba')
var s = e('bbe84d0'),
c = e('1c8d418')
function l(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('8b641b6')
var d,
u = l(r)
;(a.LoopStatus = void 0), ((d = a.LoopStatus || (a.LoopStatus = {}))[(d.NORMAL = 0)] = 'NORMAL'), (d[(d.BREAK = 1)] = 'BREAK'), (d[(d.CONTINUE = 2)] = 'CONTINUE')
var p = {},
g = function (e) {
return p[e]
},
v = function (e, a, n, o) {
return t.__awaiter(void 0, void 0, void 0, function () {
var r, l, d, p, g, v, b, _, m, y, f, k, w, T, h, A, x, N, j, E, O, B, D, I, C, M, P, L, R, S, W, K, U, q, F, V, z
return t.__generator(this, function (G) {
switch (G.label) {
case 0:
return (
(r = { event: o }),
((l = t.__assign({}, a)).args = t.__assign({}, a.args)),
(null === (N = o.data) || void 0 === N ? void 0 : N.__rendererData) || (r = { event: o, __rendererData: n.props.data }),
(d = s.createObject(s.createObject(n.props.data.__super ? s.createObject(n.props.data.__super, r) : r, n.props.data), o.data)),
(p = null !== (j = l.expression) && void 0 !== j ? j : l.execOn),
(g = !1),
p ? [4, i.evalExpressionWithConditionBuilder(p, d, !0)] : [3, 2]
)
case 1:
;(g = !G.sent()), (G.label = 2)
case 2:
return g ? [2] : ((v = !1), l.preventDefault ? [4, i.evalExpressionWithConditionBuilder(l.preventDefault, d, !1)] : [3, 4])
case 3:
;(v = G.sent()), (G.label = 4)
case 4:
return (
(b = { componentId: c.dataMapping(l.componentId, d), componentName: c.dataMapping(l.componentName, d) }),
'dialog' === l.actionType
? ((l.dialog = t.__assign({}, null !== (E = l.dialog) && void 0 !== E ? E : null === (O = l.args) || void 0 === O ? void 0 : O.dialog)),
null === (B = l.args) || void 0 === B || delete B.dialog)
: 'drawer' === l.actionType
? ((l.drawer = t.__assign({}, null !== (D = l.drawer) && void 0 !== D ? D : null === (I = l.args) || void 0 === I ? void 0 : I.drawer)),
null === (C = l.args) || void 0 === C || delete C.drawer)
: ['ajax', 'download'].includes(l.actionType) &&
((_ = null !== (M = l.api) && void 0 !== M ? M : null === (P = l.args) || void 0 === P ? void 0 : P.api),
(l.api = 'string' == typeof _ ? _ : t.__assign({}, _)),
(l.options = t.__assign({}, null !== (L = l.options) && void 0 !== L ? L : null === (R = l.args) || void 0 === R ? void 0 : R.options)),
(l.messages = t.__assign({}, null !== (S = l.messages) && void 0 !== S ? S : null === (W = l.args) || void 0 === W ? void 0 : W.messages)),
null === (K = l.args) || void 0 === K || delete K.api,
null === (U = l.args) || void 0 === U || delete U.options,
null === (q = l.args) || void 0 === q || delete q.messages),
(y = (m = b.componentId || b.componentName) ? (null === (F = o.context.scoped) || void 0 === F ? void 0 : F[l.componentId ? 'getComponentById' : 'getComponentByName'](m)) : n),
(f = c.dataMapping(l.args, d, function (e) {
var a,
n = null === (a = null == y ? void 0 : y.props) || void 0 === a ? void 0 : a.type,
o = l.actionType
return t
.__spreadArray(
t.__spreadArray([], t.__read({ ajax: ['adaptor', 'responseAdaptor', 'requestAdaptor', 'responseData'] }[o] || []), !1),
t.__read(
{ 'input-table': ['condition'], table: ['condition'], table2: ['condition'], crud: ['condition'], combo: ['condition'], list: ['condition'], cards: ['condition'] }[n] || []
),
!1
)
.includes(e)
})),
(k = c.dataMapping(l.data, d)),
(w =
f && Object.keys(f).length
? u.default(
t.__assign(t.__assign({}, f), null != k ? k : {}),
(function (e) {
var a = []
switch (e) {
case 'toast':
a = ['msgType', 'msg', 'position', 'closeButton', 'showIcon', 'timeout', 'title']
break
case 'alert':
a = ['msg']
break
case 'confirm':
a = ['msg', 'title']
break
case 'ajax':
case 'download':
a = ['api', 'messages', 'options']
break
case 'setValue':
a = ['value', 'index']
break
case 'copy':
a = ['content', 'copyFormat']
break
case 'email':
a = ['to', 'cc', 'bcc', 'subject', 'body']
break
case 'link':
a = ['link', 'blank', 'params']
break
case 'url':
a = ['url', 'blank', 'params']
break
case 'for':
a = ['loopName']
break
case 'goPage':
a = ['delta']
break
case 'custom':
a = ['script']
break
case 'broadcast':
a = ['eventName']
break
case 'dialog':
case 'confirmDialog':
a = ['dialog']
break
case 'drawer':
a = ['drawer']
break
case 'reload':
a = ['resetPage']
}
return a
})(l.actionType)
)
: k),
(T = void 0 === w || ['ajax', 'download', 'dialog', 'drawer'].includes(l.actionType) ? d : w),
null === (V = console.group) || void 0 === V || V.call(console, 'run action '.concat(l.actionType)),
console.debug('['.concat(l.actionType, '] action args, data'), f, T),
(h = !1),
[4, e.run(t.__assign(t.__assign(t.__assign({}, l), { args: f, rawData: a.data, data: 'reload' === l.actionType ? w : T }), b), n, o, d)]
)
case 5:
return (
(A = G.sent()),
'confirmDialog' !== (null == l ? void 0 : l.actionType) || A || ((h = !0), (v = !0)),
(x = !1),
l.stopPropagation ? [4, i.evalExpressionWithConditionBuilder(l.stopPropagation, d, !1)] : [3, 7]
)
case 6:
;(x = G.sent()), (G.label = 7)
case 7:
return (
console.debug('['.concat(l.actionType, '] action end event'), o),
null === (z = console.groupEnd) || void 0 === z || z.call(console),
v && o.preventDefault(),
(x || h) && o.stopPropagation(),
[2]
)
}
})
})
}
;(a.getActionByType = g),
(a.registerAction = function (e, a) {
p[e] = a
}),
(a.runAction = v),
(a.runActions = function (e, a, n) {
return t.__awaiter(void 0, void 0, void 0, function () {
var o, r, i, s, c, l, d, u, p
return t.__generator(this, function (b) {
switch (b.label) {
case 0:
Array.isArray(e) || (e = [e]), (b.label = 1)
case 1:
b.trys.push([1, 9, 10, 11]), (o = t.__values(e)), (r = o.next()), (b.label = 2)
case 2:
if (r.done) return [3, 8]
;(i = r.value),
(s = g(i.actionType)) || (!i.componentId && !i.componentName)
? ['url', 'link', 'jump'].includes(i.actionType) && (s = g('openlink'))
: (s = ['static', 'nonstatic', 'show', 'visibility', 'hidden', 'enabled', 'disabled', 'usability'].includes(i.actionType) ? g('status') : g('component')),
s || (s = g('component')),
(b.label = 3)
case 3:
return b.trys.push([3, 5, , 6]), [4, v(s, i, a, n)]
case 4:
return b.sent(), [3, 6]
case 5:
if (((c = b.sent()), !(null !== (p = i.ignoreError) && void 0 !== p && p)))
throw Error(''.concat(i.actionType, ' \u52a8\u4f5c\u6267\u884c\u5931\u8d25\uff0c\u539f\u56e0\uff1a').concat(c.message || '\u672a\u77e5'))
return [3, 6]
case 6:
if (n.stoped) return [3, 8]
b.label = 7
case 7:
return (r = o.next()), [3, 2]
case 8:
return [3, 11]
case 9:
return (l = b.sent()), (d = { error: l }), [3, 11]
case 10:
try {
r && !r.done && (u = o.return) && u.call(o)
} finally {
if (d) throw d.error
}
return [7]
case 11:
return [2]
}
})
})
})
}) /*!node_modules/lodash/now.js*/
amis.define('7f4984c', function (n, a, e, t) {
var f = n('6ba9d7a')
e.exports = function () {
return f.Date.now()
}
}) /*!node_modules/lodash/debounce.js*/
amis.define('5f94728', function (i, n, t, r) {
var e = i('e98f234'),
o = i('7f4984c'),
u = i('2d2d962'),
f = Math.max,
a = Math.min
t.exports = function (i, n, t) {
var r,
c,
v,
d,
m,
l,
s = 0,
T = !1,
p = !1,
h = !0
if ('function' != typeof i) throw new TypeError('Expected a function')
function x(n) {
var t = r,
e = c
return (r = c = void 0), (s = n), (d = i.apply(e, t))
}
function g(i) {
return (s = i), (m = setTimeout(w, n)), T ? x(i) : d
}
function y(i) {
var t = i - l
return void 0 === l || t >= n || t < 0 || (p && i - s >= v)
}
function w() {
var i = o()
if (y(i)) return E(i)
m = setTimeout(
w,
(function (i) {
var t = n - (i - l)
return p ? a(t, v - (i - s)) : t
})(i)
)
}
function E(i) {
return (m = void 0), h && r ? x(i) : ((r = c = void 0), d)
}
function M() {
var i = o(),
t = y(i)
if (((r = arguments), (c = this), (l = i), t)) {
if (void 0 === m) return g(l)
if (p) return clearTimeout(m), (m = setTimeout(w, n)), x(l)
}
return void 0 === m && (m = setTimeout(w, n)), d
}
return (
(n = u(n) || 0),
e(t) && ((T = !!t.leading), (v = (p = 'maxWait' in t) ? f(u(t.maxWait) || 0, n) : v), (h = 'trailing' in t ? !!t.trailing : h)),
(M.cancel = function () {
void 0 !== m && clearTimeout(m), (s = 0), (r = l = c = m = void 0)
}),
(M.flush = function () {
return void 0 === m ? d : E(o())
}),
M
)
}
}) /*!node_modules/amis-core/lib/utils/resize-sensor.js*/
amis.define('1feaebc', function (e, t, i, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = (function () {
function e() {
this.q = []
}
return (
(e.prototype.add = function (e, t) {
void 0 === t && (t = 'both'), this.q.push({ fn: e, type: t })
}),
(e.prototype.call = function (e) {
for (var t = [], i = 1; i < arguments.length; i++) t[i - 1] = arguments[i]
this.q.forEach(function (i) {
;(i.type !== e && 'both' !== i.type && 'both' !== e) || i.fn.apply(null, t)
})
}),
e
)
})()
function r(e, t) {
if (e.currentStyle) return e.currentStyle[t]
if (window.getComputedStyle) {
var i = window.getComputedStyle(e, void 0)
return i ? i.getPropertyValue(t) : void 0
}
return e.style[t]
}
function s(e, t, i) {
if ((void 0 === i && (i = 'both'), e)) {
if (e.resizedAttached) {
if (e.resizedAttached) return void e.resizedAttached.add(t, i)
} else (e.resizedAttached = new o()), e.resizedAttached.add(t, i)
var n = (e.resizeSensor = document.createElement('div'))
n.className = 'resize-sensor'
var s = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;',
l = 'position: absolute; left: 0; top: 0;'
;(n.style.cssText = s),
(n.innerHTML = '\n \n \n ')),
e.appendChild(n),
(e.hasInlineStyle = e.hasAttribute('style'))
var d = (e.originPosition = r(e, 'position'))
~['fixed', 'absolute'].indexOf(d) || (e.style.position = 'relative')
var a,
c,
h = n.children[0],
f = h.children[0],
u = n.children[1],
v = n.children[2],
p = function () {
;(f.style.width = h.offsetWidth + 10 + 'px'),
(f.style.height = h.offsetHeight + 10 + 'px'),
(h.scrollLeft = h.scrollWidth),
(h.scrollTop = h.scrollHeight),
(u.scrollLeft = u.scrollWidth),
(u.scrollTop = u.scrollHeight),
(a = e.offsetWidth),
(c = e.offsetHeight)
},
y = function () {
p(), S && (z(), (S = !1))
}
p()
var z = function (t) {
void 0 === t && (t = 'both'), e.resizedAttached && e.resizedAttached.call(t)
},
g = function (e, t, i) {
e.attachEvent ? e.attachEvent('on' + t, i) : e.addEventListener(t, i)
},
b = function (e, t, i) {
e.detachEvent ? e.detachEvent('on' + t, i) : e.removeEventListener(t, i)
},
m = function (t) {
var i = e.offsetWidth != a,
n = e.offsetHeight != c
;(i || n) && z(i && n ? 'both' : i ? 'width' : 'height'), p()
}
g(h, 'scroll', m), g(u, 'scroll', m), g(v, 'animationstart', y)
var S = !h.offsetWidth
return function () {
b(h, 'scroll', m), b(u, 'scroll', m), b(v, 'animationstart', y)
}
}
}
function l(e) {
if (e.resizeSensor) {
e.hasInlineStyle ? (e.style.position = e.originPosition) : e.removeAttribute('style')
try {
e.removeChild(e.resizeSensor)
} catch (e) {}
delete e.resizeSensor, delete e.resizedAttached, delete e.hasInlineStyle, delete e.originPosition
}
}
;(t.getComputedStyle = r),
(t.resizeSensor = function (e, t, i, n) {
if ((void 0 === i && (i = !1), void 0 === n && (n = 'both'), !e)) return function () {}
var o = void 0
if (i)
return (
(o = s(
e,
function () {
t.apply(this, arguments), null == o || o(), l(e)
},
n
)),
function () {}
)
o = s(e, t, n)
var r = !1
return function () {
r || ((r = !0), null == o || o(), l(e))
}
})
}) /*!node_modules/@babel/runtime/helpers/interopRequireDefault.js*/
amis.define('5faf1f8', function (e, t, f, o) {
;(f.exports = function (e) {
return e && e.__esModule ? e : { default: e }
}),
(f.exports.__esModule = !0),
(f.exports.default = f.exports)
}) /*!node_modules/dom-helpers/cjs/contains.js*/
amis.define('ce5a9ce', function (e, n, t, o) {
'use strict'
;(n.__esModule = !0),
(n.default = function (e, n) {
if (e.contains) return e.contains(n)
if (e.compareDocumentPosition) return e === n || !!(16 & e.compareDocumentPosition(n))
}),
(t.exports = n.default)
}) /*!node_modules/dom-helpers/cjs/canUseDOM.js*/
amis.define('c60bf18', function (e, d, t, n) {
'use strict'
;(d.__esModule = !0), (d.default = void 0)
var o = !('undefined' == typeof window || !window.document || !window.document.createElement)
;(d.default = o), (t.exports = d.default)
}) /*!node_modules/dom-helpers/cjs/addEventListener.js*/
amis.define('8afddad', function (e, t, o, n) {
'use strict'
var r = e('5faf1f8')
;(t.__esModule = !0), (t.default = t.onceSupported = t.optionsSupported = void 0)
var d = r(e('c60bf18')),
i = !1
t.optionsSupported = i
var a = !1
t.onceSupported = a
try {
var p = {
get passive() {
return (t.optionsSupported = i = !0)
},
get once() {
return (t.onceSupported = a = t.optionsSupported = i = !0)
}
}
d.default && (window.addEventListener('test', p, p), window.removeEventListener('test', p, !0))
} catch (e) {}
var s = function (e, t, o, n) {
if (n && 'boolean' != typeof n && !a) {
var r = n.once,
d = n.capture,
p = o
!a &&
r &&
((p =
o.__once ||
function e(n) {
this.removeEventListener(t, e, d), o.call(this, n)
}),
(o.__once = p)),
e.addEventListener(t, p, i ? n : d)
}
e.addEventListener(t, o, n)
}
t.default = s
}) /*!node_modules/dom-helpers/cjs/removeEventListener.js*/
amis.define('41b77fa', function (e, t, n, o) {
'use strict'
;(t.__esModule = !0), (t.default = void 0)
var a = function (e, t, n, o) {
var a = o && 'boolean' != typeof o ? o.capture : o
e.removeEventListener(t, n, a), n.__once && e.removeEventListener(t, n.__once, a)
}
;(t.default = a), (n.exports = t.default)
}) /*!node_modules/dom-helpers/cjs/listen.js*/
amis.define('dcf59ee', function (f, e, a, d) {
'use strict'
var t = f('5faf1f8')
;(e.__esModule = !0), (e.default = void 0)
var u = t(f('8afddad')),
n = t(f('41b77fa'))
var i = function (f, e, a, d) {
return (
(0, u.default)(f, e, a, d),
function () {
;(0, n.default)(f, e, a, d)
}
)
}
;(e.default = i), (a.exports = e.default)
}) /*!node_modules/@restart/hooks/cjs/useCommittedRef.js*/
amis.define('bb0e667', function (e, u, t, f) {
'use strict'
;(u.__esModule = !0), (u.default = void 0)
var n = e('ac704b9')
var r = function (e) {
var u = (0, n.useRef)(e)
return (
(0, n.useEffect)(
function () {
u.current = e
},
[e]
),
u
)
}
u.default = r
}) /*!node_modules/@restart/hooks/cjs/useEventCallback.js*/
amis.define('1623436', function (e, u, t, n) {
'use strict'
;(u.__esModule = !0),
(u.default = function (e) {
var u = (0, c.default)(e)
return (0, a.useCallback)(
function () {
return u.current && u.current.apply(u, arguments)
},
[u]
)
})
var r,
a = e('ac704b9'),
c = (r = e('bb0e667')) && r.__esModule ? r : { default: r }
}) /*!node_modules/warning/warning.js*/
amis.define('5f34916', function (i, n, t, e) {
'use strict'
var f = function () {}
t.exports = f
}) /*!node_modules/dom-helpers/cjs/ownerDocument.js*/
amis.define('5ee7da7', function (e, t, n, u) {
'use strict'
;(t.__esModule = !0),
(t.default = function (e) {
return (e && e.ownerDocument) || document
}),
(n.exports = t.default)
}) /*!node_modules/react-overlays/cjs/safeFindDOMNode.js*/
amis.define('a81340c', function (e, t, f, n) {
'use strict'
var u = e('5faf1f8')
;(t.__esModule = !0),
(t.default = function (e) {
if (e && 'setState' in e) return a.default.findDOMNode(e)
return null != e ? e : null
})
var a = u(e('1e5c4ba'))
f.exports = t.default
}) /*!node_modules/react-overlays/cjs/ownerDocument.js*/
amis.define('c69d7db', function (e, a, d, f) {
'use strict'
var t = e('5faf1f8')
;(a.__esModule = !0), (a.default = void 0)
var u = t(e('5ee7da7')),
i = t(e('a81340c'))
;(a.default = function (e) {
return (0, u.default)((0, i.default)(e))
}),
(d.exports = a.default)
}) /*!node_modules/react-overlays/cjs/useRootClose.js*/
amis.define('c85b9d6', function (e, t, n, u) {
'use strict'
var o = e('5faf1f8')
;(t.__esModule = !0), (t.default = void 0)
var a = o(e('ce5a9ce')),
c = o(e('dcf59ee')),
f = e('ac704b9'),
r = o(e('1623436')),
d = o(e('5f34916')),
i = o(e('c69d7db')),
l = function () {}
var s = function (e) {
return e && ('current' in e ? e.current : e)
}
var v = function (e, t, n) {
var u = void 0 === n ? {} : n,
o = u.disabled,
v = u.clickTrigger,
b = void 0 === v ? 'click' : v,
m = (0, f.useRef)(!1),
h = t || l,
y = (0, f.useCallback)(
function (t) {
var n,
u = s(e)
;(0, d.default)(!!u, 'RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node'),
(m.current = !(
u &&
((n = t), !(n.metaKey || n.altKey || n.ctrlKey || n.shiftKey)) &&
(function (e) {
return 0 === e.button
})(t) &&
!(0, a.default)(u, t.target)
))
},
[e]
),
p = (0, r.default)(function (e) {
m.current || h(e)
}),
k = (0, r.default)(function (e) {
27 === e.keyCode && h(e)
})
;(0, f.useEffect)(
function () {
if (!o && null != e) {
var t = window.event,
n = (0, i.default)(s(e)),
u = (0, c.default)(n, b, y, !0),
a = (0, c.default)(n, b, function (e) {
e !== t ? p(e) : (t = void 0)
}),
f = (0, c.default)(n, 'keyup', function (e) {
e !== t ? k(e) : (t = void 0)
}),
r = []
return (
'ontouchstart' in n.documentElement &&
(r = [].slice.call(n.body.children).map(function (e) {
return (0, c.default)(e, 'mousemove', l)
})),
function () {
u(),
a(),
f(),
r.forEach(function (e) {
return e()
})
}
)
}
},
[e, o, b, y, p, k]
)
}
;(t.default = v), (n.exports = t.default)
}) /*!node_modules/lodash/mapValues.js*/
amis.define('90272dd', function (n, c, e, f) {
var i = n('67864f4'),
r = n('71ca9e7'),
t = n('8c8db6b')
e.exports = function (n, c) {
var e = {}
return (
(c = t(c, 3)),
r(n, function (n, f, r) {
i(e, f, c(n, f, r))
}),
e
)
}
}) /*!node_modules/lodash/_arrayReduce.js*/
amis.define('ca03119', function (n, e, r, t) {
r.exports = function (n, e, r, t) {
var f = -1,
i = null == n ? 0 : n.length
for (t && i && (r = n[++f]); ++f < i; ) r = e(r, n[f], f, n)
return r
}
}) /*!node_modules/lodash/_deburrLetter.js*/
amis.define('61ad697', function (e, a, i, o) {
var u = e('32487bc')({
À: 'A',
Á: 'A',
Â: 'A',
Ã: 'A',
Ä: 'A',
Å: 'A',
à: 'a',
á: 'a',
â: 'a',
ã: 'a',
ä: 'a',
å: 'a',
Ç: 'C',
ç: 'c',
Ð: 'D',
ð: 'd',
È: 'E',
É: 'E',
Ê: 'E',
Ë: 'E',
è: 'e',
é: 'e',
ê: 'e',
ë: 'e',
Ì: 'I',
Í: 'I',
Î: 'I',
Ï: 'I',
ì: 'i',
í: 'i',
î: 'i',
ï: 'i',
Ñ: 'N',
ñ: 'n',
Ò: 'O',
Ó: 'O',
Ô: 'O',
Õ: 'O',
Ö: 'O',
Ø: 'O',
ò: 'o',
ó: 'o',
ô: 'o',
õ: 'o',
ö: 'o',
ø: 'o',
Ù: 'U',
Ú: 'U',
Û: 'U',
Ü: 'U',
ù: 'u',
ú: 'u',
û: 'u',
ü: 'u',
Ý: 'Y',
ý: 'y',
ÿ: 'y',
Æ: 'Ae',
æ: 'ae',
Þ: 'Th',
þ: 'th',
ß: 'ss',
Ā: 'A',
Ă: 'A',
Ą: 'A',
ā: 'a',
ă: 'a',
ą: 'a',
Ć: 'C',
Ĉ: 'C',
Ċ: 'C',
Č: 'C',
ć: 'c',
ĉ: 'c',
ċ: 'c',
č: 'c',
Ď: 'D',
Đ: 'D',
ď: 'd',
đ: 'd',
Ē: 'E',
Ĕ: 'E',
Ė: 'E',
Ę: 'E',
Ě: 'E',
ē: 'e',
ĕ: 'e',
ė: 'e',
ę: 'e',
ě: 'e',
Ĝ: 'G',
Ğ: 'G',
Ġ: 'G',
Ģ: 'G',
ĝ: 'g',
ğ: 'g',
ġ: 'g',
ģ: 'g',
Ĥ: 'H',
Ħ: 'H',
ĥ: 'h',
ħ: 'h',
Ĩ: 'I',
Ī: 'I',
Ĭ: 'I',
Į: 'I',
İ: 'I',
ĩ: 'i',
ī: 'i',
ĭ: 'i',
į: 'i',
ı: 'i',
Ĵ: 'J',
ĵ: 'j',
Ķ: 'K',
ķ: 'k',
ĸ: 'k',
Ĺ: 'L',
Ļ: 'L',
Ľ: 'L',
Ŀ: 'L',
Ł: 'L',
ĺ: 'l',
ļ: 'l',
ľ: 'l',
ŀ: 'l',
ł: 'l',
Ń: 'N',
Ņ: 'N',
Ň: 'N',
Ŋ: 'N',
ń: 'n',
ņ: 'n',
ň: 'n',
ŋ: 'n',
Ō: 'O',
Ŏ: 'O',
Ő: 'O',
ō: 'o',
ŏ: 'o',
ő: 'o',
Ŕ: 'R',
Ŗ: 'R',
Ř: 'R',
ŕ: 'r',
ŗ: 'r',
ř: 'r',
Ś: 'S',
Ŝ: 'S',
Ş: 'S',
Š: 'S',
ś: 's',
ŝ: 's',
ş: 's',
š: 's',
Ţ: 'T',
Ť: 'T',
Ŧ: 'T',
ţ: 't',
ť: 't',
ŧ: 't',
Ũ: 'U',
Ū: 'U',
Ŭ: 'U',
Ů: 'U',
Ű: 'U',
Ų: 'U',
ũ: 'u',
ū: 'u',
ŭ: 'u',
ů: 'u',
ű: 'u',
ų: 'u',
Ŵ: 'W',
ŵ: 'w',
Ŷ: 'Y',
ŷ: 'y',
Ÿ: 'Y',
Ź: 'Z',
Ż: 'Z',
Ž: 'Z',
ź: 'z',
ż: 'z',
ž: 'z',
IJ: 'IJ',
ij: 'ij',
Œ: 'Oe',
œ: 'oe',
ʼn: "'n",
ſ: 's'
})
i.exports = u
}) /*!node_modules/lodash/deburr.js*/
amis.define('37240d9', function (f, e, u, x) {
var d = f('61ad697'),
c = f('18f70dc'),
n = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
r = RegExp('[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]', 'g')
u.exports = function (f) {
return (f = c(f)) && f.replace(n, d).replace(r, '')
}
}) /*!node_modules/lodash/_asciiWords.js*/
amis.define('cfe6b01', function (x, f, n, e) {
var t = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g
n.exports = function (x) {
return x.match(t) || []
}
}) /*!node_modules/lodash/_hasUnicodeWord.js*/
amis.define('952ef52', function (a, e, n, t) {
var z = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/
n.exports = function (a) {
return z.test(a)
}
}) /*!node_modules/lodash/_unicodeWords.js*/
amis.define('895c763', function (u, f, d, x) {
var e = '\\u2700-\\u27bf',
n = 'a-z\\xdf-\\xf6\\xf8-\\xff',
b = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
a =
'\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
c = '[' + a + ']',
i = '\\d+',
t = '[\\u2700-\\u27bf]',
o = '[' + n + ']',
r = '[^\\ud800-\\udfff' + a + i + e + n + b + ']',
j = '(?:\\ud83c[\\udde6-\\uddff]){2}',
s = '[\\ud800-\\udbff][\\udc00-\\udfff]',
m = '[' + b + ']',
D = '(?:' + o + '|' + r + ')',
E = '(?:' + m + '|' + r + ')',
R = "(?:['\u2019](?:d|ll|m|re|s|t|ve))?",
T = "(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",
g = '(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?',
h = '[\\ufe0e\\ufe0f]?',
l = h + g + ('(?:\\u200d(?:' + ['[^\\ud800-\\udfff]', j, s].join('|') + ')' + h + g + ')*'),
p = '(?:' + [t, j, s].join('|') + ')' + l,
v = RegExp(
[
m + '?' + o + '+' + R + '(?=' + [c, m, '$'].join('|') + ')',
E + '+' + T + '(?=' + [c, m + D, '$'].join('|') + ')',
m + '?' + D + '+' + R,
m + '+' + T,
'\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
'\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
i,
p
].join('|'),
'g'
)
d.exports = function (u) {
return u.match(v) || []
}
}) /*!node_modules/lodash/words.js*/
amis.define('cc50a54', function (c, e, f, i) {
var n = c('cfe6b01'),
o = c('952ef52'),
t = c('18f70dc'),
a = c('895c763')
f.exports = function (c, e, f) {
return (c = t(c)), void 0 === (e = f ? void 0 : e) ? (o(c) ? a(c) : n(c)) : c.match(e) || []
}
}) /*!node_modules/lodash/_createCompounder.js*/
amis.define('3f777db', function (n, e, c, r) {
var t = n('ca03119'),
a = n('37240d9'),
f = n('cc50a54'),
i = RegExp("['\u2019]", 'g')
c.exports = function (n) {
return function (e) {
return t(f(a(e).replace(i, '')), n, '')
}
}
}) /*!node_modules/lodash/camelCase.js*/
amis.define('8834362', function (e, n, c, o) {
var r = e('2c4cc29'),
t = e('3f777db')(function (e, n, c) {
return (n = n.toLowerCase()), e + (c ? r(n) : n)
})
c.exports = t
}) /*!node_modules/lodash/cloneDeep.js*/
amis.define('7d5c8a5', function (n, c, d, e) {
var i = n('33d8dc3')
d.exports = function (n) {
return i(n, 5)
}
}) /*!node_modules/lodash/_baseMap.js*/
amis.define('00ad030', function (n, e, r, a) {
var t = n('3eee525'),
i = n('375361a')
r.exports = function (n, e) {
var r = -1,
a = i(n) ? Array(n.length) : []
return (
t(n, function (n, t, i) {
a[++r] = e(n, t, i)
}),
a
)
}
}) /*!node_modules/lodash/map.js*/
amis.define('d837406', function (d, n, c, e) {
var i = d('6d0c860'),
r = d('8c8db6b'),
t = d('00ad030'),
a = d('2882d26')
c.exports = function (d, n) {
return (a(d) ? i : t)(d, r(n, 3))
}
}) /*!node_modules/lodash/kebabCase.js*/
amis.define('a08e932', function (e, n, o, r) {
var t = e('3f777db')(function (e, n, o) {
return e + (o ? '-' : '') + n.toLowerCase()
})
o.exports = t
}) /*!node_modules/@babel/runtime/helpers/typeof.js*/
amis.define('38ef8c8', function (o, t, e, r) {
function n(o) {
return (
(e.exports = n =
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
? function (o) {
return typeof o
}
: function (o) {
return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o
}),
(e.exports.__esModule = !0),
(e.exports.default = e.exports),
n(o)
)
}
;(e.exports = n), (e.exports.__esModule = !0), (e.exports.default = e.exports)
}) /*!node_modules/@babel/runtime/helpers/interopRequireWildcard.js*/
amis.define('9b1628c', function (e, t, r, n) {
var o = e('38ef8c8').default
function u(e) {
if ('function' != typeof WeakMap) return null
var t = new WeakMap(),
r = new WeakMap()
return (u = function (e) {
return e ? r : t
})(e)
}
;(r.exports = function (e, t) {
if (!t && e && e.__esModule) return e
if (null === e || ('object' != o(e) && 'function' != typeof e)) return { default: e }
var r = u(t)
if (r && r.has(e)) return r.get(e)
var n = { __proto__: null },
f = Object.defineProperty && Object.getOwnPropertyDescriptor
for (var a in e)
if ('default' !== a && {}.hasOwnProperty.call(e, a)) {
var i = f ? Object.getOwnPropertyDescriptor(e, a) : null
i && (i.get || i.set) ? Object.defineProperty(n, a, i) : (n[a] = e[a])
}
return (n.default = e), r && r.set(e, n), n
}),
(r.exports.__esModule = !0),
(r.exports.default = r.exports)
}) /*!node_modules/@babel/runtime/helpers/extends.js*/
amis.define('10334e3', function (e, t, r, o) {
function s() {
return (
(r.exports = s =
Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t]
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o])
}
return e
}),
(r.exports.__esModule = !0),
(r.exports.default = r.exports),
s.apply(this, arguments)
)
}
;(r.exports = s), (r.exports.__esModule = !0), (r.exports.default = r.exports)
}) /*!node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js*/
amis.define('2f58be0', function (e, t, n, r) {
;(n.exports = function (e, t) {
if (null == e) return {}
var n,
r,
f = {},
o = Object.keys(e)
for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (f[n] = e[n])
return f
}),
(n.exports.__esModule = !0),
(n.exports.default = n.exports)
}) /*!node_modules/invariant/browser.js*/
amis.define('d0c5746', function (e, n, r, i) {
'use strict'
r.exports = function (e, n, r, i, o, t, a, f) {
if (!e) {
var s
if (void 0 === n) s = new Error('Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.')
else {
var d = [r, i, o, t, a, f],
c = 0
;(s = new Error(
n.replace(/%s/g, function () {
return d[c++]
})
)).name = 'Invariant Violation'
}
throw ((s.framesToPop = 1), s)
}
}
}) /*!node_modules/uncontrollable/lib/cjs/utils.js*/
amis.define('09da6de', function (t, e, n, o) {
'use strict'
var r = t('5faf1f8')
;(e.__esModule = !0),
(e.uncontrolledPropTypes = function (t, e) {
var n = {}
return (
Object.keys(t).forEach(function (t) {
n[u(t)] = c
}),
n
)
}),
(e.isProp = function (t, e) {
return void 0 !== t[e]
}),
(e.defaultKey = u),
(e.canAcceptRef = function (t) {
return !!t && ('function' != typeof t || (t.prototype && t.prototype.isReactComponent))
})
r(t('d0c5746'))
var c = function () {}
function u(t) {
return 'default' + t.charAt(0).toUpperCase() + t.substr(1)
}
}) /*!node_modules/uncontrollable/lib/cjs/hook.js*/
amis.define('5e88c70', function (e, r, t, n) {
'use strict'
var u = e('9b1628c'),
i = e('5faf1f8')
;(r.__esModule = !0),
(r.useUncontrolledProp = d),
(r.default = function (e, r) {
return Object.keys(r).reduce(function (t, n) {
var u,
i = t,
f = i[c.defaultKey(n)],
v = i[n],
s = (0, o.default)(i, [c.defaultKey(n), n].map(l)),
y = r[n],
b = d(v, f, e[y]),
m = b[0],
p = b[1]
return (0, a.default)({}, s, (((u = {})[n] = m), (u[y] = p), u))
}, e)
})
var a = i(e('10334e3')),
o = i(e('2f58be0')),
f = e('ac704b9'),
c = u(e('09da6de'))
function l(e) {
var r = (function (e, r) {
if ('object' != typeof e || null === e) return e
var t = e[Symbol.toPrimitive]
if (void 0 !== t) {
var n = t.call(e, r || 'default')
if ('object' != typeof n) return n
throw new TypeError('@@toPrimitive must return a primitive value.')
}
return ('string' === r ? String : Number)(e)
})(e, 'string')
return 'symbol' == typeof r ? r : String(r)
}
function d(e, r, t) {
var n = (0, f.useRef)(void 0 !== e),
u = (0, f.useState)(r),
i = u[0],
a = u[1],
o = void 0 !== e,
c = n.current
return (
(n.current = o),
!o && c && i !== r && a(r),
[
o ? e : i,
(0, f.useCallback)(
function (e) {
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++) n[u - 1] = arguments[u]
t && t.apply(void 0, [e].concat(n)), a(e)
},
[t]
)
]
)
}
}) /*!node_modules/@babel/runtime/helpers/setPrototypeOf.js*/
amis.define('682d7ed', function (e, t, o, r) {
function s(e, t) {
return (
(o.exports = s =
Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (e, t) {
return (e.__proto__ = t), e
}),
(o.exports.__esModule = !0),
(o.exports.default = o.exports),
s(e, t)
)
}
;(o.exports = s), (o.exports.__esModule = !0), (o.exports.default = o.exports)
}) /*!node_modules/@babel/runtime/helpers/inheritsLoose.js*/
amis.define('ee9a91d', function (e, t, o, r) {
var p = e('682d7ed')
;(o.exports = function (e, t) {
;(e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), p(e, t)
}),
(o.exports.__esModule = !0),
(o.exports.default = o.exports)
}) /*!node_modules/react-lifecycles-compat/react-lifecycles-compat.cjs.js*/
amis.define('65357c6', function (t, e, n, o) {
'use strict'
function i() {
var t = this.constructor.getDerivedStateFromProps(this.props, this.state)
null != t && this.setState(t)
}
function p(t) {
this.setState(
function (e) {
var n = this.constructor.getDerivedStateFromProps(t, e)
return null != n ? n : null
}.bind(this)
)
}
function l(t, e) {
try {
var n = this.props,
o = this.state
;(this.props = t), (this.state = e), (this.__reactInternalSnapshotFlag = !0), (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, o))
} finally {
;(this.props = n), (this.state = o)
}
}
Object.defineProperty(e, '__esModule', { value: !0 }),
(i.__suppressDeprecationWarning = !0),
(p.__suppressDeprecationWarning = !0),
(l.__suppressDeprecationWarning = !0),
(e.polyfill = function (t) {
var e = t.prototype
if (!e || !e.isReactComponent) throw new Error('Can only polyfill class components')
if ('function' != typeof t.getDerivedStateFromProps && 'function' != typeof e.getSnapshotBeforeUpdate) return t
var n = null,
o = null,
r = null
if (
('function' == typeof e.componentWillMount ? (n = 'componentWillMount') : 'function' == typeof e.UNSAFE_componentWillMount && (n = 'UNSAFE_componentWillMount'),
'function' == typeof e.componentWillReceiveProps ? (o = 'componentWillReceiveProps') : 'function' == typeof e.UNSAFE_componentWillReceiveProps && (o = 'UNSAFE_componentWillReceiveProps'),
'function' == typeof e.componentWillUpdate ? (r = 'componentWillUpdate') : 'function' == typeof e.UNSAFE_componentWillUpdate && (r = 'UNSAFE_componentWillUpdate'),
null !== n || null !== o || null !== r)
) {
var s = t.displayName || t.name,
a = 'function' == typeof t.getDerivedStateFromProps ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()'
throw Error(
'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
s +
' uses ' +
a +
' but also contains the following legacy lifecycles:' +
(null !== n ? '\n ' + n : '') +
(null !== o ? '\n ' + o : '') +
(null !== r ? '\n ' + r : '') +
'\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks'
)
}
if (('function' == typeof t.getDerivedStateFromProps && ((e.componentWillMount = i), (e.componentWillReceiveProps = p)), 'function' == typeof e.getSnapshotBeforeUpdate)) {
if ('function' != typeof e.componentDidUpdate) throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype')
e.componentWillUpdate = l
var c = e.componentDidUpdate
e.componentDidUpdate = function (t, e, n) {
var o = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : n
c.call(this, t, e, o)
}
}
return t
})
}) /*!node_modules/uncontrollable/lib/cjs/uncontrollable.js*/
amis.define('d84d7cf', function (e, n, t, r) {
'use strict'
var a = e('5faf1f8'),
o = e('9b1628c')
;(n.__esModule = !0),
(n.default = function e(n, t, r) {
void 0 === r && (r = [])
var a = n.displayName || n.name || 'Component',
o = s.canAcceptRef(n),
p = Object.keys(t),
d = p.map(s.defaultKey)
!o && r.length && invariant(!1)
var v = (function (e) {
function a() {
for (var n, a = arguments.length, o = new Array(a), u = 0; u < a; u++) o[u] = arguments[u]
;((n = e.call.apply(e, [this].concat(o)) || this).handlers = Object.create(null)),
p.forEach(function (e) {
var r = t[e]
n.handlers[r] = function (t) {
if (n.props[r]) {
var a
n._notifying = !0
for (var o = arguments.length, u = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++) u[l - 1] = arguments[l]
;(a = n.props)[r].apply(a, [t].concat(u)), (n._notifying = !1)
}
n.unmounted ||
n.setState(function (n) {
var r,
a = n.values
return { values: (0, f.default)(Object.create(null), a, ((r = {}), (r[e] = t), r)) }
})
}
}),
r.length &&
(n.attachRef = function (e) {
n.inner = e
})
var l = Object.create(null)
return (
p.forEach(function (e) {
l[e] = n.props[s.defaultKey(e)]
}),
(n.state = { values: l, prevProps: {} }),
n
)
}
;(0, l.default)(a, e)
var o = a.prototype
return (
(o.shouldComponentUpdate = function () {
return !this._notifying
}),
(a.getDerivedStateFromProps = function (e, n) {
var t = n.values,
r = n.prevProps,
a = { values: (0, f.default)(Object.create(null), t), prevProps: {} }
return (
p.forEach(function (n) {
;(a.prevProps[n] = e[n]), !s.isProp(e, n) && s.isProp(r, n) && (a.values[n] = e[s.defaultKey(n)])
}),
a
)
}),
(o.componentWillUnmount = function () {
this.unmounted = !0
}),
(o.render = function () {
var e = this,
t = this.props,
r = t.innerRef,
a = (0, u.default)(t, ['innerRef'])
d.forEach(function (e) {
delete a[e]
})
var o = {}
return (
p.forEach(function (n) {
var t = e.props[n]
o[n] = void 0 !== t ? t : e.state.values[n]
}),
c.default.createElement(n, (0, f.default)({}, a, o, this.handlers, { ref: r || this.attachRef }))
)
}),
a
)
})(c.default.Component)
;(0, i.polyfill)(v),
(v.displayName = 'Uncontrolled(' + a + ')'),
(v.propTypes = (0, f.default)({ innerRef: function () {} }, s.uncontrolledPropTypes(t, a))),
r.forEach(function (e) {
v.prototype[e] = function () {
var n
return (n = this.inner)[e].apply(n, arguments)
}
})
var h = v
c.default.forwardRef &&
((h = c.default.forwardRef(function (e, n) {
return c.default.createElement(v, (0, f.default)({}, e, { innerRef: n, __source: { fileName: '/Users/jquense/src/uncontrollable/src/uncontrollable.js', lineNumber: 128 }, __self: this }))
})).propTypes = v.propTypes)
return (
(h.ControlledComponent = n),
(h.deferControlTo = function (n, r, a) {
return void 0 === r && (r = {}), e(n, (0, f.default)({}, t, r), a)
}),
h
)
})
var u = a(e('2f58be0')),
f = a(e('10334e3')),
l = a(e('ee9a91d')),
c = a(e('ac704b9')),
i = e('65357c6'),
s = (a(e('d0c5746')), o(e('09da6de')))
t.exports = n.default
}) /*!node_modules/uncontrollable/lib/cjs/index.js*/
amis.define('6baf255', function (e, o, l, n) {
'use strict'
var r = e('5faf1f8'),
c = e('9b1628c')
;(o.__esModule = !0), (o.useUncontrolledProp = o.uncontrollable = o.useUncontrolled = void 0)
var d = c(e('5e88c70'))
;(o.useUncontrolled = d.default), (o.useUncontrolledProp = d.useUncontrolledProp)
var t = r(e('d84d7cf'))
o.uncontrollable = t.default
}) /*!node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js*/
amis.define('bbc02b2', function (require, exports, module, define) {
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict'
var b = 'function' === typeof Symbol && Symbol.for,
c = b ? Symbol.for('react.element') : 60103,
d = b ? Symbol.for('react.portal') : 60106,
e = b ? Symbol.for('react.fragment') : 60107,
f = b ? Symbol.for('react.strict_mode') : 60108,
g = b ? Symbol.for('react.profiler') : 60114,
h = b ? Symbol.for('react.provider') : 60109,
k = b ? Symbol.for('react.context') : 60110,
l = b ? Symbol.for('react.async_mode') : 60111,
m = b ? Symbol.for('react.concurrent_mode') : 60111,
n = b ? Symbol.for('react.forward_ref') : 60112,
p = b ? Symbol.for('react.suspense') : 60113,
q = b ? Symbol.for('react.suspense_list') : 60120,
r = b ? Symbol.for('react.memo') : 60115,
t = b ? Symbol.for('react.lazy') : 60116,
v = b ? Symbol.for('react.block') : 60121,
w = b ? Symbol.for('react.fundamental') : 60117,
x = b ? Symbol.for('react.responder') : 60118,
y = b ? Symbol.for('react.scope') : 60119
function z(a) {
if ('object' === typeof a && null !== a) {
var u = a.$$typeof
switch (u) {
case c:
switch (((a = a.type), a)) {
case l:
case m:
case e:
case g:
case f:
case p:
return a
default:
switch (((a = a && a.$$typeof), a)) {
case k:
case n:
case t:
case r:
case h:
return a
default:
return u
}
}
case d:
return u
}
}
}
function A(a) {
return z(a) === m
}
exports.AsyncMode = l
exports.ConcurrentMode = m
exports.ContextConsumer = k
exports.ContextProvider = h
exports.Element = c
exports.ForwardRef = n
exports.Fragment = e
exports.Lazy = t
exports.Memo = r
exports.Portal = d
exports.Profiler = g
exports.StrictMode = f
exports.Suspense = p
exports.isAsyncMode = function (a) {
return A(a) || z(a) === l
}
exports.isConcurrentMode = A
exports.isContextConsumer = function (a) {
return z(a) === k
}
exports.isContextProvider = function (a) {
return z(a) === h
}
exports.isElement = function (a) {
return 'object' === typeof a && null !== a && a.$$typeof === c
}
exports.isForwardRef = function (a) {
return z(a) === n
}
exports.isFragment = function (a) {
return z(a) === e
}
exports.isLazy = function (a) {
return z(a) === t
}
exports.isMemo = function (a) {
return z(a) === r
}
exports.isPortal = function (a) {
return z(a) === d
}
exports.isProfiler = function (a) {
return z(a) === g
}
exports.isStrictMode = function (a) {
return z(a) === f
}
exports.isSuspense = function (a) {
return z(a) === p
}
exports.isValidElementType = function (a) {
return (
'string' === typeof a ||
'function' === typeof a ||
a === e ||
a === m ||
a === g ||
a === f ||
a === p ||
a === q ||
('object' === typeof a &&
null !== a &&
(a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v))
)
}
exports.typeOf = z
}) /*!node_modules/hoist-non-react-statics/node_modules/react-is/index.js*/
amis.define('bf93a51', function (b, e, i, s) {
'use strict'
i.exports = b('bbc02b2')
}) /*!node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js*/
amis.define('2fb8d9c', function (e, t, r, o) {
'use strict'
var p = e('bf93a51'),
a = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
},
y = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 },
n = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 },
s = {}
function c(e) {
return p.isMemo(e) ? n : s[e.$$typeof] || a
}
;(s[p.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }), (s[p.Memo] = n)
var i = Object.defineProperty,
f = Object.getOwnPropertyNames,
l = Object.getOwnPropertySymbols,
d = Object.getOwnPropertyDescriptor,
m = Object.getPrototypeOf,
g = Object.prototype
r.exports = function e(t, r, o) {
if ('string' != typeof r) {
if (g) {
var p = m(r)
p && p !== g && e(t, p, o)
}
var a = f(r)
l && (a = a.concat(l(r)))
for (var n = c(t), s = c(r), u = 0; u < a.length; ++u) {
var O = a[u]
if (!(y[O] || (o && o[O]) || (s && s[O]) || (n && n[O]))) {
var P = d(r, O)
try {
i(t, O, P)
} catch (e) {}
}
}
}
return t
}
}) /*!node_modules/amis-core/lib/utils/validateId.js*/
amis.define('6689ad5', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var d = e('68b98b9')
function i(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var a = i(e('8b081ba'))
function u(e) {
if (!/^\d{17}(\d|X)$/.test(e)) return !1
var t = o(e)
if (!t) return !1
var n = t.province,
r = t.city,
d = t.country,
i = t.birthday
return (
!(!s(n, r, d) || !v(i)) &&
(function (e) {
for (var t = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], n = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'], r = 0, d = 0; d < 17; d++) r += +e.slice(d, d + 1) * t[d]
return n[r % 11] === e.slice(17, 18)
})(e)
)
}
function c(e) {
if (!/^\d{15}$/.test(e)) return !1
var t = o(e)
if (!t) return !1
var n = t.province,
r = t.city,
d = t.country,
i = t.birthday
return s(n, r, d) && v(i)
}
function f(e) {
return {
11: '\u5317\u4eac\u5e02',
12: '\u5929\u6d25\u5e02',
13: '\u6cb3\u5317\u7701',
14: '\u5c71\u897f\u7701',
15: '\u5185\u8499\u53e4\u81ea\u6cbb\u533a',
21: '\u8fbd\u5b81\u7701',
22: '\u5409\u6797\u7701',
23: '\u9ed1\u9f99\u6c5f\u7701',
31: '\u4e0a\u6d77\u7701',
32: '\u6c5f\u82cf\u7701',
33: '\u6d59\u6c5f\u7701',
34: '\u5b89\u5fbd\u7701',
35: '\u798f\u5efa\u7701',
36: '\u6c5f\u897f\u7701',
37: '\u5c71\u4e1c\u7701',
41: '\u6cb3\u5357\u7701',
42: '\u6e56\u5317\u7701',
43: '\u6e56\u5357\u7701',
44: '\u5e7f\u4e1c\u7701',
45: '\u5e7f\u897f\u58ee\u65cf\u81ea\u6cbb\u533a',
46: '\u6d77\u5357\u7701',
50: '\u91cd\u5e86\u5e02',
51: '\u56db\u5ddd\u7701',
52: '\u8d35\u5dde\u7701',
53: '\u4e91\u5357\u7701',
54: '\u897f\u85cf\u81ea\u6cbb\u533a',
61: '\u9655\u897f\u7701',
62: '\u7518\u8083\u7701',
63: '\u9752\u6d77\u7701',
64: '\u5b81\u590f\u56de\u65cf\u81ea\u6cbb\u533a',
65: '\u65b0\u7586\u7ef4\u543e\u5c14\u81ea\u6cbb\u533a',
71: '\u53f0\u6e7e\u7701',
81: '\u9999\u6e2f',
82: '\u6fb3\u95e8',
91: '\u56fd\u5916'
}[e]
}
function o(e) {
var t
if (
(18 !== e.length || /^\d{17}(\d|X)$/.test(e)) &&
(15 !== e.length || /^\d{15}$/.test(e)) &&
(18 == e.length ? (t = e.match(/^(\d{2})(\d{2})(\d{2})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/)) : 15 == e.length && (t = e.match(/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{3})$/)), t)
) {
var n = d.__read(t, 9)
n[0]
var r = n[1],
i = n[2],
a = n[3],
u = n[4],
c = n[5],
o = n[6],
s = n[7],
v = n[8]
return {
province: r,
provinceName: f(r),
city: i,
country: a,
year: u,
month: c,
day: o,
birthday: new Date(u + '/' + c + '/' + o),
sequenceCode: s,
checkCode: v,
isMale: +s % 2 == 1,
isFemale: +s % 2 == 0
}
}
}
function s(e, t, n) {
return !!f(e) && !!/^(?:[0-6]\d|70)$/.test(t) && !!/^\d\d$/.test(n)
}
function v(e) {
var t = a.default(new Date('1850-01-01')),
n = a.default().endOf('day')
return !isNaN(+e) && a.default(e).isBetween(t, n)
}
;(t.isId = function (e) {
return u(e) || c(e)
}),
(t.isId15 = c),
(t.isId18 = u)
}) /*!node_modules/amis-core/lib/utils/validations.js*/
amis.define('9f4cfa3', function (e, t, i, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9'),
n = e('8b081ba'),
u = e('575a22c')
e('c3389ff')
var s = e('0910768'),
f = e('9c55168'),
l = e('42c789c')
e('8b641b6')
var m = e('5ee9171'),
d = e('6689ad5')
function o(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var c = o(n),
F = o(s),
p = function (e) {
return null != e
},
g = function (e) {
return '' === e
},
h = o(m).default(function (e) {
var t = (e = r.__assign({ schemes: ['http', 'https', 'ftp', 'sftp'], allowLocal: !0, allowDataUrl: !1 }, F.default(e) ? e : {})).schemes,
i = e.allowLocal,
a = e.allowDataUrl
Array.isArray(t) || (t = ['http', 'https', 'ftp', 'sftp'])
var n = '^(?:(?:' + t.join('|') + ')://)(?:\\S+(?::\\S*)?@)?(?:',
u = '(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))'
if (
(i ? (u += '?') : (n += '(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})'),
(n +=
'(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*' +
u +
')(?::\\d{2,5})?(?:[/?#]\\S*)?$'),
a)
) {
n = '(?:' + n + ")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"
}
return new RegExp(n, 'i')
}),
x = {
isRequired: function (e, t) {
return !(void 0 === t || '' === t || null === t || (Array.isArray(t) && !t.length))
},
isExisty: function (e, t) {
return p(t)
},
matchRegexp: function (e, t, i) {
return (
!p(t) ||
g(t) ||
((a = i), a instanceof RegExp ? a : /^(?:matchRegexp\:)?\/(.+)\/([gimuy]*)$/.test(a) ? new RegExp(RegExp.$1, RegExp.$2 || '') : 'string' == typeof a ? new RegExp(a) : /^$/).test(t)
)
var a
},
isUndefined: function (e, t) {
return void 0 === t
},
isEmptyString: function (e, t) {
return g(t)
},
isEmail: function (e, t) {
return x.matchRegexp(
e,
t,
/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i
)
},
isUrl: function (e, t, i) {
return x.matchRegexp(e, t, h(i))
},
isTrue: function (e, t) {
return !0 === t
},
isFalse: function (e, t) {
return !1 === t
},
isNumeric: function (e, t) {
return 'number' == typeof t || x.matchRegexp(e, t, /^[-+]?(?:\d*[.])?\d+$/)
},
isAlpha: function (e, t) {
return x.matchRegexp(e, t, /^[A-Z]+$/i)
},
isAlphanumeric: function (e, t) {
return x.matchRegexp(e, t, /^[0-9A-Z]+$/i)
},
isInt: function (e, t) {
return x.matchRegexp(e, t, /^(?:[-+]?(?:0|[1-9]\d*))$/)
},
isFloat: function (e, t) {
return x.matchRegexp(e, t, /^(?:[-+]?(?:\d+))?(?:\.\d*)?(?:[eE][\+\-]?(?:\d+))?$/)
},
isWords: function (e, t) {
return x.matchRegexp(e, t, /^[A-Z\s]+$/i)
},
isSpecialWords: function (e, t) {
return x.matchRegexp(e, t, /^[A-Z\s\u00C0-\u017F]+$/i)
},
isLength: function (e, t, i) {
return 'number' == typeof t && (t = String(t)), !p(t) || g(t) || t.length === i
},
equals: function (e, t, i) {
return !p(t) || g(t) || t == i
},
equalsField: function (e, t, i) {
return t == e[i]
},
maxLength: function (e, t, i) {
return 'number' == typeof t && (t = String(t)), !p(t) || t.length <= i
},
minLength: function (e, t, i) {
return 'number' == typeof t && (t = String(t)), !p(t) || g(t) || t.length >= i
},
isUrlPath: function (e, t, i) {
return !p(t) || g(t) || /^[a-z0-9_\\-]+$/i.test(t)
},
maximum: function (e, t, i) {
return !p(t) || g(t) || (parseFloat(t) || 0) <= (parseFloat(i) || 0)
},
lt: function (e, t, i) {
return !p(t) || g(t) || (parseFloat(t) || 0) < (parseFloat(i) || 0)
},
minimum: function (e, t, i) {
return !p(t) || g(t) || (parseFloat(t) || 0) >= (parseFloat(i) || 0)
},
gt: function (e, t, i) {
return !p(t) || g(t) || (parseFloat(t) || 0) > (parseFloat(i) || 0)
},
isJson: function (e, t, i) {
if (p(t) && !g(t) && 'string' == typeof t)
try {
var a = JSON.parse(t)
return !('object' != typeof a || !a)
} catch (e) {
return !1
}
return !0
},
isPhoneNumber: function (e, t) {
return !p(t) || g(t) || /^[1]([3-9])[0-9]{9}$/.test(t)
},
isTelNumber: function (e, t) {
return !p(t) || g(t) || /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)
},
isZipcode: function (e, t) {
return !p(t) || g(t) || /^\d{6}$/.test(t)
},
isId: function (e, t) {
return !p(t) || g(t) || d.isId(String(t))
},
isId18: function (e, t) {
return !p(t) || g(t) || d.isId18(String(t))
},
isId15: function (e, t) {
return !p(t) || g(t) || d.isId15(String(t))
},
notEmptyString: function (e, t) {
return !p(t) || !(String(t) && '' === String(t).trim())
},
matchRegexp1: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp2: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp3: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp4: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp5: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp6: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp7: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp8: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
matchRegexp9: function (e, t, i) {
return x.matchRegexp(e, t, i)
},
isDateTimeSame: function (e, t, i, a) {
return c.default(t).isSame(c.default(i), a)
},
isDateTimeBefore: function (e, t, i, a) {
return c.default(t).isBefore(c.default(i), a)
},
isDateTimeAfter: function (e, t, i, a) {
return c.default(t).isAfter(c.default(i), a)
},
isDateTimeSameOrBefore: function (e, t, i, a) {
return c.default(t).isSameOrBefore(c.default(i), a)
},
isDateTimeSameOrAfter: function (e, t, i, a) {
return c.default(t).isSameOrAfter(c.default(i), a)
},
isDateTimeBetween: function (e, t, i, a, r, n) {
return c.default(t).isBetween(c.default(i), c.default(a), r, n)
},
isTimeSame: function (e, t, i, a, r) {
return (r = null != r ? r : 'hh:mm:ss'), c.default(t, r).isSame(c.default(i, r), a)
},
isTimeBefore: function (e, t, i, a, r) {
return (r = null != r ? r : 'hh:mm:ss'), c.default(t, r).isBefore(c.default(i, r), a)
},
isTimeAfter: function (e, t, i, a, r) {
return (r = null != r ? r : 'hh:mm:ss'), c.default(t, r).isAfter(c.default(i, r), a)
},
isTimeSameOrBefore: function (e, t, i, a, r) {
return (r = null != r ? r : 'hh:mm:ss'), c.default(t, r).isSameOrBefore(c.default(i, r), a)
},
isTimeSameOrAfter: function (e, t, i, a, r) {
return (r = null != r ? r : 'hh:mm:ss'), c.default(t, r).isSameOrAfter(c.default(i, r), a)
},
isTimeBetween: function (e, t, i, a, r, n, u) {
return (u = null != u ? u : 'hh:mm:ss'), c.default(t, u).isBetween(c.default(i, u), c.default(a, u), r, n)
},
isVariableName: function (e, t, i) {
return x.matchRegexp(e, t, i instanceof RegExp ? i : /^[a-zA-Z_]+[a-zA-Z0-9_]*$/)
}
}
var v = {
isEmail: 'validate.isEmail',
isRequired: 'validate.isRequired',
isUrl: 'validate.isUrl',
isInt: 'validate.isInt',
isAlpha: 'validate.isAlpha',
isNumeric: 'validate.isNumeric',
isAlphanumeric: 'validate.isAlphanumeric',
isFloat: 'validate.isFloat',
isWords: 'validate.isWords',
isUrlPath: 'validate.isUrlPath',
matchRegexp: 'validate.matchRegexp',
minLength: 'validate.minLength',
maxLength: 'validate.maxLength',
minLengthArray: 'validate.array.minLength',
maxLengthArray: 'validate.array.maxLength',
maximum: 'validate.maximum',
lt: 'validate.lt',
minimum: 'validate.minimum',
gt: 'validate.gt',
isJson: 'validate.isJson',
isLength: 'validate.isLength',
notEmptyString: 'validate.notEmptyString',
equalsField: 'validate.equalsField',
equals: 'validate.equals',
isPhoneNumber: 'validate.isPhoneNumber',
isTelNumber: 'validate.isTelNumber',
isZipcode: 'validate.isZipcode',
isId: 'validate.isId',
isId18: 'validate.isId',
isId15: 'validate.isId',
isDateTimeSame: 'validate.isDateTimeSame',
isDateTimeBefore: 'validate.isDateTimeBefore',
isDateTimeAfter: 'validate.isDateTimeAfter',
isDateTimeSameOrBefore: 'validate.isDateTimeSameOrBefore',
isDateTimeSameOrAfter: 'validate.isDateTimeSameOrAfter',
isDateTimeBetween: 'validate.isDateTimeBetween',
isTimeSame: 'validate.isTimeSame',
isTimeBefore: 'validate.isTimeBefore',
isTimeAfter: 'validate.isTimeAfter',
isTimeSameOrBefore: 'validate.isTimeSameOrBefore',
isTimeSameOrAfter: 'validate.isTimeSameOrAfter',
isTimeBetween: 'validate.isTimeBetween',
isVariableName: 'validate.isVariableName'
}
function D(e, t, i, a, n) {
var s
void 0 === n &&
(n = function (e) {
return e
})
if (i)
for (var m = Object.keys(i), d = m.length, o = 0; o < d; o++) {
var c = m[o]
if (i[c] || 0 === i[c]) {
if ('function' != typeof x[c]) throw new Error('Validation `' + c + '` not exists!')
var F = x[c],
p = (Array.isArray(i[c]) ? i[c] : [i[c]]).map(function (e) {
return 'string' == typeof e && f.isPureVariable(e) ? l.resolveVariableAndFilter(e, t, '|raw') : e
}),
g = F.apply(void 0, r.__spreadArray([t, e], r.__read(p), !1)),
h = ''
if (('object' == typeof g && !0 === g.error && (h = null !== (s = null == g ? void 0 : g.msg) && void 0 !== s ? s : ''), !g || h)) {
var D = c
return Array.isArray(e) && (D = ''.concat(c, 'Array')), [{ rule: c, msg: u.filter(n((a && a[c]) || h || v[D] || v[c]), r.__assign({}, [''].concat(p))) }]
}
}
}
return []
}
;(t.addRule = function (e, t, i) {
void 0 === i && (i = ''), (x[e] = t), (v[e] = i)
}),
(t.str2rules = function (e) {
return 'string' == typeof e
? e
? ((t = e),
(i = 0),
(a = {}),
t
.replace(/matchRegexp\d*\s*\:\s*\/.*?\/[igm]*/g, function (e) {
return (a['__'.concat(i)] = e), '__'.concat(i++)
})
.split(/,(?![^{\[]*[}\]])/g)
.map(function (e) {
return /^__\d+$/.test(e) ? a[e] : e.trim()
})).reduce(function (e, t) {
var i = t.indexOf(':'),
a = t,
r = []
return (
~i &&
((a = t.substring(0, i)),
(r = /^matchRegexp/.test(a)
? [t.substring(i + 1).trim()]
: t
.substring(i + 1)
.split(',')
.map(function (e) {
try {
return JSON.parse(e)
} catch (t) {
return e
}
}))),
(e[a] = !r.length || r),
e
)
}, {})
: {}
: e || {}
var t, i, a
}),
(t.validate = D),
(t.validateMessages = v),
(t.validateObject = function (e, t, i, a) {
void 0 === a &&
(a = function (e) {
return e
})
var r = {}
return (
Object.keys(t).forEach(function (n) {
var u = D(e[n], e, !0 === t[n] ? { isRequired: !0 } : t[n], i, a)
u.length && (r[n] = u)
}),
r
)
}),
(t.validations = x)
}) /*!node_modules/amis-core/lib/utils/Animation.js*/
amis.define('d823824', function (t, i, n, e) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
var o = t('68b98b9')
var a = (function (t) {
if ('undefined' != typeof window && window.navigator) return !!navigator.userAgent.match(t)
})(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
r = (function () {
function t() {
;(this.animating = !1), (this.states = [])
}
return (
(t.prototype.capture = function (t) {
var i = this
;(this.states = []),
[].slice.call(t.children).forEach(function (t) {
if (!t.classList.contains('is-ghost')) {
var n = u(t)
if (n.width) {
var e = o.__assign({}, n),
a = { target: t, rect: n }
if (t.thisAnimationDuration) {
var r = f(t)
r && ((e.top -= r.f), (e.left -= r.e))
}
;(t.fromRect = e), i.states.push(a)
}
}
})
}),
(t.prototype.animateAll = function (t) {
var i = this
this.animating = !1
var n = 0
this.states.forEach(function (t) {
var e = 0,
a = t.target,
r = a.fromRect,
d = o.__assign({}, u(a)),
l = a.prevFromRect,
m = a.prevToRect,
c = t.rect,
h = f(a)
h && ((d.top -= h.f), (d.left -= h.e)),
(a.toRect = d),
a.thisAnimationDuration &&
s(l, d) &&
!s(r, d) &&
(c.top - d.top) / (c.left - d.left) == (r.top - d.top) / (r.left - d.left) &&
(e = (function (t, i, n) {
return (Math.sqrt(Math.pow(i.top - t.top, 2) + Math.pow(i.left - t.left, 2)) / Math.sqrt(Math.pow(i.top - n.top, 2) + Math.pow(i.left - n.left, 2))) * 150
})(c, l, m)),
s(d, r) || ((a.prevFromRect = r), (a.prevToRect = d), e || (e = 150), i.animate(a, c, d, e)),
e &&
((i.animating = !0),
(n = Math.max(n, e)),
clearTimeout(a.animationResetTimer),
(a.animationResetTimer = setTimeout(function () {
;(a.animationTime = 0), (a.prevFromRect = null), (a.fromRect = null), (a.prevToRect = null), (a.thisAnimationDuration = null)
}, e)),
(a.thisAnimationDuration = e))
}),
clearTimeout(this.animationCallbackId),
this.animating
? (this.animationCallbackId = setTimeout(function () {
;(i.animating = !1), 'function' == typeof t && t()
}, n))
: 'function' == typeof t && t(),
(this.states = [])
}),
(t.prototype.animate = function (t, i, n, e) {
if (e) {
var o = !1
d(t, 'transition', ''), d(t, 'transform', '')
var a = i.left - n.left,
r = i.top - n.top
;(t.animatingX = !!a),
(t.animatingY = !!r),
d(t, 'transform', 'translate3d(' + a + 'px,' + r + 'px,0)'),
'inline' === d(t, 'display') && ((o = !0), d(t, 'display', 'inline-block')),
t.offsetWidth,
d(t, 'transition', 'transform ' + e + 'ms cubic-bezier(1, 0, 0, 1)'),
d(t, 'transform', 'translate3d(0,0,0)'),
'number' == typeof t.animated && clearTimeout(t.animated),
(t.animated = setTimeout(function () {
d(t, 'transition', ''), d(t, 'transform', ''), o && d(t, 'display', ''), (t.animated = !1), (t.animatingX = !1), (t.animatingY = !1)
}, e))
}
}),
t
)
})()
function f(t) {
var i = ''
if ('string' == typeof t) i = t
else {
var n = d(t, 'transform')
n && 'none' !== n && (i = n + ' ' + i)
}
var e = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix
return e && new e(i)
}
function d(t, i, n) {
var e = t && t.style
if (e) {
if (void 0 === n)
return document.defaultView && document.defaultView.getComputedStyle ? (n = document.defaultView.getComputedStyle(t, '')) : t.currentStyle && (n = t.currentStyle), void 0 === i ? n : n[i]
i in e || -1 !== i.indexOf('webkit') || (i = '-webkit-' + i), (e[i] = n + ('string' == typeof n ? '' : 'px'))
}
}
function s(t, i) {
return Math.round(t.top) === Math.round(i.top) && Math.round(t.left) === Math.round(i.left) && Math.round(t.height) === Math.round(i.height) && Math.round(t.width) === Math.round(i.width)
}
function u(t, i, n, e, o) {
if (t.getBoundingClientRect || t === window) {
var r, s, u, l, m, c, h
if (
(t !== window && t !== (document.scrollingElement || document.documentElement)
? ((s = (r = t.getBoundingClientRect()).top), (u = r.left), (l = r.bottom), (m = r.right), (c = r.height), (h = r.width))
: ((s = 0), (u = 0), (l = window.innerHeight), (m = window.innerWidth), (c = window.innerHeight), (h = window.innerWidth)),
(i || n) && t !== window && ((o = o || t.parentNode), !a))
)
do {
if (o && o.getBoundingClientRect && ('none' !== d(o, 'transform') || (n && 'static' !== d(o, 'position')))) {
var p = o.getBoundingClientRect()
;(s -= p.top + parseInt(d(o, 'border-top-width'))), (u -= p.left + parseInt(d(o, 'border-left-width'))), (l = s + r.height), (m = u + r.width)
break
}
} while ((o = o.parentNode))
if (e && t !== window) {
var w = f(o || t),
g = w && w.a,
v = w && w.d
w && ((l = (s /= v) + (c /= v)), (m = (u /= g) + (h /= g)))
}
return { top: s, left: u, bottom: l, right: m, width: h, height: c }
}
}
var l = new r()
;(i.AnimationManager = r), (i.default = l)
}) /*!node_modules/amis-core/lib/store/iRenderer.js*/
amis.define('7db930a', function (e, a, t, n) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var i = e('68b98b9'),
r = e('668845d')
e('939b8bb'), e('c3389ff'), e('8b081ba')
var o = e('bbe84d0'),
d = e('e74b24f'),
l = e('1c8d418')
e('8b641b6')
var c = e('d2a103e'),
s = e('a533195')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e')
var u = e('a3127fc')
e('607aee2'),
e('5c95135'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('575a22c'),
e('0910768'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2'),
e('e913672'),
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var p = s.StoreNode.named('iRendererStore')
.props({
hasRemoteData: r.types.optional(r.types.boolean, !1),
data: r.types.optional(r.types.frozen(), {}),
initedAt: 0,
updatedAt: 0,
pristine: r.types.optional(r.types.frozen(), {}),
action: r.types.optional(r.types.frozen(), void 0),
dialogOpen: !1,
dialogData: r.types.optional(r.types.frozen(), void 0),
drawerOpen: !1,
drawerData: r.types.optional(r.types.frozen(), void 0)
})
.views(function (e) {
return {
getValueByName: function (a, t) {
return void 0 === t && (t = !0), d.getVariable(e.data, a, t)
},
getPristineValueByName: function (a) {
return d.getVariable(e.pristine, a, !1)
}
}
})
.actions(function (e) {
var a = new c.SimpleMap(),
t = null,
n = null,
r = null
return {
setTopStore: function (e) {
r = e
},
initData: function (a, t) {
void 0 === a && (a = {}), void 0 === t && (t = !1), (e.initedAt = Date.now()), e.data.__tag && (a = o.injectObjectChain(a, e.data.__tag)), !t && (e.pristine = a), (e.data = a)
},
reset: function () {
e.data = e.pristine
},
updateData: function (a, t, n, r) {
void 0 === a && (a = {}), r && (a = u.concatData(a, e.data, r))
var d,
l = e.data
if (t) {
var c = o.createObject(e.data.__super || null, i.__assign(i.__assign({}, t), { __tag: t }))
d = o.createObject(c, i.__assign(i.__assign({}, n ? {} : e.data), a))
} else d = o.extendObject(e.data, a, !n)
Object.defineProperty(d, '__prev', { value: i.__assign({}, l), enumerable: !1, configurable: !1, writable: !1 }), (e.data = d)
},
changeValue: function (a, t, n, r, l) {
if (a) {
var c = d.getVariable(e.data, a, !1)
if (t !== c || r) {
var s = e.data,
u = o.cloneObject(e.data)
if (s.hasOwnProperty('__prev')) {
var p = o.cloneObject(s.__prev)
o.setVariable(p, a, c), Object.defineProperty(u, '__prev', { value: p, enumerable: !1, configurable: !1, writable: !1 })
} else Object.defineProperty(u, '__prev', { value: i.__assign({}, s), enumerable: !1, configurable: !1, writable: !1 })
if ((void 0 === t ? o.deleteVariable(u, a) : o.setVariable(u, a, t), null == l || l(u), n)) {
var b = o.cloneObject(e.pristine)
o.setVariable(b, a, t), null == l || l(b), (e.pristine = b)
}
u.__pristine || Object.defineProperty(u, '__pristine', { value: e.pristine, enumerable: !1, configurable: !1, writable: !1 }), (e.data = u)
}
}
},
setCurrentAction: function (a, t) {
t &&
['dialog', 'drawer'].forEach(function (e) {
var n, r
;(null === (r = a[e]) || void 0 === r ? void 0 : r.$ref) && (a = i.__assign(i.__assign({}, a), (((n = {})[e] = i.__assign(i.__assign({}, t(a[e].$ref)), a[e])), n)))
}),
(e.action = a),
(e.dialogData = !1),
(e.drawerOpen = !1)
},
openDialog: function (n, d, c, s) {
var u,
p,
b = o.extractObjectChain(n)
1 === b.length && b.unshift(e.data), d && b.splice(b.length - 1, 0, d)
var f = o.createObjectFromChain(b),
g = null !== (u = e.action.data) && void 0 !== u ? u : null === (p = e.action.dialog) || void 0 === p ? void 0 : p.data
if (g) {
e.dialogData = o.createObjectFromChain([null == r ? void 0 : r.context, l.dataMapping(g, f)])
var _ = i.__assign(i.__assign({}, e.action), { dialog: i.__assign({}, e.action.dialog) })
delete _.dialog.data, (e.action = _)
} else e.dialogData = f
;(e.dialogOpen = !0), c && a.set(e.dialogData, c), (t = s || null)
},
closeDialog: function (n, i) {
var r = a.get(e.dialogData)
;(e.dialogOpen = !1),
(t = null),
r &&
(a.delete(e.dialogData),
setTimeout(function () {
return r(n, i)
}, 200))
},
openDrawer: function (t, d, c, s) {
var u,
p = o.extractObjectChain(t)
1 === p.length && p.unshift(e.data), d && p.splice(p.length - 1, 0, d)
var b = o.createObjectFromChain(p),
f = null !== (u = e.action.data) && void 0 !== u ? u : e.action.drawer.data
if (f) {
e.drawerData = o.createObjectFromChain([null == r ? void 0 : r.context, l.dataMapping(f, b)])
var g = i.__assign(i.__assign({}, e.action), { drawer: i.__assign({}, e.action.drawer) })
delete g.drawer.data, (e.action = g)
} else e.drawerData = b
;(e.drawerOpen = !0), c && a.set(e.drawerData, c), (n = s || null)
},
closeDrawer: function (t, i) {
var r = a.get(e.drawerData)
;(e.drawerOpen = !1),
(n = null),
r &&
(a.delete(e.drawerData),
setTimeout(function () {
return r(t, i)
}, 200))
},
getDialogScoped: function () {
return t
},
getDrawerScoped: function () {
return n
}
}
})
a.iRendererStore = p
}) /*!node_modules/amis-core/lib/utils/replaceText.js*/
amis.define('dc90a49', function (e, r, t, n) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var a = e('68b98b9'),
i = e('939b8bb'),
u = e('bbe84d0')
r.replaceText = function (e, r, t) {
if (r && u.isObject(r)) {
var n = Object.keys(r)
if (!n.length) return e
n.sort(function (e, r) {
return r.length - e.length
})
var f = new Set(Array.isArray(t) ? t : []),
l =
'function' == typeof t
? t
: function (e) {
return f.has(e)
}
return i.JSONValueMap(e, function (e, t, i) {
var u, f
if ('string' == typeof e && !l(t, e, i))
try {
for (var o = a.__values(n), c = o.next(); !c.done; c = o.next()) {
var s = c.value
if (~e.indexOf(s)) return e.replaceAll(s, r[s])
}
} catch (e) {
u = { error: e }
} finally {
try {
c && !c.done && (f = o.return) && f.call(o)
} finally {
if (u) throw u.error
}
}
return e
})
}
return e
}
}) /*!node_modules/amis-core/lib/envOverwrite.js*/
amis.define('3b516dc', function (e, t, i, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('939b8bb')
function d(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var l,
o,
u = d(e('0910768')),
r = !!(null === (o = (l = window).matchMedia) || void 0 === o ? void 0 : o.call(l, '(max-width: 768px)').matches)
t.envOverwrite = function (e, t) {
return a.JSONValueMap(
e,
function (e) {
return u.default(e) ? (t && e[t] ? (delete (i = Object.assign({}, e, e[t]))[t], i) : r && e.mobile ? (delete (i = Object.assign({}, e, e.mobile)).mobile, i) : void 0) : e
var i
},
!0
)
}
}) /*!node_modules/amis-core/lib/store/service.js*/
amis.define('3e2dd5e', function (e, s, a, t) {
'use strict'
Object.defineProperty(s, '__esModule', { value: !0 })
var n = e('68b98b9'),
i = e('668845d'),
r = e('7db930a'),
o = e('939b8bb'),
c = e('3f15357'),
l = e('d9d4e46'),
u = e('dc90a49'),
d = e('a3127fc'),
g = e('3b516dc')
e('8dd52de'), e('22a4ae5'), e('5e0783e'), e('c3389ff'), e('0910768')
var v = e('bbe84d0')
e('607aee2'), e('5c95135'), e('8b081ba'), e('a3bbeb2'), e('933bc12')
var f = e('575a22c')
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2'),
e('e913672'),
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var m = r.iRendererStore
.named('ServiceStore')
.props({ msg: '', error: !1, fetching: !1, saving: !1, busying: !1, checking: !1, initializing: !1, schema: i.types.optional(i.types.frozen(), null), schemaKey: '' })
.views(function (e) {
return {
get loading() {
return e.fetching || e.saving || e.busying || e.initializing
}
}
})
.actions(function (e) {
var s, a
function t(s) {
void 0 === s && (s = !0), (e.fetching = s)
}
function r(s) {
void 0 === s && (s = !0), (e.saving = s)
}
function m(s, a, t) {
void 0 === a && (a = !1), t && (s = d.concatData(s, e.data, t))
var n = v.extendObject(e.data, s, !a)
e.data = e.pristine = n
}
function h(s, a) {
void 0 === a && (a = !1), (e.msg = (s && f.filter(s, e.data)) || ''), (e.error = a)
}
var p = i.flow(function (a, r, o) {
var c, u, d, g, v, f, p, _, b, y, E, D, w, k
return n.__generator(this, function (M) {
switch (M.label) {
case 0:
return (
M.trys.push([0, 6, , 7]),
s && (s(), (s = null), (e.fetching = !1)),
e.fetching
? [2]
: ((o && o.silent) || t(!0),
[
4,
i.getEnv(e).fetcher(
a,
r,
n.__assign(n.__assign({}, o), {
cancelExecutor: function (e) {
return (s = e)
}
})
)
])
)
case 1:
return (
(c = M.sent()),
(s = null),
c.ok
? [3, 2]
: (h(
null !== (y = null !== (b = null === (_ = null == a ? void 0 : a.messages) || void 0 === _ ? void 0 : _.failed) && void 0 !== b ? b : c.msg) && void 0 !== y
? y
: o && o.errorMessage,
!0
),
!a.silent && i.getEnv(e).notify('error', e.msg, void 0 !== c.msgTimeout ? { closeButton: !0, timeout: c.msgTimeout } : void 0),
[3, 5])
)
case 2:
return (
(e.updatedAt = Date.now()),
(u = !!a.replaceData),
m((d = n.__assign(n.__assign({}, u ? {} : e.data), l.normalizeApiResponseData(c.data))), u, a.concatDataFields),
(e.hasRemoteData = !0),
o && o.onSuccess ? ((g = o.onSuccess(c, d)) && g.then ? [4, g] : [3, 4]) : [3, 4]
)
case 3:
M.sent(), (M.label = 4)
case 4:
h(
null !==
(k =
null !== (w = null !== (D = null === (E = null == a ? void 0 : a.messages) || void 0 === E ? void 0 : E.success) && void 0 !== D ? D : c.msg) && void 0 !== w
? w
: o && o.successMessage) && void 0 !== k
? k
: c.defaultMsg
),
o && o.successMessage && i.getEnv(e).notify('success', e.msg),
(M.label = 5)
case 5:
return t(!1), [2, c]
case 6:
return (
(v = M.sent()),
(f = i.getEnv(e)),
!i.isAlive(e) || e.disposed
? [2]
: (f.isCancel(v) || (t(!1), console.error(v), (p = v.message || v), v && 'Network Error' === v.message && (p = e.__('networkError')), !a.silent && f.notify('error', p)), [2])
)
case 7:
return [2]
}
})
}),
_ = i.flow(function (a, r, c) {
var u, d, g, v, f, m, p, _, b, y, E
return n.__generator(this, function (D) {
switch (D.label) {
case 0:
return (
D.trys.push([0, 6, , 7]),
s && (s(), (s = null), (e.fetching = !1)),
e.fetching
? [2]
: ((c && c.silent) || t(!0),
[
4,
i.getEnv(e).fetcher(
a,
r,
n.__assign(n.__assign({}, c), {
cancelExecutor: function (e) {
return (s = e)
}
})
)
])
)
case 1:
return (
(u = D.sent()),
(s = null),
(o.isEmpty(u.data) && !u.ok) ||
((e.updatedAt = Date.now()), u.data && e.updateData(l.normalizeApiResponseData(u.data), void 0, !!a.replaceData, a.concatDataFields), (e.hasRemoteData = !0)),
u.ok
? [3, 2]
: (h(
null !== (_ = null !== (p = null === (m = null == a ? void 0 : a.messages) || void 0 === m ? void 0 : m.failed) && void 0 !== p ? p : u.msg) && void 0 !== _
? _
: c && c.errorMessage,
!0
),
!a.silent && i.getEnv(e).notify('error', e.msg, void 0 !== u.msgTimeout ? { closeButton: !0, timeout: u.msgTimeout } : void 0),
[3, 5])
)
case 2:
return c && c.onSuccess && (d = c.onSuccess(u, u.data)) && d.then ? [4, d] : [3, 4]
case 3:
D.sent(), (D.label = 4)
case 4:
h(
null !== (E = null !== (y = null === (b = null == a ? void 0 : a.messages) || void 0 === b ? void 0 : b.success) && void 0 !== y ? y : u.msg) && void 0 !== E
? E
: c && c.successMessage
),
c && c.successMessage && i.getEnv(e).notify('success', e.msg),
(D.label = 5)
case 5:
return t(!1), [2, u]
case 6:
return (
(g = D.sent()),
(v = i.getEnv(e)),
!i.isAlive(e) || e.disposed
? [2]
: (v.isCancel(g) || (t(!1), console.error(g), (f = g.message || g), g && 'Network Error' === g.message && (f = e.__('networkError')), !a.silent && v.notify('error', f)), [2])
)
case 7:
return [2]
}
})
}),
b = i.flow(function (s, a, t) {
var u, d, g, v, f, m, p, _, b, y, E
return (
void 0 === t && (t = {}),
n.__generator(this, function (D) {
switch (D.label) {
case 0:
return D.trys.push([0, 8, , 9]), (t = n.__assign({ method: 'post' }, t)), e.saving ? [2] : (r(!0), [4, i.getEnv(e).fetcher(s, a, t)])
case 1:
return (
(u = D.sent()),
(o.isEmpty(u.data) && !u.ok) || ((e.updatedAt = Date.now()), u.data && e.updateData(l.normalizeApiResponseData(u.data), void 0, !!s.replaceData, s.concatDataFields)),
u.ok ? [3, 4] : t && t.onFailed && (d = t.onFailed(u)) && d.then ? [4, d] : [3, 3]
)
case 2:
D.sent(), (D.label = 3)
case 3:
throw (
(h(
null !==
(_ =
null !== (p = null !== (m = null === (f = null == s ? void 0 : s.messages) || void 0 === f ? void 0 : f.failed) && void 0 !== m ? m : u.msg) && void 0 !== p
? p
: t && t.errorMessage) && void 0 !== _
? _
: e.__('saveFailed'),
!0
),
new c.ServerError(e.msg, u))
)
case 4:
return t && t.onSuccess && (d = t.onSuccess(u, u.data)) && d.then ? [4, d] : [3, 6]
case 5:
D.sent(), (D.label = 6)
case 6:
h(
null !== (E = null !== (y = null === (b = null == s ? void 0 : s.messages) || void 0 === b ? void 0 : b.success) && void 0 !== y ? y : u.msg) && void 0 !== E
? E
: t && t.successMessage
),
e.msg && i.getEnv(e).notify('success', e.msg, void 0 !== u.msgTimeout ? { closeButton: !0, timeout: u.msgTimeout } : void 0),
(D.label = 7)
case 7:
return r(!1), [2, u.data]
case 8:
if (((g = D.sent()), (e.saving = !1), !i.isAlive(e) || e.disposed)) return [2]
throw (
(console.error(g),
s.silent ||
('ServerError' === g.type
? ((v = g.response), i.getEnv(e).notify('error', g.message, void 0 !== v.msgTimeout ? { closeButton: !0, timeout: v.msgTimeout } : void 0))
: i.getEnv(e).notify('error', g.message)),
g)
)
case 9:
return [2]
}
})
)
}),
y = i.flow(function (s, t, r) {
var o, c, d, f, m, p, _, b, y, E, D, w
return (
void 0 === r && (r = {}),
n.__generator(this, function (k) {
switch (k.label) {
case 0:
return (
k.trys.push([0, 2, , 3]),
(r = n.__assign(n.__assign({ method: 'post' }, r), {
cancelExecutor: function (e) {
return (a = e)
}
})),
a && (a(), (a = null), (e.initializing = !1)),
e.initializing
? [2]
: ((e.initializing = !0),
'string' == typeof s
? (s += (~s.indexOf('?') ? '&' : '?') + '_replace=1')
: (s = n.__assign(n.__assign({}, s), { url: s.url + (~s.url.indexOf('?') ? '&' : '?') + '_replace=1' })),
[4, i.getEnv(e).fetcher(s, t, r)])
)
case 1:
return (
(o = k.sent()),
(a = null),
o.ok
? (o.data &&
((d = i.getEnv(e)),
(o.data = g.envOverwrite(o.data, d.locale)),
(o.data = u.replaceText(o.data, d.replaceText, d.replaceTextIgnoreKeys)),
(e.schema = Array.isArray(o.data)
? o.data
: Object.assign((null === (y = o.data) || void 0 === y ? void 0 : y.type) ? {} : { type: 'wrapper', wrap: !1 }, l.normalizeApiResponseData(o.data))),
(e.schemaKey = '' + Date.now()),
v.isObject(o.data.data) && e.updateData(o.data.data, void 0, !!s.replaceData, s.concatDataFields)),
h(
null !== (w = null !== (D = null === (E = null == s ? void 0 : s.messages) || void 0 === E ? void 0 : E.success) && void 0 !== D ? D : o.msg) && void 0 !== w
? w
: r && r.successMessage
),
r && r.successMessage && i.getEnv(e).notify('success', e.msg))
: (h(
null !==
(b =
null !== (_ = null !== (p = null === (m = null == s ? void 0 : s.messages) || void 0 === m ? void 0 : m.failed) && void 0 !== p ? p : o.msg) && void 0 !== _
? _
: r && r.errorMessage) && void 0 !== b
? b
: e.__('fetchFailed'),
!0
),
!(null == s ? void 0 : s.silent) && i.getEnv(e).notify('error', e.msg, void 0 !== o.msgTimeout ? { closeButton: !0, timeout: o.msgTimeout } : void 0)),
(e.initializing = !1),
[2, o.data]
)
case 2:
return (
(c = k.sent()),
(d = i.getEnv(e)),
(e.initializing = !1),
!i.isAlive(e) || e.disposed
? [2]
: d.isCancel(c)
? [2]
: (console.error(c), (f = c.message || c), c && 'Network Error' === c.message && (f = e.__('networkError')), !(null == s ? void 0 : s.silent) && d.notify('error', f), [3, 3])
)
case 3:
return [2]
}
})
)
}),
E = i.flow(function (s, a, t) {
var r
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
if (e.checking) return [2]
n.label = 1
case 1:
return n.trys.push([1, , 3, 4]), (e.checking = !0), [4, i.getEnv(e).fetcher(s, a, t)]
case 2:
if (((r = n.sent()).ok && e.updateData(r.data, void 0, !!s.replaceData, s.concatDataFields), !r.ok)) throw new Error(r.msg)
return [2, r.data]
case 3:
return (e.checking = !1), [7]
case 4:
return [2]
}
})
})
return {
markFetching: t,
markSaving: r,
markBusying: function (s) {
void 0 === s && (s = !0), (e.busying = s)
},
fetchInitData: p,
fetchData: _,
reInitData: m,
updateMessage: h,
clearMessage: function () {
h('')
},
setHasRemoteData: function () {
e.hasRemoteData = !0
},
saveRemote: b,
fetchSchema: y,
checkRemote: E
}
})
s.ServiceStore = m
}) /*!node_modules/amis-core/lib/store/combo.js*/
amis.define('9bf2913', function (e, t, n, i) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9'),
u = e('668845d'),
o = e('7db930a'),
m = e('821b8e4'),
s = e('939b8bb'),
a = u.types
.model('UniqueGroup', { name: u.types.identifier, itemsRef: u.types.array(u.types.string) })
.views(function (e) {
return {
get items() {
return e.itemsRef.map(function (e) {
return m.getStoreById(e)
})
}
}
})
.actions(function (e) {
return {
removeItem: function (t) {
e.itemsRef.replace(
e.itemsRef.filter(function (e) {
return e !== t.id
})
)
},
addItem: function (t) {
e.itemsRef.push(t.id)
}
}
}),
f = o.iRendererStore
.named('ComboStore')
.props({
uniques: u.types.map(a),
multiple: !1,
formsRef: u.types.optional(u.types.array(u.types.string), []),
minLength: 0,
maxLength: 0,
length: 0,
activeKey: 0,
memberValidMap: u.types.optional(u.types.frozen(), {})
})
.views(function (e) {
function t() {
return e.formsRef.map(function (e) {
return m.getStoreById(e)
})
}
return {
get forms() {
return t()
},
get addable() {
if (e.maxLength && e.length >= e.maxLength) return !1
if (e.uniques.size) {
var t = !1
if (
(e.uniques.forEach(function (e) {
if (!t && e.items.length) {
var n = s.countTree(e.items[0].options, function (e) {
return void 0 !== e.value
}),
i = e.items.reduce(function (e, t) {
return e + t.selectedOptions.length
}, 0)
t = !!(n && i >= n)
}
}),
t)
)
return !1
}
return !0
},
get removable() {
return !(e.minLength && e.minLength >= e.length)
},
getItemsByName: function (n) {
var i = t()
return e.multiple ? [i[parseInt(n, 10)]] : i[0].getItemsByName(n)
}
}
})
.actions(function (e) {
function t(t) {
var n = e.uniques.get(t.name)
n.removeItem(t), n.items.length || e.uniques.delete(t.name)
}
return {
config: function (t) {
void 0 !== t.multiple && (e.multiple = t.multiple),
void 0 !== t.minLength && (e.minLength = parseInt(t.minLength, 10)),
void 0 !== t.maxLength && (e.maxLength = parseInt(t.maxLength, 10)),
void 0 !== t.length && (e.length = t.length)
},
setActiveKey: function (t) {
e.activeKey = t
},
bindUniuqueItem: function (t) {
e.uniques.has(t.name) || e.uniques.put({ name: t.name }), e.uniques.get(t.name).addItem(t)
},
unBindUniuqueItem: t,
addForm: function (t) {
e.formsRef.push(t.id)
},
onChildStoreDispose: function (n) {
if ('FormStore' === n.storeType) {
var i = e.formsRef.indexOf(n.id)
~i &&
(e.formsRef.splice(i, 1),
n.items.forEach(function (e) {
e.unique && t(e)
}),
e.forms.forEach(function (e) {
return e.items.forEach(function (t) {
t.unique && (t.syncOptions(void 0, e.data), t.errors.length && t.validate(t.tmpValue))
})
}))
}
e.removeChildId(n.id)
},
setMemberValid: function (t, n) {
var i
e.memberValidMap = r.__assign(r.__assign({}, e.memberValidMap), (((i = {})[n] = t), i))
}
}
})
;(t.ComboStore = f), (t.UniqueGroup = a)
}) /*!node_modules/lodash/throttle.js*/
amis.define('91d4fc6', function (i, n, e, t) {
var a = i('5f94728'),
r = i('e98f234')
e.exports = function (i, n, e) {
var t = !0,
f = !0
if ('function' != typeof i) throw new TypeError('Expected a function')
return r(e) && ((t = 'leading' in e ? !!e.leading : t), (f = 'trailing' in e ? !!e.trailing : f)), a(i, n, { leading: t, maxWait: n, trailing: f })
}
}) /*!node_modules/lodash/_baseToPairs.js*/
amis.define('8fe7e9e', function (n, e, r, t) {
var f = n('6d0c860')
r.exports = function (n, e) {
return f(e, function (e) {
return [e, n[e]]
})
}
}) /*!node_modules/lodash/_setToPairs.js*/
amis.define('e47820b', function (n, r, e, i) {
e.exports = function (n) {
var r = -1,
e = Array(n.size)
return (
n.forEach(function (n) {
e[++r] = [n, n]
}),
e
)
}
}) /*!node_modules/lodash/_createToPairs.js*/
amis.define('c473556', function (e, n, t, r) {
var a = e('8fe7e9e'),
c = e('e4a838a'),
o = e('b6b0e48'),
b = e('e47820b')
t.exports = function (e) {
return function (n) {
var t = c(n)
return '[object Map]' == t ? o(n) : '[object Set]' == t ? b(n) : a(n, e(n))
}
}
}) /*!node_modules/lodash/toPairs.js*/
amis.define('4e5a8f1', function (e, f, a, i) {
var n = e('c473556')(e('0092f09'))
a.exports = n
}) /*!node_modules/lodash/_baseSet.js*/
amis.define('13feba4', function (r, o, t, e) {
var n = r('81e0325'),
f = r('94485a4'),
a = r('2126bf5'),
i = r('e98f234'),
u = r('098a4a0')
t.exports = function (r, o, t, e) {
if (!i(r)) return r
for (var v = -1, c = (o = f(o, r)).length, p = c - 1, _ = r; null != _ && ++v < c; ) {
var d = u(o[v]),
l = t
if ('__proto__' === d || 'constructor' === d || 'prototype' === d) return r
if (v != p) {
var s = _[d]
void 0 === (l = e ? e(s, d, _) : void 0) && (l = i(s) ? s : a(o[v + 1]) ? [] : {})
}
n(_, d, l), (_ = _[d])
}
return r
}
}) /*!node_modules/lodash/_basePickBy.js*/
amis.define('bd199c6', function (a, n, r, e) {
var f = a('d329aa2'),
t = a('13feba4'),
i = a('94485a4')
r.exports = function (a, n, r) {
for (var e = -1, o = n.length, c = {}; ++e < o; ) {
var d = n[e],
u = f(a, d)
r(u, d) && t(c, i(d, a), u)
}
return c
}
}) /*!node_modules/lodash/_basePick.js*/
amis.define('e9bc30b', function (n, e, c, r) {
var t = n('bd199c6'),
i = n('e4ca18d')
c.exports = function (n, e) {
return t(n, e, function (e, c) {
return i(n, c)
})
}
}) /*!node_modules/lodash/pick.js*/
amis.define('3f34d90', function (n, c, e, a) {
var f = n('e9bc30b'),
i = n('6c2aac1')(function (n, c) {
return null == n ? {} : f(n, c)
})
e.exports = i
}) /*!node_modules/amis-core/lib/store/form.js*/
amis.define('afae96a', function (e, t, r, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
i = e('668845d'),
s = e('5f94728'),
o = e('91d4fc6'),
u = e('4e5a8f1'),
l = e('3f34d90'),
c = e('3e2dd5e'),
d = e('3f15357'),
f = e('939b8bb'),
v = e('37efca2'),
m = e('c75aedd'),
p = e('0de7e2d'),
g = e('575a22c')
e('c3389ff'), e('8b081ba')
var b = e('bbe84d0'),
h = e('9c55168'),
y = e('e74b24f')
e('0910768'), e('8b641b6')
var _ = e('d9d4e46'),
E = e('027080a')
function V(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var S = V(s),
w = V(o),
D = V(u),
O = V(l),
A = V(v),
P = V(m),
j = V(p),
F = c.ServiceStore.named('FormStore')
.props({
inited: !1,
validated: !1,
submited: !1,
submiting: !1,
savedData: i.types.frozen(),
canAccessSuperData: !0,
persistData: i.types.optional(i.types.union(i.types.string, i.types.boolean), ''),
restError: i.types.optional(i.types.array(i.types.string), [])
})
.views(function (e) {
function t() {
for (var t = [], r = e.children.concat(); r.length; ) {
var a = r.shift()
'FormItemStore' !== a.storeType || a.isControlled
? ['ComboStore', 'TableStore', 'FormStore'].includes(a.storeType) || r.push.apply(r, n.__spreadArray([], n.__read(a.children), !1))
: t.push(a)
}
return t
}
return {
get loading() {
return e.saving || e.fetching
},
get items() {
return t()
},
get inputGroupItems() {
for (var e, t, r = {}, a = this.items.concat(); a.length; ) {
var n = a.shift()
if (n.inputGroupControl && (null === (e = n.inputGroupControl) || void 0 === e ? void 0 : e.name)) {
var i = null === (t = n.inputGroupControl) || void 0 === t ? void 0 : t.name
r.hasOwnProperty(i) ? r[i].push(n) : (r[i] = [n])
}
}
return r
},
get errors() {
var e = {}
return (
t().forEach(function (t) {
t.valid || (e[t.name] = Array.isArray(e[t.name]) ? e[t.name].concat(t.errors) : t.errors.concat())
}),
e
)
},
getValueByName: function (t, r) {
return void 0 === r && (r = e.canAccessSuperData), y.getVariable(e.data, t, r)
},
getPristineValueByName: function (t) {
return y.getVariable(e.pristine, t)
},
getItemById: function (e) {
return t().find(function (t) {
return t.itemId === e
})
},
getItemByName: function (e) {
return t().find(function (t) {
return t.name === e
})
},
getItemsByName: function (e) {
return t().filter(function (t) {
return t.name === e
})
},
get valid() {
return (
t().every(function (e) {
return e.valid
}) &&
(!e.restError || !e.restError.length)
)
},
get validating() {
return t().some(function (e) {
return e.validating
})
},
get isPristine() {
return A.default(e.pristine, e.data)
},
get modified() {
return e.savedData ? e.savedData !== e.data : !this.isPristine
},
get persistKey() {
return ''
.concat(location.pathname, '/')
.concat(e.path, '/')
.concat('string' == typeof e.persistData ? g.filter(e.persistData, e.data) : e.persistData)
}
}
})
.actions(function (e) {
function t(t, a, n, i) {
e.updateData(t, a, n, i),
e.items.forEach(function (r) {
var a
if (r.extraName) {
if (
(a = [y.getVariable(t, r.name, !1), y.getVariable(t, r.extraName, !1)]).some(function (e) {
return void 0 !== e
}) &&
!A.default(a, r.tmpValue)
) {
var n = r.splitExtraValue(r.tmpValue)
r.changeTmpValue(
a.map(function (e, t) {
return null != e ? e : n[t]
}),
'dataChanged'
),
r.changeEmitedValue(void 0)
}
} else void 0 !== (a = y.getVariable(t, r.name, !1)) && a !== r.tmpValue && (r.changeTmpValue(a, 'dataChanged'), r.changeEmitedValue(void 0))
r.reset(), e.inited && r.validateOnChange && r.validate(e.data)
}),
r()
}
var r = S.default(
function () {
return e.items.forEach(function (t) {
return t.syncOptions(void 0, e.data)
})
},
250,
{ trailing: !0, leading: !1 }
)
function a(t) {
e.restError.replace(t)
}
function s() {
a([])
}
var o = i.flow(function (r, a, o) {
var l, c, v, m, p, b, h, y, E, V, S, w, D, O, A, P, j, F, I
return (
void 0 === o && (o = {}),
n.__generator(this, function (N) {
switch (N.label) {
case 0:
s(), (N.label = 1)
case 1:
return N.trys.push([1, 12, , 15]), (o = n.__assign({ method: 'post' }, o)) && o.beforeSend ? ((v = o.beforeSend(a)) && v.then ? [4, v] : [3, 3]) : [3, 4]
case 2:
;(v = N.sent()), (N.label = 3)
case 3:
if (!1 === v) return [2]
N.label = 4
case 4:
return e.markSaving(!0), [4, i.getEnv(e).fetcher(r, a, o)]
case 5:
if (
((l = N.sent()),
(f.isEmpty(l.data) && !l.ok) || ((e.updatedAt = Date.now()), t(_.normalizeApiResponseData(l.data), l.ok ? { __saved: Date.now() } : void 0, !!r.replaceData, r.concatDataFields)),
l.ok)
)
return [3, 6]
throw (
(422 === l.status && l.errors
? (u(l.errors),
e.updateMessage(
null !==
(y =
null !== (h = null !== (b = null === (p = null == r ? void 0 : r.messages) || void 0 === p ? void 0 : p.failed) && void 0 !== b ? b : l.msg) && void 0 !== h
? h
: e.__(o && o.errorMessage)) && void 0 !== y
? y
: e.__('Form.validateFailed'),
!0
))
: e.updateMessage(
null !== (S = null !== (V = null === (E = null == r ? void 0 : r.messages) || void 0 === E ? void 0 : E.failed) && void 0 !== V ? V : l.msg) && void 0 !== S
? S
: e.__(o && o.errorMessage),
!0
),
new d.ServerError(e.msg, l))
)
case 6:
return g(), (null == (v = null === (w = null == o ? void 0 : o.onSuccess) || void 0 === w ? void 0 : w.call(o, l, l.data)) ? void 0 : v.then) ? [4, v] : [3, 8]
case 7:
;(v = N.sent()), (N.label = 8)
case 8:
return (null === (D = null == v ? void 0 : v.cbResult) || void 0 === D ? void 0 : D.then) ? [4, v.cbResult] : [3, 10]
case 9:
N.sent(), (N.label = 10)
case 10:
return (
e.markSaving(!1),
e.updateMessage(
null !==
(j =
null !== (P = null !== (A = null === (O = null == r ? void 0 : r.messages) || void 0 === O ? void 0 : O.success) && void 0 !== A ? A : l.msg) && void 0 !== P
? P
: 'saveSuccess' === o.successMessage
? l.defaultMsg
: e.__(o && o.successMessage)) && void 0 !== j
? j
: l.defaultMsg
),
(null === (F = null == v ? void 0 : v.dispatcher) || void 0 === F ? void 0 : F.prevented) ||
(e.msg && i.getEnv(e).notify('success', e.msg, void 0 !== l.msgTimeout ? { closeButton: !0, timeout: l.msgTimeout } : void 0)),
[2, l.data]
)
case 11:
return [3, 15]
case 12:
return (c = N.sent()), e.markSaving(!1), (null == (v = o && o.onFailed && o.onFailed(c.response || {})) ? void 0 : v.then) ? [4, v] : [3, 14]
case 13:
;(v = N.sent()), (N.label = 14)
case 14:
if (!i.isAlive(e) || e.disposed) return [2]
if (null === (I = null == v ? void 0 : v.dispatcher) || void 0 === I ? void 0 : I.prevented) return [2]
throw (
((null == r ? void 0 : r.silent) ||
('ServerError' === c.type
? ((m = c.response), i.getEnv(e).notify('error', c.message, void 0 !== m.msgTimeout ? { closeButton: !0, timeout: m.msgTimeout } : void 0))
: i.getEnv(e).notify('error', c.message)),
c)
)
case 15:
return [2]
}
})
)
})
function u(t, r) {
void 0 === r && (r = 'remote'),
Object.keys(t).forEach(function (a) {
var n = e.getItemById(a),
i = e.getItemsByName(a)
if (n) n.setError(t[a], r), delete t[a]
else if (i.length)
i.forEach(function (e) {
return e.setError(t[a], r)
}),
delete t[a]
else {
var s = l(a)
Array.isArray(s) &&
s.length &&
(s.forEach(function (e) {
return e.setError(''.concat(t[a]), r)
}),
delete t[a])
}
}),
!f.isEmpty(t) &&
a(
Object.keys(t).map(function (e) {
return String(t[e])
})
)
}
var l = function (t) {
var r = E.keyToPath(t),
a = r.length
return r.reduce(
function (e, t, r) {
if (
Array.isArray(e) &&
e.every(function (e) {
return e.getItemsByName
})
) {
var n = P.default(
e.map(function (e) {
return e.getItemsByName(t)
})
).filter(function (e) {
return e
}),
i = n
.map(function (e) {
var t
return null === (t = null == e ? void 0 : e.getSubStore) || void 0 === t ? void 0 : t.call(e)
})
.filter(function (e) {
return e
})
return i.length && r < a - 1 ? i : n
}
return null
},
[e]
)
},
c = w.default(
function (t) {
i.getEnv(e).notify('error', t)
},
1e4,
{ trailing: !1, leading: !0 }
),
v = i.flow(function (t, r, a, i, s) {
var o, u
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
;(e.submited = !0), (e.submiting = !0), (n.label = 1)
case 1:
return n.trys.push([1, , 5, 6]), [4, m(r, !0, !0, a, i)]
case 2:
return n.sent(), t ? ((o = f.difference(e.data, e.pristine)), [4, t(b.createObject(b.createObject(e.data.__super, { diff: o, __diff: o, pristine: e.pristine }), e.data))]) : [3, 4]
case 3:
return [2, null != (u = n.sent()) ? u : e.data]
case 4:
return [2, e.data]
case 5:
return (e.submiting = !1), [7]
case 6:
return [2]
}
})
}),
m = i.flow(function (t, r, a, i, s) {
var o, u, l, d, v, m, p
return n.__generator(this, function (g) {
switch (g.label) {
case 0:
;(e.validated = !0), (o = e.items.concat()), (l = 0), (d = o.length), (g.label = 1)
case 1:
return l < d
? ((u = o[l]).clearError('rules'),
u.validated &&
b.isObject(u.rules) &&
D.default(u.rules)
.filter(function (e) {
var t = n.__read(e, 2),
r = t[0]
return t[1], /^is(Date)?Time/.test(r)
})
.some(function (e) {
var t = n.__read(e, 2)
t[0]
var r = t[1]
return Array.isArray(r)
? r.some(function (e) {
return h.isPureVariable(e)
})
: h.isPureVariable(r)
}) &&
u.resetValidationStatus(),
!u.validated || u.rules.equals || u.rules.equalsField || u.unique || r || u.validateApi || u.isValueSchemaExp ? [4, u.validate(e.data)] : [3, 3])
: [3, 4]
case 2:
g.sent(), (g.label = 3)
case 3:
return l++, [3, 1]
case 4:
if ((g.trys.push([4, 9, , 10]), !t || !t.length)) return [3, 8]
;(l = 0), (d = t.length), (g.label = 5)
case 5:
return l < d ? [4, t[l](e.data)] : [3, 8]
case 6:
if ('string' == typeof (m = g.sent()) && m) throw new Error(m)
if (!1 === m) throw new f.ValidateError(i || e.__('Form.validateFailed'), e.errors)
g.label = 7
case 7:
return l++, [3, 5]
case 8:
return [3, 10]
case 9:
if (((v = g.sent()), a)) throw v
return c(v.message), [2, !1]
case 10:
return e.valid
? [3, 14]
: e.items.some(function (e) {
return e.errorData.some(function (e) {
return 'remote' !== e.tag
})
}) || e.restError.length
? ((m = null != i ? i : e.__('Form.validateFailed')), (null == (p = s && s()) ? void 0 : p.then) ? [4, p] : [3, 12])
: [3, 13]
case 11:
;(p = g.sent()), (g.label = 12)
case 12:
;(null == p ? void 0 : p.prevented) || (m && c(m)), (g.label = 13)
case 13:
if (a) throw new f.ValidateError(i || e.__('Form.validateFailed'), e.errors)
g.label = 14
case 14:
return [2, e.valid]
}
})
}),
p = i.flow(function (t) {
var r, a, i, s, o, u
return n.__generator(this, function (l) {
switch (l.label) {
case 0:
;(r = e.items.concat()),
(a = t.map(function (e) {
return 'string' == typeof e ? { name: e, rules: {} } : e
})),
(i = []),
(s = function (t, s) {
var o, u, l, c
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return (
(o = r[t]),
(u = j.default(a, function (e) {
return e.name === o.name
}))
? ((c = (l = i).push), [4, o.validate(e.data, void 0, u.rules)])
: [3, 2]
)
case 1:
c.apply(l, [n.sent()]), (n.label = 2)
case 2:
return [2]
}
})
}),
(o = 0),
(u = r.length),
(l.label = 1)
case 1:
return o < u ? [5, s(o, u)] : [3, 4]
case 2:
l.sent(), (l.label = 3)
case 3:
return o++, [3, 1]
case 4:
return [
2,
i.every(function (e) {
return e
})
]
}
})
})
function g() {
e.savedData = e.data
}
return {
setInited: function (t) {
e.inited = t
},
setValues: t,
setValueByName: function (t, a, i, s) {
void 0 === i && (i = !1), void 0 === s && (s = !1)
var o = y.getVariable(e.data, t, !1),
u = e.data,
l = b.cloneObject(e.data)
if (a !== o)
if (u.hasOwnProperty('__prev')) {
var c = b.cloneObject(u.__prev)
b.setVariable(c, t, o), Object.defineProperty(l, '__prev', { value: c, enumerable: !1, configurable: !1, writable: !1 })
} else Object.defineProperty(l, '__prev', { value: n.__assign({}, u), enumerable: !1, configurable: !1, writable: !1 })
else if (!s) return
if ((b.setVariable(l, t, a), i)) {
var d = b.cloneObject(e.pristine)
b.setVariable(d, t, a), (e.pristine = d)
}
l.__pristine || Object.defineProperty(l, '__pristine', { value: e.pristine, enumerable: !1, configurable: !1, writable: !1 }), (e.data = l), r()
},
trimValues: function () {
var t = f.mapObject(e.data, function (e) {
return 'string' == typeof e ? e.trim() : e
})
e.updateData(t)
},
submit: v,
validate: m,
validateFields: p,
clearErrors: function () {
e.items.concat().forEach(function (e) {
return e.reset()
})
},
saveRemote: o,
reset: function (t, r) {
void 0 === r && (r = !0),
r && (e.data = e.pristine),
(e.validated = !1),
(e.submited = !1),
e.items.forEach(function (e) {
return e.reset()
}),
t && t(e.data)
},
syncOptions: r,
setCanAccessSuperData: function (t) {
void 0 === t && (t = !0), (e.canAccessSuperData = t)
},
deleteValueByName: function (t) {
var r = e.data,
a = b.cloneObject(e.data)
if (r.hasOwnProperty('__prev')) {
var i = b.cloneObject(r.__prev)
b.setVariable(i, t, y.getVariable(r, t)), Object.defineProperty(a, '__prev', { value: i, enumerable: !1, configurable: !1, writable: !1 })
} else Object.defineProperty(a, '__prev', { value: n.__assign({}, r), enumerable: !1, configurable: !1, writable: !1 })
b.deleteVariable(a, t), (e.data = a)
},
getLocalPersistData: function () {
var t = localStorage.getItem(e.persistKey)
t && e.updateData(JSON.parse(t))
},
setLocalPersistData: function (t) {
var r = e.data
t && t.length && (r = O.default(r, t)), localStorage.setItem(e.persistKey, JSON.stringify(r))
},
clearLocalPersistData: function () {
localStorage.removeItem(e.persistKey)
},
setPersistData: function (t) {
void 0 === t && (t = ''), (e.persistData = t)
},
clear: function (r) {
var a = {}
e.items.forEach(function (e) {
e.name && 'hidden' !== e.type && b.setVariable(a, e.name, e.resetValue), e.extraName && 'string' == typeof e.extraName && b.setVariable(a, e.extraName, e.resetValue)
}),
t(a),
(e.validated = !1),
(e.submited = !1),
e.items.forEach(function (e) {
return e.reset()
}),
r && r(e.data)
},
updateSavedData: g,
setFormItemErrors: u,
getItemsByPath: l,
setRestError: a,
addRestError: function (t, r) {
var a = r ? (Array.isArray(r) ? r.concat() : [r]) : null
if (Array.isArray(a)) {
var n = {}
a.forEach(function (e) {
return (n[e] = t)
}),
u(n, 'rules')
} else e.restError.push(t)
},
clearRestError: s,
beforeDestroy: function () {
r.cancel(), c.cancel()
}
}
})
t.FormStore = F
}) /*!node_modules/file-saver/dist/FileSaver.min.js*/
amis.define('52fe564', function (require, exports, module, define) {
;(function (a, b) {
if ('function' == typeof define && define.amd) define([], b)
else if ('undefined' != typeof exports) b()
else {
b(), (a.FileSaver = { exports: {} }.exports)
}
})(this, function () {
'use strict'
function b(a, b) {
return (
'undefined' == typeof b ? (b = { autoBom: !1 }) : 'object' != typeof b && (console.warn('Deprecated: Expected third argument to be a object'), (b = { autoBom: !b })),
b.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type) ? new Blob(['\uFEFF', a], { type: a.type }) : a
)
}
function c(a, b, c) {
var d = new XMLHttpRequest()
d.open('GET', a),
(d.responseType = 'blob'),
(d.onload = function () {
g(d.response, b, c)
}),
(d.onerror = function () {
console.error('could not download file')
}),
d.send()
}
function d(a) {
var b = new XMLHttpRequest()
b.open('HEAD', a, !1)
try {
b.send()
} catch (a) {}
return 200 <= b.status && 299 >= b.status
}
function e(a) {
try {
a.dispatchEvent(new MouseEvent('click'))
} catch (c) {
var b = document.createEvent('MouseEvents')
b.initMouseEvent('click', !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b)
}
}
var f =
'object' == typeof window && window.window === window ? window : 'object' == typeof self && self.self === self ? self : 'object' == typeof global && global.global === global ? global : void 0,
a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent),
g =
f.saveAs ||
('object' != typeof window || window !== f
? function () {}
: 'download' in HTMLAnchorElement.prototype && !a
? function (b, g, h) {
var i = f.URL || f.webkitURL,
j = document.createElement('a')
;(g = g || b.name || 'download'),
(j.download = g),
(j.rel = 'noopener'),
'string' == typeof b
? ((j.href = b), j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, (j.target = '_blank')))
: ((j.href = i.createObjectURL(b)),
setTimeout(function () {
i.revokeObjectURL(j.href)
}, 4e4),
setTimeout(function () {
e(j)
}, 0))
}
: 'msSaveOrOpenBlob' in navigator
? function (f, g, h) {
if (((g = g || f.name || 'download'), 'string' != typeof f)) navigator.msSaveOrOpenBlob(b(f, h), g)
else if (d(f)) c(f, g, h)
else {
var i = document.createElement('a')
;(i.href = f),
(i.target = '_blank'),
setTimeout(function () {
e(i)
})
}
}
: function (b, d, e, g) {
if (((g = g || open('', '_blank')), g && (g.document.title = g.document.body.innerText = 'downloading...'), 'string' == typeof b)) return c(b, d, e)
var h = 'application/octet-stream' === b.type,
i = /constructor/i.test(f.HTMLElement) || f.safari,
j = /CriOS\/[\d]+/.test(navigator.userAgent)
if ((j || (h && i) || a) && 'undefined' != typeof FileReader) {
var k = new FileReader()
;(k.onloadend = function () {
var a = k.result
;(a = j ? a : a.replace(/^data:[^;]*;/, 'data:attachment/file;')), g ? (g.location.href = a) : (location = a), (g = null)
}),
k.readAsDataURL(b)
} else {
var l = f.URL || f.webkitURL,
m = l.createObjectURL(b)
g ? (g.location = m) : (location.href = m),
(g = null),
setTimeout(function () {
l.revokeObjectURL(m)
}, 4e4)
}
})
;(f.saveAs = g.saveAs = g), 'undefined' != typeof module && (module.exports = g)
})
}) /*!node_modules/remove-accents/index.js*/
amis.define('44a8220', function (e, o, a, u) {
var O = {
À: 'A',
Á: 'A',
Â: 'A',
Ã: 'A',
Ä: 'A',
Å: 'A',
Ấ: 'A',
Ắ: 'A',
Ẳ: 'A',
Ẵ: 'A',
Ặ: 'A',
Æ: 'AE',
Ầ: 'A',
Ằ: 'A',
Ȃ: 'A',
Ả: 'A',
Ạ: 'A',
Ẩ: 'A',
Ẫ: 'A',
Ậ: 'A',
Ç: 'C',
Ḉ: 'C',
È: 'E',
É: 'E',
Ê: 'E',
Ë: 'E',
Ế: 'E',
Ḗ: 'E',
Ề: 'E',
Ḕ: 'E',
Ḝ: 'E',
Ȇ: 'E',
Ẻ: 'E',
Ẽ: 'E',
Ẹ: 'E',
Ể: 'E',
Ễ: 'E',
Ệ: 'E',
Ì: 'I',
Í: 'I',
Î: 'I',
Ï: 'I',
Ḯ: 'I',
Ȋ: 'I',
Ỉ: 'I',
Ị: 'I',
Ð: 'D',
Ñ: 'N',
Ò: 'O',
Ó: 'O',
Ô: 'O',
Õ: 'O',
Ö: 'O',
Ø: 'O',
Ố: 'O',
Ṍ: 'O',
Ṓ: 'O',
Ȏ: 'O',
Ỏ: 'O',
Ọ: 'O',
Ổ: 'O',
Ỗ: 'O',
Ộ: 'O',
Ờ: 'O',
Ở: 'O',
Ỡ: 'O',
Ớ: 'O',
Ợ: 'O',
Ù: 'U',
Ú: 'U',
Û: 'U',
Ü: 'U',
Ủ: 'U',
Ụ: 'U',
Ử: 'U',
Ữ: 'U',
Ự: 'U',
Ý: 'Y',
à: 'a',
á: 'a',
â: 'a',
ã: 'a',
ä: 'a',
å: 'a',
ấ: 'a',
ắ: 'a',
ẳ: 'a',
ẵ: 'a',
ặ: 'a',
æ: 'ae',
ầ: 'a',
ằ: 'a',
ȃ: 'a',
ả: 'a',
ạ: 'a',
ẩ: 'a',
ẫ: 'a',
ậ: 'a',
ç: 'c',
ḉ: 'c',
è: 'e',
é: 'e',
ê: 'e',
ë: 'e',
ế: 'e',
ḗ: 'e',
ề: 'e',
ḕ: 'e',
ḝ: 'e',
ȇ: 'e',
ẻ: 'e',
ẽ: 'e',
ẹ: 'e',
ể: 'e',
ễ: 'e',
ệ: 'e',
ì: 'i',
í: 'i',
î: 'i',
ï: 'i',
ḯ: 'i',
ȋ: 'i',
ỉ: 'i',
ị: 'i',
ð: 'd',
ñ: 'n',
ò: 'o',
ó: 'o',
ô: 'o',
õ: 'o',
ö: 'o',
ø: 'o',
ố: 'o',
ṍ: 'o',
ṓ: 'o',
ȏ: 'o',
ỏ: 'o',
ọ: 'o',
ổ: 'o',
ỗ: 'o',
ộ: 'o',
ờ: 'o',
ở: 'o',
ỡ: 'o',
ớ: 'o',
ợ: 'o',
ù: 'u',
ú: 'u',
û: 'u',
ü: 'u',
ủ: 'u',
ụ: 'u',
ử: 'u',
ữ: 'u',
ự: 'u',
ý: 'y',
ÿ: 'y',
Ā: 'A',
ā: 'a',
Ă: 'A',
ă: 'a',
Ą: 'A',
ą: 'a',
Ć: 'C',
ć: 'c',
Ĉ: 'C',
ĉ: 'c',
Ċ: 'C',
ċ: 'c',
Č: 'C',
č: 'c',
C̆: 'C',
c̆: 'c',
Ď: 'D',
ď: 'd',
Đ: 'D',
đ: 'd',
Ē: 'E',
ē: 'e',
Ĕ: 'E',
ĕ: 'e',
Ė: 'E',
ė: 'e',
Ę: 'E',
ę: 'e',
Ě: 'E',
ě: 'e',
Ĝ: 'G',
Ǵ: 'G',
ĝ: 'g',
ǵ: 'g',
Ğ: 'G',
ğ: 'g',
Ġ: 'G',
ġ: 'g',
Ģ: 'G',
ģ: 'g',
Ĥ: 'H',
ĥ: 'h',
Ħ: 'H',
ħ: 'h',
Ḫ: 'H',
ḫ: 'h',
Ĩ: 'I',
ĩ: 'i',
Ī: 'I',
ī: 'i',
Ĭ: 'I',
ĭ: 'i',
Į: 'I',
į: 'i',
İ: 'I',
ı: 'i',
IJ: 'IJ',
ij: 'ij',
Ĵ: 'J',
ĵ: 'j',
Ķ: 'K',
ķ: 'k',
Ḱ: 'K',
ḱ: 'k',
K̆: 'K',
k̆: 'k',
Ĺ: 'L',
ĺ: 'l',
Ļ: 'L',
ļ: 'l',
Ľ: 'L',
ľ: 'l',
Ŀ: 'L',
ŀ: 'l',
Ł: 'l',
ł: 'l',
Ḿ: 'M',
ḿ: 'm',
M̆: 'M',
m̆: 'm',
Ń: 'N',
ń: 'n',
Ņ: 'N',
ņ: 'n',
Ň: 'N',
ň: 'n',
ʼn: 'n',
N̆: 'N',
n̆: 'n',
Ō: 'O',
ō: 'o',
Ŏ: 'O',
ŏ: 'o',
Ő: 'O',
ő: 'o',
Œ: 'OE',
œ: 'oe',
P̆: 'P',
p̆: 'p',
Ŕ: 'R',
ŕ: 'r',
Ŗ: 'R',
ŗ: 'r',
Ř: 'R',
ř: 'r',
R̆: 'R',
r̆: 'r',
Ȓ: 'R',
ȓ: 'r',
Ś: 'S',
ś: 's',
Ŝ: 'S',
ŝ: 's',
Ş: 'S',
Ș: 'S',
ș: 's',
ş: 's',
Š: 'S',
š: 's',
Ţ: 'T',
ţ: 't',
ț: 't',
Ț: 'T',
Ť: 'T',
ť: 't',
Ŧ: 'T',
ŧ: 't',
T̆: 'T',
t̆: 't',
Ũ: 'U',
ũ: 'u',
Ū: 'U',
ū: 'u',
Ŭ: 'U',
ŭ: 'u',
Ů: 'U',
ů: 'u',
Ű: 'U',
ű: 'u',
Ų: 'U',
ų: 'u',
Ȗ: 'U',
ȗ: 'u',
V̆: 'V',
v̆: 'v',
Ŵ: 'W',
ŵ: 'w',
Ẃ: 'W',
ẃ: 'w',
X̆: 'X',
x̆: 'x',
Ŷ: 'Y',
ŷ: 'y',
Ÿ: 'Y',
Y̆: 'Y',
y̆: 'y',
Ź: 'Z',
ź: 'z',
Ż: 'Z',
ż: 'z',
Ž: 'Z',
ž: 'z',
ſ: 's',
ƒ: 'f',
Ơ: 'O',
ơ: 'o',
Ư: 'U',
ư: 'u',
Ǎ: 'A',
ǎ: 'a',
Ǐ: 'I',
ǐ: 'i',
Ǒ: 'O',
ǒ: 'o',
Ǔ: 'U',
ǔ: 'u',
Ǖ: 'U',
ǖ: 'u',
Ǘ: 'U',
ǘ: 'u',
Ǚ: 'U',
ǚ: 'u',
Ǜ: 'U',
ǜ: 'u',
Ứ: 'U',
ứ: 'u',
Ṹ: 'U',
ṹ: 'u',
Ǻ: 'A',
ǻ: 'a',
Ǽ: 'AE',
ǽ: 'ae',
Ǿ: 'O',
ǿ: 'o',
Þ: 'TH',
þ: 'th',
Ṕ: 'P',
ṕ: 'p',
Ṥ: 'S',
ṥ: 's',
X́: 'X',
x́: 'x',
Ѓ: 'Г',
ѓ: 'г',
Ќ: 'К',
ќ: 'к',
A̋: 'A',
a̋: 'a',
E̋: 'E',
e̋: 'e',
I̋: 'I',
i̋: 'i',
Ǹ: 'N',
ǹ: 'n',
Ồ: 'O',
ồ: 'o',
Ṑ: 'O',
ṑ: 'o',
Ừ: 'U',
ừ: 'u',
Ẁ: 'W',
ẁ: 'w',
Ỳ: 'Y',
ỳ: 'y',
Ȁ: 'A',
ȁ: 'a',
Ȅ: 'E',
ȅ: 'e',
Ȉ: 'I',
ȉ: 'i',
Ȍ: 'O',
ȍ: 'o',
Ȑ: 'R',
ȑ: 'r',
Ȕ: 'U',
ȕ: 'u',
B̌: 'B',
b̌: 'b',
Č̣: 'C',
č̣: 'c',
Ê̌: 'E',
ê̌: 'e',
F̌: 'F',
f̌: 'f',
Ǧ: 'G',
ǧ: 'g',
Ȟ: 'H',
ȟ: 'h',
J̌: 'J',
ǰ: 'j',
Ǩ: 'K',
ǩ: 'k',
M̌: 'M',
m̌: 'm',
P̌: 'P',
p̌: 'p',
Q̌: 'Q',
q̌: 'q',
Ř̩: 'R',
ř̩: 'r',
Ṧ: 'S',
ṧ: 's',
V̌: 'V',
v̌: 'v',
W̌: 'W',
w̌: 'w',
X̌: 'X',
x̌: 'x',
Y̌: 'Y',
y̌: 'y',
A̧: 'A',
a̧: 'a',
B̧: 'B',
b̧: 'b',
Ḑ: 'D',
ḑ: 'd',
Ȩ: 'E',
ȩ: 'e',
Ɛ̧: 'E',
ɛ̧: 'e',
Ḩ: 'H',
ḩ: 'h',
I̧: 'I',
i̧: 'i',
Ɨ̧: 'I',
ɨ̧: 'i',
M̧: 'M',
m̧: 'm',
O̧: 'O',
o̧: 'o',
Q̧: 'Q',
q̧: 'q',
U̧: 'U',
u̧: 'u',
X̧: 'X',
x̧: 'x',
Z̧: 'Z',
z̧: 'z',
й: 'и',
Й: 'И',
ё: 'е',
Ё: 'Е'
},
E = Object.keys(O).join('|'),
A = new RegExp(E, 'g'),
i = new RegExp(E, '')
function U(e) {
return O[e]
}
var n = function (e) {
return e.replace(A, U)
}
;(a.exports = n),
(a.exports.has = function (e) {
return !!e.match(i)
}),
(a.exports.remove = n)
}) /*!node_modules/match-sorter/dist/match-sorter.cjs.js*/
amis.define('4d28952', function (e, n, t, r) {
'use strict'
function l(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
Object.defineProperty(n, '__esModule', { value: !0 })
var u = l(e('44a8220'))
/**
* @name match-sorter
* @license MIT license.
* @copyright (c) 2020 Kent C. Dodds
* @author Kent C. Dodds (https://kentcdodds.com)
*/ const o = { CASE_SENSITIVE_EQUAL: 7, EQUAL: 6, STARTS_WITH: 5, WORD_STARTS_WITH: 4, CONTAINS: 3, ACRONYM: 2, MATCHES: 1, NO_MATCH: 0 },
i = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue))
function s(e, n, t) {
void 0 === t && (t = {})
const { keys: r, threshold: l = o.MATCHES, baseSort: u = i, sorter: s = (e) => e.sort((e, n) => c(e, n, u)) } = t,
f = e.reduce(function (e, u, i) {
const s = (function (e, n, t, r) {
if (!n) {
return { rankedValue: e, rank: a(e, t, r), keyIndex: -1, keyThreshold: r.threshold }
}
return (function (e, n) {
const t = []
for (let r = 0, l = n.length; r < l; r++) {
const l = n[r],
u = k(l),
o = d(e, l)
for (let e = 0, n = o.length; e < n; e++) t.push({ itemValue: o[e], attributes: u })
}
return t
})(e, n).reduce(
(e, n, l) => {
let { rank: u, rankedValue: i, keyIndex: s, keyThreshold: c } = e,
{ itemValue: f, attributes: d } = n,
h = a(f, t, r),
k = i
const { minRanking: T, maxRanking: A, threshold: S } = d
return h < T && h >= o.MATCHES ? (h = T) : h > A && (h = A), h > u && ((u = h), (s = l), (c = S), (k = f)), { rankedValue: k, rank: u, keyIndex: s, keyThreshold: c }
},
{ rankedValue: e, rank: o.NO_MATCH, keyIndex: -1, keyThreshold: r.threshold }
)
})(u, r, n, t),
{ rank: c, keyThreshold: f = l } = s
c >= f && e.push({ ...s, item: u, index: i })
return e
}, [])
return s(f).map((e) => {
let { item: n } = e
return n
})
}
function a(e, n, t) {
return (
(e = f(e, t)),
(n = f(n, t)).length > e.length
? o.NO_MATCH
: e === n
? o.CASE_SENSITIVE_EQUAL
: (e = e.toLowerCase()) === (n = n.toLowerCase())
? o.EQUAL
: e.startsWith(n)
? o.STARTS_WITH
: e.includes(` ${n}`)
? o.WORD_STARTS_WITH
: e.includes(n)
? o.CONTAINS
: 1 === n.length
? o.NO_MATCH
: (function (e) {
let n = ''
return (
e.split(' ').forEach((e) => {
e.split('-').forEach((e) => {
n += e.substr(0, 1)
})
}),
n
)
})(e).includes(n)
? o.ACRONYM
: (function (e, n) {
let t = 0,
r = 0
function l(e, n, r) {
for (let l = r, u = n.length; l < u; l++) {
if (n[l] === e) return (t += 1), l + 1
}
return -1
}
function u(e) {
const r = 1 / e,
l = t / n.length
return o.MATCHES + l * r
}
const i = l(n[0], e, 0)
if (i < 0) return o.NO_MATCH
r = i
for (let t = 1, u = n.length; t < u; t++) {
r = l(n[t], e, r)
if (!(r > -1)) return o.NO_MATCH
}
return u(r - i)
})(e, n)
)
}
function c(e, n, t) {
const { rank: r, keyIndex: l } = e,
{ rank: u, keyIndex: o } = n
return r === u ? (l === o ? t(e, n) : l < o ? -1 : 1) : r > u ? -1 : 1
}
function f(e, n) {
let { keepDiacritics: t } = n
return (e = `${e}`), t || (e = u.default(e)), e
}
function d(e, n) {
let t
if (('object' == typeof n && (n = n.key), 'function' == typeof n)) t = n(e)
else if (null == e) t = null
else if (Object.hasOwnProperty.call(e, n)) t = e[n]
else {
if (n.includes('.'))
return (function (e, n) {
const t = e.split('.')
let r = [n]
for (let e = 0, n = t.length; e < n; e++) {
const n = t[e]
let l = []
for (let e = 0, t = r.length; e < t; e++) {
const t = r[e]
if (null != t)
if (Object.hasOwnProperty.call(t, n)) {
const e = t[n]
null != e && l.push(e)
} else '*' === n && (l = l.concat(t))
}
r = l
}
if (Array.isArray(r[0])) {
return [].concat(...r)
}
return r
})(n, e)
t = null
}
return null == t ? [] : Array.isArray(t) ? t : [String(t)]
}
s.rankings = o
const h = { maxRanking: 1 / 0, minRanking: -1 / 0 }
function k(e) {
return 'string' == typeof e ? h : { ...h, ...e }
}
;(n.defaultBaseSortFn = i), (n.matchSorter = s), (n.rankings = o)
}) /*!node_modules/lodash/_baseSortBy.js*/
amis.define('7edc9fd', function (e, n, r, t) {
r.exports = function (e, n) {
var r = e.length
for (e.sort(n); r--; ) e[r] = e[r].value
return e
}
}) /*!node_modules/lodash/_compareAscending.js*/
amis.define('88f949c', function (n, i, r, e) {
var f = n('336ec46')
r.exports = function (n, i) {
if (n !== i) {
var r = void 0 !== n,
e = null === n,
u = n == n,
t = f(n),
o = void 0 !== i,
c = null === i,
l = i == i,
v = f(i)
if ((!c && !v && !t && n > i) || (t && o && l && !c && !v) || (e && o && l) || (!r && l) || !u) return 1
if ((!e && !t && !v && n < i) || (v && r && u && !e && !t) || (c && r && u) || (!o && u) || !l) return -1
}
return 0
}
}) /*!node_modules/lodash/_compareMultiple.js*/
amis.define('d612723', function (r, e, i, n) {
var t = r('88f949c')
i.exports = function (r, e, i) {
for (var n = -1, a = r.criteria, c = e.criteria, f = a.length, d = i.length; ++n < f; ) {
var o = t(a[n], c[n])
if (o) return n >= d ? o : o * ('desc' == i[n] ? -1 : 1)
}
return r.index - e.index
}
}) /*!node_modules/lodash/_baseOrderBy.js*/
amis.define('159c11b', function (n, r, t, e) {
var u = n('6d0c860'),
c = n('d329aa2'),
i = n('8c8db6b'),
a = n('00ad030'),
d = n('7edc9fd'),
f = n('6984aa3'),
o = n('d612723'),
v = n('e12600f'),
b = n('2882d26')
t.exports = function (n, r, t) {
r = r.length
? u(r, function (n) {
return b(n)
? function (r) {
return c(r, 1 === n.length ? n[0] : n)
}
: n
})
: [v]
var e = -1
r = u(r, f(i))
var l = a(n, function (n, t, c) {
return {
criteria: u(r, function (r) {
return r(n)
}),
index: ++e,
value: n
}
})
return d(l, function (n, r) {
return o(n, r, t)
})
}
}) /*!node_modules/lodash/sortBy.js*/
amis.define('32ac29b', function (n, e, r, f) {
var t = n('c5f203e'),
c = n('159c11b'),
i = n('37f3d32'),
u = n('7767ed2'),
a = i(function (n, e) {
if (null == n) return []
var r = e.length
return r > 1 && u(n, e[0], e[1]) ? (e = []) : r > 2 && u(e[0], e[1], e[2]) && (e = [e[0]]), c(n, t(e, 1), [])
})
r.exports = a
}) /*!node_modules/amis-core/lib/store/table.js*/
amis.define('98ebec8', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('68b98b9'),
i = e('668845d'),
o = e('7db930a')
e('c3389ff'), e('8b081ba')
var l = e('bbe84d0'),
d = e('730a210'),
c = e('42c789c')
e('0910768'), e('8b641b6')
var s = e('37efca2'),
u = e('32ac29b'),
g = e('939b8bb'),
f = e('575a22c'),
p = e('821b8e4')
function h(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var m,
b = h(s),
v = h(u)
function y(e, t, n, r, a, i) {
return (
void 0 === a && (a = ''),
(t += 1),
e.map(function (e, o) {
var d
e = l.isObject(e) ? e : { item: e }
var c = String(i ? i(e, o) : null !== (d = e.__id) && void 0 !== d ? d : g.guid())
return {
id: String(c),
parentId: String(r),
key: String(''.concat(n, '-').concat(t, '-').concat(o)),
path: ''.concat(a).concat(o),
depth: t,
index: o,
newIndex: o,
pristine: e,
data: e,
defer: !!e.defer,
loaded: !1,
loading: !1,
rowSpans: {},
children: e && Array.isArray(e.children) ? y(e.children, t, o, c, ''.concat(a).concat(o, '.'), i) : []
}
})
)
}
;(t.SELECTED_STATUS = void 0), ((m = t.SELECTED_STATUS || (t.SELECTED_STATUS = {}))[(m.ALL = 0)] = 'ALL'), (m[(m.PARTIAL = 1)] = 'PARTIAL'), (m[(m.NONE = 2)] = 'NONE')
var x = i.types
.model('Column', {
label: i.types.optional(i.types.frozen(), void 0),
type: i.types.optional(i.types.string, 'plain'),
name: i.types.maybe(i.types.string),
value: i.types.frozen(),
id: '',
groupName: '',
toggled: !1,
toggable: !0,
expandable: !1,
checkdisable: !1,
searchable: i.types.maybe(i.types.frozen()),
enableSearch: !0,
sortable: !1,
filterable: i.types.optional(i.types.frozen(), void 0),
fixed: '',
index: 0,
rawIndex: 0,
width: 0,
minWidth: 0,
realWidth: 0,
breakpoint: i.types.optional(i.types.frozen(), void 0),
pristine: i.types.optional(i.types.frozen(), void 0),
remark: i.types.optional(i.types.frozen(), void 0),
className: i.types.union(i.types.string, i.types.frozen())
})
.views(function (e) {
return {
get isPrimary() {
var t
return (
(null ===
(t = i.getParent(e, 2).filteredColumns.find(function (e) {
return !e.type.startsWith('__')
})) || void 0 === t
? void 0
: t.id) === e.id
)
}
}
})
.actions(function (e) {
return {
toggleToggle: function (t) {
void 0 === t && (t = 1), (e.toggled = !e.toggled)
var n = i.getParent(e, 2)
n.activeToggaleColumns.length < t && (e.toggled = !0), n.persistSaveToggledColumns()
},
setToggled: function (t) {
e.toggled = t
},
setEnableSearch: function (t) {
;(e.enableSearch = t), i.getParent(e, 2).persistSaveToggledColumns()
},
setMinWidth: function (t) {
e.minWidth = t
},
setWidth: function (t) {
e.width = t
},
setRealWidth: function (t) {
e.realWidth = t
}
}
}),
w = i.types
.model('Row', {
storeType: 'Row',
id: i.types.identifier,
parentId: '',
key: i.types.string,
pristine: i.types.frozen({}),
data: i.types.frozen({}),
rowSpans: i.types.frozen({}),
index: i.types.number,
newIndex: i.types.number,
path: '',
checkdisable: !1,
isHover: !1,
children: i.types.optional(
i.types.array(
i.types.late(function () {
return w
})
),
[]
),
defer: !1,
loaded: !1,
loading: !1,
error: '',
depth: i.types.number,
appeared: !0,
lazyRender: !1
})
.views(function (e) {
return {
get parent() {
return i.getParent(e, 2)
},
get table() {
return i.getParent(e, 2 * e.depth)
},
get expandable() {
var t
return !!((e && e.children.length) || (e && e.defer && !e.loaded) || ((t = i.getParent(e, 2 * e.depth)) && t.footable && t.footableColumns.length))
},
childrenSelected: function () {
var n = e,
r = n.children,
a = n.table,
i = r.filter(function (e) {
return a.isSelected(e)
}).length
return i ? (i === r.length ? t.SELECTED_STATUS.ALL : t.SELECTED_STATUS.PARTIAL) : t.SELECTED_STATUS.NONE
},
get partial() {
var n = this.childrenSelected() === t.SELECTED_STATUS.PARTIAL,
r = e.children.some(function (e) {
return e.partial
})
return n || r
},
get checked() {
return i.getParent(e, 2 * e.depth).isSelected(e)
},
get modified() {
return (
!!e.data &&
Object.keys(e.data).some(function (t) {
return !b.default(e.data[t], e.pristine[t])
})
)
},
getDataWithModifiedChilden: function () {
var t = e.data
return (
t.children &&
e.children &&
(t = a.__assign(a.__assign({}, t), {
children: e.children.map(function (e) {
return e.getDataWithModifiedChilden()
})
})),
t
)
},
get collapsed() {
var t = i.getParent(e, 2 * e.depth)
if (t.dragging) return !0
for (var n = e; n && n !== t; ) {
if (!t.isExpanded(n)) return !0
n = i.getParent(n, 2)
}
return !1
},
get expanded() {
return !this.collapsed
},
get moved() {
return e.index !== e.newIndex
},
get locals() {
var t = null
e.children.length &&
(t = e.children.map(function (e) {
return e.locals
}))
var n = i.getParent(e, 2 * e.depth),
r = i.getParent(e, 2)
return l.createObject(
l.extendObject(i.getParent(e, 2 * e.depth).data, {
index: e.index,
parent: r.storeType === w.name ? r.data : void 0,
selectedItems: n.selectedRows.map(function (e) {
return e.data
}),
unSelectedItems: n.unSelectedRows.map(function (e) {
return e.data
})
}),
t ? a.__assign(a.__assign({}, e.data), { children: t }) : e.data
)
},
get checkable() {
var t = i.getParent(e, 2 * e.depth)
return !t || !t.itemCheckableOn || f.evalExpression(t.itemCheckableOn, e.locals)
},
get draggable() {
var t = i.getParent(e, 2 * e.depth)
return !t || !t.itemDraggableOn || f.evalExpression(t.itemDraggableOn, e.locals)
},
get isCheckAvaiableOnClick() {
var t,
n = i.getParent(e, 2 * e.depth),
r = n.getSelectionUpperLimit()
if (!Number.isInteger(r) || r === 1 / 0) return !0
var a = (null !== (t = null == n ? void 0 : n.selectedRows) && void 0 !== t ? t : []).map(function (e) {
return e.id
})
return !((a.includes(e.id) ? a.length - 1 : a.length + 1) > r)
},
get indentStyle() {
return { paddingLeft: 'calc('.concat(e.depth - 1, ' * var(--Table-tree-indent))') }
}
}
})
.actions(function (e) {
return {
toggle: function (t) {
var n = e.table,
r = e
n.toggle(r, t), n.toggleAncestors(r), n.toggleDescendants(r, t)
},
toggleExpanded: function () {
i.getParent(e, 2 * e.depth).toggleExpanded(e)
},
setExpanded: function (t) {
i.getParent(e, 2 * e.depth).setExpanded(e, t)
},
change: function (t, n) {
;(e.data = g.immutableExtends(e.data, t)), n && (e.pristine = e.data)
},
reset: function () {
;(e.newIndex = e.index), (e.data = e.pristine)
},
setCheckdisable: function (t) {
e.checkdisable = t
},
setIsHover: function (t) {
e.isHover = t
},
replaceWith: function (t) {
Object.keys(t).forEach(function (n) {
'id' !== n && (e[n] = t[n])
}),
Array.isArray(t.children) && this.replaceChildren(t.children)
},
replaceChildren: function (t) {
var n = t,
r = n.concat()
e.children.length > n.length && e.children.splice(n.length, e.children.length - n.length)
for (var i = 0, o = e.children.length; r.length; ) {
var l = a.__assign(a.__assign({}, r.shift()), { parentId: e.id })
if (i < o) e.children[i].replaceWith(l)
else {
var d = w.create(l)
e.children.push(d)
}
i++
}
},
markAppeared: function (t) {
t && (e.appeared = !!t)
},
markLoading: function (t) {
e.loading = !!t
},
markLoaded: function (t) {
e.loaded = !!t
},
setError: function (t) {
e.error = String(t)
},
resetDefered: function () {
;(e.error = ''), (e.loaded = !1)
},
updateData: function (t) {
var n = t.children,
r = a.__rest(t, ['children'])
;(e.data = a.__assign(a.__assign({}, e.data), r)), Array.isArray(n) && this.replaceChildren(y(n, e.depth, e.index, e.id, e.path))
}
}
}),
S = o.iRendererStore
.named('TableStore')
.props({
columns: i.types.array(x),
columnsKey: '',
rows: i.types.array(w),
selectedRows: i.types.array(i.types.reference(w)),
expandedRows: i.types.array(i.types.string),
primaryField: 'id',
orderBy: '',
orderDir: i.types.optional(i.types.union(i.types.literal('asc'), i.types.literal('desc'), i.types.literal('')), 'asc'),
loading: !1,
canAccessSuperData: !1,
draggable: !1,
dragging: !1,
selectable: !1,
multiple: !0,
footable: i.types.frozen(),
expandConfig: i.types.frozen(),
isNested: !1,
columnsTogglable: i.types.optional(i.types.union(i.types.boolean, i.types.literal('auto')), 'auto'),
itemCheckableOn: '',
itemDraggableOn: '',
hideCheckToggler: !1,
combineNum: 0,
combineFromIndex: 0,
formsRef: i.types.optional(i.types.array(i.types.frozen()), []),
maxKeepItemSelectionLength: 1 / 0,
keepItemSelectionOnPageChange: !1,
maxItemSelectionLength: 1 / 0,
exportExcelLoading: !1,
searchFormExpanded: !1,
lazyRenderAfter: 100,
tableLayout: 'auto',
theadHeight: 0
})
.views(function (e) {
function t() {
return e.columns.filter(function (t) {
return (
t &&
g.isVisible(t.pristine, g.hasVisibleExpression(t.pristine) ? e.data : {}) &&
('__checkme' === t.type
? e.selectable && !e.dragging && !e.hideCheckToggler && e.rows.length
: '__dragme' === t.type
? e.dragging
: '__expandme' === t.type
? n().length && !e.dragging
: (t.toggled || !t.toggable) && (!e.footable || !t.breakpoint || !g.isBreakpoint(t.breakpoint)))
)
})
}
function n() {
return e.columns.filter(function (t) {
return '__checkme' !== t.type && '__dragme' !== t.type && '__expandme' !== t.type && (t.toggled || !t.toggable) && e.footable && t.breakpoint && g.isBreakpoint(t.breakpoint)
})
}
function r() {
return e.columns.filter(function (t) {
return g.isVisible(t.pristine, e.data) && !1 !== t.toggable
})
}
function i(t, n) {
return (
void 0 === t && (t = []),
void 0 === n && (n = []),
(t = t && t.length ? t : e.rows).forEach(function (e) {
e.children && e.children.length && i(e.children, n)
var t = g.difference(e.data, e.pristine)
Object.keys(t).length && n.push(e)
}),
n
)
}
function o() {
return g.flattenTree(e.rows).filter(function (e) {
return e.moved
})
}
function d() {
return g.flattenTree(e.rows).filter(function (e) {
return !e.checked
})
}
function s() {
return e.columns.filter(function (e) {
return e.searchable
})
}
function u() {
return e.keepItemSelectionOnPageChange && e.maxKeepItemSelectionLength !== 1 / 0 ? e.maxKeepItemSelectionLength : e.maxItemSelectionLength
}
return {
getSelectionUpperLimit: u,
get columnsData() {
return e.columns.filter(function (t) {
return !/^__/.test(t.type) && g.isVisible(t.pristine, g.hasVisibleExpression(t.pristine) ? e.data : {})
})
},
get forms() {
return e.formsRef.map(function (e) {
return { store: p.getStoreById(e.id), rowIndex: e.rowIndex }
})
},
get searchableColumns() {
return s()
},
get activedSearchableColumns() {
return s().filter(function (e) {
return e.enableSearch
})
},
get exportColumns() {
return e.columns.filter(function (t) {
return t && g.isVisible(t.pristine, g.hasVisibleExpression(t.pristine) ? e.data : {}) && (t.toggled || !t.toggable) && !/^__/.test(t.type)
})
},
get filteredColumns() {
return t()
},
get footableColumns() {
return n()
},
get toggableColumns() {
return r()
},
get activeToggaleColumns() {
return r().filter(function (e) {
return e.toggled
})
},
get someChecked() {
return !!e.selectedRows.length
},
get allChecked() {
return u() !== 1 / 0
? e.isSelectionThresholdReached
: e.checkableRows.every(function (t) {
return e.selectedRows.includes(t)
})
},
isSelected: function (t) {
return !!~e.selectedRows.indexOf(t)
},
get allExpanded() {
return !(e.expandedRows.length !== this.expandableRows.length || !this.expandableRows.length)
},
isExpanded: function (t) {
return e.expandedRows.includes(t.id)
},
get toggable() {
return 'auto' === e.columnsTogglable
? e.columns.filter(function (e) {
return !/^__/.test(e.type)
}).length > 5
: e.columnsTogglable
},
get modified() {
return i().length
},
get modifiedRows() {
return i()
},
get unSelectedRows() {
return d()
},
get falttenedRows() {
return g.flattenTree(e.rows)
},
get checkableRows() {
return this.falttenedRows.filter(function (e) {
return e.checkable
})
},
get expandableRows() {
return e.rows.filter(function (e) {
return e.expandable
})
},
get moved() {
return o().length
},
get movedRows() {
return o()
},
get hoverRow() {
return g.flattenTree(e.rows).find(function (e) {
return e.isHover
})
},
get isSelectionThresholdReached() {
var t,
n,
r = null === (n = null === (t = e.data) || void 0 === t ? void 0 : t.selectedItems) || void 0 === n ? void 0 : n.length,
a = u()
return !(!e.data || a === 1 / 0) && a <= r
},
get firstToggledColumnIndex() {
return null ==
(t = e.columns.find(function (e) {
return !/^__/.test(e.type) && e.toggled
}))
? null
: t.index
var t
},
getData: function (t) {
return l.createObject(t, {
items: e.rows.map(function (e) {
return e.data
}),
selectedItems: e.selectedRows.map(function (e) {
return e.data
}),
unSelectedItems: d().map(function (e) {
return e.data
})
})
},
get columnGroup() {
return (function () {
var n = t(),
r = n.length
if (!r) return []
for (
var i = [{ label: n[0].groupName, colSpan: 1, rowSpan: 1, index: n[0].index, has: [n[0]] }],
o = n.some(function (e) {
return e.groupName
}),
l = 1;
l < r;
l++
) {
var d = i[i.length - 1],
s = n[l]
;(s.groupName !== d.label && c.resolveVariableAndFilter(s.groupName, e.data) !== c.resolveVariableAndFilter(d.label, e.data)) || !((o && s.groupName) || !o)
? i.push({ label: ~['__checkme', '__expandme'].indexOf(s.type) ? void 0 : s.groupName || s.label || ' ', colSpan: 1, rowSpan: 1, index: s.index, has: [s] })
: (d.colSpan++, d.has.push(s))
}
return (
1 !== i.length || i[0].label || i.pop(),
i.map(function (e) {
var t = !e.label || (1 === e.has.length && e.label === e.has[0].label) ? 2 : 1
return a.__assign(a.__assign({}, e), {
rowSpan: t,
label: 2 === t ? e.label || e.has[0].label : e.label,
fixed: e.has.every(function (e) {
return e.fixed
})
? e.has[0].fixed
: void 0,
get width() {
return e.has.reduce(function (e, t) {
return e + t.width
}, 0)
}
})
})
)
})()
},
getRowById: function (t) {
return g.findTree(e.rows, function (e) {
return e.id === t
})
},
getItemsByName: function (e) {
return this.forms
.filter(function (t) {
return t.rowIndex === parseInt(e, 10)
})
.map(function (e) {
return e.store
})
},
hasColumnHidden: function () {
return (
-1 !==
e.columns.findIndex(function (e) {
return !e.toggled
})
)
},
getExpandedRows: function () {
var t = []
return (
g.eachTree(e.rows, function (n) {
e.expandedRows.includes(n.id) && t.push(n)
}),
t
)
},
get columnWidthReady() {
return t().every(function (e) {
return e.realWidth
})
},
getStickyStyles: function (e, t) {
var n = '',
r = {},
a = ['__checkme', '__dragme', '__expandme']
if ('left' === e.fixed || a.includes(e.type)) {
n = 'is-sticky is-sticky-left'
var i = t.indexOf(e) - 1
t.slice(i + 2).every(function (e) {
return !((e && 'left' === e.fixed) || a.includes(e.type))
}) && (n += ' is-sticky-last-left')
for (var o = []; i >= 0; ) {
;(((c = t[i]) && 'left' === c.fixed) || a.includes(c.type)) && o.push('var(--Table-column-'.concat(c.index, '-width)')), i--
}
r.left = o.length ? (1 === o.length ? o[0] : 'calc('.concat(o.join(' + '), ')')) : 0
} else if ('right' === e.fixed) {
n = 'is-sticky is-sticky-right'
var l = []
i = t.indexOf(e) + 1
t.slice(0, i - 1).every(function (e) {
return 'right' !== e.fixed
}) && (n += ' is-sticky-first-right')
for (var d = t.length; i < d; ) {
var c
;(c = t[i]) && 'right' === c.fixed && l.push('var(--Table-column-'.concat(c.index, '-width)')), i++
}
r.right = l.length ? (1 === l.length ? l[0] : 'calc('.concat(l.join(' + '), ')')) : 0
}
return [r, n]
},
get items() {
return e.rows.concat()
},
buildStyles: function (n) {
return (
(n = a.__assign(a.__assign({}, n), { '--Table-thead-height': e.theadHeight + 'px' })),
t().forEach(function (e) {
n['--Table-column-'.concat(e.index, '-width')] = e.realWidth + 'px'
}),
n
)
}
}
})
.actions(function (e) {
var n = null
function r(t) {
if (t && Array.isArray(t)) {
;(t = t
.filter(function (e) {
return e
})
.concat()).length || t.push({ type: 'text', label: '\u7a7a' }),
t.unshift({ type: '__expandme', toggable: !1, className: 'Table-expandCell' }),
t.unshift({ type: '__checkme', fixed: 'left', toggable: !1, className: 'Table-checkCell' }),
t.unshift({ type: '__dragme', toggable: !1, className: 'Table-dragCell' })
var n = e.columns.concat(),
r = []
;(t = t.map(function (e, t) {
var i = e.id
? n.find(function (t) {
return t.pristine.id === e.id
})
: n[t],
o = (null == i ? void 0 : i.id) || g.guid()
return (
r.includes(o) && (o = g.guid()),
r.push(o),
a.__assign(a.__assign({}, e), {
id: o,
index: t,
width: (null == i ? void 0 : i.width) || 0,
minWidth: (null == i ? void 0 : i.minWidth) || 0,
realWidth: (null == i ? void 0 : i.realWidth) || 0,
rawIndex: t - 3,
type: e.type || 'plain',
pristine: e.pristine || e,
toggled: !1 !== e.toggled,
breakpoint: e.breakpoint,
isPrimary: 3 === t
})
)
})),
e.columns.replace(t)
}
}
function o(e, t) {
if (!t.length || !e.length) return e
var n = t.shift(),
r = 0,
a = e[r]
a.rowSpans[n] = 1
for (var i = d.resolveVariable(n, a.data), l = 1, c = e.length; l < c; l++) {
var s = e[l]
b.default(d.resolveVariable(n, s.data), i)
? ((a.rowSpans[n] += 1), (s.rowSpans[n] = 0))
: (a.rowSpans[n] > 1 && o(e.slice(r, l), t.concat()), (r = l), ((a = s).rowSpans[n] = 1), (i = d.resolveVariable(n, a.data)))
}
return a.rowSpans[n] > 1 && t.length && o(e.slice(r, e.length), t.concat()), e
}
function c(e, t, n, r) {
if ((void 0 === r && (r = 0), !t.length || !n || !e.length)) return e
r =
r ||
(e.some(function (e) {
return Array.isArray(e.children) && e.children.length
})
? 1
: 0)
for (var a = [], i = 0; i < t.length && a.length !== n; i++) {
var l = t[i]
if ('__' !== l.type.substring(0, 2)) {
var d = l.name
if (!d) break
r > 0 ? r-- : a.push(d)
}
}
return o(e, a)
}
function s(e) {
return e.reduce(function (e, t) {
return e.push(t.id), t.children && t.children.length && (e = e.concat(s(t.children))), e
}, [])
}
function u() {
var t,
n = e.getSelectionUpperLimit(),
r = null === (t = e.data) || void 0 === t ? void 0 : t.selectedItems
if (n !== 1 / 0 && r && n >= r.length) {
var i = e.checkableRows
.filter(function (e) {
return !e.checked
})
.filter(function (e, t) {
return t < n - r.length
})
return a.__spreadArray(a.__spreadArray([], a.__read(e.selectedRows), !1), a.__read(i), !1)
}
return a.__spreadArray(
a.__spreadArray(
[],
a.__read(
e.selectedRows.filter(function (e) {
return !e.checkable
})
),
!1
),
a.__read(e.checkableRows),
!1
)
}
var f = null
function p(t, n) {
if (t.checkable) {
f = t
var r = e.selectedRows.indexOf(t)
e.multiple ? (~r ? !n && e.selectedRows.splice(r, 1) : n && e.selectedRows.push(t)) : ~r ? !n && e.selectedRows.splice(r, 1) : n && e.selectedRows.replace([t])
}
}
function h(t) {
var n, r
if (!f || t === f || !e.multiple) return [t]
var i = [],
o = e.maxKeepItemSelectionLength,
l = e.checkableRows,
d = l.findIndex(function (e) {
return e === f
}),
c = l.findIndex(function (e) {
return t === e
}),
s = d > c ? c : d + 1,
u = d > c ? d : c + 1,
g = l.slice(s, u)
try {
for (var p = a.__values(g), h = p.next(); !h.done; h = p.next()) {
var m = h.value
;(f.checked && o && e.selectedRows.length + i.length >= o) || i.push(m)
}
} catch (e) {
n = { error: e }
} finally {
try {
h && !h.done && (r = p.return) && r.call(p)
} finally {
if (n) throw n.error
}
}
return i
}
function m(t, n) {
;(e.orderBy = t), (e.orderDir = t ? n : '')
}
function x() {
var t = e.columnsKey
localStorage.setItem(
t,
JSON.stringify({
toggledColumnIndex: e.activeToggaleColumns.map(function (e) {
return e.index
}),
columnOrder: e.columnsData.map(function (e) {
return e.name || e.label || e.rawIndex
}),
enabledSearchableColumn: e.activedSearchableColumns.map(function (e) {
return e.name
})
})
)
}
function S(t) {
var n
if ((void 0 === t && (t = 1), e.activeToggaleColumns.length < t)) for (var r = 0; r < t; r++) null === (n = e.toggableColumns[r]) || void 0 === n || n.setToggled(!0)
}
return {
setTable: function (e) {
n = e
},
getTable: function () {
return n
},
update: function (t, n) {
var i
if (
(void 0 !== t.primaryField && (e.primaryField = t.primaryField),
void 0 !== t.selectable && (e.selectable = t.selectable),
void 0 !== t.columnsTogglable && (e.columnsTogglable = t.columnsTogglable),
void 0 !== t.draggable && (e.draggable = t.draggable),
('string' != typeof t.orderBy && 'string' != typeof t.orderDir) ||
m(null !== (i = t.orderBy) && void 0 !== i ? i : e.orderBy, void 0 !== t.orderDir ? ('desc' === t.orderDir ? 'desc' : 'asc') : e.orderDir),
void 0 !== t.multiple && (e.multiple = t.multiple),
void 0 !== t.footable && (e.footable = t.footable),
void 0 !== t.expandConfig && (e.expandConfig = t.expandConfig),
void 0 !== t.itemCheckableOn && (e.itemCheckableOn = t.itemCheckableOn),
void 0 !== t.itemDraggableOn && (e.itemDraggableOn = t.itemDraggableOn),
void 0 !== t.hideCheckToggler && (e.hideCheckToggler = !!t.hideCheckToggler),
void 0 !== t.combineNum && (e.combineNum = parseInt(t.combineNum, 10) || 0),
void 0 !== t.combineFromIndex && (e.combineFromIndex = parseInt(t.combineFromIndex, 10) || 0),
void 0 !== t.maxKeepItemSelectionLength && (e.maxKeepItemSelectionLength = t.maxKeepItemSelectionLength),
void 0 !== t.keepItemSelectionOnPageChange && (e.keepItemSelectionOnPageChange = t.keepItemSelectionOnPageChange),
void 0 !== t.maxItemSelectionLength && (e.maxItemSelectionLength = t.maxItemSelectionLength),
void 0 !== t.exportExcelLoading && (e.exportExcelLoading = t.exportExcelLoading),
void 0 !== t.loading && (e.loading = t.loading),
void 0 !== t.canAccessSuperData && (e.canAccessSuperData = !!t.canAccessSuperData),
'number' == typeof t.lazyRenderAfter && (e.lazyRenderAfter = t.lazyRenderAfter),
'string' == typeof t.tableLayout && (e.tableLayout = t.tableLayout),
t.columns && Array.isArray(t.columns))
) {
e.columnsKey = (function (t) {
return (
location.pathname +
e.path +
t
.map(function (e, t) {
return e.name || e.label || t
})
.join('-')
)
})(t.columns)
var o = t.columns
.map(function (e) {
return (null == n ? void 0 : n.resolveDefinitions) && 'string' == typeof (null == e ? void 0 : e.$ref) && e.$ref ? a.__assign(a.__assign({}, n.resolveDefinitions(e.$ref)), e) : e
})
.filter(function (e) {
return e
}),
l = e.columnsKey,
d = localStorage.getItem(l),
c = null
if (d) {
try {
c = JSON.parse(d)
} catch (e) {}
var s = null == c ? void 0 : c.columnOrder
Array.isArray(s) &&
0 != s.length &&
(o = v.default(o, function (e, t) {
return s.indexOf(e.name || e.label || t)
}))
}
r(o)
}
},
updateColumns: r,
initTableWidth: function () {
var t = n
if (t) {
var r = t.parentElement.offsetWidth,
a = t.querySelector(':scope>thead'),
i = null,
o = [],
l = 'fixed' === e.tableLayout,
d = e.columns.some(function (e) {
return e.pristine.width
}),
c = {}
if (
(l &&
((i = t.querySelector(':scope>tbody')),
o.push(''))),
(d || l) &&
o.push(
'')
.concat(a.outerHTML)
.concat(i ? ''.concat(i.innerHTML, '') : '', '
')
),
o.length)
) {
var s = document.createElement('div')
;(s.className = 'amis-scope'), (s.style.cssText += 'visibility: hidden!important;'), (s.innerHTML = o.join(''))
var u = [],
g = []
l && (u = [].slice.call(s.querySelectorAll(':scope>table:first-child>thead>tr>th[data-index]'))),
(d || l) && (g = [].slice.call(s.querySelectorAll(':scope>table:last-child>thead>tr>th[data-index]'))),
u.forEach(function (e) {
e.style.cssText += 'width: 0'
}),
g.forEach(function (t) {
var n = parseInt(t.getAttribute('data-index'), 10),
r = e.columns[n]
t.style.cssText += ''.concat(
'number' == typeof r.pristine.width
? 'width: '.concat(r.pristine.width, 'px;')
: r.pristine.width
? 'width: '.concat(r.pristine.width, ';min-width: ').concat(r.pristine.width, ';')
: ''
)
}),
document.body.appendChild(s),
u.forEach(function (t) {
var n = parseInt(t.getAttribute('data-index'), 10)
;(c[n] = t.clientWidth), e.columns[n].setMinWidth(c[n])
}),
g.forEach(function (t) {
var n = parseInt(t.getAttribute('data-index'), 10),
r = e.columns[n]
;(r.pristine.width || l) && r.setWidth(Math.max('number' == typeof r.pristine.width ? r.pristine.width : t.clientWidth, c[n] || 0))
}),
document.body.removeChild(s)
}
}
},
syncTableWidth: function () {
if (n) {
var t = n.querySelector(':scope>thead'),
r = [].slice.call(t.querySelectorAll('tr>th[data-index]'))
;(e.theadHeight = t.offsetHeight),
r.forEach(function (t) {
var n = parseInt(t.getAttribute('data-index'), 10)
e.columns[n].setRealWidth(t.offsetWidth)
})
}
},
initRows: function (t, n, r) {
e.selectedRows.clear()
var a = (t = Array.isArray(t) ? t : []).map(function (e, t) {
var r
l.isObject(e) || (e = { item: e })
var a = String(n ? n(e, t) : null !== (r = e.__id) && void 0 !== r ? r : g.guid())
return {
id: a,
key: String(''.concat(t, '-1-').concat(t)),
depth: 1,
index: t,
newIndex: t,
pristine: e,
path: ''.concat(t),
data: e,
rowSpans: {},
defer: !!e.defer,
loaded: !1,
loading: !1,
children: e && Array.isArray(e.children) ? y(e.children, 1, t, a, ''.concat(t, '.'), n) : []
}
})
if (
(e.combineNum && (a = c(a, e.columns, e.combineNum, e.combineFromIndex)),
(function (t, n) {
if (!1 === n)
return void e.rows.replace(
t.map(function (e) {
return w.create(e)
})
)
var r = t.concat()
e.rows.length > t.length && e.rows.splice(t.length, e.rows.length - t.length)
var a = 0,
i = e.rows.length
for (; r.length; ) {
var o = r.shift()
if (a < i) e.rows[a].replaceWith(o)
else {
var l = w.create(o)
e.rows.push(l)
}
a++
}
})(a, r),
(e.isNested = e.rows.some(function (e) {
return e.children.length || (e.defer && !e.loaded)
})),
e.lazyRenderAfter && e.falttenedRows.length > e.lazyRenderAfter)
)
for (var i = e.lazyRenderAfter, o = e.falttenedRows.length; i < o; i++) (e.falttenedRows[i].appeared = !1), (e.falttenedRows[i].lazyRender = !0)
var d = e.footable && e.footable.expand
'first' === d || (e.expandConfig && 'first' === e.expandConfig.expand)
? e.rows.length && e.expandedRows.push(e.rows[0].id)
: (('all' === d && !e.footable.accordion) || (e.expandConfig && 'all' === e.expandConfig.expand && !e.expandConfig.accordion)) && e.expandedRows.replace(s(e.rows)),
(e.dragging = !1)
},
updateSelected: function (t, n) {
e.selectedRows.clear(),
t.forEach(function (t) {
var r = g.findTree(e.rows, function (e) {
return e.pristine === t
})
r ||
(r = g.findTree(e.rows, function (e) {
return t[n || 'value'] === e.pristine[n || 'value']
})),
r ||
(r = g.findTree(e.rows, function (e) {
return t[n || 'value'] == e.pristine[n || 'value']
})),
r && e.selectedRows.push(r)
}),
(function () {
if (!e.data) return
var t = e.getSelectionUpperLimit(),
n = e.data.selectedItems
e.selectedRows.map(function (e) {
return e.setCheckdisable(!1)
}),
t !== 1 / 0 && t <= n.length
? e.unSelectedRows.map(function (e) {
return !e.checked && e.setCheckdisable(!0)
})
: e.unSelectedRows.map(function (e) {
return e.checkdisable && e.setCheckdisable(!1)
})
})()
},
toggleAll: function () {
e.allChecked
? e.selectedRows.replace(
e.selectedRows.filter(function (e) {
return !e.checkable
})
)
: e.selectedRows.replace(u())
},
getSelectedRows: u,
toggle: p,
toggleAncestors: function e(n) {
var r = n.parent
if (r.depth) {
var a = r.childrenSelected()
p(r, a === t.SELECTED_STATUS.ALL), e(r)
}
},
toggleDescendants: function e(t, n) {
var r = t.children
;(null == r ? void 0 : r.length) &&
r.forEach(function (t) {
p(t, n), e(t, n)
})
},
toggleShift: function (t, n) {
var r = h(t)
1 !== (null == r ? void 0 : r.length)
? (r.forEach(function (t) {
var r = e.selectedRows.indexOf(t)
;-1 === r && n ? e.selectedRows.push(t) : ~r && !n && e.selectedRows.splice(r, 1)
}),
(f = t))
: p(t, n)
},
getToggleShiftRows: h,
toggleExpandAll: function () {
e.allExpanded
? e.expandedRows.clear()
: e.expandedRows.replace(
e.rows
.filter(function (e) {
return e.expandable
})
.map(function (e) {
return e.id
})
)
},
toggleExpanded: function (t) {
var n = e.expandedRows.indexOf(t.id)
if (~n) e.expandedRows.splice(n, 1)
else if (e.footable && e.footable.accordion) e.expandedRows.replace([t.id])
else if (e.expandConfig && e.expandConfig.accordion) {
var r = e.getExpandedRows().filter(function (e) {
return e.depth !== t.depth
})
r.push(t),
e.expandedRows.replace(
r.map(function (e) {
return e.id
})
)
} else e.expandedRows.push(t.id)
},
setExpanded: function (t, n) {
var r = 'string' == typeof t ? t : t.id,
a = e.expandedRows.indexOf(r)
n ? ~a || e.expandedRows.push(r) : ~a && e.expandedRows.splice(a, 1)
},
collapseAllAtDepth: function (t) {
var n = e.getExpandedRows().filter(function (e) {
return e.depth !== t
})
e.expandedRows.replace(
n.map(function (e) {
return e.id
})
)
},
clear: function () {
e.selectedRows.clear()
},
setOrderByInfo: m,
changeOrder: function (t, n) {
m(t, n)
var r = /desc/i.test(e.orderDir) ? -1 : 1
e.rows.replace(
g.sortArray(e.rows.concat(), e.orderBy, r, function (e, t) {
return e.data[t]
})
)
},
reset: function () {
e.rows.forEach(function (e) {
return e.reset()
})
var t = e.rows.concat()
g.eachTree(t, function (e) {
if (e.children) {
var t = e.children.concat().sort(function (e, t) {
return e.index - t.index
})
t.forEach(function (e) {
return e.reset()
}),
e.children.replace(t)
}
}),
t.forEach(function (e) {
return e.reset()
}),
(t = t.sort(function (e, t) {
return e.index - t.index
})),
e.rows.replace(t),
(e.dragging = !1)
},
toggleDragging: function () {
e.dragging = !e.dragging
},
startDragging: function () {
e.dragging = !0
},
stopDragging: function () {
e.dragging = !1
},
exchange: function (t, n, r) {
if ((r = r || e.rows[t]).parentId) {
var a = e.getRowById(r.parentId),
i = a.children.indexOf(r) - t
;(n += i), (t += i)
var o = a.children.concat()
return (
o.splice(t, 1),
o.splice(n, 0, r),
o.forEach(function (e, t) {
return (e.newIndex = t)
}),
void a.children.replace(o)
)
}
var l = e.rows.concat()
l.splice(t, 1),
l.splice(n, 0, r),
l.forEach(function (e, t) {
return (e.newIndex = t)
}),
e.rows.replace(l)
},
addForm: function (t, n) {
e.formsRef.push({ id: t.id, rowIndex: n })
},
toggleAllColumns: function (t) {
void 0 === t && (t = 1),
e.activeToggaleColumns.length && e.activeToggaleColumns.length === e.toggableColumns.length
? (e.toggableColumns.map(function (e) {
return e.setToggled(!1)
}),
S(t))
: e.toggableColumns.map(function (e) {
return e.setToggled(!0)
}),
x()
},
toggleColumnsAtLeast: S,
persistSaveToggledColumns: x,
setSearchFormExpanded: function (t) {
e.searchFormExpanded = !!t
},
toggleSearchFormExpanded: function () {
e.searchFormExpanded = !e.searchFormExpanded
},
afterCreate: function () {
setTimeout(function () {
if (i.isAlive(e)) {
var t = e.columnsKey,
n = localStorage.getItem(t)
if (n) {
var r = JSON.parse(n),
a = l.isObject(r) ? (null == r ? void 0 : r.toggledColumnIndex) : r
e.toggableColumns.forEach(function (e) {
return e.setToggled(!!~a.indexOf(e.index))
}),
e.searchableColumns.forEach(function (e) {
var t
e.setEnableSearch(!!~(null !== (t = null == r ? void 0 : r.enabledSearchableColumn) && void 0 !== t ? t : []).indexOf(e.name))
})
}
}
}, 200)
}
}
})
;(t.Column = x), (t.Row = w), (t.TableStore = S)
}) /*!node_modules/amis-core/lib/store/crud.js*/
amis.define('48f96dd', function (e, t, r, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
s = e('52fe564'),
i = e('668845d'),
o = e('3e2dd5e'),
l = e('939b8bb'),
c = e('3f34d90')
e('c3389ff'), e('8b081ba')
var u = e('bbe84d0'),
d = e('e74b24f'),
g = e('42c789c')
e('0910768'), e('8b641b6')
var p = e('d9d4e46'),
f = e('4d28952'),
m = e('575a22c'),
y = e('98ebec8')
function v(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var _ = v(c),
h = (function (e) {
function t(t, r) {
var a = e.call(this, t) || this
return (a.type = 'ServerError'), (a.response = r), a
}
return n.__extends(t, e), t
})(Error),
A = o.ServiceStore.named('CRUDStore')
.props({
pristineQuery: i.types.optional(i.types.frozen(), {}),
query: i.types.optional(i.types.frozen(), {}),
prevPage: 1,
page: 1,
perPage: 10,
total: 0,
mode: 'normal',
hasNext: !1,
selectedAction: i.types.frozen(),
columns: i.types.frozen(),
items: i.types.optional(i.types.array(i.types.frozen()), []),
selectedItems: i.types.optional(i.types.array(i.types.frozen()), []),
unSelectedItems: i.types.optional(i.types.array(i.types.frozen()), []),
filterTogggable: !1,
filterVisible: !0,
hasInnerModalOpen: !1
})
.views(function (e) {
return {
get lastPage() {
return Math.max(Math.ceil(e.total / (e.perPage < 1 ? 10 : e.perPage)), 1)
},
get filterData() {
return u.createObject(e.data, n.__assign({}, e.query))
},
get toolbarData() {
return u.createObject(u.createObject(e.data, { items: e.items.concat(), selectedItems: e.selectedItems.concat(), unSelectedItems: e.unSelectedItems.concat() }), n.__assign({}, e.query))
},
get mergedData() {
return u.extendObject(e.data, n.__assign(n.__assign(n.__assign({}, e.query), e.data), { selectedItems: e.selectedItems, unSelectedItems: e.unSelectedItems }))
},
get hasModalOpened() {
return e.dialogOpen || e.drawerOpen || e.hasInnerModalOpen
},
get selectedItemsAsArray() {
return e.selectedItems.concat()
},
fetchCtxOf: function (t, r) {
var a
return u.createObject(t, n.__assign(n.__assign(n.__assign({}, e.query), (((a = {})[r.pageField || 'page'] = e.page), (a[r.perPageField || 'perPage'] = e.perPage), a)), t))
}
}
})
.actions(function (t) {
var r = null
function a(e, r, a, s, i) {
void 0 === a && (a = 'page'), void 0 === s && (s = 'perPage'), void 0 === i && (i = !1)
var o = t.query,
c = i ? n.__assign({}, e) : n.__assign(n.__assign({}, o), e),
u = [
[0, ''],
[!1, ''],
[!1, '0'],
[!1, 0],
[!0, 1],
[!0, '1']
]
l.isObjectShallowModified(o, c, function (e, t) {
return u.some(function (r) {
return r.includes(e) && r.includes(t)
})
? e !== t
: e != t
}) &&
(c[a || 'page'] && (t.page = parseInt(c[a || 'page'], 10)),
c[s || 'perPage'] && (t.perPage = parseInt(c[s || 'perPage'], 10)),
(t.query = c),
r && setTimeout(r.bind(null, '?'.concat(l.qsstringify(c))), 4))
}
var o = i.flow(function (e, s, o) {
var c, m, y, v, h, A, b, S, I, P, w, D, O, q, F, k, E, M, N, T, j, x, C, R, V, B, z, U, Q, J, G, H, K, L, W, X, Y
return (
void 0 === o && (o = {}),
n.__generator(this, function (Z) {
switch (Z.label) {
case 0:
return (
Z.trys.push([0, 2, , 3]),
!o.forceReload && o.loadDataOnce && t.total
? ((c = o.matchFunc),
(m = o.source ? g.resolveVariableAndFilter(o.source, u.createObject(t.mergedData, { items: t.data.itemsRaw, rows: t.data.itemsRaw }), '| raw') : t.items.concat()),
c && 'function' == typeof c
? (m = c(m, t.data.itemsRaw, { query: t.query, columns: o.columns, matchSorter: f.matchSorter }))
: Array.isArray(o.columns) &&
o.columns.forEach(function (e) {
var r = 'string' == typeof e.name ? d.getVariable(t.query, e.name) : void 0,
a = e.name
if (null != r && a)
if (Array.isArray(r)) {
if (r.length > 0) {
var s = n.__spreadArray([], n.__read(m), !1),
i = []
r.forEach(function (e) {
i = n.__spreadArray(n.__spreadArray([], n.__read(i), !1), n.__read(f.matchSorter(s, e, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })), !1)
}),
(m = m.filter(function (e) {
return i.find(function (t) {
return t === e
})
}))
}
} else m = f.matchSorter(m, r, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })
}),
t.query.orderBy && ((x = /desc/i.test(t.query.orderDir) ? -1 : 1), (m = l.sortArray(m, t.query.orderBy, x))),
(y = n.__assign(n.__assign({}, t.data), { total: m.length, items: m.slice((t.page - 1) * t.perPage, t.page * t.perPage) })),
(t.total = parseInt(null !== (U = y.total) && void 0 !== U ? U : y.count, 10) || 0),
t.reInitData(y),
[2])
: (r && (r(), (r = null), (t.fetching = !1)),
o.silent || t.markFetching(!0),
(v = u.createObject(t.data, n.__assign(n.__assign(n.__assign({}, t.query), s), (((V = {})[o.pageField || 'page'] = t.page), (V[o.perPageField || 'perPage'] = t.perPage), V)))),
o.loadDataOnce && delete v[o.perPageField || 'perPage'],
[
4,
i.getEnv(t).fetcher(
e,
v,
n.__assign(n.__assign({}, o), {
cancelExecutor: function (e) {
return (r = e)
}
})
)
])
)
case 1:
if (((h = Z.sent()), (r = null), h.ok)) {
if (!h.data) throw new Error(t.__('CRUD.invalidData'))
if (
((t.updatedAt = Date.now()),
(A = p.normalizeApiResponseData(h.data)),
(b = A.total),
(S = A.count),
(I = A.page),
(P = A.hasNext),
(w = A.items),
(D = A.rows),
(O = A.columns),
(q = n.__rest(A, ['total', 'count', 'page', 'hasNext', 'items', 'rows', 'columns'])),
(F = void 0),
(F = o.source ? g.resolveVariableAndFilter(o.source, u.createObject(t.filterData, A), '| raw') : A.items || A.rows),
Array.isArray(F))
)
null == F && (F = [])
else
try {
for (k = n.__values(Object.keys(A)), E = k.next(); !E.done; E = k.next())
if (((M = E.value), A.hasOwnProperty(M) && Array.isArray(A[M]))) {
F = A[M]
break
}
} catch (e) {
B = { error: e }
} finally {
try {
E && !E.done && (z = k.return) && z.call(k)
} finally {
if (B) throw B.error
}
}
if (!Array.isArray(F)) throw new Error(t.__('CRUD.invalidArray'))
F.map(function (e) {
return 'string' == typeof e ? { text: e } : e
}),
(N = []),
(N = o.loadDataMode && Array.isArray(t.data.items) ? t.data.items.concat(F) : F),
(T = n.__assign(n.__assign(n.__assign({}, e.replaceData ? {} : t.pristine), { items: N, count: S, total: b }), q)),
o.loadDataOnce &&
((T.itemsRaw = w || D || N.concat()),
(j = N.concat()),
Array.isArray(o.columns) &&
o.columns.forEach(function (e) {
var r,
a = e.name
if (e.searchable && a && (r = d.getVariable(t.query, a)))
if (Array.isArray(r)) {
if (r.length > 0) {
var s = n.__spreadArray([], n.__read(j), !1),
i = []
r.forEach(function (e) {
i = n.__spreadArray(n.__spreadArray([], n.__read(i), !1), n.__read(f.matchSorter(s, e, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })), !1)
}),
(j = j.filter(function (e) {
return i.find(function (t) {
return t === e
})
}))
}
} else j = f.matchSorter(j, r, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })
}),
t.query.orderBy && ((x = /desc/i.test(t.query.orderDir) ? -1 : 1), (j = l.sortArray(j, t.query.orderBy, x))),
(T.items = j.slice((t.page - 1) * t.perPage, t.page * t.perPage)),
(T.count = T.total = j.length)),
Array.isArray(O) ? (t.columns = O.concat()) : q.isTable2 && (t.columns = o.columns),
t.items.replace(N),
t.reInitData(T, !!e.replaceData, e.concatDataFields),
!1 !== o.syncResponse2Query && a(_.default(q, Object.keys(t.query)), void 0, o.pageField || 'page', o.perPageField || 'perPage'),
(t.total = parseInt(null !== (K = T.total) && void 0 !== K ? K : T.count, 10) || 0),
void 0 !== I && (t.page = parseInt(I, 10)),
void 0 !== P && ((t.mode = 'simple'), (t.total = 0), (t.hasNext = !!P)),
t.updateMessage(
null !==
(Y = null !== (X = null !== (W = null === (L = e.messages) || void 0 === L ? void 0 : L.success) && void 0 !== W ? W : h.msg) && void 0 !== X ? X : o.successMessage) &&
void 0 !== Y
? Y
: h.defaultMsg
),
o && o.successMessage && i.getEnv(t).notify('success', t.msg)
} else
t.updateMessage(
null !==
(H =
null !== (G = null !== (J = null === (Q = null == e ? void 0 : e.messages) || void 0 === Q ? void 0 : Q.failed) && void 0 !== J ? J : h.msg) && void 0 !== G
? G
: o.errorMessage) && void 0 !== H
? H
: t.__('CRUD.fetchFailed'),
!0
),
!(null == e ? void 0 : e.silent) && i.getEnv(t).notify('error', h.msg, void 0 !== h.msgTimeout ? { closeButton: !0, timeout: h.msgTimeout } : void 0)
return t.markFetching(!1), [2, h]
case 2:
return (
(C = Z.sent()),
(R = i.getEnv(t)),
!i.isAlive(t) || t.disposed ? [2] : (t.markFetching(!1), R.isCancel(C) || (console.error(C), !(null == e ? void 0 : e.silent) && R.notify('error', C.message)), [2])
)
case 3:
return [2]
}
})
)
})
function c(e) {
var r = 'number' != typeof e ? parseInt(e, 10) : e
t.perPage = isNaN(r) ? 10 : r
}
var v = i.flow(function (e, r, a) {
var s, o, c, u, d, g, f, m, y, v
return (
void 0 === a && (a = {}),
n.__generator(this, function (_) {
switch (_.label) {
case 0:
return _.trys.push([0, 2, , 3]), (a = n.__assign({ method: 'post' }, a)), t.markSaving(!0), [4, i.getEnv(t).fetcher(e, r, a)]
case 1:
if (
((s = _.sent()),
t.markSaving(!1),
(l.isEmpty(s.data) && !s.ok) ||
(t.updateData(p.normalizeApiResponseData(s.data), { __saved: Date.now() }, !!e && e.replaceData, null == e ? void 0 : e.concatDataFields), (t.updatedAt = Date.now())),
!s.ok)
)
throw (
(t.updateMessage(
null !==
(g =
null !== (d = null !== (u = null === (c = null == e ? void 0 : e.messages) || void 0 === c ? void 0 : c.failed) && void 0 !== u ? u : s.msg) && void 0 !== d
? d
: a.errorMessage) && void 0 !== g
? g
: t.__('saveFailed'),
!0
),
!(null == e ? void 0 : e.silent) && i.getEnv(t).notify('error', t.msg, void 0 !== s.msgTimeout ? { closeButton: !0, timeout: s.msgTimeout } : void 0),
new h(t.msg, s))
)
return (
t.updateMessage(
null !==
(v =
null !== (y = null !== (m = null === (f = null == e ? void 0 : e.messages) || void 0 === f ? void 0 : f.success) && void 0 !== m ? m : s.msg) && void 0 !== y
? y
: a.successMessage) && void 0 !== v
? v
: s.defaultMsg
),
t.msg && i.getEnv(t).notify('success', t.msg, void 0 !== s.msgTimeout ? { closeButton: !0, timeout: s.msgTimeout } : void 0),
[2, s.data || {}]
)
case 2:
if (((o = _.sent()), !i.isAlive(t) || t.disposed)) return [2]
if ((t.markSaving(!1), i.getEnv(t).isCancel(o))) return [2]
throw (!(null == e ? void 0 : e.silent) && 'ServerError' !== o.type && i.getEnv(t).notify('error', o.message), o)
case 3:
return [2]
}
})
)
}),
A = function (e) {
t.selectedItems.replace(e)
},
b = function (e) {
t.unSelectedItems.replace(e)
}
return {
getData: function (e) {
return u.createObject(e, {
total: t.total,
page: t.page,
perPage: t.perPage,
items: t.items.concat(),
selectedItems: t.selectedItems.concat(),
unSelectedItems: t.unSelectedItems.concat()
})
},
updateSelectData: function (e, r) {
t.selectedItems.replace(e), t.unSelectedItems.replace(r), t.reInitData({ selectedItems: e, unSelectedItems: r })
},
setPristineQuery: function () {
t.pristineQuery = t.query
},
updateQuery: a,
fetchInitData: o,
changePage: function (e, r) {
var a = 'number' != typeof e ? parseInt(e, 10) : e
;(t.page = isNaN(a) ? 1 : a), r && c(r)
},
changePerPage: c,
selectAction: function (e) {
t.selectedAction = e
},
saveRemote: v,
setFilterTogglable: function (e, r) {
;(t.filterTogggable = e), void 0 !== r && (t.filterVisible = r)
},
setFilterVisible: function (e) {
t.filterVisible = e
},
setSelectedItems: A,
setUnSelectedItems: b,
setInnerModalOpened: function (e) {
t.hasInnerModalOpen = e
},
initFromScope: function (e, r, a) {
var s,
i = a.matchFunc,
o = g.resolveVariableAndFilter(r, e, '| raw')
if (Array.isArray(o) || t.items.length) {
if (
((o = Array.isArray(o) ? o : []),
i && 'function' == typeof i
? (o = i(o, o.concat(), { query: t.query, columns: a.columns, matchSorter: f.matchSorter }))
: Array.isArray(a.columns) &&
a.columns.forEach(function (e) {
var r = 'string' == typeof e.name ? d.getVariable(t.query, e.name) : void 0,
a = e.name
if (null != r && a)
if (Array.isArray(r)) {
if (r.length > 0) {
var s = n.__spreadArray([], n.__read(o), !1),
i = []
r.forEach(function (e) {
i = n.__spreadArray(n.__spreadArray([], n.__read(i), !1), n.__read(f.matchSorter(s, e, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })), !1)
}),
(o = o.filter(function (e) {
return i.find(function (t) {
return t === e
})
}))
}
} else o = f.matchSorter(o, r, { keys: [a], threshold: f.matchSorter.rankings.CONTAINS })
}),
t.query.orderBy)
) {
var c = /desc/i.test(t.query.orderDir) ? -1 : 1
o = l.sortArray(o, t.query.orderBy, c)
}
var u = n.__assign(n.__assign({}, t.pristine), { items: o.length > t.perPage ? o.slice((t.page - 1) * t.perPage, t.page * t.perPage) : o, count: o.length, total: o.length })
;(t.total = parseInt(null !== (s = u.total) && void 0 !== s ? s : u.count, 10) || 0), t.items.replace(o), t.reInitData(u)
}
},
exportAsCSV: function (r) {
return (
void 0 === r && (r = {}),
n.__awaiter(void 0, void 0, void 0, function () {
var a, o, l, c, d, g, p, f
return n.__generator(this, function (y) {
switch (y.label) {
case 0:
return (
(a = r.loadDataOnce ? t.data.itemsRaw : t.data.items),
(o = r.filename ? m.filter(r.filename, r.data, '| raw') : 'data'),
r.api
? ((l = r.pageField || 'page'),
(c = r.perPageField || 'perPage'),
(d = i.getEnv(t)),
(g = u.createObject(t.data, n.__assign(n.__assign(n.__assign({}, t.query), r.data), (((f = {})[l] = t.page || 1), (f[c] = t.perPage || 10), f)))),
[4, d.fetcher(r.api, g, { autoAppend: !0, pageField: l, perPageField: c })])
: [3, 2]
)
case 1:
if (!(p = y.sent()).data) return [2]
;(a = Array.isArray(p.data) ? p.data : p.data.rows || p.data.items), (y.label = 2)
case 2:
return (
Promise.resolve()
.then(function () {
return new Promise(function (t) {
e(['7c67829'], function (e) {
t(n.__importStar(e))
})
})
})
.then(function (e) {
var t,
r,
i = []
try {
for (var l = n.__values(a), c = l.next(); !c.done; c = l.next()) {
var u = c.value,
d = {}
for (var g in u) {
var p = u[g]
d[g] = 'object' == typeof p ? JSON.stringify(p) : p
}
i.push(d)
}
} catch (e) {
t = { error: e }
} finally {
try {
c && !c.done && (r = l.return) && r.call(l)
} finally {
if (t) throw t.error
}
}
var f = e.unparse(i)
if (f) {
var m = new Blob([new Uint8Array([239, 187, 191]), f], { type: 'text/plain;charset=utf-8' })
s.saveAs(m, ''.concat(o, '.csv'))
}
}),
[2]
)
}
})
})
)
},
updateColumns: function (e) {
t.columns = e
},
updateTotal: function (e) {
t.total = e || 0
},
resetSelection: function () {
var e, r, a, n
A([]), b([])
var s =
null === (r = null === (e = null == t ? void 0 : t.children) || void 0 === e ? void 0 : e.find) || void 0 === r
? void 0
: r.call(e, function (e) {
return e.storeType === y.TableStore.name
})
s && (null === (n = (a = s).clear) || void 0 === n || n.call(a))
}
}
})
t.CRUDStore = A
}) /*!node_modules/amis-core/lib/store/table2.js*/
amis.define('ebd77a8', function (e, n, t, r) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var i = e('68b98b9'),
o = e('668845d'),
a = e('0de7e2d'),
s = e('37efca2'),
l = e('939b8bb'),
c = e('d9d4e46'),
u = e('3e2dd5e'),
d = e('bbe84d0')
function g(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var p = g(a),
f = g(s),
y = (function (e) {
function n() {
var n = (null !== e && e.apply(this, arguments)) || this
return (n.type = 'ServerError'), n
}
return i.__extends(n, e), n
})(Error),
h = o.types
.model('Column', {
title: o.types.optional(o.types.frozen(), void 0),
label: o.types.optional(o.types.frozen(), void 0),
name: '',
toggled: !1,
breakpoint: o.types.optional(o.types.frozen(), void 0),
pristine: o.types.optional(o.types.frozen(), void 0),
toggable: !0,
index: 0,
type: '',
children: o.types.optional(
o.types.array(
o.types.late(function () {
return h
})
),
[]
)
})
.actions(function (e) {
return {
toggleToggle: function () {
e.toggled = !e.toggled
var n = o.getParent(e, 2)
n.activeToggaleColumns.length || (e.toggled = !0), n.persistSaveToggledColumns()
},
setToggled: function (n) {
e.toggled = n
}
}
}),
m = o.types
.model('Row', {
storeType: 'Row',
id: o.types.identifier,
parentId: '',
name: o.types.string,
pristine: o.types.frozen({}),
data: o.types.frozen({}),
index: o.types.number,
newIndex: o.types.number,
depth: o.types.number,
children: o.types.optional(
o.types.array(
o.types.late(function () {
return m
})
),
[]
),
path: ''
})
.views(function (e) {
return {
get checked() {
return o.getParent(e, 2 * e.depth).isSelected(e)
},
get modified() {
return (
!!e.data &&
Object.keys(e.data).some(function (n) {
return !f.default(e.data[n], e.pristine[n])
})
)
},
get moved() {
return e.index !== e.newIndex
},
get locals() {
var n = null
e.children.length &&
(n = e.children.map(function (e) {
return e.locals
}))
var t = o.getParent(e, 2)
return d.createObject(
d.extendObject(o.getParent(e, 2 * e.depth).data, { index: e.index, parent: t.storeType === m.name ? t.data : void 0 }),
n ? i.__assign(i.__assign({}, e.data), { children: n }) : e.data
)
},
getDataWithModifiedChilden: function () {
var n = i.__assign({}, e.data)
return (
n.children &&
e.children &&
(n.children = e.children.map(function (e) {
return e.getDataWithModifiedChilden()
})),
n
)
}
}
})
.actions(function (e) {
return {
replaceWith: function (n) {
if (
(Object.keys(n).forEach(function (t) {
'id' !== t && (e[t] = n[t])
}),
Array.isArray(n.children))
) {
var t = n.children,
r = t.concat()
e.children.length > t.length && e.children.splice(t.length, e.children.length - t.length)
for (var o = 0, a = e.children.length; r.length; ) {
var s = i.__assign(i.__assign({}, r.shift()), { parentId: e.id })
if (o < a) e.children[o].replaceWith(s)
else {
var l = m.create(s)
e.children.push(l)
}
o++
}
}
},
change: function (n, t) {
;(e.data = l.immutableExtends(e.data, n)), t && (e.pristine = e.data)
},
reset: function () {
;(e.newIndex = e.index), (e.data = e.pristine)
}
}
}),
v = u.ServiceStore.named('TableStore2')
.props({
columns: o.types.array(h),
rows: o.types.array(m),
selectedRowKeys: o.types.array(o.types.frozen()),
selectedRows: o.types.array(o.types.reference(m)),
expandedRowKeys: o.types.array(o.types.frozen()),
columnsTogglable: o.types.optional(o.types.union(o.types.boolean, o.types.literal('auto'), o.types.frozen()), 'auto'),
orderBy: '',
order: o.types.optional(o.types.union(o.types.literal('asc'), o.types.literal('desc')), 'asc'),
query: o.types.optional(o.types.frozen(), {}),
pageNo: 1,
pageSize: 10,
dragging: !1,
rowSelectionKeyField: 'id',
formsRef: o.types.optional(o.types.array(o.types.frozen()), []),
canAccessSuperData: !1
})
.views(function (e) {
function n() {
return e.columns.filter(function (n) {
return l.isVisible(n.pristine, e.data) && !1 !== n.toggable
})
}
function t(n) {
return n
? n
.filter(function (n) {
return n && l.isVisible(n.pristine, l.hasVisibleExpression(n.pristine) ? e.data : {}) && (n.toggled || !n.toggable)
})
.map(function (e) {
return i.__assign(i.__assign({}, e.pristine), { type: e.type, children: e.children ? t(e.children) : void 0 })
})
: []
}
function r() {
return t(e.columns)
}
function o() {
return l.flattenTree(e.rows).filter(function (e) {
return !e.checked
})
}
function a() {
return l.flattenTree(e.rows).filter(function (e) {
return e.moved
})
}
function s(n, t) {
return (
void 0 === n && (n = []),
void 0 === t && (t = []),
(n = n && n.length ? n : e.rows).forEach(function (e) {
e.children && e.children.length && s(e.children, t)
var n = l.difference(e.data, e.pristine)
Object.keys(n).length && t.push(e)
}),
t
)
}
return {
get toggable() {
return 'auto' === e.columnsTogglable
? e.columns.filter(function (e) {
return !/^__/.test(e.type)
}).length > 5
: !!e.columnsTogglable
},
get columnsData() {
return e.columns
},
get toggableColumns() {
return n()
},
get filteredColumns() {
return r()
},
get activeToggaleColumns() {
return n().filter(function (e) {
return e.toggled
})
},
get dataSource() {
return e.rows.map(function (n) {
return e.canAccessSuperData ? n.locals : n.data
})
},
get currentSelectedRowKeys() {
return e.data && e.data.selectedItems
? e.data.selectedItems.map(function (n) {
return n[e.rowSelectionKeyField]
}) || []
: e.selectedRowKeys.map(function (e) {
return e
})
},
get currentExpandedKeys() {
return e.expandedRowKeys.map(function (e) {
return e
})
},
get unSelectedRows() {
return o()
},
hasColumnHidden: function () {
return (
-1 !==
e.columns.findIndex(function (e) {
return !e.toggled
})
)
},
getData: function (n) {
return d.createObject(n, {
items: e.rows.map(function (e) {
return e.data
}),
selectedItems: e.selectedRows.map(function (e) {
return e.data
}),
unSelectedItems: o().map(function (e) {
return e.data
})
})
},
getRowById: function (n) {
return l.findTree(e.rows, function (e) {
return e.id === n
})
},
isSelected: function (n) {
return !!~e.selectedRows.indexOf(n)
},
getRowByIndex: function n(t, r, i) {
if (((i = i || e.rows), r && r.length > 0)) {
var o = +(r.shift() || 0)
return n(t, r, i[o].children)
}
return i[t]
},
get moved() {
return a().length
},
get movedRows() {
return a()
},
get keyField() {
return e.rowSelectionKeyField
},
get modified() {
return s().length
},
get modifiedRows() {
return s()
}
}
})
.actions(function (e) {
function n(e, t) {
if (e && Array.isArray(e)) {
var r = e
.filter(function (e) {
return e
})
.concat()
return (r = r.map(function (e, r) {
return (
(null == t ? void 0 : t.resolveDefinitions) && 'string' == typeof (null == e ? void 0 : e.$ref) && e.$ref && (e = i.__assign(i.__assign({}, t.resolveDefinitions(e.$ref)), e)),
i.__assign(i.__assign({}, e), { index: r, type: e.type || 'plain', pristine: e, toggled: !1 !== e.toggled, breakpoint: e.breakpoint, children: e.children ? n(e.children, t) : [] })
)
}))
}
}
function t() {
var n =
location.pathname +
e.path +
e.toggableColumns
.map(function (e) {
return e.name || e.index
})
.join('-')
localStorage.setItem(
n,
JSON.stringify(
e.activeToggaleColumns.map(function (e) {
return e.index
})
)
)
}
function r(n, t) {
;(e.orderBy = n), (e.order = t)
}
function a(n, t) {
var r = e.rowSelectionKeyField
l.eachTree(n, function (n) {
~t.indexOf(n.pristine[r]) ||
p.default(t, function (e) {
return e && e == n.pristine[r]
})
? (e.selectedRows.push(n.id), e.selectedRowKeys.push(n.pristine[r]))
: n.children && a(n.children, t)
})
}
function s(e, n, t, r, i, o) {
void 0 === i && (i = '')
var a = o || 'children'
return (
(n += 1),
e.map(function (e, o) {
e = d.isObject(e) ? e : { item: e }
var c = l.guid()
return {
id: c,
parentId: r,
name: String(''.concat(t, '-').concat(n, '-').concat(o)),
path: ''.concat(i).concat(o),
depth: n,
index: o,
newIndex: o,
pristine: e,
data: e,
rowSpans: {},
children: e && Array.isArray(e[a]) ? s(e[a], n, o, c, ''.concat(i).concat(o, '.')) : []
}
})
)
}
return {
update: function (t, i) {
void 0 !== t.columnsTogglable && (e.columnsTogglable = t.columnsTogglable),
void 0 !== t.canAccessSuperData && (e.canAccessSuperData = !!t.canAccessSuperData),
'string' == typeof t.orderBy && r(t.orderBy, 'desc' === t.order ? 'desc' : 'asc'),
t.rowSelectionKeyField && (e.rowSelectionKeyField = t.rowSelectionKeyField),
t.columns && Array.isArray(t.columns) && e.columns.replace(n(t.columns, i))
},
persistSaveToggledColumns: t,
setOrderByInfo: r,
updateQuery: function (n, t, r, o, a) {
void 0 === r && (r = 'pageNo'), void 0 === o && (o = 'pageSize'), void 0 === a && (a = !1)
var s = e.query
;(e.query = a ? i.__assign({}, n) : i.__assign(i.__assign({}, e.query), n)),
e.query[r || 'pageNo'] && (e.pageNo = parseInt(e.query[r || 'pageNo'], 10)),
e.query[o || 'pageSize'] && (e.pageSize = parseInt(e.query[o || 'pageSize'], 10)),
t && l.isObjectShallowModified(s, e.query, !1) && setTimeout(t.bind(null, '?'.concat(l.qsstringify(e.query))), 4)
},
initRows: function (n, t, r, i) {
e.selectedRows.clear()
var o = i || 'children'
!(function (n, t) {
if (!1 !== t) {
var r = n.concat()
e.rows.length > n.length && e.rows.splice(n.length, e.rows.length - n.length)
for (var i = 0, o = e.rows.length; r.length; ) {
var a = r.shift()
if (i < o) e.rows[i].replaceWith(a)
else {
var s = m.create(a)
e.rows.push(s)
}
i++
}
} else
e.rows.replace(
n.map(function (e) {
return m.create(e)
})
)
})(
n.map(function (e, n) {
var r = t ? t(e, n) : l.guid()
return {
id: r,
name: String(''.concat(n, '-1-').concat(n)),
index: n,
newIndex: n,
pristine: e,
path: ''.concat(n),
data: e,
depth: 1,
children: e && Array.isArray(e[o]) ? s(e[o], 1, n, r, ''.concat(n, '.'), o) : []
}
}),
r
)
},
updateSelected: function (n) {
e.selectedRows.clear(), e.selectedRowKeys.clear(), a(e.rows, n)
},
updateSelectedAll: function () {
var n = []
l.eachTree(e.rows, function (t) {
return n.push(t.pristine[e.rowSelectionKeyField])
}),
a(e.rows, n)
},
updateExpanded: function (n, t) {
e.expandedRowKeys.clear(),
l.eachTree(e.rows, function (r) {
;(~n.indexOf(r.pristine[t]) ||
p.default(n, function (e) {
return e && e == r.pristine[t]
})) &&
e.expandedRowKeys.push(r.pristine[t])
})
},
exchange: function (n, t, r) {
if (null == (r = r || e.rows[n]) ? void 0 : r.parentId) {
var i = e.getRowById(r.parentId),
o = i.children.concat()
return (
o.splice(n, 1),
o.splice(t, 0, r),
o.forEach(function (e, n) {
return (e.newIndex = n)
}),
void i.children.replace(o)
)
}
var a = e.rows.concat()
a.splice(n, 1),
a.splice(t, 0, r),
a.forEach(function (e, n) {
return (e.newIndex = n)
}),
e.rows.replace(a)
},
reset: function () {
e.rows.forEach(function (e) {
return e.reset()
})
var n = e.rows.concat()
l.eachTree(n, function (e) {
if (e.children) {
var n = e.children.concat().sort(function (e, n) {
return e.index - n.index
})
n.forEach(function (e) {
return e.reset()
}),
e.children.replace(n)
}
}),
n.forEach(function (e) {
return e.reset()
}),
(n = n.sort(function (e, n) {
return e.index - n.index
})),
e.rows.replace(n),
(e.dragging = !1)
},
toggleAllColumns: function () {
e.activeToggaleColumns.length && e.activeToggaleColumns.length === e.toggableColumns.length
? e.toggableColumns.map(function (e) {
return e.setToggled(!1)
})
: e.toggableColumns.map(function (e) {
return e.setToggled(!0)
}),
t()
},
afterCreate: function () {
setTimeout(function () {
if (o.isAlive(e)) {
var n =
location.pathname +
e.path +
e.toggableColumns
.map(function (e) {
return e.name || e.index
})
.join('-'),
t = localStorage.getItem(n)
if (t) {
var r = JSON.parse(t)
e.toggableColumns.forEach(function (e) {
return e.setToggled(!!~r.indexOf(e.index))
})
}
}
}, 200)
},
saveRemote: o.flow(function (n, t, r) {
var a, s, u, d, g, p, f, h, m, v
return (
void 0 === r && (r = {}),
i.__generator(this, function (w) {
switch (w.label) {
case 0:
return w.trys.push([0, 2, , 3]), (r = i.__assign({ method: 'post' }, r)), e.markSaving(!0), [4, o.getEnv(e).fetcher(n, t, r)]
case 1:
if (
((a = w.sent()),
e.markSaving(!1),
(l.isEmpty(a.data) && !a.ok) ||
(e.updateData(c.normalizeApiResponseData(a.data), { __saved: Date.now() }, !!n && n.replaceData, null == n ? void 0 : n.concatDataFields), (e.updatedAt = Date.now())),
!a.ok)
)
throw (
(e.updateMessage(
null !==
(p =
null !== (g = null !== (d = null === (u = null == n ? void 0 : n.messages) || void 0 === u ? void 0 : u.failed) && void 0 !== d ? d : a.msg) && void 0 !== g
? g
: r.errorMessage) && void 0 !== p
? p
: e.__('saveFailed'),
!0
),
!(null == n ? void 0 : n.silent) && o.getEnv(e).notify('error', e.msg, void 0 !== a.msgTimeout ? { closeButton: !0, timeout: a.msgTimeout } : void 0),
new y(e.msg))
)
return (
e.updateMessage(
null !==
(v =
null !== (m = null !== (h = null === (f = null == n ? void 0 : n.messages) || void 0 === f ? void 0 : f.success) && void 0 !== h ? h : a.msg) && void 0 !== m
? m
: r.successMessage) && void 0 !== v
? v
: a.defaultMsg
),
e.msg && o.getEnv(e).notify('success', e.msg, void 0 !== a.msgTimeout ? { closeButton: !0, timeout: a.msgTimeout } : void 0),
[2, a.data]
)
case 2:
if (((s = w.sent()), e.markSaving(!1), !o.isAlive(e) || e.disposed)) return [2]
throw (!(null == n ? void 0 : n.silent) && 'ServerError' !== s.type && o.getEnv(e).notify('error', s.message), s)
case 3:
return [2]
}
})
)
}),
addForm: function (n, t) {
e.formsRef.push({ id: n.id, rowIndex: t })
}
}
})
;(n.Column = h), (n.Row = m), (n.TableStore2 = v)
}) /*!node_modules/amis-core/lib/store/list.js*/
amis.define('0b463e6', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('68b98b9'),
a = e('668845d'),
c = e('7db930a'),
s = e('37efca2'),
d = e('939b8bb'),
l = e('575a22c'),
u = e('bbe84d0')
function o(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var g = o(s),
m = a.types
.model('Item', { storeType: 'Item', id: a.types.identifier, pristine: a.types.frozen(), data: a.types.frozen(), index: a.types.number, newIndex: a.types.number })
.views(function (e) {
return {
get checked() {
return a.getParent(e, 2).isSelected(e)
},
get modified() {
return (
!!e.data &&
Object.keys(e.data).some(function (t) {
return !g.default(e.data[t], e.pristine[t])
})
)
},
get moved() {
return e.index !== e.newIndex
},
get locals() {
var t = a.getParent(e, 2)
return u.createObject(
u.extendObject(t.data, {
index: e.index,
selectedItems: t.selectedItems.map(function (e) {
return e.data
}),
unSelectedItems: t.unSelectedItems.map(function (e) {
return e.data
})
}),
e.data
)
},
get checkable() {
var t = a.getParent(e, 2)
return !t || !t.itemCheckableOn || l.evalExpression(t.itemCheckableOn, e.locals)
},
get draggable() {
var t = a.getParent(e, 2)
return t && t.itemDraggableOn ? l.evalExpression(t.itemDraggableOn, e.locals) : t.draggable
}
}
})
.actions(function (e) {
return {
toggle: function () {
a.getParent(e, 2).toggle(e)
},
change: function (t, n) {
;(e.data = d.immutableExtends(e.data, t)), n && (e.pristine = e.data)
},
reset: function () {
;(e.newIndex = e.index), (e.data = e.pristine)
},
updateData: function (t) {
t.children
var n = i.__rest(t, ['children'])
e.data = i.__assign(i.__assign({}, e.data), n)
}
}
}),
f = c.iRendererStore
.named('ListStore')
.props({
items: a.types.array(m),
selectedItems: a.types.array(a.types.reference(m)),
primaryField: 'id',
orderBy: '',
orderDir: a.types.optional(a.types.union(a.types.literal('asc'), a.types.literal('desc')), 'asc'),
draggable: !1,
dragging: !1,
multiple: !0,
strictMode: !1,
selectable: !1,
itemCheckableOn: '',
itemDraggableOn: '',
hideCheckToggler: !1
})
.views(function (e) {
function t() {
return e.items.filter(function (e) {
return e.modified
})
}
function n() {
return e.items.filter(function (e) {
return e.moved
})
}
return {
get allChecked() {
return !(e.selectedItems.length !== e.checkableItems.length || !e.checkableItems.length)
},
get checkableItems() {
return e.items.filter(function (e) {
return e.checkable
})
},
get unSelectedItems() {
return e.items.filter(function (e) {
return !e.checked
})
},
isSelected: function (t) {
return !!~e.selectedItems.indexOf(t)
},
get modified() {
return t().length
},
get modifiedItems() {
return t()
},
get moved() {
return n().length
},
get movedItems() {
return n()
}
}
})
.actions(function (e) {
function t(t, n) {
;(e.orderBy = t), (e.orderDir = n)
}
return {
getData: function (t) {
return u.createObject(t, {
items: e.items.map(function (e) {
return e.data
}),
selectedItems: e.selectedItems.map(function (e) {
return e.data
}),
unSelectedItems: e.unSelectedItems.map(function (e) {
return e.data
})
})
},
update: function (n) {
void 0 === n.selectable || (e.selectable = n.selectable),
void 0 === n.draggable || (e.draggable = n.draggable),
void 0 === n.multiple || (e.multiple = n.multiple),
void 0 === n.strictMode || (e.strictMode = n.strictMode),
void 0 === n.hideCheckToggler || (e.hideCheckToggler = n.hideCheckToggler),
void 0 !== n.orderBy && t(n.orderBy, 'desc' === n.orderDir ? 'desc' : 'asc'),
void 0 === n.itemCheckableOn || (e.itemCheckableOn = n.itemCheckableOn),
void 0 === n.itemDraggableOn || (e.itemDraggableOn = n.itemDraggableOn)
},
initItems: function (t) {
var n = t.map(function (e, t) {
return (e = u.isObject(e) ? e : { item: e }), { id: d.guid(), index: t, newIndex: t, pristine: e, data: e, modified: !1 }
})
e.selectedItems.clear(), e.items.replace(n), (e.dragging = !1)
},
updateSelected: function (t, n) {
e.selectedItems.clear(),
t.forEach(function (t) {
var r = e.items.find(function (e) {
return e.pristine === t
})
r ||
(r = e.items.find(function (e) {
return t[n || 'value'] === e.pristine[n || 'value']
})),
r ||
(r = e.items.find(function (e) {
return t[n || 'value'] == e.pristine[n || 'value']
})),
r && e.selectedItems.push(r)
})
},
toggleAll: function () {
e.allChecked ? e.selectedItems.clear() : e.selectedItems.replace(e.checkableItems)
},
clearAll: function () {
e.selectedItems.clear()
},
selectAll: function () {
e.selectedItems.replace(e.checkableItems)
},
toggle: function (t) {
if (t.checkable) {
var n = e.selectedItems.indexOf(t)
e.multiple ? (~n ? e.selectedItems.splice(n, 1) : e.selectedItems.push(t)) : ~n ? e.selectedItems.splice(n, 1) : e.selectedItems.replace([t])
}
},
clear: function () {
e.selectedItems.clear()
},
setOrderByInfo: t,
reset: function () {
e.items.forEach(function (e) {
return e.reset()
}),
(e.dragging = !1)
},
toggleDragging: function () {
e.dragging = !e.dragging
},
startDragging: function () {
e.dragging = !0
},
stopDragging: function () {
e.dragging = !1
},
exchange: function (t, n) {
var r = e.items[t]
r.newIndex = n
var i = e.items.slice()
i.splice(t, 1), i.splice(n, 0, r), e.items.replace(i)
}
}
})
;(t.Item = m), (t.ListStore = f)
}) /*!node_modules/amis-core/lib/store/modal.js*/
amis.define('c83dd99', function (e, t, r, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = e('3e2dd5e'),
i = e('668845d')
e('939b8bb')
var a = e('bbe84d0'),
s = o.ServiceStore.named('ModalStore')
.props({ form: i.types.frozen(), entered: !1, resizeCoord: 0, schema: i.types.frozen() })
.views(function (e) {
return {
get formData() {
return a.createObject(e.data, e.form)
}
}
})
.actions(function (e) {
return {
setEntered: function (t) {
e.entered = t
},
setFormData: function (t) {
e.form = t
},
reset: function () {
;(e.form = {}), e.reInitData({}, !0)
},
setResizeCoord: function (t) {
e.resizeCoord = t
},
setSchema: function (t) {
t && t.then
? t.then(function (t) {
return i.isAlive(e) && e.setSchema(t)
})
: (e.schema = t)
}
}
})
t.ModalStore = s
}) /*!node_modules/lodash/isEqualWith.js*/
amis.define('d3b1a92', function (i, o, n, d) {
var t = i('1cb07a0')
n.exports = function (i, o, n) {
var d = (n = 'function' == typeof n ? n : void 0) ? n(i, o) : void 0
return void 0 === d ? t(i, o, void 0, n) : !!d
}
}) /*!node_modules/amis-core/lib/utils/normalizeOptions.js*/
amis.define('9a56a54', function (e, n, r, i) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var u = e('68b98b9')
function t(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var a = t(e('0910768'))
n.normalizeOptions = function e(n, r, i) {
return (
void 0 === r && (r = { values: [], options: [] }),
void 0 === i && (i = 'value'),
'string' == typeof n
? n.split(',').map(function (e) {
var n,
u = r.values.indexOf(e)
if (~u) return r.options[u]
var t = (((n = { label: e })[i] = e), n)
return r.values.push(t.value), r.options.push(t), t
})
: Array.isArray(n) && 'string' == typeof n[0]
? n.map(function (e) {
var n,
u = r.values.indexOf(e)
if (~u) return r.options[u]
var t = (((n = { label: e })[i] = e), n)
return r.values.push(t[i]), r.options.push(t), t
})
: Array.isArray(n)
? n
.filter(function (e) {
return null != e
})
.map(function (n) {
var t,
a = n && n[i],
s = void 0 === a || n.children ? -1 : r.values.indexOf(a)
if (~s) return r.options[s]
var o = u.__assign(u.__assign({}, n), (((t = {})[i] = a), t))
return void 0 !== o.children ? (o.children = e(o.children, r, i)) : void 0 !== a && (r.values.push(a), r.options.push(o)), o
})
: a.default(n)
? Object.keys(n).map(function (e) {
var u,
t = r.values.indexOf(e)
if (~t) return r.options[t]
var a = (((u = { label: n[e] })[i] = e), u)
return r.values.push(a.value), r.options.push(a), a
})
: []
)
}
}) /*!node_modules/amis-core/lib/utils/optionValueCompare.js*/
amis.define('0b3520f', function (e, t, n, u) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('939b8bb')
var i = e('37efca2'),
o = e('bbe84d0')
function r(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var a = r(i)
function f(e, t) {
return void 0 === t && (t = 'value'), o.isObject(e) && e && e.hasOwnProperty(t) ? e[t] : e
}
function c(e, t, n) {
void 0 === n && (n = 'value')
var u = f(e, n),
i = t[n || 'value']
return o.isObject(u) ? a.default(u, i) : void 0 !== u && void 0 !== i && String(i) === String(u)
}
;(t.getOptionValue = f),
(t.getOptionValueBindField = function (e) {
return (
void 0 === e && (e = 'value'),
function (t) {
return f(t, e)
}
)
}),
(t.matchOptionValue = c),
(t.optionValueCompare = function (e, t) {
return (
void 0 === t && (t = 'value'),
function (n) {
return c(e, n, t)
}
)
})
}) /*!node_modules/amis-core/lib/store/formItem.js*/
amis.define('121d16c', function (e, n, t, i) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var a = e('68b98b9'),
r = e('668845d'),
o = e('d3b1a92'),
l = e('56fdd91'),
s = e('afae96a'),
u = e('9f4cfa3'),
d = e('9bf2913'),
p = e('575a22c')
e('c3389ff'), e('8b081ba')
var c = e('bbe84d0'),
v = e('42c789c'),
f = e('1c8d418')
e('8b641b6')
var g = e('d9d4e46'),
m = e('0150eb3'),
_ = e('939b8bb'),
y = e('0de7e2d'),
h = e('37efca2'),
b = e('0910768'),
O = e('d2a103e'),
V = e('a533195'),
F = e('821b8e4'),
A = e('9a56a54'),
w = e('0b3520f')
function x(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var S = x(o),
T = x(l),
E = x(m),
P = x(y),
C = x(h),
I = x(b),
z = r.types.model('ErrorDetail', { msg: '', tag: '', rule: '' }),
D = { value: null, nodeValueArray: null, res: null },
j = V.StoreNode.named('FormItemStore')
.props({
isFocused: !1,
isControlled: !1,
type: '',
label: '',
unique: !1,
loading: !1,
required: !1,
isValueSchemaExp: r.types.optional(r.types.boolean, !1),
tmpValue: r.types.frozen(),
emitedValue: r.types.frozen(),
changeMotivation: 'input',
rules: r.types.optional(r.types.frozen(), {}),
messages: r.types.optional(r.types.frozen(), {}),
errorData: r.types.optional(r.types.array(z), []),
name: r.types.string,
extraName: '',
itemId: '',
unsetValueOnInvisible: !1,
itemsRef: r.types.optional(r.types.array(r.types.string), []),
inited: !1,
validated: !1,
validating: !1,
multiple: !1,
delimiter: ',',
valueField: 'value',
labelField: 'label',
joinValues: !0,
extractValue: !1,
options: r.types.optional(r.types.frozen(), []),
optionsRaw: r.types.optional(r.types.frozen(), []),
expressionsInOptions: !1,
selectFirst: !1,
autoFill: r.types.frozen(),
clearValueOnHidden: !1,
validateApi: r.types.optional(r.types.frozen(), ''),
selectedOptions: r.types.optional(r.types.frozen(), []),
filteredOptions: r.types.optional(r.types.frozen(), []),
dialogSchema: r.types.frozen(),
dialogOpen: !1,
dialogData: r.types.frozen(),
resetValue: r.types.optional(r.types.frozen(), ''),
validateOnChange: !1,
inputGroupControl: r.types.optional(r.types.frozen(), {}),
colIndex: r.types.frozen(),
rowIndex: r.types.frozen(),
pagination: r.types.optional(r.types.frozen(), { enable: !1, page: 1, perPage: 10, total: 0 }),
accumulatedOptions: r.types.optional(r.types.frozen(), [])
})
.views(function (e) {
function n() {
var n = e.parentStore
return (null == n ? void 0 : n.storeType) === s.FormStore.name ? n : void 0
}
function t() {
return e.errorData.map(function (e) {
return e.msg
})
}
return {
get subFormItems() {
return e.itemsRef.map(function (e) {
return F.getStoreById(e)
})
},
get form() {
return n()
},
get value() {
return null === (t = n()) || void 0 === t ? void 0 : t.getValueByName(e.name)
var t
},
get prinstine() {
var t
return null === (t = n()) || void 0 === t ? void 0 : t.getPristineValueByName(e.name)
},
get errors() {
return t()
},
get valid() {
var e = t()
return !(e && e.length)
},
get errClassNames() {
return e.errorData
.map(function (e) {
return e.rule
})
.filter(function (e, n, t) {
return e && t.indexOf(e) === n
})
.map(function (e) {
return 'has-error--'.concat(e)
})
.join(' ')
},
get lastSelectValue() {
return e.selectedOptions.length ? e.selectedOptions[e.selectedOptions.length - 1].value : ''
},
get enableSourcePagination() {
return !!e.pagination.enable
},
get sourcePageNum() {
var n
return null !== (n = e.pagination.page) && void 0 !== n ? n : 1
},
get sourcePerPageNum() {
var n
return null !== (n = e.pagination.perPage) && void 0 !== n ? n : 10
},
get sourceTotalNum() {
var n
return null !== (n = e.pagination.total) && void 0 !== n ? n : 0
},
getSelectedOptions: function (n, t) {
if ((void 0 === n && (n = e.tmpValue), null != n && null != t && C.default(n, D.value) && C.default(t, D.nodeValueArray) && D.res)) return D.res
if (void 0 === n) return []
var i = e.filteredOptions,
a = e.labelField,
r = e.extractValue,
o = e.multiple,
l = e.delimiter,
s = e.valueField || 'value',
u =
t ||
(Array.isArray(n)
? n
: 'string' == typeof n && o
? n.split(l || ',').map(function (e) {
return e.trim()
})
: [n]),
d = u.map(function (e) {
return e && e.hasOwnProperty(s) ? e[s] : e
}),
p = []
return (
d.forEach(function (e, n) {
var t,
o,
l = _.findTree(i, w.optionValueCompare(e, s), { resolve: w.getOptionValueBindField(s), value: w.getOptionValue(e, s) })
if (l) p.push(l)
else {
var d = (u && u[n]) || e
!d || ('string' != typeof d && 'number' != typeof d)
? d && r && (((o = {})[s || 'value'] = e), (o[a || 'label'] = 'UnKnown'), (o.__unmatched = !0), (d = o))
: (((t = {})[s || 'value'] = e), (t[a || 'label'] = e), (t.__unmatched = !0), (d = t)),
d && p.push(d)
}
}),
p.length && ((D.value = n), (D.nodeValueArray = t), (D.res = p)),
p
)
},
splitExtraValue: function (n) {
var t = e.delimiter || ','
return Array.isArray(n)
? n
: 'string' == typeof n
? n.split(t || ',').map(function (e) {
return e.trim()
})
: []
},
getMergedData: function (n) {
var t = c.cloneObject(n)
return c.setVariable(t, e.name, e.tmpValue), c.setVariable(t, '__value', e.tmpValue), c.setVariable(t, '__name', e.name), t
}
}
})
.actions(function (e) {
e.form
var n = new O.SimpleMap(),
t = null,
i = []
var o = null,
l = r.flow(function (n, t, i) {
var l, s, d, p, v, f, _, h, b
return a.__generator(this, function (a) {
switch (a.label) {
case 0:
return e.validating && !g.isEffectiveApi(e.validateApi, n) ? [2, e.valid] : ((e.validating = !0), y(), t ? [4, t()] : [3, 2])
case 1:
a.sent(), (a.label = 2)
case 2:
if ((m(u.validate(e.tmpValue, n, i ? u.str2rules(i) : e.rules, e.messages, e.__)), e.errors.length || !g.isEffectiveApi(e.validateApi, n))) return [3, 6]
o && (o(), (o = null)), (a.label = 3)
case 3:
return (
a.trys.push([3, 5, , 6]),
[
4,
r.getEnv(e).fetcher(e.validateApi, c.createObject(n, ((p = {}), (p[e.name] = e.tmpValue), p)), {
cancelExecutor: function (e) {
return (o = e)
}
})
]
)
case 4:
return (
(l = a.sent()),
(o = null),
!l.ok &&
422 === l.status &&
l.errors &&
m(
String(
null !== (_ = null === (f = null === (v = e.validateApi) || void 0 === v ? void 0 : v.messages) || void 0 === f ? void 0 : f.failed) && void 0 !== _
? _
: l.errors || l.msg || '\u8868\u5355\u9879「'.concat(e.name, '」\u6821\u9a8c\u5931\u8d25')
)
),
[3, 6]
)
case 5:
return (s = a.sent()), m(String(s)), [3, 6]
case 6:
return (
(e.validated = !0),
e.unique &&
'ComboStore' === (null === (b = null === (h = e.form) || void 0 === h ? void 0 : h.parentStore) || void 0 === b ? void 0 : b.storeType) &&
((d = e.form.parentStore),
d.uniques.get(e.name).items.some(function (n) {
return n !== e && void 0 !== e.tmpValue && '' !== e.tmpValue && n.value === e.tmpValue
}) && m(e.__('Form.unique'))),
(e.validating = !1),
[2, e.valid]
)
}
})
})
function s(e, n) {
void 0 === n && (n = 'builtin'), y(), m(e, n)
}
function m(n, t) {
void 0 === t && (t = 'builtin'),
(Array.isArray(n) ? n : [n]).forEach(function (n) {
return e.errorData.push({ msg: 'string' == typeof n ? n : n.msg, rule: 'string' != typeof n ? n.rule : void 0, tag: t })
})
}
function y(n) {
if (n) {
var t = e.errorData.filter(function (e) {
return e.tag !== n
})
e.errorData.replace(t)
} else e.errorData.clear()
}
function h(n) {
var t, i
if (Array.isArray(n))
try {
for (var r = a.__values(n), o = r.next(); !o.done; o = r.next()) {
var l = o.value
if (Array.isArray(l.children)) {
var s = h(l.children)
if (void 0 !== s) return s
} else if (null != l[e.valueField || 'value'] && !l.disabled) return l
}
} catch (e) {
t = { error: e }
} finally {
try {
o && !o.done && (i = r.return) && i.call(r)
} finally {
if (t) throw t.error
}
}
}
function b(n, t, i) {
if (Array.isArray(n)) {
n = _.filterTree(n, function (e) {
return e
})
var r,
o = e.options.concat()
if (
((e.options = n),
(e.accumulatedOptions = e.enableSourcePagination
? T.default(a.__spreadArray(a.__spreadArray([], a.__read(o), !1), a.__read(n), !1), function (n, t) {
var i, a
return n[null !== (i = e.valueField) && void 0 !== i ? i : 'value'] === t[null !== (a = e.valueField) && void 0 !== a ? a : 'value']
})
: n),
N(o, i),
t &&
e.selectFirst &&
e.filteredOptions.length &&
(r = e.getSelectedOptions(e.value)) &&
!r.filter(function (e) {
return !e.__unmatched
}).length)
) {
var l = h(e.filteredOptions)
if (!l) return
var s = [l].map(function (n) {
return e.extractValue || e.joinValues ? n[e.valueField || 'value'] : n
})
t(e.joinValues && e.multiple ? s.join(e.delimiter) : e.multiple ? s : s[0])
}
}
}
var V = null,
F = r.flow(function (n, t, i, o) {
var l, u, d, p, c, v, f, m, _, y, h
return a.__generator(this, function (b) {
switch (b.label) {
case 0:
return (
b.trys.push([0, 2, , 3]),
V && (V(), (V = null), (e.loading = !1)),
(null == i ? void 0 : i.silent) || (e.loading = !0),
[
4,
r.getEnv(e).fetcher(
n,
t,
a.__assign(
{
autoAppend: !1,
cancelExecutor: function (e) {
return (V = e)
}
},
i
)
)
]
)
case 1:
return (
(l = b.sent()),
(V = null),
(u = null),
l.ok
? (u = l)
: ((d = g.buildApi(n, t)),
!1 !== o &&
s(
e.__('Form.loadOptionsFailed', {
reason: null !== (_ = null !== (m = null === (f = d.messages) || void 0 === f ? void 0 : f.failed) && void 0 !== m ? m : l.msg) && void 0 !== _ ? _ : i && i.errorMessage
})
),
(p = l.msg) || (p = 'status: '.concat(l.status)),
!(null == n ? void 0 : n.silent) &&
r
.getEnv(e)
.notify(
'error',
null !== (h = null === (y = d.messages) || void 0 === y ? void 0 : y.failed) && void 0 !== h ? h : e.errors.join('') || ''.concat(d.url, ': ').concat(p),
void 0 !== l.msgTimeout ? { closeButton: !0, timeout: l.msgTimeout } : void 0
)),
(e.loading = !1),
[2, u]
)
case 2:
return (
(c = b.sent()),
(v = r.getEnv(e)),
!r.isAlive(e) || e.disposed ? [2] : ((e.loading = !1), v.isCancel(c) || (console.error(c), !(null == n ? void 0 : n.silent) && v.notify('error', c.message)), [2])
)
case 3:
return [2]
}
})
}),
x = r.flow(function (n, t, i, r, o, l) {
var s, u, d, p, c, v, f, g, m
return a.__generator(this, function (h) {
switch (h.label) {
case 0:
return [4, F(n, t, i, l)]
case 1:
return (s = h.sent())
? (y(),
(e.validated = !1),
(u =
(null === (d = s.data) || void 0 === d ? void 0 : d.options) ||
(null === (p = s.data) || void 0 === p ? void 0 : p.items) ||
(null === (c = s.data) || void 0 === c ? void 0 : c.rows) ||
s.data ||
[]),
(u = A.normalizeOptions(u, void 0, e.valueField)),
e.enableSourcePagination &&
(e.pagination = a.__assign(a.__assign({}, e.pagination), {
page: parseInt(null === (v = s.data) || void 0 === v ? void 0 : v.page, 10) || 1,
total:
parseInt(null !== (g = null === (f = s.data) || void 0 === f ? void 0 : f.total) && void 0 !== g ? g : null === (m = s.data) || void 0 === m ? void 0 : m.count, 10) || 0
})),
(null == i ? void 0 : i.extendsOptions) &&
e.selectedOptions.length > 0 &&
e.selectedOptions.forEach(function (n) {
_.findTree(u, w.optionValueCompare(n, e.valueField || 'value'), { resolve: w.getOptionValueBindField(e.valueField), value: w.getOptionValue(n, e.valueField) }) || u.push(n)
}),
b(u, o, t),
s.data && void 0 !== s.data.value
? o && o(s.data.value, !1, !0)
: r &&
!e.selectFirst &&
e.selectedOptions.some(function (e) {
return e.__unmatched
}) &&
o &&
o('', !1, !0),
[2, s])
: [2, null]
}
})
})
var C,
z = r.flow(function (n, i, o) {
var l, s, u, d
return (
void 0 === o && (o = !0),
a.__generator(this, function (a) {
switch (a.label) {
case 0:
return (
t && (t(), (t = null)),
[
4,
r.getEnv(e).fetcher(n, i, {
cancelExecutor: function (e) {
return (t = e)
}
})
]
)
case 1:
return (
(l = a.sent()),
(t = null),
l
? 1 === (null == (s = (null === (u = l.data) || void 0 === u ? void 0 : u.items) || (null === (d = l.data) || void 0 === d ? void 0 : d.rows)) ? void 0 : s.length)
? [2, s[0]]
: I.default(l.data)
? [2, l.data]
: (!o && !(null == n ? void 0 : n.silent) && r.getEnv(e).notify('info', e.__('FormItem.autoFillLoadFailed')), [2])
: [2]
)
}
})
)
}),
D = r.flow(function (n, t, i, r, o) {
var l, s, u, d, p, c, v, f
return a.__generator(this, function (g) {
switch (g.label) {
case 0:
return Array.isArray(t)
? ((l = _.findTreeIndex(e.options, function (e) {
return e.leftOptions === t
})),
(s = _.findTreeIndex(t, function (e) {
return e === n
})),
(u = _.findTree(e.options, function (e) {
return e.leftOptions === t
})),
l && s && u
? (b(
_.spliceTree(
e.options,
l,
1,
a.__assign(a.__assign({}, u), { loading: !0, leftOptions: _.spliceTree(u.leftOptions, s, 1, a.__assign(a.__assign({}, n), { loading: !0 })) })
),
void 0,
r
),
[4, F(i, r, a.__assign(a.__assign({}, o), { silent: !0 }), !1)])
: [2])
: [2]
case 1:
return (d = g.sent())
? ((p = (null === (f = d.data) || void 0 === f ? void 0 : f.options) || d.data.items || d.data.rows || d.data || []),
(c = _.spliceTree(u.leftOptions, s, 1, a.__assign(a.__assign({}, n), { loading: !1, loaded: !0, children: p }))),
b(_.spliceTree(e.options, l, 1, a.__assign(a.__assign({}, u), { loading: !1, loaded: !0, children: p, leftOptions: c })), void 0, r),
Array.isArray(u.children) &&
((v = u.children.concat()),
_.flattenTree(c).forEach(function (e) {
_.findTree(
u.children,
function (n) {
return n.ref === e.value
},
{
resolve: function (e) {
return e.ref
},
value: e.value
}
) || v.push({ ref: e.value, defer: !0 })
}),
b(_.spliceTree(e.options, l, 1, a.__assign(a.__assign({}, u), { leftOptions: c, children: v })), void 0, r)),
[2, d])
: (b(
_.spliceTree(
e.options,
l,
1,
a.__assign(a.__assign({}, u), { loading: !1, error: !0, leftOptions: _.spliceTree(u.leftOptions, s, 1, a.__assign(a.__assign({}, n), { loading: !1, error: !0 })) })
),
void 0,
r
),
[2])
}
})
}),
j = r.flow(function (e, n, t, i, r) {
return a.__generator(this, function (a) {
switch (a.label) {
case 0:
return [4, D(e, n, t, i, r)]
case 1:
return [2, a.sent()]
}
})
}),
M = r.flow(function (n, t, i, r) {
var o, l, s, u, d, p, c, v
return a.__generator(this, function (f) {
switch (f.label) {
case 0:
return (
(o = e.labelField || 'label'),
(l = e.valueField || 'value'),
(s = _.findTreeIndex(e.options, function (e) {
return (
e === n ||
S.default(e, n, function (e, n) {
return (
null != (null == e ? void 0 : e[l]) &&
null != (null == n ? void 0 : n[l]) &&
(null == e ? void 0 : e[o]) === (null == n ? void 0 : n[o]) &&
(null == e ? void 0 : e[l]) === (null == n ? void 0 : n[l])
)
})
)
}))
? [3, 2]
: ((u = null === (c = e.options[0]) || void 0 === c ? void 0 : c.leftOptions), [4, D(n, u, t, i, r)])
)
case 1:
return [2, f.sent()]
case 2:
return b(_.spliceTree(e.options, s, 1, a.__assign(a.__assign({}, n), { loading: !0 })), void 0, i), [4, F(t, i, a.__assign(a.__assign({}, r), { silent: !0 }), !1)]
case 3:
return (d = f.sent())
? ((p = (null === (v = d.data) || void 0 === v ? void 0 : v.options) || d.data.items || d.data.rows || d.data || []),
b(_.spliceTree(e.options, s, 1, a.__assign(a.__assign({}, n), { loading: !1, loaded: !0, children: p })), void 0, i),
[2, d])
: (b(_.spliceTree(e.options, s, 1, a.__assign(a.__assign({}, n), { loading: !1, error: !0 })), void 0, i), [2])
}
})
}),
q = r.flow(function (n, t, i, r) {
var o, l, s, u, d, p, c, v, f, g
return a.__generator(this, function (i) {
switch (i.label) {
case 0:
;(o = new Map()), (i.label = 1)
case 1:
i.trys.push([1, 8, 9, 10]), (l = a.__values(n)), (s = l.next()), (i.label = 2)
case 2:
if (s.done) return [3, 7]
if ((u = s.value).length <= 1) return [3, 6]
;(d = function (n) {
var i, l, s, d, p, c
return a.__generator(this, function (v) {
switch (v.label) {
case 0:
return (
(i = e.options.concat()),
(l = u[n]),
o.has(l)
? [2, 'continue']
: (s = _.findTree(i, function (t, i, a) {
return a === n + 1 && w.optionValueCompare(l, e.valueField || 'value')(t)
})) && s.defer
? ((d = _.findTreeIndex(i, function (e) {
return e === s
})),
b(_.spliceTree(i, d, 1, a.__assign(a.__assign({}, s), { loading: !0 })), void 0, s),
[4, F(t, s, a.__assign(a.__assign({}, r), { silent: !0 }), !1)])
: [2, 'continue']
)
case 1:
return (
(p = v.sent()) || b(_.spliceTree(i, d, 1, a.__assign(a.__assign({}, s), { loading: !1, error: !0 })), void 0, s),
o.set(l, !0),
(c = (null === (g = p.data) || void 0 === g ? void 0 : g.options) || p.data.items || p.data.rows || p.data || []),
b(_.spliceTree(i, d, 1, a.__assign(a.__assign({}, s), { loading: !1, loaded: !0, children: c })), void 0, s),
[2]
)
}
})
}),
(p = 0),
(i.label = 3)
case 3:
return p < u.length - 1 ? [5, d(p)] : [3, 6]
case 4:
i.sent(), (i.label = 5)
case 5:
return p++, [3, 3]
case 6:
return (s = l.next()), [3, 2]
case 7:
return [3, 10]
case 8:
return (c = i.sent()), (v = { error: c }), [3, 10]
case 9:
try {
s && !s.done && (f = l.return) && f.call(l)
} finally {
if (v) throw v.error
}
return [7]
case 10:
return [2]
}
})
})
function N(n, t) {
var i
if (!e.options.length && void 0 === e.value)
return _.isArrayChildrenModified(e.filteredOptions, []) && (e.filteredOptions = []), void (_.isArrayChildrenModified(e.selectedOptions, []) && (e.selectedOptions = []))
var r = e.tmpValue,
o = e.valueField || 'value',
l = e.labelField || 'label',
s = Array.isArray(r)
? r.map(function (e) {
return e && e.hasOwnProperty(o) ? e[o] : e
})
: 'string' == typeof r
? r.split(e.delimiter || ',').map(function (e) {
return e.trim()
})
: void 0 === r
? []
: [r && r.hasOwnProperty(o) ? r[o] : r]
r && r.hasOwnProperty(l) && (s[0] = (((i = {})[l] = r[l]), (i[o] = r[o]), i))
var u = !1,
c = e.filteredOptions,
v = e.options
.filter(function (e) {
return (
!u && (e.visibleOn || e.hiddenOn || e.disabledOn) && (u = !0),
e.visibleOn ? !1 !== p.evalExpression(e.visibleOn, t) : e.hiddenOn ? !0 !== p.evalExpression(e.hiddenOn, t) : !1 !== e.visible && !0 !== e.hidden
)
})
.map(function (e, n) {
var i = p.evalExpression(e.disabledOn, t)
return e.disabledOn ? (c.length > n && c[n].disabled === i ? c[n] : a.__assign(a.__assign({}, e), { disabled: i })) : e
})
e.expressionsInOptions = u
var f = new Map(),
g = []
_.eachTree(v, function (e) {
var n = w.getOptionValue(e, o)
null != n && f.set(n, e), null != n && g.push(e)
})
var m = []
s.forEach(function (t, i) {
var a,
r,
s = w.getOptionValue(t, o)
if (f.get(s)) m.push(f.get(s))
else {
var u = E.default(g, w.optionValueCompare(t, o))
if (~u) m.push(g[u])
else {
var d = (s && s[i]) || t
if (!d || ('string' != typeof d && 'number' != typeof d)) d && e.extractValue && (((r = {})[o] = t), (r[l] = 'UnKnown'), (r.__unmatched = !0), (d = r))
else {
;((a = {})[o] = t), (a[l] = t), (a.__unmatched = !0), (d = a)
var p = n && P.default(n, w.optionValueCompare(t, o))
p && (d[l] = p[l])
}
d && m.push(d)
}
}
})
var y = e.form,
h = null == y ? void 0 : y.parentStore
if ((null == h ? void 0 : h.storeType) === d.ComboStore.name) {
var b = h.uniques.get(e.name),
O = []
b &&
b.items.forEach(function (n) {
e !== n &&
O.push.apply(
O,
a.__spreadArray(
[],
a.__read(
n.selectedOptions.map(function (e) {
return e && e.value
})
),
!1
)
)
}),
v.length &&
O.length &&
(v = _.mapTree(v, function (e) {
return ~O.indexOf(e.value) ? a.__assign(a.__assign({}, e), { disabled: !0 }) : e
}))
}
_.isArrayChildrenModified(e.selectedOptions, m) && (e.selectedOptions = m), _.isArrayChildrenModified(e.filteredOptions, v) && (e.filteredOptions = v)
}
return {
focus: function () {
e.isFocused = !0
},
blur: function () {
e.isFocused = !1
},
config: function (n) {
var t = n.name,
i = n.extraName,
r = n.required,
o = n.unique
n.value
var l = n.isValueSchemaExp,
s = n.rules,
d = n.messages,
p = n.delimiter,
v = n.multiple,
f = n.valueField,
g = n.labelField,
m = n.joinValues,
h = n.extractValue,
b = n.type,
O = n.id,
V = n.selectFirst,
F = n.autoFill,
A = n.clearValueOnHidden,
w = n.validateApi,
x = n.maxLength,
S = n.minLength,
T = n.validateOnChange,
E = n.label,
P = n.inputGroupControl,
C = n.pagination
'string' == typeof s && (s = u.str2rules(s)),
void 0 !== t && (e.name = t),
void 0 !== i && (e.extraName = i),
void 0 !== b && (e.type = b),
void 0 !== O && (e.itemId = O),
void 0 !== d && (e.messages = d),
void 0 !== r && (e.required = !!r),
void 0 !== o && (e.unique = !!o),
void 0 !== v && (e.multiple = !!v),
void 0 !== V && (e.selectFirst = !!V),
void 0 !== F && (e.autoFill = F),
void 0 !== m && (e.joinValues = !!m),
void 0 !== h && (e.extractValue = !!h),
void 0 !== p && (e.delimiter = p || ','),
void 0 !== f && (e.valueField = f || 'value'),
void 0 !== g && (e.labelField = g || 'label'),
void 0 !== A && (e.clearValueOnHidden = !!A),
void 0 !== w && (e.validateApi = w),
void 0 !== T && (e.validateOnChange = !!T),
'string' == typeof E && (e.label = E),
(e.isValueSchemaExp = !!l),
c.isObject(P) && null != (null == P ? void 0 : P.name) && (e.inputGroupControl = P),
C && c.isObject(C) && C.enable && (e.pagination = { enable: !0, page: (C.page && C.page) || 1, perPage: (C.perPage && C.perPage) || 10, total: 0 }),
(void 0 === s && void 0 === r && 'number' != typeof S && 'number' != typeof x) ||
((s = a.__assign(a.__assign({}, null != s ? s : e.rules), { isRequired: e.required || (null == s ? void 0 : s.isRequired) })),
~['input-text', 'textarea'].indexOf(e.type) && ('number' == typeof S && (s.minLength = S), 'number' == typeof x && (s.maxLength = x)),
_.isObjectShallowModified(s, e.rules) && ((e.rules = s), y('builtin'), (e.validated = !1)))
},
validate: l,
setError: s,
addError: m,
clearError: y,
setPagination: function (n) {
var t = n || {},
i = t.page,
r = t.perPage,
o = t.total
e.enableSourcePagination &&
(e.pagination = a.__assign(
a.__assign(a.__assign(a.__assign({}, e.pagination), null != i && 'number' == typeof i ? { page: i } : {}), null != r && 'number' == typeof r ? { perPage: r } : {}),
null != o && 'number' == typeof o ? { total: o } : {}
))
},
setOptions: b,
loadOptions: x,
loadOptionsFromDataScope: function (n, t, i) {
var r = v.resolveVariableAndFilter(n, t, '| raw')
return Array.isArray(r)
? ((r = A.normalizeOptions(r, void 0, e.valueField)),
e.enableSourcePagination &&
((e.pagination = a.__assign(
a.__assign(
a.__assign(a.__assign({}, e.pagination), (null == t ? void 0 : t.page) ? { page: null == t ? void 0 : t.page } : {}),
(null == t ? void 0 : t.perPage) ? { perPage: null == t ? void 0 : t.perPage } : {}
),
{ total: r.length }
)),
(r = r.slice((e.pagination.page - 1) * e.pagination.perPage, e.pagination.page * e.pagination.perPage))),
b(r, i, t),
r)
: []
},
deferLoadOptions: M,
deferLoadLeftOptions: j,
expandTreeOptions: q,
syncOptions: N,
setLoading: function (n) {
e.loading = n
},
setSubStore: function (e) {
C = e
},
getSubStore: function () {
return C
},
reset: function (n) {
void 0 === n && (n = !1),
(e.validated = !1),
C &&
'ComboStore' === C.storeType &&
C.forms.forEach(function (e) {
return e.reset(void 0, !1)
}),
!n && y()
},
resetValidationStatus: function (n) {
;(e.validated = !1), y()
},
openDialog: function (t, i, a) {
t.data ? (e.dialogData = f.dataMapping(t.data, i)) : (e.dialogData = i), (e.dialogSchema = t), (e.dialogOpen = !0), a && n.set(e.dialogData, a)
},
closeDialog: function (t, i) {
var a = n.get(e.dialogData)
;(e.dialogOpen = !1),
a &&
(n.delete(e.dialogData),
setTimeout(function () {
return a(t, i)
}, 200))
},
changeTmpValue: function (n, t) {
;(e.tmpValue = n), t && (e.changeMotivation = t)
},
changeEmitedValue: function (n) {
e.emitedValue = n
},
addSubFormItem: function (n) {
e.itemsRef.push(n.id)
},
removeSubFormItem: function (n) {
var t = e.itemsRef.findIndex(function (e) {
return e === n.id
})
~t && e.itemsRef.splice(t, 1)
},
loadAutoUpdateData: z,
setIsControlled: function (n) {
e.isControlled = !!n
},
init: r.flow(function () {
var n, t, o, l, s, u
return a.__generator(this, function (d) {
switch (d.label) {
case 0:
;(n = i.sort(function (e, n) {
return (e.__weight || 0) - (n.__weight || 0)
})),
(d.label = 1)
case 1:
d.trys.push([1, , 10, 11]), (d.label = 2)
case 2:
d.trys.push([2, 7, 8, 9]), (t = a.__values(n)), (o = t.next()), (d.label = 3)
case 3:
return o.done ? [3, 6] : [4, (0, o.value)(e)]
case 4:
d.sent(), (d.label = 5)
case 5:
return (o = t.next()), [3, 3]
case 6:
return [3, 9]
case 7:
return (l = d.sent()), (s = { error: l }), [3, 9]
case 8:
try {
o && !o.done && (u = t.return) && u.call(t)
} finally {
if (s) throw s.error
}
return [7]
case 9:
return [3, 11]
case 10:
return r.isAlive(e) && (e.inited = !0), [7]
case 11:
return [2]
}
})
}),
addInitHook: function (e, n) {
return (
void 0 === n && (n = 0),
(e = _.promisify(e)),
i.push(e),
(e.__weight = n),
function () {
var n = i.indexOf(e)
~n && i.splice(n, 1)
}
)
},
beforeDestroy: function () {
i.splice(0, i.length)
}
}
})
n.FormItemStore = j
}) /*!node_modules/amis-core/lib/store/pagination.js*/
amis.define('0ecf5fd', function (e, t, a, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('939b8bb'), e('68b98b9'), e('c3389ff'), e('8b081ba')
var i = e('bbe84d0'),
n = e('730a210')
e('0910768'), e('8b641b6')
var s = e('7db930a')
.iRendererStore.named('PaginationStore')
.props({ page: 1, perPage: 10, inputName: '', outputName: '', mode: 'normal', ellipsisPageGap: 5 })
.views(function (e) {
return {
get inputItems() {
var t = n.resolveVariable(e.inputName || 'items', e.data)
return Array.isArray(t) ? t : []
},
get locals() {
var t,
a = (e.page - 1) * e.perPage
return i.createObject(e.data, (((t = { currentPage: e.page, lastPage: this.lastPage })[e.outputName || 'items'] = this.inputItems.slice(a, a + e.perPage)), t))
},
get lastPage() {
return Math.ceil(this.inputItems.length / e.perPage)
}
}
})
.actions(function (e) {
return {
switchTo: function (t, a) {
;(e.page = t), 'number' == typeof a && (e.perPage = a)
}
}
})
t.PaginationStore = s
}) /*!node_modules/amis-core/lib/store/app.js*/
amis.define('3886906', function (e, a, t, i) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var r = e('68b98b9'),
n = e('668845d'),
c = e('939b8bb'),
s = e('3e2dd5e')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e')
var d = e('bbe84d0')
e('c3389ff'), e('0910768'), e('607aee2'), e('5c95135'), e('8b081ba'), e('a3bbeb2'), e('933bc12'), e('3f15357')
var f = e('575a22c')
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2'),
e('e913672'),
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var l = s.ServiceStore.named('AppStore')
.props({ pages: n.types.frozen(), activePage: n.types.frozen(), folded: !1, offScreen: !1 })
.views(function (e) {
return {
get navigations() {
return Array.isArray(e.pages)
? c.mapTree(e.pages, function (a) {
var t = c.isVisible(a, e.data)
return (
!1 !== t && a.path && !~a.path.indexOf('http') && ~a.path.indexOf(':') && (t = !1),
{
label: a.label,
icon: a.icon,
path: a.path,
children: a.children,
className: a.className,
visible: t,
badge: 'string' == typeof a.badge ? f.filter(a.badge, e.data) : a.badge,
badgeClassName: f.filter(a.badgeClassName, e.data)
}
)
})
: [{ label: e.__('App.navigation'), children: [] }]
},
get bcn() {
var a
return (null === (a = e.activePage) || void 0 === a ? void 0 : a.bcn) || []
},
get pageData() {
var a
return d.createObject(e.data, { params: (null === (a = e.activePage) || void 0 === a ? void 0 : a.params) || {} })
}
}
})
.actions(function (e) {
return {
toggleFolded: function () {
e.folded = !e.folded
},
toggleOffScreen: function () {
e.offScreen = !e.offScreen
},
setPages: function (a) {
if (a && !Array.isArray(a)) a = [a]
else if (!Array.isArray(a)) return
;(a = c.mapTree(a, function (e, a, t, i) {
var n = e.link || e.url
if (
(e.schema || e.schemaApi) &&
((n =
e.url ||
'/'.concat(
i
.map(function (e) {
return e.index
})
.concat(a)
.map(function (e) {
return 'page-'.concat(e + 1)
})
.join('/')
)),
n && '/' !== n[0])
) {
for (var s = '/', d = i.length; d > 0; ) {
var f = i[d - 1]
if (null == f ? void 0 : f.path) {
s = f.path + '/'
break
}
d--
}
n = s + n
}
return r.__assign(r.__assign({}, e), { index: a, id: e.id || c.guid(), label: e.label, icon: e.icon, path: n })
})),
(e.pages = a)
},
rewrite: function (a, t) {
var i = c.findTree(e.pages, function (e) {
return e.path === a
})
i && this.setActivePage(i, t)
},
setActivePage: function (a, t, i) {
var n
if ((null === (n = e.activePage) || void 0 === n ? void 0 : n.id) !== a.id) {
var s = []
if (
(c.findTree(e.pages, function (n, d, f, l) {
return (
n.id === a.id &&
((s = l
.filter(function (e) {
return e.path && e.label
})
.map(function (e) {
return r.__assign(r.__assign({}, e), { path: c.replaceUrlParams(e.path, i) })
})),
t.showFullBreadcrumbPath &&
(s = l.filter(function (e) {
return e.label
})),
s.push(r.__assign(r.__assign({}, n), { path: '' })),
e.__,
t.showBreadcrumbHomePath && '/' !== s[0].path && s.unshift({ label: e.__('App.home'), path: '/' }),
!0)
)
}),
(e.activePage = r.__assign(r.__assign({}, a), { params: i || {}, bcn: s })),
a.label && (document.title = a.label),
a.schema)
)
(e.schema = a.schema), (e.schemaKey = '' + Date.now())
else if (a.schemaApi) (e.schema = null), e.fetchSchema(a.schemaApi, e.activePage, { method: 'get' })
else {
if (a.redirect) return void t.jumpTo(a.redirect, void 0, e.data)
a.rewrite ? this.rewrite(a.rewrite, t) : ((e.schema = null), (e.schemaKey = ''))
}
}
},
updateActivePage: function (a) {
if (Array.isArray(e.pages)) {
var t,
i = c.findTree(e.pages, function (e) {
return !(!e.path || !(t = a.isCurrentUrl(e.path, e)))
})
if (i) this.setActivePage(i, a, 'object' == typeof t ? t.params : void 0)
else {
var r = c.findTree(e.pages, function (e) {
return e.isDefaultPage
})
r ? this.setActivePage(r, a) : (e.activePage = null)
}
}
}
}
})
a.AppStore = l
}) /*!node_modules/amis-core/lib/store/root.js*/
amis.define('3fc8322', function (e, t, r, c) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('68b98b9'),
n = e('668845d'),
o = e('939b8bb'),
d = e('3e2dd5e')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e')
var i = e('bbe84d0')
e('c3389ff'),
e('0910768'),
e('607aee2'),
e('5c95135'),
e('8b081ba'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('575a22c'),
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2'),
e('e913672'),
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var u = d.ServiceStore.named('RootStore')
.props({ runtimeError: n.types.frozen(), runtimeErrorStack: n.types.frozen(), query: n.types.frozen() })
.volatile(function (e) {
return { context: {} }
})
.views(function (e) {
return {
get downStream() {
var t = e.data
if (e.context || e.query) {
var r = i.extractObjectChain(t)
e.context && r.unshift(e.context), e.query && r.splice(r.length - 1, 0, a.__assign(a.__assign({}, e.query), { __query: e.query })), (t = i.createObjectFromChain(r))
}
return t
}
}
})
.actions(function (e) {
return {
updateContext: function (t) {
Object.assign(e.context, t)
},
setRuntimeError: function (t, r) {
;(e.runtimeError = t), (e.runtimeErrorStack = r)
},
updateLocation: function (t, r) {
var c = r ? r(t) : o.parseQuery(t)
o.isObjectShallowModified(c, e.query, !1) && (e.query = c)
}
}
})
t.RootStore = u
}) /*!node_modules/amis-core/lib/store/index.js*/
amis.define('96012e2', function (e, t, r, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('668845d'),
S = e('7db930a'),
a = e('3e2dd5e'),
i = e('9bf2913'),
d = e('afae96a'),
c = e('48f96dd'),
u = e('98ebec8'),
f = e('ebd77a8'),
s = e('0b463e6'),
g = e('c83dd99'),
l = e('0de7e2d'),
m = e('a533195'),
v = e('121d16c'),
b = e('821b8e4'),
p = e('0ecf5fd'),
R = e('3886906'),
y = e('3fc8322')
function C(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var T = C(l)
n.setLivelinessChecking('ignore')
var E = [a.ServiceStore, d.FormStore, i.ComboStore, c.CRUDStore, u.TableStore, f.TableStore2, s.ListStore, g.ModalStore, v.FormItemStore, p.PaginationStore, R.AppStore],
F = n.types
.model('RendererStore', { storeType: 'RendererStore' })
.views(function (e) {
return {
get fetcher() {
return n.getEnv(e).fetcher
},
get notify() {
return n.getEnv(e).notify
},
get isCancel() {
return n.getEnv(e).isCancel
},
get __() {
return n.getEnv(e).translate
},
getStoreById: function (e) {
return b.getStoreById(e)
},
get stores() {
return b.getStores()
}
}
})
.actions(function (e) {
return {
addStore: function (t) {
if (t.storeType === y.RootStore.name) return b.addStore(y.RootStore.create(t, n.getEnv(e)))
var r = T.default(E, function (e) {
return e.name === t.storeType
})
return b.addStore(r.create(t, n.getEnv(e)))
},
removeStore: function (e) {
b.removeStore(e)
}
}
})
;(t.iRendererStore = S.iRendererStore),
(t.ServiceStore = a.ServiceStore),
(t.ComboStore = i.ComboStore),
(t.FormStore = d.FormStore),
(t.CRUDStore = c.CRUDStore),
(t.TableStore = u.TableStore),
(t.TableStore2 = f.TableStore2),
(t.ListStore = s.ListStore),
(t.ModalStore = g.ModalStore),
(t.StoreNode = m.StoreNode),
(t.FormItemStore = v.FormItemStore),
(t.PaginationStore = p.PaginationStore),
(t.AppStore = R.AppStore),
(t.RegisterStore = function (e) {
E.push(e)
}),
(t.RendererStore = F)
}) /*!node_modules/amis-core/lib/utils/normalizeLink.js*/
amis.define('dff10cd', function (s, i, n, t) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
i.normalizeLink = function (s, i) {
void 0 === i && (i = window.location), (s = s || '') && '#' === s[0] ? (s = i.pathname + i.search + s) : s && '?' === s[0] && (s = i.pathname + s)
var n = s.indexOf('?'),
t = s.indexOf('#'),
e = s,
a = '',
r = i.hash
if (
(n < t
? ((e = ~n ? s.substring(0, n) : ~t ? s.substring(0, t) : s), (r = ~t ? s.substring(t) : i.hash), (a = ~n ? s.substring(n, ~t ? t : void 0) : ''))
: n > t && ((e = ~t ? s.substring(0, t) : ~n ? s.substring(0, n) : s), (r = ~t ? s.substring(t, ~n ? n : void 0) : i.hash), (a = ~n ? s.substring(n) : '')),
e)
) {
if ('/' != e[0] && !/^https?\:\/\//.test(e)) {
var o = i.pathname.split('/')
o.pop()
for (var u = void 0; (u = /^\.\.?\//.exec(e)); ) '../' === u[0] && o.pop(), (e = e.substring(u[0].length))
e = o.concat(e).join('/')
}
} else e = i.pathname
return e + (n < t ? a + r : r + a)
}
}) /*!node_modules/lodash/values.js*/
amis.define('ea5ad0c', function (n, e, a, c) {
var f = n('9025c61'),
i = n('0092f09')
a.exports = function (n) {
return null == n ? [] : f(n, i(n))
}
}) /*!node_modules/amis-core/lib/utils/renderer-event.js*/
amis.define('241d95b', function (e, n, t, r) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var a = e('68b98b9'),
i = e('e913672'),
o = e('3c9ad5f'),
u = e('939b8bb'),
c = e('bbe84d0'),
l = e('5f94728'),
s = e('1be4f4d'),
d = e('575a22c')
function v(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var f = v(l),
p = []
function b(e, n) {
var t = Object.defineProperties(
{
context: c.extendObject({ pristineData: n.data }, n),
type: e,
prevented: !1,
stoped: !1,
preventDefault: function () {
t.prevented = !0
},
stopPropagation: function () {
t.stoped = !0
},
get data() {
return t.context.data
},
get pristineData() {
return t.context.pristineData
},
setData: function (e) {
t.context.data = e
},
pendingPromise: [],
allDone: function () {
return Promise.all(t.pendingPromise)
}
},
{
context: { enumerable: !1 },
pristineData: { enumerable: !1 },
preventDefault: { enumerable: !1 },
stopPropagation: { enumerable: !1 },
setData: { enumerable: !1 },
pendingPromise: { enumerable: !1 },
allDone: { enumerable: !1 }
}
)
return t
}
var h = function (e) {
var n, t, r, i, o
if (e) {
var u = e.props.$schema.onEvent
if (u) {
var c = function (n) {
var t = p.find(function (t) {
return t.renderer === e && t.type === n
})
;(null == t ? void 0 : t.executing) &&
(null === (i = null === (r = null == t ? void 0 : t.debounceInstance) || void 0 === r ? void 0 : r.cancel) || void 0 === i || i.call(r),
(p = p.filter(function (e) {
return !(e.renderer === t.renderer && e.type === t.type)
})),
t.actions.length && p.push({ renderer: e, type: n, debounce: t.debounce || null, track: u[n].track || null, weight: t.weight || 0, actions: t.actions })),
!t &&
(null === (o = u[n].actions) || void 0 === o ? void 0 : o.length) &&
p.push({ renderer: e, type: n, debounce: u[n].debounce || null, track: u[n].track || null, weight: u[n].weight || 0, actions: u[n].actions })
}
try {
for (var l = a.__values(Object.keys(u)), s = l.next(); !s.done; s = l.next()) {
c(s.value)
}
} catch (e) {
n = { error: e }
} finally {
try {
s && !s.done && (t = l.return) && t.call(l)
} finally {
if (n) throw n.error
}
}
return function (n) {
p = p.filter(function (t) {
return t.renderer !== e || void 0 === n || t.type !== n
})
}
}
}
}
;(n.bindEvent = h),
(n.createRendererEvent = b),
(n.dispatchEvent = function (e, n, t, r, o) {
var u, c, l, s, d, v, g, _, m, y
return a.__awaiter(this, void 0, void 0, function () {
var w,
x,
E,
D,
P,
k,
j,
O,
T,
I,
A,
W,
B,
F = this
return a.__generator(this, function (M) {
switch (M.label) {
case 0:
if (
((w = null),
(x = 'string' == typeof e ? e : e.type),
null === (l = null === (c = null === (u = null == n ? void 0 : n.props) || void 0 === u ? void 0 : u.env) || void 0 === c ? void 0 : c.beforeDispatchEvent) ||
void 0 === l ||
l.call(c, e, n, t, r, o),
o && (null === (d = (s = n.props).onBroadcast) || void 0 === d || d.call(s, e, o, r)),
!o)
) {
if (!(null === (g = null === (v = null == n ? void 0 : n.props) || void 0 === v ? void 0 : v.onEvent) || void 0 === g ? void 0 : g[x])) return [2, Promise.resolve()]
w = h(n)
}
if (!p.length) return [2, Promise.resolve()]
;(E = o || b(x, { env: null === (_ = null == n ? void 0 : n.props) || void 0 === _ ? void 0 : _.env, nativeEvent: e, data: r, scoped: t })),
(D = p
.filter(function (e) {
return e.type === x && (!!o || e.renderer === n)
})
.sort(function (e, n) {
return n.weight - e.weight
})),
(P = 0),
(k = function () {
++P === D.length && (null == w || w(x))
}),
(j = function (e) {
var t, r, o, u, c, l, s, d, v, b, h, g, _
return a.__generator(this, function (w) {
switch (w.label) {
case 0:
return (
(t = (null == e ? void 0 : e.debounce) || {}),
(r = t.wait),
(o = void 0 === r ? 100 : r),
(u = t.trailing),
(c = void 0 === u || u),
(l = t.leading),
(s = void 0 !== l && l),
(d = t.maxWait),
(v = void 0 === d ? 1e4 : d),
(null == e ? void 0 : e.debounce)
? ((b = f.default(
function () {
return a.__awaiter(F, void 0, void 0, function () {
return a.__generator(this, function (n) {
switch (n.label) {
case 0:
return [4, i.runActions(e.actions, e.renderer, E)]
case 1:
return n.sent(), k(), [2]
}
})
})
},
o,
{ trailing: c, leading: s, maxWait: v }
)),
p.forEach(function (n) {
n.renderer === e.renderer && e.type === n.type && ((n.executing = !0), (n.debounceInstance = b))
}),
b(),
[3, 3])
: [3, 1]
)
case 1:
return [4, i.runActions(e.actions, e.renderer, E)]
case 2:
w.sent(), k(), (w.label = 3)
case 3:
return (
(null == e ? void 0 : e.track) &&
((h = e.track),
(g = h.id),
(_ = h.name),
null === (y = null === (m = null == n ? void 0 : n.props) || void 0 === m ? void 0 : m.env) ||
void 0 === y ||
y.tracker({ eventType: e.type, eventData: { trackId: g, trackName: _ } })),
E.stoped ? [2, 'break'] : [2]
)
}
})
}),
(M.label = 1)
case 1:
M.trys.push([1, 6, 7, 8]), (O = a.__values(D)), (T = O.next()), (M.label = 2)
case 2:
return T.done ? [3, 5] : ((I = T.value), [5, j(I)])
case 3:
if ('break' === M.sent()) return [3, 5]
M.label = 4
case 4:
return (T = O.next()), [3, 2]
case 5:
return [3, 8]
case 6:
return (A = M.sent()), (W = { error: A }), [3, 8]
case 7:
try {
T && !T.done && (B = O.return) && B.call(O)
} finally {
if (W) throw W.error
}
return [7]
case 8:
return [2, Promise.resolve(E)]
}
})
})
}),
(n.getMatchedEventTargets = function (e, n, t, r, i) {
return a.__awaiter(this, void 0, void 0, function () {
var l,
v,
f,
p,
b,
h = this
return a.__generator(this, function (g) {
switch (g.label) {
case 0:
return (l = []), 'number' != typeof t ? [3, 1] : ((v = e[t]) && l.push(v), [3, 9])
case 1:
return 'string' != typeof t ? [3, 5] : o.isExpression(t) ? [4, s.resolveVariableAndFilterForAsync(t, n)] : [3, 3]
case 2:
return (f = g.sent()), [3, 4]
case 3:
;(f = t), (g.label = 4)
case 4:
return (
(t = f).split(',').forEach(function (n) {
if ((n = n.trim())) {
var t = n.split('.').map(function (e) {
return parseInt(e, 10)
}),
r = u.getTree(e, t)
r && l.push(r)
}
}),
[3, 9]
)
case 5:
return r
? ((p = []),
u.eachTree(e, function (e) {
var t = e.storeType ? e.data : e
p.push(function () {
return a.__awaiter(h, void 0, void 0, function () {
return a.__generator(this, function (a) {
switch (a.label) {
case 0:
return [4, d.evalExpressionWithConditionBuilder(r, c.createObject(n, t))]
case 1:
return a.sent() && l.push(e), [2]
}
})
})
})
}),
[
4,
Promise.all(
p.map(function (e) {
return e()
})
)
])
: [3, 7]
case 6:
return g.sent(), [3, 9]
case 7:
return i
? ((b = []),
u.eachTree(e, function (e, t) {
var r = e.storeType ? e.data : e
b.push(function () {
return a.__awaiter(h, void 0, void 0, function () {
return a.__generator(this, function (a) {
return d.evalExpression(i, c.createObject(n, { record: r, rowIndex: t, item: r, index: t, indexPath: e.path })) && l.push(e), [2]
})
})
})
}),
[
4,
Promise.all(
b.map(function (e) {
return e()
})
)
])
: [3, 9]
case 8:
g.sent(), (g.label = 9)
case 9:
return [2, l]
}
})
})
}),
(n.getRendererEventListeners = function () {
return p
}),
(n.resolveEventData = function (e, n, t) {
var r, i
return (
void 0 === t && (t = 'value'),
c.createObject(e.data, e.name && t ? a.__assign(a.__assign({}, n), (((r = {})[e.name] = n[t]), (r.__rendererData = a.__assign(a.__assign({}, e.data), (((i = {})[e.name] = n[t]), i))), r)) : n)
)
})
}) /*!node_modules/amis-core/lib/actions/LoopAction.js*/
amis.define('9f6ca76', function (e, r, t, a) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var o = e('68b98b9')
e('939b8bb')
var n = e('e913672')
e('c3389ff'), e('8b081ba')
var s = e('bbe84d0'),
l = e('730a210')
e('0910768'), e('8b641b6')
var u = (function () {
function e() {}
return (
(e.prototype.run = function (e, r, t, a) {
var u, c
return o.__awaiter(this, void 0, void 0, function () {
var i, b, p, d, f, v, y, h, _, A, S, L, g, N, w
return o.__generator(this, function (O) {
switch (O.label) {
case 0:
return 'string' != typeof (i = null === (u = e.args) || void 0 === u ? void 0 : u.loopName)
? (console.error('loopName \u5fc5\u987b\u662f\u5b57\u7b26\u4e32\u7c7b\u578b'), [2])
: (b = l.resolveVariable(i, a) || [])
? [3, 1]
: (console.error('\u6ca1\u6709\u627e\u5230\u6570\u636e '.concat(i)), [3, 18])
case 1:
return Array.isArray(b) ? [3, 2] : (console.error(''.concat(i, ' \u6570\u636e\u4e0d\u662f\u6570\u7ec4')), [3, 18])
case 2:
if (!(null === (c = e.children) || void 0 === c ? void 0 : c.length)) return [3, 18]
;(p = t.data), (O.label = 3)
case 3:
O.trys.push([3, 15, 16, 17]), (d = o.__values(b)), (f = d.next()), (O.label = 4)
case 4:
if (f.done) return [3, 14]
;(v = f.value), (r.loopStatus = n.LoopStatus.NORMAL), t.setData(s.createObject(t.data, v)), (O.label = 5)
case 5:
O.trys.push([5, 10, 11, 12]), (N = void 0), (y = o.__values(e.children)), (h = y.next()), (O.label = 6)
case 6:
return h.done ? [3, 9] : ((_ = h.value), r.loopStatus === n.LoopStatus.CONTINUE ? [3, 8] : [4, n.runActions(_, r, t)])
case 7:
if ((O.sent(), r.loopStatus === n.LoopStatus.BREAK || t.stoped)) return t.setData(p), t.stopPropagation(), [3, 9]
O.label = 8
case 8:
return (h = y.next()), [3, 6]
case 9:
return [3, 12]
case 10:
return (A = O.sent()), (N = { error: A }), [3, 12]
case 11:
try {
h && !h.done && (w = y.return) && w.call(y)
} finally {
if (N) throw N.error
}
return [7]
case 12:
if (t.stoped) return t.setData(p), [3, 14]
O.label = 13
case 13:
return (f = d.next()), [3, 4]
case 14:
return [3, 17]
case 15:
return (S = O.sent()), (L = { error: S }), [3, 17]
case 16:
try {
f && !f.done && (g = d.return) && g.call(d)
} finally {
if (L) throw L.error
}
return [7]
case 17:
;(r.loopStatus = n.LoopStatus.NORMAL), t.setData(p), (O.label = 18)
case 18:
return [2]
}
})
})
}),
e
)
})()
n.registerAction('loop', new u()), (r.LoopAction = u)
}) /*!node_modules/amis-core/lib/actions/BreakAction.js*/
amis.define('53ab1c9', function (t, e, n, r) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var o = t('68b98b9'),
i = t('e913672'),
u = (function () {
function t() {}
return (
(t.prototype.run = function (t, e, n) {
return o.__awaiter(this, void 0, void 0, function () {
return o.__generator(this, function (t) {
return (e.loopStatus = i.LoopStatus.BREAK), [2]
})
})
}),
t
)
})()
i.registerAction('break', new u()), (e.BreakAction = u)
}) /*!node_modules/amis-core/lib/actions/ContinueAction.js*/
amis.define('389b046', function (t, n, e, o) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var i = t('68b98b9'),
r = t('e913672'),
u = (function () {
function t() {}
return (
(t.prototype.run = function (t, n, e) {
return i.__awaiter(this, void 0, void 0, function () {
return i.__generator(this, function (t) {
return (n.loopStatus = r.LoopStatus.CONTINUE), [2]
})
})
}),
t
)
})()
r.registerAction('continue', new u()), (n.ContinueAction = u)
}) /*!node_modules/amis-core/lib/actions/SwitchAction.js*/
amis.define('63cb51c', function (e, r, n, t) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var i = e('68b98b9'),
s = e('575a22c'),
c = e('e913672'),
u = (function () {
function e() {}
return (
(e.prototype.run = function (e, r, n, t) {
return i.__awaiter(this, void 0, void 0, function () {
var u, o, a, l, d, f
return i.__generator(this, function (h) {
switch (h.label) {
case 0:
h.trys.push([0, 6, 7, 8]), (u = i.__values(e.children || [])), (o = u.next()), (h.label = 1)
case 1:
return o.done ? [3, 5] : (a = o.value).expression ? [4, s.evalExpressionWithConditionBuilder(a.expression, t)] : [3, 4]
case 2:
return h.sent() ? [4, c.runActions(a, r, n)] : [3, 4]
case 3:
return h.sent(), [3, 5]
case 4:
return (o = u.next()), [3, 1]
case 5:
return [3, 8]
case 6:
return (l = h.sent()), (d = { error: l }), [3, 8]
case 7:
try {
o && !o.done && (f = u.return) && f.call(u)
} finally {
if (d) throw d.error
}
return [7]
case 8:
return [2]
}
})
})
}),
e
)
})()
c.registerAction('switch', new u()), (r.SwitchAction = u)
}) /*!node_modules/amis-core/lib/actions/ParallelAction.js*/
amis.define('5b9523a', function (e, n, r, t) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var i = e('68b98b9'),
a = e('e913672'),
c = (function () {
function e() {}
return (
(e.prototype.run = function (e, n, r) {
return i.__awaiter(this, void 0, void 0, function () {
var t
return i.__generator(this, function (i) {
switch (i.label) {
case 0:
return e.children && e.children.length
? ((t = e.children.map(function (e) {
return a.runActions(e, n, r)
})),
[4, Promise.all(t)])
: [3, 2]
case 1:
i.sent(), (i.label = 2)
case 2:
return [2]
}
})
})
}),
e
)
})()
a.registerAction('parallel', new c()), (n.ParallelAction = c)
}) /*!node_modules/amis-core/lib/actions/CustomAction.js*/
amis.define('e545b9c', function (e, c, n, t) {
'use strict'
Object.defineProperty(c, '__esModule', { value: !0 })
var a = e('68b98b9'),
r = e('d9d4e46')
e('8dd52de'),
e('22a4ae5'),
e('5e0783e'),
e('0910768'),
e('c3389ff'),
e('607aee2'),
e('5c95135'),
e('8b081ba'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('575a22c'),
e('939b8bb'),
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2')
var i = e('e913672')
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var d = (function () {
function e() {}
return (
(e.prototype.run = function (e, c, n) {
var t, d
return a.__awaiter(this, void 0, void 0, function () {
var o
return a.__generator(this, function (a) {
switch (a.label) {
case 0:
return (
'string' == typeof (o = null !== (d = null === (t = e.args) || void 0 === t ? void 0 : t.script) && void 0 !== d ? d : e.script) &&
(o = r.str2AsyncFunction(o, 'context', 'doAction', 'event')),
[
4,
null == o
? void 0
: o.call(
null,
c,
function (e) {
return i.runActions(e, c, n)
},
n,
e
)
]
)
case 1:
return a.sent(), [2]
}
})
})
}),
e
)
})()
i.registerAction('custom', new d()), (c.CustomAction = d)
}) /*!node_modules/amis-core/lib/actions/BroadcastAction.js*/
amis.define('b72176a', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9')
e('939b8bb')
var o = e('241d95b'),
i = e('e913672'),
c = e('bbe84d0'),
d = (function () {
function e() {}
return (
(e.prototype.run = function (e, t, n) {
var a, i, d
return r.__awaiter(this, void 0, void 0, function () {
return r.__generator(this, function (r) {
switch (r.label) {
case 0:
return (null === (a = e.args) || void 0 === a ? void 0 : a.eventName) || e.eventName
? (n.setData(c.createObject(n.data, null !== (i = e.data) && void 0 !== i ? i : {})),
[4, o.dispatchEvent((null === (d = e.args) || void 0 === d ? void 0 : d.eventName) || e.eventName, t, n.context.scoped, e.data, n)])
: (console.error('eventName \u672a\u5b9a\u4e49\uff0c\u8bf7\u5b9a\u4e49\u4e8b\u4ef6\u540d\u79f0'), [2])
case 1:
return [2, r.sent()]
}
})
})
}),
e
)
})()
i.registerAction('broadcast', new d()), (t.BroadcastAction = d)
}) /*!node_modules/amis-core/lib/actions/CmptAction.js*/
amis.define('faee115', function (e, o, t, a) {
'use strict'
Object.defineProperty(o, '__esModule', { value: !0 })
var n = e('68b98b9')
e('939b8bb')
var r = e('e913672'),
l = e('326ef36'),
i = e('bbe84d0'),
d = (function () {
function e() {}
return (
(e.prototype.run = function (e, o, t) {
var a, r, d, u, v, s, c, p, m, f, y, g, b, I, V, T, _, h, D, j, E, O, R, w, C, N, x, A, B
return n.__awaiter(this, void 0, void 0, function () {
var M, F, S, P, k, q, z, G, H, J, K, L, Q, U, W, X, Y
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return (
(M = e.componentId || e.componentName),
(F = e.dataMergeMode || 'merge'),
(S = null === (a = e.args) || void 0 === a ? void 0 : a.path),
'setValue' === e.actionType && S && 'string' == typeof S
? (P = null === (d = null === (r = null == t ? void 0 : t.context) || void 0 === r ? void 0 : r.env) || void 0 === d ? void 0 : d.beforeSetData) && 'function' == typeof P
? [4, P(o, e, t)]
: [3, 2]
: [3, 2]
)
case 1:
if (!1 === n.sent()) return [2]
n.label = 2
case 2:
if (((k = M ? (null === (u = t.context.scoped) || void 0 === u ? void 0 : u[e.componentId ? 'getComponentById' : 'getComponentByName'](M)) : o), M && !k)) {
if (
((q = '\u5c1d\u8bd5\u6267\u884c\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u76ee\u6807\u7ec4\u4ef6\u52a8\u4f5c\uff08'.concat(
M,
'\uff09\uff0c\u8bf7\u68c0\u67e5\u76ee\u6807\u7ec4\u4ef6\u975e\u9690\u85cf\u72b6\u6001\uff0c\u4e14\u6b63\u786e\u6307\u5b9a\u4e86componentId\u6216componentName'
)),
!1 === e.ignoreError)
)
throw Error(q)
console.warn(q)
}
if ('setValue' === e.actionType)
return (null == k ? void 0 : k.setData)
? [
2,
null == k
? void 0
: k.setData(
null === (v = e.args) || void 0 === v ? void 0 : v.value,
'override' === F,
null === (s = e.args) || void 0 === s ? void 0 : s.index,
null === (c = e.args) || void 0 === c ? void 0 : c.condition
)
]
: [2, null === (m = null == k ? void 0 : (p = k.props).onChange) || void 0 === m ? void 0 : m.call(p, null === (f = e.args) || void 0 === f ? void 0 : f.value)]
if ('reload' === e.actionType) return [2, null === (y = null == k ? void 0 : k.reload) || void 0 === y ? void 0 : y.call(k, void 0, e.data, void 0, void 0, 'override' === F, e.args)]
if (
'validateFormItem' !== e.actionType ||
!(null === (b = l.getRendererByName(null === (g = null == k ? void 0 : k.props) || void 0 === g ? void 0 : g.type)) || void 0 === b ? void 0 : b.isFormItem)
)
return [3, 7]
;(z = (null == k ? void 0 : k.props) || {}), (G = z.dispatchEvent), (H = z.data), (n.label = 3)
case 3:
return n.trys.push([3, 5, , 6]), [4, null === (V = null == k ? void 0 : (I = k.props).onValidate) || void 0 === V ? void 0 : V.call(I)]
case 4:
return (
n.sent()
? (t.setData(
i.createObject(
t.data,
(((Q = {})[e.outputVar || ''.concat(e.actionType, 'Result')] = {
error: '',
value: null === (_ = null === (T = null == k ? void 0 : k.props) || void 0 === T ? void 0 : T.formItem) || void 0 === _ ? void 0 : _.value
}),
Q)
)
),
G && G('formItemValidateSucc', H))
: (t.setData(
i.createObject(
t.data,
(((U = {})[e.outputVar || ''.concat(e.actionType, 'Result')] = {
error: ((null === (D = null === (h = null == k ? void 0 : k.props) || void 0 === h ? void 0 : h.formItem) || void 0 === D ? void 0 : D.errors) || []).join(','),
value: null === (E = null === (j = null == k ? void 0 : k.props) || void 0 === j ? void 0 : j.formItem) || void 0 === E ? void 0 : E.value
}),
U)
)
),
G && G('formItemValidateError', H)),
[3, 6]
)
case 5:
return (
(J = n.sent()),
t.setData(
i.createObject(
t.data,
(((W = {})[e.outputVar || ''.concat(e.actionType, 'Result')] = {
error: J.message || '\u672a\u77e5\u9519\u8bef',
value: null === (R = null === (O = null == k ? void 0 : k.props) || void 0 === O ? void 0 : O.formItem) || void 0 === R ? void 0 : R.value
}),
W)
)
),
G && G('formItemValidateError', H),
[3, 6]
)
case 6:
return [2]
case 7:
return n.trys.push([7, 9, , 10]), [4, null === (w = null == k ? void 0 : k.doAction) || void 0 === w ? void 0 : w.call(k, e, t.data, !0, e.args)]
case 8:
return (
(K = n.sent()),
['validate', 'submit'].includes(e.actionType) &&
t.setData(
i.createObject(
t.data,
(((X = {})[e.outputVar || ''.concat(e.actionType, 'Result')] = {
error: '',
payload:
null !== (C = null == K ? void 0 : K.__payload) && void 0 !== C
? C
: null === (x = null === (N = null == k ? void 0 : k.props) || void 0 === N ? void 0 : N.store) || void 0 === x
? void 0
: x.data,
responseData: null == K ? void 0 : K.__response
}),
X)
)
),
[2, K]
)
case 9:
return (
(L = n.sent()),
t.setData(
i.createObject(
t.data,
(((Y = {})[e.outputVar || ''.concat(e.actionType, 'Result')] = {
error: L.message,
errors: 'ValidateError' === L.name ? L.detail : L,
payload: null === (B = null === (A = null == k ? void 0 : k.props) || void 0 === A ? void 0 : A.store) || void 0 === B ? void 0 : B.data
}),
Y)
)
),
[3, 10]
)
case 10:
return [2]
}
})
})
}),
e
)
})()
r.registerAction('component', new d()), (o.CmptAction = d)
}) /*!node_modules/amis-core/lib/actions/StatusAction.js*/
amis.define('9a01b63', function (t, i, e, n) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
var o = t('68b98b9'),
s = t('e913672'),
a = (function () {
function t() {}
return (
(t.prototype.run = function (t, i, e) {
var n, s
return o.__awaiter(this, void 0, void 0, function () {
var e, a, r
return o.__generator(this, function (o) {
return (
(e = t.componentId || t.componentName),
['show', 'hidden', 'visibility'].includes(t.actionType)
? ((a = 'visibility' === t.actionType ? (null === (n = t.args) || void 0 === n ? void 0 : n.value) : 'show' === t.actionType), [2, i.props.statusStore.setVisible(e, a)])
: ['static', 'nonstatic'].includes(t.actionType)
? [2, i.props.statusStore.setStatic(e, 'static' === t.actionType)]
: ['enabled', 'disabled', 'usability'].includes(t.actionType)
? ((r = 'usability' === t.actionType ? !(null === (s = t.args) || void 0 === s ? void 0 : s.value) : 'disabled' === t.actionType), [2, i.props.statusStore.setDisable(e, r)])
: [2]
)
})
})
}),
t
)
})()
s.registerAction('status', new a()), (i.StatusAction = a)
}) /*!node_modules/amis-core/lib/actions/AjaxAction.js*/
amis.define('daa1278', function (e, i, o, n) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
var s = e('68b98b9'),
t = e('d9d4e46'),
a = e('3f15357'),
r = e('939b8bb'),
l = e('575a22c'),
d = e('e913672'),
u = e('bbe84d0'),
v = (function () {
function e(e) {
void 0 === e && (e = 'ajax'), (this.fetcherType = e)
}
return (
(e.prototype.run = function (e, i, o) {
var n, d, v, c, p, f, g, m, _, h, b, w, y
return s.__awaiter(this, void 0, void 0, function () {
var i, T, x, A, E, j, D, O, B
return s.__generator(this, function (M) {
switch (M.label) {
case 0:
if (!(null === (n = o.context.env) || void 0 === n ? void 0 : n.fetcher)) throw new Error('env.fetcher is required!')
if (!e.api) throw new Error('api is required!')
return (
'download' === this.fetcherType && 'download' === e.actionType && e.api && (e.api.responseType = 'blob'),
(i = o.context.env),
(T = (null === (d = null == e ? void 0 : e.options) || void 0 === d ? void 0 : d.silent) || (null == e ? void 0 : e.api).silent),
(x = null === (v = null == e ? void 0 : e.api) || void 0 === v ? void 0 : v.messages),
void 0 === (A = t.normalizeApi(e.api)).sendOn ? [3, 2] : [4, l.evalExpressionWithConditionBuilder(A.sendOn, null !== (c = e.data) && void 0 !== c ? c : {}, !1)]
)
case 1:
if (!M.sent()) return [2]
M.label = 2
case 2:
null == (null == A ? void 0 : A.data) && (A = s.__assign(s.__assign({}, A), { data: {} })), (M.label = 3)
case 3:
return M.trys.push([3, 5, , 6]), [4, i.fetcher(A, null !== (p = e.data) && void 0 !== p ? p : {}, null !== (f = null == e ? void 0 : e.options) && void 0 !== f ? f : {})]
case 4:
if (
((O = M.sent()),
(E = !r.isEmpty(O.data) || O.ok ? t.normalizeApiResponseData(O.data) : null),
o.setData(
u.createObject(
o.data,
s.__assign(
s.__assign({}, E),
(((B = { responseData: E })[e.outputVar || 'responseResult'] = s.__assign(s.__assign({}, E), { responseData: E, responseStatus: O.status, responseMsg: O.msg })), B)
)
)
),
!T)
) {
if (!O.ok)
throw new a.ServerError(
null !== (_ = null !== (g = null == x ? void 0 : x.failed) && void 0 !== g ? g : null === (m = e.messages) || void 0 === m ? void 0 : m.failed) && void 0 !== _ ? _ : O.msg,
O
)
;(j =
null !==
(y =
null !== (w = null !== (h = null == x ? void 0 : x.success) && void 0 !== h ? h : null === (b = e.messages) || void 0 === b ? void 0 : b.success) && void 0 !== w
? w
: O.msg) && void 0 !== y
? y
: O.defaultMsg) && i.notify('success', j, void 0 !== O.msgTimeout ? { closeButton: !0, timeout: O.msgTimeout } : void 0)
}
return [2, O.data]
case 5:
return (
(D = M.sent()),
T ||
('ServerError' === D.type
? ((O = D.response), i.notify('error', D.message, void 0 !== O.msgTimeout ? { closeButton: !0, timeout: O.msgTimeout } : void 0))
: i.notify('error', D.message)),
[3, 6]
)
case 6:
return [2]
}
})
})
}),
e
)
})()
d.registerAction('ajax', new v()), d.registerAction('download', new v('download')), (i.AjaxAction = v)
}) /*!node_modules/amis-core/lib/actions/CopyAction.js*/
amis.define('1dd4948', function (n, o, t, e) {
'use strict'
Object.defineProperty(o, '__esModule', { value: !0 })
var i = n('68b98b9'),
r = n('e913672'),
u = (function () {
function n() {}
return (
(n.prototype.run = function (n, o, t) {
var e, r, u, c, d, v
return i.__awaiter(this, void 0, void 0, function () {
return i.__generator(this, function (o) {
if (!(null === (e = t.context.env) || void 0 === e ? void 0 : e.copy)) throw new Error('env.copy is required!')
return (
(null === (r = n.args) || void 0 === r ? void 0 : r.content) &&
(null === (c = null === (u = t.context.env) || void 0 === u ? void 0 : u.copy) ||
void 0 === c ||
c.call(u, n.args.content, { format: null !== (v = null === (d = n.args) || void 0 === d ? void 0 : d.copyFormat) && void 0 !== v ? v : 'text/html' })),
[2]
)
})
})
}),
n
)
})()
r.registerAction('copy', new u()), (o.CopyAction = u)
}) /*!node_modules/amis-core/lib/actions/DialogAction.js*/
amis.define('890b724', function (i, n, o, e) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var a = i('68b98b9')
i('d9d4e46'), i('8dd52de'), i('22a4ae5'), i('5e0783e')
var t = i('bbe84d0')
i('c3389ff'), i('0910768'), i('607aee2'), i('5c95135'), i('8b081ba'), i('a3bbeb2'), i('933bc12'), i('3f15357')
var l = i('575a22c')
i('939b8bb'), i('8b641b6'), i('e98f234'), i('6175dcb'), i('a290f81'), i('cde5cad'), i('0dc59d3'), i('67e77ca'), i('37efca2')
var d = i('e913672')
i('5f94728'),
i('1feaebc'),
i('ac704b9'),
i('c85b9d6'),
i('1e5c4ba'),
i('d2a103e'),
i('90272dd'),
i('8834362'),
i('7d5c8a5'),
i('d837406'),
i('1c23cc0'),
i('a08e932'),
i('6baf255'),
i('2fb8d9c'),
i('9f4cfa3'),
i('014d724'),
i('30f4e61'),
i('d823824')
var r = (function () {
function i() {}
return (
(i.prototype.run = function (i, n, o) {
var e, l
return a.__awaiter(this, void 0, void 0, function () {
var d, r, c, u, v
return a.__generator(this, function (a) {
switch (a.label) {
case 0:
return void 0 !== i.$$id
? [2]
: ((d = n.handleAction
? n.handleAction(o, { actionType: 'dialog', dialog: i.dialog, reload: 'none', data: i.rawData }, i.data)
: null === (l = (e = n.props).onAction) || void 0 === l
? void 0
: l.call(e, o, { actionType: 'dialog', dialog: i.dialog, reload: 'none', data: i.rawData }, i.data)),
o.pendingPromise.push(d),
i.waitForAction ? [4, d] : [3, 2])
case 1:
;(r = a.sent()), (c = r.confirmed), (u = r.value), o.setData(t.extendObject(o.data, (((v = {})[i.outputVar || 'dialogResponse'] = { confirmed: c, value: u }), v))), (a.label = 2)
case 2:
return [2]
}
})
})
}),
i
)
})(),
c = (function () {
function i() {}
return (
(i.prototype.run = function (i, n, o) {
var e, t
return a.__awaiter(this, void 0, void 0, function () {
return a.__generator(this, function (l) {
return (
i.componentId
? o.context.scoped.closeById(i.componentId)
: null === (t = (e = n.props).onAction) || void 0 === t || t.call(e, o, a.__assign(a.__assign({}, i), { actionType: 'close' }), i.data),
[2]
)
})
})
}),
i
)
})(),
u = (function () {
function i() {}
return (
(i.prototype.run = function (i, n, o) {
var e, t, d, r, c, u, v, s, f, g
return a.__awaiter(this, void 0, void 0, function () {
return a.__generator(this, function (n) {
return (
null === (t = (e = o.context.env).alert) ||
void 0 === t ||
t.call(
e,
null !== (r = l.filter(null === (d = i.dialog) || void 0 === d ? void 0 : d.msg, o.data)) && void 0 !== r ? r : null === (c = i.args) || void 0 === c ? void 0 : c.msg,
null !== (v = l.filter(null === (u = i.dialog) || void 0 === u ? void 0 : u.title, o.data)) && void 0 !== v ? v : null === (s = i.args) || void 0 === s ? void 0 : s.title,
null !== (g = l.filter(null === (f = i.dialog) || void 0 === f ? void 0 : f.className, o.data)) && void 0 !== g ? g : ''
),
[2]
)
})
})
}),
i
)
})(),
v = (function () {
function i() {}
return (
(i.prototype.run = function (i, n, o) {
var e, t, d, r, c, u, v, s, f, g, p, b, _, m, A, w, h, y, D
return a.__awaiter(this, void 0, void 0, function () {
var T
return a.__generator(this, function (x) {
switch (x.label) {
case 0:
return (
(T = null !== (e = i.dialog) && void 0 !== e ? e : i.args).$ref && n.props.resolveDefinitions && (T = a.__assign(a.__assign({}, n.props.resolveDefinitions(T.$ref)), T)),
(null == T ? void 0 : T.type)
? [3, 2]
: [
4,
null === (d = (t = o.context.env).confirm) || void 0 === d
? void 0
: d.call(
t,
l.filter(null == T ? void 0 : T.msg, o.data) || (null === (r = i.args) || void 0 === r ? void 0 : r.msg),
l.filter(null === (c = i.dialog) || void 0 === c ? void 0 : c.title, o.data) || (null === (u = i.args) || void 0 === u ? void 0 : u.title),
{
closeOnEsc: l.filter(null === (v = i.dialog) || void 0 === v ? void 0 : v.closeOnEsc, o.data) || (null === (s = i.args) || void 0 === s ? void 0 : s.closeOnEsc),
size: l.filter(null === (f = i.dialog) || void 0 === f ? void 0 : f.size, o.data) || (null === (g = i.args) || void 0 === g ? void 0 : g.size),
confirmText: l.filter(null === (p = i.dialog) || void 0 === p ? void 0 : p.confirmText, o.data) || (null === (b = i.args) || void 0 === b ? void 0 : b.confirmText),
cancelText: l.filter(null === (_ = i.dialog) || void 0 === _ ? void 0 : _.cancelText, o.data) || (null === (m = i.args) || void 0 === m ? void 0 : m.cancelText),
confirmBtnLevel:
l.filter(null === (A = i.dialog) || void 0 === A ? void 0 : A.confirmBtnLevel, o.data) || (null === (w = i.args) || void 0 === w ? void 0 : w.confirmBtnLevel),
cancelBtnLevel:
l.filter(null === (h = i.dialog) || void 0 === h ? void 0 : h.cancelBtnLevel, o.data) || (null === (y = i.args) || void 0 === y ? void 0 : y.cancelBtnLevel),
className: l.filter(null === (D = i.dialog) || void 0 === D ? void 0 : D.className, o.data) || ''
}
)
]
)
case 1:
return [2, x.sent()]
case 2:
return [
4,
new Promise(function (e, a) {
var t, l
n.handleAction
? n.handleAction(
o,
{
actionType: 'dialog',
dialog: T,
data: i.rawData,
reload: 'none',
callback: function (i) {
return e(i)
}
},
i.data
)
: null === (l = (t = n.props).onAction) ||
void 0 === l ||
l.call(
t,
o,
{
actionType: 'dialog',
dialog: T,
data: i.rawData,
reload: 'none',
callback: function (i) {
return e(i)
}
},
i.data
)
})
]
case 3:
return [2, x.sent()]
}
})
})
}),
i
)
})()
d.registerAction('dialog', new r()),
d.registerAction('closeDialog', new c()),
d.registerAction('alert', new u()),
d.registerAction('confirmDialog', new v()),
(n.AlertAction = u),
(n.CloseDialogAction = c),
(n.ConfirmAction = v),
(n.DialogAction = r)
}) /*!node_modules/amis-core/lib/actions/DrawerAction.js*/
amis.define('1a3c3c1', function (e, a, n, r) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var t = e('68b98b9')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e')
var c = e('bbe84d0')
e('c3389ff'),
e('0910768'),
e('607aee2'),
e('5c95135'),
e('8b081ba'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('575a22c'),
e('939b8bb'),
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2')
var o = e('e913672')
e('5f94728'),
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var d = (function () {
function e() {}
return (
(e.prototype.run = function (e, a, n) {
var r, o
return t.__awaiter(this, void 0, void 0, function () {
var d, i, u, s, f
return t.__generator(this, function (t) {
switch (t.label) {
case 0:
return void 0 !== e.$$id
? [2]
: ((d = a.handleAction
? a.handleAction(n, { actionType: 'drawer', drawer: e.drawer, reload: 'none', data: e.rawData }, e.data)
: null === (o = (r = a.props).onAction) || void 0 === o
? void 0
: o.call(r, n, { actionType: 'drawer', drawer: e.drawer, reload: 'none', data: e.rawData }, e.data)),
n.pendingPromise.push(d),
e.waitForAction ? [4, d] : [3, 2])
case 1:
;(i = t.sent()), (u = i.confirmed), (s = i.value), n.setData(c.extendObject(n.data, (((f = {})[e.outputVar || 'drawerResponse'] = { confirmed: u, value: s }), f))), (t.label = 2)
case 2:
return [2]
}
})
})
}),
e
)
})(),
i = (function () {
function e() {}
return (
(e.prototype.run = function (e, a, n) {
var r, c
return t.__awaiter(this, void 0, void 0, function () {
return t.__generator(this, function (o) {
return (
e.componentId
? n.context.scoped.closeById(e.componentId)
: null === (c = (r = a.props).onAction) || void 0 === c || c.call(r, n, t.__assign(t.__assign({}, e), { actionType: 'close' }), e.data),
[2]
)
})
})
}),
e
)
})()
o.registerAction('drawer', new d()), o.registerAction('closeDrawer', new i()), (a.CloseDrawerAction = i), (a.DrawerAction = d)
}) /*!node_modules/amis-core/lib/actions/EmailAction.js*/
amis.define('dadd977', function (t, n, e, i) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var o = t('68b98b9'),
r = t('3f34d90'),
u = t('21106e3'),
a = t('e913672')
function c(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var d = c(r),
f = c(u),
l = (function () {
function t() {}
return (
(t.prototype.run = function (t, n, e) {
var i, r
return o.__awaiter(this, void 0, void 0, function () {
var n, e, u, a
return o.__generator(this, function (o) {
return (
(n = null === (i = t.args) || void 0 === i ? void 0 : i.to),
(e = d.default(null !== (r = t.args) && void 0 !== r ? r : {}, 'cc', 'bcc', 'subject', 'body')),
(u = f.default.stringify(e)),
(a = 'mailto:'.concat(n, '?').concat(u)),
window.open(a),
[2]
)
})
})
}),
t
)
})()
a.registerAction('email', new l()), (n.EmailAction = l)
}) /*!node_modules/amis-core/lib/actions/EventAction.js*/
amis.define('66f9a9c', function (e, a, t, r) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var n = e('68b98b9')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e')
var c = e('bbe84d0')
e('c3389ff'), e('0910768'), e('607aee2'), e('5c95135'), e('8b081ba'), e('a3bbeb2'), e('933bc12'), e('3f15357'), e('575a22c'), e('939b8bb'), e('8b641b6')
var s = e('3c9ad5f')
e('cde5cad'), e('0dc59d3'), e('67e77ca'), e('37efca2')
var i = e('e913672')
e('5f94728')
var o = e('1be4f4d')
e('1feaebc'),
e('ac704b9'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('e98f234'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var d = (function () {
function e() {}
return (
(e.prototype.run = function (e, a, t) {
var r
return n.__awaiter(this, void 0, void 0, function () {
var a, i
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
switch (e.actionType) {
case 'setEventData':
return [3, 1]
case 'preventDefault':
return [3, 5]
case 'stopPropagation':
return [3, 6]
}
return [3, 7]
case 1:
return 'string' != typeof (null === (r = e.args) || void 0 === r ? void 0 : r.key)
? [3, 4]
: ((a = c.cloneObject(t.data)), (i = e.args.value), s.isExpression(i) ? [4, o.resolveVariableAndFilterForAsync(i, t.data, '| raw')] : [3, 3])
case 2:
;(i = n.sent()), (n.label = 3)
case 3:
c.setVariable(a, e.args.key, i), t.setData(a), (n.label = 4)
case 4:
return [3, 7]
case 5:
return t.preventDefault(), [3, 7]
case 6:
return t.stopPropagation(), [3, 7]
case 7:
return [2]
}
})
})
}),
e
)
})()
i.registerAction('setEventData', new d()), i.registerAction('preventDefault', new d()), i.registerAction('stopPropagation', new d()), (a.EventAction = d)
}) /*!node_modules/amis-core/lib/actions/LinkAction.js*/
amis.define('f3d37c2', function (n, i, e, t) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
var o = n('68b98b9'),
r = n('d9d4e46'),
u = n('e913672'),
l = (function () {
function n() {}
return (
(n.prototype.run = function (n, i, e) {
var t, u, l, d, a, v, s, p
return o.__awaiter(this, void 0, void 0, function () {
var i, c
return o.__generator(this, function (g) {
if (!(null === (t = e.context.env) || void 0 === t ? void 0 : t.jumpTo)) throw new Error('env.jumpTo is required!')
return (
(i = o.__assign(o.__assign({}, null !== (l = null === (u = n.args) || void 0 === u ? void 0 : u.params) && void 0 !== l ? l : {}), null !== (d = n.data) && void 0 !== d ? d : {})),
'link' === (null == n ? void 0 : n.actionType) && (null == i ? void 0 : i.targetType) && delete i.targetType,
(c = r.buildApi({ url: (null === (a = n.args) || void 0 === a ? void 0 : a.url) || (null === (v = n.args) || void 0 === v ? void 0 : v.link), method: 'get' }, i, { autoAppend: !0 })),
null === (s = e.context.env) || void 0 === s || s.jumpTo(c.url, o.__assign({ actionType: n.actionType, type: 'button' }, n.args), null !== (p = n.data) && void 0 !== p ? p : {}),
[2]
)
})
})
}),
n
)
})()
u.registerAction('openlink', new l()), (i.LinkAction = l)
}) /*!node_modules/amis-core/lib/actions/ToastAction.js*/
amis.define('b2321b9', function (n, i, t, o) {
'use strict'
Object.defineProperty(i, '__esModule', { value: !0 })
var e = n('68b98b9'),
r = n('e913672'),
u = (function () {
function n() {}
return (
(n.prototype.run = function (n, i, t) {
var o, r, u, v, d
return e.__awaiter(this, void 0, void 0, function () {
return e.__generator(this, function (i) {
if (!(null === (o = t.context.env) || void 0 === o ? void 0 : o.notify)) throw new Error('env.notify is required!')
return (
null === (u = null === (r = t.context.env) || void 0 === r ? void 0 : r.notify) ||
void 0 === u ||
u.call(r, (null === (v = n.args) || void 0 === v ? void 0 : v.msgType) || 'info', String(null === (d = n.args) || void 0 === d ? void 0 : d.msg), n.args),
[2]
)
})
})
}),
n
)
})()
r.registerAction('toast', new u()), (i.ToastAction = u)
}) /*!node_modules/amis-core/lib/actions/WaitAction.js*/
amis.define('a85d943', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('68b98b9'),
o = e('e913672'),
u = (function () {
function e() {}
return (
(e.prototype.run = function (e, t, n) {
var r
return i.__awaiter(this, void 0, void 0, function () {
var t
return i.__generator(this, function (n) {
switch (n.label) {
case 0:
return 'number' != typeof (t = null === (r = e.args) || void 0 === r ? void 0 : r.time)
? [3, 2]
: [
4,
new Promise(function (e) {
return setTimeout(e, t)
})
]
case 1:
n.sent(), (n.label = 2)
case 2:
return [2]
}
})
})
}),
e
)
})()
o.registerAction('wait', new u()), (t.WaitAction = u)
}) /*!node_modules/amis-core/lib/actions/PageAction.js*/
amis.define('734fb37', function (n, t, r, e) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = n('68b98b9'),
i = n('e913672'),
u = (function () {
function n() {}
return (
(n.prototype.run = function (n, t, r) {
return o.__awaiter(this, void 0, void 0, function () {
return o.__generator(this, function (n) {
return window.history.back(), [2]
})
})
}),
n
)
})(),
c = (function () {
function n() {}
return (
(n.prototype.run = function (n, t, r) {
var e
return o.__awaiter(this, void 0, void 0, function () {
return o.__generator(this, function (t) {
return window.history.go((null === (e = n.args) || void 0 === e ? void 0 : e.delta) || 0), [2]
})
})
}),
n
)
})(),
a = (function () {
function n() {}
return (
(n.prototype.run = function (n, t, r) {
return o.__awaiter(this, void 0, void 0, function () {
return o.__generator(this, function (n) {
return window.location.reload(), [2]
})
})
}),
n
)
})()
i.registerAction('goBack', new u()), i.registerAction('refresh', new a()), i.registerAction('goPage', new c()), (t.PageGoAction = c), (t.PageGoBackAction = u), (t.PageRefreshAction = a)
}) /*!node_modules/amis-core/lib/utils/printElement.js*/
amis.define('85badc4', function (e, n, t, i) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var s = 'pe-no-print',
r = 'pe-preserve-print',
o = 'pe-preserve-ancestor'
function a(e) {
e.classList.contains(r) || e.classList.add(s)
}
function l(e) {
e.classList.remove(s), e.classList.remove(r), e.classList.remove(o)
}
function c(e, n) {
for (var t = e.previousElementSibling; t; ) n(t), (t = t.previousElementSibling)
for (t = e.nextElementSibling; t; ) n(t), (t = t.nextElementSibling)
}
function f(e, n) {
!(function (e, n) {
e.classList.remove(s), e.classList.add(r), n || e.classList.add(o)
})(e, n),
c(e, a)
}
function p(e, n) {
l(e), c(e, l)
}
function u(e, n) {
var t = e
for (n(t, !0), t = t.parentElement; t && 'BODY' !== t.nodeName; ) n(t, !1), (t = t.parentElement)
}
n.printElements = function (e) {
for (var n = 0; n < e.length; n++) u(e[n], f)
for (window.print(), n = 0; n < e.length; n++) u(e[n], p)
}
}) /*!node_modules/amis-core/lib/actions/PrintAction.js*/
amis.define('9c3aad7', function (t, n, r, e) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var i = t('68b98b9'),
o = t('85badc4'),
a = t('e913672'),
c = (function () {
function t() {}
return (
(t.prototype.run = function (t, n, r) {
var e, a
return i.__awaiter(this, void 0, void 0, function () {
var n, r
return i.__generator(this, function (i) {
return (
(null === (e = t.args) || void 0 === e ? void 0 : e.id)
? (n = document.querySelector("[data-id='".concat(t.args.id, "']"))) && o.printElements([n])
: (null === (a = t.args) || void 0 === a ? void 0 : a.ids) &&
((r = []),
t.args.ids.forEach(function (t) {
var n = document.querySelector("[data-id='".concat(t, "']"))
n && r.push(n)
}),
o.printElements(r)),
[2]
)
})
})
}),
t
)
})()
a.registerAction('print', new c()), (n.PrintAction = c)
}) /*!node_modules/amis-core/lib/Scoped.js*/
amis.define('1c1d73a', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = e('68b98b9'),
a = e('ac704b9'),
i = e('0de7e2d'),
c = e('ea5ad0c'),
d = e('2fb8d9c'),
p = e('c3389ff')
e('8b081ba')
var s = e('bbe84d0'),
f = e('3853df4'),
u = e('9c55168'),
l = e('e74b24f'),
v = e('1c8d418')
e('8b641b6')
var g = e('939b8bb')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e'), e('607aee2'), e('5c95135'), e('a3bbeb2'), e('933bc12'), e('3f15357')
var h = e('575a22c')
e('0910768'), e('e98f234'), e('6175dcb'), e('a290f81'), e('cde5cad'), e('0dc59d3'), e('67e77ca'), e('37efca2')
var b = e('241d95b')
e('1feaebc'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824'),
e('9f6ca76'),
e('53ab1c9'),
e('389b046'),
e('63cb51c'),
e('5b9523a'),
e('e545b9c'),
e('b72176a'),
e('faee115'),
e('9a01b63'),
e('daa1278'),
e('1dd4948'),
e('890b724'),
e('1a3c3c1'),
e('dadd977'),
e('66f9a9c'),
e('f3d37c2'),
e('b2321b9'),
e('a85d943'),
e('734fb37'),
e('9c3aad7')
var m = e('e913672')
function y(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var C = y(a),
_ = y(i),
R = y(c),
x = y(d),
E = e('ac704b9'),
B = (E.default || E).createElement
function w(e) {
try {
var t = f.memoParse(e),
n = []
if (
(t.body.forEach(function (e) {
if ('raw' === e.type) {
var t = e.value.split(',')
if (t.length > 1) {
t.pop()
var r = e.start.index
t.forEach(function (e) {
n.push(r + e.length), (r += e.length + 1)
})
}
}
}),
n.length)
) {
var r = []
return (
n.reduceRight(function (t, n) {
var r
return t.unshift(null === (r = e.slice(n + 1)) || void 0 === r ? void 0 : r.trim()), (e = e.slice(0, n)), t
}, r),
r.unshift(e),
r
)
}
} catch (e) {}
return [e]
}
;(E.default || E).Fragment
var I = N(''),
O = C.default.createContext(I)
function N(e, t, n, r) {
var a = [],
i = {
rendererType: r,
component: void 0,
parent: t,
registerComponent: function (n) {
if (n.props.$path === e && t) return (i.component = n), t.registerComponent(n)
~a.indexOf(n) || a.push(n)
},
unRegisterComponent: function (n) {
if (n.props.$path === e && t) return t.unRegisterComponent(n)
var r = a.indexOf(n)
~r && a.splice(r, 1)
},
getComponentByName: function (e) {
if (~e.indexOf('.')) {
var n = e.split('.'),
r = n.length
return n.reduce(function (e, t, n) {
if (e && e.getComponentByName) {
var o = e.getComponentByName(t)
return o && n < r - 1 ? o.context : o
}
return null
}, this)
}
return (
_.default(a, function (t) {
return h.filter(t.props.name, t.props.data) === e || t.props.id === e
}) ||
(t && t.getComponentByName(e))
)
},
getComponentByIdUnderCurrentScope: function (e, t) {
var n = void 0
return (
g.findTree([this], function (r) {
return (
r !== t &&
r.getComponents().find(function (t) {
return h.filter(t.props.id, t.props.data) === e && ((n = t), !0)
})
)
}),
n
)
},
getComponentById: function (e) {
for (var t = this, n = void 0; t; ) {
var r = t.getComponentByIdUnderCurrentScope(e, n)
if (r) return r
if (!t.parent || t.parent === I) break
;(n = t), (t = t.parent)
}
},
getComponentsByRefPath: function (e, t) {
if (!t || 'string' != typeof t) return []
for (var n = {}, r = this; r.parent; ) r = r.parent
return (
g.eachTree([r], function (r) {
var a,
i,
c,
d,
p,
s,
f,
l,
v,
g,
h = r.getComponents() || []
if (Array.isArray(h))
try {
for (var b = o.__values(h), m = b.next(); !m.done; m = b.next()) {
var y = m.value,
C = null !== (s = null === (p = null == y ? void 0 : y.props) || void 0 === p ? void 0 : p.$path) && void 0 !== s ? s : 'unknown',
_ = null !== (l = null === (f = null == y ? void 0 : y.props) || void 0 === f ? void 0 : f.$schema) && void 0 !== l ? l : {},
R = null !== (g = null === (v = null == y ? void 0 : y.props.env) || void 0 === v ? void 0 : v.session) && void 0 !== g ? g : 'global'
if (!n[C] && e === R)
if ((null == y ? void 0 : y.setData) && 'function' == typeof y.setData) n[C] = y
else
try {
for (var x = ((c = void 0), o.__values(Object.keys(_))), E = x.next(); !E.done; E = x.next()) {
var B = _[E.value]
if ('string' == typeof B && u.isPureVariable(B)) {
var w = B.substring(2, B.length - 1).split('|')[0]
if (w && w === t) {
n[C] = y
break
}
}
}
} catch (e) {
c = { error: e }
} finally {
try {
E && !E.done && (d = x.return) && d.call(x)
} finally {
if (c) throw c.error
}
}
}
} catch (e) {
a = { error: e }
} finally {
try {
m && !m.done && (i = b.return) && i.call(b)
} finally {
if (a) throw a.error
}
}
}),
R.default(n)
)
},
getComponents: function () {
return a.concat()
},
reload: function (e, t) {
var r = this
;('string' == typeof e ? w(e) : e).forEach(function (e) {
var o = e.indexOf('?'),
a = null
if (~o) {
var i = g.qsparse(
e.substring(o + 1).replace(/\$\{(.*?)\}/, function (e, t) {
return '${' + encodeURIComponent(t) + '}'
})
)
;(a = v.dataMapping(i, t)), (e = e.substring(0, o))
}
var c = e.indexOf('.'),
d = ''
if ((~c && ((d = e.substring(1 + c)), (e = e.substring(0, c))), 'window' === e))
if (a) {
var p = location.pathname + '?' + g.qsstringify(a)
n ? n.updateLocation(p, !0) : location.replace(p)
} else location.reload()
else {
var s = r.getComponentByName(e) || r.getComponentById(e)
s && s.reload && s.reload(d, a, t)
}
})
},
send: function (e, t) {
var r = this
;('string' == typeof e ? w(e) : e).forEach(function (e) {
var a = e.indexOf('?')
if (~a) {
var i = e.substring(a + 1),
c = g.qsparse(
i.replace(/\$\{(.*?)\}/, function (e, t) {
return '${' + encodeURIComponent(t) + '}'
})
)
;(e = e.substring(0, a)), (t = v.dataMapping(c, t))
}
var d = e.indexOf('.'),
p = ''
~d && ((p = e.substring(1 + d)), (e = e.substring(0, d)))
var s = r.getComponentByName(e)
if (s && s.receive) s.receive(t, p)
else if ('window' === e && n && n.updateLocation) {
i = o.__assign(o.__assign({}, g.parseQuery(location)), t)
var f = location.pathname + '?' + g.qsstringify(i)
n.updateLocation(f, !0)
}
})
},
close: function (e) {
var t = this
'string' == typeof e &&
w(e)
.map(function (e) {
return t.getComponentByName(e)
})
.filter(function (e) {
return e && e.props.show
})
.forEach(T)
},
closeById: function (e) {
var t = this.getComponentById(e)
t && t.props.show && T(t)
},
doAction: function (e, t) {
return o.__awaiter(this, void 0, void 0, function () {
var r, a
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(r = this.getComponents()[0]),
(a = b.createRendererEvent('embed', { env: n, nativeEvent: void 0, data: s.createObject(r.props.data, t), scoped: this })),
[4, m.runActions(e, r, a)]
)
case 1:
return o.sent(), a.prevented, [2]
}
})
})
}
}
return (
p.registerFunction('GETRENDERERDATA', function (e, t, n) {
var r
void 0 === n && (n = i)
var o = n.getComponentById(e),
a = null === (r = null == o ? void 0 : o.getData) || void 0 === r ? void 0 : r.call(o)
return t ? l.getVariable(a, t) : a
}),
p.registerFunction('GETRENDERERPROP', function (e, t, n) {
void 0 === n && (n = i)
var r = n.getComponentById(e),
o = null == r ? void 0 : r.props
return t ? l.getVariable(o, t) : o
}),
t ? (!t.children && (t.children = []), t.children.push(i), i) : i
)
}
function T(e) {
e.context
.getComponents()
.filter(function (e) {
return e && ('dialog' === e.props.type || 'drawer' === e.props.type) && e.props.show
})
.forEach(T),
e.props.onClose && e.props.onClose()
}
function $(e, t) {
var n = (function (n) {
function r(e, r) {
var o = n.call(this, e) || this
o.scoped = N(o.props.$path, r, o.props.env, t)
var a = e.scopeRef
return a && a(o.scoped), o
}
return (
o.__extends(r, n),
(r.prototype.getWrappedInstance = function () {
return this.ref
}),
(r.prototype.childRef = function (e) {
for (; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
this.ref = e
}),
(r.prototype.componentWillUnmount = function () {
var e = this.props.scopeRef
e && e(null), delete this.scoped
}),
(r.prototype.render = function () {
var t = this.props
t.scopeRef
var n = o.__rest(t, ['scopeRef'])
return B(O.Provider, { value: this.scoped }, B(e, o.__assign({}, n, { ref: this.childRef })))
}),
(r.displayName = 'Scoped('.concat(e.displayName || e.name, ')')),
(r.contextType = O),
(r.ComposedComponent = e),
o.__decorate([g.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', void 0)], r.prototype, 'childRef', null),
r
)
})(C.default.Component)
return x.default(n, e), n
}
;(t.HocScoped = $),
(t.ScopedContext = O),
(t.default = $),
(t.filterTarget = function (e, t) {
var n = e.indexOf('?')
return ~n ? h.filter(e.slice(0, n), t) + e.slice(n) : h.filter(e, t, '| raw')
}),
(t.splitTarget = w)
}) /*!node_modules/amis-core/lib/utils/filter-schema.js*/
amis.define('2f0f0cc', function (e, n, t, r) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var o = e('575a22c'),
i = e('939b8bb'),
a = e('0910768'),
f = e('3853df4')
function s(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var c = s(a)
function u(e, n) {
void 0 === n && (n = {})
var t = e
return (
e && 'string' == typeof e
? (t = f.tokenize(e, n))
: e &&
c.default(e) &&
(t = i.mapObject(
e,
function (e) {
return 'string' == typeof e ? o.evalExpression(e, n) : e
},
void 0,
function (e) {
return f.tokenize(e, n)
}
)),
t
)
}
function l(e, n, t, r) {
void 0 === n && (n = {}), void 0 === t && (t = ['addOn', 'ref'])
var a = {},
f = null
return (
Object.getOwnPropertyNames(e).forEach(function (s) {
if (!t || !~t.indexOf(s)) {
var l = /^(.*)(On|Expr|(?:c|C)lassName)(Raw)?$/.exec(s),
p = null == l ? void 0 : l[2],
d = e[s]
d && 'string' == typeof d && (null == l ? void 0 : l[1]) && ('On' === p || 'Expr' === p)
? ((s = l[1]),
('On' !== p && 'Expr' !== p) ||
(!f && r && 'string' == typeof d && ~d.indexOf('__props') && (f = i.injectPropsToObject(n, { __props: r })),
(d = 'On' === p ? (null == r ? void 0 : r[s]) || o.evalExpression(d, f || n) : o.filter(d, f || n))),
(a[s] = d))
: ('className' !== p && 'ClassName' !== p) || (null == r ? void 0 : r[s]) || !d || ('string' != typeof d && !c.default(d)) || ((a[''.concat(s, 'Raw')] = d), (a[s] = u(d, n)))
}
}),
a
)
}
;(n.default = l),
(n.filterClassNameObject = u),
(n.getExprProperties = l),
(n.hasExprPropertiesChanged = function (e, n) {
return Object.getOwnPropertyNames(e).some(function (t) {
return !!/^(.*)(On|Expr|(?:c|C)lassName)(Raw)?$/.exec(t) && e[t] !== n[t]
})
})
}) /*!node_modules/amis-core/lib/WithRootStore.js*/
amis.define('8420da3', function (t, e, n, o) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var r = t('68b98b9'),
a = t('ac704b9'),
i = t('2fb8d9c')
function f(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var u = f(a),
c = f(i),
d = t('ac704b9'),
s = (d.default || d).createElement
;(d.default || d).Fragment
var p = u.default.createContext(void 0)
;(e.RootStoreContext = p),
(e.withRootStore = function (t) {
var e
return c.default(
(((e = (function (e) {
function n(t) {
var n = e.call(this, t) || this
return (n.refFn = n.refFn.bind(n)), n
}
return (
r.__extends(n, e),
(n.prototype.getWrappedInstance = function () {
return this.ref.control
}),
(n.prototype.refFn = function (t) {
this.ref = t
}),
(n.prototype.render = function () {
var e = { rootStore: this.context }
return s(t, r.__assign({}, this.props, e, { ref: this.refFn }))
}),
n
)
})(u.default.Component)).displayName = 'WithRootStore('.concat(t.displayName || t.name, ')')),
(e.contextType = p),
(e.ComposedComponent = t),
e),
t
)
})
}) /*!node_modules/amis-core/lib/WithStore.js*/
amis.define('9d883d3', function (t, a, e, r) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var s = t('68b98b9'),
d = t('2fb8d9c'),
o = t('30f4e61'),
i = t('0d0462d'),
n = t('668845d'),
p = t('ac704b9'),
c = t('2f0f0cc'),
u = t('939b8bb')
t('c3389ff'), t('8b081ba')
var l = t('bbe84d0'),
_ = t('3853df4'),
f = t('1c8d418')
t('8b641b6')
var h = t('8420da3')
function D(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var g = D(d),
S = D(p),
v = t('ac704b9'),
b = (v.default || v).createElement
function m(t, a) {
return !(!['clickAction'].includes(t) || 'string' == typeof a)
}
;(v.default || v).Fragment,
(a.HocStoreFactory = function (t) {
return function (a) {
var e = (function (e) {
function r(a, r) {
var d = e.call(this, a) || this,
i = r
;(d.renderChild = d.renderChild.bind(d)), (d.refFn = d.refFn.bind(d))
var n = i.addStore({ id: u.guid(), path: d.props.$path, storeType: t.storeType, parentId: d.props.store ? d.props.store.id : '' })
n.setTopStore(a.topStore),
(d.store = n),
!1 === ('function' == typeof t.extendsData ? t.extendsData(a) : t.extendsData)
? n.initData(
l.createObject(
d.props.data ? d.props.data.__super : null,
s.__assign(s.__assign({}, d.formatData(f.dataMapping(d.props.defaultData, d.props.data, m))), d.formatData(d.props.data))
)
)
: d.props.scope || (d.props.data && d.props.data.__super)
? d.props.store && d.props.data === d.props.scope
? n.initData(l.createObject(d.props.store.data, s.__assign({}, d.formatData(f.dataMapping(d.props.defaultData, d.props.data, m)))))
: n.initData(
l.createObject(d.props.data.__super || d.props.scope, s.__assign(s.__assign({}, d.formatData(f.dataMapping(d.props.defaultData, d.props.data, m))), d.formatData(d.props.data)))
)
: n.initData(s.__assign(s.__assign({}, d.formatData(f.dataMapping(d.props.defaultData, d.props.data, m))), d.formatData(d.props.data))),
(d.state = {})
var p = a.detectField,
_ = s.__rest(a, ['detectField']),
h = {}
return (
(p && 'data' !== p) ||
((h = c.getExprProperties(_, n.data)),
(d.state = s.__assign({}, h)),
(d.unReaction = o.reaction(
function () {
return JSON.stringify(c.getExprProperties(d.props, n.data))
},
function () {
return d.setState(s.__assign({}, c.getExprProperties(d.props, n.data)))
}
))),
d
)
}
return (
s.__extends(r, e),
(r.prototype.getWrappedInstance = function () {
return this.ref
}),
(r.prototype.refFn = function (t) {
this.ref = t
}),
(r.prototype.formatData = function (t) {
return Array.isArray(t) ? { items: t } : t
}),
(r.prototype.componentDidUpdate = function (a) {
var e,
r,
d,
i,
n,
p,
f,
h,
D,
g,
S = this,
v = this.props,
b = this.store
if ((!v.detectField || 'data' === v.detectField) && c.hasExprPropertiesChanged(this.props, a)) {
var m = c.getExprProperties(this.props, b.data)
u.isObjectShallowModified(m, this.state) && this.setState(m),
null === (e = this.unReaction) || void 0 === e || e.call(this),
(this.unReaction = o.reaction(
function () {
return c.getExprProperties(S.props, b.data)
},
function (t) {
return S.setState(t)
}
))
}
var y = null === (r = t.shouldSyncSuperStore) || void 0 === r ? void 0 : r.call(t, b, v, a)
!1 !== y &&
(!1 === ('function' == typeof t.extendsData ? t.extendsData(v) : t.extendsData)
? (!0 === y ||
a.defaultData !== v.defaultData ||
(v.trackExpression
? _.tokenize(v.trackExpression, v.data) !== _.tokenize(v.trackExpression, a.data)
: u.isObjectShallowModified(a.data, v.data) || (v.data && a.data && v.data.__super !== a.data.__super))) &&
b.initData(
l.extendObject(v.data, s.__assign(s.__assign(s.__assign({}, b.hasRemoteData ? b.data : null), this.formatData(v.defaultData)), this.formatData(v.data))),
!1 === (null !== (d = v.updatePristineAfterStoreDataReInit) && void 0 !== d ? d : v.dataUpdatedAt !== a.dataUpdatedAt)
)
: !0 === y ||
(v.trackExpression
? _.tokenize(v.trackExpression, v.data) !== _.tokenize(v.trackExpression, a.data)
: u.isObjectShallowModified(a.data, v.data) || (!1 !== v.syncSuperStore && u.isSuperDataModified(v.data, a.data, b)))
? v.store && v.scope === v.data
? b.initData(
l.createObject(v.store.data, !1 === v.syncSuperStore ? s.__assign({}, b.data) : u.syncDataFromSuper(b.data, v.store.data, a.scope, b, !0 === v.syncSuperStore)),
!1 === (null !== (i = v.updatePristineAfterStoreDataReInit) && void 0 !== i ? i : v.dataUpdatedAt !== a.dataUpdatedAt)
)
: v.data && v.data.__super
? b.initData(
l.extendObject(
v.data,
b.hasRemoteData || !b.path.includes('/')
? s.__assign(s.__assign({}, b.data), v.data)
: 'ComboStore' === (null === (n = v.store) || void 0 === n ? void 0 : n.storeType)
? void 0
: u.syncDataFromSuper(s.__assign(s.__assign({}, b.data), v.data), v.data.__super, a.data.__super, b, !1)
),
!1 === (null !== (p = v.updatePristineAfterStoreDataReInit) && void 0 !== p ? p : v.dataUpdatedAt !== a.dataUpdatedAt)
)
: b.initData(l.createObject(v.scope, v.data), !1 === (null !== (f = v.updatePristineAfterStoreDataReInit) && void 0 !== f ? f : v.dataUpdatedAt !== a.dataUpdatedAt))
: v.trackExpression || (v.store && v.data === v.scope) || !v.data || !v.data.__super
? !v.trackExpression &&
v.scope &&
v.data === v.store.data &&
a.data !== v.data &&
b.initData(
l.createObject(v.scope, s.__assign({}, b.data)),
!1 === (null !== (g = v.updatePristineAfterStoreDataReInit) && void 0 !== g ? g : v.dataUpdatedAt !== a.dataUpdatedAt)
)
: (a.data && !u.isObjectShallowModified(v.data.__super, a.data.__super, !1)) ||
b.initData(
l.createObject(v.data.__super, s.__assign(s.__assign({}, v.data), b.data)),
!1 === (null !== (h = v.updatePristineAfterStoreDataReInit) && void 0 !== h ? h : v.dataUpdatedAt !== a.dataUpdatedAt) ||
('FormStore' === b.storeType && 'CRUDStore' === (null === (D = a.store) || void 0 === D ? void 0 : D.storeType))
))
}),
(r.prototype.componentWillUnmount = function () {
var t,
a = this.context,
e = this.store
null === (t = this.unReaction) || void 0 === t || t.call(this), n.isAlive(e) && (e.setTopStore(null), a.removeStore(e)), delete this.store
}),
(r.prototype.renderChild = function (t, a, e) {
return (
void 0 === e && (e = {}),
(0, this.props.render)(t, a, s.__assign(s.__assign({ data: this.store.data, dataUpdatedAt: this.store.updatedAt }, e), { scope: this.store.data, store: this.store }))
)
}),
(r.prototype.render = function () {
var t = this.props
t.detectField
var e = s.__rest(t, ['detectField'])
return this.state.hidden || !1 === this.state.visible
? null
: b(
a,
s.__assign({}, e, this.state, { ref: this.refFn, data: this.store.data, dataUpdatedAt: this.store.updatedAt, store: this.store, scope: this.store.data, render: this.renderChild })
)
}),
(r.displayName = 'WithStore('.concat(a.displayName || a.name, ')')),
(r.ComposedComponent = a),
(r.contextType = h.RootStoreContext),
(r = s.__decorate([i.observer, s.__metadata('design:paramtypes', [Object, void 0])], r))
)
})(S.default.Component)
return g.default(e, a), e
}
})
}) /*!node_modules/amis-core/lib/renderers/Placeholder.js*/
amis.define('2464b09', function (e, t, n, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9')
function u(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var i = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this
}
return (
r.__extends(t, e),
(t.prototype.componentDidMount = function () {
console.warn('Please implement this renderer('.concat(this.props.type, ')'))
}),
(t.prototype.render = function () {
return null
}),
t
)
})(u(e('ac704b9')).default.Component)
t.Placeholder = i
}) /*!node_modules/amis-core/lib/factory.js*/
amis.define('326ef36', function (e, n, t, r) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var o = e('68b98b9')
e('ac704b9')
var i = e('96012e2'),
a = e('668845d'),
s = e('d9d4e46'),
c = e('dff10cd'),
u = e('939b8bb'),
l = e('0d0462d'),
d = e('1c1d73a'),
f = e('0de7e2d'),
p = e('9d883d3'),
y = e('2464b09'),
m = e('2cb1945')
function g(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var h,
b,
v = g(f),
w = e('ac704b9'),
E = (w.default || w).createElement
;(w.default || w).Fragment
var S = [],
R = {},
x = [],
T = 1
function k(e) {
if (!e.test && !e.type) throw new TypeError('please set config.test or config.type')
if (!e.component) throw new TypeError('config.component is required')
if (
('string' == typeof e.type && e.type && ((e.type = e.type.toLowerCase()), (e.test = e.test || new RegExp('(^|/)'.concat(m.string2regExp(e.type), '$'), 'i'))),
(e.weight = e.weight || 0),
(e.Renderer = e.component),
(e.name = e.name || e.type || 'anonymous-'.concat(T++)),
R[e.name])
)
throw new Error('The renderer with name "'.concat(e.name, '" has already exists, please try another name!'))
if (R.hasOwnProperty(e.name)) {
var n = u.findIndex(S, function (n) {
return n.name === e.name
})
~n && S.splice(n, 0, e)
}
e.storeType && e.component && (e.component = p.HocStoreFactory({ storeType: e.storeType, extendsData: e.storeExtendsData, shouldSyncSuperStore: e.shouldSyncSuperStore })(l.observer(e.component))),
e.isolateScope && (e.component = d.HocScoped(e.component, e.type))
var t = u.findIndex(S, function (n) {
return e.weight < n.weight
})
return ~t ? S.splice(t, 0, e) : S.push(e), (R[e.name] = e.component !== y.Placeholder), e
}
function O(e, n) {
return E(
'div',
{ className: 'RuntimeError' },
E('p', null, 'Error: \u627e\u4e0d\u5230\u5bf9\u5e94\u7684\u6e32\u67d3\u5668'),
E('p', null, 'Path: ', n),
E('pre', null, E('code', null, JSON.stringify(e, null, 2)))
)
}
var _ = {
session: 'global',
richTextToken: '',
useMobileUI: !0,
enableAMISDebug: null !== (b = null !== (h = window.enableAMISDebug) && void 0 !== h ? h : -1 !== location.search.indexOf('amisDebug=1')) && void 0 !== b && b,
loadRenderer: O,
fetcher: function () {
return Promise.reject('fetcher is required')
},
wsFetcher: function (e, n, t) {
if (e) {
var r = new WebSocket(e.url)
return (
(r.onopen = function (n) {
e.body && r.send(JSON.stringify(e.body))
}),
(r.onmessage = function (t) {
var r
if (t.data) {
var o = void 0
try {
o = JSON.parse(t.data)
} catch (e) {}
if ('object' != typeof o) ((r = {})[e.responseKey || 'data'] = t.data), (o = r)
n(o)
}
}),
(r.onerror = t),
{ close: r.close }
)
}
return { close: function () {} }
},
isCancel: function () {
return console.error('Please implement isCancel. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97'), !1
},
updateLocation: function () {
console.error('Please implement updateLocation. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97')
},
jumpTo: function (e, n) {
if ('goBack' === e) return window.history.back()
;(e = c.normalizeLink(e)),
n && 'url' === n.actionType
? !1 === n.blank
? (window.location.href = e)
: window.open(e)
: 'link' === (null == n ? void 0 : n.actionType) && ['blank', 'self'].includes(null == n ? void 0 : n.targetType)
? 'self' === n.targetType
? (window.history.pushState(null, '', e), location.reload())
: window.open(e)
: /^https?:\/\//.test(e)
? window.location.replace(e)
: (location.href = e)
},
isCurrentUrl: function (e) {
if (!e) return !1
var n = c.normalizeLink(e),
t = window.location,
r = n,
o = '',
i = n.indexOf('?')
if ((~i && ((r = n.substring(0, i)), (o = n.substring(i))), o)) {
if (r !== t.pathname || !t.search) return !1
var a = u.qsparse(o.substring(1)),
s = u.parseQuery(t)
return Object.keys(a).every(function (e) {
return a[e] === s[e]
})
}
return r === t.pathname
},
copy: function (e) {
console.error('copy contents', e)
},
tracker: function (e, n) {},
rendererResolver: j,
replaceTextIgnoreKeys: ['type', 'name', 'mode', 'target', 'reload', 'persistData'],
filterHtml: function (e) {
return e
},
isMobile: u.isMobile
},
D = {}
var C = {}
function j(e, n) {
var t = 'string' == typeof (null == n ? void 0 : n.type) ? n.type.toLowerCase() : ''
if (t && C[t]) return C[t]
if (C[e]) return C[e]
if (e && e.length > 3072) throw new Error('Path\u592a\u957f\u662f\u4e0d\u662f\u6b7b\u5faa\u73af\u4e86\uff1f')
var r = null
return (
S.some(function (o) {
var i = !1
return o.type && t ? (i = o.type === t) && (C[t] = o) : 'function' == typeof o.test ? (i = o.test(e, n, j)) : o.test instanceof RegExp && (i = o.test.test(e)), i && (r = o), i
}),
null !== r && r.component !== y.Placeholder && (r.type || r.test instanceof RegExp || ('function' == typeof r.test && r.test.length < 2)) && (C[e] = r),
r
)
}
;(n.Renderer = function (e) {
return function (n) {
return k(o.__assign(o.__assign({}, e), { component: n })).component
}
}),
(n.addSchemaFilter = function (e) {
x.push(e)
}),
(n.clearStoresCache = function (e) {
void 0 === e && (e = Object.keys(D)),
Array.isArray(e) || (e = [e]),
e.forEach(function (e) {
var n = D[e]
delete D[e], n && a.destroy(n)
})
}),
(n.defaultOptions = _),
(n.extendDefaultEnv = function (e) {
Object.assign(_, e)
}),
(n.filterSchema = function (e, n, t) {
return x.reduce(function (e, r) {
return r(e, n, t)
}, e)
}),
(n.getRendererByName = function (e) {
return v.default(S, function (n) {
return n.name === e
})
}),
(n.getRenderers = function () {
return S.concat()
}),
(n.loadRenderer = O),
(n.registerRenderer = k),
(n.renderersMap = R),
(n.resolveRenderer = j),
(n.stores = D),
(n.unRegisterRenderer = function (e) {
var n = 'string' == typeof e ? e : e.name,
t = S.findIndex(function (e) {
return e.name === n
})
~t && S.splice(t, 1), delete R[n], (C = {})
}),
(n.updateEnv = function (e, n) {
void 0 === n && (n = 'global'), (e = o.__assign({}, e)).fetcher && (e.fetcher = s.wrapFetcher(e.fetcher, e.tracker)), e.confirm && (e.confirm = u.promisify(e.confirm))
var t = D[e.session || n]
if (t) {
var r = a.getEnv(t)
Object.assign(r, e)
} else (t = i.RendererStore.create({}, o.__assign(o.__assign({}, _), e))), (D[e.session || n] = t)
})
}) /*!node_modules/amis-core/lib/polyfills.js*/
amis.define('d24c711', function (n, e, i, t) {
'use strict'
'DragEvent' in window || Object.defineProperty(window, 'DragEvent', { value: function () {} })
}) /*!node_modules/react-intersection-observer/index.js*/
amis.define('f41781c', function (e, t, n, r) {
'use strict'
var i,
o = e('68b98b9'),
s = Object.create,
a = Object.defineProperty,
u = Object.getOwnPropertyDescriptor,
c = Object.getOwnPropertyNames,
l = Object.getPrototypeOf,
f = Object.prototype.hasOwnProperty,
d = function (e, t, n, r) {
if ((t && 'object' == typeof t) || 'function' == typeof t)
for (
var i = function (i) {
f.call(e, i) ||
i === n ||
a(e, i, {
get: function () {
return t[i]
},
enumerable: !(r = u(t, i)) || r.enumerable
})
},
o = 0,
s = c(t);
o < s.length;
o++
) {
i(s[o])
}
return e
},
h = function (e, t, n) {
return (n = null != e ? s(l(e)) : {}), d(!t && e && e.__esModule ? n : a(n, 'default', { value: e, enumerable: !0 }), e)
},
p = function (e, t, n) {
return (
(function (e, t, n) {
t in e ? a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
})(e, 'symbol' != typeof t ? t + '' : t, n),
n
)
},
b = {}
!(function (e, t) {
for (var n in t) a(e, n, { get: t[n], enumerable: !0 })
})(b, {
InView: function () {
return I
},
defaultFallbackInView: function () {
return k
},
observe: function () {
return O
},
useInView: function () {
return C
}
}),
(n.exports = ((i = b), d(a({}, '__esModule', { value: !0 }), i)))
var v = h(e('ac704b9')),
y = new Map(),
g = new WeakMap(),
V = 0,
w = void 0
function k(e) {
w = e
}
function m(e) {
return Object.keys(e)
.sort()
.filter(function (t) {
return void 0 !== e[t]
})
.map(function (t) {
return ''.concat(t, '_').concat('root' === t ? ((n = e.root) ? (g.has(n) || ((V += 1), g.set(n, V.toString())), g.get(n)) : '0') : e[t])
var n
})
.toString()
}
function O(e, t, n, r) {
if ((void 0 === n && (n = {}), void 0 === r && (r = w), void 0 === window.IntersectionObserver && void 0 !== r)) {
var i = e.getBoundingClientRect()
return (
t(r, { isIntersecting: r, target: e, intersectionRatio: 'number' == typeof n.threshold ? n.threshold : 0, time: 0, boundingClientRect: i, intersectionRect: i, rootBounds: i }), function () {}
)
}
var o = (function (e) {
var t = m(e),
n = y.get(t)
if (!n) {
var r,
i = new Map(),
o = new IntersectionObserver(function (t) {
t.forEach(function (t) {
var n,
o =
t.isIntersecting &&
r.some(function (e) {
return t.intersectionRatio >= e
})
e.trackVisibility && void 0 === t.isVisible && (t.isVisible = o),
null == (n = i.get(t.target)) ||
n.forEach(function (e) {
e(o, t)
})
})
}, e)
;(r = o.thresholds || (Array.isArray(e.threshold) ? e.threshold : [e.threshold || 0])), (n = { id: t, observer: o, elements: i }), y.set(t, n)
}
return n
})(n),
s = o.id,
a = o.observer,
u = o.elements,
c = u.get(e) || []
return (
u.has(e) || u.set(e, c),
c.push(t),
a.observe(e),
function () {
c.splice(c.indexOf(t), 1), 0 === c.length && (u.delete(e), a.unobserve(e)), 0 === u.size && (a.disconnect(), y.delete(s))
}
)
}
var I = (function (e) {
function t(t) {
var n = e.call(this, t) || this
return (
p(n, 'node', null),
p(n, '_unobserveCb', null),
p(n, 'handleNode', function (e) {
n.node && (n.unobserve(), e || n.props.triggerOnce || n.props.skip || n.setState({ inView: !!n.props.initialInView, entry: void 0 })), (n.node = e || null), n.observeNode()
}),
p(n, 'handleChange', function (e, t) {
e && n.props.triggerOnce && n.unobserve(),
(function (e) {
return 'function' != typeof e.children
})(n.props) || n.setState({ inView: e, entry: t }),
n.props.onChange && n.props.onChange(e, t)
}),
(n.state = { inView: !!t.initialInView, entry: void 0 }),
n
)
}
return (
o.__extends(t, e),
(t.prototype.componentDidUpdate = function (e) {
;(e.rootMargin === this.props.rootMargin &&
e.root === this.props.root &&
e.threshold === this.props.threshold &&
e.skip === this.props.skip &&
e.trackVisibility === this.props.trackVisibility &&
e.delay === this.props.delay) ||
(this.unobserve(), this.observeNode())
}),
(t.prototype.componentWillUnmount = function () {
this.unobserve(), (this.node = null)
}),
(t.prototype.observeNode = function () {
if (this.node && !this.props.skip) {
var e = this.props,
t = e.threshold,
n = e.root,
r = e.rootMargin,
i = e.trackVisibility,
o = e.delay,
s = e.fallbackInView
this._unobserveCb = O(this.node, this.handleChange, { threshold: t, root: n, rootMargin: r, trackVisibility: i, delay: o }, s)
}
}),
(t.prototype.unobserve = function () {
this._unobserveCb && (this._unobserveCb(), (this._unobserveCb = null))
}),
(t.prototype.render = function () {
var e = this.props.children
if ('function' == typeof e) {
var t = this.state
return e({ inView: t.inView, entry: t.entry, ref: this.handleNode })
}
var n = this.props,
r = n.as,
i =
(n.triggerOnce,
n.threshold,
n.root,
n.rootMargin,
n.onChange,
n.skip,
n.trackVisibility,
n.delay,
n.initialInView,
n.fallbackInView,
o.__rest(n, ['as', 'triggerOnce', 'threshold', 'root', 'rootMargin', 'onChange', 'skip', 'trackVisibility', 'delay', 'initialInView', 'fallbackInView']))
return v.createElement(r || 'div', o.__assign({ ref: this.handleNode }, i), e)
}),
t
)
})(v.Component),
_ = h(e('ac704b9'))
function C(e) {
var t,
n = void 0 === e ? {} : e,
r = n.threshold,
i = n.delay,
o = n.trackVisibility,
s = n.rootMargin,
a = n.root,
u = n.triggerOnce,
c = n.skip,
l = n.initialInView,
f = n.fallbackInView,
d = n.onChange,
h = _.useState(null),
p = h[0],
b = h[1],
v = _.useRef(),
y = _.useState({ inView: !!l, entry: void 0 }),
g = y[0],
V = y[1]
;(v.current = d),
_.useEffect(
function () {
var e
if (!c && p)
return (
(e = O(
p,
function (t, n) {
V({ inView: t, entry: n }), v.current && v.current(t, n), n.isIntersecting && u && e && (e(), (e = void 0))
},
{ root: a, rootMargin: s, threshold: r, trackVisibility: o, delay: i },
f
)),
function () {
e && e()
}
)
},
[Array.isArray(r) ? r.toString() : r, p, a, s, u, c, o, f, i]
)
var w = null == (t = g.entry) ? void 0 : t.target,
k = _.useRef()
p || !w || u || c || k.current === w || ((k.current = w), V({ inView: !!l, entry: void 0 }))
var m = [b, g.inView, g.entry]
return (m.ref = m[0]), (m.inView = m[1]), (m.entry = m[2]), m
}
}) /*!node_modules/amis-core/lib/components/LazyComponent.js*/
amis.define('d998390', function (e, n, t, i) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var o = e('68b98b9'),
a = e('ac704b9'),
r = e('f41781c')
function s(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var l = s(a),
d = e('ac704b9'),
u = (d.default || d).createElement
;(d.default || d).Fragment
var c = (function (e) {
function n(n) {
var t = e.call(this, n) || this
return (t.mounted = !1), (t.handleVisibleChange = t.handleVisibleChange.bind(t)), (t.mounted = !0), (t.state = { visible: !1, component: n.component }), t
}
return (
o.__extends(n, e),
(n.prototype.componentDidMount = function () {
'undefined' != typeof jest && this.handleVisibleChange(!0)
}),
(n.prototype.componentWillUnmount = function () {
this.mounted = !1
}),
(n.prototype.handleVisibleChange = function (e, n) {
var t = this
this.setState({ visible: e }),
e &&
!this.state.component &&
this.props.getComponent &&
this.props
.getComponent()
.then(function (e) {
return t.mounted && 'function' == typeof e && t.setState({ component: e })
})
.catch(function (e) {
return (
t.mounted &&
t.setState({
component: function () {
return u('div', { className: 'alert alert-danger' }, String(e))
}
})
)
})
}),
(n.prototype.render = function () {
var e = this.props,
n = e.placeholder,
t = e.unMountOnHidden,
i = e.childProps,
a = e.partialVisibility,
s = e.children,
l = o.__rest(e, ['placeholder', 'unMountOnHidden', 'childProps', 'partialVisibility', 'children']),
d = this.state,
c = d.visible,
h = d.component
return t
? u(r.InView, { onChange: this.handleVisibleChange, threshold: a ? 0 : 1 }, function (e) {
var t = e.ref
return u('div', { ref: t, className: 'visibility-sensor '.concat(c ? 'in' : '') }, h && c ? u(h, o.__assign({}, l, i)) : s && c ? s : n)
})
: c
? h
? u(h, o.__assign({}, l, i))
: s || u('div', null, n)
: u(r.InView, { onChange: this.handleVisibleChange, threshold: a ? 0 : 1 }, function (e) {
var t = e.ref
return u('div', { ref: t, className: 'visibility-sensor' }, n)
})
}),
(n.defaultProps = { placeholder: u('span', null, 'Loading...'), unMountOnHidden: !1, partialVisibility: !0 }),
n
)
})(l.default.Component)
n.default = c
}) /*!node_modules/amis-core/lib/renderers/Form.js*/
amis.define('f9770e6', function (e, t, i, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
a = e('ac704b9'),
o = e('326ef36'),
s = e('afae96a'),
l = e('575a22c'),
d = e('2f0f0cc'),
c = e('939b8bb'),
u = e('5f94728'),
p = e('c75aedd'),
h = e('0de7e2d'),
f = e('1c1d73a')
e('c3389ff'), e('8b081ba')
var v = e('bbe84d0'),
m = e('1c8d418')
e('8b641b6')
var g = e('d9d4e46'),
b = e('d998390'),
y = e('668845d')
e('8dd52de'),
e('22a4ae5'),
e('5e0783e'),
e('607aee2'),
e('5c95135'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('0910768')
var _ = e('37efca2')
e('e913672'),
e('1feaebc'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724')
var C = e('30f4e61')
e('d823824')
var D = e('8903480')
function A(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var w = A(a),
F = A(u),
k = A(p),
E = A(h),
S = A(_),
T = A(D),
I = e('ac704b9'),
R = (I.default || I).createElement
;(I.default || I).Fragment
var O = (function (e) {
function t(t) {
var i = e.call(this, t) || this
;(i.hooks = {}),
(i.toDispose = []),
(i.shouldLoadInitApi = !1),
(i.lazyEmitChange = F.default(i.emitChange.bind(i), 250, { trailing: !0, leading: !1 })),
(i.flushing = !1),
(i.emittedData = null),
(i.emitting = !1),
(i.onInit = i.onInit.bind(i)),
(i.handleAction = i.handleAction.bind(i)),
(i.handleQuery = i.handleQuery.bind(i)),
(i.handleChange = i.handleChange.bind(i)),
(i.handleDialogConfirm = i.handleDialogConfirm.bind(i)),
(i.handleDialogClose = i.handleDialogClose.bind(i)),
(i.handleDrawerConfirm = i.handleDrawerConfirm.bind(i)),
(i.handleDrawerClose = i.handleDrawerClose.bind(i)),
(i.handleFormSubmit = i.handleFormSubmit.bind(i)),
(i.validate = i.validate.bind(i)),
(i.submit = i.submit.bind(i)),
(i.addHook = i.addHook.bind(i)),
(i.removeHook = i.removeHook.bind(i)),
(i.emitChange = i.emitChange.bind(i)),
(i.handleBulkChange = i.handleBulkChange.bind(i)),
(i.renderFormItems = i.renderFormItems.bind(i)),
(i.reload = i.reload.bind(i)),
(i.silentReload = i.silentReload.bind(i)),
(i.initInterval = i.initInterval.bind(i)),
(i.dispatchInited = i.dispatchInited.bind(i)),
(i.blockRouting = i.blockRouting.bind(i)),
(i.beforePageUnload = i.beforePageUnload.bind(i)),
(i.formItemDispatchEvent = i.formItemDispatchEvent.bind(i))
var r = t.store,
n = t.canAccessSuperData,
a = t.persistData,
o = t.simpleMode
if ((r.setCanAccessSuperData(!1 !== n), r.setPersistData(a), o && r.setInited(!0), r && r.parentStore && 'ComboStore' === r.parentStore.storeType)) {
var s = r.parentStore
s.addForm(r),
s.forms.forEach(function (e) {
return e.items.forEach(function (t) {
return t.unique && t.syncOptions(void 0, e.data)
})
})
}
return (
i.toDispose.push(
C.reaction(
function () {
return r.initedAt
},
function () {
r.inited && i.lazyEmitChange(!!i.props.submitOnChange, !0)
}
)
),
i
)
}
return (
n.__extends(t, e),
(t.prototype.componentDidMount = function () {
var e,
t,
i = this,
r = this.props,
a = r.initApi,
o = r.initFetch,
s = r.initFetchOn,
d = r.initAsyncApi,
u = r.initFinishedField,
p = r.initCheckInterval,
h = r.store,
f = r.messages,
m = f.fetchSuccess,
b = f.fetchFailed,
y = r.onValidate,
_ = r.onValidChange,
D = r.promptPageLeave,
A = r.env,
w = this.getNormalizedRules()
if (((this.mounted = !0), y)) {
var F = c.promisify(y)
this.toDispose.push(
this.addHook(function () {
return n.__awaiter(i, void 0, void 0, function () {
var e
return n.__generator(this, function (t) {
switch (t.label) {
case 0:
return [4, F(h.data, h)]
case 1:
return (
(e = t.sent()) &&
v.isObject(e) &&
(Object.keys(e).forEach(function (t) {
var i = e[t],
r = h.getItemsByPath(t)
Array.isArray(r) &&
r.length &&
(r.forEach(function (e) {
return e.clearError()
}),
i &&
((i = Array.isArray(i) ? i : [i]),
r.forEach(function (e) {
return e.addError(i)
})),
delete e[t])
}),
c.isEmpty(e)
? h.clearRestError()
: h.setRestError(
Object.keys(e).map(function (t) {
return e[t]
})
)),
[2]
)
}
})
})
})
)
}
_ &&
this.toDispose.push(
C.reaction(
function () {
return h.valid
},
function (e) {
return _(e, i.props)
}
)
),
w.length &&
this.toDispose.push(
this.addHook(function () {
h.valid &&
w.forEach(function (e) {
return !l.evalExpression(e.rule, h.data) && h.addRestError(e.message, e.name)
})
})
),
g.isEffectiveApi(a, h.data, o, s)
? h
.fetchInitData(a, h.data, {
successMessage: m,
errorMessage: b,
onSuccess: function (e, t) {
if ((h.setValues(t), g.isEffectiveApi(d, h.data) && !h.data[u || 'finished']))
return c.until(
function () {
return h.checkRemote(d, h.data)
},
function (e) {
return e && e[u || 'finished']
},
function (e) {
return (i.asyncCancel = e)
},
p
)
}
})
.then(this.initInterval)
.then(this.onInit)
: setTimeout(this.onInit.bind(this), 4),
D &&
(window.addEventListener('beforeunload', this.beforePageUnload),
(this.unBlockRouting = null !== (t = null === (e = A.blockRouting) || void 0 === e ? void 0 : e.call(A, this.blockRouting)) && void 0 !== t ? t : void 0))
}),
(t.prototype.componentDidUpdate = function (e) {
var t = this.props,
i = t.store
if (g.isApiOutdated(e.initApi, t.initApi, e.data, t.data)) {
var r = t.fetchSuccess,
n = t.fetchFailed
i[i.hasRemoteData ? 'fetchData' : 'fetchInitData'](t.initApi, i.data, { successMessage: r, errorMessage: n }).then(this.initInterval).then(this.dispatchInited)
}
}),
(t.prototype.componentWillUnmount = function () {
var e
;(this.mounted = !1),
clearTimeout(this.timer),
this.lazyEmitChange.cancel(),
this.asyncCancel && this.asyncCancel(),
this.toDispose.forEach(function (e) {
return e()
}),
(this.toDispose = []),
window.removeEventListener('beforeunload', this.beforePageUnload),
null === (e = this.unBlockRouting) || void 0 === e || e.call(this)
}),
(t.prototype.getNormalizedRules = function () {
var e = this.props,
t = e.rules,
i = e.translate
return !Array.isArray(t) || t.length < 1
? []
: t
.map(function (e) {
return n.__assign(n.__assign({}, e), e.message && 'string' == typeof e.message ? {} : { message: i('Form.rules.message') })
})
.filter(function (e) {
return e.rule && 'string' == typeof e.rule
})
}),
(t.prototype.dispatchInited = function (e) {
var t
return n.__awaiter(this, void 0, void 0, function () {
var i, r, a, o
return n.__generator(this, function (s) {
switch (s.label) {
case 0:
return (
(i = this.props),
(r = i.data),
(a = i.store),
(o = i.dispatchEvent),
!y.isAlive(a) || a.fetching
? [2, e]
: [
4,
o(
'inited',
v.createObject(
r,
n.__assign(n.__assign({}, null == e ? void 0 : e.data), {
responseData: null !== (t = null == e ? void 0 : e.data) && void 0 !== t ? t : {},
responseStatus: a.error ? 1 : 0,
responseMsg: a.msg
})
)
)
]
)
case 1:
return [2, s.sent()]
}
})
})
}),
(t.prototype.blockRouting = function () {
var e = this.props.store,
t = this.props,
i = t.promptPageLeaveMessage
if (t.promptPageLeave && e.modified) return i || '\u65b0\u7684\u4fee\u6539\u6ca1\u6709\u4fdd\u5b58\uff0c\u786e\u8ba4\u8981\u79bb\u5f00\uff1f'
}),
(t.prototype.beforePageUnload = function (e) {
this.blockRouting() && (e.preventDefault(), (e.returnValue = ''))
}),
(t.prototype.onInit = function () {
return n.__awaiter(this, void 0, void 0, function () {
var e, t, i, r, a, o, s, l, d, c
return n.__generator(this, function (u) {
switch (u.label) {
case 0:
return (
(e = this.props),
(t = e.onInit),
(i = e.store),
(r = e.persistData),
(a = e.submitOnInit),
e.dispatchEvent,
y.isAlive(i)
? ((o = v.cloneObject(i.data)),
(s = i.initedAt),
i.setInited(!0),
(l = this.hooks.init || []),
(d = T.default(l, function (e) {
return 'prev' === e.__enforce ? 'prev' : 'post' === e.__enforce ? 'post' : 'normal'
})),
[
4,
Promise.all(
(d.prev || []).map(function (e) {
return e(o)
})
)
])
: [2]
)
case 1:
return (
u.sent(),
[
4,
Promise.all(
(d.normal || []).map(function (e) {
return l.includes(e) && e(o)
})
)
]
)
case 2:
return (
u.sent(),
[
4,
Promise.all(
(d.post || []).map(function (e) {
return l.includes(e) && e(o)
})
)
]
)
case 3:
return (
u.sent(),
y.isAlive(i)
? (i.initedAt !== s && (o = n.__assign(n.__assign({}, o), i.data)),
r && (i.getLocalPersistData(), (o = v.cloneObject(i.data))),
t && t(o, this.props),
[4, this.dispatchInited({ data: o })])
: [2]
)
case 4:
return (null == (c = u.sent()) ? void 0 : c.prevented) || (a && this.handleAction(void 0, { type: 'submit' }, i.data)), [2]
}
})
})
}),
(t.prototype.reload = function (e, t, i, r) {
return n.__awaiter(this, void 0, void 0, function () {
var e,
i,
a,
o,
s,
l,
d,
u,
p,
h,
f = this
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return t
? [2, this.receive(t)]
: ((e = this.props),
(i = e.store),
(a = e.initApi),
(o = e.initAsyncApi),
(s = e.initFinishedField),
(l = e.messages),
(d = l.fetchSuccess),
(u = l.fetchFailed),
g.isEffectiveApi(o, i.data) && i.updateData((((h = {})[s || 'finished'] = !1), h)),
(p = void 0),
g.isEffectiveApi(a, i.data)
? [
4,
i.fetchInitData(a, i.data, {
successMessage: d,
errorMessage: u,
silent: r,
onSuccess: function (e, t) {
if ((i.setValues(t), g.isEffectiveApi(o, i.data) && !i.data[s || 'finished']))
return c.until(
function () {
return i.checkRemote(o, i.data)
},
function (e) {
return e && e[s || 'finished']
},
function (e) {
return (f.asyncCancel = e)
}
)
}
})
]
: [3, 2])
case 1:
return (null == (p = n.sent()) ? void 0 : p.ok) && (this.initInterval(p), i.reset(void 0, !1)), [3, 3]
case 2:
i.reset(void 0, !1), (n.label = 3)
case 3:
return this.dispatchInited(p), [2]
}
})
})
}),
(t.prototype.receive = function (e, t, i) {
return this.props.store.updateData(e, void 0, i), this.reload()
}),
(t.prototype.silentReload = function (e, t) {
this.reload(e, t, void 0, !0)
}),
(t.prototype.initInterval = function (e) {
var t = this.props,
i = t.interval,
r = t.silentPolling,
n = t.stopAutoRefreshWhen,
a = t.data
return (
clearTimeout(this.timer),
(null == e ? void 0 : e.ok) && i && this.mounted && (!n || !l.evalExpression(n, a)) && (this.timer = setTimeout(r ? this.silentReload : this.reload, Math.max(i, 1e3))),
e
)
}),
(t.prototype.isValidated = function () {
return this.props.store.validated
}),
(t.prototype.validate = function (e, t, i, r) {
return (
void 0 === t && (t = !1),
void 0 === i && (i = !0),
void 0 === r && (r = !1),
n.__awaiter(this, void 0, void 0, function () {
var a, o, s, d, c, u, p
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return (a = this.props), (o = a.store), (s = a.dispatchEvent), (d = a.data), (c = a.messages), (u = a.translate), r ? [3, 2] : [4, this.flush()]
case 1:
n.sent(), (n.label = 2)
case 2:
return [4, o.validate(this.hooks.validate || [], e, t, !1 === i ? '' : 'string' == typeof (null == c ? void 0 : c.validateFailed) ? u(l.filter(c.validateFailed, o.data)) : void 0)]
case 3:
return (p = n.sent()), s(p ? 'validateSucc' : 'validateError', d), [2, p]
}
})
})
)
}),
(t.prototype.setErrors = function (e, t) {
void 0 === t && (t = 'remote'), this.props.store.setFormItemErrors(e, t)
}),
(t.prototype.clearErrors = function () {
return this.props.store.clearErrors()
}),
(t.prototype.getValues = function () {
var e = this.props.store
return this.flush(), e.data
}),
(t.prototype.setValues = function (e, t) {
var i = this.props.store
this.flush(), i.setValues(e, void 0, t)
}),
(t.prototype.submit = function (e, t, i) {
return (
void 0 === t && (t = !1),
void 0 === i && (i = !1),
n.__awaiter(this, void 0, void 0, function () {
var r, a, o, s, d, c, u
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return (r = this.props), (a = r.store), (o = r.messages), (s = r.translate), (d = r.dispatchEvent), (c = r.data), i ? [3, 2] : [4, this.flush()]
case 1:
n.sent(), (n.label = 2)
case 2:
return (
(u = function () {
return d('validateError', c)
}),
[2, a.submit(e, this.hooks.validate || [], 'string' == typeof (null == o ? void 0 : o.validateFailed) ? s(l.filter(o.validateFailed, a.data)) : void 0, u, t)]
)
}
})
})
)
}),
(t.prototype.flush = function () {
return n.__awaiter(this, void 0, void 0, function () {
var e
return n.__generator(this, function (t) {
switch (t.label) {
case 0:
return (
t.trys.push([0, , 4, 5]),
this.flushing
? [2]
: ((this.flushing = !0),
(e = this.hooks.flush || []),
[
4,
Promise.all(
e.map(function (e) {
return e()
})
)
])
)
case 1:
return t.sent(), this.emitting ? [3, 3] : [4, this.lazyEmitChange.flush()]
case 2:
t.sent(), (t.label = 3)
case 3:
return [3, 5]
case 4:
return (this.flushing = !1), [7]
case 5:
return [2]
}
})
})
}),
(t.prototype.reset = function () {
var e = this.props,
t = e.store,
i = e.onReset
t.reset(i)
}),
(t.prototype.addHook = function (e, t, i) {
var r = this
void 0 === t && (t = 'validate'), (this.hooks[t] = this.hooks[t] || [])
var n = 'flush' === t ? e : c.promisify(e)
return (
(n.__enforce = i),
this.hooks[t].push(n),
function () {
r.removeHook(e, t), (e = c.noop)
}
)
}),
(t.prototype.removeHook = function (e, t) {
void 0 === t && (t = 'validate')
var i = this.hooks[t]
if (i)
for (var r = 0, n = i.length; r < n; r++) {
var a = i[r]
;(a !== e && a.raw !== e) || (i.splice(r, 1), n--, r--)
}
}),
(t.prototype.handleChange = function (e, t, i, r) {
void 0 === r && (r = !1)
var n = this.props,
a = n.store,
o = n.formLazyChange,
s = n.persistDataKeys
'string' == typeof t && (a.changeValue(t, e, r), r || (!1 === o ? this.emitChange : this.lazyEmitChange)(i), a.persistData && a.inited && a.setLocalPersistData(s))
}),
(t.prototype.formItemDispatchEvent = function (e, t) {
return (0, this.props.dispatchEvent)(e, t)
}),
(t.prototype.emitChange = function (e, t) {
return (
void 0 === t && (t = !1),
n.__awaiter(this, void 0, void 0, function () {
var i, r, a, o, s, l, d, u, p
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return (
n.trys.push([0, , 4, 5]),
(this.emitting = !0),
(i = this.props),
(r = i.onChange),
(a = i.store),
(o = i.submitOnChange),
(s = i.dispatchEvent),
(l = i.data),
y.isAlive(a)
? ((d = c.difference(a.data, a.pristine)),
!t || (Object.keys(d).length && !S.default(a.data, this.emittedData))
? ((this.emittedData = a.data), (u = [a.data, d, this.props]), [4, s('change', v.createObject(l, a.data))])
: [2])
: [2]
)
case 1:
return (
(null == (p = n.sent()) ? void 0 : p.prevented) || (r && r.apply(null, u)),
a.clearRestError(),
t || !(e || (o && a.inited)) ? [3, 3] : [4, this.handleAction(void 0, { type: 'submit', skipFormFlush: !0 }, a.data)]
)
case 2:
n.sent(), (n.label = 3)
case 3:
return [3, 5]
case 4:
return (this.emitting = !1), [7]
case 5:
return [2]
}
})
})
)
}),
(t.prototype.handleBulkChange = function (e, t) {
var i = this.props
i.onChange
var r = i.store,
n = i.formLazyChange
r.setValues(e), (!1 === n ? this.emitChange : this.lazyEmitChange)(t)
}),
(t.prototype.handleFormSubmit = function (e) {
var t = this.props,
i = t.preventEnterSubmit,
r = t.onActionSensor,
n = t.close
if ((e.preventDefault(), i)) return !1
var a = this.handleAction(e, { type: 'submit', close: n }, this.props.store.data)
return null == r || r(a), a
}),
(t.prototype.handleReset = function (e) {
var t = this.props.onReset
return function (i) {
t && t(i, e)
}
}),
(t.prototype.handleAction = function (e, t, i, r, a) {
var o, s
return (
void 0 === r && (r = !1),
n.__awaiter(this, void 0, void 0, function () {
var d,
u,
p,
h,
m,
b,
y,
_,
C,
D,
A,
w,
F,
k,
E,
S,
T,
I,
R,
O,
P,
x,
j,
N,
M,
z,
L,
V,
B,
H,
W,
Q,
U,
q,
$ = this
return n.__generator(this, function (K) {
switch (K.label) {
case 0:
return (
(d = this.props),
(u = d.store),
(p = d.onSubmit),
(h = d.api),
(m = d.asyncApi),
(b = d.finishedField),
(y = d.checkInterval),
(_ = d.messages),
(C = _.saveSuccess),
(D = _.saveFailed),
(A = d.resetAfterSubmit),
(w = d.clearAfterSubmit),
(F = d.onAction),
(k = d.onSaved),
(E = d.onReset),
(S = d.onFinished),
(T = d.onFailed),
(I = d.redirect),
(R = d.reload),
(O = d.target),
(P = d.env),
(x = d.onChange),
(j = d.clearPersistDataAfterSubmit),
(N = d.trimValues),
(M = d.dispatchEvent),
(z = d.translate),
t.skipFormFlush ? [3, 2] : [4, this.flush()]
)
case 1:
K.sent(), (K.label = 2)
case 2:
return (
N && u.trimValues(),
i === this.props.data && (i = u.data),
Array.isArray(t.required) && t.required.length
? (u.clearErrors(),
(L = t.required.map(function (e) {
return { name: e, rules: { isRequired: !0 } }
})),
[4, u.validateFields(L)])
: [3, 6]
)
case 3:
return K.sent() ? [3, 5] : [4, M('validateError', this.props.data)]
case 4:
return (null == (Q = K.sent()) ? void 0 : Q.prevented) || P.notify('error', z('Form.validateFailed')), [2, Promise.reject(z('Form.validateFailed'))]
case 5:
u.clearErrors(), (K.label = 6)
case 6:
return 'submit' !== t.type && 'submit' !== t.actionType && 'confirm' !== t.actionType && 'reset-and-submit' !== t.actionType && 'clear-and-submit' !== t.actionType
? [3, 8]
: ((V = this.props),
(B = V.dispatchEvent),
(H = V.onEvent),
(W = null === (s = null === (o = null == H ? void 0 : H.submit) || void 0 === o ? void 0 : o.actions) || void 0 === s ? void 0 : s.length),
[4, B('submit', this.props.data)])
case 7:
return (null == (Q = K.sent()) ? void 0 : Q.prevented) || W
? [2]
: (u.setCurrentAction(t, this.props.resolveDefinitions),
'reset-and-submit' === t.actionType ? u.reset(this.handleReset(t)) : 'clear-and-submit' === t.actionType && u.clear(this.handleReset(t)),
[
2,
this.submit(
function (e) {
return n.__awaiter($, void 0, void 0, function () {
var r,
o,
s = this
return n.__generator(this, function (d) {
switch (d.label) {
case 0:
return p ? [4, p(e, t)] : [3, 2]
case 1:
if (!1 === d.sent()) return [2, Promise.resolve(!1)]
d.label = 2
case 2:
if ((B('validateSucc', this.props.data), O))
this.submitToTarget(f.filterTarget(O, e), e), j && u.clearLocalPersistData(), B('submitSucc', v.createObject(this.props.data, e))
else if ('reload' === t.actionType) t.target && this.reloadTarget(f.filterTarget(t.target, e), e)
else {
if ('dialog' === t.actionType)
return [
2,
new Promise(function (e) {
u.openDialog(
i,
void 0,
function (i, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, i, r), e({ confirmed: i, value: r })
},
a || s.context
)
})
]
if ('drawer' === t.actionType)
return [
2,
new Promise(function (e) {
u.openDrawer(i, void 0, function (i, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, i, r), e({ confirmed: i, value: r })
})
})
]
if (g.isEffectiveApi(t.api || h, e))
return (
(r = t.asyncApi || m),
g.isEffectiveApi(r, u.data) && u.updateData((((o = {})[b || 'finished'] = !1), o)),
[
2,
u
.saveRemote(t.api || h, e, {
successMessage: 'string' == typeof C ? l.filter(C, u.data) : void 0,
errorMessage: 'string' == typeof D ? l.filter(D, u.data) : void 0,
onSuccess: function (e) {
return n.__awaiter(s, void 0, void 0, function () {
var t,
i = this
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return j && u.clearLocalPersistData(), [4, B('submitSucc', v.createObject(this.props.data, { result: e }))]
case 1:
return (
(t = n.sent()),
!g.isEffectiveApi(r, u.data) || u.data[b || 'finished']
? [2, { cbResult: null, dispatcher: t }]
: [
2,
{
cbResult: c
.until(
function () {
return u.checkRemote(r, u.data)
},
function (e) {
return e && e[b || 'finished']
},
function (e) {
return (i.asyncCancel = e)
},
y
)
.then(function (e) {
B('asyncApiFinished', u.data)
}),
dispatcher: t
}
]
)
}
})
})
},
onFailed: function (e) {
return n.__awaiter(s, void 0, void 0, function () {
return n.__generator(this, function (t) {
switch (t.label) {
case 0:
return [4, B('submitFail', v.createObject(this.props.data, { error: e }))]
case 1:
return [2, { dispatcher: t.sent() }]
}
})
})
}
})
.then(function (i) {
return n.__awaiter(s, void 0, void 0, function () {
var r, a
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return k && k(e, i), (r = t.feedback || this.props.feedback) && c.isVisible(r, u.data) ? [4, this.openFeedback(r, u.data)] : [3, 2]
case 1:
if (((a = n.sent()), r.skipRestOnCancel && !a)) throw new c.SkipOperation()
if (r.skipRestOnConfirm && a) throw new c.SkipOperation()
n.label = 2
case 2:
return [2, v.injectObjectChain(u.data, { __payload: e, __response: i })]
}
})
})
})
]
)
j && u.clearLocalPersistData(), B('submitSucc', v.createObject(this.props.data, e))
}
return [2, Promise.resolve(null)]
}
})
})
},
r,
!0
)
.then(function (e) {
if (!1 === e) return u.data
if (S && !1 === S(e, t)) return e
if ((A && u.reset($.handleReset(t)), w && u.clear($.handleReset(t)), j && u.clearLocalPersistData(), t.redirect || I)) {
var i = l.filter(t.redirect || I, u.data)
i && P.jumpTo(i, t, u.data)
} else (t.reload || R) && $.reloadTarget(f.filterTarget(t.reload || R, u.data), u.data)
return t.close && $.closeTarget(t.close), e
})
.catch(function (e) {
if ((T && T(e, u.errors), r)) throw e
})
])
case 8:
if ('reset' === t.type || 'reset' === t.actionType) u.setCurrentAction(t, this.props.resolveDefinitions), u.reset(E)
else if ('clear' === t.actionType) u.setCurrentAction(t, this.props.resolveDefinitions), u.clear(E)
else {
if ('validate' === t.actionType) return u.setCurrentAction(t, this.props.resolveDefinitions), [2, this.validate(!0, r, !0, !0)]
if ('dialog' === t.actionType)
return (
u.setCurrentAction(t, this.props.resolveDefinitions),
[
2,
new Promise(function (e) {
u.openDialog(
i,
void 0,
function (i, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, i, r), e({ confirmed: i, value: r })
},
a || $.context
)
})
]
)
if ('drawer' === t.actionType)
return (
u.setCurrentAction(t, this.props.resolveDefinitions),
[
2,
new Promise(function (e) {
u.openDrawer(i, void 0, function (i, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, i, r), e({ confirmed: i, value: r })
})
})
]
)
if ('ajax' === t.actionType)
return (
u.setCurrentAction(t, this.props.resolveDefinitions),
g.isEffectiveApi(t.api)
? ((U = (t.messages && t.messages.success) || C),
(q = (t.messages && t.messages.failed) || D),
[
2,
u
.saveRemote(t.api, i, {
successMessage: z('string' == typeof U ? l.filter(U, u.data) : void 0),
errorMessage: z('string' == typeof q ? l.filter(q, u.data) : void 0)
})
.then(function (e) {
return n.__awaiter($, void 0, void 0, function () {
var i
return n.__generator(this, function (r) {
switch (r.label) {
case 0:
return e && x && x(u.data, c.difference(u.data, u.pristine), this.props), u.validated ? [4, this.validate(!0)] : [3, 2]
case 1:
r.sent(), (r.label = 2)
case 2:
return t.feedback && c.isVisible(t.feedback, u.data) ? [4, this.openFeedback(t.feedback, u.data)] : [3, 4]
case 3:
r.sent(), (r.label = 4)
case 4:
return (
(i = t.redirect && l.filter(t.redirect, u.data)) && P.jumpTo(i, t, u.data),
t.reload && this.reloadTarget(f.filterTarget(t.reload, u.data), u.data),
t.close && this.closeTarget(t.close),
[2]
)
}
})
})
})
.catch(function (e) {
if ((T && T(e, u.errors), r || t.countDown)) throw e
})
])
: [2, P.alert(z('\u5f53 actionType \u4e3a ajax \u65f6\uff0c\u8bf7\u8bbe\u7f6e api \u5c5e\u6027'))]
)
if ('reload' === t.actionType) u.setCurrentAction(t, this.props.resolveDefinitions), t.target ? this.reloadTarget(f.filterTarget(t.target, i), i) : this.receive(i)
else if (F) return [2, F(e, t, i, r, a || this.context)]
}
K.label = 9
case 9:
return [2]
}
})
})
)
}),
(t.prototype.handleQuery = function (e) {
return this.props.initApi
? !((null == e ? void 0 : e.hasOwnProperty('orderBy')) && !g.isApiOutdated(this.props.initApi, this.props.initApi, this.props.store.data, v.createObject(this.props.store.data, e))) &&
void this.receive(e)
: !!this.props.onQuery && this.props.onQuery(e)
}),
(t.prototype.handleDialogConfirm = function (e, t, i, r) {
var n = this.props,
a = n.store
n.onChange, (t.mergeData || a.action.mergeData) && 1 === e.length && e[0] && 'form' === r[0].props.type && this.handleBulkChange(e[0], !1), a.closeDialog(!0, e)
}),
(t.prototype.handleDialogClose = function (e) {
void 0 === e && (e = !1), this.props.store.closeDialog(e)
}),
(t.prototype.handleDrawerConfirm = function (e, t, i, r) {
var n = this.props,
a = n.store,
o = n.onChange
;(t.mergeData || a.action.mergeData) && 1 === e.length && e[0] && 'form' === r[0].props.type && (a.updateData(e[0]), o && o(a.data, c.difference(a.data, a.pristine), this.props)),
a.closeDrawer(!0, e)
}),
(t.prototype.handleDrawerClose = function () {
this.props.store.closeDrawer(!1)
}),
(t.prototype.submitToTarget = function (e, t) {}),
(t.prototype.reloadTarget = function (e, t) {}),
(t.prototype.closeTarget = function (e) {}),
(t.prototype.openFeedback = function (e, t) {
var i = this
return new Promise(function (r) {
var n = i.props.store
n.setCurrentAction({ type: 'button', actionType: 'dialog', dialog: e }, i.props.resolveDefinitions),
n.openDialog(
t,
void 0,
function (e) {
r(e)
},
i.context
)
})
}),
(t.prototype.buildActions = function () {
var e = this.props,
t = e.actions,
i = e.submitText,
r = e.body,
n = e.translate,
a = e.loadingConfig
return void 0 !== t ||
!i ||
(Array.isArray(r) &&
r.some(function (e) {
var t, i, r
return (
e &&
!!~['submit', 'button', 'button-group', 'reset'].indexOf(
(null === (i = null === (t = null == e ? void 0 : e.body) || void 0 === t ? void 0 : t[0]) || void 0 === i ? void 0 : i.type) ||
(null === (r = null == e ? void 0 : e.body) || void 0 === r ? void 0 : r.type) ||
e.type
)
)
}))
? t
: [{ type: 'submit', label: n(i), primary: !0, loadingConfig: a }]
}),
(t.prototype.renderFormItems = function (e, t, i) {
void 0 === t && (t = ''), void 0 === i && (i = {})
var r = Array.isArray(e.body) ? e.body : e.body ? [e.body] : []
return (
!r.length && e.controls && (console.warn('\u8bf7\u7528 body \u4ee3\u66ff controls'), (r = [{ size: 'none', type: 'wrapper', wrap: !1, controls: e.controls }])),
this.renderChildren(r, t, i)
)
}),
(t.prototype.renderChildren = function (e, t, i) {
var r = this
if ((void 0 === i && (i = {}), (e = e || []), Array.isArray(e) || (e = [e]), 'row' === this.props.mode)) {
if (
(this.props.classPrefix,
!(e = k.default(e).filter(function (e) {
if (e.hidden || !1 === e.visible) return !1
var t = d.getExprProperties(e, r.props.store.data, void 0, r.props)
return !t.hidden && !1 !== t.visible
})).length)
)
return null
var a = this.props.classnames
return R(
'div',
{ className: a('Form-row') },
e.map(function (e, t) {
return ~['hidden', 'formula'].indexOf(e.type) || 'inline' === e.mode
? r.renderChild(e, t, i)
: R('div', { key: t, className: a('Form-col', e.columnClassName) }, r.renderChild(e, '', n.__assign(n.__assign({}, i), { mode: 'row' })))
})
)
}
return e.map(function (e, n) {
return r.renderChild(e, n, i, t)
})
}),
(t.prototype.renderChild = function (e, t, i, r) {
if ((void 0 === t && (t = ''), void 0 === i && (i = {}), void 0 === r && (r = ''), !e)) return null
'string' == typeof e && (e = { type: 'tpl', tpl: e })
var a = n.__assign(n.__assign({}, this.props), i),
o = this.props.store,
s = a.render,
l = a.mode,
d = a.horizontal,
c = a.store,
u = a.disabled,
p = a.controlWidth,
h = a.resolveDefinitions,
f = a.lazyChange
a.formLazyChange, a.dispatchEvent
var v = a.labelAlign,
m = a.labelWidth
a.static, a.canAccessSuperData
var g = {
formStore: o,
data: c.data,
key: ''
.concat(e.name || '', '-')
.concat(e.type, '-')
.concat(t),
formInited: o.inited,
formSubmited: o.submited,
formMode: l,
formHorizontal: d,
formLabelAlign: 'left' !== v ? 'right' : v,
formLabelWidth: m,
controlWidth: p,
disabled: u || e.disabled || !!o.loading || void 0,
btnDisabled: u || o.loading || o.validating,
onAction: this.handleAction,
onQuery: this.handleQuery,
onChange: this.handleChange,
onBulkChange: this.handleBulkChange,
addHook: this.addHook,
removeHook: this.removeHook,
renderFormItems: this.renderFormItems,
formItemDispatchEvent: this.formItemDispatchEvent,
formPristine: o.pristine
},
b = n.__assign({}, e)
return b.$ref && (b = n.__assign(n.__assign({}, h(b.$ref)), b)), !1 === f && (b.changeImmediately = !0), s(''.concat(r ? ''.concat(r, '/') : '').concat(t), b, g)
}),
(t.prototype.renderBody = function () {
var e = this.props,
t = e.body,
i = e.mode,
r = e.className,
a = e.classnames,
o = e.debug,
s = e.debugConfig,
l = e.$path,
d = e.store,
u = e.columnCount,
p = e.render,
h = e.staticClassName,
f = e.static,
v = void 0 !== f && f,
m = e.loadingConfig
e.testid
var g = d.restError,
b = this.props.wrapperComponent || (/(?:\/|^)form\//.test(l) ? 'div' : 'form'),
y = c.repeatCount(u && Array.isArray(t) ? (u - (t.length % u)) % u : 0, function (e) {
return R('div', { className: a('Form-item Form-item--'.concat(i, ' is-placeholder')), key: e })
})
return R(
b,
{
className: a('Form', 'Form--'.concat(i || 'normal'), u ? 'Form--column Form--column-'.concat(u) : null, h && v ? h : r, v ? 'Form--isStatic' : null),
onSubmit: this.handleFormSubmit,
noValidate: !0
},
R('input', { type: 'submit', style: { display: 'none' } }),
o ? p('form-debug-json', n.__assign({ type: 'json', value: d.data, ellipsisThreshold: 120, className: a('Form--debug') }, s)) : null,
p('spinner', { type: 'spinner' }, { overlay: !0, show: d.loading, loadingConfig: m }),
this.renderFormItems({ body: t }),
y,
g && g.length
? R(
'ul',
{ className: a('Form-restError', 'Form-feedback') },
g.map(function (e, t) {
return R('li', { key: t }, e)
})
)
: null,
p('modal', n.__assign(n.__assign({}, d.action && d.action.dialog), { type: 'dialog' }), {
key: 'dialog',
data: d.dialogData,
onConfirm: this.handleDialogConfirm,
onClose: this.handleDialogClose,
show: d.dialogOpen
}),
p('modal', n.__assign(n.__assign({}, d.action && d.action.drawer), { type: 'drawer' }), {
key: 'drawer',
data: d.drawerData,
onConfirm: this.handleDrawerConfirm,
onClose: this.handleDrawerClose,
show: d.drawerOpen
})
)
}),
(t.prototype.render = function () {
var e = this.props
e.$path, e.$schema
var t = e.wrapWithPanel,
i = e.render,
r = e.title,
n = e.store,
a = e.panelClassName,
o = e.headerClassName,
s = e.footerClassName,
l = e.footerWrapClassName,
d = e.actionsClassName,
c = e.bodyClassName,
u = e.classnames,
p = e.style,
h = e.affixFooter,
f = e.lazyLoad,
v = e.translate,
m = e.footer,
g = this.renderBody()
return (
t &&
(g = i(
'body',
{ type: 'panel', title: v(r) },
{
className: u(a, 'Panel--form'),
style: p,
formStore: this.props.store,
children: g,
actions: this.buildActions(),
onAction: this.handleAction,
onQuery: this.handleQuery,
disabled: n.loading,
btnDisabled: n.loading || n.validating,
headerClassName: o,
footer: m,
footerClassName: s,
footerWrapClassName: l,
actionsClassName: d,
bodyClassName: c,
affixFooter: h
}
)),
f && (g = R(b.default, null, g)),
g
)
}),
(t.defaultProps = {
title: 'Form.title',
submitText: 'Form.submit',
initFetch: !0,
wrapWithPanel: !0,
mode: 'normal',
collapsable: !1,
controlWidth: 'full',
horizontal: { left: 2, right: 10, offset: 2 },
columnCount: 0,
panelClassName: 'Panel--default',
messages: { fetchFailed: 'fetchFailed', saveSuccess: 'saveSuccess', saveFailed: 'saveFailed' },
wrapperComponent: '',
finishedField: 'finished',
initFinishedField: 'finished',
labelAlign: 'right'
}),
(t.propsList = [
'title',
'header',
'controls',
'tabs',
'fieldSet',
'submitText',
'initFetch',
'wrapWithPanel',
'mode',
'columnCount',
'collapsable',
'horizontal',
'panelClassName',
'messages',
'wrapperComponent',
'resetAfterSubmit',
'clearAfterSubmit',
'submitOnInit',
'submitOnChange',
'onInit',
'onReset',
'onSubmit',
'onChange',
'onFailed',
'onFinished',
'onValidate',
'onValidChange',
'onSaved',
'canAccessSuperData',
'lazyChange',
'formLazyChange',
'lazyLoad',
'formInited',
'simpleMode',
'inputOnly',
'value',
'actions',
'multiple'
]),
t
)
})(w.default.Component),
P = (function (e) {
function t(t, i) {
var r = e.call(this, t) || this
return i.registerComponent(r), r
}
return (
n.__extends(t, e),
(t.prototype.componentDidMount = function () {
if ((e.prototype.componentDidMount.call(this), this.props.autoFocus)) {
var t = this.context.getComponents(),
i = E.default(t, function (e) {
return e.focus
})
i &&
setTimeout(function () {
return i.focus()
}, 200)
}
}),
(t.prototype.componentWillUnmount = function () {
this.context.unRegisterComponent(this), e.prototype.componentWillUnmount.call(this)
}),
(t.prototype.doAction = function (e, t, i) {
return void 0 === t && (t = this.props.store.data), void 0 === i && (i = !1), this.handleAction(void 0, e, t, i)
}),
(t.prototype.handleAction = function (t, i, r, a, o) {
return (
void 0 === a && (a = !1),
n.__awaiter(this, void 0, void 0, function () {
var s
return n.__generator(this, function (l) {
return i.target && 'reload' !== i.actionType
? ((s = this.context),
[
2,
Promise.all(
i.target.split(',').map(function (e) {
var t = s.getComponentByName(e)
return t && t.doAction && t.doAction(n.__assign(n.__assign({}, i), { target: void 0 }), r, a)
})
)
])
: [2, e.prototype.handleAction.call(this, t, i, r, a, o)]
})
})
)
}),
(t.prototype.handleDialogConfirm = function (t, i, r, n) {
e.prototype.handleDialogConfirm.call(this, t, i, r, n)
var a = this.props.store,
o = this.context
i.reload ? o.reload(i.reload, r) : a.action && a.action.reload && o.reload(a.action.reload, r)
}),
(t.prototype.submitToTarget = function (e, t) {
this.context.send(e, t)
}),
(t.prototype.reloadTarget = function (e, t) {
this.context.reload(e, t)
}),
(t.prototype.closeTarget = function (e) {
this.context.close(e)
}),
(t.prototype.reload = function (t, i, r, a, o) {
return n.__awaiter(this, void 0, void 0, function () {
var s, l, d, u, p, h
return n.__generator(this, function (n) {
switch (n.label) {
case 0:
return i
? [2, this.receive(i, void 0, o)]
: ((s = this.context),
(l = ''),
(u = null),
t && ~(d = t.indexOf('.')) && ((l = t.substring(d + 1)), (t = t.substring(0, d))),
~(p = t ? t.indexOf('?') : -1) && ((u = m.dataMapping(c.qsparse(t.substring(p + 1)), r)), (t = t.substring(0, p))),
t && (h = s.getComponentByName(t)) && h.reload ? (h.reload(l, u, r), [3, 4]) : [3, 1])
case 1:
return '*' !== t ? [3, 3] : [4, e.prototype.reload.call(this, t, i, r, a)]
case 2:
return (
n.sent(),
s.getComponents().forEach(function (e) {
return e.reload && e.reload('', u, r)
}),
[3, 4]
)
case 3:
return [2, e.prototype.reload.call(this, t, i, r, a)]
case 4:
return [2]
}
})
})
}),
(t.prototype.receive = function (t, i, r) {
return n.__awaiter(this, void 0, void 0, function () {
var a, o, s, l
return n.__generator(this, function (n) {
return i
? ((a = this.context), (o = i.indexOf('.')), (s = ''), ~o && ((s = i.substring(1 + o)), (i = i.substring(0, o))), (l = a.getComponentByName(i)) && l.receive && l.receive(t, s), [2])
: [2, e.prototype.receive.call(this, t, void 0, r)]
})
})
}),
(t.prototype.setData = function (t, i) {
var r = this.props,
n = r.onChange,
a = r.store
e.prototype.setValues.call(this, t, i), n && n(a.data, c.difference(a.data, a.pristine), this.props)
}),
(t.prototype.getData = function () {
return this.getValues()
}),
(t.contextType = f.ScopedContext),
(t = n.__decorate(
[
o.Renderer({
type: 'form',
storeType: s.FormStore.name,
isolateScope: !0,
storeExtendsData: function (e) {
return e.inheritData
},
shouldSyncSuperStore: function (e, t, i) {
var r, n
if (
t.quickEditFormRef &&
t.onQuickChange &&
(c.isObjectShallowModified(i.data, t.data) ||
c.isObjectShallowModified(i.data.__super, t.data.__super) ||
c.isObjectShallowModified(null === (r = i.data.__super) || void 0 === r ? void 0 : r.__super, null === (n = t.data.__super) || void 0 === n ? void 0 : n.__super))
)
return !0
}
}),
n.__metadata('design:paramtypes', [Object, Object])
],
t
))
)
})(O)
;(t.FormRenderer = P), (t.default = O)
}) /*!node_modules/amis-core/lib/renderers/builtin.js*/
amis.define('cbbc3b2', function (e, r, n, t) {
'use strict'
var o = e('2464b09')
e('f9770e6')
var c = e('326ef36')
c.registerRenderer({ type: 'spinner', component: o.Placeholder }),
c.registerRenderer({ type: 'alert', component: o.Placeholder }),
c.registerRenderer({ type: 'dialog', component: o.Placeholder }),
c.registerRenderer({ type: 'drawer', component: o.Placeholder })
}) /*!node_modules/amis-core/lib/renderers/wrapControl.js*/
amis.define('a3b1ddf', function (e, a, t, l) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var i = e('68b98b9'),
o = e('ac704b9'),
n = e('5f94728'),
r = e('37efca2'),
d = e('9bf2913'),
s = e('939b8bb'),
u = e('3c9ad5f'),
m = e('1c1d73a'),
h = e('121d16c'),
p = e('668845d'),
c = e('0d0462d'),
v = e('2fb8d9c'),
f = e('8420da3'),
g = e('98ebec8'),
V = e('3f34d90'),
b = e('d9d4e46')
e('8dd52de'), e('22a4ae5'), e('5e0783e')
var x = e('e74b24f')
e('0910768'), e('c3389ff')
var C = e('3853df4')
function y(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('607aee2'),
e('5c95135'),
e('8b081ba'),
e('a3bbeb2'),
e('933bc12'),
e('3f15357'),
e('575a22c'),
e('8b641b6'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('e913672'),
e('1feaebc'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('e98f234'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var S = y(o),
E = y(n),
I = y(r),
N = y(v),
k = y(V),
F = e('ac704b9'),
_ = (F.default || F).createElement
;(F.default || F).Fragment,
(a.wrapControl = function (e) {
var a,
t = N.default(
f.withRootStore(
c.observer(
((a = (function (a) {
function t(t) {
var l,
o = this
;((o = a.call(this, t) || this).value = void 0), (o.lazyEmitChange = E.default(o.emitChange.bind(o), 250, { trailing: !0, leading: !1 }))
var n = o.props,
r = n.formStore,
m = n.formItem,
p = n.rootStore,
c = n.store,
v = n.onChange,
f = n.data,
V = n.inputGroupControl,
b = n.colIndex,
x = n.rowIndex,
y = n.$schema,
S = y.id,
I = y.type,
N = y.required,
F = y.validations,
_ = y.validationErrors,
q = y.unique,
$ = y.value,
O = y.extraName
y.multiple
var T = y.delimiter,
A = y.valueField,
B = y.labelField,
H = y.joinValues,
P = y.extractValue,
D = y.selectFirst,
M = y.autoFill,
w = y.clearValueOnHidden,
L = y.validateApi,
z = y.minLength,
R = y.maxLength,
j = y.validateOnChange,
W = y.label,
G = y.pagination
;(o.getValue = o.getValue.bind(o)),
(o.setValue = o.setValue.bind(o)),
(o.handleChange = o.handleChange.bind(o)),
(o.setPrinstineValue = o.setPrinstineValue.bind(o)),
(o.controlRef = o.controlRef.bind(o)),
(o.handleBlur = o.handleBlur.bind(o)),
(o.validate = o.validate.bind(o)),
(o.flushChange = o.flushChange.bind(o)),
(o.renderChild = o.renderChild.bind(o))
var U = o.props.$schema.name
if ((u.isExpression(U) && (U = C.tokenize(U, f)), !U)) return o
var J = o.props.value,
K = p.addStore({
id: s.guid(),
path: o.props.$path,
storeType: h.FormItemStore.name,
parentId: null == c ? void 0 : c.id,
name: U,
colIndex: void 0 !== b ? b : void 0,
rowIndex: void 0 !== x ? x : void 0
})
;((o.model = K),
null == m || m.addSubFormItem(K),
K.config(
i.__assign(i.__assign({}, k.default(i.__assign(i.__assign({}, e.defaultProps), o.props.$schema), ['multiple'])), {
id: S,
type: I,
required: t.required || N,
unique: q,
value: $,
isValueSchemaExp: u.isExpression($),
rules: F,
messages: _,
delimiter: T,
valueField: A,
labelField: B,
joinValues: H,
extractValue: P,
selectFirst: D,
autoFill: M,
clearValueOnHidden: w,
validateApi: L,
minLength: z,
maxLength: R,
validateOnChange: j,
label: W,
inputGroupControl: V,
extraName: O,
pagination: G
})
),
o.model.unique && (null === (l = null == r ? void 0 : r.parentStore) || void 0 === l ? void 0 : l.storeType) === d.ComboStore.name) && r.parentStore.bindUniuqueItem(K)
if ((null != J ? (K.changeTmpValue(J, 'controlled'), K.setIsControlled(!0)) : o.setInitialValue($), v && void 0 !== $ && void 0 !== K.tmpValue))
K.extraName ? (v((Q = K.splitExtraValue(K.tmpValue))[0], K.name, !1, !0), v(Q[1], K.extraName, !1, !0)) : v(K.tmpValue, K.name, !1, !0)
else if (v && void 0 === J && void 0 === (null == c ? void 0 : c.getValueByName(K.name, !1)) && (null == c ? void 0 : c.storeType) !== g.TableStore.name) {
var Q
if (K.extraName) v((Q = K.splitExtraValue(K.tmpValue))[0], K.name, !1, !0), v(Q[1], K.extraName, !1, !0)
else v(K.tmpValue, K.name, !1, !0)
}
return o
}
return (
i.__extends(t, a),
(t.prototype.componentDidMount = function () {
var e = this,
a = this.props
a.store, a.formStore
var t = a.$schema.validate,
l = a.addHook
;(this.hook3 = function () {
return e.lazyEmitChange.flush()
}),
null == l || l(this.hook3, 'flush')
var i = this.model
if (i && t) {
var o = s.promisify(t.bind(this.control))
;(this.hook2 = function () {
return (
i.clearError('control:valdiate'),
o(e.props.data, e.getValue(), i.name).then(function (e) {
;('string' == typeof e || Array.isArray(e)) && e && i.addError(e, 'control:valdiate')
})
)
}),
null == l || l(this.hook2)
}
null == i || i.init()
}),
(t.prototype.componentDidUpdate = function (e) {
var a,
t,
l,
o = this,
n = this.props,
r = this.model
if (r)
if (
(s.changedEffect(
[
'name',
'id',
'validations',
'validationErrors',
'value',
'defaultValue',
'required',
'unique',
'multiple',
'delimiter',
'valueField',
'labelField',
'joinValues',
'extractValue',
'selectFirst',
'autoFill',
'clearValueOnHidden',
'validateApi',
'minLength',
'maxLength',
'label',
'extraName',
'pagination'
],
e.$schema,
n.$schema,
function (e) {
r.config(i.__assign(i.__assign({}, e), { isValueSchemaExp: u.isExpression(n.$schema.value), inputGroupControl: null == n ? void 0 : n.inputGroupControl })),
e.hasOwnProperty('name') && o.setInitialValue(o.props.$schema.value)
}
),
n.required !== e.required && r.config({ required: n.required }),
void 0 !== n.value)
)
I.default(n.value, e.value) || I.default(n.value, r.tmpValue) || r.changeTmpValue(n.value, 'controlled')
else if (
void 0 !== n.defaultValue &&
u.isExpression(n.defaultValue) &&
(!I.default(n.defaultValue, e.defaultValue) || (n.data !== e.data && u.isNeedFormula(n.defaultValue, n.data, e.data)))
) {
var d = u.FormulaExec.formula(n.defaultValue, n.data),
m = u.FormulaExec.formula(e.defaultValue, e.data)
if (!I.default(d, m) && !I.default(d, r.tmpValue))
if ((r.changeTmpValue(d, 'formulaChanged'), r.extraName)) {
var h = r.splitExtraValue(d)
null === (a = n.onChange) || void 0 === a || a.call(n, h[0], r.name, !1), null === (t = n.onChange) || void 0 === t || t.call(n, h[1], r.extraName, !1)
} else null === (l = n.onChange) || void 0 === l || l.call(n, d, r.name, !1)
} else if (n.data !== e.data && (!r.emitedValue || I.default(r.emitedValue, r.tmpValue))) {
r.changeEmitedValue(void 0)
var p = r.extraName ? [x.getVariable(n.data, r.name, !1), x.getVariable(n.data, r.extraName, !1)] : x.getVariable(n.data, r.name, !1)
I.default(p, r.extraName ? r.splitExtraValue(r.tmpValue) : r.tmpValue) ||
(I.default(r.extraName ? p[0] : p, x.getVariable(e.data, r.name, !1)) && (!r.extraName || I.default(p[1], x.getVariable(e.data, r.extraName, !1)))) ||
(r.changeTmpValue(p, n.formInited && !e.formInited ? 'formInited' : 'dataChanged'), this.checkValidate())
}
}),
(t.prototype.componentWillUnmount = function () {
var e, a, t, l, i, o, n
this.hook && (null === (a = (e = this.props).removeHook) || void 0 === a || a.call(e, this.hook)),
this.hook2 && (null === (l = (t = this.props).removeHook) || void 0 === l || l.call(t, this.hook2)),
this.hook3 && (null === (o = (i = this.props).removeHook) || void 0 === o || o.call(i, this.hook3, 'flush')),
this.lazyEmitChange.cancel(),
null === (n = this.reaction) || void 0 === n || n.call(this),
this.disposeModel()
}),
(t.prototype.setInitialValue = function (e) {
var a = this.model,
t = this.props,
l = t.formStore,
i = t.data,
o = t.canAccessSuperData,
n = u.isExpression(e),
r = a.extraName
? [
x.getVariable(i, a.name, null != o ? o : null == l ? void 0 : l.canAccessSuperData),
x.getVariable(i, a.extraName, null != o ? o : null == l ? void 0 : l.canAccessSuperData)
]
: x.getVariable(i, a.name, null != o ? o : null == l ? void 0 : l.canAccessSuperData)
a.extraName &&
r.every(function (e) {
return void 0 === e
}) &&
(r = void 0),
void 0 === r && (e = n ? u.FormulaExec.formula(e, i) : u.replaceExpression(e)),
a.changeTmpValue(null != r ? r : e, void 0 !== r ? 'initialValue' : n ? 'formulaChanged' : 'defaultValue')
}),
(t.prototype.disposeModel = function () {
var e,
a = this.props,
t = a.formStore,
l = a.formItem,
i = a.rootStore
this.model &&
this.model.unique &&
(null == t ? void 0 : t.parentStore) &&
(null == t ? void 0 : t.parentStore.storeType) === d.ComboStore.name &&
t.parentStore.unBindUniuqueItem(this.model)
this.model &&
(l && p.isAlive(l) && l.removeSubFormItem(this.model),
this.model.clearValueOnHidden && (null === (e = this.model.form) || void 0 === e || e.deleteValueByName(this.model.name)),
p.isAlive(i) && i.removeStore(this.model)),
delete this.model
}),
(t.prototype.controlRef = function (e) {
var a = this,
t = this.props,
l = t.addHook,
i = t.removeHook
t.formStore
for (var o = t.formItemRef; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
if (e && e.validate && this.model) {
var n = this.model,
r = s.promisify(e.validate.bind(e))
;(this.hook = function () {
return (
n.clearError('component:valdiate'),
r(a.props.data, a.getValue(), n.name).then(function (e) {
;('string' == typeof e || Array.isArray(e)) && e && n.setError(e, 'component:valdiate')
})
)
}),
null == l || l(this.hook)
} else !e && this.hook && (null == i || i(this.hook), (this.hook = void 0))
null == o || o(e)
var d = this.control
this.control = e
var u = this.context
e ? u.registerComponent(this.control) : d && u.unRegisterComponent(d)
}),
(t.prototype.checkValidate = function () {
var e
if (this.model) {
var a = this.model.validated,
t = this.props,
l = t.formSubmited,
i = t.validateOnChange
!0 === i || (!1 !== i && (l || a)) ? this.validate() : !1 === i && (null === (e = this.model) || void 0 === e || e.reset())
}
}),
(t.prototype.validate = function () {
var e, a
return i.__awaiter(this, void 0, void 0, function () {
var t, l, o, n, r, s, u, m, h
return i.__generator(this, function (i) {
switch (i.label) {
case 0:
return this.model
? ((t = this.props),
(l = t.formStore),
(o = t.data),
(n = t.formItemDispatchEvent),
this.model.unique && (null == l ? void 0 : l.parentStore) && l.parentStore.storeType === d.ComboStore.name
? ((s = l.parentStore),
(u = s.uniques.get(this.model.name)),
(m = u.items.map(function (e) {
return e.validate(o)
})),
[4, Promise.all(m)])
: [3, 2])
: [2]
case 1:
return (r = i.sent()), [3, 4]
case 2:
return [4, this.model.validate(o)]
case 3:
;(r = [i.sent()]), (i.label = 4)
case 4:
return (
(h = !r.some(function (e) {
return !1 === e
})),
null === (e = null != n ? n : this.props.dispatchEvent) ||
void 0 === e ||
e(h ? 'formItemValidateSucc' : 'formItemValidateError', null !== (a = null == l ? void 0 : l.data) && void 0 !== a ? a : this.props.data),
[2, h]
)
}
})
})
}),
(t.prototype.flushChange = function () {
this.lazyEmitChange.flush()
}),
(t.prototype.handleChange = function (e, a, t) {
void 0 === a && (a = this.props.$schema.submitOnChange), void 0 === t && (t = !1)
var l = this.props
l.formStore
var i = l.onChange,
o = l.$schema,
n = o.type,
r = o.pipeOut,
d = o.changeImmediately,
s = l.formInited,
u = l.data
if (this.model && !~['service', 'group', 'hbox', 'panel', 'grid', 'input-group'].indexOf(n)) {
if (r) {
var m = this.model.value
e = b.callStrFunction.call(this, r, ['value', 'oldValue', 'data'], e, m, u)
}
this.model.changeTmpValue(e, 'input'), t || d || !s ? this.emitChange(a) : this.lazyEmitChange(a)
} else i && i.apply(null, arguments)
}),
(t.prototype.emitChange = function (e) {
void 0 === e && (e = this.props.$schema.submitOnChange)
var a = this.props,
t = a.formStore,
l = a.onChange,
i = a.$schema,
o = i.id,
n = i.label,
r = i.type,
d = i.onChange
i.maxLength, i.minLength
var s = a.data,
u = a.env
if ((a.validateOnChange, a.formSubmited, this.model)) {
var m = this.model,
h = this.model.tmpValue,
p = m.extraName ? [x.getVariable(s, m.name, !1), x.getVariable(s, m.extraName, !1)] : x.getVariable(s, m.name, !1)
if (
!(m.extraName ? I.default(p, h) : p === h) &&
('input-password' !== r && (null == u || u.tracker({ eventType: 'formItemChange', eventData: { id: o, name: m.name, label: n, type: r, value: h } }, this.props)),
this.model.changeEmitedValue(h),
!1 !== (null == d ? void 0 : d(h, p, this.model, t)) && this.model)
) {
if (m.extraName) {
var c = m.splitExtraValue(h)
null == l || l(c[0], m.name), null == l || l(c[1], m.extraName, !0 === e)
} else null == l || l(h, m.name, !0 === e)
this.checkValidate()
}
}
}),
(t.prototype.handleBlur = function (e) {
var a = this.props,
t = a.onBlur
a.$schema.validateOnBlur && this.model && this.validate(), t && t(e)
}),
(t.prototype.setPrinstineValue = function (e) {
if (this.model) {
var a = this.model,
t = this.props
t.formStore
var l = t.$schema.pipeOut,
i = t.onChange,
o = t.value,
n = t.data
if ((l && (e = b.callStrFunction.call(this, l, ['value', 'oldValue', 'data'], e, o, n)), a.extraName)) {
var r = a.splitExtraValue(e)
null == i || i(r[0], a.name, !1, !0), null == i || i(r[1], a.extraName, !1, !0)
} else null == i || i(e, a.name, !1, !0)
}
}),
(t.prototype.getValue = function () {
var e = this.props,
a = e.formStore,
t = e.data,
l = e.$schema,
i = this.model ? this.model.tmpValue : l.value
return l.pipeIn && (i = b.callStrFunction.call(this, l.pipeIn, ['value', 'store', 'data'], i, a, t)), i
}),
(t.prototype.setValue = function (e, a) {
var t,
l = this.props.onBulkChange
!a || (this.model && a === this.model.name) ? this.handleChange(e) : l && l((((t = {})[a] = e), t))
}),
(t.prototype.renderChild = function (e, a, t) {
void 0 === t && (t = {})
var l = this.props,
o = l.render,
n = l.data,
r = l.store,
d = this.model
return o(e, a, i.__assign({ data: d ? d.getMergedData(n || (null == r ? void 0 : r.data)) : n || (null == r ? void 0 : r.data) }, t))
}),
(t.prototype.render = function () {
var a,
t,
l,
o = this.props,
n = o.controlWidth,
r = o.disabled,
d = o.formMode,
s = o.$schema,
u = o.store,
m = o.data,
h = o.invisible,
p = o.defaultStatic
if (h) return null
var c = this.getValue(),
v = this.model,
f = {
defaultSize: n,
disabled: null != r ? r : s.disabled,
static: null !== (t = null !== (a = this.props.static) && void 0 !== a ? a : s.static) && void 0 !== t ? t : p,
formItem: this.model,
formMode: s.mode || d,
ref: this.controlRef,
data: m || (null == u ? void 0 : u.data),
name: null !== (l = null == v ? void 0 : v.name) && void 0 !== l ? l : s.name,
value: c,
changeMotivation: null == v ? void 0 : v.changeMotivation,
defaultValue: s.value,
formItemValue: c,
onChange: this.handleChange,
onBlur: this.handleBlur,
setValue: this.setValue,
getValue: this.getValue,
prinstine: v ? v.prinstine : void 0,
setPrinstineValue: this.setPrinstineValue,
onValidate: this.validate,
onFlushChange: this.flushChange
}
return _(e, i.__assign({}, this.props, f))
}),
t
)
})(S.default.Component)),
(a.displayName = 'WrapControl'.concat(e.displayName || e.name ? '('.concat(e.displayName || e.name, ')') : '')),
(a.contextType = m.ScopedContext),
(a.defaultProps = {}),
a)
)
),
e
)
return t
})
}) /*!node_modules/amis-core/lib/utils/style-helper.js*/
amis.define('f4cd1ba', function (e, t, r, o) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
a = e('939b8bb'),
i = e('7d5c8a5'),
c = e('e98f234'),
l = e('d837406'),
d = e('1c23cc0'),
u = e('a08e932'),
f = e('42c789c')
function s(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var b = s(i),
v = s(c),
p = s(l),
h = s(d),
m = s(u),
y = {
marginTop: 'margin-top',
marginRight: 'margin-right',
marginBottom: 'margin-bottom',
marginLeft: 'margin-left',
paddingTop: 'padding-top',
paddingRight: 'padding-right',
paddingBottom: 'padding-bottom',
paddingLeft: 'padding-left',
'top-border-width': 'border-top-width',
'right-border-width': 'border-right-width',
'bottom-border-width': 'border-bottom-width',
'left-border-width': 'border-left-width',
'top-border-style': 'border-top-style',
'right-border-style': 'border-right-style',
'bottom-border-style': 'border-bottom-style',
'left-border-style': 'border-left-style',
'top-border-color': 'border-top-color',
'right-border-color': 'border-right-color',
'bottom-border-color': 'border-bottom-color',
'left-border-color': 'border-left-color',
fontSize: 'font-size',
fontWeight: 'font-weight',
lineHeight: 'line-height'
},
g = { background: 'bg-color', radius: 'border' }
function w(e) {
var t,
r = e.classId,
o = e.doc,
n = e.before,
a = e.id,
i = (o = o || document).getElementById(r)
if (!i) {
;((i = o.createElement('style')).id = r), i.setAttribute('class', a || '')
var c = null === (t = o.getElementsByClassName(n || '')) || void 0 === t ? void 0 : t[0]
c ? c.before(i) : o.body.appendChild(i)
}
return i
}
function C(e) {
var t = e.style,
r = e.classId,
o = e.id,
n = w({ classId: 'amis-' + r, doc: e.doc, before: e.before, id: o })
;(n.innerHTML = t), t || n.remove()
}
function j(e, t, r, o, a) {
var i, c
if (!e || !t) return { value: '', origin: [] }
var l = [],
d = { default: '', hover: ':hover', active: ':hover:active', disabled: '.is-disabled' },
u = function (t) {
var n = e[t.key]
if (!n) return 'continue'
var i = t.key + '-' + (null == r ? void 0 : r.replace('u:', '')),
c = t.weights || {}
'number' == typeof (null == a ? void 0 : a.index) && (i += '-'.concat(a.index))
var u = { default: {}, hover: {}, active: {}, disabled: {} }
Object.keys(n).forEach(function (e) {
'$$id' !== e &&
n[e] &&
(~e.indexOf(':default')
? (u.default[e.replace(':default', '')] = n[e])
: ~e.indexOf(':hover')
? (u.hover[e.replace(':hover', '')] = n[e])
: ~e.indexOf(':active')
? (u.active[e.replace(':active', '')] = n[e])
: ~e.indexOf(':disabled')
? (u.disabled[e.replace(':disabled', '')] = n[e])
: (u.default[e] = n[e]))
}),
(function (e, t) {
t &&
['hover', 'active'].forEach(function (r) {
Object.keys(e[r]).forEach(function (o) {
if ('object' == typeof e[r][o])
Object.keys(e[r][o]).forEach(function (n) {
if ('inherit' === e[r][o][n])
if (e.default[o] && e.default[o][n]) e[r][o][n] = e.default[o][n]
else {
var a = g[o] || o
e[r][o][n] = t.default.body[a][n]
}
})
else if ('inherit' === e[r][o])
if (e.default[o] && e.default[o]) e[r][o] = e.default[o]
else {
var n = g[o] || o
e[r][o] = t.default.body[n]
}
})
})
})(u, o),
Object.keys(u).forEach(function (e) {
var t = c[e],
r = [],
o = function (e, o) {
;(e = y[e] || e),
(o = f.resolveVariableAndFilter(o, a, '| raw') || o),
r.push(''.concat(e.startsWith('--') ? e : m.default(e), ': ').concat(o + ((null == t ? void 0 : t.important) ? ' !important' : ''), ';'))
}
if (
(Object.keys(u[e]).forEach(function (t) {
if ('$$id' !== t) {
var r = u[e][t]
if ('object' == typeof r)
'radius' === t
? o('border-radius', [r['top-left-border-radius'] || 0, r['top-right-border-radius'] || 0, r['bottom-right-border-radius'] || 0, r['bottom-left-border-radius'] || 0].join(' '))
: Object.keys(r).forEach(function (e) {
if ('$$id' !== e) {
var t = r[e]
t && o(e, t)
}
})
else {
var n = r
'iconSize' === t ? (o('width', n), o('height', n), o('font-size', n)) : n && o(t, n)
}
}
}),
r.length > 0)
) {
var n = ((null == t ? void 0 : t.pre) || '') + i + ((null == t ? void 0 : t.suf) || ''),
s = (null == t ? void 0 : t.inner) || ''
l.push({
className: n + d[e] + s,
content: '.'
.concat(n + d[e], ' ')
.concat(s, '{\n ')
.concat(r.join('\n '), '\n}')
})
}
})
}
try {
for (var s = n.__values(t), b = s.next(); !b.done; b = s.next()) {
u(b.value)
}
} catch (e) {
i = { error: e }
} finally {
try {
b && !b.done && (c = s.return) && c.call(s)
} finally {
if (i) throw i.error
}
}
return {
value: l
.map(function (e) {
return e.content
})
.join('\n'),
origin: l
}
}
function x(e, t, r) {
Object.keys(e).forEach(function (o) {
if ('$$id' !== o)
if (v.default(e[o])) {
var n = t ? ''.concat(t, ' ').concat(o) : o
x(e[o], n, r)
} else '' === t ? (!r[o] && (r[o] = {}), (r[o] = e[o])) : (!r[t] && (r[t] = {}), (r[t][o] = e[o]))
})
}
;(t.addStyle = function (e, t) {
w({ classId: t }).innerHTML += e
}),
(t.findOrCreateStyle = w),
(t.formatInputThemeCss = function (e) {
if (e) {
var t = { inputControlClassName: {} },
r = (null == e ? void 0 : e.inputControlClassName) || {}
return (
Object.keys(r).forEach(function (e) {
~e.indexOf('font') && (t.inputControlClassName[e] = r[e])
}),
t
)
}
}),
(t.formatStyle = j),
(t.getValueByPath = function (e, t) {
try {
if (!e || !t) return null
for (var r = e.split('.'), o = b.default(t.component), n = 0; n < r.length; n++) o = o[r[n]]
return o
} catch (e) {
return null
}
}),
(t.inheritValueMap = g),
(t.insertCustomStyle = function (e) {
var t = e.themeCss,
r = e.classNames,
o = e.id,
n = e.defaultData,
a = e.customStyleClassPrefix,
i = e.doc,
c = e.data
if (t) {
var l = j(t, r, o, n, c).value
l = a ? ''.concat(a, ' ').concat(l) : l
var d = o.replace('u:', '')
'number' == typeof (null == c ? void 0 : c.index) && (d += '-'.concat(c.index)), C({ style: l, classId: d, doc: i, id: d.replace(/(-.*)/, ''), before: d.replace(/(-.*)/, '') })
}
}),
(t.insertEditCustomStyle = function (e) {
var t = e.customStyle,
r = e.id,
o = e.doc,
n = e.data,
i = {}
x(t, '', i)
var c = '',
l = ''
if (('number' == typeof (null == n ? void 0 : n.index) && (l = '-'.concat(n.index)), !h.default(i))) {
var d = 'wrapperCustomStyle-'.concat(null == r ? void 0 : r.replace('u:', '')).concat(l)
Object.keys(i).forEach(function (e) {
if (v.default(i[e]))
if ('root' === e) {
var t = p.default(i[e], function (e, t) {
return ''.concat(t, ': ').concat(f.resolveVariableAndFilter(e.replace(/['|"]/g, ''), n, '| raw') || e, ';')
})
c += '\n.'.concat(d, ' {\n ').concat(t.join('\n '), '\n}')
} else if (/^root:/.test(e)) {
t = p.default(i[e], function (e, t) {
return ''.concat(t, ': ').concat(f.resolveVariableAndFilter(e.replace(/['|"]/g, ''), n, '| raw') || e, ';')
})
var r = e.replace('root', '')
c += '\n.'.concat(d, ' ').concat(r, ' {\n ').concat(t.join('\n '), '\n}')
} else {
t = p.default(i[e], function (e, t) {
return ''.concat(t, ': ').concat(f.resolveVariableAndFilter(e.replace(/['|"]/g, ''), n, '| raw') || e, ';')
})
c += '\n.'.concat(d, ' ').concat(e, ' {\n ').concat(t.join('\n '), '\n}')
}
else
c += '\n.'
.concat(d, ' {\n ')
.concat(e, ': ')
.concat(f.resolveVariableAndFilter(i[e].replace(/['|"]/g, ''), n, '| raw') || i[e], '\n}')
})
}
C({ style: c, classId: 'wrapperCustomStyle-' + ((null == r ? void 0 : r.replace('u:', '')) || a.uuid()) + l, doc: o, id: null == r ? void 0 : r.replace('u:', '').replace(/(-.*)/, '') })
}),
(t.insertStyle = C),
(t.removeCustomStyle = function (e, t, r, o) {
var n = 'amis-' + (e ? e + '-' : '') + t.replace('u:', '')
'number' == typeof (null == o ? void 0 : o.index) && (n += '-'.concat(o.index))
var a = (r || document).getElementById(n)
a && a.remove()
}),
(t.setThemeClassName = function (e) {
var t = e.name,
r = e.id,
o = e.themeCss,
n = e.extra,
a = e.data
if (!r || !o) return ''
if ('wrapperCustomStyle' !== t && !o[t]) return ''
var i = ''
return 'number' == typeof (null == a ? void 0 : a.index) && (i = '-'.concat(a.index)), ''.concat(t, '-').concat(r.replace('u:', '')) + (n ? '-'.concat(n) : '') + i
}),
(t.valueMap = y)
}) /*!node_modules/prop-types/lib/ReactPropTypesSecret.js*/
amis.define('b5a41de', function (_, e, i, s) {
'use strict'
i.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'
}) /*!node_modules/prop-types/factoryWithThrowingShims.js*/
amis.define('3496ad6', function (e, n, r, t) {
'use strict'
var o = e('b5a41de')
function a() {}
function i() {}
;(i.resetWarningCache = a),
(r.exports = function () {
function e(e, n, r, t, a, i) {
if (i !== o) {
var p = new Error(
'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types'
)
throw ((p.name = 'Invariant Violation'), p)
}
}
function n() {
return e
}
e.isRequired = e
var r = {
array: e,
bigint: e,
bool: e,
func: e,
number: e,
object: e,
string: e,
symbol: e,
any: e,
arrayOf: n,
element: e,
elementType: e,
instanceOf: n,
node: e,
objectOf: n,
oneOf: n,
oneOfType: n,
shape: n,
exact: n,
checkPropTypes: i,
resetWarningCache: a
}
return (r.PropTypes = r), r
})
}) /*!node_modules/prop-types/index.js*/
amis.define('ac4fc3c', function (c, a, e, f) {
e.exports = c('3496ad6')()
}) /*!node_modules/react-overlays/cjs/useWaitForDOMRef.js*/
amis.define('0406bc4', function (e, n, t, u) {
'use strict'
var f = e('5faf1f8')
;(n.__esModule = !0),
(n.default = function (e, n) {
var t = (0, o.useState)(function () {
return i(e)
}),
u = t[0],
f = t[1]
if (!u) {
var r = i(e)
r && f(r)
}
return (
(0, o.useEffect)(
function () {
n && u && n(u)
},
[n, u]
),
(0, o.useEffect)(
function () {
var n = i(e)
n !== u && f(n)
},
[e, u]
),
u
)
}),
(n.resolveContainerRef = void 0)
var r = f(e('5ee7da7')),
o = e('ac704b9'),
i = function (e) {
var n
return 'undefined' == typeof document
? null
: null == e
? (0, r.default)().body
: ('function' == typeof e && (e = e()), e && 'current' in e && (e = e.current), (null != (n = e) && n.nodeType && e) || null)
}
n.resolveContainerRef = i
}) /*!node_modules/react-overlays/cjs/Portal.js*/
amis.define('1478bdd', function (e, a, t, n) {
'use strict'
var d = e('5faf1f8')
;(a.__esModule = !0), (a.default = void 0)
var l = d(e('ac4fc3c')),
r = d(e('1e5c4ba')),
f = d(e('ac704b9')),
u = d(e('0406bc4')),
c = { container: l.default.any, onRendered: l.default.func },
o = function (e) {
var a = e.container,
t = e.children,
n = e.onRendered,
d = (0, u.default)(a, n)
return d ? f.default.createElement(f.default.Fragment, null, r.default.createPortal(t, d)) : null
}
;(o.displayName = 'Portal'), (o.propTypes = c)
var i = o
;(a.default = i), (t.exports = a.default)
}) /*!node_modules/amis-core/lib/utils/RootClose.js*/
amis.define('4a8583c', function (e, t, o, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9'),
u = e('ac704b9'),
a = e('c85b9d6'),
c = e('1e5c4ba')
function d(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var f = d(a)
t.RootClose = function (e) {
var t = e.children,
o = e.onRootClose,
n = r.__rest(e, ['children', 'onRootClose']),
a = r.__read(u.useState(null), 2),
d = a[0],
i = a[1],
l = c.findDOMNode(d)
return f.default(l, o, n), 'function' == typeof t ? t(i) : t
}
}) /*!node_modules/amis-core/lib/env.js*/
amis.define('bc320d8', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('68b98b9')
var c = e('ac704b9')
function d(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('2fb8d9c')
var f = d(c),
r = e('ac704b9')
;(r.default || r).createElement, (r.default || r).Fragment
var u = f.default.createContext(void 0)
t.EnvContext = u
}) /*!node_modules/amis-core/lib/components/Overlay.js*/
amis.define('0e43fee', function (t, e, o, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var i = t('68b98b9'),
a = t('1478bdd'),
r = t('cb263ff'),
s = t('1e5c4ba'),
p = t('ac704b9')
t('d9d4e46'), t('8dd52de'), t('22a4ae5'), t('5e0783e'), t('0910768'), t('c3389ff'), t('607aee2'), t('5c95135'), t('8b081ba'), t('a3bbeb2')
var d = t('933bc12')
t('3f15357'), t('575a22c')
var c = t('939b8bb')
t('8b641b6'), t('e98f234'), t('6175dcb'), t('a290f81'), t('cde5cad'), t('0dc59d3'), t('67e77ca'), t('37efca2'), t('e913672'), t('5f94728')
var l = t('1feaebc'),
u = t('4a8583c')
t('d2a103e'), t('90272dd'), t('8834362'), t('7d5c8a5'), t('d837406'), t('1c23cc0'), t('a08e932'), t('6baf255'), t('2fb8d9c'), t('9f4cfa3'), t('014d724'), t('30f4e61'), t('d823824')
var f = t('bc320d8')
function h(t) {
return t && 'object' == typeof t && 'default' in t ? t : { default: t }
}
var g = h(a),
v = h(r),
m = h(s),
_ = h(p),
b = t('ac704b9'),
P = (b.default || b).createElement
;(b.default || b).Fragment
var y = 'data-sub-popover-displayed'
var E = (function (t) {
function e(e) {
var o = t.call(this, e) || this
return (
(o.getTarget = function () {
var t = o.props.target,
e = 'function' == typeof t ? t() : t
return (e && m.default.findDOMNode(e)) || null
}),
(o.maybeUpdatePosition = function (t) {
var e = o.getTarget()
;(o.props.shouldUpdatePosition || e !== o._lastTarget || t) && o.updatePosition(e)
}),
(o.state = { positionLeft: 0, positionTop: 0, arrowOffsetLeft: null, arrowOffsetTop: null }),
(o._lastTarget = null),
(o.componentId = c.uuid()),
o
)
}
return (
i.__extends(e, t),
(e.prototype.updatePosition = function (t) {
var e,
o,
n = this
if (((this._lastTarget = t), t)) {
var i = null === (e = null == t ? void 0 : t.closest) || void 0 === e ? void 0 : e.call(t, '[role=popover]')
!this.parentPopover && i && ((this.parentPopover = i), this.parentPopover.setAttribute(y + '-' + this.componentId, !0))
}
if (!t) return this.setState({ positionLeft: 0, positionTop: 0, arrowOffsetLeft: null, arrowOffsetTop: null })
var a,
r,
p,
u = this.props.watchTargetSizeChange,
f = s.findDOMNode(this),
h = d.getContainer(this.props.container, d.ownerDocument(this).body)
if ((!this.watchedTarget || this.watchedTarget !== t) && 'static' !== l.getComputedStyle(t, 'position')) {
null === (o = this.resizeDispose) ||
void 0 === o ||
o.forEach(function (t) {
return t()
}),
(this.watchedTarget = t),
(this.resizeDispose = [
!1 !== u
? l.resizeSensor(t, function () {
return n.updatePosition(t)
})
: c.noop,
l.resizeSensor(f, function () {
return n.updatePosition(t)
})
])
var g = c.getScrollParent(t)
g &&
h.contains(g) &&
this.resizeDispose.push(
((r = function () {
n.updatePosition(t)
}),
(p = function () {
requestAnimationFrame(r)
}),
(a = g).addEventListener('scroll', p),
function () {
a.removeEventListener('scroll', p)
})
)
}
this.setState(d.calculatePosition(this.props.placement, f, t, h, this.props.containerPadding, this.props.offset))
}),
(e.prototype.componentDidMount = function () {
this.updatePosition(this.getTarget())
}),
(e.prototype.componentDidUpdate = function (t) {
this.maybeUpdatePosition(this.props.placement !== t.placement)
}),
(e.prototype.componentWillUnmount = function () {
var t
this.parentPopover && this.parentPopover.getAttribute(y + '-' + this.componentId) && (this.parentPopover.removeAttribute(y + '-' + this.componentId), (this.parentPopover = null)),
null === (t = this.resizeDispose) ||
void 0 === t ||
t.forEach(function (t) {
return t()
})
}),
(e.prototype.render = function () {
var t = this.props,
e = t.children,
o = t.className,
n = i.__rest(t, ['children', 'className']),
a = this.state,
r = a.positionLeft,
s = a.positionTop,
d = i.__rest(a, ['positionLeft', 'positionTop'])
delete n.target, delete n.container, delete n.containerPadding, delete n.shouldUpdatePosition
var c = _.default.Children.only(e)
return p.cloneElement(
c,
i.__assign(i.__assign(i.__assign(i.__assign({}, n), d), c.props.offset ? { offset: c.props.offset } : {}), {
positionLeft: r,
positionTop: s,
className: v.default(o, c.props.className),
style: i.__assign(i.__assign({}, c.props.style), { left: r, top: s }),
componentId: this.componentId
})
)
}),
(e.defaultProps = { containerPadding: 0, placement: 'right', shouldUpdatePosition: !1 }),
e
)
})(_.default.Component),
T = (function (t) {
function e(e) {
var o = t.call(this, e) || this
return (
(o.position = null),
(o.positionRef = function (t) {
o.position = t
}),
(o.state = { exited: !e.show }),
o
)
}
return (
i.__extends(e, t),
(e.prototype.updatePosition = function () {
var t
null === (t = this.position) || void 0 === t || t.maybeUpdatePosition(!0)
}),
(e.prototype.componentDidUpdate = function (t, e) {
var o = this.props
t.show !== o.show && o.show ? this.setState({ exited: !1 }) : o.transition === t.transition || o.transition || this.setState({ exited: !0 })
}),
(e.prototype.onHiddenListener = function (t) {
this.setState({ exited: !0 }), this.props.onExited && this.props.onExited(t)
}),
(e.prototype.getContainerSelector = function () {
var t = this.props.containerSelector,
e = null
return 'string' == typeof t && (e = document.querySelector(t)), e
}),
(e.prototype.render = function () {
var t,
e = this.props,
o = e.containerPadding,
n = e.target,
a = e.placement,
r = e.shouldUpdatePosition,
s = e.rootClose,
p = e.children
e.watchTargetSizeChange
var d = e.transition,
c = e.offset,
l = i.__rest(e, ['containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'watchTargetSizeChange', 'transition', 'offset']),
f = (this.getContainerSelector() ? this.getContainerSelector : this.props.container) || (null === (t = this.context) || void 0 === t ? void 0 : t.getModalContainer)
if (!(l.show || (d && !this.state.exited))) return null
var h = p
if (((h = P(E, i.__assign({}, { container: f, containerPadding: o, target: n, placement: a, shouldUpdatePosition: r, offset: c }, { ref: this.positionRef }), h)), d)) {
var v = l.onExit,
m = l.onExiting,
b = l.onEnter,
y = l.onEntering,
T = l.onEntered
h = P(d, { in: l.show, appear: !0, onExit: v, onExiting: m, onExited: this.onHiddenListener, onEnter: b, onEntering: y, onEntered: T }, h)
}
return P(
g.default,
{ container: f },
s
? P(u.RootClose, { onRootClose: l.onHide }, function (t) {
return _.default.isValidElement(h) ? _.default.cloneElement(h, { ref: t }) : P('div', { ref: t }, h)
})
: h
)
}),
(e.defaultProps = { placement: 'auto' }),
(e.contextType = f.EnvContext),
i.__decorate(
[c.autobind, i.__metadata('design:type', Function), i.__metadata('design:paramtypes', [HTMLElement]), i.__metadata('design:returntype', void 0)],
e.prototype,
'onHiddenListener',
null
),
i.__decorate([c.autobind, i.__metadata('design:type', Function), i.__metadata('design:paramtypes', []), i.__metadata('design:returntype', void 0)], e.prototype, 'getContainerSelector', null),
e
)
})(_.default.Component)
;(e.SubPopoverDisplayedID = y), (e.default = T)
}) /*!node_modules/amis-core/lib/theme.js*/
amis.define('777be76', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('68b98b9'),
s = e('cb263ff'),
o = e('ac704b9'),
f = e('2fb8d9c')
function c(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var i = c(s),
l = c(o),
u = c(f),
d = e('ac704b9'),
p = (d.default || d).createElement
;(d.default || d).Fragment
var m = { default: {}, cxd: { classPrefix: 'cxd-' } }
var h = {}
function g(e) {
if (e && h[e]) return h[e]
var t = function () {
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]
var r = i.default.apply(void 0, a.__spreadArray([], a.__read(t), !1))
return r && e ? r.replace(/(^|\s)([A-Z])/g, '$1' + e + '$2').replace(/(^|\s)\:/g, '$1') : r || ''
}
return e && (h[e] = t), t
}
function v(e) {
return !!m[e]
}
function x(e) {
'string' != typeof e && (e = 'cxd')
var t = m[e || 'cxd']
if (
(t.getRendererConfig ||
(t.getRendererConfig = function (t) {
var n = m[e || 'cxd']
return n.renderers && t ? n.renderers[t] : null
}),
!t.classnames)
) {
var n = t.classPrefix
t.classnames = t.classnames || g(n)
}
return (
t.getComponentConfig ||
(t.getComponentConfig = function (e) {
return t.components && e ? t.components[e] : null
}),
t
)
}
t.defaultTheme = 'cxd'
var y = l.default.createContext('')
;(t.ThemeContext = y),
(t.classnames = function () {
for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]
return x(t.defaultTheme).classnames.apply(null, e)
}),
(t.getClassPrefix = function () {
return x(t.defaultTheme).classPrefix
}),
(t.getTheme = x),
(t.hasTheme = v),
(t.makeClassnames = g),
(t.setDefaultTheme = function (e) {
v(e) && (t.defaultTheme = e)
}),
(t.theme = function (e, t) {
m[e] = a.__assign(a.__assign({}, m[e]), t)
}),
(t.themeable = function (e) {
var n,
r = u.default(
((n = (function (n) {
function r(e) {
var t = n.call(this, e) || this
return (t.childRef = t.childRef.bind(t)), (t.getWrappedInstance = t.getWrappedInstance.bind(t)), t
}
return (
a.__extends(r, n),
(r.prototype.childRef = function (e) {
for (; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
this.ref = e
}),
(r.prototype.getWrappedInstance = function () {
return this.ref
}),
(r.prototype.render = function () {
var n,
r = this.props.theme || this.context || t.defaultTheme,
s = v(r) ? x(r) : x(t.defaultTheme),
o = { classPrefix: s.classPrefix, classnames: s.classnames, theme: r },
f =
(null === (n = e.prototype) || void 0 === n ? void 0 : n.isReactComponent) || e.$$typeof === Symbol.for('react.forward_ref')
? { ref: this.childRef }
: { forwardedRef: this.childRef },
c = p(e, a.__assign({}, s.getComponentConfig(e.themeKey), this.props, o, f))
return this.context ? c : p(y.Provider, { value: r }, c)
}),
r
)
})(l.default.Component)),
(n.displayName = 'Themeable('.concat(e.displayName || e.name, ')')),
(n.contextType = y),
(n.ComposedComponent = e),
n),
e
)
return r
})
}) /*!node_modules/amis-core/lib/components/PopOver.js*/
amis.define('9486486', function (e, t, o, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
s = e('ac704b9'),
r = e('1e5c4ba'),
p = e('777be76')
e('d9d4e46'), e('8dd52de'), e('22a4ae5'), e('5e0783e'), e('0910768'), e('c3389ff'), e('607aee2'), e('5c95135'), e('8b081ba'), e('a3bbeb2'), e('933bc12'), e('3f15357'), e('575a22c')
var i = e('939b8bb')
e('8b641b6'),
e('e98f234'),
e('6175dcb'),
e('a290f81'),
e('cde5cad'),
e('0dc59d3'),
e('67e77ca'),
e('37efca2'),
e('e913672'),
e('5f94728'),
e('1feaebc'),
e('c85b9d6'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('30f4e61'),
e('d823824')
var d = e('0e43fee')
function c(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var u = c(s),
f = e('ac704b9'),
l = (f.default || f).createElement
;(f.default || f).Fragment
var v = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this
return (t.state = { xOffset: 0, yOffset: 0 }), (t.wrapperRef = u.default.createRef()), (t.isRootClosed = !1), t
}
return (
n.__extends(t, e),
(t.prototype.componentDidMount = function () {
this.mayUpdateOffset()
var e = r.findDOMNode(this)
;(this.parent = e.parentNode),
this.parent.classList.add('has-popover'),
this.wrapperRef && this.wrapperRef.current && this.wrapperRef.current.addEventListener('touchmove', i.preventDefault, { passive: !1, capture: !1 }),
document.body.addEventListener('mousedown', this.handleRootMouseDownCapture, !0),
document.body.addEventListener('mouseup', this.handleRootMouseUpCapture, !0),
document.body.addEventListener('mouseup', this.handleRootMouseUp)
}),
(t.prototype.componentDidUpdate = function () {
this.mayUpdateOffset()
}),
(t.prototype.componentWillUnmount = function () {
this.parent && this.parent.classList.remove('has-popover'),
this.wrapperRef && this.wrapperRef.current && this.wrapperRef.current.removeEventListener('touchmove', i.preventDefault),
document.body.removeEventListener('mouseup', this.handleRootMouseUp),
document.body.removeEventListener('mousedown', this.handleRootMouseDownCapture, !0),
document.body.removeEventListener('mouseup', this.handleRootMouseUpCapture, !0)
}),
(t.prototype.handleRootMouseDownCapture = function (e) {
var t = e.target,
o = this.props,
a = o.overlay,
n = o.classPrefix,
s = (1 === e.button && null !== window.event) || 0 === e.button
this.isRootClosed = !!(
s &&
a &&
t &&
this.wrapperRef.current &&
!this.wrapperRef.current.getAttributeNames().find(function (e) {
return e.startsWith(d.SubPopoverDisplayedID)
}) &&
((!this.wrapperRef.current.contains(t) && !t.closest('[role=dialog]')) || (t.matches('.'.concat(n, 'Modal')) && t === this.wrapperRef.current))
)
}),
(t.prototype.handleRootMouseUpCapture = function (e) {
this.isRootClosed && this.handleRootMouseDownCapture(e)
}),
(t.prototype.handleRootMouseUp = function (e) {
var t = this.props.onHide
if (this.isRootClosed && !e.defaultPrevented) {
var o = function (e) {
e.stopPropagation(), window.removeEventListener('click', o, !0)
}
window.addEventListener('click', o, !0), null == t || t()
}
}),
(t.prototype.mayUpdateOffset = function () {
var e,
t = this.props.offset
if (t && 'function' == typeof t) {
var o = this.props,
a = o.placement,
n = o.positionTop,
s = o.positionLeft
e = t(r.findDOMNode(this).getBoundingClientRect(), { x: s, y: n, placement: a })
} else e = t
this.setState({ xOffset: e && e.x ? e.x : 0, yOffset: e && e.y ? e.y : 0 })
}),
(t.prototype.render = function () {
var e = this.props
e.placement
var t = e.activePlacement,
o = e.positionTop,
a = e.positionLeft
e.arrowOffsetLeft, e.arrowOffsetTop
var s = e.style,
r = e.children
e.offset
var p = e.overlay,
d = e.onHide,
c = e.classPrefix,
u = e.classnames,
f = e.className
e.componentId
var v = n.__rest(e, [
'placement',
'activePlacement',
'positionTop',
'positionLeft',
'arrowOffsetLeft',
'arrowOffsetTop',
'style',
'children',
'offset',
'overlay',
'onHide',
'classPrefix',
'classnames',
'className',
'componentId'
]),
m = this.state,
h = m.xOffset,
y = m.yOffset,
b = n.__assign(n.__assign({ display: 'block' }, s), { top: o + y, left: a + h }),
_ = 'string' == typeof t ? t.split('-') : []
return l(
'div',
n.__assign({ ref: this.wrapperRef, role: 'popover', className: u('PopOver', f, 'PopOver--'.concat(i.camel(t)), _[3] ? 'PopOver--v-'.concat(_[3]) : ''), style: b }, v),
p ? l('div', { className: ''.concat(c, 'PopOver-overlay'), onClick: d }) : null,
r
)
}),
(t.defaultProps = { className: '', offset: { x: 0, y: 0 }, overlay: !1, placement: 'auto' }),
n.__decorate(
[i.autobind, n.__metadata('design:type', Function), n.__metadata('design:paramtypes', [MouseEvent]), n.__metadata('design:returntype', void 0)],
t.prototype,
'handleRootMouseDownCapture',
null
),
n.__decorate(
[i.autobind, n.__metadata('design:type', Function), n.__metadata('design:paramtypes', [MouseEvent]), n.__metadata('design:returntype', void 0)],
t.prototype,
'handleRootMouseUpCapture',
null
),
n.__decorate(
[i.autobind, n.__metadata('design:type', Function), n.__metadata('design:paramtypes', [MouseEvent]), n.__metadata('design:returntype', void 0)],
t.prototype,
'handleRootMouseUp',
null
),
t
)
})(u.default.PureComponent),
m = p.themeable(v)
;(t.PopOver = v), (t.default = m)
}) /*!node_modules/amis-core/lib/components/CustomStyle.js*/
amis.define('f97a625', function (e, t, o, l) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('ac704b9'),
u = e('f4cd1ba'),
a = new Map()
;(t.default = function (e) {
var t = e.config,
o = e.env,
l = e.data,
i = t.themeCss,
d = t.classNames,
s = t.id,
r = t.defaultData,
c = t.wrapperCustomStyle
return (
n.useEffect(
function () {
return (
a.has(s) ? a.set(s, a.get(s) + 1) : s && a.set(s, 1),
function () {
a.has(s) && (a.set(s, a.get(s) - 1), 0 === a.get(s) && a.delete(s))
}
)
},
[s]
),
n.useEffect(
function () {
var e, t
return (
i &&
s &&
u.insertCustomStyle({
themeCss: i,
classNames: d,
id: s,
defaultData: r,
customStyleClassPrefix: null == o ? void 0 : o.customStyleClassPrefix,
doc: null === (t = null === (e = null == o ? void 0 : o.getModalContainer) || void 0 === e ? void 0 : e.call(o)) || void 0 === t ? void 0 : t.ownerDocument,
data: l
}),
function () {
var e, t
s &&
!a.get(s) &&
u.removeCustomStyle('', s, null === (t = null === (e = null == o ? void 0 : o.getModalContainer) || void 0 === e ? void 0 : e.call(o)) || void 0 === t ? void 0 : t.ownerDocument, l)
}
)
},
[i, s]
),
n.useEffect(
function () {
var e, t
return (
c &&
s &&
u.insertEditCustomStyle({
customStyle: c,
id: s,
doc: null === (t = null === (e = null == o ? void 0 : o.getModalContainer) || void 0 === e ? void 0 : e.call(o)) || void 0 === t ? void 0 : t.ownerDocument,
data: l
}),
function () {
var e, t
s &&
!a.get(s) &&
u.removeCustomStyle(
'wrapperCustomStyle',
s,
null === (t = null === (e = null == o ? void 0 : o.getModalContainer) || void 0 === e ? void 0 : e.call(o)) || void 0 === t ? void 0 : t.ownerDocument,
l
)
}
)
},
[c, s]
),
null
)
}),
(t.styleIdCount = a)
}) /*!node_modules/amis-core/lib/renderers/Item.js*/
amis.define('ec36da8', function (e, t, a, i) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9'),
n = e('ac704b9'),
o = e('2fb8d9c'),
s = e('30f4e61'),
l = e('668845d'),
m = e('326ef36'),
d = e('939b8bb'),
p = e('0d0462d'),
c = e('9d883d3'),
u = e('a3b1ddf'),
f = e('5f94728'),
h = e('d9d4e46'),
g = e('1e5c4ba')
e('8dd52de'), e('22a4ae5'), e('5e0783e')
var b = e('e74b24f'),
v = e('bbe84d0'),
y = e('1c8d418')
e('607aee2'), e('5c95135'), e('8b081ba'), e('c3389ff'), e('a3bbeb2'), e('933bc12'), e('3f15357'), e('575a22c')
var _ = e('0910768')
e('8b641b6'), e('e98f234'), e('6175dcb'), e('a290f81'), e('cde5cad'), e('0dc59d3'), e('67e77ca')
var F = e('027080a')
e('37efca2'), e('e913672'), e('1feaebc'), e('c85b9d6'), e('d2a103e'), e('90272dd'), e('8834362')
var C = e('f4cd1ba')
e('6baf255'), e('9f4cfa3'), e('014d724'), e('d823824')
var N = e('0e43fee'),
k = e('9486486'),
O = e('f97a625'),
w = e('cb263ff')
function I(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var A = I(n),
S = I(o),
D = I(f),
M = I(_),
z = I(w),
x = e('ac704b9'),
T = (x.default || x).createElement
;(x.default || x).Fragment
var U = function (e) {
var t = e.staticLabelClassName,
a = e.labelClassName,
i = e.id,
n = e.themeCss
return e.static && t ? t : z.default(a, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'labelClassName', id: i, themeCss: n, extra: 'item' })))
},
j = function (e) {
var t = e.staticInputClassName,
a = e.inputClassName
return e.static && t ? t : a
},
P = (function (e) {
function t(t) {
var a = e.call(this, t) || this
;(a.mounted = !1),
(a.initedOptionFilled = !1),
(a.initedApiFilled = !1),
(a.toDispose = []),
(a.syncApiAutoFill = D.default(
function (e, t, i) {
return (
void 0 === i && (i = !1),
r.__awaiter(a, void 0, void 0, function () {
var a, n, o, s, l, m, d, p, c, u, f, g
return r.__generator(this, function (r) {
switch (r.label) {
case 0:
return (
r.trys.push([0, 4, , 5]),
(a = this.props),
(n = a.autoFill),
(o = a.onBulkChange),
(s = a.formItem),
(l = a.data),
o && s && n && (!n || (null == n ? void 0 : n.hasOwnProperty('api')))
? !i ||
(n.fillMapping &&
!Object.keys(n.fillMapping).some(function (e) {
return void 0 !== b.getVariable(l, e)
}))
? (null == n ? void 0 : n.showSuggestion)
? (this.handleAutoFill('change'), [3, 3])
: [3, 1]
: [2]
: [2]
)
case 1:
return (
(m = s.name),
(d = v.createObject(l, (((u = {})[m || ''] = e), (u.__term = e), u))),
t || (h.isEffectiveApi(n.api, d) && this.lastSearchTerm !== e) ? [4, s.loadAutoUpdateData(n.api, d, !!(null === (f = n.api) || void 0 === f ? void 0 : f.silent))] : [3, 3]
)
case 2:
if (((p = r.sent()), (this.lastSearchTerm = null !== (g = p && b.getVariable(p, m)) && void 0 !== g ? g : e), !p)) return [2]
;(null == n ? void 0 : n.fillMapping) && (p = y.dataMapping(n.fillMapping, p)), p && (v.setVariable(p, m, b.getVariable(p, m) || s.tmpValue), null == o || o(p)), (r.label = 3)
case 3:
return [3, 5]
case 4:
return (c = r.sent()), console.error(c), [3, 5]
case 5:
return [2]
}
})
})
)
},
250,
{ trailing: !0, leading: !1 }
)),
(a.state = { isOpened: !1 })
var i = t.formItem,
n = t.formInited,
o = t.addHook,
m = t.initAutoFill
if (!i) return a
a.toDispose.push(
s.reaction(
function () {
return ''.concat(i.errors.join('')).concat(i.isFocused).concat(i.dialogOpen).concat(JSON.stringify(i.filteredOptions))
},
function () {
return a.forceUpdate()
}
)
)
var d = function () {
var e
;(a.initedOptionFilled = !0),
!1 !== m && l.isAlive(i) && a.syncOptionAutoFill(i.getSelectedOptions(i.tmpValue), 'fillIfNotSet' === m),
(a.initedApiFilled = !0),
!1 !== m && l.isAlive(i) && a.syncApiAutoFill(null !== (e = i.tmpValue) && void 0 !== e ? e : '', !1, 'fillIfNotSet' === m),
a.toDispose.push(
s.reaction(
function () {
return JSON.stringify(i.tmpValue)
},
function () {
return a.mounted && a.initedApiFilled && a.syncApiAutoFill(i.tmpValue)
}
)
),
a.toDispose.push(
s.reaction(
function () {
return JSON.stringify(i.getSelectedOptions(i.tmpValue))
},
function () {
return a.mounted && a.initedOptionFilled && a.syncOptionAutoFill(i.getSelectedOptions(i.tmpValue))
}
)
)
}
return a.toDispose.push(n || !o ? i.addInitHook(d, 999) : o(d, 'init', 'post')), a
}
return (
r.__extends(t, e),
(t.prototype.componentDidMount = function () {
;(this.mounted = !0), (this.target = g.findDOMNode(this))
}),
(t.prototype.componentDidUpdate = function (e) {
var t,
a,
i,
r = this.props,
n = r.formItem
h.isEffectiveApi(null === (t = r.autoFill) || void 0 === t ? void 0 : t.api, r.data) &&
h.isApiOutdated(null === (a = e.autoFill) || void 0 === a ? void 0 : a.api, null === (i = r.autoFill) || void 0 === i ? void 0 : i.api, e.data, r.data) &&
this.syncApiAutoFill(null == n ? void 0 : n.tmpValue, !0)
}),
(t.prototype.componentWillUnmount = function () {
this.syncApiAutoFill.cancel(),
(this.mounted = !1),
this.toDispose.forEach(function (e) {
return e()
}),
(this.toDispose = [])
}),
(t.prototype.handleFocus = function (e) {
var t = this.props,
a = t.formItem,
i = t.autoFill
a && a.focus(), this.props.onFocus && this.props.onFocus(e), !i || (i && !(null == i ? void 0 : i.hasOwnProperty('showSuggestion'))) || this.handleAutoFill('focus')
}),
(t.prototype.handleBlur = function (e) {
var t = this.props.formItem
t && t.blur(), this.props.onBlur && this.props.onBlur(e)
}),
(t.prototype.handleAutoFill = function (e) {
var t = this,
a = this.props,
i = a.autoFill
a.onBulkChange
var r = a.formItem,
n = a.data,
o = i.trigger,
s = i.mode
o === e && 'popOver' === s
? this.setState({ isOpened: !0 })
: o !== e ||
('dialog' !== s && 'drawer' !== s) ||
null == r ||
r.openDialog(this.buildAutoFillSchema(), n, function (e, a) {
;(null == a ? void 0 : a.selectedItems) && t.updateAutoFillData(a.selectedItems)
})
}),
(t.prototype.updateAutoFillData = function (e) {
var t = this.props,
a = t.formStore,
i = t.autoFill,
n = t.onBulkChange,
o = i.fillMapping,
s = i.multiple,
l = null == a ? void 0 : a.data,
m = v.createObject(r.__assign({ items: s ? e : [e] }, l), r.__assign({}, e)),
d = {}
;(d = y.dataMapping(o, m)), s || o || (d = e), null == n || n(d)
}),
(t.prototype.syncOptionAutoFill = function (e, t) {
void 0 === t && (t = !1)
var a = this.props,
i = a.autoFill,
n = a.multiple,
o = a.onBulkChange,
s = a.data,
l = this.props.formItem
if (!(null == i ? void 0 : i.hasOwnProperty('api')) && o && i && !d.isEmpty(i) && l.filteredOptions.length) {
var m = y.dataMapping(
i,
n
? {
items: e.map(function (e) {
return v.createObject(r.__assign(r.__assign({}, s), { ancestors: d.getTreeAncestors(l.filteredOptions, e, !0) }), e)
})
}
: v.createObject(r.__assign(r.__assign({}, s), { ancestors: d.getTreeAncestors(l.filteredOptions, e[0], !0) }), e[0])
),
p = r.__assign({}, s),
c = r.__assign({}, m)
Object.keys(i).forEach(function (e) {
var a = F.keyToPath(e),
i = b.getVariable(m, e)
if (t) {
var r = b.getVariable(s, e)
void 0 !== r && (i = r)
}
v.setVariable(c, e, i), a.length > 1 && M.default(p[a[0]]) && (v.setVariable(p, e, i), (c[a[0]] = p[a[0]]))
}),
o(c)
}
}),
(t.prototype.buildAutoFillSchema = function () {
var e = this,
t = this.props,
a = t.render,
i = t.autoFill,
n = t.classPrefix,
o = t.classnames,
s = t.translate
if (i && (!i || (null == i ? void 0 : i.hasOwnProperty('api')))) {
var l = i.api,
m = i.mode,
d = i.size,
p = i.offset,
c = i.position,
u = i.multiple,
f = i.filter,
h = i.columns,
g = i.labelField,
b = i.popOverContainer,
v = i.popOverClassName,
y = {
type: 'form',
title: '',
className: 'suggestion-form',
body: {
type: 'picker',
embed: !0,
joinValues: !1,
label: !1,
labelField: g,
valueField: i.valueField || 'value',
multiple: u,
name: 'selectedItems',
options: [],
required: !0,
source: l,
pickerSchema: {
type: 'crud',
affixHeader: !1,
alwaysShowPagination: !0,
keepItemSelectionOnPageChange: !0,
headerToolbar: [],
footerToolbar: [
{ type: 'pagination', align: 'left' },
{ type: 'bulkActions', align: 'right', className: 'ml-2' }
],
multiple: u,
filter: f,
columns: h || []
}
},
actions: [
{ type: 'button', actionType: 'cancel', label: s('cancel') },
{ type: 'submit', actionType: 'submit', level: 'primary', label: s('confirm') }
]
}
return 'popOver' === m
? T(
N.default,
{
container: b || this.target,
target: function () {
return e.target
},
placement: c || 'left-bottom-left-top',
show: !0
},
T(
k.default,
{
classPrefix: n,
className: o(''.concat(n, 'Autofill-popOver'), v),
style: { minWidth: this.target ? this.target.offsetWidth : void 0 },
offset: p,
onHide: this.handleClose,
overlay: !0
},
a('popOver-auto-fill-form', y, { onAction: this.handleAction, onSubmit: this.handleSubmit })
)
)
: {
type: m,
className: 'auto-fill-dialog',
title: s('FormItem.autoFillSuggest'),
size: d,
body: r.__assign(r.__assign({}, y), { wrapWithPanel: !1 }),
actions: [
{ type: 'button', actionType: 'cancel', label: s('cancel') },
{ type: 'submit', actionType: 'submit', level: 'primary', label: s('confirm') }
]
}
}
}),
(t.prototype.handleSubmit = function (e) {
var t = this.props
t.onBulkChange
var a = t.autoFill
!a || (a && !(null == a ? void 0 : a.hasOwnProperty('api'))) || (this.updateAutoFillData(e.selectedItems), this.handleClose())
}),
(t.prototype.handleAction = function (e, t, a) {
'cancel' === t.actionType && this.handleClose()
}),
(t.prototype.handleClose = function () {
this.setState({ isOpened: !1 })
}),
(t.prototype.handleOpenDialog = function (e, t) {
return r.__awaiter(this, void 0, void 0, function () {
var a
return r.__generator(this, function (i) {
return (a = this.props.formItem)
? [
2,
new Promise(function (i) {
return a.openDialog(e, t, function (e, t) {
return i(!!e && t)
})
})
]
: [2]
})
})
}),
(t.prototype.handleDialogConfirm = function (e) {
var t = r.__read(e, 1)[0],
a = this.props.formItem
a && a.closeDialog(!0, t)
}),
(t.prototype.handleDialogClose = function (e) {
void 0 === e && (e = !1)
var t = this.props.formItem
t && t.closeDialog(e)
}),
(t.prototype.renderControl = function () {
var e,
t = this.props
t.inputClassName
var a = t.formItem,
i = t.classnames
t.children
var n = t.type,
o = t.renderControl
t.formItemConfig
var s = t.sizeMutable,
l = t.size,
m = t.defaultSize,
p = t.mobileUI,
c = r.__rest(t, ['inputClassName', 'formItem', 'classnames', 'children', 'type', 'renderControl', 'formItemConfig', 'sizeMutable', 'size', 'defaultSize', 'mobileUI'])
if (o) {
var u = l || m
return o(
r.__assign(r.__assign({}, c), {
onOpenDialog: this.handleOpenDialog,
type: n,
classnames: i,
formItem: a,
className: i(
'Form-control',
((e = { 'is-inline': !!c.inline && !p, 'is-error': a && !a.valid, 'is-full': 'full' === l }),
(e['Form-control--withSize Form-control--size'.concat(d.ucFirst(u))] = !1 !== s && 'string' == typeof u && !!u && 'full' !== u),
e),
null == a ? void 0 : a.errClassNames,
C.setThemeClassName(r.__assign(r.__assign({}, this.props), { name: 'wrapperCustomStyle', id: c.id, themeCss: c.wrapperCustomStyle, extra: 'item' })),
j(this.props)
)
})
)
}
return null
}),
(t.prototype.render = function () {
var e = this.props,
a = e.formMode,
i = e.inputOnly,
n = e.wrap,
o = e.render,
s = e.formItem,
l = e.css,
m = e.themeCss,
d = e.id,
p = e.wrapperCustomStyle,
c = e.env,
u = this.props.mode || a
if (!1 === n || i) return this.renderControl()
var f = t.layoutRenderers[u] || t.layoutRenderers.normal
return T(
A.default.Fragment,
null,
f(this.props, this.renderControl.bind(this)),
s
? o('modal', r.__assign({ type: 'dialog' }, s.dialogSchema), {
show: s.dialogOpen,
onClose: this.handleDialogClose,
onConfirm: this.handleDialogConfirm,
data: s.dialogData,
formStore: void 0
})
: null,
T(
O.default,
r.__assign({}, this.props, {
config: { themeCss: m || l, classNames: [{ key: 'labelClassName' }, { key: 'descriptionClassName' }], wrapperCustomStyle: p, id: d && d + '-item' },
env: c
})
)
)
}),
(t.layoutRenderers = {
horizontal: function (e, t) {
var a,
i,
n,
o = e.className,
s = e.style,
l = e.classnames,
m = e.description,
p = e.descriptionClassName,
c = e.captionClassName,
u = e.desc,
f = e.label,
h = e.render,
g = e.required,
b = e.caption,
v = e.remark,
y = e.labelRemark,
_ = e.env,
F = e.formItem,
N = e.renderLabel,
k = e.renderDescription,
O = e.hint
e.data
var w = e.showErrorMsg,
I = e.mobileUI
e.translate
var A = e.static,
S = e.staticClassName,
D = e.id,
M = e.wrapperCustomStyle,
z = e.themeCss
!1 === N && (f = !1 !== f && ''), (m = m || u)
var x = e.horizontal || e.formHorizontal || {},
j = d.getWidthRate(x.left),
P = d.getWidthRate(x.right),
V = e.labelAlign || e.formLabelAlign,
L = e.labelWidth || e.formLabelWidth
return T(
'div',
{
'data-role': 'form-item',
className: l(
'Form-item Form-item--horizontal',
A && S ? S : o,
((a = { 'Form-item--horizontal-justify': x.justify }), (a['is-error'] = F && !F.valid), (a['is-required'] = g), a),
null == F ? void 0 : F.errClassNames,
C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'wrapperCustomStyle', id: D, themeCss: M, extra: 'item' }))
),
style: s
},
!1 !== f
? T(
'label',
{
className: l(
'Form-label',
((i = {}),
(i['Form-itemColumn--'.concat('string' == typeof x.leftFixed ? x.leftFixed : 'normal')] = x.leftFixed),
(i['Form-itemColumn--'.concat(j)] = !x.leftFixed),
(i['Form-label--left'] = 'left' === V),
(i['Form-label-noLabel'] = '' === f),
i),
U(e)
),
style: null != L ? { width: L } : void 0
},
T(
'span',
null,
f ? h('label', f) : null,
g && (f || y) ? T('span', { className: l('Form-star') }, '*') : null,
y
? h('label-remark', {
type: 'remark',
icon: y.icon || 'warning-mark',
tooltip: y,
mobileUI: I,
className: l('Form-labelRemark'),
container: e.popOverContainer || _.getModalContainer
})
: null
)
)
: null,
T(
'div',
{ className: l('Form-value', ((n = {}), (n['Form-itemColumn--'.concat(P)] = !x.leftFixed && !!P && P !== 12 - j), n)) },
t(),
b ? h('caption', b, { className: l('Form-caption', c) }) : null,
v ? h('remark', { type: 'remark', icon: v.icon || 'warning-mark', tooltip: v, className: l('Form-remark'), mobileUI: I, container: e.popOverContainer || _.getModalContainer }) : null,
O && F && F.isFocused ? h('hint', O, { className: l('Form-hint') }) : null,
F && !F.valid && !1 !== w && Array.isArray(F.errors)
? T(
'ul',
{ className: l('Form-feedback') },
F.errors.map(function (e, t) {
return T('li', { key: t }, e)
})
)
: null,
!1 !== k && m
? h('description', m, {
className: l('Form-description', p, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'descriptionClassName', id: D, themeCss: z, extra: 'item' })))
})
: null
)
)
},
normal: function (e, t) {
var a,
i = e.className,
n = e.style,
o = e.classnames,
s = e.desc,
l = e.description,
m = e.label,
d = e.render,
p = e.required,
c = e.caption,
u = e.remark,
f = e.labelRemark,
h = e.env,
g = e.descriptionClassName,
b = e.captionClassName,
v = e.formItem,
y = e.renderLabel,
_ = e.renderDescription,
F = e.hint
e.data
var N = e.showErrorMsg,
k = e.mobileUI
e.translate
var O = e.static,
w = e.staticClassName,
I = e.themeCss,
S = e.wrapperCustomStyle,
D = e.id
return (
(l = l || s),
T(
'div',
{
'data-role': 'form-item',
className: o(
'Form-item Form-item--normal',
O && w ? w : i,
((a = { 'is-error': v && !v.valid }), (a['is-required'] = p), a),
null == v ? void 0 : v.errClassNames,
C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'wrapperCustomStyle', id: D, themeCss: S, extra: 'item' }))
),
style: n
},
m && !1 !== y
? T(
'label',
{ className: o('Form-label', U(e)) },
T(
'span',
null,
m ? d('label', m) : null,
p && (m || f) ? T('span', { className: o('Form-star') }, '*') : null,
f
? d('label-remark', {
type: 'remark',
icon: f.icon || 'warning-mark',
tooltip: f,
className: o('Form-lableRemark'),
mobileUI: k,
container: e.popOverContainer || h.getModalContainer
})
: null
)
)
: null,
k
? T(
'div',
{ className: o('Form-item-controlBox') },
t(),
c ? d('caption', c, { className: o('Form-caption', b) }) : null,
u
? d('remark', { type: 'remark', icon: u.icon || 'warning-mark', className: o('Form-remark'), tooltip: u, mobileUI: k, container: e.popOverContainer || h.getModalContainer })
: null,
F && v && v.isFocused ? d('hint', F, { className: o('Form-hint') }) : null,
v && !v.valid && !1 !== N && Array.isArray(v.errors)
? T(
'ul',
{ className: o('Form-feedback') },
v.errors.map(function (e, t) {
return T('li', { key: t }, e)
})
)
: null,
!1 !== _ && l
? d('description', l, {
className: o('Form-description', g, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'descriptionClassName', id: D, themeCss: I, extra: 'item' })))
})
: null
)
: T(
A.default.Fragment,
null,
t(),
c ? d('caption', c, { className: o('Form-caption', b) }) : null,
u
? d('remark', { type: 'remark', icon: u.icon || 'warning-mark', className: o('Form-remark'), tooltip: u, mobileUI: k, container: e.popOverContainer || h.getModalContainer })
: null,
F && v && v.isFocused ? d('hint', F, { className: o('Form-hint') }) : null,
v && !v.valid && !1 !== N && Array.isArray(v.errors)
? T(
'ul',
{ className: o('Form-feedback') },
v.errors.map(function (e, t) {
return T('li', { key: t }, e)
})
)
: null,
!1 !== _ && l
? d('description', l, {
className: o('Form-description', g, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'descriptionClassName', id: D, themeCss: I, extra: 'item' })))
})
: null
)
)
)
},
inline: function (e, t) {
var a,
i = e.className,
n = e.style,
o = e.classnames,
s = e.desc,
l = e.description,
m = e.label,
d = e.render,
p = e.required,
c = e.caption,
u = e.descriptionClassName,
f = e.captionClassName,
h = e.formItem,
g = e.remark,
b = e.labelRemark,
v = e.env,
y = e.hint,
_ = e.renderLabel,
F = e.renderDescription
e.data
var N = e.showErrorMsg,
k = e.mobileUI
e.translate
var O = e.static,
w = e.staticClassName,
I = e.themeCss,
A = e.wrapperCustomStyle,
S = e.id,
D = e.labelWidth || e.formLabelWidth
return (
(l = l || s),
T(
'div',
{
'data-role': 'form-item',
className: o(
'Form-item Form-item--inline',
O && w ? w : i,
((a = { 'is-error': h && !h.valid }), (a['is-required'] = p), a),
null == h ? void 0 : h.errClassNames,
C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'wrapperCustomStyle', id: S, themeCss: A, extra: 'item' }))
),
style: n
},
m && !1 !== _
? T(
'label',
{ className: o('Form-label', U(e)), style: null != D ? { width: D } : void 0 },
T(
'span',
null,
m ? d('label', m) : m,
p && (m || b) ? T('span', { className: o('Form-star') }, '*') : null,
b
? d('label-remark', {
type: 'remark',
icon: b.icon || 'warning-mark',
tooltip: b,
className: o('Form-lableRemark'),
mobileUI: k,
container: e.popOverContainer || v.getModalContainer
})
: null
)
)
: null,
T(
'div',
{ className: o('Form-value') },
t(),
c ? d('caption', c, { className: o('Form-caption', f) }) : null,
g
? d('remark', { type: 'remark', icon: g.icon || 'warning-mark', className: o('Form-remark'), tooltip: g, mobileUI: k, container: e.popOverContainer || v.getModalContainer })
: null,
y && h && h.isFocused ? d('hint', y, { className: o('Form-hint') }) : null,
h && !h.valid && !1 !== N && Array.isArray(h.errors)
? T(
'ul',
{ className: o('Form-feedback') },
h.errors.map(function (e, t) {
return T('li', { key: t }, e)
})
)
: null,
!1 !== F && l
? d('description', l, {
className: o('Form-description', u, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'descriptionClassName', id: S, themeCss: I, extra: 'item' })))
})
: null
)
)
)
},
row: function (e, t) {
var a,
i = e.className,
n = e.style,
o = e.classnames,
s = e.desc,
l = e.description,
m = e.label,
d = e.render,
p = e.required,
c = e.caption,
u = e.remark,
f = e.labelRemark,
h = e.env,
g = e.descriptionClassName,
b = e.captionClassName,
v = e.formItem,
y = e.renderLabel,
_ = e.renderDescription,
F = e.hint
e.data
var N = e.showErrorMsg,
k = e.mobileUI
e.translate
var O = e.static,
w = e.staticClassName,
I = e.wrapperCustomStyle,
A = e.themeCss,
S = e.id,
D = e.labelWidth || e.formLabelWidth
return (
(l = l || s),
T(
'div',
{
'data-role': 'form-item',
className: o(
'Form-item Form-item--row',
O && w ? w : i,
((a = { 'is-error': v && !v.valid }), (a['is-required'] = p), a),
null == v ? void 0 : v.errClassNames,
C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'wrapperCustomStyle', id: S, themeCss: I, extra: 'item' }))
),
style: n
},
T(
'div',
{ className: o('Form-rowInner') },
m && !1 !== y
? T(
'label',
{ className: o('Form-label', U(e)), style: null != D ? { width: D } : void 0 },
T(
'span',
null,
d('label', m),
p && (m || f) ? T('span', { className: o('Form-star') }, '*') : null,
f
? d('label-remark', {
type: 'remark',
icon: f.icon || 'warning-mark',
tooltip: f,
className: o('Form-lableRemark'),
mobileUI: k,
container: e.popOverContainer || h.getModalContainer
})
: null
)
)
: null,
t(),
c ? d('caption', c, { className: o('Form-caption', b) }) : null,
u ? d('remark', { type: 'remark', icon: u.icon || 'warning-mark', className: o('Form-remark'), tooltip: u, container: e.popOverContainer || h.getModalContainer }) : null
),
F && v && v.isFocused ? d('hint', F, { className: o('Form-hint') }) : null,
v && !v.valid && !1 !== N && Array.isArray(v.errors)
? T(
'ul',
{ className: o('Form-feedback') },
v.errors.map(function (e, t) {
return T('li', { key: t }, e)
})
)
: null,
l && !1 !== _
? d('description', l, {
className: o('Form-description', g, C.setThemeClassName(r.__assign(r.__assign({}, e), { name: 'descriptionClassName', id: S, themeCss: A, extra: 'item' })))
})
: null
)
)
}
}),
r.__decorate([d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object]), r.__metadata('design:returntype', void 0)], t.prototype, 'handleFocus', null),
r.__decorate([d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object]), r.__metadata('design:returntype', void 0)], t.prototype, 'handleBlur', null),
r.__decorate([d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object]), r.__metadata('design:returntype', void 0)], t.prototype, 'handleSubmit', null),
r.__decorate(
[d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object, Object, Object]), r.__metadata('design:returntype', void 0)],
t.prototype,
'handleAction',
null
),
r.__decorate([d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', []), r.__metadata('design:returntype', void 0)], t.prototype, 'handleClose', null),
r.__decorate(
[d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object, Object]), r.__metadata('design:returntype', Promise)],
t.prototype,
'handleOpenDialog',
null
),
r.__decorate(
[d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Array]), r.__metadata('design:returntype', void 0)],
t.prototype,
'handleDialogConfirm',
null
),
r.__decorate(
[d.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [Object]), r.__metadata('design:returntype', void 0)],
t.prototype,
'handleDialogClose',
null
),
t
)
})(A.default.Component),
V = [
'formPristine',
'formInited',
'addable',
'addButtonClassName',
'addButtonText',
'addOn',
'btnClassName',
'btnLabel',
'style',
'btnDisabled',
'className',
'clearable',
'columns',
'columnsCount',
'controls',
'desc',
'description',
'disabled',
'static',
'staticClassName',
'staticLabelClassName',
'staticInputClassName',
'draggable',
'editable',
'editButtonClassName',
'formHorizontal',
'formMode',
'hideRoot',
'horizontal',
'icon',
'inline',
'inputClassName',
'label',
'labelClassName',
'labelField',
'language',
'level',
'max',
'maxRows',
'min',
'minRows',
'multiLine',
'multiple',
'option',
'placeholder',
'removable',
'required',
'remark',
'hint',
'rows',
'searchable',
'showCompressOptions',
'size',
'step',
'showInput',
'unit',
'value',
'diffValue',
'borderMode',
'items',
'showCounter',
'minLength',
'maxLength',
'embed',
'displayMode',
'revealPassword',
'loading',
'themeCss'
]
function L(e) {
return function (t) {
var a,
i = !(t.prototype instanceof A.default.Component)
if (e.validate && !t.prototype.validate) {
var n = e.validate
t.prototype.validate = function () {
var e = { input: this }
return n.apply(e, arguments)
}
} else
e.validate &&
console.error(
'FormItem\u914d\u7f6e\u4e2d\u7684 validate \u5c06\u4e0d\u8d77\u4f5c\u7528\uff0c\u56e0\u4e3a\u7c7b\u7684\u6210\u5458\u51fd\u6570\u4e2d\u5df2\u7ecf\u5b9a\u4e49\u4e86 validate \u65b9\u6cd5\uff0c\u5c06\u4f18\u5148\u4f7f\u7528\u7c7b\u91cc\u9762\u7684\u5b9e\u73b0。'
)
return (
e.storeType && ((t = c.HocStoreFactory({ storeType: e.storeType, extendsData: e.extendsData })(p.observer(t))), delete e.storeType),
u.wrapControl(
S.default(
((a = (function (a) {
function n(t) {
var i = a.call(this, t) || this
i.refFn = i.refFn.bind(i)
var r = t.validations,
n = t.formItem
return n && !r && e.validations && n.config({ rules: e.validations }), i
}
return (
r.__extends(n, a),
(n.prototype.shouldComponentUpdate = function (t) {
var a
return (
!(!(null === (a = e.shouldComponentUpdate) || void 0 === a ? void 0 : a.call(e, this.props, t)) && !1 !== t.strictMode && !1 !== e.strictMode) ||
!!d.anyChanged(V.concat(e.detectProps || []), this.props, t)
)
}),
(n.prototype.getWrappedInstance = function () {
return this.ref
}),
(n.prototype.refFn = function (e) {
this.ref = e
}),
(n.prototype.renderControl = function () {
var a,
n = this.props
n.inputClassName
var o = n.formItem,
s = n.classnames
n.children
var l = n.type,
m = n.size,
p = n.defaultSize,
c = n.mobileUI,
u = r.__rest(n, ['inputClassName', 'formItem', 'classnames', 'children', 'type', 'size', 'defaultSize', 'mobileUI']),
f = m || p,
h = this.state.isOpened
return T(
A.default.Fragment,
null,
T(
t,
r.__assign({}, u, {
mobileUI: c,
onOpenDialog: this.handleOpenDialog,
size: !1 !== e.sizeMutable ? void 0 : m,
onFocus: this.handleFocus,
onBlur: this.handleBlur,
type: l,
classnames: s,
ref: i ? void 0 : this.refFn,
forwardedRef: i ? this.refFn : void 0,
formItem: o,
className: s(
'Form-control',
((a = { 'is-inline': !!u.inline && !c, 'is-error': o && !o.valid, 'is-full': 'full' === m }),
(a['Form-control--withSize Form-control--size'.concat(d.ucFirst(f))] = !1 !== e.sizeMutable && 'string' == typeof f && !!f && 'full' !== f),
a),
null == o ? void 0 : o.errClassNames,
j(this.props)
)
})
),
h ? this.buildAutoFillSchema() : null
)
}),
n
)
})(P)),
(a.defaultProps = r.__assign(
{
initAutoFill: 'fillIfNotSet',
className: '',
renderLabel: e.renderLabel,
renderDescription: e.renderDescription,
sizeMutable: e.sizeMutable,
wrap: e.wrap,
showErrorMsg: e.showErrorMsg
},
t.defaultProps
)),
(a.propsList = r.__spreadArray(['value', 'defaultValue', 'onChange', 'setPrinstineValue', 'readOnly', 'strictMode'], r.__read(t.propsList || []), !1)),
(a.displayName = 'FormItem'.concat(e.type ? '('.concat(e.type, ')') : '')),
(a.ComposedComponent = t),
a),
t
)
)
)
}
}
function R(e) {
var t = L(e)(e.component)
return m.registerRenderer(r.__assign(r.__assign({}, e), { weight: void 0 !== e.weight ? e.weight : -100, component: t, isFormItem: !0 }))
}
function B(e) {
return function (t) {
return R(r.__assign(r.__assign({}, e), { component: t })).component
}
}
;(t.FormItem = B),
(t.FormItemWrap = P),
(t.asFormItem = L),
(t.default = B),
(t.detectProps = V),
(t.getFormItemByName = function (e) {
return m.renderersMap[e]
}),
(t.registerFormItem = R)
}) /*!node_modules/amis-core/lib/renderers/Options.js*/
amis.define('6352ca6', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = e('68b98b9'),
i = e('d9d4e46'),
r = e('668845d'),
s = e('939b8bb'),
l = e('30f4e61'),
d = e('ec36da8'),
p = e('ac704b9')
e('c3389ff'), e('8b081ba')
var u = e('bbe84d0'),
c = e('9c55168'),
f = e('42c789c')
e('0910768'), e('8b641b6')
var h = e('575a22c'),
_ = e('0150eb3'),
v = e('9a56a54'),
m = e('0b3520f')
e('8dd52de'), e('22a4ae5'), e('5e0783e'), e('607aee2'), e('5c95135'), e('a3bbeb2'), e('933bc12'), e('3f15357'), e('e98f234'), e('6175dcb'), e('a290f81'), e('cde5cad'), e('0dc59d3'), e('67e77ca')
var g = e('241d95b')
function y(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('1feaebc'),
e('c85b9d6'),
e('1e5c4ba'),
e('d2a103e'),
e('90272dd'),
e('8834362'),
e('7d5c8a5'),
e('d837406'),
e('1c23cc0'),
e('a08e932'),
e('6baf255'),
e('2fb8d9c'),
e('9f4cfa3'),
e('014d724'),
e('d823824')
var b = y(p),
O = y(_),
A = e('ac704b9'),
V = (A.default || A).createElement
;(A.default || A).Fragment
var F = d.detectProps.concat([
'value',
'options',
'size',
'buttons',
'columnsCount',
'multiple',
'hideRoot',
'checkAll',
'defaultCheckAll',
'showIcon',
'showRadio',
'btnDisabled',
'joinValues',
'extractValue',
'borderMode',
'hideSelected'
])
function C(e) {
var t = e.component,
n = (function (n) {
function a(t) {
var a,
o = this
;((o = n.call(this, t) || this).toDispose = []), (o.mounted = !1)
var i = t.initFetch,
r = t.formItem,
s = t.source,
d = t.data,
p = t.setPrinstineValue,
u = t.defaultValue,
c = t.multiple,
f = t.joinValues,
h = t.extractValue,
_ = t.addHook,
m = t.formInited,
g = t.valueField,
y = t.options,
b = t.value,
O = t.defaultCheckAll
if (!r) return o
r.setOptions(v.normalizeOptions(y, void 0, g), o.changeOptionValue, d),
o.toDispose.push(
l.reaction(
function () {
return JSON.stringify([r.loading, r.filteredOptions])
},
function () {
return o.mounted && o.forceUpdate()
}
)
),
c && O && (null === (a = r.filteredOptions) || void 0 === a ? void 0 : a.length) && !s && o.defaultCheckAll()
var A = !1 !== i
if (!1 === f && u) {
var V = h
? r.getSelectedOptions(b).map(function (e) {
return e[g || 'value']
})
: r.getSelectedOptions(b)
p(c ? V.concat() : V[0])
}
return A && !1 !== e.autoLoadOptionsFromSource && o.toDispose.push(m || !_ ? r.addInitHook(o.reload) : _(o.initOptions, 'init')), o
}
return (
o.__extends(a, n),
(a.prototype.componentDidMount = function () {
;(this.mounted = !0), this.normalizeValue()
}),
(a.prototype.shouldComponentUpdate = function (t) {
var n
return (
!1 === e.strictMode ||
!1 === t.strictMode ||
!(!t.source && !t.autoComplete) ||
!!(null === (n = t.formItem) || void 0 === n ? void 0 : n.expressionsInOptions) ||
!!s.anyChanged(F, this.props, t)
)
}),
(a.prototype.componentDidUpdate = function (t) {
var n = this,
a = this.props,
o = a.formItem
if (!a.source && t.options !== a.options && o) o.setOptions(v.normalizeOptions(a.options || [], void 0, a.valueField), this.changeOptionValue, a.data), this.normalizeValue()
else if (!1 !== e.autoLoadOptionsFromSource && (a.formInited || void 0 === a.formInited) && a.source && o && (t.source !== a.source || t.data !== a.data)) {
if (c.isPureVariable(a.source))
f.resolveVariableAndFilter(t.source, t.data, '| raw') !== f.resolveVariableAndFilter(a.source, a.data, '| raw') &&
(o.loadOptionsFromDataScope(a.source, a.data, this.changeOptionValue), this.normalizeValue())
else
i.isEffectiveApi(a.source, a.data) &&
i.isApiOutdated(t.source, a.source, t.data, a.data) &&
o.loadOptions(a.source, a.data, void 0, !0, this.changeOptionValue).then(function () {
return n.normalizeValue()
})
}
;(t.value !== a.value || (null == o ? void 0 : o.expressionsInOptions)) && (null == o || o.syncOptions(void 0, a.data))
}),
(a.prototype.componentWillUnmount = function () {
var e, t
null === (t = (e = this.props).removeHook) || void 0 === t || t.call(e, this.reload, 'init'),
(this.mounted = !1),
this.toDispose.forEach(function (e) {
return e()
}),
(this.toDispose = [])
}),
(a.prototype.oldDispatchOptionEvent = function (e, t) {
return (
void 0 === t && (t = ''),
o.__awaiter(this, void 0, void 0, function () {
var n, a, i, r
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (n = this.props), (a = n.dispatchEvent), (i = n.options), [4, a(e, g.resolveEventData(this.props, { value: t, options: i, items: i }))]
case 1:
return [2, !!(null == (r = o.sent()) ? void 0 : r.prevented)]
}
})
})
)
}),
(a.prototype.dispatchOptionEvent = function (e, t) {
return (
void 0 === t && (t = ''),
o.__awaiter(this, void 0, void 0, function () {
var n, a, i, r, s
return o.__generator(this, function (l) {
switch (l.label) {
case 0:
return (n = this.props), (a = n.dispatchEvent), (i = n.options), (r = n.value), [4, a(e, g.resolveEventData(this.props, o.__assign({ value: r, options: i, items: i }, t)))]
case 1:
return [2, !!(null == (s = l.sent()) ? void 0 : s.prevented)]
}
})
})
)
}),
(a.prototype.doAction = function (e, t, n) {
var a = this.props,
o = a.resetValue,
i = a.onChange,
r = null == e ? void 0 : e.actionType
'clear' === r ? null == i || i('') : 'reset' === r && (null == i || i(null != o ? o : ''))
}),
(a.prototype.normalizeValue = function () {
var e = this.props,
t = e.joinValues,
n = e.extractValue,
a = e.value,
o = e.multiple,
i = e.formItem,
r = e.valueField
e.enableNodePath, e.pathSeparator
var s = e.onChange
if (i && !1 === t && i.options.length)
if (!1 !== n || ('string' != typeof a && 'number' != typeof a)) {
if (
!0 === n &&
a &&
!(
(Array.isArray(a) &&
a.every(function (e) {
return 'string' == typeof e || 'number' == typeof e
})) ||
'string' == typeof a ||
'number' == typeof a
)
) {
l = i.getSelectedOptions(a).map(function (e) {
return e[r || 'value']
})
null == s || s(o ? l.concat() : l[0])
}
} else {
var l = i.getSelectedOptions(a)
null == s || s(o ? l.concat() : l[0])
}
}),
(a.prototype.getWrappedInstance = function () {
return this.input
}),
(a.prototype.inputRef = function (e) {
this.input = e
}),
(a.prototype.handleToggle = function (e, t, n) {
return o.__awaiter(this, void 0, void 0, function () {
var a, i, r, s, l
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (a = this.props), (i = a.onChange), (r = a.formItem), (s = a.value), r ? ((l = this.toggleValue(e, s)), [4, this.dispatchOptionEvent('change', { value: l })]) : [2]
case 1:
return o.sent() || (i && i(l, t, n)), [2]
}
})
})
}),
(a.prototype.defaultCheckAll = function () {
var e = this.props,
t = e.value,
n = e.formItem,
a = e.setPrinstineValue
if (n && !n.getSelectedOptions(t).length) {
var o = n.filteredOptions.concat(),
i = this.formatValueArray(o)
null == a || a(i)
}
}),
(a.prototype.formatValueArray = function (e) {
var t = this.props,
n = t.joinValues,
a = t.extractValue,
o = t.valueField,
i = t.delimiter,
r = t.resetValue,
l = ''
return (
t.multiple
? ((l = s.getTreeDepth(e) > 1 ? s.flattenTree(e) : e),
n
? (l = l
.map(function (e) {
return e[o || 'value']
})
.filter(function (e) {
return null != e
})
.join(i))
: a &&
(l = l
.map(function (e) {
return e[o || 'value']
})
.filter(function (e) {
return null != e
})))
: ((l = e[0] || r), n && l && (l = l[o || 'value'])),
l
)
}),
(a.prototype.handleToggleAll = function () {
return o.__awaiter(this, void 0, void 0, function () {
var e, t, n, a, i, r, l, d, p
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(e = this.props),
(t = e.value),
(n = e.onChange),
(a = e.formItem),
(i = e.valueField),
a
? ((r = a.getSelectedOptions(t)),
(l = s.flattenTree(a.filteredOptions.concat()).filter(function (e) {
return null != e && null != e[i || 'value']
})),
(d = r.length === l.length ? [] : a.filteredOptions.concat()),
(p = this.formatValueArray(d)),
[4, this.dispatchOptionEvent('change', { value: p })])
: [2]
)
case 1:
return o.sent() || (n && n(p)), [2]
}
})
})
}),
(a.prototype.toggleValue = function (e, t) {
var n = this.props,
a = n.joinValues,
o = n.extractValue,
i = n.valueField,
r = n.delimiter,
s = n.clearable,
l = n.resetValue,
d = n.multiple,
p = n.formItem,
u = void 0 !== t ? p.getSelectedOptions(t).concat() : [],
c = O.default(u, m.optionValueCompare(e[i || 'value'], i || 'value')),
f = ''
return (
d
? (~c ? u.splice(c, 1) : u.push(e),
(f = u),
a
? (f = f
.map(function (e) {
return e[i || 'value']
})
.join(r))
: o &&
(f = f.map(function (e) {
return e[i || 'value']
})))
: (~c && s ? u.splice(c, 1) : (u = [e]), (f = u[0] || l), (a || o) && f && (f = f[i || 'value'])),
f
)
}),
(a.prototype.reload = function () {
return this.reloadOptions()
}),
(a.prototype.reloadOptions = function (e, t, n) {
void 0 === t && (t = !1), void 0 === n && (n = this.props.data)
var a = this.props,
o = a.source,
s = a.formItem,
l = a.onChange,
d = a.setPrinstineValue
if ((a.valueField, s && c.isPureVariable(o))) r.isAlive(s) && s.loadOptionsFromDataScope(o, n, this.changeOptionValue)
else if (s && i.isEffectiveApi(o, n)) return r.isAlive(s) ? s.loadOptions(o, n, void 0, !1, t ? d : l, e) : void 0
}),
(a.prototype.deferLoad = function (e) {
return o.__awaiter(this, void 0, void 0, function () {
var t, n, a, i, r, s, l, d
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(t = this.props),
(n = t.deferApi),
(a = t.source),
(i = t.env),
(r = t.formItem),
(s = t.data),
(l = e.deferApi || n || a)
? [4, null == r ? void 0 : r.deferLoadOptions(e, l, u.createObject(s, e))]
: (i.notify(
'error',
'\u8bf7\u5728\u9009\u9879\u4e2d\u8bbe\u7f6e `deferApi` \u6216\u8005\u8868\u5355\u9879\u4e2d\u8bbe\u7f6e `deferApi`\uff0c\u7528\u6765\u52a0\u8f7d\u5b50\u9009\u9879。'
),
[2])
)
case 1:
return (d = o.sent()), this.oldDispatchOptionEvent('loadFinished', d), this.dispatchOptionEvent('deferLoadFinished', { result: d }), [2]
}
})
})
}),
(a.prototype.leftDeferLoad = function (e, t) {
var n = this.props,
a = n.deferApi,
o = n.source,
i = n.env,
r = n.formItem,
s = n.data,
l = e.deferApi || a || o
l
? null == r || r.deferLoadLeftOptions(e, t, l, u.createObject(s, e))
: i.notify('error', '\u8bf7\u5728\u9009\u9879\u4e2d\u8bbe\u7f6e `deferApi` \u6216\u8005\u8868\u5355\u9879\u4e2d\u8bbe\u7f6e `deferApi`\uff0c\u7528\u6765\u52a0\u8f7d\u5b50\u9009\u9879。')
}),
(a.prototype.expandTreeOptions = function (e) {
var t = this.props,
n = t.deferApi,
a = t.source,
o = t.env,
i = t.formItem,
r = t.data,
s = n || a
s
? null == i || i.expandTreeOptions(e, s, u.createObject(r))
: o.notify('error', '\u8bf7\u5728\u9009\u9879\u4e2d\u8bbe\u7f6e `deferApi` \u6216\u8005\u8868\u5355\u9879\u4e2d\u8bbe\u7f6e `deferApi`\uff0c\u7528\u6765\u52a0\u8f7d\u5b50\u9009\u9879。')
}),
(a.prototype.initOptions = function (e) {
var t
return o.__awaiter(this, void 0, void 0, function () {
var n, a, i, s, l
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return [4, this.reloadOptions(!1, !0)]
case 1:
return (
o.sent(),
(n = this.props),
(a = n.formItem),
(i = n.name),
(s = n.multiple),
(l = n.defaultCheckAll),
a
? (r.isAlive(a) && a.value && u.setVariable(e, i, a.value), s && l && (null === (t = a.filteredOptions) || void 0 === t ? void 0 : t.length) && this.defaultCheckAll(), [2])
: [2]
)
}
})
})
}),
(a.prototype.focus = function () {
this.input && this.input.focus && this.input.focus()
}),
(a.prototype.changeOptionValue = function (e) {
var t = this.props,
n = t.onChange,
a = t.formInited,
o = t.setPrinstineValue,
i = t.value
!1 === a ? void 0 === i && (null == o || o(e)) : null == n || n(e)
}),
(a.prototype.setOptions = function (e, t) {
void 0 === t && (t = !1)
var n = this.props.formItem
n && n.setOptions(t ? e : v.normalizeOptions(e || [], void 0, this.props.valueField), this.changeOptionValue, this.props.data)
}),
(a.prototype.syncOptions = function () {
var e = this.props.formItem
e && e.syncOptions(void 0, this.props.data)
}),
(a.prototype.setLoading = function (e) {
var t = this.props.formItem
t && t.setLoading(e)
}),
(a.prototype.handleOptionAdd = function (e, t, n) {
var a, i
return (
void 0 === e && (e = -1),
void 0 === n && (n = !1),
o.__awaiter(this, void 0, void 0, function () {
var r,
l,
d,
p,
c,
f,
h,
_,
v,
m,
g,
y,
b,
O,
A,
V,
F,
C,
I,
j,
D,
E,
w,
L,
P,
T = this
return o.__generator(this, function (x) {
switch (x.label) {
case 0:
return (
(r = this.props),
(l = r.addControls),
(d = r.addDialog),
(p = r.disabled),
(c = r.labelField),
(f = r.onOpenDialog),
(h = r.optionLabel),
(_ = r.addApi),
(v = r.source),
(m = r.data),
(g = r.valueField),
(y = r.deferField),
(b = r.formItem),
(O = r.createBtnLabel),
(A = r.env),
(V = r.translate),
p || !b
? [2]
: (n || (Array.isArray(l) && l.length) || (l = [{ type: 'text', name: c || 'label', label: !1, required: !0, placeholder: V('Options.addPlaceholder') }]),
(F = Array.isArray(e) ? s.getTree(b.options, e.slice(0, -1)) : void 0),
(C = u.createObject(m, Array.isArray(e) ? o.__assign({ parent: F }, t) : t)),
(I = !1),
n ? ((D = C), [3, 3]) : [3, 1])
)
case 1:
return [
4,
f(
o.__assign(o.__assign({ type: 'dialog', title: O || '\u65b0\u589e'.concat(h || '\u9009\u9879') }, d), {
body: {
type: 'form',
api: _,
controls: o.__spreadArray(
[
{ type: 'hidden', name: 'idx', value: e },
{ type: 'hidden', name: 'parent', value: F }
],
o.__read(l || []),
!1
),
onSubmit: function (e) {
return o.__awaiter(T, void 0, void 0, function () {
var t, n, a, i
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(t = c || 'label'),
(n = g || 'value'),
[4, this.dispatchOptionEvent('addConfirm', { item: ((a = {}), (a[t] = e[t]), (a[n] = null !== (i = e[n]) && void 0 !== i ? i : e[t]), a) })]
)
case 1:
return [2, !(I = o.sent())]
}
})
})
}
}
}),
C
)
]
case 2:
;(D = x.sent()), (x.label = 3)
case 3:
return (j = D), n ? [4, this.dispatchOptionEvent('addConfirm', { item: j })] : [3, 5]
case 4:
return x.sent() ? [2] : [3, 6]
case 5:
if (I) return [2]
x.label = 6
case 6:
if (!n || !_) return [3, 10]
x.label = 7
case 7:
return x.trys.push([7, 9, , 10]), [4, A.fetcher(_, j, { method: 'post' })]
case 8:
return (
(E = x.sent()).ok
? (j = E.data || j)
: (!_.silent &&
A.notify(
'error',
null !== (i = null === (a = null == _ ? void 0 : _.messages) || void 0 === a ? void 0 : a.failed) && void 0 !== i ? i : E.msg || V('Options.createFailed')
),
(j = null)),
[3, 10]
)
case 9:
return (w = x.sent()), (j = null), console.error(w), !_.silent && A.notify('error', w.message), [3, 10]
case 10:
return j
? (j.hasOwnProperty(g || 'value') || (j = o.__assign(o.__assign({}, j), (((P = {})[g || 'value'] = j[c || 'label']), P))),
[4, this.oldDispatchOptionEvent('add', o.__assign(o.__assign({}, j), { idx: e }))])
: [2]
case 11:
return x.sent() ? [2] : ((null == F ? void 0 : F.hasOwnProperty(y)) && F[y]) || (null == F ? void 0 : F.defer) ? [4, this.deferLoad(F)] : [3, 13]
case 12:
return x.sent(), [3, 14]
case 13:
v && _
? this.reload()
: ((L = b.options.concat()),
Array.isArray(e) ? (L = s.spliceTree(L, e, 0, o.__assign({}, j))) : ~e ? L.splice(e, 0, o.__assign({}, j)) : L.push(o.__assign({}, j)),
b.setOptions(L, this.changeOptionValue, m)),
(x.label = 14)
case 14:
return [2]
}
})
})
)
}),
(a.prototype.handleOptionEdit = function (e, t, n) {
var a, i
return (
void 0 === t && (t = e),
void 0 === n && (n = !1),
o.__awaiter(this, void 0, void 0, function () {
var r,
l,
d,
p,
c,
f,
h,
_,
v,
m,
g,
y,
b,
O,
A,
V,
F,
C,
I,
j,
D,
E = this
return o.__generator(this, function (w) {
switch (w.label) {
case 0:
return (
(r = this.props),
(l = r.editControls),
(d = r.editDialog),
(p = r.disabled),
(c = r.labelField),
(f = r.valueField),
(h = r.onOpenDialog),
(_ = r.editApi),
(v = r.editInitApi),
(m = r.env),
(g = r.source),
(y = r.data),
(b = r.formItem),
(O = r.optionLabel),
(A = r.translate),
p || !b
? [2]
: (n || (Array.isArray(l) && l.length) || (l = [{ type: 'text', name: c || 'label', label: !1, placeholder: A('Options.addPlaceholder') }]),
(V = !1),
n ? ((C = e), [3, 3]) : [3, 1])
)
case 1:
return [
4,
h(
o.__assign(o.__assign({ type: 'dialog', title: A('Options.editLabel', { label: O || A('Options.label') }) }, d), {
body: {
type: 'form',
initApi: v,
api: _,
controls: l,
onSubmit: function (e) {
return o.__awaiter(E, void 0, void 0, function () {
var t, n, a, i
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(t = c || 'label'),
(n = f || 'value'),
[4, this.dispatchOptionEvent('editConfirm', { item: ((a = {}), (a[t] = e[t]), (a[n] = null !== (i = e[n]) && void 0 !== i ? i : e[t]), a) })]
)
case 1:
return [2, !(V = o.sent())]
}
})
})
}
}
}),
u.createObject(y, e)
)
]
case 2:
;(C = w.sent()), (w.label = 3)
case 3:
return (F = C), n ? [4, this.dispatchOptionEvent('editConfirm', { item: F })] : [3, 5]
case 4:
return w.sent() ? [2] : [3, 6]
case 5:
if (V) return [2]
w.label = 6
case 6:
if (!n || !_) return [3, 10]
w.label = 7
case 7:
return w.trys.push([7, 9, , 10]), [4, m.fetcher(_, u.createObject(y, F), { method: 'post' })]
case 8:
return (
(I = w.sent()).ok
? (F = I.data || F)
: (!_.silent &&
m.notify('error', null !== (i = null === (a = null == _ ? void 0 : _.messages) || void 0 === a ? void 0 : a.failed) && void 0 !== i ? i : I.msg || A('saveFailed')),
(F = null)),
[3, 10]
)
case 9:
return (j = w.sent()), (F = null), console.error(j), !_.silent && m.notify('error', j.message), [3, 10]
case 10:
return F ? [4, this.oldDispatchOptionEvent('edit', F)] : [2]
case 11:
return (
w.sent() ||
(g && _
? this.reload()
: (D = s.findTreeIndex(b.options, function (e) {
return e === t
})) && b.setOptions(s.spliceTree(b.options, D, 1, o.__assign(o.__assign({}, t), F)), this.changeOptionValue, y)),
[2]
)
}
})
})
)
}),
(a.prototype.handleOptionDelete = function (e) {
var t, n
return o.__awaiter(this, void 0, void 0, function () {
var a, i, r, l, d, p, c, f, _, v, m, g, y, b, O, A, V
return o.__generator(this, function (o) {
switch (o.label) {
case 0:
return (
(a = this.props),
(i = a.deleteConfirmText),
(r = a.disabled),
(l = a.data),
(d = a.deleteApi),
(p = a.onDelete),
(c = a.env),
(f = a.formItem),
(_ = a.source),
(v = a.valueField),
(m = a.translate),
r || !f ? [2] : ((g = u.createObject(l, e)), i ? [4, c.confirm(h.filter(m(i), g))] : [3, 2])
)
case 1:
return (y = o.sent()), [3, 3]
case 2:
;(y = !0), (o.label = 3)
case 3:
return y ? [4, this.oldDispatchOptionEvent('delete', g)] : [2]
case 4:
return o.sent() ? [2] : [4, this.dispatchOptionEvent('deleteConfirm', { item: e })]
case 5:
if (o.sent()) return [2]
o.label = 6
case 6:
return o.trys.push([6, 9, , 10]), d ? [4, c.fetcher(d, g, { method: 'delete' })] : [3, 8]
case 7:
if (!(b = o.sent()).ok)
return (
!d.silent &&
c.notify('error', null !== (n = null === (t = null == d ? void 0 : d.messages) || void 0 === t ? void 0 : t.failed) && void 0 !== n ? n : b.msg || m('deleteFailed')),
[2]
)
o.label = 8
case 8:
return (
p && p(g),
_
? this.reload()
: ((O = f.options.concat()),
(A = s.findTreeIndex(O, function (t) {
return t[v || 'value'] == e[v || 'value']
})) && f.setOptions(s.spliceTree(O, A, 1), this.changeOptionValue, l)),
[3, 10]
)
case 9:
return (V = o.sent()), console.error(V), !d.silent && c.notify('error', V.message), [3, 10]
case 10:
return [2]
}
})
})
}),
(a.prototype.render = function () {
var e = this.props,
n = e.value,
a = e.formItem,
r = e.addApi,
l = e.editApi,
d = e.deleteApi,
p = e.creatable,
u = e.editable,
c = e.removable,
f = e.enableNodePath,
h = e.pathSeparator,
_ = e.delimiter,
v = void 0 === _ ? ',' : _,
m = e.labelField,
g = void 0 === m ? 'label' : m,
y = e.valueField,
b = void 0 === y ? 'value' : y,
O = e.translate,
A = s.normalizeNodePath(n, f, g, b, h, v),
F = A.nodePathArray,
C = A.nodeValueArray
return V(
t,
o.__assign({}, this.props, {
placeholder: O(this.props.placeholder),
ref: this.inputRef,
options: a ? a.filteredOptions : [],
onToggle: this.handleToggle,
onToggleAll: this.handleToggleAll,
selectedOptions: a ? a.getSelectedOptions(n, f ? C : void 0) : [],
nodePath: F,
loading: !!a && a.loading,
setLoading: this.setLoading,
setOptions: this.setOptions,
syncOptions: this.syncOptions,
reloadOptions: this.reload,
deferLoad: this.deferLoad,
leftDeferLoad: this.leftDeferLoad,
expandTreeOptions: this.expandTreeOptions,
creatable: !(!1 === p || !i.isEffectiveApi(r)) || p,
editable: u || (!1 !== u && i.isEffectiveApi(l)),
removable: c || (!1 !== c && i.isEffectiveApi(d)),
onAdd: this.handleOptionAdd,
onEdit: this.handleOptionEdit,
onDelete: this.handleOptionDelete
})
)
}),
(a.displayName = 'OptionsControl('.concat(e.type, ')')),
(a.defaultProps = o.__assign(
{
delimiter: ',',
labelField: 'label',
valueField: 'value',
joinValues: !0,
extractValue: !1,
multiple: !1,
placeholder: 'Select.placeholder',
resetValue: '',
deleteConfirmText: 'deleteConfirm'
},
t.defaultProps
)),
(a.propsList = t.propsList ? o.__spreadArray([], o.__read(t.propsList), !1) : []),
(a.ComposedComponent = t),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', void 0)], a.prototype, 'inputRef', null),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object, Boolean, Boolean]), o.__metadata('design:returntype', Promise)],
a.prototype,
'handleToggle',
null
),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', []), o.__metadata('design:returntype', Promise)], a.prototype, 'handleToggleAll', null),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', []), o.__metadata('design:returntype', void 0)], a.prototype, 'reload', null),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Boolean, Object, Object]), o.__metadata('design:returntype', void 0)],
a.prototype,
'reloadOptions',
null
),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', Promise)], a.prototype, 'deferLoad', null),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object, Object]), o.__metadata('design:returntype', void 0)],
a.prototype,
'leftDeferLoad',
null
),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Array]), o.__metadata('design:returntype', void 0)],
a.prototype,
'expandTreeOptions',
null
),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', Promise)], a.prototype, 'initOptions', null),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', void 0)],
a.prototype,
'changeOptionValue',
null
),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Array, Object]), o.__metadata('design:returntype', void 0)],
a.prototype,
'setOptions',
null
),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', []), o.__metadata('design:returntype', void 0)], a.prototype, 'syncOptions', null),
o.__decorate([s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Boolean]), o.__metadata('design:returntype', void 0)], a.prototype, 'setLoading', null),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object, Object, Boolean]), o.__metadata('design:returntype', Promise)],
a.prototype,
'handleOptionAdd',
null
),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object, Object, Boolean]), o.__metadata('design:returntype', Promise)],
a.prototype,
'handleOptionEdit',
null
),
o.__decorate(
[s.autobind, o.__metadata('design:type', Function), o.__metadata('design:paramtypes', [Object]), o.__metadata('design:returntype', Promise)],
a.prototype,
'handleOptionDelete',
null
),
a
)
})(b.default.Component)
return d.registerFormItem(o.__assign(o.__assign({}, e), { strictMode: !1, component: n }))
}
;(t.OptionsControl = function (e) {
return function (t) {
return C(o.__assign(o.__assign({}, e), { component: t })).component
}
}),
(t.detectProps = F),
(t.registerOptionsControl = C)
}) /*!node_modules/amis-core/lib/renderers/register.js*/
amis.define('0bde9be', function (e, n, r, o) {
'use strict'
Object.defineProperty(n, '__esModule', { value: !0 })
var i = e('68b98b9'),
s = e('326ef36'),
t = e('6352ca6'),
d = e('ec36da8')
function a() {
window.AmisCustomRenderers &&
Object.keys(window.AmisCustomRenderers).forEach(function (e) {
if (s.renderersMap[e])
console.warn('[amis-core]\uff1a\u9884\u6ce8\u518c\u6e32\u67d3\u5668\u5931\u8d25\uff0c\u5f53\u524d\u5df2\u5b58\u5728\u91cd\u540d\u6e32\u67d3\u5668\uff08'.concat(e, '\uff09。'))
else {
var n = window.AmisCustomRenderers[e]
n && m(e, n)
}
})
}
function m(e, n) {
var r = { renderer: s.Renderer, formitem: d.FormItem, options: t.OptionsControl },
o = n.component
!o && window.AmisCustomRenderers && window.AmisCustomRenderers[n.type] && window.AmisCustomRenderers[n.type].component && (o = window.AmisCustomRenderers[n.type].component),
o && ['renderer', 'formitem', 'options'].includes(e) && r[e] && r[e](i.__assign(i.__assign({}, n.config || {}), { type: n.type, weight: n.weight || 0, autoVar: n.autoVar || !1 }))(o)
}
a(),
window.addEventListener(
'message',
function (e) {
var n, r, o
if (
e.data &&
'amis-renderer-register-event' === (null === (n = e.data) || void 0 === n ? void 0 : n.type) &&
(null === (r = e.data) || void 0 === r ? void 0 : r.amisRenderer) &&
e.data.amisRenderer.type
) {
var i = null === (o = e.data) || void 0 === o ? void 0 : o.amisRenderer,
t = (null == i ? void 0 : i.usage) || 'renderer'
s.renderersMap[i.type]
? console.warn('[amis-core]\uff1a\u52a8\u6001\u6ce8\u518c\u6e32\u67d3\u5668\u5931\u8d25\uff0c\u5f53\u524d\u5df2\u5b58\u5728\u91cd\u540d\u6e32\u67d3\u5668\uff08'.concat(i.type, '\uff09。'))
: (console.info('[amis-core]\u54cd\u5e94\u52a8\u6001\u6ce8\u518c\u6e32\u67d3\u5668\u4e8b\u4ef6\uff1a', i.type), m(t, i))
}
},
!1
),
(n.autoPreRegisterAmisCustomRenderers = a)
}) /*!node_modules/amis-core/lib/utils/attachmentAdpator.js*/
amis.define('d9368af', function (e, a, t, n) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var o = e('68b98b9')
function d(e, a, t) {
var n
if (e && e.headers && e.headers['content-disposition']) {
var d = e.headers['content-disposition'],
i = ''
if (d && -1 !== d.indexOf('attachment')) {
if (null == t ? void 0 : t.downloadFileName) i = t.downloadFileName
else {
var r = d.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/i)
r && r.length && (i = r[1].replace("UTF-8''", '').replace(/['"]/g, '')), i && i.replace(/[^%]/g, '').length > 2 && (i = (i = decodeURIComponent(i)).replace(/\+/g, ' '))
}
var l = null === (n = e.headers) || void 0 === n ? void 0 : n['content-type'],
s = '[object Blob]' === e.data.toString() ? e.data : new Blob([e.data], { type: l })
if (void 0 !== window.navigator.msSaveBlob) window.navigator.msSaveBlob(s, i)
else {
var c = window.URL || window.webkitURL,
v = c.createObjectURL(s)
if (i) {
var w = document.createElement('a')
void 0 === w.download ? (window.location = v) : ((w.href = v), (w.download = i), document.body.appendChild(w), w.click())
} else window.location = v
setTimeout(function () {
c.revokeObjectURL(v)
}, 100)
}
return o.__assign(o.__assign({}, e), { data: { status: 0, msg: a('Embed.downloading') } })
}
} else if (e.data && '[object Blob]' === e.data.toString())
return new Promise(function (a, t) {
var n = new FileReader()
n.addEventListener('loadend', function (d) {
var i = n.result
try {
a(o.__assign(o.__assign({}, e), { data: o.__assign({}, JSON.parse(i)) }))
} catch (d) {
t(d)
}
}),
n.readAsText(e.data)
})
return e
}
;(a.attachmentAdpator = d), (a.default = d)
}) /*!node_modules/amis-core/lib/utils/handleAction.js*/
amis.define('254acb9', function (e, a, n, t) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var i = e('d9d4e46')
function o(e, a, n, t) {
e.persist()
var o = n.onAction,
d = a.onClick
'string' == typeof d && (d = i.str2function(d, 'event', 'props', 'data'))
var r = d && d(e, n, t || n.data)
if (!e.isDefaultPrevented() && !1 !== r && o) {
if ((e.preventDefault(), 'download' === a.actionType)) {
a.actionType = 'ajax'
var l = i.normalizeApi(a.api)
;(l.responseType = 'blob'), (l.downloadFileName = a.downloadFileName), (a.api = l)
}
o(e, a, t || n.data)
}
}
;(a.default = o), (a.handleAction = o)
}) /*!node_modules/amis-core/lib/utils/json-schema-2-amis-schema.js*/
amis.define('c7550a7', function (e, t, i, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9')
function m(e, t, i) {
var r = i.required || [],
u = {},
s = {},
a = 'text'
if ('integer' === e.type) (a = 'number'), 'number' == typeof e.minimum && (u.min = e.minimum)
else if ('array' === e.type) {
a = 'combo'
var c = e.items
'object' === c.type ? ((u.controls = o(c.properties, c)), (u.multiLine = !0)) : ((a = 'array'), (u.inline = !0), (u.items = m(c, 'item', e)))
} else 'string' === e.type && Array.isArray(e.enum) && ((a = 'select'), (u.options = e.enum))
return (
'number' == typeof e.minimum && (s.minimum = e.minimum),
n.__assign({ name: t, type: a, required: !!~r.indexOf(t), label: e.title || e.description, desc: e.title && e.description, value: e.default, validations: s }, u)
)
}
function o(e, t) {
return Object.keys(e).map(function (i) {
return m(e[i], i, t)
})
}
t.JSONSchme2AMisSchema = function (e) {
if ('object' !== e.type) throw new Error('JSONSchme2AMisSchema \u53ea\u652f\u6301 object \u8f6c\u6362')
return { title: e.title, type: 'form', mode: 'horizontal', controls: o(e.properties, e) }
}
}) /*!node_modules/amis-core/lib/utils/labelToString.js*/
amis.define('e3b8aee', function (e, r, t, n) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 })
var a = e('68b98b9')
function i(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var l = i(e('0910768'))
r.labelToString = function (e) {
var r,
t,
n = typeof e
if ('string' === n) return e
if ('number' === n) return ''.concat(e)
if (l.default(e))
try {
for (var i = a.__values(['__title', 'label', Object.keys(e)[0]]), f = i.next(); !f.done; f = i.next()) {
var u = f.value
if ('string' == typeof e[u]) return e[u]
}
} catch (e) {
r = { error: e }
} finally {
try {
f && !f.done && (t = i.return) && t.call(i)
} finally {
if (r) throw r.error
}
}
return 'invalid label'
}
}) /*!node_modules/amis-core/lib/utils/scrollPosition.js*/
amis.define('494d8b2', function (o, t, e, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = o('1d5900b')
t.scrollPosition = function (o) {
return r.position(
o,
(function (o, t) {
if (!o) return document.body
var e = getComputedStyle(o),
n = 'absolute' === e.position,
r = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/
if ('fixed' === e.position) return document.body
for (var i = o; (i = i.parentElement); ) if (((e = getComputedStyle(i)), (!n || 'static' !== e.position) && r.test(e.overflow + e.overflowY + e.overflowX))) return i
return document.body
})(o)
)
}
}) /*!node_modules/amis-core/lib/utils/style.js*/
amis.define('5b3f087', function (e, r, t, a) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('68b98b9'), e('c3389ff'), e('8b081ba'), e('0910768')
var d = e('42c789c')
e('8b641b6')
var i = e('90272dd'),
u = e('8834362'),
o = e('f4cd1ba')
function n(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var b = n(i),
f = n(u)
function l(e) {
return 'string' == typeof e && -1 === e.indexOf(',') && -1 === e.indexOf('(') ? 'url("'.concat(e, '")') : e
}
r.buildStyle = function (e, r) {
if (!e) return e
var t =
'string' == typeof e
? d.resolveVariableAndFilter(e, r, '| raw') || {}
: b.default(e, function (e) {
return d.resolveVariableAndFilter(e, r, '| raw') || e
})
return (
Object.keys(t).forEach(function (e) {
'radius' === e &&
((t.borderRadius =
t.radius['top-left-border-radius'] + ' ' + t.radius['top-right-border-radius'] + ' ' + t.radius['bottom-right-border-radius'] + ' ' + t.radius['bottom-left-border-radius']),
delete t.radius),
e.indexOf('-') > 0 && ((t[f.default(o.valueMap[e] || e)] = t[e]), delete t[e])
}),
t.backgroundImage && (t.backgroundImage = l(t.backgroundImage)),
t.borderImage && (t.borderImage = l(t.borderImage)),
t.listStyleImage && (t.listStyleImage = l(t.listStyleImage)),
t
)
}
}) /*!node_modules/amis-core/lib/utils/uncontrollable.js*/
amis.define('88c8f0e', function (e, t, n, u) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var f = e('6baf255')
function r(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var a = r(e('2fb8d9c'))
t.uncontrollable = function (e, t, n) {
var u = f.uncontrollable(e, t, n)
return a.default(u, e)
}
}) /*!node_modules/amis-core/lib/utils/toNumber.js*/
amis.define('e0700ab', function (e, t, i, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.toNumber = function (e, t) {
void 0 === t && (t = 0)
var i = parseInt(e, 10)
return isNaN(i) ? t : i
})
}) /*!node_modules/amis-core/lib/utils/decodeEntity.js*/
amis.define('e17d2ed', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
t.decodeEntity = function (e) {
var t = document.createElement('textarea')
return (t.innerHTML = e), t.value
}
}) /*!node_modules/amis-core/lib/utils/arraySlice.js*/
amis.define('7c24d36', function (r, e, a, i) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var t = r('68b98b9'),
n = r('30f4e61')
e.arraySlice = function (r, e) {
var a, i
if ('string' != typeof e) return r
if ((n.isObservableArray(r) && (r = n.toJS(r)), !(e = e.trim()) || !Array.isArray(r))) return r
var s = e.split(','),
l = [],
f = r.length
if (!f) return r
try {
for (var u = t.__values(s), o = u.next(); !o.done; o = u.next()) {
var c = o.value
if (-1 === c.indexOf(':')) {
var p = parseInt(c, 10)
!isNaN(p) && p < f && l.push(r[p])
} else {
var v = t.__read(c.split(':'), 2),
y = v[0],
d = v[1],
_ = parseInt(y || '0', 10)
if (((isNaN(_) || _ < 0) && (_ = 0), _ >= f)) continue
var N = parseInt(d, 10)
if ((isNaN(N) && (N = f), N < 0 && (N = f + N), N < _)) continue
N > f && (N = f), l.push.apply(l, t.__spreadArray([], t.__read(r.slice(_, N)), !1))
}
}
} catch (r) {
a = { error: r }
} finally {
try {
o && !o.done && (i = u.return) && i.call(u)
} finally {
if (a) throw a.error
}
}
return l
}
}) /*!node_modules/amis-core/lib/utils/math.js*/
amis.define('7c8f81e', function (t, e, i, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }),
(e.isIntegerInRange = function (t, e) {
var i = e || {},
n = i.start,
r = i.end,
u = i.left,
l = void 0 === u ? 'inclusive' : u,
a = i.right,
c = void 0 === a ? 'inclusive' : a
return (
!(null == t || 'number' != typeof t || !Number.isSafeInteger(t)) &&
('exclusive' === l && 'exclusive' === c
? t > n && t < r
: 'inclusive' === l && 'exclusive' === c
? t >= n && t < r
: 'exclusive' === l && 'inclusive' === c
? t > n && t <= r
: t >= n && t <= r)
)
}),
(e.numberFormatter = function (t, e) {
var i,
n = +t,
r = 'number' == typeof e ? e : (null === (i = n.toString().split('.')[1]) || void 0 === i ? void 0 : i.length) || 0
if ('number' == typeof n && !isNaN(n)) {
var u = r ? /(\d)(?=(\d{3})+\.)/g : /(\d)(?=(\d{3})+$)/g
return n.toFixed(r).replace(u, '$1,')
}
return (0).toFixed(r)
}),
(e.safeAdd = function (t, e) {
var i, n, r
try {
i = t.toString().split('.')[1].length
} catch (t) {
i = 0
}
try {
n = e.toString().split('.')[1].length
} catch (t) {
n = 0
}
return (t * (r = Math.pow(10, Math.max(i, n))) + e * r) / r
}),
(e.safeSub = function (t, e) {
var i, n, r
try {
i = t.toString().split('.')[1].length
} catch (t) {
i = 0
}
try {
n = e.toString().split('.')[1].length
} catch (t) {
n = 0
}
return (t * (r = Math.pow(10, Math.max(i, n))) - e * r) / r
})
}) /*!node_modules/amis-core/lib/locale.js*/
amis.define('1b2b2b8', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var a = e('68b98b9'),
o = e('ac704b9'),
i = e('2fb8d9c'),
l = e('8b081ba')
e('c3389ff'), e('0910768')
var c = e('730a210')
function d(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
e('8b641b6')
var f = d(o),
u = d(i),
s = d(l),
p = e('ac704b9'),
v = (p.default || p).createElement
;(p.default || p).Fragment
var h = 'zh-CN',
b = { 'zh-CN': 'zh-cn', 'en-US': 'en', 'de-DE': 'de' },
_ = {}
function g(e, t, n) {
void 0 === n && (n = !0), (_[e] = n ? a.__assign(a.__assign({}, _[e] || {}), t) : a.__assign(a.__assign({}, t), _[e] || {}))
}
var y = {}
function m(e, t) {
return e.replace(/(\\)?\{\{([\s\S]+?)\}\}/g, function (e, n, r) {
return n ? e.substring(1) : c.resolveVariable(r, t || {})
})
}
function C(e) {
if (e && y[e]) return y[e]
var t = function (t) {
for (var n, r, o, i = [], l = 1; l < arguments.length; l++) i[l - 1] = arguments[l]
if (!t || 'string' != typeof t) return t
var c = (null === (n = _[e]) || void 0 === n ? void 0 : n[t]) || (null === (r = _[h]) || void 0 === r ? void 0 : r[t]) || (null === (o = _['zh-CN']) || void 0 === o ? void 0 : o[t]) || t
return m.apply(void 0, a.__spreadArray([c], a.__read(i), !1))
}
return e && (y[e] = t), t
}
var x = f.default.createContext('')
;(t.LocaleContext = x),
(t.extendLocale = g),
(t.getDefaultLocale = function () {
return h
}),
(t.localeable = function (e) {
var t
return u.default(
(((t = (function (t) {
function n(e) {
var n = t.call(this, e) || this
return (n.childRef = n.childRef.bind(n)), (n.getWrappedInstance = n.getWrappedInstance.bind(n)), n
}
return (
a.__extends(n, t),
(n.prototype.childRef = function (e) {
for (; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
this.ref = e
}),
(n.prototype.getWrappedInstance = function () {
return this.ref
}),
(n.prototype.render = function () {
var t,
n,
r = this.props.locale || this.context || h,
o = { locale: r, translate: this.props.translate || C(r) }
s.default.locale(null !== (t = null == b ? void 0 : b[r]) && void 0 !== t ? t : r)
var i =
(null === (n = e.prototype) || void 0 === n ? void 0 : n.isReactComponent) || e.$$typeof === Symbol.for('react.forward_ref')
? { ref: this.childRef }
: { forwardedRef: this.childRef },
l = v(e, a.__assign({}, this.props, o, i))
return this.context ? l : v(x.Provider, { value: r }, l)
}),
n
)
})(f.default.Component)).displayName = 'I18N('.concat(e.displayName || e.name, ')')),
(t.contextType = x),
(t.ComposedComponent = e),
t),
e
)
}),
(t.makeTranslator = C),
(t.register = function (e, t) {
g(e, t)
}),
(t.removeLocaleData = function e(t, n) {
var r
Array.isArray(n)
? n.forEach(function (n) {
e(t, n)
})
: (null === (r = null == _ ? void 0 : _[t]) || void 0 === r ? void 0 : r[n]) && delete _[t][n]
}),
(t.setDefaultLocale = function (e) {
h = e
})
}) /*!node_modules/amis-core/lib/RootRenderer.js*/
amis.define('96c86b1', function (e, t, o, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var n = e('68b98b9'),
i = e('0d0462d'),
a = e('ac704b9'),
s = e('1c1d73a'),
l = e('3fc8322'),
d = e('939b8bb'),
c = e('575a22c'),
p = e('21106e3'),
f = e('3f34d90'),
u = e('90272dd'),
h = e('52fe564'),
v = e('d9d4e46'),
g = e('1e5c4ba')
function _(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var m = _(a),
y = _(p),
b = _(f),
D = _(u),
x = e('ac704b9'),
w = (x.default || x).createElement
;(x.default || x).Fragment
var C = (function (e) {
function t(t) {
var o,
r = this
return (
((r = e.call(this, t) || this).store = t.rootStore.addStore({ id: d.guid(), path: r.props.$path, storeType: l.RootStore.name, parentId: '' })),
r.store.updateContext(t.context),
r.store.initData(t.data),
r.store.updateLocation(t.location, null === (o = r.props.env) || void 0 === o ? void 0 : o.parseLocation),
d.bulkBindFunctions(r, ['handleAction', 'handleDialogConfirm', 'handleDialogClose', 'handleDrawerConfirm', 'handleDrawerClose', 'handlePageVisibilityChange']),
r
)
}
return (
n.__extends(t, e),
(t.prototype.componentDidMount = function () {
if ((document.addEventListener('visibilitychange', this.handlePageVisibilityChange), void 0 !== this.props.env.affixOffsetTop || void 0 !== this.props.env.affixOffsetBottom)) {
var e = g.findDOMNode(this)
;(null == e ? void 0 : e.parentElement) &&
(e.parentElement.style.cssText += '--affix-offset-top: '.concat(this.props.env.affixOffsetTop || 0, 'px; --affix-offset-bottom: ').concat(this.props.env.affixOffsetBottom || 0, 'px;'))
}
}),
(t.prototype.componentDidUpdate = function (e) {
var t,
o = this.props
o.data !== e.data && this.store.initData(o.data),
o.location !== e.location && this.store.updateLocation(o.location, null === (t = this.props.env) || void 0 === t ? void 0 : t.parseLocation),
o.context !== e.context && this.store.updateContext(o.context)
}),
(t.prototype.componentDidCatch = function (e, t) {
var o, r
null === (r = null === (o = this.props.env) || void 0 === o ? void 0 : o.errorCatcher) || void 0 === r || r.call(o, e, t), this.store.setRuntimeError(e, t)
}),
(t.prototype.componentWillUnmount = function () {
this.props.rootStore.removeStore(this.store), document.removeEventListener('visibilitychange', this.handlePageVisibilityChange)
}),
(t.prototype.handlePageVisibilityChange = function () {
var e = this.props.env
'hidden' === document.visibilityState ? null == e || e.tracker({ eventType: 'pageHidden' }) : 'visible' === document.visibilityState && (null == e || e.tracker({ eventType: 'pageVisible' }))
}),
(t.prototype.handleAction = function (e, t, o, r, i) {
var a,
l,
p = this
void 0 === r && (r = !1)
var f = this.props,
u = f.env,
g = f.messages,
_ = f.onAction,
m = f.mobileUI,
x = f.render,
w = this.store
if (!1 !== (null == _ ? void 0 : _(e, t, o, r, i || this.context))) {
var C = i || this.context
if ('reload' === t.actionType) t.target && C.reload(t.target, o)
else if (t.target)
t.target.split(',').forEach(function (e) {
var r = C.getComponentByName(e)
r && r.doAction && r.doAction(n.__assign(n.__assign({}, t), { target: void 0 }), o)
})
else if ('url' === t.actionType || 'link' === t.actionType || 'jump' === t.actionType) {
if (!u || !u.jumpTo) throw new Error('env.jumpTo is required!')
u.jumpTo(c.filter(t.to || t.url || t.link, o, '| raw'), t, o)
} else if ('email' === t.actionType) {
var T = c.filter(t.to, o),
S = D.default(b.default(t, 'to', 'cc', 'bcc', 'subject', 'body'), function (e) {
return c.filter(e, o)
}),
A = y.default.stringify(S),
k = 'mailto:'.concat(T, '?').concat(A)
window.open(k)
} else {
if ('dialog' === t.actionType)
return (
w.setCurrentAction(t, this.props.resolveDefinitions),
new Promise(function (e) {
w.openDialog(
o,
void 0,
function (o, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, o, r), e({ confirmed: o, value: r })
},
i || p.context
)
})
)
if ('drawer' === t.actionType)
return (
w.setCurrentAction(t, this.props.resolveDefinitions),
new Promise(function (e) {
w.openDrawer(
o,
void 0,
function (o, r) {
var n
null === (n = t.callback) || void 0 === n || n.call(t, o, r), e({ confirmed: o, value: r })
},
i
)
})
)
if ('toast' === t.actionType)
null === (l = null === (a = t.toast) || void 0 === a ? void 0 : a.items) ||
void 0 === l ||
l.forEach(function (e) {
u.notify(
e.level || 'info',
e.body ? x('body', e.body, n.__assign(n.__assign({}, p.props), { data: o, context: w.context })) : '',
n.__assign(n.__assign(n.__assign({}, t.toast), e), {
title: e.title ? x('title', e.title, n.__assign(n.__assign({}, p.props), { data: o, context: w.context })) : null,
mobileUI: m
})
)
})
else if ('ajax' === t.actionType)
w.setCurrentAction(t, this.props.resolveDefinitions),
w
.saveRemote(t.api, o, { successMessage: (t.messages && t.messages.success) || (g && g.saveSuccess), errorMessage: (t.messages && t.messages.failed) || (g && g.saveSuccess) })
.then(function () {
return n.__awaiter(p, void 0, void 0, function () {
var e
return n.__generator(this, function (r) {
switch (r.label) {
case 0:
return t.feedback && d.isVisible(t.feedback, w.data) ? [4, this.openFeedback(t.feedback, w.data)] : [3, 2]
case 1:
r.sent(), (r.label = 2)
case 2:
return (
(e = t.redirect && c.filter(t.redirect, w.data)) && u.jumpTo(e, t, w.data), t.reload && this.reloadTarget(i || this.context, s.filterTarget(t.reload, o), w.data), [2]
)
}
})
})
})
.catch(function (e) {
if (r || t.countDown) throw e
})
else if ('copy' === t.actionType && (t.content || t.copy)) u.copy && u.copy(c.filter(t.content || t.copy, o, '| raw'), { format: t.copyFormat })
else if ('saveAs' === t.actionType) {
var E = v.normalizeApi(t.api)
if ('string' == typeof E.url) {
var j = t.fileName || 'data.txt'
t.fileName || -1 === E.url.indexOf('.') || (j = E.url.split('/').pop()), h.saveAs(E.url, j)
}
}
}
}
}),
(t.prototype.handleDialogConfirm = function (e, t) {
for (var o, r = [], i = 2; i < arguments.length; i++) r[i - 2] = arguments[i]
var a = this.store
t.mergeData && 1 === e.length && e[0] && a.updateData(e[0])
var s = a.action.dialog
if (!s || !s.onConfirm || !1 !== s.onConfirm.apply(s, n.__spreadArray([e, t], n.__read(r), !1))) {
var l = a.action,
d = null !== (o = t.reload) && void 0 !== o ? o : l.reload,
c = a.getDialogScoped() || this.context
a.closeDialog(!0, e), d && c.reload(d, a.data)
}
}),
(t.prototype.handleDialogClose = function (e) {
void 0 === e && (e = !1), this.store.closeDialog(e)
}),
(t.prototype.handleDrawerConfirm = function (e, t) {
for (var o, r = [], i = 2; i < arguments.length; i++) r[i - 2] = arguments[i]
var a = this.store
t.mergeData && 1 === e.length && e[0] && a.updateData(e[0])
var s = a.action.drawer
if (!s || !s.onConfirm || !1 !== s.onConfirm.apply(s, n.__spreadArray([e, t], n.__read(r), !1))) {
var l = a.action,
d = null !== (o = t.reload) && void 0 !== o ? o : l.reload,
c = a.getDrawerScoped() || this.context
a.closeDrawer(!0, e),
setTimeout(function () {
d && c.reload(d, a.data)
}, 300)
}
}),
(t.prototype.handleDrawerClose = function () {
this.store.closeDrawer(!1)
}),
(t.prototype.openFeedback = function (e, t) {
var o = this
return new Promise(function (r) {
var n = o.store
n.setCurrentAction({ type: 'button', actionType: 'dialog', dialog: e }, o.props.resolveDefinitions),
n.openDialog(
t,
void 0,
function (e) {
r(e)
},
o.context
)
})
}),
(t.prototype.reloadTarget = function (e, t, o) {
e.reload(t, o)
}),
(t.prototype.renderRuntimeError = function () {
var e,
t = this.props,
o = t.render,
r = n.__rest(t, ['render']),
i = this.store
return o(
'error',
{ type: 'alert', level: 'danger' },
n.__assign(n.__assign({}, r), {
topStore: i,
body: w(m.default.Fragment, null, w('h3', null, null === (e = i.runtimeError) || void 0 === e ? void 0 : e.toString()), w('pre', null, w('code', null, i.runtimeErrorStack.componentStack)))
})
)
}),
(t.prototype.renderSpinner = function () {
var e = this.props,
t = e.render,
o = n.__rest(e, ['render']),
r = this.store
return t('spinner', { type: 'spinner' }, n.__assign(n.__assign({}, o), { topStore: r, show: r.loading }))
}),
(t.prototype.renderError = function () {
var e = this.props,
t = e.render,
o = n.__rest(e, ['render']),
r = this.store
return r.error ? t('error', { type: 'alert' }, n.__assign(n.__assign({}, o), { topStore: this.store, body: r.msg, showCloseButton: !0, onClose: r.clearMessage })) : null
}),
(t.prototype.renderDialog = function () {
var e = this.props,
t = e.render,
o = n.__rest(e, ['render']),
r = this.store
return t(
'dialog',
n.__assign(n.__assign({}, r.action && r.action.dialog), { type: 'dialog' }),
n.__assign(n.__assign({}, o), {
key: 'dialog',
topStore: this.store,
data: r.dialogData,
context: r.context,
onConfirm: this.handleDialogConfirm,
onClose: this.handleDialogClose,
show: r.dialogOpen,
onAction: this.handleAction
})
)
}),
(t.prototype.renderDrawer = function () {
var e = this.props,
t = e.render,
o = n.__rest(e, ['render']),
r = this.store
return t(
'drawer',
n.__assign(n.__assign({}, r.action && r.action.drawer), { type: 'drawer' }),
n.__assign(n.__assign({}, o), {
key: 'drawer',
topStore: this.store,
data: r.drawerData,
context: r.context,
onConfirm: this.handleDrawerConfirm,
onClose: this.handleDrawerClose,
show: r.drawerOpen,
onAction: this.handleAction
})
)
}),
(t.prototype.render = function () {
var e = this.props,
t = e.pathPrefix,
o = e.schema,
r = e.render,
i = n.__rest(e, ['pathPrefix', 'schema', 'render']),
a = this.store
return a.runtimeError
? this.renderRuntimeError()
: w(
m.default.Fragment,
null,
r(t, o, n.__assign(n.__assign({}, i), { topStore: this.store, data: this.store.downStream, context: a.context, onAction: this.handleAction })),
this.renderSpinner(),
this.renderError(),
this.renderDialog(),
this.renderDrawer()
)
}),
(t.contextType = s.ScopedContext),
(t = n.__decorate([i.observer, n.__metadata('design:paramtypes', [Object])], t))
)
})(m.default.Component)
t.RootRenderer = C
}) /*!node_modules/lodash/_baseDifference.js*/
amis.define('9c94939', function (n, e, f, r) {
var t = n('4d2f922'),
a = n('77becf8'),
i = n('b8f4fda'),
u = n('6d0c860'),
c = n('6984aa3'),
l = n('b0c6122')
f.exports = function (n, e, f, r) {
var o = -1,
h = a,
s = !0,
d = n.length,
v = [],
b = e.length
if (!d) return v
f && (e = u(e, c(f))), r ? ((h = i), (s = !1)) : e.length >= 200 && ((h = l), (s = !1), (e = new t(e)))
n: for (; ++o < d; ) {
var g = n[o],
p = null == f ? g : f(g)
if (((g = r || 0 !== g ? g : 0), s && p == p)) {
for (var m = b; m--; ) if (e[m] === p) continue n
v.push(g)
} else h(e, p, r) || v.push(g)
}
return v
}
}) /*!node_modules/lodash/difference.js*/
amis.define('580566b', function (n, e, f, c) {
var d = n('9c94939'),
i = n('c5f203e'),
r = n('37f3d32'),
t = n('9bddb40'),
b = r(function (n, e) {
return t(n) ? d(n, i(e, 1, t, !0)) : []
})
f.exports = b
}) /*!node_modules/react-is/cjs/react-is.production.min.js*/
amis.define('be79908', function (require, exports, module, define) {
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict'
var b = 60103,
c = 60106,
d = 60107,
e = 60108,
f = 60114,
g = 60109,
h = 60110,
k = 60112,
l = 60113,
m = 60120,
n = 60115,
p = 60116,
q = 60121,
r = 60122,
u = 60117,
v = 60129,
w = 60131
if ('function' === typeof Symbol && Symbol.for) {
var x = Symbol.for
b = x('react.element')
c = x('react.portal')
d = x('react.fragment')
e = x('react.strict_mode')
f = x('react.profiler')
g = x('react.provider')
h = x('react.context')
k = x('react.forward_ref')
l = x('react.suspense')
m = x('react.suspense_list')
n = x('react.memo')
p = x('react.lazy')
q = x('react.block')
r = x('react.server.block')
u = x('react.fundamental')
v = x('react.debug_trace_mode')
w = x('react.legacy_hidden')
}
function y(a) {
if ('object' === typeof a && null !== a) {
var t = a.$$typeof
switch (t) {
case b:
switch (((a = a.type), a)) {
case d:
case f:
case e:
case l:
case m:
return a
default:
switch (((a = a && a.$$typeof), a)) {
case h:
case k:
case p:
case n:
case g:
return a
default:
return t
}
}
case c:
return t
}
}
}
var z = g,
A = b,
B = k,
C = d,
D = p,
E = n,
F = c,
G = f,
H = e,
I = l
exports.ContextConsumer = h
exports.ContextProvider = z
exports.Element = A
exports.ForwardRef = B
exports.Fragment = C
exports.Lazy = D
exports.Memo = E
exports.Portal = F
exports.Profiler = G
exports.StrictMode = H
exports.Suspense = I
exports.isAsyncMode = function () {
return !1
}
exports.isConcurrentMode = function () {
return !1
}
exports.isContextConsumer = function (a) {
return y(a) === h
}
exports.isContextProvider = function (a) {
return y(a) === g
}
exports.isElement = function (a) {
return 'object' === typeof a && null !== a && a.$$typeof === b
}
exports.isForwardRef = function (a) {
return y(a) === k
}
exports.isFragment = function (a) {
return y(a) === d
}
exports.isLazy = function (a) {
return y(a) === p
}
exports.isMemo = function (a) {
return y(a) === n
}
exports.isPortal = function (a) {
return y(a) === c
}
exports.isProfiler = function (a) {
return y(a) === f
}
exports.isStrictMode = function (a) {
return y(a) === e
}
exports.isSuspense = function (a) {
return y(a) === l
}
exports.isValidElementType = function (a) {
return 'string' === typeof a ||
'function' === typeof a ||
a === d ||
a === f ||
a === v ||
a === e ||
a === l ||
a === m ||
a === w ||
('object' === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r))
? !0
: !1
}
exports.typeOf = y
}) /*!node_modules/react-is/index.js*/
amis.define('75ce0cd', function (e, c, i, s) {
'use strict'
i.exports = e('be79908')
}) /*!node_modules/amis-core/lib/SchemaRenderer.js*/
amis.define('837d032', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('68b98b9'),
a = e('580566b'),
s = e('1279020'),
d = e('ac704b9'),
o = e('75ce0cd'),
l = e('d998390'),
c = e('326ef36'),
u = e('ec36da8'),
p = e('1c1d73a'),
h = e('a3bbeb2'),
v = e('2f0f0cc'),
f = e('939b8bb'),
_ = e('d2a103e'),
m = e('241d95b'),
y = e('668845d'),
b = e('30f4e61')
e('c3389ff'), e('8b081ba'), e('0910768')
var g = e('42c789c')
e('8b641b6')
var S = e('5b3f087'),
R = e('3c9ad5f'),
E = e('575a22c')
function I(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var F = I(a),
$ = I(s),
C = I(d),
O = e('ac704b9'),
w = (O.default || O).createElement
;(O.default || O).Fragment
var A = [
'type',
'name',
'$ref',
'className',
'style',
'data',
'children',
'ref',
'visible',
'loading',
'visibleOn',
'hidden',
'hiddenOn',
'disabled',
'disabledOn',
'static',
'staticOn',
'component',
'detectField',
'defaultValue',
'defaultData',
'required',
'requiredOn',
'syncSuperStore',
'mode',
'body',
'id',
'inputOnly',
'label',
'renderLabel',
'trackExpression',
'editorSetting',
'updatePristineAfterStoreDataReInit',
'source'
],
k = new _.SimpleMap(),
x = (function (e) {
function t(t) {
var n = e.call(this, t) || this
return (
(n.rendererKey = ''),
(n.unbindEvent = void 0),
(n.isStatic = void 0),
(n.refFn = n.refFn.bind(n)),
(n.renderChild = n.renderChild.bind(n)),
(n.reRender = n.reRender.bind(n)),
n.resolveRenderer(n.props),
(n.dispatchEvent = n.dispatchEvent.bind(n)),
(n.reaction = b.reaction(
function () {
var e,
n,
r,
i = E.filter(t.schema.id, t.data),
a = E.filter(t.schema.name, t.data)
return ''
.concat(null !== (e = t.statusStore.visibleState[i]) && void 0 !== e ? e : t.statusStore.visibleState[a])
.concat(null !== (n = t.statusStore.disableState[i]) && void 0 !== n ? n : t.statusStore.disableState[a])
.concat(null !== (r = t.statusStore.staticState[i]) && void 0 !== r ? r : t.statusStore.staticState[a])
},
function () {
return n.forceUpdate()
}
)),
n
)
}
return (
i.__extends(t, e),
(t.prototype.componentDidMount = function () {
this.unbindEvent = m.bindEvent(this.cRef)
}),
(t.prototype.componentWillUnmount = function () {
var e, t
null === (e = this.reaction) || void 0 === e || e.call(this), null === (t = this.unbindEvent) || void 0 === t || t.call(this)
}),
(t.prototype.shouldComponentUpdate = function (e) {
var t = this.props,
n = F.default(Object.keys(e), ['schema', 'scope'])
if (F.default(Object.keys(t), ['schema', 'scope']).length !== n.length || f.anyChanged(n, this.props, e)) return !0
var r = Object.keys(e.schema)
return !(Object.keys(t.schema).length === r.length && !f.anyChanged(r, t.schema, e.schema))
}),
(t.prototype.resolveRenderer = function (e, t) {
void 0 === t && (t = !1)
var n = e.schema,
r = e.$path
if (
(n && n.$ref && ((n = i.__assign(i.__assign({}, e.resolveDefinitions(n.$ref)), n)), (r = r.replace(/(?!.*\/).*/, n.type))),
!(null == n ? void 0 : n.type) || (!t && this.renderer && this.rendererKey === ''.concat(n.type, '-').concat(n.$$id)))
) {
if ((n.children && !n.component && n.asFormItem && ((n.component = K), (n.renderChildren = n.children), delete n.children), n.component && !n.component.wrapedAsFormItem && n.asFormItem)) {
var a = k.get(n.component)
if (a) n.component = a
else {
var s = u.asFormItem(i.__assign({ strictMode: !1 }, n.asFormItem))(n.component)
k.set(n.component, s), (s.wrapedAsFormItem = !0), (n.component = s)
}
}
} else {
var d = e.env.rendererResolver || c.resolveRenderer
;(this.renderer = d(r, n, e)), (this.rendererKey = ''.concat(n.type, '-').concat(n.$$id))
}
return { path: r, schema: n }
}),
(t.prototype.getWrappedInstance = function () {
return this.cRef
}),
(t.prototype.refFn = function (e) {
this.ref = e
}),
(t.prototype.childRef = function (e) {
for (; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
this.cRef = e
}),
(t.prototype.dispatchEvent = function (e, t, n) {
return i.__awaiter(this, void 0, void 0, function () {
return i.__generator(this, function (r) {
switch (r.label) {
case 0:
return [4, m.dispatchEvent(e, this.cRef || n, this.context, t)]
case 1:
return [2, r.sent()]
}
})
})
}),
(t.prototype.renderChild = function (e, t, n) {
var r, a, s, d
void 0 === n && (n = {})
var o = this.props,
l = o.schema
o.$path
var c = o.env,
u = o.render,
p = i.__rest(o, ['schema', '$path', 'env', 'render']),
h = this.resolveRenderer(this.props).path,
v = A.concat()
if (this.renderer) {
var f = this.renderer.component
f.propsList && v.push.apply(v, f.propsList)
}
return u(
''.concat(h).concat(e ? '/'.concat(e) : ''),
t || '',
i.__assign(
i.__assign(
i.__assign(i.__assign({}, $.default(p, v)), {
defaultStatic:
null !==
(s =
null !== (a = (!(null === (r = this.renderer) || void 0 === r ? void 0 : r.type) || !['drawer', 'dialog'].includes(this.renderer.type)) && void 0) && void 0 !== a
? a
: this.isStatic) && void 0 !== s
? s
: l.staticOn
? E.evalExpression(l.staticOn, p.data)
: null !== (d = l.static) && void 0 !== d
? d
: p.defaultStatic
}),
n
),
{ data: n.data || p.data, env: c }
)
)
}),
(t.prototype.reRender = function () {
this.resolveRenderer(this.props, !0), this.forceUpdate()
}),
(t.prototype.render = function () {
var e,
t,
n,
r,
a,
s,
d,
u,
p = this,
_ = this.props
_.$path
var m = _.schema,
b = _.rootStore,
I = _.statusStore,
F = _.render,
$ = i.__rest(_, ['$path', 'schema', 'rootStore', 'statusStore', 'render'])
if (null == m) return null
var O = this.resolveRenderer(this.props),
A = O.path,
k = O.schema,
x = this.props.env.theme
if (Array.isArray(k)) return F(A, k, $)
var K = k && ('&' === k.detectField ? $ : $[k.detectField || 'data']),
D = K ? v.getExprProperties(k, K, void 0, $) : {},
j = E.filter(k.id, $.data),
V = E.filter(k.name, $.data),
M = y.isAlive(I) ? (null !== (n = I.visibleState[j]) && void 0 !== n ? n : I.visibleState[V]) : void 0,
T = y.isAlive(I) ? (null !== (r = I.disableState[j]) && void 0 !== r ? r : I.disableState[V]) : void 0,
U = y.isAlive(I) ? (null !== (a = I.staticState[j]) && void 0 !== a ? a : I.staticState[V]) : void 0
if (((this.isStatic = U), (!1 === M || (!0 !== M && D && (D.hidden || !1 === D.visible || k.hidden || !1 === k.visible || $.hidden || !1 === $.visible))) && ($.invisible = !0), k.children))
return $.invisible
? null
: C.default.isValidElement(k.children)
? k.children
: k.children(
i.__assign(i.__assign(i.__assign({}, $), D), {
$path: A,
$schema: k,
render: this.renderChild,
forwardedRef: this.refFn,
rootStore: b,
statusStore: I,
dispatchEvent: this.dispatchEvent
})
)
if (k.component && o.isValidElementType(k.component)) {
var W = !(k.component.prototype instanceof C.default.Component),
B = k.data,
N = k.value,
P = k.activeKey,
L = k.key,
q = i.__rest(k, ['data', 'value', 'activeKey', 'key'])
return $.invisible
? null
: w(
k.component,
i.__assign(i.__assign(i.__assign(i.__assign({}, $), q), D), {
defaultData: B,
defaultValue: N,
defaultActiveKey: P,
propKey: L,
$path: A,
$schema: k,
ref: W ? void 0 : this.refFn,
forwardedRef: W ? this.refFn : void 0,
render: this.renderChild,
rootStore: b,
statusStore: I,
dispatchEvent: this.dispatchEvent
})
)
}
if (0 === Object.keys(k).length) return null
if (!this.renderer)
return $.invisible
? null
: w(
l.default,
i.__assign({}, $, D, {
getComponent: function () {
return i.__awaiter(p, void 0, void 0, function () {
var e
return i.__generator(this, function (t) {
switch (t.label) {
case 0:
return [4, $.env.loadRenderer(k, A, this.reRender)]
case 1:
return (e = t.sent()) && 'function' == typeof e
? [2, e]
: e && C.default.isValidElement(e)
? [
2,
function () {
return e
}
]
: (this.reRender(),
[
2,
function () {
return c.loadRenderer(k, A)
}
])
}
})
})
},
$path: A,
$schema: k,
retry: this.reRender,
rootStore: b,
statusStore: I,
dispatchEvent: this.dispatchEvent
})
)
var z = this.renderer,
G = (k = c.filterSchema(k, z, $)).data,
H = k.value,
J = k.key,
Q = k.activeKey,
X = i.__rest(k, ['data', 'value', 'key', 'activeKey']),
Y = z.component
if ($.invisible && (D.hidden || !1 === D.visible || !z.isFormItem || (!1 !== k.visible && !k.hidden))) return null
z.storeType && (D = {})
var Z = null === (s = Y.prototype) || void 0 === s ? void 0 : s.isReactComponent,
ee = i.__assign(i.__assign(i.__assign(i.__assign(i.__assign({}, x.getRendererConfig(z.name)), X), f.chainEvents($, X)), D), {
defaultData: null !== (d = X.defaultData) && void 0 !== d ? d : G,
defaultValue: null !== (u = X.defaultValue) && void 0 !== u ? u : H,
defaultActiveKey: Q,
propKey: J,
$path: A,
$schema: k,
ref: this.refFn,
render: this.renderChild,
rootStore: b,
statusStore: I,
dispatchEvent: this.dispatchEvent,
mobileUI: !1 !== k.useMobileUI && $.mobileUI
})
if (
(k.style && (ee.style = S.buildStyle(k.style, K)),
void 0 !== T && (ee.disabled = T),
void 0 !== U && (ee.static = U),
$.env.enableTestid && (ee.testid || ee.id || null == ee.testIdBuilder) && (ee.testIdBuilder instanceof f.TestIdBuilder || (ee.testIdBuilder = new f.TestIdBuilder(ee.testid || ee.id))),
z.autoVar)
)
try {
for (var te = i.__values(Object.keys(k)), ne = te.next(); !ne.done; ne = te.next()) {
var re = ne.value
'string' == typeof ee[re] && R.isExpression(ee[re]) && (ee[re] = g.resolveVariableAndFilter(ee[re], ee.data, '| raw'))
}
} catch (t) {
e = { error: t }
} finally {
try {
ne && !ne.done && (t = te.return) && t.call(te)
} finally {
if (e) throw e.error
}
}
var ie = w(Y, Z ? i.__assign({}, ee, { ref: this.childRef }) : i.__assign({}, ee))
return this.props.env.enableAMISDebug ? w(h.DebugWrapper, { renderer: z }, ie) : ie
}),
(t.displayName = 'Renderer'),
(t.contextType = p.ScopedContext),
i.__decorate([f.autobind, i.__metadata('design:type', Function), i.__metadata('design:paramtypes', [Object]), i.__metadata('design:returntype', void 0)], t.prototype, 'childRef', null),
t
)
})(C.default.Component),
K = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this
return (t.childRef = C.default.createRef()), t
}
return (
i.__extends(t, e),
(t.prototype.getWrappedInstance = function () {
return this.childRef.current
}),
(t.prototype.render = function () {
var e = this.props,
t = e.renderChildren,
n = i.__rest(e, ['renderChildren'])
return 'function' == typeof t ? t(i.__assign(i.__assign({}, n), { ref: this.childRef })) : null
}),
t
)
})(C.default.Component)
;(t.RENDERER_TRANSMISSION_OMIT_PROPS = A), (t.SchemaRenderer = x)
}) /*!node_modules/amis-core/lib/store/status.js*/
amis.define('5238915', function (t, e, s, a) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var i = t('68b98b9'),
n = t('668845d'),
o = n.types
.model('StatusStore', { visibleState: n.types.optional(n.types.frozen(), {}), disableState: n.types.optional(n.types.frozen(), {}), staticState: n.types.optional(n.types.frozen(), {}) })
.actions(function (t) {
return {
setVisible: function (e, s) {
var a,
n = i.__assign(i.__assign({}, t.visibleState), (((a = {})[e] = s), a))
t.visibleState = n
},
setDisable: function (e, s) {
var a,
n = i.__assign(i.__assign({}, t.disableState), (((a = {})[e] = s), a))
t.disableState = n
},
setStatic: function (e, s) {
var a,
n = i.__assign(i.__assign({}, t.staticState), (((a = {})[e] = s), a))
t.staticState = n
},
resetAll: function () {
;(t.visibleState = {}), (t.disableState = {}), (t.staticState = {})
}
}
})
e.StatusStore = o
}) /*!node_modules/amis-core/lib/StatusScoped.js*/
amis.define('5affb7c', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var o = e('68b98b9'),
a = e('ac704b9'),
i = e('2fb8d9c'),
s = e('5238915'),
d = e('668845d')
function c(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var f = c(a),
p = c(i),
u = e('ac704b9'),
l = (u.default || u).createElement
;(u.default || u).Fragment,
(t.StatusScoped = function (e) {
var t
return p.default(
(((t = (function (t) {
function n(e) {
var n = t.call(this, e) || this
return (n.childRef = n.childRef.bind(n)), (n.getWrappedInstance = n.getWrappedInstance.bind(n)), (n.store = s.StatusStore.create({})), n
}
return (
o.__extends(n, t),
(n.prototype.childRef = function (e) {
for (; e && e.getWrappedInstance; ) e = e.getWrappedInstance()
this.ref = e
}),
(n.prototype.getWrappedInstance = function () {
return this.ref
}),
(n.prototype.componentWillUnmount = function () {
this.store && d.destroy(this.store), delete this.store
}),
(n.prototype.render = function () {
var t,
n = { statusStore: this.store },
r =
(null === (t = e.prototype) || void 0 === t ? void 0 : t.isReactComponent) || e.$$typeof === Symbol.for('react.forward_ref')
? { ref: this.childRef }
: { forwardedRef: this.childRef }
return l(e, o.__assign({}, this.props, n, r))
}),
n
)
})(f.default.Component)).displayName = 'StatusScoped('.concat(e.displayName || e.name, ')')),
(t.ComposedComponent = e),
t),
e
)
})
}) /*!node_modules/amis-core/lib/Root.js*/
amis.define('f288a74', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r = e('68b98b9'),
o = e('ac704b9'),
i = e('0910768'),
s = e('1b2b2b8'),
c = e('96c86b1'),
l = e('837d032'),
d = e('1c1d73a'),
p = e('777be76'),
u = e('939b8bb'),
f = e('8420da3'),
_ = e('5affb7c')
function h(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var m = h(o),
v = h(i),
y = e('ac704b9'),
g = (y.default || y).createElement
;(y.default || y).Fragment
var b = []
var x = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this
}
return (
r.__extends(t, e),
(t.prototype.resolveDefinitions = function (e) {
var t = this.props.schema.definitions
return !e || u.isEmpty(t) ? {} : t && t[e]
}),
(t.prototype.render = function () {
var e = this.props,
t = e.schema,
n = e.rootStore,
a = e.env,
o = e.pathPrefix,
i = e.location,
l = e.data,
d = e.context,
u = e.locale,
_ = e.translate,
h = r.__rest(e, ['schema', 'rootStore', 'env', 'pathPrefix', 'location', 'data', 'context', 'locale', 'translate']),
m = a.theme,
y = this.props.theme || 'cxd'
return (
'default' === y && (y = 'cxd'),
g(
f.RootStoreContext.Provider,
{ value: n },
g(
p.ThemeContext.Provider,
{ value: y },
g(
s.LocaleContext.Provider,
{ value: this.props.locale },
b.reduce(
function (e, t) {
return r.__assign(r.__assign({}, e), { children: t(e) })
},
r.__assign(r.__assign({ pathPrefix: o || '', schema: v.default(t) ? r.__assign({ type: 'page' }, t) : t }, h), {
render: R,
rootStore: n,
resolveDefinitions: this.resolveDefinitions,
location: i,
data: l,
env: a,
classnames: m.classnames,
classPrefix: m.classPrefix,
locale: u,
translate: _,
children: g(
c.RootRenderer,
r.__assign({ pathPrefix: o || '', schema: v.default(t) ? r.__assign({ type: 'page' }, t) : t }, h, {
render: R,
rootStore: n,
resolveDefinitions: this.resolveDefinitions,
location: i,
data: l,
context: d,
env: a,
classnames: m.classnames,
classPrefix: m.classPrefix,
locale: u,
translate: _
})
)
})
).children
)
)
)
)
}),
r.__decorate(
[u.autobind, r.__metadata('design:type', Function), r.__metadata('design:paramtypes', [String]), r.__metadata('design:returntype', void 0)],
t.prototype,
'resolveDefinitions',
null
),
t
)
})(m.default.Component),
S = _.StatusScoped(l.SchemaRenderer)
function P(e, t, n) {
if (Array.isArray(t)) {
var a = n.key || n.propKey || n.id || ''
return t.map(function (t, o) {
return R(''.concat(e, '/').concat(o), t, r.__assign(r.__assign({}, n), { key: ''.concat(a ? ''.concat(a, '-') : '').concat(o) }))
})
}
return R(e, t, n)
}
function R(e, t, n) {
if (Array.isArray(t)) return P(e, t, n)
var a = typeof t
if ('undefined' === a || null === t) return null
if (m.default.isValidElement(t)) return t
var o = 'string' === a || 'number' === a ? { type: 'tpl', tpl: String(t) } : t,
i = n.propsTransform
return (
i && (delete (n = r.__assign({}, n)).propsTransform, (n = i(n))),
!['dialog', 'drawer'].includes(null == o ? void 0 : o.type) || (null == o ? void 0 : o.component) || (null == o ? void 0 : o.children)
? g(l.SchemaRenderer, r.__assign({ render: R }, n, { schema: o, propKey: o.key, $path: ''.concat(e ? ''.concat(e, '/') : '').concat((o && o.type) || '') }))
: g(S, r.__assign({ render: R }, n, { schema: o, propKey: o.key, $path: ''.concat(e ? ''.concat(e, '/') : '').concat((o && o.type) || '') }))
)
}
var C = _.StatusScoped(d.HocScoped(x))
;(t.Root = x),
(t.addRootWrapper = function (e) {
b.push(e)
}),
(t.default = C),
(t.renderChild = R),
(t.renderChildren = P)
}) /*!node_modules/amis-core/lib/components/ErrorBoundary.js*/
amis.define('01ba50b', function (r, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 })
var a = r('68b98b9')
function o(r) {
return r && 'object' == typeof r && 'default' in r ? r : { default: r }
}
var s = o(r('ac704b9')),
c = r('ac704b9'),
i = (c.default || c).createElement
;(c.default || c).Fragment
var u = (function (r) {
function e(e) {
var t = r.call(this, e) || this
return (t.state = { hasError: !1 }), t
}
return (
a.__extends(e, r),
(e.prototype.componentDidCatch = function (r, e) {
var t = this.props.customErrorMsg
t && console.warn(t), console.warn('\u9519\u8bef\u5bf9\u8c61\uff1a', r), console.warn('\u9519\u8bef\u4fe1\u606f\uff1a', e), this.setState({ hasError: !0 })
}),
(e.prototype.render = function () {
var r = this.props.fallback
return this.state.hasError
? r
? r()
: i('div', { className: 'renderer-error-boundary' }, '\u6e32\u67d3\u53d1\u751f\u9519\u8bef\uff0c\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\u8bf7\u67e5\u770b\u63a7\u5236\u53f0\u8f93\u51fa。')
: this.props.children
}),
e
)
})(s.default.Component)
e.default = u
}) /*!node_modules/amis-core/lib/index.js*/
amis.define('64ea6e0', function (e, t, r, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var i = e('68b98b9'),
n = e('326ef36')
e('d24c711'), e('cbbc3b2'), e('0bde9be')
var o = e('d9d4e46'),
s = e('d9368af'),
l = e('1176ce2'),
c = e('8dd52de'),
d = e('22a4ae5'),
u = e('5e0783e'),
p = e('a3127fc'),
m = e('1c8d418'),
f = e('607aee2'),
b = e('5c95135'),
g = e('d93f3ae'),
S = e('a3bbeb2'),
h = e('933bc12'),
v = e('3f15357'),
y = e('48a08cf'),
C = e('2f0f0cc')
e('8b641b6')
var E = e('3ccf66c'),
T = e('3c9ad5f'),
O = e('e74b24f'),
A = e('8ff7489'),
F = e('254acb9'),
P = e('939b8bb'),
D = e('cde5cad'),
x = e('0dc59d3'),
R = e('67e77ca'),
j = e('9c55168'),
M = e('c7550a7'),
V = e('027080a'),
I = e('e3b8aee'),
N = e('69440a7'),
k = e('dff10cd'),
_ = e('9a56a54'),
L = e('bbe84d0'),
w = e('05bc36b'),
B = e('dae8b22'),
z = e('0b3520f'),
W = e('1d5900b'),
H = e('0945ec7'),
U = e('241d95b'),
J = e('dc90a49'),
K = e('1feaebc'),
q = e('730a210'),
Q = e('42c789c'),
Y = e('1be4f4d'),
G = e('4a8583c'),
X = e('494d8b2'),
Z = e('d2a103e'),
$ = e('2cb1945'),
ee = e('5b3f087'),
te = e('3853df4'),
re = e('1996a98'),
ae = e('575a22c'),
ie = e('88c8f0e'),
ne = e('9f4cfa3'),
oe = e('e0700ab'),
se = e('e17d2ed'),
le = e('f4cd1ba'),
ce = e('014d724'),
de = e('7c24d36'),
ue = e('7c8f81e'),
pe = e('d823824'),
me = e('96012e2'),
fe = e('668845d'),
be = e('1b2b2b8'),
ge = e('1c1d73a'),
Se = e('777be76')
e('9f6ca76'),
e('53ab1c9'),
e('389b046'),
e('63cb51c'),
e('5b9523a'),
e('e545b9c'),
e('b72176a'),
e('faee115'),
e('9a01b63'),
e('daa1278'),
e('1dd4948'),
e('890b724'),
e('1a3c3c1'),
e('dadd977'),
e('66f9a9c'),
e('f3d37c2'),
e('b2321b9'),
e('a85d943'),
e('734fb37'),
e('9c3aad7')
var he = e('e913672'),
ve = e('ec36da8'),
ye = e('6352ca6'),
Ce = e('f288a74'),
Ee = e('3b516dc'),
Te = e('bc320d8'),
Oe = e('ac704b9'),
Ae = e('c3389ff'),
Fe = e('d998390'),
Pe = e('0e43fee'),
De = e('9486486'),
xe = e('01ba50b'),
Re = e('f9770e6'),
je = e('837d032'),
Me = e('f97a625'),
Ve = e('5affb7c'),
Ie = e('e81c4d9'),
Ne = e('7db930a'),
ke = e('3e2dd5e'),
_e = e('afae96a'),
Le = e('9bf2913'),
we = e('48f96dd'),
Be = e('98ebec8'),
ze = e('ebd77a8'),
We = e('0b463e6'),
He = e('c83dd99'),
Ue = e('121d16c'),
Je = e('0ecf5fd'),
Ke = e('3886906'),
qe = e('a533195')
function Qe(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var Ye = Qe(Oe),
Ge = e('ac704b9'),
Xe = (Ge.default || Ge).createElement
;(Ge.default || Ge).Fragment
var Ze = Se.getClassPrefix()
function $e(e) {
var t = e.schema,
r = e.options,
a = e.pathPrefix,
s = i.__rest(e, ['schema', 'options', 'pathPrefix']),
l = s.locale || be.getDefaultLocale()
l = 'en' === l ? 'en-US' : 'zh' === l || 'cn' === l ? 'zh-CN' : l.replace('_', '-')
var c = Ye.default.useCallback(
function () {
var e = s.translate || be.makeTranslator(l)
return e.apply(null, arguments)
},
[l, s.translate]
),
d = Ye.default.useMemo(
function () {
var e = n.stores[r.session || 'global']
if (e) {
var t = fe.getEnv(e)
Object.assign(
t,
i.__assign(i.__assign({}, r), { fetcher: r.fetcher ? o.wrapFetcher(r.fetcher, r.tracker) : t.fetcher, confirm: r.confirm ? P.promisify(r.confirm) : t.confirm, locale: l, translate: c })
)
} else
(r = i.__assign(i.__assign(i.__assign({}, n.defaultOptions), r), {
fetcher: r.fetcher ? o.wrapFetcher(r.fetcher, r.tracker) : n.defaultOptions.fetcher,
confirm: P.promisify(r.confirm || n.defaultOptions.confirm || window.confirm),
locale: l,
translate: c
})),
(e = me.RendererStore.create({}, r)),
(n.stores[r.session || 'global'] = e)
return (window.amisStore = e), e
},
Object.keys(r).concat(Object.values(r)).concat(l)
),
u = fe.getEnv(d),
p = s.theme || r.theme || 'cxd'
return (
'default' === p && (p = 'cxd'),
(u.theme = Se.getTheme(p)),
Ye.default.useEffect(
function () {
return (
u.enableAMISDebug ? S.enableDebug() : S.disableDebug(),
function () {
return u.enableAMISDebug || S.disableDebug()
}
)
},
[u.enableAMISDebug]
),
void 0 !== s.locale && ((u.translate = c), (u.locale = l)),
!1 !== r.useMobileUI && (s.mobileUI = u.isMobile()),
(t = Ye.default.useMemo(
function () {
return (t = Ee.envOverwrite(t, l)), (t = J.replaceText(t, r.replaceText, u.replaceTextIgnoreKeys))
},
[t, l]
)),
Xe(Te.EnvContext.Provider, { value: u }, Xe(Ce.default, i.__assign({}, s, { schema: t, pathPrefix: a, rootStore: d, env: u, theme: p, locale: l, translate: c })))
)
}
;(t.Renderer = n.Renderer),
(t.addSchemaFilter = n.addSchemaFilter),
(t.clearStoresCache = n.clearStoresCache),
(t.extendDefaultEnv = n.extendDefaultEnv),
(t.filterSchema = n.filterSchema),
(t.getRendererByName = n.getRendererByName),
(t.getRenderers = n.getRenderers),
(t.registerRenderer = n.registerRenderer),
(t.resolveRenderer = n.resolveRenderer),
(t.unRegisterRenderer = n.unRegisterRenderer),
(t.updateEnv = n.updateEnv),
(t.buildApi = o.buildApi),
(t.callStrFunction = o.callStrFunction),
(t.clearApiCache = o.clearApiCache),
(t.getApiCache = o.getApiCache),
(t.isApiOutdated = o.isApiOutdated),
(t.isApiOutdatedWithData = o.isApiOutdatedWithData),
(t.isEffectiveApi = o.isEffectiveApi),
(t.isSameApi = o.isSameApi),
(t.isValidApi = o.isValidApi),
(t.jsFetcher = o.jsFetcher),
(t.jsonpFetcher = o.jsonpFetcher),
(t.normalizeApi = o.normalizeApi),
(t.normalizeApiResponseData = o.normalizeApiResponseData),
(t.responseAdaptor = o.responseAdaptor),
(t.setApiCache = o.setApiCache),
(t.str2AsyncFunction = o.str2AsyncFunction),
(t.str2function = o.str2function),
(t.wrapAdaptor = o.wrapAdaptor),
(t.wrapFetcher = o.wrapFetcher),
(t.attachmentAdpator = s.attachmentAdpator),
(t.autobindMethod = l.autobindMethod),
(t.bind = l.bind),
(t.chromeVersion = c.chromeVersion),
(t.isSafari = c.isSafari),
(t.ColorScale = d.ColorScale),
(t.columnsSplit = u.columnsSplit),
(t.concatData = p.concatData),
(t.dataMapping = m.dataMapping),
(t.resolveMapping = m.resolveMapping),
(t.resolveMappingObject = m.resolveMappingObject),
(t.DataSchema = f.DataSchema),
(t.DATASCHEMA_TYPE_MAP = b.DATASCHEMA_TYPE_MAP),
(t.DataScope = b.DataScope),
(t.filterDate = g.filterDate),
(t.normalizeDate = g.normalizeDate),
(t.parseDuration = g.parseDuration),
(t.relativeValueRe = g.relativeValueRe),
(t.DebugWrapper = S.DebugWrapper),
(t.JsonView = S.JsonView),
(t.debug = S.debug),
(t.disableDebug = S.disableDebug),
(t.enableDebug = S.enableDebug),
(t.traceProps = S.traceProps),
(t.warning = S.warning),
(t.calculatePosition = h.calculatePosition),
(t.getContainer = h.getContainer),
(t.getStyleNumber = h.getStyleNumber),
(t.ownerDocument = h.ownerDocument),
(t.renderTextByKeyword = h.renderTextByKeyword),
(t.ServerError = v.ServerError),
(t.escapeHtml = y.escapeHtml),
(t.filterClassNameObject = C.filterClassNameObject),
(t.getExprProperties = C.getExprProperties),
(t.hasExprPropertiesChanged = C.hasExprPropertiesChanged),
(t.formatDuration = E.formatDuration),
(t.FormulaExec = T.FormulaExec),
(t.formulaExec = T.formulaExec),
(t.isExpression = T.isExpression),
(t.isNeedFormula = T.isNeedFormula),
(t.registerFormulaExec = T.registerFormulaExec),
(t.replaceExpression = T.replaceExpression),
(t.getVariable = O.getVariable),
(t.collectVariables = A.collectVariables),
(t.handleAction = F.handleAction),
(t.JSONTraverse = P.JSONTraverse),
(t.JSONValueMap = P.JSONValueMap),
(t.SkipOperation = P.SkipOperation),
(t.TEST_ID_KEY = P.TEST_ID_KEY),
(t.TestIdBuilder = P.TestIdBuilder),
(t.ValidateError = P.ValidateError),
(t.__uri = P.__uri),
(t.anyChanged = P.anyChanged),
(t.autobind = P.autobind),
(t.buildTrackExpression = P.buildTrackExpression),
(t.bulkBindFunctions = P.bulkBindFunctions),
(t.camel = P.camel),
(t.chainEvents = P.chainEvents),
(t.chainFunctions = P.chainFunctions),
(t.changedEffect = P.changedEffect),
(t.convertArrayValueToMoment = P.convertArrayValueToMoment),
(t.countTree = P.countTree),
(t.detectPropValueChanged = P.detectPropValueChanged),
(t.difference = P.difference),
(t.differenceFromAll = P.differenceFromAll),
(t.eachTree = P.eachTree),
(t.evalTrackExpression = P.evalTrackExpression),
(t.everyTree = P.everyTree),
(t.filterTree = P.filterTree),
(t.findIndex = P.findIndex),
(t.findObjectsWithKey = P.findObjectsWithKey),
(t.findTree = P.findTree),
(t.findTreeAll = P.findTreeAll),
(t.findTreeIndex = P.findTreeIndex),
(t.flattenTree = P.flattenTree),
(t.flattenTreeWithLeafNodes = P.flattenTreeWithLeafNodes),
(t.getLevelFromClassName = P.getLevelFromClassName),
(t.getPropValue = P.getPropValue),
(t.getRange = P.getRange),
(t.getScrollParent = P.getScrollParent),
(t.getScrollbarWidth = P.getScrollbarWidth),
(t.getTree = P.getTree),
(t.getTreeAncestors = P.getTreeAncestors),
(t.getTreeDepth = P.getTreeDepth),
(t.getTreeParent = P.getTreeParent),
(t.getWidthRate = P.getWidthRate),
(t.guid = P.guid),
(t.hasAbility = P.hasAbility),
(t.hasFile = P.hasFile),
(t.hasOwnPropertyInPath = P.hasOwnPropertyInPath),
(t.hasVisibleExpression = P.hasVisibleExpression),
(t.hashCode = P.hashCode),
(t.immutableExtends = P.immutableExtends),
(t.importLazyComponent = P.importLazyComponent),
(t.injectPropsToObject = P.injectPropsToObject),
(t.isArrayChildrenModified = P.isArrayChildrenModified),
(t.isBreakpoint = P.isBreakpoint),
(t.isClickOnInput = P.isClickOnInput),
(t.isDisabled = P.isDisabled),
(t.isEmpty = P.isEmpty),
(t.isMobile = P.isMobile),
(t.isNumeric = P.isNumeric),
(t.isObjectShallowModified = P.isObjectShallowModified),
(t.isSuperDataModified = P.isSuperDataModified),
(t.isUnfolded = P.isUnfolded),
(t.isVisible = P.isVisible),
(t.lcFirst = P.lcFirst),
(t.loadScript = P.loadScript),
(t.loadStyle = P.loadStyle),
(t.makeColumnClassBuild = P.makeColumnClassBuild),
(t.makeHorizontalDeeper = P.makeHorizontalDeeper),
(t.mapObject = P.mapObject),
(t.mapTree = P.mapTree),
(t.noop = P.noop),
(t.normalizeNodePath = P.normalizeNodePath),
(t.object2formData = P.object2formData),
(t.omitControls = P.omitControls),
(t.padArr = P.padArr),
(t.parsePrimitiveQueryString = P.parsePrimitiveQueryString),
(t.parseQuery = P.parseQuery),
(t.pickEventsProps = P.pickEventsProps),
(t.preventDefault = P.preventDefault),
(t.promisify = P.promisify),
(t.qsparse = P.qsparse),
(t.qsstringify = P.qsstringify),
(t.range = P.range),
(t.removeHTMLTag = P.removeHTMLTag),
(t.repeatCount = P.repeatCount),
(t.replaceUrlParams = P.replaceUrlParams),
(t.rmUndefined = P.rmUndefined),
(t.someTree = P.someTree),
(t.sortArray = P.sortArray),
(t.spliceTree = P.spliceTree),
(t.syncDataFromSuper = P.syncDataFromSuper),
(t.ucFirst = P.ucFirst),
(t.until = P.until),
(t.utils = P),
(t.uuid = P.uuid),
(t.uuidv4 = P.uuidv4),
(t.visibilityFilter = P.visibilityFilter),
(t.highlight = D.highlight),
(t.generateIcon = x.generateIcon),
(t.getImageDimensions = R.getImageDimensions),
(t.toDataURL = R.toDataURL),
(t.isPureVariable = j.isPureVariable),
(t.JSONSchme2AMisSchema = M.JSONSchme2AMisSchema),
(t.keyToPath = V.keyToPath),
(t.labelToString = I.labelToString),
(t.makeSorter = N.makeSorter),
(t.normalizeLink = k.normalizeLink),
(t.normalizeOptions = _.normalizeOptions),
(t.cloneObject = L.cloneObject),
(t.createObject = L.createObject),
(t.createObjectFromChain = L.createObjectFromChain),
(t.deleteVariable = L.deleteVariable),
(t.extendObject = L.extendObject),
(t.extractObjectChain = L.extractObjectChain),
(t.injectObjectChain = L.injectObjectChain),
(t.isObject = L.isObject),
(t.pickValues = L.pickValues),
(t.setVariable = L.setVariable),
(t.offset = w.offset),
(t.offsetParent = B.offsetParent),
(t.getOptionValue = z.getOptionValue),
(t.getOptionValueBindField = z.getOptionValueBindField),
(t.matchOptionValue = z.matchOptionValue),
(t.optionValueCompare = z.optionValueCompare),
(t.position = W.position),
(t.prettyBytes = H.prettyBytes),
(t.bindEvent = U.bindEvent),
(t.createRendererEvent = U.createRendererEvent),
(t.dispatchEvent = U.dispatchEvent),
(t.getMatchedEventTargets = U.getMatchedEventTargets),
(t.getRendererEventListeners = U.getRendererEventListeners),
(t.resolveEventData = U.resolveEventData),
(t.replaceText = J.replaceText),
(t.getComputedStyle = K.getComputedStyle),
(t.resizeSensor = K.resizeSensor),
(t.resolveVariable = q.resolveVariable),
(t.resolveVariableAndFilter = Q.resolveVariableAndFilter),
(t.resolveVariableAndFilterForAsync = Y.resolveVariableAndFilterForAsync),
(t.setFormulaEvalErrorHandler = Y.setFormulaEvalErrorHandler),
(t.RootClose = G.RootClose),
(t.scrollPosition = X.scrollPosition),
(t.SimpleMap = Z.SimpleMap),
(t.string2regExp = $.string2regExp),
(t.buildStyle = ee.buildStyle),
(t.memoParse = te.memoParse),
(t.tokenize = te.tokenize),
(t.register = re.register),
(t.asyncFilter = ae.asyncFilter),
(t.evalExpression = ae.evalExpression),
(t.evalExpressionWithConditionBuilder = ae.evalExpressionWithConditionBuilder),
(t.evalJS = ae.evalJS),
(t.filter = ae.filter),
(t.registerTplEnginer = ae.registerTplEnginer),
(t.setCustomEvalExpression = ae.setCustomEvalExpression),
(t.setCustomEvalJs = ae.setCustomEvalJs),
(t.uncontrollable = ie.uncontrollable),
(t.addRule = ne.addRule),
(t.str2rules = ne.str2rules),
(t.validate = ne.validate),
(t.validateMessages = ne.validateMessages),
(t.validateObject = ne.validateObject),
(t.validations = ne.validations),
(t.toNumber = oe.toNumber),
(t.decodeEntity = se.decodeEntity),
(t.addStyle = le.addStyle),
(t.findOrCreateStyle = le.findOrCreateStyle),
(t.formatInputThemeCss = le.formatInputThemeCss),
(t.formatStyle = le.formatStyle),
(t.getValueByPath = le.getValueByPath),
(t.inheritValueMap = le.inheritValueMap),
(t.insertCustomStyle = le.insertCustomStyle),
(t.insertEditCustomStyle = le.insertEditCustomStyle),
(t.insertStyle = le.insertStyle),
(t.removeCustomStyle = le.removeCustomStyle),
(t.setThemeClassName = le.setThemeClassName),
(t.styleMap = le.valueMap),
(t.valueMap = le.valueMap),
(t.getConditionComputers = ce.getConditionComputers),
(t.registerConditionComputer = ce.registerConditionComputer),
(t.resolveCondition = ce.resolveCondition),
(t.setConditionComputeErrorHandler = ce.setConditionComputeErrorHandler),
(t.arraySlice = de.arraySlice),
(t.isIntegerInRange = ue.isIntegerInRange),
(t.numberFormatter = ue.numberFormatter),
(t.safeAdd = ue.safeAdd),
(t.safeSub = ue.safeSub),
(t.animation = pe.default),
(t.RegisterStore = me.RegisterStore),
(t.RendererStore = me.RendererStore),
(t.extendLocale = be.extendLocale),
(t.getDefaultLocale = be.getDefaultLocale),
(t.localeable = be.localeable),
(t.makeTranslator = be.makeTranslator),
(t.registerLocale = be.register),
(t.removeLocaleData = be.removeLocaleData),
(t.setDefaultLocale = be.setDefaultLocale),
(t.Scoped = ge.HocScoped),
(t.ScopedContext = ge.ScopedContext),
(t.filterTarget = ge.filterTarget),
(t.splitTarget = ge.splitTarget),
(t.classnames = Se.classnames),
(t.getClassPrefix = Se.getClassPrefix),
(t.getTheme = Se.getTheme),
(t.makeClassnames = Se.makeClassnames),
(t.setDefaultTheme = Se.setDefaultTheme),
(t.theme = Se.theme),
(t.themeable = Se.themeable),
Object.defineProperty(t, 'LoopStatus', {
enumerable: !0,
get: function () {
return he.LoopStatus
}
}),
(t.getActionByType = he.getActionByType),
(t.registerAction = he.registerAction),
(t.runAction = he.runAction),
(t.runActions = he.runActions),
(t.FormItem = ve.FormItem),
(t.FormItemWrap = ve.FormItemWrap),
(t.getFormItemByName = ve.getFormItemByName),
(t.registerFormItem = ve.registerFormItem),
(t.OptionsControl = ye.OptionsControl),
(t.registerOptionsControl = ye.registerOptionsControl),
(t.addRootWrapper = Ce.addRootWrapper),
(t.envOverwrite = Ee.envOverwrite),
(t.EnvContext = Te.EnvContext),
Object.defineProperty(t, 'AsyncEvaluator', {
enumerable: !0,
get: function () {
return Ae.AsyncEvaluator
}
}),
Object.defineProperty(t, 'Evaluator', {
enumerable: !0,
get: function () {
return Ae.Evaluator
}
}),
Object.defineProperty(t, 'evaluate', {
enumerable: !0,
get: function () {
return Ae.evaluate
}
}),
Object.defineProperty(t, 'evaluateForAsync', {
enumerable: !0,
get: function () {
return Ae.evaluateForAsync
}
}),
Object.defineProperty(t, 'extendsFilters', {
enumerable: !0,
get: function () {
return Ae.extendsFilters
}
}),
Object.defineProperty(t, 'filters', {
enumerable: !0,
get: function () {
return Ae.filters
}
}),
Object.defineProperty(t, 'getFilters', {
enumerable: !0,
get: function () {
return Ae.getFilters
}
}),
Object.defineProperty(t, 'lexer', {
enumerable: !0,
get: function () {
return Ae.lexer
}
}),
Object.defineProperty(t, 'parse', {
enumerable: !0,
get: function () {
return Ae.parse
}
}),
Object.defineProperty(t, 'registerFilter', {
enumerable: !0,
get: function () {
return Ae.registerFilter
}
}),
Object.defineProperty(t, 'registerFunction', {
enumerable: !0,
get: function () {
return Ae.registerFunction
}
}),
(t.LazyComponent = Fe.default),
(t.Overlay = Pe.default),
(t.PopOver = De.default),
(t.ErrorBoundary = xe.default),
(t.FormRenderer = Re.FormRenderer),
(t.RENDERER_TRANSMISSION_OMIT_PROPS = je.RENDERER_TRANSMISSION_OMIT_PROPS),
(t.CustomStyle = Me.default),
(t.StatusScoped = Ve.StatusScoped),
(t.stripNumber = Ie.stripNumber),
(t.iRendererStore = Ne.iRendererStore),
(t.ServiceStore = ke.ServiceStore),
(t.FormStore = _e.FormStore),
(t.ComboStore = Le.ComboStore),
(t.CRUDStore = we.CRUDStore),
(t.TableStore = Be.TableStore),
(t.TableStore2 = ze.TableStore2),
(t.ListStore = We.ListStore),
(t.ModalStore = He.ModalStore),
(t.FormItemStore = Ue.FormItemStore),
(t.PaginationStore = Je.PaginationStore),
(t.AppStore = Ke.AppStore),
(t.StoreNode = qe.StoreNode),
(t.classPrefix = Ze),
(t.render = function (e, t, r, a) {
return void 0 === t && (t = {}), void 0 === r && (r = {}), void 0 === a && (a = ''), Xe($e, i.__assign({}, t, { schema: e, pathPrefix: a, options: r }))
}),
(t.version = '6.4.1')
}) /*!node_modules/amis-ui/lib/components/404.js*/
amis.define('eeee673', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var l = e('68b98b9'),
s = e('ac704b9'),
r = e('64ea6e0')
function u(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var o = u(s),
i = e('ac704b9'),
c = (i.default || i).createElement
;(i.default || i).Fragment
var d = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this
}
return (
l.__extends(t, e),
(t.prototype.render = function () {
var e = this.props,
t = e.links,
a = e.footerText,
n = e.description,
l = e.children,
s = e.code
return c(
'div',
{ className: 'container w-xxl w-auto-xs m-auto' },
c('div', { className: 'text-center m-b-lg' }, c('h1', { className: 'text-shadow text-white' }, s || '404'), n ? c('div', { className: 'text-danger' }, n) : null),
l,
t ? c('div', { className: 'list-group bg-info auto m-b-sm m-b-lg' }, t) : null,
a ? c('div', { className: 'text-center' }, c('p', null, c('small', { className: 'text-muted' }, a))) : null
)
}),
t
)
})(o.default.Component),
m = r.themeable(d)
;(t.NotFound = d), (t.default = m)
}) /*!node_modules/react-transition-group/cjs/config.js*/
amis.define('b8026b6', function (e, d, t, i) {
'use strict'
;(d.__esModule = !0), (d.default = void 0)
;(d.default = { disabled: !1 }), (t.exports = d.default)
}) /*!node_modules/react-transition-group/cjs/utils/PropTypes.js*/
amis.define('40fba16', function (e, s, a, l) {
'use strict'
;(s.__esModule = !0), (s.classNamesShape = s.timeoutsShape = void 0)
var u
;(u = e('ac4fc3c')) && u.__esModule
s.timeoutsShape = null
s.classNamesShape = null
}) /*!node_modules/react-transition-group/cjs/TransitionGroupContext.js*/
amis.define('d0e2468', function (e, t, a, d) {
'use strict'
var u
;(t.__esModule = !0), (t.default = void 0)
var l = ((u = e('ac704b9')) && u.__esModule ? u : { default: u }).default.createContext(null)
;(t.default = l), (a.exports = t.default)
}) /*!node_modules/react-transition-group/cjs/Transition.js*/
amis.define('5096660', function (t, n, e, i) {
'use strict'
;(n.__esModule = !0), (n.default = n.EXITING = n.ENTERED = n.ENTERING = n.EXITED = n.UNMOUNTED = void 0)
u(t('ac4fc3c'))
var a = u(t('ac704b9')),
o = u(t('1e5c4ba')),
s = u(t('b8026b6')),
r = (t('40fba16'), u(t('d0e2468')))
function u(t) {
return t && t.__esModule ? t : { default: t }
}
var l = 'unmounted'
n.UNMOUNTED = l
var p = 'exited'
n.EXITED = p
var d = 'entering'
n.ENTERING = d
var c = 'entered'
n.ENTERED = c
var f = 'exiting'
n.EXITING = f
var E = (function (t) {
var n, e
function i(n, e) {
var i
i = t.call(this, n, e) || this
var a,
o = e && !e.isMounting ? n.enter : n.appear
return (i.appearStatus = null), n.in ? (o ? ((a = p), (i.appearStatus = d)) : (a = c)) : (a = n.unmountOnExit || n.mountOnEnter ? l : p), (i.state = { status: a }), (i.nextCallback = null), i
}
;(e = t),
((n = i).prototype = Object.create(e.prototype)),
(n.prototype.constructor = n),
(n.__proto__ = e),
(i.getDerivedStateFromProps = function (t, n) {
return t.in && n.status === l ? { status: p } : null
})
var u = i.prototype
return (
(u.componentDidMount = function () {
this.updateStatus(!0, this.appearStatus)
}),
(u.componentDidUpdate = function (t) {
var n = null
if (t !== this.props) {
var e = this.state.status
this.props.in ? e !== d && e !== c && (n = d) : (e !== d && e !== c) || (n = f)
}
this.updateStatus(!1, n)
}),
(u.componentWillUnmount = function () {
this.cancelNextCallback()
}),
(u.getTimeouts = function () {
var t,
n,
e,
i = this.props.timeout
return (t = n = e = i), null != i && 'number' != typeof i && ((t = i.exit), (n = i.enter), (e = void 0 !== i.appear ? i.appear : n)), { exit: t, enter: n, appear: e }
}),
(u.updateStatus = function (t, n) {
void 0 === t && (t = !1),
null !== n ? (this.cancelNextCallback(), n === d ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === p && this.setState({ status: l })
}),
(u.performEnter = function (t) {
var n = this,
e = this.props.enter,
i = this.context ? this.context.isMounting : t,
a = this.props.nodeRef ? [i] : [o.default.findDOMNode(this), i],
r = a[0],
u = a[1],
l = this.getTimeouts(),
p = i ? l.appear : l.enter
;(!t && !e) || s.default.disabled
? this.safeSetState({ status: c }, function () {
n.props.onEntered(r)
})
: (this.props.onEnter(r, u),
this.safeSetState({ status: d }, function () {
n.props.onEntering(r, u),
n.onTransitionEnd(p, function () {
n.safeSetState({ status: c }, function () {
n.props.onEntered(r, u)
})
})
}))
}),
(u.performExit = function () {
var t = this,
n = this.props.exit,
e = this.getTimeouts(),
i = this.props.nodeRef ? void 0 : o.default.findDOMNode(this)
n && !s.default.disabled
? (this.props.onExit(i),
this.safeSetState({ status: f }, function () {
t.props.onExiting(i),
t.onTransitionEnd(e.exit, function () {
t.safeSetState({ status: p }, function () {
t.props.onExited(i)
})
})
}))
: this.safeSetState({ status: p }, function () {
t.props.onExited(i)
})
}),
(u.cancelNextCallback = function () {
null !== this.nextCallback && (this.nextCallback.cancel(), (this.nextCallback = null))
}),
(u.safeSetState = function (t, n) {
;(n = this.setNextCallback(n)), this.setState(t, n)
}),
(u.setNextCallback = function (t) {
var n = this,
e = !0
return (
(this.nextCallback = function (i) {
e && ((e = !1), (n.nextCallback = null), t(i))
}),
(this.nextCallback.cancel = function () {
e = !1
}),
this.nextCallback
)
}),
(u.onTransitionEnd = function (t, n) {
this.setNextCallback(n)
var e = this.props.nodeRef ? this.props.nodeRef.current : o.default.findDOMNode(this),
i = null == t && !this.props.addEndListener
if (e && !i) {
if (this.props.addEndListener) {
var a = this.props.nodeRef ? [this.nextCallback] : [e, this.nextCallback],
s = a[0],
r = a[1]
this.props.addEndListener(s, r)
}
null != t && setTimeout(this.nextCallback, t)
} else setTimeout(this.nextCallback, 0)
}),
(u.render = function () {
var t = this.state.status
if (t === l) return null
var n = this.props,
e = n.children,
i =
(n.in,
n.mountOnEnter,
n.unmountOnExit,
n.appear,
n.enter,
n.exit,
n.timeout,
n.addEndListener,
n.onEnter,
n.onEntering,
n.onEntered,
n.onExit,
n.onExiting,
n.onExited,
n.nodeRef,
(function (t, n) {
if (null == t) return {}
var e,
i,
a = {},
o = Object.keys(t)
for (i = 0; i < o.length; i++) (e = o[i]), n.indexOf(e) >= 0 || (a[e] = t[e])
return a
})(n, [
'children',
'in',
'mountOnEnter',
'unmountOnExit',
'appear',
'enter',
'exit',
'timeout',
'addEndListener',
'onEnter',
'onEntering',
'onEntered',
'onExit',
'onExiting',
'onExited',
'nodeRef'
]))
return a.default.createElement(r.default.Provider, { value: null }, 'function' == typeof e ? e(t, i) : a.default.cloneElement(a.default.Children.only(e), i))
}),
i
)
})(a.default.Component)
function h() {}
;(E.contextType = r.default),
(E.propTypes = {}),
(E.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: h, onEntering: h, onEntered: h, onExit: h, onExiting: h, onExited: h }),
(E.UNMOUNTED = l),
(E.EXITED = p),
(E.ENTERING = d),
(E.ENTERED = c),
(E.EXITING = f)
var x = E
n.default = x
}) /*!node_modules/keycode/index.js*/
amis.define('db07483', function (e, r, o, a) {
function t(e) {
if (e && 'object' == typeof e) {
var r = e.which || e.keyCode || e.charCode
r && (e = r)
}
if ('number' == typeof e) return p[e]
var o,
a = String(e)
return (o = n[a.toLowerCase()]) ? o : (o = c[a.toLowerCase()]) || (1 === a.length ? a.charCodeAt(0) : void 0)
}
t.isEventKey = function (e, r) {
if (e && 'object' == typeof e) {
var o = e.which || e.keyCode || e.charCode
if (null == o) return !1
if ('string' == typeof r) {
var a
if ((a = n[r.toLowerCase()])) return a === o
if ((a = c[r.toLowerCase()])) return a === o
} else if ('number' == typeof r) return r === o
return !1
}
}
var n =
((r = o.exports = t).code =
r.codes =
{
backspace: 8,
tab: 9,
enter: 13,
shift: 16,
ctrl: 17,
alt: 18,
'pause/break': 19,
'caps lock': 20,
esc: 27,
space: 32,
'page up': 33,
'page down': 34,
end: 35,
home: 36,
left: 37,
up: 38,
right: 39,
down: 40,
insert: 45,
delete: 46,
command: 91,
'left command': 91,
'right command': 93,
'numpad *': 106,
'numpad +': 107,
'numpad -': 109,
'numpad .': 110,
'numpad /': 111,
'num lock': 144,
'scroll lock': 145,
'my computer': 182,
'my calculator': 183,
';': 186,
'=': 187,
',': 188,
'-': 189,
'.': 190,
'/': 191,
'`': 192,
'[': 219,
'\\': 220,
']': 221,
"'": 222
}),
c = (r.aliases = {
windows: 91,
'⇧': 16,
'⌥': 18,
'⌃': 17,
'⌘': 91,
ctl: 17,
control: 17,
option: 18,
pause: 19,
break: 19,
caps: 20,
return: 13,
escape: 27,
spc: 32,
spacebar: 32,
pgup: 33,
pgdn: 34,
ins: 45,
del: 46,
cmd: 91
})
/*!
* Programatically add the following
*/
for (i = 97; i < 123; i++) n[String.fromCharCode(i)] = i - 32
for (var i = 48; i < 58; i++) n[i - 48] = i
for (i = 1; i < 13; i++) n['f' + i] = i + 111
for (i = 0; i < 10; i++) n['numpad ' + i] = i + 96
var p = (r.names = r.title = {})
for (i in n) p[n[i]] = i
for (var d in c) n[d] = c[d]
}) /*!node_modules/amis-ui/lib/components/ModalManager.js*/
amis.define('d45f23a', function (e, n, t, r) {
'use strict'
function u(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
Object.defineProperty(n, '__esModule', { value: !0 })
var d = u(e('db07483')),
o = []
function i() {
return o[o.length - 1]
}
window.addEventListener('keydown', function (e) {
if ('esc' !== d.default(e)) return
var n = i()
if (!n) return
var t = n.props,
r = t.disabled
!t.closeOnEsc || r || e.defaultPrevented || n.props.onHide(e)
}),
(n.addModal = function (e) {
o.push(e)
}),
(n.current = function () {
return o.length
}),
(n.currentModal = i),
(n.removeModal = function (e) {
o = o.filter(function (n) {
return n !== e
})
})
}) /*!node_modules/amis-ui/lib/icons/close.svg.js*/
amis.define('f4a0375', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'm13.5 1.44 1.06 1.06L9.06 8l5.5 5.5-1.06 1.06L8 9.06l-5.5 5.5-1.06-1.06L6.938 8l-5.5-5.5L2.5 1.44 8 6.938z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/close-small.svg.js*/
amis.define('20e48b2', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l,
i = e('ac704b9'),
c = (i.default || i).createElement
function f() {
return (
(f = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
f.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return c(
'svg',
f({ viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'M512 832a320 320 0 1 1 0-640 320 320 0 0 1 0 640z', fill: 'currentColor' })),
l ||
(l = c('path', {
d: 'M670.144 398.848 556.992 512l113.152 113.152-45.248 45.248-113.152-113.152L398.592 670.4l-45.248-45.248L466.56 512 353.344 398.848l45.248-45.248 113.152 113.152L624.896 353.6l45.248 45.248z',
fill: '#fff'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/status-close.svg.js*/
amis.define('22023aa', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
l = e('ac704b9'),
i = (l.default || l).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
o.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'm12.549 2.65.707.707-4.597 4.595 4.597 4.597-.707.708-4.596-4.598-4.596 4.598-.707-.708 4.596-4.597L2.65 3.357l.707-.707 4.596 4.595 4.596-4.595Z',
fill: 'currentColor',
opacity: 0.5,
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/undo.svg.js*/
amis.define('0c2607c', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 854 768', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M576.333 213.333H82.04L265.293 30.08 235 0 .333 234.667 235 469.333l30.08-30.08L82.04 256h494.293c129.597.008 234.652 105.07 234.652 234.667S705.93 725.325 576.333 725.333H363V768h213.333c153.167 0 277.334-124.166 277.334-277.333 0-153.167-124.167-277.334-277.334-277.334Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/undo-normal.svg.js*/
amis.define('5051693', function (t, e, a, l) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), t('ac704b9')
var r,
n,
c = t('ac704b9'),
o = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (t) {
for (var e = 1; e < arguments.length; e++) {
var a = arguments[e]
for (var l in a) Object.prototype.hasOwnProperty.call(a, l) && (t[l] = a[l])
}
return t
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
e.default = function (t) {
return o(
'svg',
i({ viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, t),
r || (r = o('path', { d: 'M0 0h1024v1024H0z', fill: 'currentColor', opacity: 0.01 })),
n ||
(n = o('path', {
d: 'm5.632 356.199.768 1.382a51.2 51.2 0 0 0 10.803 13.517l.461.358c1.024.973 2.15 1.844 3.328 2.663l-3.789-3.072a51.61 51.61 0 0 0 10.445 7.219l1.024.512a50.944 50.944 0 0 0 4.66 2.048l.614.205a50.79 50.79 0 0 0 14.233 2.867L51.2 384h230.4a51.2 51.2 0 0 0 5.99-102.041l-5.99-.359H166.4l.41-.41c23.45-25.6 42.598-45.874 55.551-58.828a409.6 409.6 0 1 1 0 579.277 51.2 51.2 0 1 0-72.345 72.345A510.464 510.464 0 0 0 512 1024c282.777 0 512-229.222 512-512S794.776 0 512 0a510.464 510.464 0 0 0-362.035 149.965l-11.776 11.93c-6.35 6.656-13.466 14.131-21.3 22.528l-14.49 15.565V102.4A51.2 51.2 0 0 0 57.19 51.56L51.2 51.2A51.2 51.2 0 0 0 .358 96.41L0 102.4v230.4c0 8.09 1.894 15.719 5.222 22.528l.41.87z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/redo.svg.js*/
amis.define('c22b5b6', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 854 768', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'm619 0-30.08 30.08 183.04 183.253H277.667C124.5 213.333.333 337.5.333 490.667S124.5 768 277.667 768H491v-42.667H277.667c-129.597-.008-234.652-105.07-234.652-234.666C43.015 361.07 148.07 256.008 277.667 256H771.96L588.707 439.253 619 469.333l234.667-234.666L619 0Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/enter.svg.js*/
amis.define('6cb7b31', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r = e('ac704b9'),
s = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
t.default = function (e) {
return s(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', className: 'icon' }, e),
a ||
(a = s('path', {
d: 'M864 192c-19.2 0-32 12.8-32 32v224c0 89.6-70.4 160-160 160H236.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-160 160c-3.2 3.2-6.4 6.4-6.4 9.6-3.2 6.4-3.2 16 0 25.6 3.2 3.2 3.2 6.4 6.4 9.6l160 160c6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L236.8 672H672c124.8 0 224-99.2 224-224V224c0-19.2-12.8-32-32-32z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/volume.svg.js*/
amis.define('8823ecb', function (e, t, a, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var n,
l,
c = e('ac704b9'),
o = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var r in a) Object.prototype.hasOwnProperty.call(a, r) && (e[r] = a[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return o(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', className: 'icon' }, e),
n ||
(n = o('path', {
d: 'M536.32 5.12a63.999 63.999 0 0 0-69.76 13.44L229.766 255.996H64.008A63.999 63.999 0 0 0 .009 319.994v383.994a63.999 63.999 0 0 0 63.999 63.999h165.757l236.796 237.435a63.999 63.999 0 0 0 45.439 18.56 53.76 53.76 0 0 0 24.32-5.12 63.999 63.999 0 0 0 39.679-58.879V64a63.999 63.999 0 0 0-39.68-58.88zM192.006 639.989h-64V383.993h64zM448 805.746 320.003 677.748V346.234l127.998-127.998zm431.353-657.269a63.999 63.999 0 0 0-94.719 87.039 402.553 402.553 0 0 1 0 552.95 63.999 63.999 0 0 0 47.36 107.518 63.999 63.999 0 0 0 46.719-20.48 531.83 531.83 0 0 0 0-727.027z',
fill: 'currentColor'
})),
l ||
(l = o('path', {
d: 'M751.996 277.115a63.999 63.999 0 0 0-95.999 85.759 218.236 218.236 0 0 1 48 149.117 221.436 221.436 0 0 1-47.36 149.117 63.999 63.999 0 0 0 4.48 90.239 63.999 63.999 0 0 0 42.88 16.64 63.999 63.999 0 0 0 47.359-21.12 349.434 349.434 0 0 0 80.638-234.876 353.274 353.274 0 0 0-79.998-234.876z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/mute.svg.js*/
amis.define('2f70626', function (e, a, t, n) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 }), e('ac704b9')
var r,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var a = 1; a < arguments.length; a++) {
var t = arguments[a]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
a.default = function (e) {
return c(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', className: 'icon' }, e),
r ||
(r = c('path', {
d: 'M536.31 5.12a63.999 63.999 0 0 0-69.758 13.44L229.756 255.996H63.999A63.999 63.999 0 0 0 0 319.994v383.994a63.999 63.999 0 0 0 63.999 63.999h165.757l236.796 237.435a63.999 63.999 0 0 0 45.439 18.56 53.76 53.76 0 0 0 24.32-5.12 63.999 63.999 0 0 0 39.679-58.879V64a63.999 63.999 0 0 0-39.68-58.88zM191.998 639.989h-64V383.993h64zm255.995 165.757L319.994 677.748V346.234l127.998-127.998zM914.544 511.99l90.878-90.238a63.999 63.999 0 1 0-90.878-90.879l-90.238 90.879-90.239-90.879a63.999 63.999 0 0 0-90.878 90.879l90.878 90.238-90.878 90.238a63.999 63.999 0 0 0 90.878 90.879l90.239-90.879 90.238 90.879a63.999 63.999 0 1 0 90.878-90.879z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/play.svg.js*/
amis.define('c2d1128', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function s() {
return (
(s = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
s.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
s({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 14 16', className: 'icon' }, e),
r || (r = i('path', { d: 'M13.572 7.254 1.284.115A.856.856 0 0 0 0 .861v14.278c0 .307.163.592.428.746a.85.85 0 0 0 .856-.001l12.288-7.138a.862.862 0 0 0 0-1.492Z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/pause.svg.js*/
amis.define('5ce364d', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
a = e('ac704b9'),
i = (a.default || a).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
o.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return i(
'svg',
o({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M757.52 73.107h-62.493c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.493c34.516 0 62.502-27.968 62.502-62.493V135.613c-.001-34.524-27.984-62.509-62.502-62.509zM320.054 73.107h-62.502c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.502c34.505 0 62.493-27.968 62.493-62.493V135.613c-.001-34.524-27.984-62.509-62.493-62.509z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/left-arrow.svg.js*/
amis.define('788e093', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var o,
a = e('ac704b9'),
i = (a.default || a).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
o || (o = i('path', { stroke: 'currentColor', fill: 'none', strokeLinejoin: 'round', d: 'M10.497 13.664 4.84 8.007l5.657-5.657', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/right-arrow.svg.js*/
amis.define('79167f8', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var o,
a = e('ac704b9'),
i = (a.default || a).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
o || (o = i('path', { stroke: 'currentColor', fill: 'none', strokeLinejoin: 'round', d: 'm5.497 13.664 5.657-5.657L5.497 2.35', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/arrow-double-left.svg.js*/
amis.define('3bfdc75', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r,
l = e('ac704b9'),
f = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return f(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
a ||
(a = f('path', {
d: 'M842.667 864c-8.534 0-14.934-2.133-21.334-8.533L480 546.133c-6.4-6.4-10.667-14.933-10.667-23.466 0-8.534 4.267-17.067 10.667-23.467l341.333-309.333c12.8-12.8 34.134-10.667 44.8 2.133 12.8 12.8 10.667 34.133-2.133 44.8L548.267 522.667 864 808.533c12.8 10.667 14.933 32 2.133 44.8-6.4 6.4-14.933 10.667-23.466 10.667z',
fill: '#1677ff'
})),
r ||
(r = f('path', {
d: 'M512 864c-8.533 0-14.933-2.133-21.333-8.533L149.333 546.133c-6.4-6.4-10.666-14.933-10.666-23.466 0-8.534 4.266-17.067 10.666-23.467l341.334-309.333c12.8-12.8 34.133-10.667 44.8 2.133 12.8 12.8 10.666 34.133-2.134 44.8L217.6 522.667l315.733 285.866c12.8 12.8 14.934 32 2.134 44.8-6.4 6.4-14.934 10.667-23.467 10.667z',
fill: '#1677ff'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/arrow-double-right.svg.js*/
amis.define('85be91c', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r,
l = e('ac704b9'),
f = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return f(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
a ||
(a = f('path', {
d: 'M544 522.667c0-8.534-4.267-17.067-10.667-23.467L192 189.867c-12.8-12.8-34.133-10.667-44.8 2.133-12.8 12.8-10.667 34.133 2.133 44.8l315.734 285.867-315.734 285.866c-12.8 12.8-14.933 32-2.133 44.8 6.4 6.4 14.933 10.667 23.467 10.667 8.533 0 14.933-2.133 21.333-8.533l341.333-309.334c6.4-6.4 10.667-14.933 10.667-23.466z',
fill: '#1677ff'
})),
r ||
(r = f('path', {
d: 'M864 499.2 522.667 189.867c-12.8-12.8-34.134-10.667-44.8 2.133-12.8 12.8-10.667 34.133 2.133 44.8l315.733 285.867L480 808.533c-12.8 12.8-14.933 32-2.133 44.8 6.4 6.4 14.933 10.667 23.466 10.667 8.534 0 14.934-2.133 21.334-8.533L864 546.133c6.4-6.4 10.667-14.933 10.667-23.466 0-8.534-4.267-17.067-10.667-23.467z',
fill: '#1677ff'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/check.svg.js*/
amis.define('eebe3d1', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'M13.943 3 15 4.055l-8.531 8.54L1 7.12l1.057-1.056 4.412 4.418z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/plus.svg.js*/
amis.define('0501b75', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = o('path', { d: 'M6.6 6.6V12H5.4V6.6H0V5.4h5.4V0h1.2v5.4H12v1.2z', fill: 'currentColor', fillRule: 'nonzero' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/sub-plus.svg.js*/
amis.define('3059bd7', function (a, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), a('ac704b9')
var c,
r = a('ac704b9'),
v = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (a) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (a[n] = t[n])
}
return a
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
e.default = function (a) {
return v(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, a),
c ||
(c = v('path', {
d: 'M128.01 134.58h767.98c47.103 0 85.355 38.106 85.355 85.282v206.77c0 47.175-38.252 85.355-85.355 85.355H256.884v298.56c0 2.927 1.024 5.487 3.145 7.534a10.24 10.24 0 0 0 7.534 3.146h220.886a31.963 31.963 0 1 1 0 63.998H267.563a71.97 71.97 0 0 1-52.808-21.942 71.97 71.97 0 0 1-21.869-52.735V511.987H128.01a85.355 85.355 0 0 1-85.355-85.356v-206.77c0-47.175 38.252-85.355 85.355-85.355zm0 313.408h767.98a20.48 20.48 0 0 0 15.067-6.217 20.553 20.553 0 0 0 6.29-15.14v-206.77c0-5.85-2.121-10.97-6.29-15.066a20.48 20.48 0 0 0-15.067-6.29H128.01c-5.851 0-10.971 2.12-15.067 6.29a20.553 20.553 0 0 0-6.29 15.067v206.77c0 5.85 2.121 10.97 6.29 15.14a20.553 20.553 0 0 0 15.067 6.216zm575.692 532.174a31.963 31.963 0 0 1-31.962-31.963v-62.974h-62.755a32.036 32.036 0 0 1 0-63.998h62.755v-62.755a31.963 31.963 0 1 1 63.998 0v62.755h62.901a31.963 31.963 0 1 1 0 63.998h-62.9v62.901a31.963 31.963 0 0 1-32.037 32.036z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/minus.svg.js*/
amis.define('1c700cd', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i('svg', o({ viewBox: '0 0 12 2', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e), a || (a = i('path', { d: 'M0 1.6V.4h12v1.2z', fill: 'currentColor' })))
}
}) /*!node_modules/amis-ui/lib/icons/pencil.svg.js*/
amis.define('3c44a84', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 14 14', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = c('path', {
d: 'm10.496.834 2.672 2.672a.797.797 0 0 1 0 1.128l-2.264 2.264L4.4 13.402H.6v-3.8l7.248-7.248 1.52-1.52a.797.797 0 0 1 1.128 0ZM7.67 3.663 1.4 9.933v2.669h2.669l6.269-6.271L7.67 3.663Zm2.262-2.262L8.235 3.098l2.669 2.669 1.697-1.697-2.669-2.669ZM7 12.6h4.8v.8H7v-.8Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/view.svg.js*/
amis.define('f5752ad', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
l = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return l(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = l('path', {
d: 'M8 3c3.989 0 7 3.873 7 5 0 .883-3.011 5-7 5-4.04 0-7-4.117-7-5 0-1.127 2.96-5 7-5Zm0 1C4.733 4 2.218 7.086 2.009 7.973 2.275 8.771 4.719 12 7.999 12c3.21 0 5.735-3.269 5.994-4.037C13.807 7.126 11.27 4 8 4ZM7.975 5.88a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 1a1.001 1.001 0 0 0 0 2 1.001 1.001 0 0 0 0-2Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/remove.svg.js*/
amis.define('5d0db8d', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = o('path', {
d: 'M14 3.499V4.5h-1.503l.001 10h-9l-.001-10H2V3.499h12ZM11.498 4.5H4.497v9h7.001v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM9.999 1.5v.999H5.998V1.5h4.001Z',
fill: 'currentColor',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/retry.svg.js*/
amis.define('f9fc0cd', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = i('g', { fill: 'currentColor' }, i('path', { d: 'M7 1v5l3.75-2.5z' }), i('path', { d: 'M8 3v1.44A4.56 4.56 0 1 0 12.56 9H14a6 6 0 1 1-6-6Z' })))
)
}
}) /*!node_modules/amis-ui/lib/icons/upload.svg.js*/
amis.define('5a48b21', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = o('path', {
d: 'M3 10v2.995h10V10h1v4h-1v-.005H3V14H2v-4h1Zm5.026-8 3.814 3.815-.707.707-2.616-2.617V11h-1V3.923L4.89 6.548l-.707-.706L8.026 2Z',
fill: 'currentColor',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/download.svg.js*/
amis.define('aa0268f', function (e, t, a, c) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var n,
r = e('ac704b9'),
i = (r.default || r).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (e[c] = a[c])
}
return e
}),
o.apply(this, arguments)
)
}
;(r.default || r).Fragment
t.default = function (e) {
return i(
'svg',
o({ 'aria-hidden': 'true', 'data-prefix': 'fas', 'data-icon': 'download', className: 'icon', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' }, e),
n ||
(n = i('path', {
fill: 'currentColor',
d: 'M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/file.svg.js*/
amis.define('c206272', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c,
i = e('ac704b9'),
s = (i.default || i).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
o.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return s(
'svg',
o({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 14 16', className: 'icon' }, e),
r || (r = s('path', { d: 'M0 0v16h14V4.001L9.939 0H0Zm1 1h8v4h4v10H1V1Zm9 .464 2.575 2.537H10V1.464Z' })),
c || (c = s('path', { d: 'M4 12h6v-1H4zM4 9h6V8H4z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/success.svg.js*/
amis.define('10be5b1', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var o,
a = e('ac704b9'),
l = (a.default || a).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return l(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
o ||
(o = l(
'g',
{ fill: 'none', fillRule: 'evenodd', strokeLinejoin: 'round' },
l('path', { d: 'M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z', stroke: 'currentColor', fill: 'currentColor' }),
l('path', { stroke: '#FFF', d: 'm11.512 5.975-4.537 4.537L4.5 8.037' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/fail.svg.js*/
amis.define('5bcd9a4', function (e, r, t, n) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('ac704b9')
var a,
o = e('ac704b9'),
c = (o.default || o).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(o.default || o).Fragment
r.default = function (e) {
return c(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = c(
'g',
{ transform: 'translate(1 1)', strokeLinejoin: 'round' },
c('circle', { cx: 7, cy: 7, r: 7, stroke: 'currentColor', fill: 'currentColor' }),
c('path', { stroke: '#FFF', fill: 'none', d: 'm4.643 9.357 4.714-4.714M4.643 4.643l4.714 4.714' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/search.svg.js*/
amis.define('71abbd4', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 18 18', className: 'icon' }, e),
a ||
(a = i('path', {
fill: 'currentColor',
d: 'M2 8c0-3.309 2.691-6 6-6s6 2.691 6 6-2.691 6-6 6-6-2.691-6-6Zm16 8.586L14.314 12.9A7.955 7.955 0 0 0 16 8a8 8 0 1 0-8 8 7.955 7.955 0 0 0 4.9-1.686L16.586 18 18 16.586Z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/back.svg.js*/
amis.define('0bc9ea8', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
c.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
c({ viewBox: '0 0 9 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = o('path', { d: 'M8.294 10.473 3.494 6l4.8-4.473L6.694 0l-6.4 6 6.4 6z', fill: 'currentColor', fillRule: 'nonzero' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/move.svg.js*/
amis.define('a6a7953', function (e, t, l, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
a = e('ac704b9'),
i = (a.default || a).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var l = arguments[t]
for (var n in l) Object.prototype.hasOwnProperty.call(l, n) && (e[n] = l[n])
}
return e
}),
o.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return i(
'svg',
o({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M8.02 0 5.161 2.859l1 1 .859-.858V7.02H3.001l.858-.86-1-.999L0 8.02l2.82 2.82 1-1-.819-.82H7.02v3.981l-.859-.86-1 1L8.02 16l2.819-2.82-1-.999-.819.82V9.02h3.981l-.821.82 1 1L16 8.02l-2.859-2.859-1 .999.86.86H9.02V3.001l.819.819 1-1z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/info.svg.js*/
amis.define('6fde503', function (e, t, r, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t]
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16', className: 'icon' }, e),
a || (a = o('circle', { stroke: 'currentColor', fill: 'transparent', cx: 8, cy: 8, r: 7.5 })),
c || (c = o('path', { fill: 'currentColor', d: 'M7 3h2v2H7zM7 6h2v7H7z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/location.svg.js*/
amis.define('47e1395', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
s = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return s(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
r ||
(r = s('path', {
d: 'M511.968 0c-207.84 0-376.96 169.12-376.96 376.992 0 54.208 11.104 105.984 32.96 153.888 94.24 206.24 274.976 424 328.128 485.824 3.968 4.608 9.792 7.296 15.904 7.296s11.904-2.656 15.904-7.296c53.12-61.824 233.856-279.552 328.128-485.824 21.888-47.904 32.96-99.648 32.96-153.888C888.96 169.12 719.84 0 512 0zm0 572.8C404 572.8 316.16 484.96 316.16 376.992s87.84-195.84 195.808-195.84 195.808 87.84 195.808 195.84c0 107.968-87.84 195.808-195.808 195.808z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/drag-bar.svg.js*/
amis.define('2da5e34', function (c, r, e, t) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), c('ac704b9')
var n,
a = c('ac704b9'),
i = (a.default || a).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (c) {
for (var r = 1; r < arguments.length; r++) {
var e = arguments[r]
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (c[t] = e[t])
}
return c
}),
l.apply(this, arguments)
)
}
;(a.default || a).Fragment
r.default = function (c) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, c),
n ||
(n = i(
'g',
{ transform: 'translate(5 1)', stroke: 'currentColor' },
i('circle', { cx: 1, cy: 1, r: 1 }),
i('circle', { cx: 5, cy: 1, r: 1 }),
i('circle', { cx: 1, cy: 5, r: 1 }),
i('circle', { cx: 5, cy: 5, r: 1 }),
i('circle', { cx: 1, cy: 9, r: 1 }),
i('circle', { cx: 5, cy: 9, r: 1 }),
i('circle', { cx: 1, cy: 13, r: 1 }),
i('circle', { cx: 5, cy: 13, r: 1 })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/reload.svg.js*/
amis.define('ebcfdca', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
l = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return l(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16', className: 'icon' }, e),
r ||
(r = l('path', {
d: 'M8.05 14.056a6.041 6.041 0 0 1-5.132-2.82l2.113-2.042H0v4.862l1.409-1.362C2.919 14.736 5.333 16 8.05 16c4.025 0 7.447-2.82 7.95-6.708L13.987 9c-.402 2.917-2.918 5.056-5.937 5.056Zm6.541-10.75C13.081 1.264 10.667 0 7.95 0 3.925 0 .503 2.82 0 6.708L2.013 7C2.415 4.083 4.93 1.944 7.95 1.944a6.041 6.041 0 0 1 5.132 2.82l-2.113 2.042H16V1.944l-1.409 1.362Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/exchange.svg.js*/
amis.define('2b60461', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var c,
l = e('ac704b9'),
a = (l.default || l).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return a(
'svg',
o({ viewBox: '0 0 175 201', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
c ||
(c = a('path', {
d: 'M104.295 11.995v177.5c0 6.2 5.1 11.3 11.3 11.3 3.4 0 6.5-1.5 8.7-4.1.8-.6 1.5-1.4 2.1-2.2l46.5-66.3c3.6-5.1 2.4-12.1-2.7-15.7-5.1-3.6-12.1-2.3-15.7 2.8l-27.6 39.3v-142.6c-.1-6.2-5.2-11.3-11.4-11.3s-11.2 5.1-11.2 11.3Zm-33.2 0c0-6.2-5.1-11.3-11.3-11.3-3.4 0-6.5 1.5-8.7 4.1-.8.7-1.5 1.4-2.1 2.2l-46.5 66.3c-1.3 1.9-2 4.1-2 6.5 0 3.7 1.8 7.1 4.8 9.2 2.5 1.7 5.4 2.4 8.4 1.9s5.5-2.2 7.3-4.6l27.6-39.3v142.5c0 6.2 5.1 11.3 11.3 11.3 6.2-.1 11.2-5.2 11.2-11.4v-177.4Z',
fill: 'currentColor',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/columns.svg.js*/
amis.define('7399bd8', function (c, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), c('ac704b9')
var r,
a = c('ac704b9'),
i = (a.default || a).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (c) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (c[n] = t[n])
}
return c
}),
o.apply(this, arguments)
)
}
;(a.default || a).Fragment
e.default = function (c) {
return i(
'svg',
o({ viewBox: '0 0 122 123', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, c),
r ||
(r = i('path', {
d: 'M5.583.75h22.084c1.666 0 2.916.417 3.75 1.667.833 1.25 1.666 2.5 1.666 3.75V28.25c0 1.667-.416 2.917-1.666 3.75-1.25.833-2.5 1.667-3.75 1.667H5.583c-1.666 0-2.916-.417-3.75-1.667C.583 30.75.167 29.5.167 28.25V6.167c0-1.667.416-2.917 1.666-3.75C2.667 1.583 3.917.75 5.583.75Zm44.167 0h22.083c1.667 0 2.917.417 3.75 1.667 1.25 1.25 1.667 2.5 1.667 3.75V28.25c0 1.667-.417 2.917-1.667 3.75-1.25 1.25-2.5 1.667-3.75 1.667H49.75c-1.667 0-2.917-.417-3.75-1.667-1.25-1.25-1.667-2.5-1.667-3.75V6.167c0-1.667.417-2.917 1.667-3.75.833-.834 2.5-1.667 3.75-1.667Zm44.583 0h22.084c1.666 0 2.916.417 3.75 1.667.833 1.25 1.666 2.5 1.666 3.75V28.25c0 1.667-.416 2.917-1.666 3.75-1.25.833-2.5 1.667-3.75 1.667H94.333c-1.666 0-2.916-.417-3.75-1.667-.833-1.25-1.666-2.5-1.666-3.75V6.167c0-1.667.416-2.917 1.666-3.75 1.25-.834 2.084-1.667 3.75-1.667ZM5.583 45.333h22.084c1.666 0 2.916.417 3.75 1.667 1.25 1.25 1.666 2.5 1.666 3.75v22.083c0 1.667-.416 2.917-1.666 3.75-1.25.834-2.5 1.667-3.75 1.667H5.583c-1.666 0-2.916-.417-3.75-1.667-1.25-1.25-1.666-2.5-1.666-3.75V50.75c0-1.667.416-2.917 1.666-3.75.834-1.25 2.084-1.667 3.75-1.667Zm44.167 0h22.083c1.667 0 2.917.417 3.75 1.667 1.25 1.25 1.667 2.5 1.667 3.75v22.083c0 1.667-.417 2.917-1.667 3.75-1.25 1.25-2.5 1.667-3.75 1.667H49.75c-1.667 0-2.917-.417-3.75-1.667-1.25-1.25-1.667-2.5-1.667-3.75V50.75c0-1.667.417-2.917 1.667-3.75.833-1.25 2.5-1.667 3.75-1.667Zm44.583 0h22.084c1.666 0 2.916.417 3.75 1.667 1.25 1.25 1.666 2.5 1.666 3.75v22.083c0 1.667-.416 2.917-1.666 3.75-1.25.834-2.5 1.667-3.75 1.667H94.333c-1.666 0-2.916-.417-3.75-1.667-.833-1.25-1.666-2.5-1.666-3.75V50.75c0-1.667.416-2.917 1.666-3.75.834-1.25 2.084-1.667 3.75-1.667ZM5.583 89.917h22.084c1.666 0 2.916.416 3.75 1.666.833 1.25 1.666 2.5 1.666 3.75v22.084c0 1.666-.416 2.916-1.666 3.75-1.25.833-2.5 1.666-3.75 1.666H5.583c-1.666 0-2.916-.416-3.75-1.666-1.25-1.25-1.666-2.5-1.666-3.75V95.333c0-1.666.416-2.916 1.666-3.75.834-1.25 2.084-1.666 3.75-1.666Zm44.167 0h22.083c1.667 0 2.917.416 3.75 1.666 1.25 1.25 1.667 2.5 1.667 3.75v22.084c0 1.666-.417 2.916-1.667 3.75-1.25 1.25-2.5 1.666-3.75 1.666H49.75c-1.667 0-2.917-.416-3.75-1.666-1.25-1.25-1.667-2.5-1.667-3.75V95.333c0-1.666.417-2.916 1.667-3.75.833-1.25 2.5-1.666 3.75-1.666Zm44.583 0h22.084c1.666 0 2.916.416 3.75 1.666.833 1.25 1.666 2.5 1.666 3.75v22.084c0 1.666-.416 2.916-1.666 3.75-1.25.833-2.5 1.666-3.75 1.666H94.333c-1.666 0-2.916-.416-3.75-1.666-.833-1.25-1.666-2.5-1.666-3.75V95.333c0-1.666.416-2.916 1.666-3.75.834-1.25 2.084-1.666 3.75-1.666Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/calendar.svg.js*/
amis.define('5d1b461', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var l,
a = e('ac704b9'),
o = (a.default || a).createElement
function v() {
return (
(v = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
v.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return o(
'svg',
v({ viewBox: '0 0 14 14', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
l ||
(l = o(
'g',
{ fill: 'none', fillRule: 'evenodd' },
o('path', { d: 'M23.5-7.5h-159v29h159v-29Z', stroke: 'currentColor' }),
o(
'g',
{ fill: 'currentColor', fillRule: 'nonzero' },
o('path', { d: 'M0 14h14V3H0v11Zm2-9h10v7H2V5ZM0 0h14v2H0z' }),
o('path', { d: 'M9 6h2v2H9zM9 9h2v2H9zM6 6h2v2H6zM6 9h2v2H6zM3 6h2v2H3zM3 9h2v2H3z' })
)
))
)
}
}) /*!node_modules/amis-ui/lib/icons/clock.svg.js*/
amis.define('5c7c936', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var c,
o = e('ac704b9'),
a = (o.default || o).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(o.default || o).Fragment
t.default = function (e) {
return a(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
c || (c = a('g', { fill: 'none', fillRule: 'evenodd', stroke: 'currentColor', strokeLinejoin: 'round' }, a('circle', { cx: 8, cy: 8, r: 6.5 }), a('path', { d: 'M7.874 5.5v3.038L5.5 9.28' })))
)
}
}) /*!node_modules/amis-ui/lib/icons/tree-down.svg.js*/
amis.define('56c0f45', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i('svg', o({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', fill: 'currentColor', className: 'icon' }, e), a || (a = i('path', { d: 'M512 704 256 384h512z' })))
}
}) /*!node_modules/amis-ui/lib/icons/cloud-upload.svg.js*/
amis.define('296e2bb', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
l = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return l(
'svg',
i({ viewBox: '0 0 42 31', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = l('path', {
d: 'm20.872 15.498 4.512 6.003h-3.012v9h-3v-9H16.38l4.49-6.003Zm0-14.999c6.47 0 11.946 4.143 14.046 9.897 3.957.945 6.918 4.491 6.918 8.733 0 4.962-4.038 9-9 9-1.044 0-2.034-.213-2.964-.546v-3.315c.738.426 1.55.732 2.445.81.174.012.342.051.519.051 3.309 0 6-2.691 6-6 0-2.262-1.272-4.212-3.126-5.235-.858-.471-1.827-.765-2.874-.765-.07 0-.132.018-.201.021-.207-1.026-.576-1.983-1.023-2.898-1.953-3.981-6.012-6.753-10.74-6.753-4.725 0-8.778 2.769-10.737 6.744-.45.915-.82 1.872-1.026 2.898L9 13.129c-1.086 0-2.094.315-2.973.822C4.228 14.986 3 16.909 3 19.129c0 3.309 2.69 6 6 6 .147 0 .285-.033.432-.045.888-.063 1.698-.357 2.439-.759v3.285c-.906.315-1.86.519-2.871.519-4.962 0-9-4.038-9-9 0-4.203 2.91-7.716 6.813-8.7C8.904 4.66 14.389.499 20.872.499Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/image.svg.js*/
amis.define('02facc7', function (e, t, a, c) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var n,
r = e('ac704b9'),
s = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (e[c] = a[c])
}
return e
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
t.default = function (e) {
return s(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512', className: 'icon' }, e),
n ||
(n = s('path', {
d: 'M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/refresh.svg.js*/
amis.define('8316a53', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = i('path', { d: 'M8 1.5a6.5 6.5 0 1 1-.869 12.942.5.5 0 0 1 .133-.99 5.5 5.5 0 1 0-4.63-4.24.5.5 0 0 1-.976.218A6.5 6.5 0 0 1 8 1.5Z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/drag.svg.js*/
amis.define('f2c7086', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
i = e('ac704b9'),
l = (i.default || i).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
c.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return l(
'svg',
c({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = l('path', {
d: 'M6 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z',
fill: '#151B26',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/edit.svg.js*/
amis.define('c823956', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r || (r = i('path', { d: 'M8.491 1.5v1H2.5v11h11V7.532h1V14.5h-13v-13h6.991Zm5.255.122.707.708-6.364 6.364-.708-.707 6.364-6.365Z', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/desk-empty.svg.js*/
amis.define('a075a89', function (e, l, t, o) {
'use strict'
Object.defineProperty(l, '__esModule', { value: !0 }), e('ac704b9')
var n,
a,
r = e('ac704b9'),
s = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var l = 1; l < arguments.length; l++) {
var t = arguments[l]
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o])
}
return e
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
l.default = function (e) {
return s(
'svg',
i({ viewBox: '0 0 100 100', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
n ||
(n = s(
'defs',
null,
s(
'linearGradient',
{ x1: '16.498%', y1: '38.528%', x2: '56.262%', y2: '63.185%', id: 'desk-empty_svg__a' },
s('stop', { stopColor: '#DCE0EF', offset: '0%' }),
s('stop', { stopColor: '#DCDFEA', offset: '100%' })
),
s(
'linearGradient',
{ x1: '28.893%', y1: '55.707%', x2: '93.898%', y2: '48.876%', id: 'desk-empty_svg__b' },
s('stop', { stopColor: '#F1F3FA', offset: '0%' }),
s('stop', { stopColor: '#E8EAF0', offset: '100%' })
)
)),
a ||
(a = s(
'g',
{ fill: 'none', fillRule: 'evenodd' },
s('path', { d: 'M0 0h100v100H0z' }),
s('ellipse', { fill: 'url(#desk-empty_svg__a)', fillRule: 'nonzero', cx: 50, cy: 60.8, rx: 44.4, ry: 22.8 }),
s('ellipse', { fill: 'url(#desk-empty_svg__b)', fillRule: 'nonzero', cx: 50, cy: 58.4, rx: 44.4, ry: 22.8 }),
s('path', {
d: 'M69.343 42.018c6.904 3.985 10.08 11.235 10.057 19.162-.011 3.963-1.42 6.745-3.683 8.05-2.275 1.284-5.406 1.082-8.853-.9L34.857 50.868C27.953 46.882 22.377 37.22 22.4 29.294c.023-7.927 5.643-11.113 12.547-7.127.89.506 1.746 1.103 2.579 1.79.766-8.096 7.05-11.136 14.675-6.745 7.614 4.392 13.865 14.672 14.574 23.623.823.27 1.69.676 2.568 1.183Z',
fill: '#E0E3EF',
fillRule: 'nonzero'
}),
s('path', {
d: 'M42.92 29.682a.81.81 0 0 1 1.263-.671l4.86 3.274a.81.81 0 0 1 .357.672v8.163l-1.129-.715 1.129.761v7.123a.81.81 0 0 1-1.243.684l-4.86-3.076a.81.81 0 0 1-.377-.684v-15.53Z',
fill: '#FFF',
fillRule: 'nonzero'
}),
s('path', {
d: 'm53.903 44.13 4.86 3.275a.81.81 0 0 1 .357.672v6.692a.81.81 0 0 1-1.243.684l-4.86-3.076a.81.81 0 0 1-.377-.684v-6.89a.81.81 0 0 1 1.263-.672Z',
fill: '#F7F8FB',
fillRule: 'nonzero'
})
))
)
}
}) /*!node_modules/amis-ui/lib/icons/fullscreen.svg.js*/
amis.define('9d6a09f', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M1011.2 384h-96V115.2H640V12.8h320c25.6 0 51.2 19.2 51.2 51.2v320zM384 1011.2H64c-25.6 0-51.2-19.2-51.2-51.2V640h96v268.8H384v102.4zM115.2 384H12.8V64C12.8 38.4 32 12.8 64 12.8h320v96H115.2V384zM960 1011.2H640v-96h268.8V640h96v320c6.4 25.6-19.2 51.2-44.8 51.2z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/unfullscreen.svg.js*/
amis.define('77beb86', function (a, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), a('ac704b9')
var r,
c = a('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (a) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (a[n] = t[n])
}
return a
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
e.default = function (a) {
return i(
'svg',
o({ viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, a),
r ||
(r = i('path', {
d: 'M940.8 732.8h-176a32 32 0 0 0-32 32v196.8a62.4 62.4 0 0 1-124.8 0V736a128 128 0 0 1 128-128h225.6a62.4 62.4 0 0 1 0 124.8h-20.8zm-649.6 208v-176a32 32 0 0 0-32-32H62.4a62.4 62.4 0 0 1 0-124.8H288a128 128 0 0 1 128 128v225.6a62.4 62.4 0 0 1-124.8 0v-20.8zM732.8 83.2v176a32 32 0 0 0 32 32h196.8a62.4 62.4 0 0 1 0 124.8H736a128 128 0 0 1-128-128V62.4a62.4 62.4 0 0 1 124.8 0v20.8zm-649.6 208h176a32 32 0 0 0 32-32V62.4a62.4 62.4 0 0 1 124.8 0V288a128 128 0 0 1-128 128H62.4a62.4 62.4 0 0 1 0-124.8h20.8z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/copy.svg.js*/
amis.define('dde07c9', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
o = e('ac704b9'),
l = (o.default || o).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
c.apply(this, arguments)
)
}
;(o.default || o).Fragment
t.default = function (e) {
return l(
'svg',
c({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = l('g', { fill: 'none', fillRule: 'evenodd', stroke: 'currentColor' }, l('path', { d: 'M2.5 9.5h-2v-9h9v2' }), l('path', { d: 'M2.5 11.5h9v-9h-9z' })))
)
}
}) /*!node_modules/amis-ui/lib/icons/filter.svg.js*/
amis.define('0fb3fa5', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 150 100', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = i('path', { d: 'M58.333 100h33.334V83.333H58.333V100ZM0 0v16.667h150V0H0Zm25 58.333h100V41.667H25v16.666Z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/caret.svg.js*/
amis.define('a8fa10d', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 12 8', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = i('path', { fill: 'currentColor', d: 'M10.473 0 6 4.8 1.527 0 0 1.6 6 8l6-6.4z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/right-arrow-bold.svg.js*/
amis.define('e7aaac2', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 99 176', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M95.503 79.708a10.77 10.77 0 0 0-.914-.813L19.687 3.605c-4.17-4.17-10.932-4.17-15.102 0s-4.17 10.93 0 15.1L72.8 87.31 3.12 156.922c-4.17 4.17-4.17 10.931 0 15.102 4.17 4.17 10.931 4.17 15.102 0l76.366-76.301a10.645 10.645 0 0 0 4.04-8.414 10.643 10.643 0 0 0-3.125-7.601Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/down-arrow-bold.svg.js*/
amis.define('cdbedbd', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { fill: 'currentColor', d: 'm12.233 5-4.24 4.24L3.753 5l-.713.713 4.95 4.95.003-.003.003.003 4.95-4.95z', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/column-filter.svg.js*/
amis.define('21d3c89', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = c('path', {
d: 'm0 0 4 4.999L4.082 10 8 12V4.999L12 0H0Zm5.053 9.054-.074-4.227-.006-.327-.217-.257L2 1h8L7.244 4.243l-.223.263V10l-1.968-.946Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/zoom-in.svg.js*/
amis.define('50cb858', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 201 200', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'm200.774 185.426-14.392 14.46-54.05-54.213a80.503 80.503 0 0 1-50.224 17.6c-37.958.228-71.066-25.737-79.89-62.657-8.824-36.92 8.964-75.05 42.924-92.01 33.96-16.96 75.128-8.275 99.343 20.959 24.214 29.233 25.083 71.3 2.097 101.508l54.192 54.353ZM82.108 18.666c-25.551-.097-48.642 15.22-58.488 38.798-9.845 23.58-4.504 50.768 13.53 68.87 18.034 18.102 45.203 23.545 68.819 13.788 23.615-9.758 39.019-32.79 39.016-58.343.026-34.775-28.102-63.008-62.877-63.113Zm9.117 99.787h-18.26v-27.51H45.583V72.609h27.382V45.12h18.26v27.49h27.402v18.334H91.225v27.51Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/zoom-out.svg.js*/
amis.define('3be4f7e', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 187 187', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M45.455 90.91h72.727V72.726H45.455V90.91Zm100.254 41.945a81.39 81.39 0 0 0 17.927-51.037C163.636 36.628 127.01 0 81.818 0 36.628 0 0 36.627 0 81.818c0 45.191 36.627 81.818 81.818 81.818 19.318 0 37.037-6.727 51.037-17.927l40.972 40.973 12.855-12.855-40.973-40.972Zm-63.89 12.6c-35.146 0-63.637-28.491-63.637-63.637 0-35.145 28.49-63.636 63.636-63.636s63.637 28.49 63.637 63.636-28.491 63.637-63.637 63.637Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/question.svg.js*/
amis.define('093673e', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
s = (c.default || c).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return s(
'svg',
i({ viewBox: '0 0 175 175', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = s('path', {
d: 'M167.873 53.888c-4.389-10.378-10.671-19.696-18.672-27.697-8.001-8-17.32-14.283-27.697-18.672C110.757 2.973 99.344.668 87.584.668c-11.762 0-23.175 2.305-33.922 6.85-10.377 4.39-19.696 10.672-27.697 18.673-8 8-14.283 17.32-18.672 27.697-4.546 10.747-6.85 22.16-6.85 33.92 0 11.762 2.304 23.175 6.85 33.922 4.39 10.377 10.672 19.696 18.672 27.697 8.001 8 17.32 14.283 27.697 18.672 10.747 4.546 22.16 6.85 33.921 6.85s23.174-2.304 33.921-6.85c10.378-4.39 19.696-10.671 27.697-18.672 8.001-8.001 14.283-17.32 18.673-27.697 4.545-10.747 6.85-22.16 6.85-33.921s-2.305-23.174-6.85-33.921Zm-72.008 95.818c-2.37 2.109-5.109 3.16-8.216 3.16-3.212 0-6.016-1.04-8.413-3.12-2.396-2.08-3.594-4.99-3.594-8.726 0-3.321 1.158-6.11 3.476-8.377 2.317-2.263 5.16-3.395 8.531-3.395 3.318 0 6.109 1.132 8.374 3.395 2.263 2.267 3.397 5.056 3.397 8.377 0 3.685-1.185 6.58-3.555 8.686Zm29.504-73.146c-1.816 3.37-3.976 6.28-6.478 8.727-2.5 2.45-6.99 6.57-13.468 12.363-1.791 1.632-3.226 3.068-4.304 4.306-1.08 1.238-1.885 2.37-2.41 3.395a16.574 16.574 0 0 0-1.224 3.083c-.29 1.025-.726 2.83-1.304 5.412-1.001 5.475-4.135 8.215-9.4 8.215-2.74 0-5.043-.896-6.913-2.689-1.869-1.79-2.804-4.45-2.804-7.977 0-4.423.684-8.255 2.054-11.493 1.369-3.24 3.186-6.084 5.45-8.531 2.264-2.45 5.32-5.36 9.164-8.73 3.37-2.95 5.807-5.173 7.306-6.676a22.513 22.513 0 0 0 3.792-5.015c1.028-1.844 1.541-3.843 1.541-6.004 0-4.214-1.567-7.767-4.7-10.665-3.133-2.896-7.176-4.344-12.126-4.344-5.794 0-10.06 1.462-12.797 4.384-2.739 2.924-5.056 7.227-6.952 12.915-1.79 5.952-5.187 8.928-10.19 8.928-2.95 0-5.437-1.04-7.464-3.12-2.028-2.08-3.042-4.332-3.042-6.756 0-5.001 1.606-10.071 4.819-15.204 3.211-5.137 7.9-9.388 14.06-12.757 6.162-3.373 13.351-5.056 21.567-5.056 7.635 0 14.377 1.408 20.222 4.225 5.846 2.818 10.361 6.648 13.547 11.493 3.187 4.846 4.78 10.112 4.78 15.8 0 4.475-.908 8.398-2.726 11.771Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/question-mark.svg.js*/
amis.define('8f2d635', function (t, e, n, a) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), t('ac704b9')
var r,
i = t('ac704b9'),
l = (i.default || i).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a])
}
return t
}),
o.apply(this, arguments)
)
}
;(i.default || i).Fragment
e.default = function (t) {
return l(
'svg',
o({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, t),
r || (r = l('text', { fontFamily: 'PingFangSC-Regular, PingFang SC', fontSize: 12, fill: 'currentColor', fillRule: 'evenodd' }, l('tspan', { x: 3, y: 10.5 }, '\n\t\t\t\t\t\uff1f\n\t\t\t\t')))
)
}
}) /*!node_modules/amis-ui/lib/icons/window-restore.svg.js*/
amis.define('15ae0b6', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 200 200', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M181.25 0h-125C45.898 0 37.5 8.398 37.5 18.75V37.5H18.75C8.398 37.5 0 45.898 0 56.25v125C0 191.602 8.398 200 18.75 200h125c10.352 0 18.75-8.398 18.75-18.75V162.5h18.75c10.352 0 18.75-8.398 18.75-18.75v-125C200 8.398 191.602 0 181.25 0Zm-37.5 181.25h-125V100h125v81.25Zm37.5-37.5H162.5v-87.5c0-10.352-8.398-18.75-18.75-18.75h-87.5V18.75h125v125Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/info-circle.svg.js*/
amis.define('d2c53bb', function (c, e, t, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), c('ac704b9')
var r,
a = c('ac704b9'),
i = (a.default || a).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (c) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e]
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (c[n] = t[n])
}
return c
}),
o.apply(this, arguments)
)
}
;(a.default || a).Fragment
e.default = function (c) {
return i(
'svg',
o({ viewBox: '0 0 172 172', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, c),
r ||
(r = i('path', {
d: 'M114.571 139.571v-17.857c0-1.041-.334-1.897-1.004-2.567-.67-.67-1.525-1.004-2.567-1.004h-10.714V61c0-1.042-.335-1.897-1.005-2.567-.67-.67-1.525-1.004-2.567-1.004H61c-1.042 0-1.897.334-2.567 1.004-.67.67-1.004 1.525-1.004 2.567v17.857c0 1.042.334 1.897 1.004 2.567.67.67 1.525 1.005 2.567 1.005h10.714v35.714H61c-1.042 0-1.897.335-2.567 1.004-.67.67-1.004 1.526-1.004 2.567v17.857c0 1.042.334 1.898 1.004 2.567.67.67 1.525 1.005 2.567 1.005h50c1.042 0 1.897-.335 2.567-1.005.67-.67 1.004-1.525 1.004-2.567Zm-14.285-100V21.714c0-1.041-.335-1.897-1.005-2.567-.67-.67-1.525-1.004-2.567-1.004H75.286c-1.042 0-1.898.335-2.567 1.004-.67.67-1.005 1.526-1.005 2.567v17.857c0 1.042.335 1.898 1.005 2.567.67.67 1.525 1.005 2.567 1.005h21.428c1.042 0 1.898-.335 2.567-1.005.67-.67 1.005-1.525 1.005-2.567ZM171.714 86c0 15.55-3.832 29.892-11.495 43.025-7.664 13.132-18.062 23.53-31.194 31.194-13.133 7.663-27.474 11.495-43.025 11.495-15.55 0-29.892-3.832-43.025-11.495-13.132-7.664-23.53-18.062-31.194-31.194C4.118 115.892.286 101.55.286 86c0-15.55 3.832-29.892 11.495-43.025 7.664-13.132 18.062-23.53 31.194-31.194C56.108 4.118 70.45.286 86 .286c15.55 0 29.892 3.832 43.025 11.495 13.132 7.664 23.53 18.062 31.194 31.194C167.882 56.108 171.714 70.45 171.714 86Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/warning.svg.js*/
amis.define('c3b5544', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 150 138', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M81.07 2.48a12.5 12.5 0 0 1 4.855 4.853l62.092 111.763a12.5 12.5 0 0 1-10.934 18.57H12.917a12.502 12.502 0 0 1-10.93-18.57L64.076 7.333C67.428 1.3 75.037-.873 81.071 2.48ZM75 13.403 12.913 125.167h124.17L75 13.404Zm6.25 86.763v12.5h-12.5v-12.5h12.5Zm0-53.992v45.658h-12.5V46.175h12.5Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/warning-mark.svg.js*/
amis.define('6ccec86', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
o = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return o(
'svg',
l({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = o('g', { stroke: 'currentColor', fill: 'none', fillRule: 'evenodd' }, o('path', { d: 'M5.5 2.5h1v5h-1zM5.5 9.5h1v1h-1z' })))
)
}
}) /*!node_modules/amis-ui/lib/icons/schedule.svg.js*/
amis.define('7423386', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 176 176', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i(
'g',
{ fill: 'currentColor' },
i('path', {
d: 'M88 .46C39.962.46.66 39.762.66 87.8c0 48.038 39.302 87.34 87.34 87.34 48.037 0 87.34-39.302 87.34-87.34C175.34 39.763 136.038.46 88 .46Zm0 157.213c-38.425 0-69.873-31.44-69.873-69.873 0-38.433 31.448-69.872 69.873-69.872 38.425 0 69.873 31.439 69.873 69.872S126.425 157.673 88 157.673Z'
}),
i('path', { d: 'M92.367 44.13H79.266v52.404l45.419 27.95 6.985-11.352L92.367 89.55z' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/home.svg.js*/
amis.define('e3f2807', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 200 189', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M195.851 92.925 110.601 7.75 104.914 2a6.95 6.95 0 0 0-9.8 0L4.15 92.925a14.104 14.104 0 0 0-4.15 10.15c.157 7.782 6.53 13.998 14.313 13.962h9.375v71.85h152.625v-71.85h9.575c3.762 0 7.312-1.475 9.987-4.137 2.675-2.675 4.125-6.225 4.125-10 0-3.75-1.475-7.3-4.15-9.975Zm-83.5 80.087h-24.7v-45h24.7v45Zm48.075-71.85v71.85h-33.95v-50.3a8.825 8.825 0 0 0-8.825-8.825h-35.3a8.825 8.825 0 0 0-8.825 8.826v50.3h-33.95v-71.85H18.401L100.026 19.6l5.088 5.1 76.5 76.462h-21.188Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/folder.svg.js*/
amis.define('db70a14', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
a = e('ac704b9'),
l = (a.default || a).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return l(
'svg',
i({ viewBox: '0 0 200 168', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = l(
'g',
{ fill: 'currentFolder' },
l('path', {
d: 'M166.667 167.333H8.333C3.333 167.333 0 164 0 159V9C0 4 3.333.667 8.333.667h58.334C71.667.667 75 4 75 9v8.333h91.667c5 0 8.333 3.334 8.333 8.334V59c0 5-3.333 8.333-8.333 8.333S158.333 64 158.333 59V34H66.667c-5 0-8.334-3.333-8.334-8.333v-8.334H16.667v133.334h150c5 0 8.333 3.333 8.333 8.333s-3.333 8.333-8.333 8.333Z'
}),
l('path', {
d: 'M166.667 167.333H8.333c-2.5 0-5-.833-6.666-3.333C0 161.5 0 159.833 0 157.333l25-100c.833-4.166 4.167-6.666 8.333-6.666h158.334c2.5 0 5 .833 6.666 3.333C200 56.5 200 58.167 200 60.667l-25 100c-.833 4.166-4.167 6.666-8.333 6.666Zm-147.5-16.666H160l20.833-83.334H40l-20.833 83.334Z'
})
))
)
}
}) /*!node_modules/amis-ui/lib/icons/sort-default.svg.js*/
amis.define('d6c8687', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 7 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = c(
'g',
{ fill: 'currentColor' },
c('path', {
d: 'm3.535 0-.707.706L0 3.534l.707.708 2.328-2.329v3.122h1V1.913l2.328 2.33.707-.709L4.242.706zM3.035 7.035v3.12L.708 7.829 0 8.535l2.828 2.828.707.708.708-.708 2.828-2.828-.708-.707-2.327 2.328V7.035z'
})
))
)
}
}) /*!node_modules/amis-ui/lib/icons/sort-asc.svg.js*/
amis.define('885516e', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 7 10', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'm3.5 0-.7.703L0 3.514l.7.703 2.305-2.314V10h.99V1.903L6.3 4.217l.7-.703L4.2.703z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/sort-desc.svg.js*/
amis.define('5033f5a', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 7 10', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'm3.5 10-.7-.703L0 6.486l.7-.703 2.305 2.314V0h.99v8.097L6.3 5.783l.7.703-2.8 2.811z', fill: 'currentColor' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/setting.svg.js*/
amis.define('f735359', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
l = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return l(
'svg',
o({ viewBox: '0 0 196 200', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = l('path', {
d: 'M170.89 170.22c-2.881-1.067-4.91-1.707-6.83-2.454-5.87-2.241-11.526-4.803-17.502-6.83-1.708-.534-4.163-.32-5.763.533a91.14 91.14 0 0 0-12.06 7.044c-1.28.854-2.348 2.775-2.668 4.375-1.28 7.044-2.241 14.194-3.095 21.345-.533 4.055-2.454 5.87-6.617 5.763a2117.107 2117.107 0 0 0-36.818 0c-4.056 0-6.19-1.601-6.724-5.657-.96-7.15-2.134-14.194-2.988-21.344-.32-2.454-1.174-3.949-3.522-5.123-3.948-1.92-7.47-4.589-11.419-6.51-1.387-.747-3.522-1.067-5.016-.533-6.937 2.454-13.66 5.23-20.49 7.897-4.91 1.921-6.297 1.494-9.072-3.201-6.083-10.352-12.06-20.704-18.035-31.056-2.775-4.803-2.669-5.977 1.707-9.392 5.763-4.589 11.633-8.964 17.289-13.66 1.067-.854 1.814-2.775 1.814-4.162.214-3.949-.64-8.111 0-11.953.747-4.162-.96-6.297-3.949-8.538-5.336-3.842-10.245-8.11-15.474-11.952-3.095-2.348-3.842-4.803-1.814-8.218 6.51-10.992 12.913-22.091 19.316-33.19 1.814-3.095 4.162-3.736 7.47-2.455 7.044 2.775 14.088 5.656 21.238 8.218 1.494.533 3.842.213 5.336-.534 4.056-2.028 7.684-4.696 11.74-6.723 2.134-1.068 2.881-2.348 3.094-4.483.961-7.257 2.135-14.514 3.095-21.77C73.453 1.493 75.695 0 79.643 0c12.273.107 24.546.107 36.82 0 3.841 0 5.976 1.6 6.402 5.443.961 7.15 2.135 14.194 2.989 21.344.32 2.668 1.28 4.269 3.842 5.443 3.735 1.707 7.257 3.842 10.672 6.19 2.24 1.6 4.162 1.6 6.616.533 6.617-2.775 13.34-5.23 20.064-8.004 3.735-1.494 6.297-.747 8.324 2.882 6.083 10.778 12.487 21.45 18.677 32.123 2.454 4.269 2.134 5.656-1.815 8.75-5.656 4.376-11.312 8.859-17.075 13.234-1.921 1.494-2.455 2.882-2.241 5.336.427 4.483-.107 9.072.106 13.554.107 1.6.854 3.522 2.028 4.482 5.656 4.696 11.526 9.072 17.289 13.554 3.949 3.095 4.162 4.482 1.708 8.751a3226.595 3226.595 0 0 1-18.997 32.443c-1.067 1.921-2.881 2.988-4.162 4.162Zm-73.21-35.004c19.316.107 35.324-15.582 35.431-34.685.106-19.636-15.475-35.538-34.898-35.645C78.79 64.78 62.78 80.575 62.78 99.998c-.106 19.21 15.688 35.111 34.898 35.218Z',
fill: 'currentColor',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/plus-cicle.svg.js*/
amis.define('fedea95', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 163 163', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'M81.75.5C36.905.569.569 36.905.5 81.75c.069 44.845 36.405 81.181 81.25 81.25 44.845-.069 81.181-36.405 81.25-81.25C162.931 36.905 126.595.569 81.75.5Zm0 12.5c38.037 0 68.75 30.712 68.75 68.75 0 38.037-30.713 68.75-68.75 68.75A68.663 68.663 0 0 1 13 81.75C13 43.712 43.712 13 81.75 13ZM75.5 38v37.5H38V88h37.5v37.5H88V88h37.5V75.5H88V38H75.5Z',
fill: '#000',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/plus-fine.svg.js*/
amis.define('667a07b', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = o('path', { d: 'M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z', fill: 'currentColor', fillRule: 'nonzero' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/ellipsis-v.svg.js*/
amis.define('42e2082', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
o = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return o(
'svg',
i({ viewBox: '0 0 26 126', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = o('path', {
d: 'M13 .5C6.125.5.5 6.125.5 13S6.125 25.5 13 25.5 25.5 19.875 25.5 13 19.875.5 13 .5Zm0 50C6.125 50.5.5 56.125.5 63S6.125 75.5 13 75.5 25.5 69.875 25.5 63 19.875 50.5 13 50.5Zm0 50C6.125 100.5.5 106.125.5 113s5.625 12.5 12.5 12.5 12.5-5.625 12.5-12.5-5.625-12.5-12.5-12.5Z',
fill: 'currentColor',
fillRule: 'nonzero'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/expand-alt.svg.js*/
amis.define('d2f1262', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var c,
a = e('ac704b9'),
l = (a.default || a).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return l(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 448 512', className: 'icon' }, e),
c ||
(c = l('path', {
fill: 'currentColor',
d: 'M212.686 315.314 120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/compress-alt.svg.js*/
amis.define('7297ff2', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var c,
a = e('ac704b9'),
l = (a.default || a).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return l(
'svg',
i({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 448 512', className: 'icon' }, e),
c ||
(c = l('path', {
fill: 'currentColor',
d: 'M4.686 427.314 104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686 344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/transparent.svg.js*/
amis.define('1747ba4', function (t, e, a, n) {
'use strict'
Object.defineProperty(e, '__esModule', { value: !0 }), t('ac704b9')
var r,
i,
s = t('ac704b9'),
f = (s.default || s).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (t) {
for (var e = 1; e < arguments.length; e++) {
var a = arguments[e]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (t[n] = a[n])
}
return t
}),
l.apply(this, arguments)
)
}
;(s.default || s).Fragment
e.default = function (t) {
return f(
'svg',
l({ xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, t),
r ||
(r = f(
'defs',
null,
f(
'pattern',
{ id: 'transparent_svg__a', width: 20, height: 20, patternUnits: 'userSpaceOnUse' },
f('path', { opacity: 0.1, d: 'M0 0h10v10H0z' }),
f('path', { fill: '#fff', d: 'M10 0h10v10H10z' }),
f('path', { opacity: 0.1, d: 'M10 10h10v10H10z' }),
f('path', { fill: '#fff', d: 'M0 10h10v10H0z' })
)
)),
i || (i = f('rect', { fill: 'url(#transparent_svg__a)', width: '100%', height: '100%' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/loading-outline.svg.js*/
amis.define('3669064', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function o() {
return (
(o = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
o.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
o({ viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg', fill: 'currentColor', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/star.svg.js*/
amis.define('975789d', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
l = e('ac704b9'),
i = (l.default || l).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
c.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return i(
'svg',
c({ viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = i('path', {
d: 'm3.991 3.57-2.485.36a1 1 0 0 0-.554 1.706L2.75 7.389l-.425 2.477a1 1 0 0 0 1.45 1.054L6 9.75l2.224 1.17a1 1 0 0 0 1.451-1.055L9.25 7.389l1.798-1.752a1 1 0 0 0-.554-1.706L8.008 3.57 6.897 1.317a1 1 0 0 0-1.794 0L3.991 3.57Z',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/alert-success.svg.js*/
amis.define('9401312', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
i = (l.default || l).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
c.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return i(
'svg',
c({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', fill: 'currentColor', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'm449.856 706.56-45.44-45.056.128-.064L268.16 526.016l45.12-45.44L449.6 616.064 720.192 343.68l45.376 45.056-315.712 317.888zM510.528 64A448 448 0 1 0 960 510.528 448 448 0 0 0 510.528 64z',
fill: '#30BF13'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/alert-info.svg.js*/
amis.define('5b49bc6', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', fill: 'currentColor', className: 'icon' }, e),
a || (a = i('path', { d: 'M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm32 354.944h-64V768h64V418.944zM512 256a38.4 38.4 0 1 0-.128 76.672A38.4 38.4 0 0 0 512 256z', fill: '#2468F2' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/alert-warning.svg.js*/
amis.define('ffca630', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', fill: 'currentColor', className: 'icon' }, e),
r || (r = i('path', { d: 'M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 627.2a38.4 38.4 0 1 0 0 76.8 38.4 38.4 0 0 0 0-76.8zM544 256h-64v349.12h64V256z', fill: '#FF9326' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/alert-danger.svg.js*/
amis.define('503ffa7', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
i = (l.default || l).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
c.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return i(
'svg',
c({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 1024 1024', fill: 'currentColor', className: 'icon' }, e),
a ||
(a = i('path', {
d: 'M667.904 704.32 508.992 546.56 351.104 705.472l-45.376-45.056L463.552 501.44 304.64 343.488l45.12-45.376 158.912 157.824L666.56 297.088 712 342.144 553.984 501.12 712.96 659.008l-45.12 45.44zM510.528 64a448 448 0 1 0 2.944 896 448 448 0 0 0-2.944-896z',
fill: '#F33E3E'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/function.svg.js*/
amis.define('4fd7613', function (e, c, t, a) {
'use strict'
Object.defineProperty(c, '__esModule', { value: !0 }), e('ac704b9')
var l,
n = e('ac704b9'),
r = (n.default || n).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var c = 1; c < arguments.length; c++) {
var t = arguments[c]
for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a])
}
return e
}),
i.apply(this, arguments)
)
}
;(n.default || n).Fragment
c.default = function (e) {
return r(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
l ||
(l = r('path', {
d: 'M6.855 1.437C7.72.883 9.146.984 9.828 1.061c.286.032.918.09.853.712-.052.496-.785.446-.98.446-.216 0-.435-.02-.653-.038l-.218-.016c-.906-.058-1.771.053-2.294 1.951L6.213 5.69h1.633c.3 0 .543.24.543.537a.54.54 0 0 1-.543.538H5.982l-1.467 7.132S4.374 15.043 3.662 15a.782.782 0 0 1-.07-.008A.533.533 0 0 1 3.5 15H1.467A.467.467 0 0 1 1 14.533v-.032c0-.242.183-.444.423-.466.517-.05.965-.13 1.347-.244.12-.036.223-.078.308-.126a.465.465 0 0 1 .182-.057l1.415-6.844H2.467a.535.535 0 0 1-.534-.491l.012.069.008-.019c.014-.016.037-.03.046-.05-.013-.015-.058-.03-.058-.047v.093l-.008-.046c.022-.462.214-.568.464-.582l.07-.002h2.441l.34-1.605c.242-1.136.74-2.091 1.607-2.647Zm7.879 4.441c.167.09.254.192.265.309.01.116-.036.23-.14.343l-1.964 2.108 1.937 2.63c.061.078.077.173.042.276-.03.105-.168.179-.35.275a.656.656 0 0 1-.488.06.613.613 0 0 1-.314-.23l-1.634-2.14-1.983 2.13c-.237.254-.506.291-.812.112-.126-.074-.356-.345-.384-.467-.026-.122.023-.25.15-.386l2.192-2.362-1.597-2.092c-.067-.096-.073-.208-.021-.335.05-.127.168-.202.295-.276a.798.798 0 0 1 .47-.095c.124.008.236.078.339.207l1.328 1.713 1.607-1.733c.139-.152.297-.206.449-.25.15-.042.45.113.613.203Z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/input-clear.svg.js*/
amis.define('70f7b48', function (e, t, c, l) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var n,
a = e('ac704b9'),
r = (a.default || a).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var l in c) Object.prototype.hasOwnProperty.call(c, l) && (e[l] = c[l])
}
return e
}),
i.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return r(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
n ||
(n = r('path', {
d: 'M512 39.385C250.092 39.385 39.385 250.092 39.385 512S250.092 984.615 512 984.615 984.615 773.908 984.615 512 773.908 39.385 512 39.385zm96.492 488.369 153.6 153.6c7.877 7.877 7.877 19.692 0 27.57l-55.138 55.138c-7.877 7.876-19.692 7.876-27.57 0l-153.6-153.6c-7.876-7.877-19.692-7.877-27.569 0l-153.6 153.6c-7.877 7.876-19.692 7.876-27.569 0l-55.138-55.139c-7.877-7.877-7.877-19.692 0-27.57l153.6-153.6c7.877-7.876 7.877-19.691 0-27.568l-155.57-155.57c-7.876-7.877-7.876-19.692 0-27.569l55.139-55.138c7.877-7.877 19.692-7.877 27.57 0l155.568 155.569c7.877 7.877 19.693 7.877 27.57 0l153.6-153.6c7.877-7.877 19.692-7.877 27.569 0l55.138 55.138c7.877 7.877 7.877 19.693 0 27.57l-153.6 153.6c-5.907 7.877-5.907 19.692 0 27.569z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/slider-handle-icon.svg.js*/
amis.define('a32e198', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
i = e('ac704b9'),
l = (i.default || i).createElement
function s() {
return (
(s = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
s.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return l(
'svg',
s({ viewBox: '0 0 6 4', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r || (r = l('path', { d: 'M1.5 0v4h-1V0h1Zm2 0v4h-1V0h1Zm2 0v4h-1V0h1Z', fill: 'transparent', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/trash.svg.js*/
amis.define('c358d15', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = c('path', {
d: 'M14 3.499V4.5h-1.503l.001 10h-9l-.001-10H2V3.499h12ZM11.498 4.5H4.497v9h7.001v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM9.999 1.5v.999H5.998V1.5h4.001Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/menu.svg.js*/
amis.define('7c350e6', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r = e('ac704b9'),
s = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
t.default = function (e) {
return s(
'svg',
i({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
a ||
(a = s('path', {
d: 'M549.624 214.626H113.648c-18.1 0-32.84-14.74-32.84-32.84 0-18.101 14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.739 32.84 32.84-.13 18.1-14.869 32.84-32.97 32.84zm0 330.99H113.648c-18.1 0-32.84-14.74-32.84-32.84 0-18.101 14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.739 32.84 32.84-.13 18.1-14.869 32.84-32.97 32.84zm0 330.473H113.648c-18.1 0-32.84-14.74-32.84-32.84s14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.738 32.84 32.84s-14.869 32.84-32.97 32.84zM932.59 659.006c-12.8-12.8-33.616-12.8-46.416 0L781.446 763.733V182.044c0-18.1-14.739-32.84-32.84-32.84-18.1 0-32.84 14.74-32.84 32.84v661.463c0 18.101 14.74 32.84 32.84 32.84 8.016 0 15.386-2.844 21.075-7.628.905-.776 162.78-163.167 162.78-163.167 12.929-12.8 12.929-33.746.129-46.546zm0 0'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/user-remove.svg.js*/
amis.define('31bb74c', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var i,
l = e('ac704b9'),
c = (l.default || l).createElement
function a() {
return (
(a = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
a.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
a({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
i || (i = c('g', { fill: 'none', fillRule: 'evenodd' }, c('circle', { fill: '#F6654D', cx: 8, cy: 8, r: 8 }), c('rect', { fill: '#FFF', x: 4, y: 7, width: 8, height: 2, rx: 0.5 })))
)
}
}) /*!node_modules/amis-ui/lib/icons/role.svg.js*/
amis.define('6d04631', function (e, r, n, o) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('ac704b9')
var t,
i = e('ac704b9'),
l = (i.default || i).createElement
function a() {
return (
(a = Object.assign
? Object.assign.bind()
: function (e) {
for (var r = 1; r < arguments.length; r++) {
var n = arguments[r]
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o])
}
return e
}),
a.apply(this, arguments)
)
}
;(i.default || i).Fragment
r.default = function (e) {
return l(
'svg',
a({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
t ||
(t = l(
'g',
{ fill: 'none', fillRule: 'evenodd' },
l('path', { fillOpacity: 0.01, fill: 'currentColor', fillRule: 'nonzero', d: 'M0 0h16v16H0z' }),
l('circle', { stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round', cx: 8, cy: 4, r: 2.667 }),
l('path', { d: 'M14 14.667a6 6 0 0 0-12 0', stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' }),
l('path', { stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 14.667 9.333 13 8 8.667 6.667 13z' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/department.svg.js*/
amis.define('57ce379', function (e, r, n, o) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('ac704b9')
var t,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var r = 1; r < arguments.length; r++) {
var n = arguments[r]
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
r.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
t ||
(t = i(
'g',
{ fill: 'none', fillRule: 'evenodd' },
i('path', { fillOpacity: 0.01, fill: 'currentColor', fillRule: 'nonzero', d: 'M0 0h16v16H0z' }),
i('circle', { stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round', cx: 4.667, cy: 9.667, r: 1.667 }),
i('circle', { stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round', cx: 11.333, cy: 9.667, r: 1.667 }),
i('circle', { stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round', cx: 8, cy: 3, r: 1.667 }),
i('path', {
d: 'M8 14.667a3.333 3.333 0 0 0-6.667 0M14.667 14.667a3.333 3.333 0 0 0-6.667 0M11.333 8a3.333 3.333 0 0 0-6.666 0',
stroke: 'currentColor',
strokeLinecap: 'round',
strokeLinejoin: 'round'
})
))
)
}
}) /*!node_modules/amis-ui/lib/icons/post.svg.js*/
amis.define('e51aeb6', function (e, r, o, n) {
'use strict'
Object.defineProperty(r, '__esModule', { value: !0 }), e('ac704b9')
var t,
a = e('ac704b9'),
i = (a.default || a).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var r = 1; r < arguments.length; r++) {
var o = arguments[r]
for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(a.default || a).Fragment
r.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
t ||
(t = i(
'g',
{ fill: 'none', fillRule: 'evenodd' },
i('path', { fillOpacity: 0.01, fill: 'currentColor', fillRule: 'nonzero', d: 'M0 0h16v16H0z' }),
i('path', { d: 'M6.333 6.667a2.333 2.333 0 1 0 0-4.667 2.333 2.333 0 0 0 0 4.667Z', stroke: 'currentColor', fill: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' }),
i('path', { d: 'M10.87 2.333a2.332 2.332 0 0 1 0 4', stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' }),
i('path', {
d: 'M1.333 13.6v.4h10v-.4c0-1.493 0-2.24-.29-2.81a2.667 2.667 0 0 0-1.166-1.166c-.57-.29-1.317-.29-2.81-.29H5.6c-1.493 0-2.24 0-2.81.29-.502.256-.91.664-1.166 1.165-.29.57-.29 1.318-.29 2.811Z',
stroke: 'currentColor',
fill: 'currentColor',
strokeLinecap: 'round',
strokeLinejoin: 'round'
}),
i('path', { d: 'M14.667 14v-.4c0-1.493 0-2.24-.291-2.81a2.667 2.667 0 0 0-1.165-1.166', stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/dot.svg.js*/
amis.define('16eac21', function (e, t, r, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
c = e('ac704b9'),
i = (c.default || c).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t]
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(c.default || c).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = i(
'g',
{ fill: 'currentColor', fillRule: 'evenodd' },
i('circle', { cx: 8, cy: 8, r: 6 }),
i('circle', { cx: 8, cy: 8, r: 6, opacity: 0.5 }, i('animate', { attributeName: 'r', begin: 0, values: '6;8;6', dur: 1.5, repeatCount: 'indefinite' }))
))
)
}
}) /*!node_modules/amis-ui/lib/icons/steps-finsh.svg.js*/
amis.define('f42942a', function (e, t, n, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
i = e('ac704b9'),
l = (i.default || i).createElement
function c() {
return (
(c = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a])
}
return e
}),
c.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return l(
'svg',
c({ viewBox: '0 0 8 6', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r || (r = l('path', { d: 'm7.455.466.53.53-4.244 4.242-.53.531-2.65-2.652.53-.529 2.12 2.12z', fill: '#2468F2', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/invisible.svg.js*/
amis.define('bad9ae1', function (e, t, a, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var r,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
r ||
(r = c('path', {
d: 'M2.92 5c.24.56.57 1.078.977 1.535A5.655 5.655 0 0 0 8.14 8.44a5.664 5.664 0 0 0 4.212-1.87c.34-.375.628-.794.857-1.246l.13-.275.915.404a6.682 6.682 0 0 1-2.256 2.761l.959 1.66-.866.5-.95-1.645c-.763.384-1.6.622-2.473.69v1.553h-1V9.423a6.653 6.653 0 0 1-2.572-.715l-.947 1.64-.866-.5.96-1.662A6.694 6.694 0 0 1 3.15 7.2a6.638 6.638 0 0 1-1.022-1.527L2 5.393 2.92 5Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/date.svg.js*/
amis.define('bc42b92', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
h = e('ac704b9'),
l = (h.default || h).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(h.default || h).Fragment
t.default = function (e) {
return l(
'svg',
i({ viewBox: '0 0 13 12', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = l(
'g',
{ fill: 'none', fillRule: 'evenodd' },
l('path', { d: 'M-1.338-2h16v16h-16z' }),
l('path', { d: 'M4.662 0v1h4V0h1v1h3v11h-12V1h3V0h1Zm7 5h-10v6h10V5Zm-8-3h-2v2h10V2h-2v1h-1V2h-4v1h-1V2Z', fill: 'currentColor' })
))
)
}
}) /*!node_modules/amis-ui/lib/icons/down.svg.js*/
amis.define('90dd94c', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var o,
a = e('ac704b9'),
i = (a.default || a).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
l.apply(this, arguments)
)
}
;(a.default || a).Fragment
t.default = function (e) {
return i(
'svg',
l({ viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
o || (o = i('path', { stroke: 'currentColor', strokeLinejoin: 'round', d: 'm2.35 5.497 5.657 5.657 5.657-5.657', fill: 'none', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/right-double-arrow.svg.js*/
amis.define('2fc60ba', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 10 10', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a ||
(a = c('path', {
d: 'm.713.001 4.95 4.95-.003.003.003.003-4.95 4.95L0 9.194l4.24-4.24L0 .714.713.001Zm3.997 0 4.95 4.948-.004.004.004.003-4.95 4.95-.713-.714 4.24-4.239-4.24-4.24L4.71 0Z',
fill: 'currentColor',
fillRule: 'evenodd'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/new-edit.svg.js*/
amis.define('7a32cdf', function (e, t, n, r) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
l = e('ac704b9'),
c = (l.default || l).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t]
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}),
i.apply(this, arguments)
)
}
;(l.default || l).Fragment
t.default = function (e) {
return c(
'svg',
i({ viewBox: '0 0 13 14', xmlns: 'http://www.w3.org/2000/svg', className: 'icon' }, e),
a || (a = c('path', { d: 'M6.991.5v1H1v11h11V6.532h1V13.5H0V.5h6.991Zm5.255.122.707.708-6.364 6.364-.708-.707L12.245.622Z', fill: 'currentColor', fillRule: 'evenodd' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/rotate-left.svg.js*/
amis.define('7dcbe15', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r,
i = e('ac704b9'),
s = (i.default || i).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return s(
'svg',
l({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
a || (a = s('path', { d: 'M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z' })),
r ||
(r = s('path', {
d: 'M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8 11 40.7 14 82.7 8.9 124.8-.7 5.4-1.4 10.8-2.4 16.1h74.9c14.8-103.6-11.3-213-81-302.3z'
}))
)
}
}) /*!node_modules/amis-ui/lib/icons/rotate-right.svg.js*/
amis.define('71f34d5', function (e, t, c, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var a,
r,
i = e('ac704b9'),
s = (i.default || i).createElement
function l() {
return (
(l = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var c = arguments[t]
for (var n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
}
return e
}),
l.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (e) {
return s(
'svg',
l({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
a ||
(a = s('path', {
d: 'M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2-69.6 89.2-95.7 198.6-81.1 302.4h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z'
})),
r || (r = s('path', { d: 'M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/scale-origin.svg.js*/
amis.define('536b3d0', function (c, t, e, a) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), c('ac704b9')
var n,
r,
s,
i = c('ac704b9'),
o = (i.default || i).createElement
function h() {
return (
(h = Object.assign
? Object.assign.bind()
: function (c) {
for (var t = 1; t < arguments.length; t++) {
var e = arguments[t]
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (c[a] = e[a])
}
return c
}),
h.apply(this, arguments)
)
}
;(i.default || i).Fragment
t.default = function (c) {
return o(
'svg',
h({ className: 'icon', viewBox: '0 0 1024 1024', xmlns: 'http://www.w3.org/2000/svg' }, c),
n ||
(n = o('path', {
d: 'M316 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8zm196-50c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39zm0-140c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39z'
})),
r || (r = o('path', { d: 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z' })),
s || (s = o('path', { d: 'M648 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8z' }))
)
}
}) /*!node_modules/amis-ui/lib/icons/if.svg.js*/
amis.define('618334d', function (e, t, a, c) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }), e('ac704b9')
var n,
r = e('ac704b9'),
l = (r.default || r).createElement
function i() {
return (
(i = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var a = arguments[t]
for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (e[c] = a[c])
}
return e
}),
i.apply(this, arguments)
)
}
;(r.default || r).Fragment
t.default = function (e) {
return l(
'svg',
i({ className: 'icon', viewBox: '0 0 1194 1024', xmlns: 'http://www.w3.org/2000/svg' }, e),
n ||
(n = l('path', {
d: 'M545.877 227.84C596.224 44.373 689.237 88.747 774.571 88.747c14.506 0 67.413 4.266 70.826-32.427 5.12-45.227-40.96-49.493-61.44-52.053-49.493-5.12-152.746-12.8-215.04 27.306-63.146 40.96-98.986 110.934-116.053 193.707l-24.747 116.907h-98.133c-20.48 0-36.693 5.973-38.4 42.666 1.707 20.48 17.92 36.694 38.4 36.694h81.067L306.09 935.253s-27.307 83.627 31.573 87.04c52.053 3.414 62.293-80.213 62.293-80.213l105.814-520.533h134.826a39.68 39.68 0 0 0 0-79.36h-117.76l23.04-114.347zM182.613 338.176a39.253 39.253 0 0 0-46.933 29.867L1.707 969.643c-4.267 19.626-1.707 37.546 33.28 46.933 20.48 2.56 39.253-10.24 43.52-29.867l133.973-601.6c4.267-21.333-8.533-41.813-29.867-46.933zm108.288 43.69zm0 0v9.387c0-2.56.854-4.266.854-5.973 0-.853-.854-2.56-.854-3.413zm-134.57-189.44c0 32.427 26.453 58.88 58.88 58.88 32.426 0 58.88-26.453 58.88-58.88 0-32.426-26.454-58.88-58.88-58.88-32.427 0-58.88 26.454-58.88 58.88zm707.328 203.18a39.253 39.253 0 0 0-62.294-1.707c-4.266 5.12-106.666 121.173-117.76 299.52-10.24 176.64 57.174 296.96 59.734 302.08 7.68 13.653 20.48 21.333 33.28 22.186 9.386.854 19.626-2.56 28.16-9.386 19.626-17.067 24.746-50.347 11.946-74.24-.853-.854-53.76-97.28-45.226-234.667 8.533-134.827 87.893-226.987 89.6-228.693a61.44 61.44 0 0 0 2.56-75.094zm172.373 617.983c12.8 2.56 26.453-2.56 36.693-13.653 4.267-5.12 93.867-107.52 116.907-281.6 24.747-177.493-53.76-314.88-56.32-320-13.653-23.893-40.96-29.013-61.44-11.947-20.48 16.214-25.6 49.494-11.093 73.387.853 2.56 60.586 110.08 42.666 244.053-18.773 136.534-89.6 218.454-90.453 219.307-17.067 20.48-18.773 53.76-1.707 75.093 6.827 8.534 15.36 13.654 24.747 15.36z',
fill: 'currentColor'
}))
)
}
}) /*!node_modules/amis-ui/lib/components/icons.js*/
amis.define('09ae5b9', function (e, a, t, l) {
'use strict'
Object.defineProperty(a, '__esModule', { value: !0 })
var u = e('68b98b9'),
d = e('ac704b9'),
f = e('cb263ff'),
n = e('f4a0375'),
o = e('20e48b2'),
c = e('22023aa'),
s = e('0c2607c'),
r = e('5051693'),
i = e('c22b5b6'),
b = e('6cb7b31'),
g = e('8823ecb'),
v = e('2f70626'),
m = e('c2d1128'),
p = e('5ce364d'),
I = e('788e093'),
h = e('79167f8'),
w = e('3bfdc75'),
y = e('85be91c'),
M = e('eebe3d1'),
_ = e('0501b75'),
T = e('3059bd7'),
x = e('1c700cd'),
N = e('3c44a84'),
k = e('f5752ad'),
C = e('5d0db8d'),
E = e('f9fc0cd'),
D = e('5a48b21'),
P = e('aa0268f'),
B = e('c206272'),
L = e('10be5b1'),
O = e('5bcd9a4'),
A = e('71abbd4'),
R = e('0bc9ea8'),
j = e('a6a7953'),
H = e('6fde503'),
F = e('47e1395'),
S = e('2da5e34'),
U = e('ebcfdca'),
V = e('2b60461'),
q = e('7399bd8'),
z = e('5d1b461'),
W = e('5c7c936'),
G = e('56c0f45'),
J = e('296e2bb'),
K = e('02facc7'),
Q = e('8316a53'),
X = e('f2c7086'),
Y = e('c823956'),
Z = e('a075a89'),
$ = e('9d6a09f'),
ee = e('77beb86'),
ae = e('dde07c9'),
te = e('0fb3fa5'),
le = e('a8fa10d'),
ue = e('e7aaac2'),
de = e('cdbedbd'),
fe = e('21d3c89'),
ne = e('50cb858'),
oe = e('3be4f7e'),
ce = e('093673e'),
se = e('8f2d635'),
re = e('15ae0b6'),
ie = e('d2c53bb'),
be = e('c3b5544'),
ge = e('6ccec86'),
ve = e('7423386'),
me = e('e3f2807'),
pe = e('db70a14'),
Ie = e('d6c8687'),
he = e('885516e'),
we = e('5033f5a'),
ye = e('f735359'),
Me = e('fedea95'),
_e = e('667a07b'),
Te = e('42e2082'),
xe = e('d2f1262'),
Ne = e('7297ff2'),
ke = e('1747ba4'),
Ce = e('3669064'),
Ee = e('975789d'),
De = e('9401312'),
Pe = e('5b49bc6'),
Be = e('ffca630'),
Le = e('503ffa7'),
Oe = e('4fd7613'),
Ae = e('70f7b48'),
Re = e('a32e198'),
je = e('c358d15'),
He = e('7c350e6'),
Fe = e('31bb74c'),
Se = e('6d04631'),
Ue = e('57ce379'),
Ve = e('e51aeb6'),
qe = e('16eac21'),
ze = e('f42942a'),
We = e('bad9ae1'),
Ge = e('bc42b92'),
Je = e('90dd94c'),
Ke = e('2fc60ba'),
Qe = e('7a32cdf'),
Xe = e('7dcbe15'),
Ye = e('71f34d5'),
Ze = e('536b3d0'),
$e = e('618334d'),
ea = e('e98f234')
function aa(e) {
return e && 'object' == typeof e && 'default' in e ? e : { default: e }
}
var ta = aa(d),
la = aa(f),
ua = aa(ea),
da = e('ac704b9'),
fa = (da.default || da).createElement
;(da.default || da).Fragment
var na = fa(n.default, null),
oa = fa(s.default, null),
ca = fa(i.default, null),
sa = fa(b.default, null),
ra = fa(g.default, null),
ia = fa(v.default, null),
ba = fa(m.default, null),
ga = fa(p.default, null),
va = fa(I.default, null),
ma = fa(h.default, null),
pa = {}
function Ia(e) {
return pa[e]
}
function ha(e, a) {
pa[e] = a
}
ha('close', n.default),
ha('close-small', o.default),
ha('status-close', c.default),
ha('undo', s.default),
ha('undo-normal', r.default),
ha('full-screen', $.default),
ha('un-fullscreen', ee.default),
ha('redo', i.default),
ha('enter', b.default),
ha('volume', g.default),
ha('mute', v.default),
ha('play', m.default),
ha('pause', p.default),
ha('left-arrow', I.default),
ha('right-arrow', h.default),
ha('prev', I.default),
ha('next', h.default),
ha('check', M.default),
ha('plus', _.default),
ha('sub-plus', T.default),
ha('add', _.default),
ha('minus', x.default),
ha('pencil', N.default),
ha('view', k.default),
ha('remove', C.default),
ha('retry', E.default),
ha('upload', D.default),
ha('download', P.default),
ha('file', B.default),
ha('success', L.default),
ha('fail', O.default),
ha('warning', be.default),
ha('warning-mark', ge.default),
ha('search', A.default),
ha('back', R.default),
ha('move', j.default),
ha('info', H.default),
ha('info-circle', ie.default),
ha('location', F.default),
ha('drag-bar', S.default),
ha('reload', U.default),
ha('exchange', V.default),
ha('columns', q.default),
ha('calendar', z.default),
ha('clock', W.default),
ha('copy', ae.default),
ha('filter', te.default),
ha('column-filter', fe.default),
ha('caret', le.default),
ha('right-arrow-bold', ue.default),
ha('down-arrow-bold', de.default),
ha('zoom-in', ne.default),
ha('zoom-out', oe.default),
ha('question', ce.default),
ha('question-mark', se.default),
ha('window-restore', re.default),
ha('schedule', ve.default),
ha('home', me.default),
ha('folder', pe.default),
ha('sort-default', Ie.default),
ha('sort-asc', he.default),
ha('sort-desc', we.default),
ha('setting', ye.default),
ha('plus-cicle', Me.default),
ha('ellipsis-v', Te.default),
ha('expand-alt', xe.default),
ha('compress-alt', Ne.default),
ha('transparent', ke.default),
ha('loading-outline', Ce.default),
ha('star', Ee.default),
ha('alert-success', De.default),
ha('alert-info', Pe.default),
ha('alert-warning', Be.default),
ha('alert-danger', Le.default),
ha('alert-fail', Le.default),
ha('tree-down', G.default),
ha('function', Oe.default),
ha('input-clear', Ae.default),
ha('slider-handle', Re.default),
ha('cloud-upload', J.default),
ha('image', K.default),
ha('refresh', Q.default),
ha('trash', je.default),
ha('menu', He.default),
ha('user-remove', Fe.default),
ha('role', Se.default),
ha('department', Ue.default),
ha('post', Ve.default),
ha('dot', qe.default),
ha('drag', X.default),
ha('edit', Y.default),
ha('desk-empty', Z.default),
ha('invisible', We.default),
ha('plus-fine', _e.default),
ha('steps-finsh', ze.default),
ha('date', Ge.default),
ha('remove', C.default),
ha('invisible', We.default),
ha('down', Je.default),
ha('right-double-arrow', Ke.default),
ha('arrow-double-left', w.default),
ha('arrow-double-right', y.default),
ha('new-edit', Qe.default),
ha('rotate-left', Xe.default),
ha('rotate-right', Ye.default),
ha('scale-origin', Ze.default),
ha('if', $e.default),
(a.CloseIcon = n.default),
(a.UnDoIcon = s.default),
(a.ReDoIcon = i.default),
(a.EnterIcon = b.default),
(a.VolumeIcon = g.default),
(a.MuteIcon = v.default),
(a.PlayIcon = m.default),
(a.PauseIcon = p.default),
(a.LeftArrowIcon = I.default),
(a.RightArrowIcon = h.default),
(a.CheckIcon = M.default),
(a.PlusIcon = _.default),
(a.MinusIcon = x.default),
(a.PencilIcon = N.default),
(a.ReloadIcon = U.default),
(a.DownArrowBoldIcon = de.default),
(a.FunctionIcon = Oe.default),
(a.InputClearIcon = Ae.default),
(a.MenuIcon = He.default),
(a.UserRemove = Fe.default),
(a.Role = Se.default),
(a.Department = Ue.default),
(a.Post = Ve.default),
(a.RightDoubleArrowIcon = Ke.default),
(a.Icon = function (e) {
var a,
t = e.icon,
l = e.className,
f = e.classPrefix,
n = void 0 === f ? '' : f,
o = e.classNameProp,
c = e.iconContent,
s = e.vendor,
r = e.cx,
i = e.onClick,
b = e.onMouseEnter,
g = e.onMouseLeave,
v = e.onMouseOver,
m = e.onMouseOut,
p = e.onMouseDown,
I = e.onMouseUp,
h = e.onMouseMove,
w = e.onBlur,
y = e.onFocus,
M = e.onTouchStart,
_ = e.onTouchMove,
T = e.onTouchEnd,
x = e.onTouchCancel,
N = e.style,
k = e.testIdBuilder,
C = r || la.default
if (('undefined' != typeof jest && t && (c = ''), !t)) return null
var E = {
onClick: i,
onMouseEnter: b,
onMouseLeave: g,
onMouseOver: v,
onMouseOut: m,
onMouseDown: p,
onMouseUp: I,
onMouseMove: h,
onBlur: w,
onFocus: y,
onTouchStart: M,
onTouchMove: _,
onTouchEnd: T,
onTouchCancel: x
}
if (ta.default.isValidElement(t)) return ta.default.cloneElement(t, u.__assign(u.__assign(u.__assign({}, E), t.props || {}), { className: la.default(C(l, o), t.props.className), style: N }))
if (c) {
return fa(
'div',
u.__assign(
{},
E,
{
className: C(c, l, o),
ref: function (e) {
if (e) {
var a = getComputedStyle(e).getPropertyValue('content'),
t = /()/.exec(a)
if (t) {
var l = t[0].replace(/\\"/g, '"')
e.svgHTMLClone !== l && ((e.innerHTML = l), (e.svgHTMLClone = l), (e.style.display = ''))
}
}
},
style: N
},
null == k ? void 0 : k.getTestId()
)
)
}
var D = Ia(t)
if (D) return fa(D, u.__assign({}, E, { className: C(l, 'icon-'.concat(t), o), icon: t, style: N }, null == k ? void 0 : k.getTestId()))
if ((ua.default(t) && 'icon' === t.type && t.icon && (t = t.icon), ua.default(t) && 'string' == typeof t.id && t.id.startsWith('svg-'))) {
var P = t,
B = ''.concat(P.id.replace(/^svg-/, ''))
if (document.getElementById(B)) return fa('svg', u.__assign({}, E, { className: C('icon', 'icon-object', l, o), style: N }), fa('use', { xlinkHref: '#' + B }))
t = null === (a = P.svg) || void 0 === a ? void 0 : a.replace(/'/g, '')
}
if ('string' == typeof t && t.startsWith('