@pisell/common 0.0.15-1 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/es/business-components/colorInput/index.js +29 -25
  2. package/es/business-components/rechargeOption/index.js +72 -55
  3. package/es/business-components/selectTag/index.d.ts +1 -1
  4. package/es/business-components/selectTag/index.js +44 -36
  5. package/es/business-components/sortModal/index.d.ts +1 -1
  6. package/es/business-components/sortModal/index.js +19 -14
  7. package/es/business-components/statistics/index.js +23 -17
  8. package/es/business-components/tagModal/index.d.ts +1 -1
  9. package/es/business-components/tagModal/index.js +16 -12
  10. package/es/business-hooks/useModal/index.d.ts +1 -1
  11. package/es/business-hooks/useModal/index.js +11 -4
  12. package/es/business-hooks/useTagModal/index.d.ts +1 -2
  13. package/es/business-hooks/useTagModal/index.js +16 -12
  14. package/es/components/ColorPicker/index.js +6 -4
  15. package/es/components/DragSort/index.d.ts +1 -2
  16. package/es/components/DragSort/index.js +39 -28
  17. package/es/components/EditorPreview/index.d.ts +1 -1
  18. package/es/components/EditorPreview/index.js +8 -3
  19. package/es/components/Iconfont/index.js +8 -2
  20. package/es/components/agreement/Detail/index.d.ts +2 -2
  21. package/es/components/agreement/Detail/index.js +15 -12
  22. package/es/components/agreement/index.js +18 -14
  23. package/es/components/avatar/index.js +8 -2
  24. package/es/components/button/index.d.ts +2 -3
  25. package/es/components/button/index.js +9 -3
  26. package/es/components/card/index.d.ts +1 -1
  27. package/es/components/card/index.js +11 -5
  28. package/es/components/checkbox/index.d.ts +2 -3
  29. package/es/components/checkbox/index.js +9 -3
  30. package/es/components/datePicker/index.d.ts +1 -2
  31. package/es/components/datePicker/index.js +8 -2
  32. package/es/components/index.d.ts +1 -1
  33. package/es/components/input/index.d.ts +5 -6
  34. package/es/components/input/index.js +12 -6
  35. package/es/components/inputNumber/index.d.ts +1 -2
  36. package/es/components/inputNumber/index.js +8 -2
  37. package/es/components/pagination/index.js +8 -1
  38. package/es/components/radio/index.d.ts +2 -3
  39. package/es/components/radio/index.js +9 -3
  40. package/es/components/select/index.d.ts +6 -2
  41. package/es/components/select/index.js +13 -2
  42. package/es/components/switch/index.js +8 -1
  43. package/es/hooks/useTableModal/index.d.ts +1 -1
  44. package/es/hooks/useTableModal/index.js +5 -2
  45. package/lib/business-components/selectTag/index.d.ts +1 -1
  46. package/lib/business-components/sortModal/index.d.ts +1 -1
  47. package/lib/business-components/tagModal/index.d.ts +1 -1
  48. package/lib/business-hooks/useModal/index.d.ts +1 -1
  49. package/lib/business-hooks/useTagModal/index.d.ts +1 -2
  50. package/lib/components/DragSort/index.d.ts +1 -2
  51. package/lib/components/DragSort/index.js +5 -6
  52. package/lib/components/EditorPreview/index.d.ts +1 -1
  53. package/lib/components/EditorPreview/index.js +1 -12
  54. package/lib/components/agreement/Detail/index.d.ts +2 -2
  55. package/lib/components/agreement/Detail/index.js +2 -2
  56. package/lib/components/button/index.d.ts +2 -3
  57. package/lib/components/button/index.js +2 -13
  58. package/lib/components/card/index.d.ts +1 -1
  59. package/lib/components/card/index.js +1 -2
  60. package/lib/components/checkbox/index.d.ts +2 -3
  61. package/lib/components/checkbox/index.js +2 -13
  62. package/lib/components/datePicker/index.d.ts +1 -2
  63. package/lib/components/datePicker/index.js +1 -12
  64. package/lib/components/index.d.ts +1 -1
  65. package/lib/components/input/index.d.ts +5 -6
  66. package/lib/components/input/index.js +5 -16
  67. package/lib/components/inputNumber/index.d.ts +1 -2
  68. package/lib/components/inputNumber/index.js +1 -12
  69. package/lib/components/radio/index.d.ts +2 -3
  70. package/lib/components/radio/index.js +2 -13
  71. package/lib/components/select/index.d.ts +6 -2
  72. package/lib/components/select/index.js +6 -12
  73. package/lib/hooks/useTableModal/index.d.ts +1 -1
  74. package/package.json +7 -17
  75. package/build/lowcode/assets-daily.json +0 -67
  76. package/build/lowcode/assets-dev.json +0 -67
  77. package/build/lowcode/assets-prod.json +0 -67
  78. package/build/lowcode/designer.html +0 -302
  79. package/build/lowcode/index.html +0 -304
  80. package/build/lowcode/index.js +0 -1
  81. package/build/lowcode/meta.js +0 -1
  82. package/build/lowcode/preview.css +0 -1
  83. package/build/lowcode/preview.html +0 -33
  84. package/build/lowcode/preview.js +0 -27
  85. package/build/lowcode/render/default/view.js +0 -20
  86. package/build/lowcode/view.js +0 -20
  87. package/es/lowcode/button/index.d.ts +0 -5
  88. package/es/lowcode/button/index.js +0 -6
  89. package/es/lowcode/checkbox/index.d.ts +0 -10
  90. package/es/lowcode/checkbox/index.js +0 -11
  91. package/es/lowcode/index.d.ts +0 -4
  92. package/es/lowcode/index.js +0 -2
  93. package/lib/lowcode/button/index.d.ts +0 -5
  94. package/lib/lowcode/button/index.js +0 -42
  95. package/lib/lowcode/checkbox/index.d.ts +0 -10
  96. package/lib/lowcode/checkbox/index.js +0 -42
  97. package/lib/lowcode/index.d.ts +0 -4
  98. package/lib/lowcode/index.js +0 -42
  99. package/lowcode/button/meta.ts +0 -324
  100. package/lowcode/checkbox/meta.ts +0 -92
