@para-ui/core 4.0.19-aplha → 4.0.19-aplha2

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.
@@ -1,8 +1,9 @@
1
1
  import { _ as __rest } from './tslib.es6-55ed4bd2.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-8f4c9589.js';
4
- import { _ as _defineProperty, a as _typeof$1, b as _toPropertyKey } from './defineProperty-51493dbe.js';
4
+ import { _ as _defineProperty, a as _toPropertyKey } from './defineProperty-1d116156.js';
5
5
  import { _ as _slicedToArray, a as _arrayWithHoles, b as _nonIterableRest } from './slicedToArray-a8206399.js';
6
+ import { _ as _typeof$1 } from './typeof-adeedc13.js';
6
7
  import * as React$4 from 'react';
7
8
  import React__default, { useState as useState$1, useMemo as useMemo$1, useCallback, useRef, useEffect } from 'react';
8
9
  import ReactDOM, { unstable_batchedUpdates, createPortal, flushSync } from 'react-dom';
@@ -0,0 +1,11 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
package/index.js CHANGED
@@ -5,7 +5,7 @@ export { Breadcrumbs } from './Breadcrumbs/index.js';
5
5
  export { Button } from './Button/index.js';
6
6
  export { ButtonGroup } from './ButtonGroup/index.js';
7
7
  export { Carousel } from './Carousel/index.js';
8
- export { C as Cascader } from './_verture/index-344d4ffe.js';
8
+ export { C as Cascader } from './_verture/index-cb218775.js';
9
9
  export { Checkbox } from './Checkbox/index.js';
10
10
  export { CheckboxGroup } from './CheckboxGroup/index.js';
11
11
  export { Collapse } from './Collapse/index.js';
@@ -25,7 +25,7 @@ export { D as Dropdown } from './_verture/index-389675ab.js';
25
25
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
26
26
  export { default as Empty } from './Empty/index.js';
27
27
  export { default as Form } from './Form/index.js';
28
- export { F as FormItem } from './_verture/index-3e98a394.js';
28
+ export { F as FormItem } from './_verture/index-543781c9.js';
29
29
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-c8cc3107.js';
30
30
  export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
31
31
  export { default as Help } from './Help/index.js';
@@ -74,7 +74,7 @@ export { Title } from './Title/index.js';
74
74
  export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
75
75
  export { Tooltip } from './Tooltip/index.js';
76
76
  export { SSortablejs, Transfer } from './Transfer/index.js';
77
- export { T as Tree } from './_verture/index-0447e790.js';
77
+ export { T as Tree } from './_verture/index-c77ccb98.js';
78
78
  export { default as Upload } from './Upload/index.js';
79
79
  export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
80
80
  export { default as locale } from './locale/index.js';
@@ -97,7 +97,8 @@ import '@para-ui/icons/RightCircleF';
97
97
  import '@para-ui/icons/LeftCircleF';
98
98
  import './_verture/toConsumableArray-8f4c9589.js';
99
99
  import './_verture/unsupportedIterableToArray-cb478f24.js';
100
- import './_verture/defineProperty-51493dbe.js';
100
+ import './_verture/defineProperty-1d116156.js';
101
+ import './_verture/typeof-adeedc13.js';
101
102
  import './_verture/slicedToArray-a8206399.js';
102
103
  import 'rc-motion';
103
104
  import './_verture/typeof-6ec38efd.js';
@@ -160,7 +161,6 @@ import '@para-ui/icons/Plus';
160
161
  import '@para-ui/icons/EditOutline';
161
162
  import '@para-ui/icons/Message';
162
163
  import '@para-ui/icons/Set';
163
- import './_verture/index-287ae1b3.js';
164
164
  import 'rc-slider';
165
165
  import './_verture/tinycolor-ece3542d.js';
166
166
  import 'rc-steps';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "4.0.19-aplha",