@@ -1,302 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
- <title>DEMO 预览</title>
8
- <style>
9
- body {
10
- font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial,
11
- PingFang SC-Light, Microsoft YaHei;
12
- font-size: 12px;
13
-
14
- * {
15
- box-sizing: border-box;
16
- }
17
- }
18
-
19
- body,
20
- #lce-container {
21
- position: fixed;
22
- left: 0;
23
- right: 0;
24
- bottom: 0;
25
- top: 0;
26
- box-sizing: border-box;
27
- padding: 0;
28
- margin: 0;
29
- overflow: hidden;
30
- text-rendering: optimizeLegibility;
31
- -webkit-user-select: none;
32
- -webkit-user-drag: none;
33
- -webkit-text-size-adjust: none;
34
- -webkit-touch-callout: none;
35
- -webkit-font-smoothing: antialiased;
36
- }
37
-
38
- html {
39
- min-width: 1024px;
40
- }
41
- </style>
42
- </head>
43
-
44
- <body>
45
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/css/engine-core.css" />
46
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/css/engine-ext.css" />
47
- <link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.css" />
48
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
49
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
50
- <div id="lce-container"></div>
51
- <script src="https://g.alicdn.com/code/lib/rax/1.1.0/rax.umd.min.js"></script>
52
- <script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
53
- <script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
54
- <script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
55
- <script>
56
- React.PropTypes = PropTypes;
57
- </script>
58
- <script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
59
- <script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
60
- <script src="https://g.alicdn.com/code/lib/alifd__next/1.23.20/next-with-locales.min.js"></script>
61
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/js/engine-core.js"></script>
62
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/js/engine-ext.js"></script>
63
- <script>
64
- if (!window.AliLowCodeEngine.common) {
65
- window.AliLowCodeEngine.common = {
66
- designerCabin: window.AliLowCodeEngine.designerCabin,
67
- editorCabin: window.AliLowCodeEngine.editorCabin,
68
- skeletonCabin: window.AliLowCodeEngine.skeletonCabin,
69
- utils: window.AliLowCodeEngine.utils,
70
- };
71
- }
72
- </script>
73
- <script src="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.js"></script>
74
- <script type="text/javascript" charset="utf-8" src="./index.js"></script>
75
- <script>
76
- (function (factory) {
77
- if (typeof define === 'function' && define.amd) {
78
- define([], factory);
79
- } else if (typeof module === 'object' && module.exports) {
80
- module.exports = factory();
81
- } else {
82
- window.idleCallbackShim = factory();
83
- }
84
- })(function () {
85
- 'use strict';
86
- var scheduleStart, throttleDelay, lazytimer, lazyraf;
87
- var root =
88
- typeof window != 'undefined' ? window : typeof global != undefined ? global : this || {};
89
- var requestAnimationFrame =
90
- (root.cancelRequestAnimationFrame && root.requestAnimationFrame) || setTimeout;
91
- var cancelRequestAnimationFrame = root.cancelRequestAnimationFrame || clearTimeout;
92
- var tasks = [];
93
- var runAttempts = 0;
94
- var isRunning = false;
95
- var remainingTime = 7;
96
- var minThrottle = 35;
97
- var throttle = 125;
98
- var index = 0;
99
- var taskStart = 0;
100
- var tasklength = 0;
101
- var IdleDeadline = {
102
- get didTimeout() {
103
- return false;
104
- },
105
- timeRemaining: function () {
106
- var timeRemaining = remainingTime - (Date.now() - taskStart);
107
- return Math.max(0, timeRemaining);
108
- },
109
- };
110
- var setInactive = debounce(function () {
111
- remainingTime = 22;
112
- throttle = 66;
113
- minThrottle = 0;
114
- });
115
-
116
- function debounce(fn) {
117
- var id, timestamp;
118
- var wait = 99;
119
- var check = function () {
120
- var last = Date.now() - timestamp;
121
-
122
- if (last < wait) {
123
- id = setTimeout(check, wait - last);
124
- } else {
125
- id = null;
126
- fn();
127
- }
128
- };
129
- return function () {
130
- timestamp = Date.now();
131
- if (!id) {
132
- id = setTimeout(check, wait);
133
- }
134
- };
135
- }
136
-
137
- function abortRunning() {
138
- if (isRunning) {
139
- if (lazyraf) {
140
- cancelRequestAnimationFrame(lazyraf);
141
- }
142
- if (lazytimer) {
143
- clearTimeout(lazytimer);
144
- }
145
- isRunning = false;
146
- }
147
- }
148
-
149
- function onInputorMutation() {
150
- if (throttle != 125) {
151
- remainingTime = 7;
152
- throttle = 125;
153
- minThrottle = 35;
154
-
155
- if (isRunning) {
156
- abortRunning();
157
- scheduleLazy();
158
- }
159
- }
160
- setInactive();
161
- }
162
-
163
- function scheduleAfterRaf() {
164
- lazyraf = null;
165
- lazytimer = setTimeout(runTasks, 0);
166
- }
167
-
168
- function scheduleRaf() {
169
- lazytimer = null;
170
- requestAnimationFrame(scheduleAfterRaf);
171
- }
172
-
173
- function scheduleLazy() {
174
- if (isRunning) {
175
- return;
176
- }
177
- throttleDelay = throttle - (Date.now() - taskStart);
178
-
179
- scheduleStart = Date.now();
180
-
181
- isRunning = true;
182
-
183
- if (minThrottle && throttleDelay < minThrottle) {
184
- throttleDelay = minThrottle;
185
- }
186
-
187
- if (throttleDelay > 9) {
188
- lazytimer = setTimeout(scheduleRaf, throttleDelay);
189
- } else {
190
- throttleDelay = 0;
191
- scheduleRaf();
192
- }
193
- }
194
-
195
- function runTasks() {
196
- var task, i, len;
197
- var timeThreshold = remainingTime > 9 ? 9 : 1;
198
- taskStart = Date.now();
199
- isRunning = false;
200
-
201
- lazytimer = null;
202
-
203
- if (runAttempts > 2 || taskStart - throttleDelay - 50 < scheduleStart) {
204
- for (
205
- i = 0, len = tasks.length;
206
- i < len && IdleDeadline.timeRemaining() > timeThreshold;
207
- i++
208
- ) {
209
- task = tasks.shift();
210
- tasklength++;
211
- if (task) {
212
- task(IdleDeadline);
213
- }
214
- }
215
- }
216
-
217
- if (tasks.length) {
218
- scheduleLazy();
219
- } else {
220
- runAttempts = 0;
221
- }
222
- }
223
-
224
- function requestIdleCallbackShim(task) {
225
- index++;
226
- tasks.push(task);
227
- scheduleLazy();
228
- return index;
229
- }
230
-
231
- function cancelIdleCallbackShim(id) {
232
- var index = id - 1 - tasklength;
233
- if (tasks[index]) {
234
- tasks[index] = null;
235
- }
236
- }
237
-
238
- if (!root.requestIdleCallback || !root.cancelIdleCallback) {
239
- root.requestIdleCallback = requestIdleCallbackShim;
240
- root.cancelIdleCallback = cancelIdleCallbackShim;
241
-
242
- if (root.document && document.addEventListener) {
243
- root.addEventListener('scroll', onInputorMutation, true);
244
- root.addEventListener('resize', onInputorMutation);
245
-
246
- document.addEventListener('focus', onInputorMutation, true);
247
- document.addEventListener('mouseover', onInputorMutation, true);
248
- ['click', 'keypress', 'touchstart', 'mousedown'].forEach(function (name) {
249
- document.addEventListener(name, onInputorMutation, { capture: true, passive: true });
250
- });
251
-
252
- if (root.MutationObserver) {
253
- new MutationObserver(onInputorMutation).observe(document.documentElement, {
254
- childList: true,
255
- subtree: true,
256
- attributes: true,
257
- });
258
- }
259
- }
260
- } else {
261
- try {
262
- root.requestIdleCallback(function () {}, { timeout: 0 });
263
- } catch (e) {
264
- (function (rIC) {
265
- var timeRemainingProto, timeRemaining;
266
- root.requestIdleCallback = function (fn, timeout) {
267
- if (timeout && typeof timeout.timeout == 'number') {
268
- return rIC(fn, timeout.timeout);
269
- }
270
- return rIC(fn);
271
- };
272
- if (
273
- root.IdleCallbackDeadline &&
274
- (timeRemainingProto = IdleCallbackDeadline.prototype)
275
- ) {
276
- timeRemaining = Object.getOwnPropertyDescriptor(
277
- timeRemainingProto,
278
- 'timeRemaining',
279
- );
280
- if (!timeRemaining || !timeRemaining.configurable || !timeRemaining.get) {
281
- return;
282
- }
283
- Object.defineProperty(timeRemainingProto, 'timeRemaining', {
284
- value: function () {
285
- return timeRemaining.get.call(this);
286
- },
287
- enumerable: true,
288
- configurable: true,
289
- });
290
- }
291
- })(root.requestIdleCallback);
292
- }
293
- }
294
-
295
- return {
296
- request: requestIdleCallbackShim,
297
- cancel: cancelIdleCallbackShim,
298
- };
299
- });
300
- </script>
301
- </body>
302
- </html>
@@ -1,304 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
- <title>DEMO 预览</title>
8
- <style>
9
- body {
10
- font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial,
11
- PingFang SC-Light, Microsoft YaHei;
12
- font-size: 12px;
13
-
14
- * {
15
- box-sizing: border-box;
16
- }
17
- }
18
-
19
- body,
20
- #lce-container {
21
- position: fixed;
22
- left: 0;
23
- right: 0;
24
- bottom: 0;
25
- top: 0;
26
- box-sizing: border-box;
27
- padding: 0;
28
- margin: 0;
29
- overflow: hidden;
30
- text-rendering: optimizeLegibility;
31
- -webkit-user-select: none;
32
- -webkit-user-drag: none;
33
- -webkit-text-size-adjust: none;
34
- -webkit-touch-callout: none;
35
- -webkit-font-smoothing: antialiased;
36
- }
37
-
38
- html {
39
- min-width: 1024px;
40
- }
41
- </style>
42
- </head>
43
-
44
- <body>
45
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/css/engine-core.css" />
46
- <link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/css/engine-ext.css" />
47
- <link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.css" />
48
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
49
- <link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
50
-
51
- <div id="lce-container"></div>
52
- <script src="https://g.alicdn.com/code/lib/rax/1.1.0/rax.umd.min.js"></script>
53
- <script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
54
- <script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
55
- <script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
56
- <script>
57
- React.PropTypes = PropTypes;
58
- </script>
59
- <script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
60
- <script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
61
- <script src="https://g.alicdn.com/code/lib/alifd__next/1.23.20/next-with-locales.min.js"></script>
62
-
63
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/js/engine-core.js"></script>
64
- <script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/js/engine-ext.js"></script>
65
- <script>
66
- if (!window.AliLowCodeEngine.common) {
67
- window.AliLowCodeEngine.common = {
68
- designerCabin: window.AliLowCodeEngine.designerCabin,
69
- editorCabin: window.AliLowCodeEngine.editorCabin,
70
- skeletonCabin: window.AliLowCodeEngine.skeletonCabin,
71
- utils: window.AliLowCodeEngine.utils,
72
- };
73
- }
74
- </script>
75
- <script src="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.js"></script>
76
- <script type="text/javascript" charset="utf-8" src="./index.js"></script>
77
- <script>
78
- (function (factory) {
79
- if (typeof define === 'function' && define.amd) {
80
- define([], factory);
81
- } else if (typeof module === 'object' && module.exports) {
82
- module.exports = factory();
83
- } else {
84
- window.idleCallbackShim = factory();
85
- }
86
- })(function () {
87
- 'use strict';
88
- var scheduleStart, throttleDelay, lazytimer, lazyraf;
89
- var root =
90
- typeof window != 'undefined' ? window : typeof global != undefined ? global : this || {};
91
- var requestAnimationFrame =
92
- (root.cancelRequestAnimationFrame && root.requestAnimationFrame) || setTimeout;
93
- var cancelRequestAnimationFrame = root.cancelRequestAnimationFrame || clearTimeout;
94
- var tasks = [];
95
- var runAttempts = 0;
96
- var isRunning = false;
97
- var remainingTime = 7;
98
- var minThrottle = 35;
99
- var throttle = 125;
100
- var index = 0;
101
- var taskStart = 0;
102
- var tasklength = 0;
103
- var IdleDeadline = {
104
- get didTimeout() {
105
- return false;
106
- },
107
- timeRemaining: function () {
108
- var timeRemaining = remainingTime - (Date.now() - taskStart);
109
- return Math.max(0, timeRemaining);
110
- },
111
- };
112
- var setInactive = debounce(function () {
113
- remainingTime = 22;
114
- throttle = 66;
115
- minThrottle = 0;
116
- });
117
-
118
- function debounce(fn) {
119
- var id, timestamp;
120
- var wait = 99;
121
- var check = function () {
122
- var last = Date.now() - timestamp;
123
-
124
- if (last < wait) {
125
- id = setTimeout(check, wait - last);
126
- } else {
127
- id = null;
128
- fn();
129
- }
130
- };
131
- return function () {
132
- timestamp = Date.now();
133
- if (!id) {
134
- id = setTimeout(check, wait);
135
- }
136
- };
137
- }
138
-
139
- function abortRunning() {
140
- if (isRunning) {
141
- if (lazyraf) {
142
- cancelRequestAnimationFrame(lazyraf);
143
- }
144
- if (lazytimer) {
145
- clearTimeout(lazytimer);
146
- }
147
- isRunning = false;
148
- }
149
- }
150
-
151
- function onInputorMutation() {
152
- if (throttle != 125) {
153
- remainingTime = 7;
154
- throttle = 125;
155
- minThrottle = 35;
156
-
157
- if (isRunning) {
158
- abortRunning();
159
- scheduleLazy();
160
- }
161
- }
162
- setInactive();
163
- }
164
-
165
- function scheduleAfterRaf() {
166
- lazyraf = null;
167
- lazytimer = setTimeout(runTasks, 0);
168
- }
169
-
170
- function scheduleRaf() {
171
- lazytimer = null;
172
- requestAnimationFrame(scheduleAfterRaf);
173
- }
174
-
175
- function scheduleLazy() {
176
- if (isRunning) {
177
- return;
178
- }
179
- throttleDelay = throttle - (Date.now() - taskStart);
180
-
181
- scheduleStart = Date.now();
182
-
183
- isRunning = true;
184
-
185
- if (minThrottle && throttleDelay < minThrottle) {
186
- throttleDelay = minThrottle;
187
- }
188
-
189
- if (throttleDelay > 9) {
190
- lazytimer = setTimeout(scheduleRaf, throttleDelay);
191
- } else {
192
- throttleDelay = 0;
193
- scheduleRaf();
194
- }
195
- }
196
-
197
- function runTasks() {
198
- var task, i, len;
199
- var timeThreshold = remainingTime > 9 ? 9 : 1;
200
- taskStart = Date.now();
201
- isRunning = false;
202
-
203
- lazytimer = null;
204
-
205
- if (runAttempts > 2 || taskStart - throttleDelay - 50 < scheduleStart) {
206
- for (
207
- i = 0, len = tasks.length;
208
- i < len && IdleDeadline.timeRemaining() > timeThreshold;
209
- i++
210
- ) {
211
- task = tasks.shift();
212
- tasklength++;
213
- if (task) {
214
- task(IdleDeadline);
215
- }
216
- }
217
- }
218
-
219
- if (tasks.length) {
220
- scheduleLazy();
221
- } else {
222
- runAttempts = 0;
223
- }
224
- }
225
-
226
- function requestIdleCallbackShim(task) {
227
- index++;
228
- tasks.push(task);
229
- scheduleLazy();
230
- return index;
231
- }
232
-
233
- function cancelIdleCallbackShim(id) {
234
- var index = id - 1 - tasklength;
235
- if (tasks[index]) {
236
- tasks[index] = null;
237
- }
238
- }
239
-
240
- if (!root.requestIdleCallback || !root.cancelIdleCallback) {
241
- root.requestIdleCallback = requestIdleCallbackShim;
242
- root.cancelIdleCallback = cancelIdleCallbackShim;
243
-
244
- if (root.document && document.addEventListener) {
245
- root.addEventListener('scroll', onInputorMutation, true);
246
- root.addEventListener('resize', onInputorMutation);
247
-
248
- document.addEventListener('focus', onInputorMutation, true);
249
- document.addEventListener('mouseover', onInputorMutation, true);
250
- ['click', 'keypress', 'touchstart', 'mousedown'].forEach(function (name) {
251
- document.addEventListener(name, onInputorMutation, { capture: true, passive: true });
252
- });
253
-
254
- if (root.MutationObserver) {
255
- new MutationObserver(onInputorMutation).observe(document.documentElement, {
256
- childList: true,
257
- subtree: true,
258
- attributes: true,
259
- });
260
- }
261
- }
262
- } else {
263
- try {
264
- root.requestIdleCallback(function () {}, { timeout: 0 });
265
- } catch (e) {
266
- (function (rIC) {
267
- var timeRemainingProto, timeRemaining;
268
- root.requestIdleCallback = function (fn, timeout) {
269
- if (timeout && typeof timeout.timeout == 'number') {
270
- return rIC(fn, timeout.timeout);
271
- }
272
- return rIC(fn);
273
- };
274
- if (
275
- root.IdleCallbackDeadline &&
276
- (timeRemainingProto = IdleCallbackDeadline.prototype)
277
- ) {
278
- timeRemaining = Object.getOwnPropertyDescriptor(
279
- timeRemainingProto,
280
- 'timeRemaining',
281
- );
282
- if (!timeRemaining || !timeRemaining.configurable || !timeRemaining.get) {
283
- return;
284
- }
285
- Object.defineProperty(timeRemainingProto, 'timeRemaining', {
286
- value: function () {
287
- return timeRemaining.get.call(this);
288
- },
289
- enumerable: true,
290
- configurable: true,
291
- });
292
- }
293
- })(root.requestIdleCallback);
294
- }
295
- }
296
-
297
- return {
298
- request: requestIdleCallbackShim,
299
- cancel: cancelIdleCallbackShim,
300
- };
301
- });
302
- </script>
303
- </body>
304
- </html>
@@ -1 +0,0 @@
1
- !function t(r,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.PisellCommon=n():r.PisellCommon=n()}(window,(function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function r(){return t.default}:function r(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=211)}([,,,,,,,,,,,,,function(t,r){function n(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}t.exports=n},,function(t,r){t.exports=window.LowcodePresetPlugin},function(t,r,n){var e=n(50),o="object"==typeof self&&self&&self.Object===Object&&self,i=e||o||Function("return this")();t.exports=i},,,,function(t,r){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,r,n){var e=n(87),o=n(88),i=n(89),c=n(90),a=n(91);function u(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}u.prototype.clear=e,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,r,n){var e=n(23);function o(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1}t.exports=o},function(t,r){function n(t,r){return t===r||t!=t&&r!=r}t.exports=n},function(t,r,n){var e=n(49),o=n(98),i=n(99),c="[object Null]",a="[object Undefined]",u=e?e.toStringTag:void 0;function s(t){return null==t?void 0===t?a:c:u&&u in Object(t)?o(t):i(t)}t.exports=s},function(t,r,n){var e,o=n(31)(Object,"create");t.exports=o},function(t,r,n){var e=n(113);function o(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map}t.exports=o},,function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r,n){var e=n(97),o=n(103);function i(t,r){var n=o(t,r);return e(n)?n:void 0}t.exports=i},function(t,r,n){var e=n(24),o=n(13),i="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function s(t){if(!o(t))return!1;var r=e(t);return r==c||r==a||r==i||r==u}t.exports=s},function(t,r,n){var e=n(52);function o(t,r,n){"__proto__"==r&&e?e(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}t.exports=o},function(t,r,n){var e=n(32),o=n(57);function i(t){return null!=t&&o(t.length)&&!e(t)}t.exports=i},,,,,,,,,,,,,,function(t,r,n){var e,o,i=n(31)(n(16),"Map");t.exports=i},function(t,r,n){var e,o=n(16).Symbol;t.exports=o},function(t,r,n){(function(r){var n="object"==typeof r&&r&&r.Object===Object&&r;t.exports=n}).call(this,n(30))},function(t,r,n){var e=n(33),o=n(23);function i(t,r,n){(void 0!==n&&!o(t[r],n)||void 0===n&&!(r in t))&&e(t,r,n)}t.exports=i},function(t,r,n){var e=n(31),o=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,r,n){var e,o=n(127)(Object.getPrototypeOf,Object);t.exports=o},function(t,r){var n=Object.prototype;function e(t){var r=t&&t.constructor,e;return t===("function"==typeof r&&r.prototype||n)}t.exports=e},function(t,r,n){var e=n(128),o=n(20),i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,u=e(function(){return arguments}())?e:function(t){return o(t)&&c.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},function(t,r){var n=Array.isArray;t.exports=n},function(t,r){var n=9007199254740991;function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}t.exports=e},function(t,r,n){(function(t){var e=n(16),o=n(130),i=r&&!r.nodeType&&r,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,a,u=c&&c.exports===i?e.Buffer:void 0,s,f=(u?u.isBuffer:void 0)||o;t.exports=f}).call(this,n(28)(t))},function(t,r,n){var e=n(132),o=n(133),i=n(134),c=i&&i.isTypedArray,a=c?o(c):e;t.exports=a},function(t,r){function n(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}t.exports=n},function(t,r,n){var e=n(138),o=n(140),i=n(34);function c(t){return i(t)?e(t,!0):o(t)}t.exports=c},function(t,r){var n=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function o(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}t.exports=o},function(t,r){function n(t){return t}t.exports=n},,,,,,,,,,,,,,,,,,,,,,function(t,r,n){var e=n(86),o=n(51),i=n(117),c=n(119),a=n(13),u=n(61),s=n(60);function f(t,r,n,l,p){t!==r&&i(r,(function(i,u){if(p||(p=new e),a(i))c(t,r,u,n,f,l,p);else{var v=l?l(s(t,u),i,u+"",t,r,p):void 0;void 0===v&&(v=i),o(t,u,v)}}),u)}t.exports=f},function(t,r,n){var e=n(21),o=n(92),i=n(93),c=n(94),a=n(95),u=n(96);function s(t){var r=this.__data__=new e(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,r,n){var e=n(22),o,i=Array.prototype.splice;function c(t){var r=this.__data__,n=e(r,t),o;return!(n<0)&&(n==r.length-1?r.pop():i.call(r,n,1),--this.size,!0)}t.exports=c},function(t,r,n){var e=n(22);function o(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]}t.exports=o},function(t,r,n){var e=n(22);function o(t){return e(this.__data__,t)>-1}t.exports=o},function(t,r,n){var e=n(22);function o(t,r){var n=this.__data__,o=e(n,t);return o<0?(++this.size,n.push([t,r])):n[o][1]=r,this}t.exports=o},function(t,r,n){var e=n(21);function o(){this.__data__=new e,this.size=0}t.exports=o},function(t,r){function n(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}t.exports=n},function(t,r){function n(t){return this.__data__.get(t)}t.exports=n},function(t,r){function n(t){return this.__data__.has(t)}t.exports=n},function(t,r,n){var e=n(21),o=n(48),i=n(104),c=200;function a(t,r){var n=this.__data__;if(n instanceof e){var c=n.__data__;if(!o||c.length<199)return c.push([t,r]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(t,r),this.size=n.size,this}t.exports=a},function(t,r,n){var e=n(32),o=n(100),i=n(13),c=n(102),a=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,l=s.toString,p=f.hasOwnProperty,v=RegExp("^"+l.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(t){return!(!i(t)||o(t))&&(e(t)?v:u).test(c(t));var r}t.exports=h},function(t,r,n){var e=n(49),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=e?e.toStringTag:void 0;function u(t){var r=i.call(t,a),n=t[a];try{t[a]=void 0;var e=!0}catch(t){}var o=c.call(t);return e&&(r?t[a]=n:delete t[a]),o}t.exports=u},function(t,r){var n,e=Object.prototype.toString;function o(t){return e.call(t)}t.exports=o},function(t,r,n){var e=n(101),o=(i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",i;function c(t){return!!o&&o in t}t.exports=c},function(t,r,n){var e,o=n(16)["__core-js_shared__"];t.exports=o},function(t,r){var n,e=Function.prototype.toString;function o(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}t.exports=o},function(t,r){function n(t,r){return null==t?void 0:t[r]}t.exports=n},function(t,r,n){var e=n(105),o=n(112),i=n(114),c=n(115),a=n(116);function u(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}u.prototype.clear=e,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,r,n){var e=n(106),o=n(21),i=n(48);function c(){this.size=0,this.__data__={hash:new e,map:new(i||o),string:new e}}t.exports=c},function(t,r,n){var e=n(107),o=n(108),i=n(109),c=n(110),a=n(111);function u(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}u.prototype.clear=e,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},function(t,r,n){var e=n(25);function o(){this.__data__=e?e(null):{},this.size=0}t.exports=o},function(t,r){function n(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}t.exports=n},function(t,r,n){var e=n(25),o="__lodash_hash_undefined__",i,c=Object.prototype.hasOwnProperty;function a(t){var r=this.__data__;if(e){var n=r[t];return n===o?void 0:n}return c.call(r,t)?r[t]:void 0}t.exports=a},function(t,r,n){var e=n(25),o,i=Object.prototype.hasOwnProperty;function c(t){var r=this.__data__;return e?void 0!==r[t]:i.call(r,t)}t.exports=c},function(t,r,n){var e=n(25),o="__lodash_hash_undefined__";function i(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?o:r,this}t.exports=i},function(t,r,n){var e=n(26);function o(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}t.exports=o},function(t,r){function n(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}t.exports=n},function(t,r,n){var e=n(26);function o(t){return e(this,t).get(t)}t.exports=o},function(t,r,n){var e=n(26);function o(t){return e(this,t).has(t)}t.exports=o},function(t,r,n){var e=n(26);function o(t,r){var n=e(this,t),o=n.size;return n.set(t,r),this.size+=n.size==o?0:1,this}t.exports=o},function(t,r,n){var e,o=n(118)();t.exports=o},function(t,r){function n(t){return function(r,n,e){for(var o=-1,i=Object(r),c=e(r),a=c.length;a--;){var u=c[t?a:++o];if(!1===n(i[u],u,i))break}return r}}t.exports=n},function(t,r,n){var e=n(51),o=n(120),i=n(121),c=n(124),a=n(125),u=n(55),s=n(56),f=n(129),l=n(58),p=n(32),v=n(13),h=n(131),y=n(59),d=n(60),b=n(135);function g(t,r,n,g,m,x,_){var j=d(t,n),w=d(r,n),O=_.get(w);if(O)e(t,n,O);else{var S=x?x(j,w,n+"",t,r,_):void 0,P=void 0===S;if(P){var k=s(w),A=!k&&l(w),L=!k&&!A&&y(w);S=w,k||A||L?s(j)?S=j:f(j)?S=c(j):A?(P=!1,S=o(w,!0)):L?(P=!1,S=i(w,!0)):S=[]:h(w)||u(w)?(S=j,u(j)?S=b(j):v(j)&&!p(j)||(S=a(w))):P=!1}P&&(_.set(w,S),m(S,w,g,x,_),_.delete(w)),e(t,n,S)}}t.exports=g},function(t,r,n){(function(t){var e=n(16),o=r&&!r.nodeType&&r,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c,a=i&&i.exports===o?e.Buffer:void 0,u=a?a.allocUnsafe:void 0;function s(t,r){if(r)return t.slice();var n=t.length,e=u?u(n):new t.constructor(n);return t.copy(e),e}t.exports=s}).call(this,n(28)(t))},function(t,r,n){var e=n(122);function o(t,r){var n=r?e(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=o},function(t,r,n){var e=n(123);function o(t){var r=new t.constructor(t.byteLength);return new e(r).set(new e(t)),r}t.exports=o},function(t,r,n){var e,o=n(16).Uint8Array;t.exports=o},function(t,r){function n(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}t.exports=n},function(t,r,n){var e=n(126),o=n(53),i=n(54);function c(t){return"function"!=typeof t.constructor||i(t)?{}:e(o(t))}t.exports=c},function(t,r,n){var e=n(13),o=Object.create,i=function(){function t(){}return function(r){if(!e(r))return{};if(o)return o(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,r){function n(t,r){return function(n){return t(r(n))}}t.exports=n},function(t,r,n){var e=n(24),o=n(20),i="[object Arguments]";function c(t){return o(t)&&e(t)==i}t.exports=c},function(t,r,n){var e=n(34),o=n(20);function i(t){return o(t)&&e(t)}t.exports=i},function(t,r){function n(){return!1}t.exports=n},function(t,r,n){var e=n(24),o=n(53),i=n(20),c="[object Object]",a=Function.prototype,u=Object.prototype,s=a.toString,f=u.hasOwnProperty,l=s.call(Object);function p(t){if(!i(t)||e(t)!=c)return!1;var r=o(t);if(null===r)return!0;var n=f.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}t.exports=p},function(t,r,n){var e=n(24),o=n(57),i=n(20),c="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Function]",p="[object Map]",v="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",b="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_,j="[object Float64Array]",w="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",A="[object Uint16Array]",L="[object Uint32Array]",E={};function T(t){return i(t)&&o(t.length)&&!!E[e(t)]}E["[object Float32Array]"]=E[j]=E[w]=E[O]=E[S]=E[P]=E[k]=E[A]=E[L]=!0,E[c]=E[a]=E[m]=E[u]=E[x]=E[s]=E[f]=E[l]=E[p]=E[v]=E[h]=E[y]=E[d]=E[b]=E[g]=!1,t.exports=T},function(t,r){function n(t){return function(r){return t(r)}}t.exports=n},function(t,r,n){(function(t){var e=n(50),o=r&&!r.nodeType&&r,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c,a=i&&i.exports===o&&e.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,n(28)(t))},function(t,r,n){var e=n(136),o=n(61);function i(t){return e(t,o(t))}t.exports=i},function(t,r,n){var e=n(137),o=n(33);function i(t,r,n,i){var c=!n;n||(n={});for(var a=-1,u=r.length;++a<u;){var s=r[a],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),c?o(n,s,f):e(n,s,f)}return n}t.exports=i},function(t,r,n){var e=n(33),o=n(23),i,c=Object.prototype.hasOwnProperty;function a(t,r,n){var i=t[r];c.call(t,r)&&o(i,n)&&(void 0!==n||r in t)||e(t,r,n)}t.exports=a},function(t,r,n){var e=n(139),o=n(55),i=n(56),c=n(58),a=n(62),u=n(59),s,f=Object.prototype.hasOwnProperty;function l(t,r){var n=i(t),s=!n&&o(t),l=!n&&!s&&c(t),p=!n&&!s&&!l&&u(t),v=n||s||l||p,h=v?e(t.length,String):[],y=h.length;for(var d in t)!r&&!f.call(t,d)||v&&("length"==d||l&&("offset"==d||"parent"==d)||p&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,y))||h.push(d);return h}t.exports=l},function(t,r){function n(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}t.exports=n},function(t,r,n){var e=n(13),o=n(54),i=n(141),c,a=Object.prototype.hasOwnProperty;function u(t){if(!e(t))return i(t);var r=o(t),n=[];for(var c in t)("constructor"!=c||!r&&a.call(t,c))&&n.push(c);return n}t.exports=u},function(t,r){function n(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}t.exports=n},function(t,r,n){var e=n(143),o=n(150);function i(t){return e((function(r,n){var e=-1,i=n.length,c=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(c=t.length>3&&"function"==typeof c?(i--,c):void 0,a&&o(n[0],n[1],a)&&(c=i<3?void 0:c,i=1),r=Object(r);++e<i;){var u=n[e];u&&t(r,u,e,c)}return r}))}t.exports=i},function(t,r,n){var e=n(63),o=n(144),i=n(146);function c(t,r){return i(o(t,r,e),t+"")}t.exports=c},function(t,r,n){var e=n(145),o=Math.max;function i(t,r,n){return r=o(void 0===r?t.length-1:r,0),function(){for(var i=arguments,c=-1,a=o(i.length-r,0),u=Array(a);++c<a;)u[c]=i[r+c];c=-1;for(var s=Array(r+1);++c<r;)s[c]=i[c];return s[r]=n(u),e(t,this,s)}}t.exports=i},function(t,r){function n(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}t.exports=n},function(t,r,n){var e=n(147),o,i=n(149)(e);t.exports=i},function(t,r,n){var e=n(148),o=n(52),i=n(63),c=o?function(t,r){return o(t,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:i;t.exports=c},function(t,r){function n(t){return function(){return t}}t.exports=n},function(t,r){var n=800,e=16,o=Date.now;function i(t){var r=0,n=0;return function(){var e=o(),i=16-(e-n);if(n=e,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}t.exports=i},function(t,r,n){var e=n(23),o=n(34),i=n(62),c=n(13);function a(t,r,n){if(!c(n))return!1;var a=typeof r;return!!("number"==a?o(n)&&i(r,n.length):"string"==a&&r in n)&&e(n[r],t)}t.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,r,n){var e=n(85),o,i=n(142)((function(t,r,n,o){e(t,r,n,o)}));t.exports=i},,,,,,,,,,,,,,,,function(t,r,n){t.exports=n(212)},function(t,r,n){"use strict";n.r(r);var e=n(15),o=n.n(e),i=n(195),c=n.n(i);function a(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function u(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){s(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function s(t,r,n){return(r=f(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function f(t){var r=l(t,"string");return"symbol"===m(r)?r:String(r)}function l(t,r){if("object"!==m(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!==m(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function r(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,e=Object.defineProperty||function(t,r,n){t[r]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function t(r,n,e){return r[n]=e}}function s(t,r,n,o){var i=r&&r.prototype instanceof v?r:v,c=Object.create(i.prototype),a=new k(o||[]);return e(c,"_invoke",{value:w(t,n,a)}),c}function f(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function v(){}function h(){}function y(){}var d={};u(d,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(A([])));g&&g!==r&&n.call(g,i)&&(d=g);var x=y.prototype=v.prototype=Object.create(d);function _(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function o(e,i,c,a){var u=f(t[e],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==m(l)&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){o("next",t,c,a)}),(function(t){o("throw",t,c,a)})):r.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,a)}))}a(u.arg)}var i;e(this,"_invoke",{value:function t(n,e){function c(){return new r((function(t,r){o(n,e,t,r)}))}return i=i?i.then(c,c):c()}})}function w(t,r,n){var e="suspendedStart";return function(o,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=O(c,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===e)throw e="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);e="executing";var u=f(t,r,n);if("normal"===u.type){if(e=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(e="completed",n.method="throw",n.arg=u.arg)}}}function O(t,r){var n=r.method,e=t.iterator[n];if(void 0===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(e,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=y,e(x,"constructor",{value:y,configurable:!0}),e(y,"constructor",{value:h,configurable:!0}),h.displayName=u(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,a,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},_(j.prototype),u(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(r,n,e,o,i){void 0===i&&(i=Promise);var c=new j(s(r,n,e,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},_(x),u(x,a,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=A,k.prototype={constructor:k,reset:function t(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function t(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function t(r){if(this.done)throw r;var e=this;function o(t,n){return a.type="throw",a.arg=r,e.next=t,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function t(r,e){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var c=i;break}}c&&("break"===r||"continue"===r)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=r,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,l):this.complete(a)},complete:function t(r,n){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&n&&(this.next=n),l},finish:function t(r){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),P(e),l}},catch:function t(r){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var i=o.arg;P(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function t(r,n,e){return this.delegate={iterator:A(r),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function v(t){return b(t)||d(t)||y(t)||h()}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,r){if(t){if("string"==typeof t)return g(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,r):void 0}}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function b(t){if(Array.isArray(t))return g(t)}function g(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,r,n,e,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?r(u):Promise.resolve(u).then(e,o)}function _(t){return function(){var r=this,n=arguments;return new Promise((function(e,o){var i=t.apply(r,n);function c(t){x(i,e,o,c,a,"next",t)}function a(t){x(i,e,o,c,a,"throw",t)}c(void 0)}))}}var j=new URLSearchParams(window.location.search),w="default",O=j.get("platform")||"",S=j.get("metaType")||O||"",P={meta:"/Users/zuoshengjie/Desktop/project/pisell-design/.tmp/meta.js"},k=S?"meta.".concat(S):"meta";P[k]||(console.warn("[@alifd/build-plugin-lowcode] metaType can only in [".concat(Object.keys(P),"], current metaType is ").concat(k,", fullback to ").concat("default",".")),S="");var A=!!e.material,L=!1,E="react",T=[{package:"moment",version:"2.24.0",urls:["https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"],library:"moment"},{package:"lodash",library:"_",urls:["https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js"]},{title:"fusion\u7ec4\u4ef6\u5e93",package:"@alifd/next",version:"1.25.23",urls:["https://g.alicdn.com/code/lib/alifd__next/1.25.23/next.min.css","https://g.alicdn.com/code/lib/alifd__next/1.25.23/next-with-locales.min.js"],library:"Next"},{package:"antd",version:"4.17.3",urls:["https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.js","https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.css"],library:"antd"}];var z={packages:[]},F="./assets-dev.json",U={},N={},D=[],I="component";var M=C()||{componentName:"Page",id:"node_dockcviv8fo1",props:{ref:"outterView",style:{height:"100%"}},fileName:"lowcode",dataSource:{list:[]},state:{text:"outter",isShowDialog:!1},css:"body {font-size: 12px;} .botton{width:100px;color:#ff00ff}",lifeCycles:{componentDidMount:{type:"JSFunction",value:"function() {\n console.log('did mount');\n }"},componentWillUnmount:{type:"JSFunction",value:"function() {\n console.log('will umount');\n }"}},methods:{testFunc:{type:"JSFunction",value:"function() {\n console.log('test func');\n }"},onClick:{type:"JSFunction",value:"function() {\n this.setState({\n isShowDialog: true\n })\n }"},closeDialog:{type:"JSFunction",value:"function() {\n this.setState({\n isShowDialog: false\n })\n }"}},children:[]},G=document.getElementById("lce-container");function C(){var t,r=JSON.parse(window.localStorage.getItem("projectSchema")||"{}"),n;return null==r||null===(t=r.componentsTree)||void 0===t?void 0:t[0]}function $(t,r){return B.apply(this,arguments)}function B(){return(B=_(p().mark((function t(r,n){var e;return p().wrap((function t(o){for(;;)switch(o.prev=o.next){case 0:if(!(n&&Array.isArray(n)&&n.length)){o.next=5;break}return o.next=3,Promise.all(n.map(function(){var t=_(p().mark((function t(r){return p().wrap((function t(n){for(;;)switch(n.prev=n.next){case 0:if("object"!==m(r)){n.next=4;break}return n.abrupt("return",r);case 4:return n.prev=4,n.next=7,fetch(r);case 7:return n.abrupt("return",n.sent.json());case 10:return n.prev=10,n.t0=n.catch(4),console.error("get assets data from builtin assets ".concat(r," failed: "),n.t0),n.abrupt("return",{});case 14:case"end":return n.stop()}}),t,null,[[4,10]])})));return function(r){return t.apply(this,arguments)}}()));case 3:(e=o.sent).forEach((function(t){var n=u(u({},t),{},{packages:t.packages||[t.package],components:t.components,componentList:(t.componentList||[]).map((function(t){return t.children&&(t.children=t.children.map((function(r){return r.sort||(r.sort={category:t.title,group:"\u539f\u5b50\u7ec4\u4ef6"}),r}))),t}))});c()(r,n,(function(t,r){if(Array.isArray(t)&&Array.isArray(r))return r.concat(t)}))}));case 5:case"end":return o.stop()}}),t)})))).apply(this,arguments)}o()((function(){return{name:"editor-init",init:function t(){return _(p().mark((function t(){var r,n,o,i,c,a;return p().wrap((function t(u){for(;;)switch(u.prev=u.next){case 0:return"object"===m(U)&&Object.keys(U).length&&e.setters.registerSetter(U),u.next=4,fetch(F);case 4:return u.next=6,u.sent.json();case 6:r=u.sent,n=r.packages,z.packages=z.packages.concat(n),z.components=r.components.map((function(t){return t.advancedUrls&&S&&t.advancedUrls[S]&&t.advancedUrls[S].length?t.url=t.advancedUrls[S][0]:t.urls&&S&&t.urls[S]&&(t.url=t.urls[S]),t})),z.groupList=r.groupList,u.next=23;break;case 13:if(o=!1,i=!1,u.t0=!1,!u.t0){u.next=19;break}return u.next=19,$(z,!1);case 19:if(u.t1=i,!u.t1){u.next=23;break}return u.next=23,$(z,i);case 23:c=new Map,a=v(new Set([].concat(T,v(z.packages)).map((function(t){var r=t.library;return c.set(r,t),r})))),z.packages=a.map((function(t){return c.get(t)})),z.packages=z.packages.map((function(t){return t.editUrls&&t.editUrls.length&&(t.renderUrls=t.urls,t.urls=t.editUrls),t})),A?(e.material.setAssets(z),e.project.openDocument(M)):(e.editor.setAssets(z),e.project.open(M));case 29:case"end":return u.stop()}}),t)})))()}}}),D||[],G,{supportVariableGlobally:!0,presetConfig:N})}])}));