4
+ "version": "4.0.19-aplha2",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",
@@ -1 +1 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,((e,r)=>(()=>{var a={55223:(e,r,a)=>{(r=a(23645)(!1)).push([e.id,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}::-webkit-scrollbar{width:8px;height:8px;background-color:#eaecf1}::-webkit-scrollbar-track{border-radius:4px}::-webkit-scrollbar-thumb{background:#a1a8b3;border-radius:4px}::-webkit-scrollbar-corner{background:#eaecf1}::-webkit-scrollbar-thumb:hover{background:#d4dae3}::-webkit-scrollbar-thumb:active{background:#d4dae3}::-webkit-scrollbar-thumb:window-inactive{background-color:#a1a8b3}.paraui-v4-scrollbar-small *::-webkit-scrollbar,.paraui-v4-scrollbar-small::-webkit-scrollbar{width:4px;height:4px}.paraui-v4-scrollbar-small *::-webkit-scrollbar-track,.paraui-v4-scrollbar-small::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-small *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-small::-webkit-scrollbar-thumb{border-radius:2px}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar{width:4px;height:4px;background-color:#5c6573}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-track,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb{border-radius:2px;background:#d4dae3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-corner,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-scrollbar-medium *::-webkit-scrollbar,.paraui-v4-scrollbar-medium::-webkit-scrollbar{width:4px;height:4px}.paraui-v4-scrollbar-medium *::-webkit-scrollbar-track,.paraui-v4-scrollbar-medium::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-medium *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-medium::-webkit-scrollbar-thumb{border-radius:2px}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar{width:4px;height:4px;background-color:#5c6573}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-track,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb{border-radius:2px;background:#d4dae3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-corner,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-scrollbar-large *::-webkit-scrollbar,.paraui-v4-scrollbar-large::-webkit-scrollbar{width:8px;height:8px}.paraui-v4-scrollbar-large *::-webkit-scrollbar-track,.paraui-v4-scrollbar-large::-webkit-scrollbar-track{border-radius:4px}.paraui-v4-scrollbar-large *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-large::-webkit-scrollbar-thumb{border-radius:4px}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar{width:8px;height:8px;background-color:#5c6573}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-track,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-track{border-radius:4px}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb{border-radius:4px;background:#d4dae3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-corner,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-form .paraui-v4-helper-text{min-height:20px}*{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}html,body{width:100%;height:100%;overflow:hidden}ol,ul{list-style:none}a,h1,h2,h3,h4,h5,h6,input,select,button,textarea{outline:none}svg{overflow:hidden}",""]),e.exports=r},23645:e=>{"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var a=function(e,r){var a=e[1]||"",t=e[3];if(!t)return a;if(r&&"function"==typeof btoa){var o=(l=t,n=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(c," */")),i=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[a].concat(i).concat([o]).join("\n")}var l,n,c;return[a].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a})).join("")},r.i=function(e,a,t){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(t)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var n=0;n<e.length;n++){var c=[].concat(e[n]);t&&o[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),r.push(c))}},r}},83452:(e,r,a)=>{var t=a(93379),o=a(55223);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};t(o,i);e.exports=o.locals||{}},93379:(e,r,a)=>{"use strict";var t,o=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},i=function(){var e={};return function(r){if(void 0===e[r]){var a=document.querySelector(r);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[r]=a}return e[r]}}(),l=[];function n(e){for(var r=-1,a=0;a<l.length;a++)if(l[a].identifier===e){r=a;break}return r}function c(e,r){for(var a={},t=[],o=0;o<e.length;o++){var i=e[o],c=r.base?i[0]+r.base:i[0],b=a[c]||0,u="".concat(c," ").concat(b);a[c]=b+1;var s=n(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(l[s].references++,l[s].updater(d)):l.push({identifier:u,updater:v(d,r),references:1}),t.push(u)}return t}function b(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var o=a.nc;o&&(t.nonce=o)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var l=i(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(r)}return r}var u,s=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function d(e,r,a,t){var o=a?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=s(r,o);else{var i=document.createTextNode(o),l=e.childNodes;l[r]&&e.removeChild(l[r]),l.length?e.insertBefore(i,l[r]):e.appendChild(i)}}function p(e,r,a){var t=a.css,o=a.media,i=a.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var m=null,f=0;function v(e,r){var a,t,o;if(r.singleton){var i=f++;a=m||(m=b(r)),t=d.bind(null,a,i,!1),o=d.bind(null,a,i,!0)}else a=b(r),t=p.bind(null,a,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var a=c(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var o=n(a[t]);l[o].references--}for(var i=c(e,r),b=0;b<a.length;b++){var u=n(a[b]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}a=i}}}},63732:(e,r,a)=>{"use strict";a.d(r,{changeConfirmLocale:()=>s,default:()=>d});var t=a(8156),o=a.n(t),i=a(20075),l=a(58543),n=a(57213);function c(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function b(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),t.forEach((function(r){c(e,r,a[r])}))}return e}var u=b({},n.Z.zh),s=function(e,r){var a=e.Confirm;if(a)u=b({},u,a);else{r||(r=(0,l.GetLanguage)());var t=(null===n.Z||void 0===n.Z?void 0:n.Z[r])||n.Z.zh||{};u=b({},t)}};const d=o().createContext({language:(0,l.GetLanguage)(),intlFormat:function(e,r){return function(e,a){var t=(0,l.GetLanguage)();return(0,i.ex)({ops:e,i18nData:{},lang:t,params:a,defI18nData:r})}},componentsProps:{}})},20075:(e,r,a)=>{"use strict";a.d(r,{ex:()=>o});a(8156);var t=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var a=/({[^{}]+})/g;return e.split(a).map((function(e){if(e.match(a)){var t=e.replace(/({|})/g,""),o=function(e,r,a){var t=r.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,l=!1,n=void 0;try{for(var c,b=t[Symbol.iterator]();!(i=(c=b.next()).done);i=!0){var u=c.value;if(void 0===(o=Object(o)[u]))return a}}catch(e){l=!0,n=e}finally{try{i||null==b.return||b.return()}finally{if(l)throw n}}return o}(r,t);return void 0===o?t:o}return e}))},o=function(e){var r,a,o,i,l=e.ops,n=e.i18nData,c=e.lang,b=e.params,u=e.defI18nData;if("string"==typeof l)a=l;else if("object"==typeof l){if("string"!=typeof l.id)return'i18n intl object "id" is missing';a=l.id}void 0!==a&&(void 0===(r=null===(o=n[c])||void 0===o?void 0:o[a])&&u&&(r=null===(i=u[c])||void 0===i?void 0:i[a]));return"string"!=typeof r?"{".concat(a,"}"):t(r,b)}},57213:(e,r,a)=>{"use strict";a.d(r,{Z:()=>i});const t={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:t,"zh-CN":o,"en-US":t}},58543:e=>{"use strict";e.exports=r},8156:r=>{"use strict";r.exports=e}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={id:e,exports:{}};return a[e](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var a in r)o.o(r,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{ParauiProvider:()=>u,default:()=>s});var e=o(8156),r=o.n(e),a=o(63732),t=o(58543),l=o(20075);o(83452);function n(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function c(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),t.forEach((function(r){n(e,r,a[r])}))}return e}function b(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})),e}var u=function(e){return r().useEffect((function(){console.log("%c para-ui react version ===>","color:#ff4d4f",version);var r=e.language||(0,t.GetLanguage)(),o=(e.locale||{})[r]||{};null===a.changeConfirmLocale||void 0===a.changeConfirmLocale||(0,a.changeConfirmLocale)(o,r)}),[e.language,e.locale]),r().createElement(a.default.Provider,{value:b(c({},e),{language:e.language||(0,t.GetLanguage)(),intlFormat:function(r,a){return function(o,i){var c=e.language||(0,t.GetLanguage)(),b=(e.locale||{})[c]||{};return b=n({},c,b[r]||{}),(0,l.ex)({ops:o,i18nData:b,lang:c,params:i,defI18nData:a})}}})},e.children)};const s=u})(),i})()));
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,((e,r)=>(()=>{var a={55223:(e,r,a)=>{(r=a(23645)(!1)).push([e.id,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}::-webkit-scrollbar{width:8px;height:8px;background-color:#eaecf1}::-webkit-scrollbar-track{border-radius:4px}::-webkit-scrollbar-thumb{background:#a1a8b3;border-radius:4px}::-webkit-scrollbar-corner{background:#eaecf1}::-webkit-scrollbar-thumb:hover{background:#d4dae3}::-webkit-scrollbar-thumb:active{background:#d4dae3}::-webkit-scrollbar-thumb:window-inactive{background-color:#a1a8b3}.paraui-v4-scrollbar-small *::-webkit-scrollbar,.paraui-v4-scrollbar-small::-webkit-scrollbar{width:4px;height:4px}.paraui-v4-scrollbar-small *::-webkit-scrollbar-track,.paraui-v4-scrollbar-small::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-small *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-small::-webkit-scrollbar-thumb{border-radius:2px}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar{width:4px;height:4px;background-color:#5c6573}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-track,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb{border-radius:2px;background:#d4dae3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-corner,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-scrollbar-medium *::-webkit-scrollbar,.paraui-v4-scrollbar-medium::-webkit-scrollbar{width:4px;height:4px}.paraui-v4-scrollbar-medium *::-webkit-scrollbar-track,.paraui-v4-scrollbar-medium::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-medium *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-medium::-webkit-scrollbar-thumb{border-radius:2px}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar{width:4px;height:4px;background-color:#5c6573}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-track,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-track{border-radius:2px}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb{border-radius:2px;background:#d4dae3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-corner,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-scrollbar-large *::-webkit-scrollbar,.paraui-v4-scrollbar-large::-webkit-scrollbar{width:8px;height:8px}.paraui-v4-scrollbar-large *::-webkit-scrollbar-track,.paraui-v4-scrollbar-large::-webkit-scrollbar-track{border-radius:4px}.paraui-v4-scrollbar-large *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-large::-webkit-scrollbar-thumb{border-radius:4px}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar{width:8px;height:8px;background-color:#5c6573}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-track,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-track{border-radius:4px}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb{border-radius:4px;background:#d4dae3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-corner,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-corner{background:#5c6573}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:hover,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:hover{background:#a1a8b3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:active,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:active{background:#a1a8b3}.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb:window-inactive,.paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb:window-inactive{background-color:#d4dae3}.paraui-v4-form .paraui-v4-helper-text{min-height:20px}*{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}html,body{width:100%;height:100%;overflow:hidden}ol,ul{list-style:none}a,h1,h2,h3,h4,h5,h6,input,select,button,textarea{outline:none}svg{overflow:hidden}",""]),e.exports=r},23645:e=>{"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var a=function(e,r){var a=e[1]||"",t=e[3];if(!t)return a;if(r&&"function"==typeof btoa){var o=(l=t,n=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(c," */")),i=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[a].concat(i).concat([o]).join("\n")}var l,n,c;return[a].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a})).join("")},r.i=function(e,a,t){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(t)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var n=0;n<e.length;n++){var c=[].concat(e[n]);t&&o[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),r.push(c))}},r}},83452:(e,r,a)=>{var t=a(93379),o=a(55223);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};t(o,i);e.exports=o.locals||{}},93379:(e,r,a)=>{"use strict";var t,o=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},i=function(){var e={};return function(r){if(void 0===e[r]){var a=document.querySelector(r);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[r]=a}return e[r]}}(),l=[];function n(e){for(var r=-1,a=0;a<l.length;a++)if(l[a].identifier===e){r=a;break}return r}function c(e,r){for(var a={},t=[],o=0;o<e.length;o++){var i=e[o],c=r.base?i[0]+r.base:i[0],b=a[c]||0,u="".concat(c," ").concat(b);a[c]=b+1;var s=n(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(l[s].references++,l[s].updater(d)):l.push({identifier:u,updater:v(d,r),references:1}),t.push(u)}return t}function b(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var o=a.nc;o&&(t.nonce=o)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var l=i(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(r)}return r}var u,s=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function d(e,r,a,t){var o=a?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=s(r,o);else{var i=document.createTextNode(o),l=e.childNodes;l[r]&&e.removeChild(l[r]),l.length?e.insertBefore(i,l[r]):e.appendChild(i)}}function p(e,r,a){var t=a.css,o=a.media,i=a.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var m=null,f=0;function v(e,r){var a,t,o;if(r.singleton){var i=f++;a=m||(m=b(r)),t=d.bind(null,a,i,!1),o=d.bind(null,a,i,!0)}else a=b(r),t=p.bind(null,a,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var a=c(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var o=n(a[t]);l[o].references--}for(var i=c(e,r),b=0;b<a.length;b++){var u=n(a[b]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}a=i}}}},63732:(e,r,a)=>{"use strict";a.d(r,{changeConfirmLocale:()=>s,default:()=>d});var t=a(8156),o=a.n(t),i=a(20075),l=a(58543),n=a(57213);function c(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function b(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),t.forEach((function(r){c(e,r,a[r])}))}return e}var u=b({},n.Z.zh),s=function(e,r){var a=e.Confirm;if(a)u=b({},u,a);else{r||(r=(0,l.GetLanguage)());var t=(null===n.Z||void 0===n.Z?void 0:n.Z[r])||n.Z.zh||{};u=b({},t)}};const d=o().createContext({language:(0,l.GetLanguage)(),intlFormat:function(e,r){return function(e,a){var t=(0,l.GetLanguage)();return(0,i.ex)({ops:e,i18nData:{},lang:t,params:a,defI18nData:r})}},componentsProps:{}})},20075:(e,r,a)=>{"use strict";a.d(r,{ex:()=>o});a(8156);var t=function(e,r){if(!r)return e;e=e.replace(/\"/g,'\\"');var a=/({[^{}]+})/g;return e.split(a).map((function(e){if(e.match(a)){var t=e.replace(/({|})/g,""),o=function(e,r,a){var t=r.replace(/\[(\d+)\]/g,".$1").split("."),o=e,i=!0,l=!1,n=void 0;try{for(var c,b=t[Symbol.iterator]();!(i=(c=b.next()).done);i=!0){var u=c.value;if(void 0===(o=Object(o)[u]))return a}}catch(e){l=!0,n=e}finally{try{i||null==b.return||b.return()}finally{if(l)throw n}}return o}(r,t);return void 0===o?t:o}return e}))},o=function(e){var r,a,o,i,l=e.ops,n=e.i18nData,c=e.lang,b=e.params,u=e.defI18nData;if("string"==typeof l)a=l;else if("object"==typeof l){if("string"!=typeof l.id)return'i18n intl object "id" is missing';a=l.id}void 0!==a&&(void 0===(r=null===(o=n[c])||void 0===o?void 0:o[a])&&u&&(r=null===(i=u[c])||void 0===i?void 0:i[a]));return"string"!=typeof r?"{".concat(a,"}"):t(r,b)}},57213:(e,r,a)=>{"use strict";a.d(r,{Z:()=>i});const t={cancel:"Cancel",ok:"Ok"},o={cancel:"取 消",ok:"确 定"},i={zh:o,en:t,"zh-CN":o,"en-US":t}},58543:e=>{"use strict";e.exports=r},8156:r=>{"use strict";r.exports=e}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={id:e,exports:{}};return a[e](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var a in r)o.o(r,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{ParauiProvider:()=>u,default:()=>s});var e=o(8156),r=o.n(e),a=o(63732),t=o(58543),l=o(20075);o(83452);function n(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function c(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),t.forEach((function(r){n(e,r,a[r])}))}return e}function b(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,t)}return a}(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})),e}var u=function(o){return r().useEffect((function(){console.log("%c para-ui react version ===>","color:#ff4d4f",e.version);var r=o.language||(0,t.GetLanguage)(),i=(o.locale||{})[r]||{};null===a.changeConfirmLocale||void 0===a.changeConfirmLocale||(0,a.changeConfirmLocale)(i,r)}),[o.language,o.locale]),r().createElement(a.default.Provider,{value:b(c({},o),{language:o.language||(0,t.GetLanguage)(),intlFormat:function(e,r){return function(a,i){var c=o.language||(0,t.GetLanguage)(),b=(o.locale||{})[c]||{};return b=n({},c,b[e]||{}),(0,l.ex)({ops:a,i18nData:b,lang:c,params:i,defI18nData:r})}}})},o.children)};const s=u})(),i})()));
@@ -1,327 +0,0 @@
1
- import { _ as _typeof } from './typeof-6ec38efd.js';
2
-
3
- var regeneratorRuntime$1 = {exports: {}};
4
-
5
- (function (module) {
6
- var _typeof$1 = _typeof.exports["default"];
7
- function _regeneratorRuntime() {
8
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
9
- return e;
10
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
11
- var t,
12
- e = {},
13
- r = Object.prototype,
14
- n = r.hasOwnProperty,
15
- o = Object.defineProperty || function (t, e, r) {
16
- t[e] = r.value;
17
- },
18
- i = "function" == typeof Symbol ? Symbol : {},
19
- a = i.iterator || "@@iterator",
20
- c = i.asyncIterator || "@@asyncIterator",
21
- u = i.toStringTag || "@@toStringTag";
22
- function define(t, e, r) {
23
- return Object.defineProperty(t, e, {
24
- value: r,
25
- enumerable: !0,
26
- configurable: !0,
27
- writable: !0
28
- }), t[e];
29
- }
30
- try {
31
- define({}, "");
32
- } catch (t) {
33
- define = function define(t, e, r) {
34
- return t[e] = r;
35
- };
36
- }
37
- function wrap(t, e, r, n) {
38
- var i = e && e.prototype instanceof Generator ? e : Generator,
39
- a = Object.create(i.prototype),
40
- c = new Context(n || []);
41
- return o(a, "_invoke", {
42
- value: makeInvokeMethod(t, r, c)
43
- }), a;
44
- }
45
- function tryCatch(t, e, r) {
46
- try {
47
- return {
48
- type: "normal",
49
- arg: t.call(e, r)
50
- };
51
- } catch (t) {
52
- return {
53
- type: "throw",
54
- arg: t
55
- };
56
- }
57
- }
58
- e.wrap = wrap;
59
- var h = "suspendedStart",
60
- l = "suspendedYield",
61
- f = "executing",
62
- s = "completed",
63
- y = {};
64
- function Generator() {}
65
- function GeneratorFunction() {}
66
- function GeneratorFunctionPrototype() {}
67
- var p = {};
68
- define(p, a, function () {
69
- return this;
70
- });
71
- var d = Object.getPrototypeOf,
72
- v = d && d(d(values([])));
73
- v && v !== r && n.call(v, a) && (p = v);
74
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
75
- function defineIteratorMethods(t) {
76
- ["next", "throw", "return"].forEach(function (e) {
77
- define(t, e, function (t) {
78
- return this._invoke(e, t);
79
- });
80
- });
81
- }
82
- function AsyncIterator(t, e) {
83
- function invoke(r, o, i, a) {
84
- var c = tryCatch(t[r], t, o);
85
- if ("throw" !== c.type) {
86
- var u = c.arg,
87
- h = u.value;
88
- return h && "object" == _typeof$1(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
89
- invoke("next", t, i, a);
90
- }, function (t) {
91
- invoke("throw", t, i, a);
92
- }) : e.resolve(h).then(function (t) {
93
- u.value = t, i(u);
94
- }, function (t) {
95
- return invoke("throw", t, i, a);
96
- });
97
- }
98
- a(c.arg);
99
- }
100
- var r;
101
- o(this, "_invoke", {
102
- value: function value(t, n) {
103
- function callInvokeWithMethodAndArg() {
104
- return new e(function (e, r) {
105
- invoke(t, n, e, r);
106
- });
107
- }
108
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
109
- }
110
- });
111
- }
112
- function makeInvokeMethod(e, r, n) {
113
- var o = h;
114
- return function (i, a) {
115
- if (o === f) throw new Error("Generator is already running");
116
- if (o === s) {
117
- if ("throw" === i) throw a;
118
- return {
119
- value: t,
120
- done: !0
121
- };
122
- }
123
- for (n.method = i, n.arg = a;;) {
124
- var c = n.delegate;
125
- if (c) {
126
- var u = maybeInvokeDelegate(c, n);
127
- if (u) {
128
- if (u === y) continue;
129
- return u;
130
- }
131
- }
132
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
133
- if (o === h) throw o = s, n.arg;
134
- n.dispatchException(n.arg);
135
- } else "return" === n.method && n.abrupt("return", n.arg);
136
- o = f;
137
- var p = tryCatch(e, r, n);
138
- if ("normal" === p.type) {
139
- if (o = n.done ? s : l, p.arg === y) continue;
140
- return {
141
- value: p.arg,
142
- done: n.done
143
- };
144
- }
145
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
146
- }
147
- };
148
- }
149
- function maybeInvokeDelegate(e, r) {
150
- var n = r.method,
151
- o = e.iterator[n];
152
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
153
- var i = tryCatch(o, e.iterator, r.arg);
154
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
155
- var a = i.arg;
156
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
157
- }
158
- function pushTryEntry(t) {
159
- var e = {
160
- tryLoc: t[0]
161
- };
162
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
163
- }
164
- function resetTryEntry(t) {
165
- var e = t.completion || {};
166
- e.type = "normal", delete e.arg, t.completion = e;
167
- }
168
- function Context(t) {
169
- this.tryEntries = [{
170
- tryLoc: "root"
171
- }], t.forEach(pushTryEntry, this), this.reset(!0);
172
- }
173
- function values(e) {
174
- if (e || "" === e) {
175
- var r = e[a];
176
- if (r) return r.call(e);
177
- if ("function" == typeof e.next) return e;
178
- if (!isNaN(e.length)) {
179
- var o = -1,
180
- i = function next() {
181
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
182
- return next.value = t, next.done = !0, next;
183
- };
184
- return i.next = i;
185
- }
186
- }
187
- throw new TypeError(_typeof$1(e) + " is not iterable");
188
- }
189
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
190
- value: GeneratorFunctionPrototype,
191
- configurable: !0
192
- }), o(GeneratorFunctionPrototype, "constructor", {
193
- value: GeneratorFunction,
194
- configurable: !0
195
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
196
- var e = "function" == typeof t && t.constructor;
197
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
198
- }, e.mark = function (t) {
199
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
200
- }, e.awrap = function (t) {
201
- return {
202
- __await: t
203
- };
204
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
205
- return this;
206
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
207
- void 0 === i && (i = Promise);
208
- var a = new AsyncIterator(wrap(t, r, n, o), i);
209
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
210
- return t.done ? t.value : a.next();
211
- });
212
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
213
- return this;
214
- }), define(g, "toString", function () {
215
- return "[object Generator]";
216
- }), e.keys = function (t) {
217
- var e = Object(t),
218
- r = [];
219
- for (var n in e) r.push(n);
220
- return r.reverse(), function next() {
221
- for (; r.length;) {
222
- var t = r.pop();
223
- if (t in e) return next.value = t, next.done = !1, next;
224
- }
225
- return next.done = !0, next;
226
- };
227
- }, e.values = values, Context.prototype = {
228
- constructor: Context,
229
- reset: function reset(e) {
230
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
231
- },
232
- stop: function stop() {
233
- this.done = !0;
234
- var t = this.tryEntries[0].completion;
235
- if ("throw" === t.type) throw t.arg;
236
- return this.rval;
237
- },
238
- dispatchException: function dispatchException(e) {
239
- if (this.done) throw e;
240
- var r = this;
241
- function handle(n, o) {
242
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
243
- }
244
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
245
- var i = this.tryEntries[o],
246
- a = i.completion;
247
- if ("root" === i.tryLoc) return handle("end");
248
- if (i.tryLoc <= this.prev) {
249
- var c = n.call(i, "catchLoc"),
250
- u = n.call(i, "finallyLoc");
251
- if (c && u) {
252
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
253
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
254
- } else if (c) {
255
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
256
- } else {
257
- if (!u) throw new Error("try statement without catch or finally");
258
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
259
- }
260
- }
261
- }
262
- },
263
- abrupt: function abrupt(t, e) {
264
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
265
- var o = this.tryEntries[r];
266
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
267
- var i = o;
268
- break;
269
- }
270
- }
271
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
272
- var a = i ? i.completion : {};
273
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
274
- },
275
- complete: function complete(t, e) {
276
- if ("throw" === t.type) throw t.arg;
277
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
278
- },
279
- finish: function finish(t) {
280
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
281
- var r = this.tryEntries[e];
282
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
283
- }
284
- },
285
- "catch": function _catch(t) {
286
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
287
- var r = this.tryEntries[e];
288
- if (r.tryLoc === t) {
289
- var n = r.completion;
290
- if ("throw" === n.type) {
291
- var o = n.arg;
292
- resetTryEntry(r);
293
- }
294
- return o;
295
- }
296
- }
297
- throw new Error("illegal catch attempt");
298
- },
299
- delegateYield: function delegateYield(e, r, n) {
300
- return this.delegate = {
301
- iterator: values(e),
302
- resultName: r,
303
- nextLoc: n
304
- }, "next" === this.method && (this.arg = t), y;
305
- }
306
- }, e;
307
- }
308
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
309
- } (regeneratorRuntime$1));
310
-
311
- // TODO(Babel 8): Remove this file.
312
-
313
- var runtime = regeneratorRuntime$1.exports();
314
- var regenerator = runtime;
315
-
316
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
317
- try {
318
- regeneratorRuntime = runtime;
319
- } catch (accidentalStrictMode) {
320
- if (typeof globalThis === "object") {
321
- globalThis.regeneratorRuntime = runtime;
322
- } else {
323
- Function("r", "regeneratorRuntime = r")(runtime);
324
- }
325
- }
326
-
327
- export { regenerator as r };