@ovine/init
Version:
Apply ovine template more easily.
2 lines • 1.37 MB
JavaScript
/*! For license information please see dll_entry.js.LICENSE.txt */
window.dll_entry=function(e){function getPath(){ var _path = ""; try {throw new Error()} catch (e) {var info = e.stack.match(/((?:https?|file):.*)/);if(info) { var temp = info[0]; _path = temp.slice(0, temp.lastIndexOf("/"));}} return _path + "/"; } window.OVINE_DLL_PATH = getPath(); window.OVINE_DLL_VERSION="0.1.7"; if (window.OVINE_DLL_REQUIRE_VER !== "0.1.7") { console.error('current dll version is not match ovine lib require. Please replace the dll version to "'+ window.OVINE_DLL_REQUIRE_VER +'".'); }function t(t){for(var a,r,l=t[0],s=t[1],u=t[2],c=0,p=[];c<l.length;c++)r=l[c],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&p.push(i[r][0]),i[r]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);for(d&&d(t);p.length;)p.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,r=1;r<n.length;r++){var s=n[r];0!==i[s]&&(a=!1)}a&&(o.splice(t--,1),e=l(l.s=n[0]))}return e}var a={},r={6:0},i={6:0},o=[];function l(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{1:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="dll_chunk_"+({0:"monaco_languages"}[e]||e)+".css",i=window.OVINE_DLL_PATH+a,o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var u=(d=o[s]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(u===a||u===i))return t()}var c=document.getElementsByTagName("style");for(s=0;s<c.length;s++){var d;if((u=(d=c[s]).getAttribute("data-href"))===a||u===i)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var a=t&&t.target&&t.target.src||i,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=a,delete r[e],p.parentNode.removeChild(p),n(o)},p.href=i,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=i[e]=[t,a]}));t.push(n[2]=a);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,l.nc&&s.setAttribute("nonce",l.nc),s.src=function(e){ return window.OVINE_DLL_PATH+"dll_chunk_"+({0:"monaco_languages"}[e]||e)+".js"}(e);var u=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=i[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",u.name="ChunkLoadError",u.type=a,u.request=r,n[1](u)}i[e]=void 0}};var c=setTimeout((function(){o({type:"timeout",target:s})}),12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},l.m=e,l.c=a,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)l.d(n,a,function(t){return e[t]}.bind(null,a));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp_name_=window.webpackJsonp_name_||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var d=u;return o.push([533,5,4]),n()}([,,,function(e,t,n){e.exports=n(536)()},,,,,,,,,function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",(function(){return a}))},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)&&a.length){var o=r.apply(null,a);o&&e.push(o)}else if("object"===i)for(var l in a)n.call(a,l)&&a[l]&&e.push(l)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",(function(){return a}))},,,,,,function(e,t,n){"use strict";n.r(t);var a=n(247);n.d(t,"useUncontrolled",(function(){return a.default})),n.d(t,"useUncontrolledProp",(function(){return a.useUncontrolledProp}));var r=n(362);n.d(t,"uncontrollable",(function(){return r.default}))},function(e,t,n){"use strict";n.r(t),n.d(t,"FILE_INVALID_TYPE",(function(){return s})),n.d(t,"FILE_TOO_LARGE",(function(){return u})),n.d(t,"FILE_TOO_SMALL",(function(){return c})),n.d(t,"TOO_MANY_FILES",(function(){return d})),n.d(t,"ErrorCode",(function(){return p})),n.d(t,"getInvalidTypeRejectionErr",(function(){return f})),n.d(t,"getTooLargeRejectionErr",(function(){return m})),n.d(t,"getTooSmallRejectionErr",(function(){return h})),n.d(t,"TOO_MANY_FILES_REJECTION",(function(){return v})),n.d(t,"fileAccepted",(function(){return b})),n.d(t,"fileMatchSize",(function(){return g})),n.d(t,"allFilesAccepted",(function(){return _})),n.d(t,"isPropagationStopped",(function(){return w})),n.d(t,"isEvtWithFiles",(function(){return S})),n.d(t,"isKindFile",(function(){return x})),n.d(t,"onDocumentDragOver",(function(){return E})),n.d(t,"isIeOrEdge",(function(){return k})),n.d(t,"composeEventHandlers",(function(){return T}));var a=n(289),r=n.n(a);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s="file-invalid-type",u="file-too-large",c="file-too-small",d="too-many-files",p={FileInvalidType:s,FileTooLarge:u,FileTooSmall:c,TooManyFiles:d},f=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:s,message:"File type must be ".concat(t)}},m=function(e){return{code:u,message:"File is larger than ".concat(e," bytes")}},h=function(e){return{code:c,message:"File is smaller than ".concat(e," bytes")}},v={code:d,message:"Too many files"};function b(e,t){var n="application/x-moz-file"===e.type||r()(e,t);return[n,n?null:f(t)]}function g(e,t,n){if(y(e.size))if(y(t)&&y(n)){if(e.size>n)return[!1,m(n)];if(e.size<t)return[!1,h(t)]}else{if(y(t)&&e.size<t)return[!1,h(t)];if(y(n)&&e.size>n)return[!1,m(n)]}return[!0,null]}function y(e){return null!=e}function _(e){var t=e.files,n=e.accept,a=e.minSize,r=e.maxSize,i=e.multiple,l=e.maxFiles;return!(!i&&t.length>1||i&&l>=1&&t.length>l)&&t.every((function(e){var t=o(b(e,n),1)[0],i=o(g(e,a,r),1)[0];return t&&i}))}function w(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function S(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function x(e){return"object"===i(e)&&null!==e&&"file"===e.kind}function E(e){e.preventDefault()}function O(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function C(e){return-1!==e.indexOf("Edge/")}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return O(e)||C(e)}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return t.some((function(t){return!w(e)&&t&&t.apply(void 0,[e].concat(a)),w(e)}))}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e},e.exports.default=e.exports,e.exports.__esModule=!0},,,,function(e,t,n){var a=n(202).default;function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){var a=n(202).default,r=n(33);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?r(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var a=n(987);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"MemoryRouter",(function(){return g})),n.d(t,"Prompt",(function(){return _})),n.d(t,"Redirect",(function(){return E})),n.d(t,"Route",(function(){return T})),n.d(t,"Router",(function(){return b})),n.d(t,"StaticRouter",(function(){return M})),n.d(t,"Switch",(function(){return D})),n.d(t,"__HistoryContext",(function(){return h})),n.d(t,"__RouterContext",(function(){return v})),n.d(t,"generatePath",(function(){return x})),n.d(t,"matchPath",(function(){return k})),n.d(t,"useHistory",(function(){return B})),n.d(t,"useLocation",(function(){return L})),n.d(t,"useParams",(function(){return $})),n.d(t,"useRouteMatch",(function(){return V})),n.d(t,"withRouter",(function(){return R}));var a=n(57),r=n(0),i=n.n(r),o=(n(3),n(63)),l=n(292),s=n(58),u=n(17),c=n(293),d=n.n(c),p=(n(72),n(74)),f=n(38),m=n.n(f),h=function(e){var t=Object(l.default)();return t.displayName=e,t}("Router-History"),v=function(e){var t=Object(l.default)();return t.displayName=e,t}("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(a.default)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);var g=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).history=Object(o.createMemoryHistory)(t.props),t}return Object(a.default)(t,e),t.prototype.render=function(){return i.a.createElement(b,{history:this.history,children:this.props.children})},t}(i.a.Component);var y=function(e){function t(){return e.apply(this,arguments)||this}Object(a.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);function _(e){var t=e.message,n=e.when,a=void 0===n||n;return i.a.createElement(v.Consumer,null,(function(e){if(e||Object(s.default)(!1),!a||e.staticContext)return null;var n=e.history.block;return i.a.createElement(y,{onMount:function(e){e.release=n(t)},onUpdate:function(e,a){a.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var w={},S=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d.a.compile(e);return S<1e4&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function E(e){var t=e.computedMatch,n=e.to,a=e.push,r=void 0!==a&&a;return i.a.createElement(v.Consumer,null,(function(e){e||Object(s.default)(!1);var a=e.history,l=e.staticContext,c=r?a.push:a.replace,d=Object(o.createLocation)(t?"string"==typeof n?x(n,t.params):Object(u.default)({},n,{pathname:x(n.pathname,t.params)}):n);return l?(c(d),null):i.a.createElement(y,{onMount:function(){c(d)},onUpdate:function(e,t){var n=Object(o.createLocation)(t.to);Object(o.locationsAreEqual)(n,Object(u.default)({},d,{key:n.key}))||c(d)},to:n})}))}var O={},C=0;function k(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,a=n.path,r=n.exact,i=void 0!==r&&r,o=n.strict,l=void 0!==o&&o,s=n.sensitive,u=void 0!==s&&s;return[].concat(a).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var a=function(e,t){var n=""+t.end+t.strict+t.sensitive,a=O[n]||(O[n]={});if(a[e])return a[e];var r=[],i={regexp:d()(e,r,t),keys:r};return C<1e4&&(a[e]=i,C++),i}(n,{end:i,strict:l,sensitive:u}),r=a.regexp,o=a.keys,s=r.exec(e);if(!s)return null;var c=s[0],p=s.slice(1),f=e===c;return i&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:o.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var T=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.default)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(v.Consumer,null,(function(t){t||Object(s.default)(!1);var n=e.props.location||t.location,a=e.props.computedMatch?e.props.computedMatch:e.props.path?k(n.pathname,e.props):t.match,r=Object(u.default)({},t,{location:n,match:a}),o=e.props,l=o.children,c=o.component,d=o.render;return Array.isArray(l)&&0===l.length&&(l=null),i.a.createElement(v.Provider,{value:r},r.match?l?"function"==typeof l?l(r):l:c?i.a.createElement(c,r):d?d(r):null:"function"==typeof l?l(r):null)}))},t}(i.a.Component);function N(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=N(e);return 0!==t.pathname.indexOf(n)?t:Object(u.default)({},t,{pathname:t.pathname.substr(n.length)})}function I(e){return"string"==typeof e?e:Object(o.createPath)(e)}function A(e){return function(){Object(s.default)(!1)}}function j(){}var M=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return j},t.handleBlock=function(){return j},t}Object(a.default)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,a=n.basename,r=void 0===a?"":a,i=n.context,l=void 0===i?{}:i;l.action=t,l.location=function(e,t){return e?Object(u.default)({},t,{pathname:N(e)+t.pathname}):t}(r,Object(o.createLocation)(e)),l.url=I(l.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,a=e.context,r=void 0===a?{}:a,l=e.location,s=void 0===l?"/":l,c=Object(p.default)(e,["basename","context","location"]),d={createHref:function(e){return N(n+I(e))},action:"POP",location:P(n,Object(o.createLocation)(s)),push:this.handlePush,replace:this.handleReplace,go:A(),goBack:A(),goForward:A(),listen:this.handleListen,block:this.handleBlock};return i.a.createElement(b,Object(u.default)({},c,{history:d,staticContext:r}))},t}(i.a.Component);var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.default)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(v.Consumer,null,(function(t){t||Object(s.default)(!1);var n,a,r=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==a&&i.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;a=o?k(r.pathname,Object(u.default)({},e.props,{path:o})):t.match}})),a?i.a.cloneElement(n,{location:r,computedMatch:a}):null}))},t}(i.a.Component);function R(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,a=Object(p.default)(t,["wrappedComponentRef"]);return i.a.createElement(v.Consumer,null,(function(t){return t||Object(s.default)(!1),i.a.createElement(e,Object(u.default)({},a,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,m()(n,e)}var F=i.a.useContext;function B(){return F(h)}function L(){return F(v).location}function $(){var e=F(v).match;return e?e.params:{}}function V(e){var t=L(),n=F(v).match;return e?k(t.pathname,e):n}},,function(e,t,n){"use strict";var a=n(72),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return a.isMemo(e)?o:l[e.$$typeof]||r}l[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[a.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,a){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,a)}var o=c(n);d&&(o=o.concat(d(n)));for(var l=s(t),h=s(n),v=0;v<o.length;++v){var b=o[v];if(!(i[b]||a&&a[b]||h&&h[b]||l&&l[b])){var g=p(n,b);try{u(t,b,g)}catch(e){}}}}return t}},,,,,,function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.r(t),n.d(t,"default",(function(){return a}))},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"trimNumber",(function(){return r})),n.d(t,"isE",(function(){return i})),n.d(t,"getNumberPrecision",(function(){return o})),n.d(t,"num2str",(function(){return l})),n.d(t,"validateNumber",(function(){return s}));var a=n(167);function r(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var a=t||"0",r=a.split("."),i=r[0]||"0",o=r[1]||"0";"0"===i&&"0"===o&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:a,integerStr:i,decimalStr:o,fullStr:"".concat(l).concat(a)}}function i(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function o(e){var t=String(e);if(i(e)){var n=Number(t.slice(t.indexOf("e-")+2)),a=t.match(/\.(\d+)/);return(null==a?void 0:a[1])&&(n+=a[1].length),n}return t.includes(".")&&s(t)?t.length-t.indexOf(".")-1:0}function l(e){var t=String(e);if(i(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Object(a.supportBigInt)()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Object(a.supportBigInt)()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(o(t))}return r(t).fullStr}function s(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}},,,,,function(e,t,n){"use strict";n.r(t);n(676);var a=n(465),r=n(164),i=n(108);n.d(t,"isUsingStaticRendering",(function(){return i.isUsingStaticRendering})),n.d(t,"useStaticRendering",(function(){return i.useStaticRendering}));var o=n(358);n.d(t,"observer",(function(){return o.observer}));var l=n(128);n.d(t,"useObserver",(function(){return l.useObserver}));var s=n(359);n.d(t,"Observer",(function(){return s.Observer}));var u=n(73);n.d(t,"useForceUpdate",(function(){return u.useForceUpdate}));var c=n(201);n.d(t,"useAsObservableSource",(function(){return c.useAsObservableSource}));var d=n(360);n.d(t,"useLocalStore",(function(){return d.useLocalStore}));var p=n(129);n.d(t,"useQueuedForceUpdate",(function(){return p.useQueuedForceUpdate})),n.d(t,"useQueuedForceUpdateBlock",(function(){return p.useQueuedForceUpdateBlock})),n.d(t,"isObserverBatched",(function(){return r.isObserverBatched})),n.d(t,"observerBatching",(function(){return r.observerBatching})),Object(r.observerBatching)(a.unstable_batchedUpdates)},,function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var a=n(490),r=n(491),i=n(492),o=n(493);function l(e,t){return Object(a.default)(e)||Object(r.default)(e,t)||Object(i.default)(e,t)||Object(o.default)()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(203);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(a.default)(e,t)}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return l})),n.d(t,"__param",(function(){return s})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return m})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__spreadArray",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return O})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}function l(e,t,n,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t){return function(n,a){t(n,a,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function l(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((a=a.apply(e,t||[])).next())}))}function d(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var p=Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,r++)a[r]=i[o];return a}function g(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,r=n.apply(e,t||[]),i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(e){r[e]&&(a[e]=function(t){return new Promise((function(n,a){i.push([e,t,n,a])>1||l(e,t)}))})}function l(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){l("next",e)}function u(e){l("throw",e)}function c(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function w(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:y(e[a](t)),done:"return"===a}:r?r(t):t}:r}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"createBrowserHistory",(function(){return y})),n.d(t,"createHashHistory",(function(){return E})),n.d(t,"createMemoryHistory",(function(){return C})),n.d(t,"createLocation",(function(){return f})),n.d(t,"locationsAreEqual",(function(){return m})),n.d(t,"parsePath",(function(){return d})),n.d(t,"createPath",(function(){return p}));var a=n(17),r=n(459),i=n(460),o=n(58);function l(e){return"/"===e.charAt(0)?e:"/"+e}function s(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function c(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e||"/",n="",a="",r=t.indexOf("#");-1!==r&&(a=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===a?"":a}}function p(e){var t=e.pathname,n=e.search,a=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function f(e,t,n,i){var o;"string"==typeof e?(o=d(e)).state=t:(void 0===(o=Object(a.default)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Object(r.default)(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(i.default)(e.state,t.state)}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,a,r){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof a?a(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function a(){n&&e.apply(void 0,arguments)}return t.push(a),function(){n=!1,t=t.filter((function(e){return e!==a}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function g(){try{return window.history.state||{}}catch(e){return{}}}function y(e){void 0===e&&(e={}),v||Object(o.default)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,d=s.forceRefresh,m=void 0!==d&&d,y=s.getUserConfirmation,_=void 0===y?b:y,w=s.keyLength,S=void 0===w?6:w,x=e.basename?c(l(e.basename)):"";function E(e){var t=e||{},n=t.key,a=t.state,r=window.location,i=r.pathname+r.search+r.hash;return x&&(i=u(i,x)),f(i,a,n)}function O(){return Math.random().toString(36).substr(2,S)}var C=h();function k(e){Object(a.default)(L,e),L.length=n.length,C.notifyListeners(L.location,L.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(E(e.state))}function N(){I(E(g()))}var P=!1;function I(e){if(P)P=!1,k();else{C.confirmTransitionTo(e,"POP",_,(function(t){t?k({action:"POP",location:e}):function(e){var t=L.location,n=j.indexOf(t.key);-1===n&&(n=0);var a=j.indexOf(e.key);-1===a&&(a=0);var r=n-a;r&&(P=!0,D(r))}(e)}))}}var A=E(g()),j=[A.key];function M(e){return x+p(e)}function D(e){n.go(e)}var R=0;function F(e){1===(R+=e)&&1===e?(window.addEventListener("popstate",T),i&&window.addEventListener("hashchange",N)):0===R&&(window.removeEventListener("popstate",T),i&&window.removeEventListener("hashchange",N))}var B=!1;var L={length:n.length,action:"POP",location:A,createHref:M,push:function(e,t){var a=f(e,t,O(),L.location);C.confirmTransitionTo(a,"PUSH",_,(function(e){if(e){var t=M(a),i=a.key,o=a.state;if(r)if(n.pushState({key:i,state:o},null,t),m)window.location.href=t;else{var l=j.indexOf(L.location.key),s=j.slice(0,l+1);s.push(a.key),j=s,k({action:"PUSH",location:a})}else window.location.href=t}}))},replace:function(e,t){var a=f(e,t,O(),L.location);C.confirmTransitionTo(a,"REPLACE",_,(function(e){if(e){var t=M(a),i=a.key,o=a.state;if(r)if(n.replaceState({key:i,state:o},null,t),m)window.location.replace(t);else{var l=j.indexOf(L.location.key);-1!==l&&(j[l]=a.key),k({action:"REPLACE",location:a})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=C.appendListener(e);return F(1),function(){F(-1),t()}}};return L}var _={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+s(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s,decodePath:l},slash:{encodePath:l,decodePath:l}};function w(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function x(e){window.location.replace(w(window.location.href)+"#"+e)}function E(e){void 0===e&&(e={}),v||Object(o.default)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?b:r,s=n.hashType,d=void 0===s?"slash":s,m=e.basename?c(l(e.basename)):"",g=_[d],y=g.encodePath,E=g.decodePath;function O(){var e=E(S());return m&&(e=u(e,m)),f(e)}var C=h();function k(e){Object(a.default)(L,e),L.length=t.length,C.notifyListeners(L.location,L.action)}var T=!1,N=null;function P(){var e,t,n=S(),a=y(n);if(n!==a)x(a);else{var r=O(),o=L.location;if(!T&&(t=r,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(N===p(r))return;N=null,function(e){if(T)T=!1,k();else{C.confirmTransitionTo(e,"POP",i,(function(t){t?k({action:"POP",location:e}):function(e){var t=L.location,n=M.lastIndexOf(p(t));-1===n&&(n=0);var a=M.lastIndexOf(p(e));-1===a&&(a=0);var r=n-a;r&&(T=!0,D(r))}(e)}))}}(r)}}var I=S(),A=y(I);I!==A&&x(A);var j=O(),M=[p(j)];function D(e){t.go(e)}var R=0;function F(e){1===(R+=e)&&1===e?window.addEventListener("hashchange",P):0===R&&window.removeEventListener("hashchange",P)}var B=!1;var L={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=w(window.location.href)),n+"#"+y(m+p(e))},push:function(e,t){var n=f(e,void 0,void 0,L.location);C.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=p(n),a=y(m+t);if(S()!==a){N=t,function(e){window.location.hash=e}(a);var r=M.lastIndexOf(p(L.location)),i=M.slice(0,r+1);i.push(t),M=i,k({action:"PUSH",location:n})}else k()}}))},replace:function(e,t){var n=f(e,void 0,void 0,L.location);C.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=p(n),a=y(m+t);S()!==a&&(N=t,x(a));var r=M.indexOf(p(L.location));-1!==r&&(M[r]=t),k({action:"REPLACE",location:n})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=C.appendListener(e);return F(1),function(){F(-1),t()}}};return L}function O(e,t,n){return Math.min(Math.max(e,t),n)}function C(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,l=void 0===o?0:o,s=t.keyLength,u=void 0===s?6:s,c=h();function d(e){Object(a.default)(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function m(){return Math.random().toString(36).substr(2,u)}var v=O(l,0,i.length-1),b=i.map((function(e){return f(e,void 0,"string"==typeof e?m():e.key||m())})),g=p;function y(e){var t=O(_.index+e,0,_.entries.length-1),a=_.entries[t];c.confirmTransitionTo(a,"POP",n,(function(e){e?d({action:"POP",location:a,index:t}):d()}))}var _={length:b.length,action:"POP",location:b[v],index:v,entries:b,createHref:g,push:function(e,t){var a=f(e,t,m(),_.location);c.confirmTransitionTo(a,"PUSH",n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:"PUSH",location:a,index:t,entries:n})}}))},replace:function(e,t){var a=f(e,t,m(),_.location);c.confirmTransitionTo(a,"REPLACE",n,(function(e){e&&(_.entries[_.index]=a,d({action:"REPLACE",location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";n.r(t),n.d(t,"NumberDecimal",(function(){return l})),n.d(t,"BigIntDecimal",(function(){return s})),n.d(t,"default",(function(){return u})),n.d(t,"toFixed",(function(){return c}));var a=n(165),r=n(166),i=n(49),o=n(167),l=function(){function e(t){Object(a.default)(this,e),this.origin="",this.number=void 0,this.empty=void 0,(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return Object(r.default)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(Object(i.getNumberPrecision)(this.number),Object(i.getNumberPrecision)(n));return new e(a.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":Object(i.num2str)(this.number):this.origin}}]),e}(),s=function(){function e(t){if(Object(a.default)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(Object(i.isE)(n)&&(n=Number(n)),n="string"==typeof n?n:Object(i.num2str)(n),Object(i.validateNumber)(n)){var r=Object(i.trimNumber)(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var l=o[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return Object(r.default)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=(this.alignDecimal(a)+n.alignDecimal(a)).toString(),o=Object(i.trimNumber)(r),l=o.negativeStr,s=o.trimStr,u="".concat(l).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":Object(i.trimNumber)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function u(e){return Object(o.supportBigInt)()?new s(e):new l(e)}function c(e,t,n){if(""===e)return"";var a=Object(i.trimNumber)(e),r=a.negativeStr,o=a.integerStr,l=a.decimalStr,s="".concat(t).concat(l),d="".concat(r).concat(o);if(n>=0){var p=Number(l[n]);return p>=5?c(u(e).add("".concat(r,"0.").concat("0".repeat(n)).concat(10-p)).toString(),t,n):0===n?d:"".concat(d).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?d:"".concat(d).concat(s)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t,n){"use strict";function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.r(t),n.d(t,"MultiDrag",(function(){return St})),n.d(t,"Sortable",(function(){return Ue})),n.d(t,"Swap",(function(){return dt}));function d(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var p=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=d(/Edge/i),m=d(/firefox/i),h=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),v=d(/iP(ad|od|hone)/i),b=d(/chrome/i)&&d(/android/i),g={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!p&&g)}function _(e,t,n){e.removeEventListener(t,n,!p&&g)}function w(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function S(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function x(e,t,n,a){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&w(e,t):w(e,t))||a&&e===n)return e;if(e===n)break}while(e=S(e))}return null}var E,O=/\s+/g;function C(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(O," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(O," ")}}function k(e,t,n){var a=e&&e.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=n+("string"==typeof n?"":"px")}}function T(e,t){var n="";if("string"==typeof e)n=e;else do{var a=k(e,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function N(e,t,n){if(e){var a=e.getElementsByTagName(t),r=0,i=a.length;if(n)for(;r<i;r++)n(a[r],r);return a}return[]}function P(){var e=document.scrollingElement;return e||document.documentElement}function I(e,t,n,a,r){if(e.getBoundingClientRect||e===window){var i,o,l,s,u,c,d;if(e!==window&&e.parentNode&&e!==P()?(o=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,d=i.width):(o=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!p))do{if(r&&r.getBoundingClientRect&&("none"!==k(r,"transform")||n&&"static"!==k(r,"position"))){var f=r.getBoundingClientRect();o-=f.top+parseInt(k(r,"border-top-width")),l-=f.left+parseInt(k(r,"border-left-width")),s=o+i.height,u=l+i.width;break}}while(r=r.parentNode);if(a&&e!==window){var m=T(r||e),h=m&&m.a,v=m&&m.d;m&&(s=(o/=v)+(c/=v),u=(l/=h)+(d/=h))}return{top:o,left:l,bottom:s,right:u,width:d,height:c}}}function A(e,t,n){for(var a=F(e,!0),r=I(e)[t];a;){var i=I(a)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return a;if(a===P())break;a=F(a,!1)}return!1}function j(e,t,n,a){for(var r=0,i=0,o=e.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ue.ghost&&(a||o[i]!==Ue.dragged)&&x(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function M(e,t){for(var n=e.lastElementChild;n&&(n===Ue.ghost||"none"===k(n,"display")||t&&!w(n,t));)n=n.previousElementSibling;return n||null}function D(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ue.clone||t&&!w(e,t)||n++;return n}function R(e){var t=0,n=0,a=P();if(e)do{var r=T(e),i=r.a,o=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==a&&(e=e.parentNode));return[t,n]}function F(e,t){if(!e||!e.getBoundingClientRect)return P();var n=e,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(a||t)return n;a=!0}}}while(n=n.parentNode);return P()}function B(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function L(e,t){return function(){if(!E){var n=arguments,a=this;1===n.length?e.call(a,n[0]):e.apply(a,n),E=setTimeout((function(){E=void 0}),t)}}}function $(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function V(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function z(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function U(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var H="Sortable"+(new Date).getTime();function W(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==Ue.ghost){t.push({target:e,rect:I(e)});var n=r({},t[t.length-1].rect);if(e.thisAnimationDuration){var a=T(e,!0);a&&(n.top-=a.f,n.left-=a.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[n][a])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var a=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,i=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,l=I(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=T(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&B(s,l)&&!B(o,l)&&(c.top-l.top)/(c.left-l.left)==(o.top-l.top)/(o.left-l.left)&&(t=function(e,t,n,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*a.animation}(c,s,u,a.options)),B(l,o)||(n.prevFromRect=o,n.prevToRect=l,t||(t=a.options.animation),a.animate(n,c,l,t)),t&&(r=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,a){if(a){k(e,"transition",""),k(e,"transform","");var r=T(this.el),i=r&&r.a,o=r&&r.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(o||1);e.animatingX=!!l,e.animatingY=!!s,k(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),k(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),a)}}}}var q=[],K={initializeByDefault:!0},G={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);q.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),q.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var i=e+"Global";q.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][i]&&t[a.pluginName][i](r({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](r({sortable:t},n)))}))},initializePlugins:function(e,t,n,a){for(var r in q.forEach((function(a){var r=a.pluginName;if(e.options[r]||a.initializeByDefault){var i=new a(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,l(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return q.forEach((function(a){"function"==typeof a.eventProperties&&l(n,a.eventProperties.call(t[a.pluginName],e))})),n},modifyOption:function(e,t,n){var a;return q.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(a=r.optionListeners[t].call(e[r.pluginName],n))})),a}};function Y(e){var t=e.sortable,n=e.rootEl,a=e.name,i=e.targetEl,o=e.cloneEl,l=e.toEl,s=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,m=e.newDraggableIndex,h=e.originalEvent,v=e.putSortable,b=e.extraEventProperties;if(t=t||n&&n[H]){var g,y=t.options,_="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||p||f?(g=document.createEvent("Event")).initEvent(a,!0,!0):g=new CustomEvent(a,{bubbles:!0,cancelable:!0}),g.to=l||n,g.from=s||n,g.item=i||n,g.clone=o,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=m,g.originalEvent=h,g.pullMode=v?v.lastPutMode:void 0;var w=r(r({},b),G.getEventProperties(a,t));for(var S in w)g[S]=w[S];n&&n.dispatchEvent(g),y[_]&&y[_].call(t,g)}}var J=["evt"],X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,i=s(n,J);G.pluginEvent.bind(Ue)(e,t,r({dragEl:Z,parentEl:ee,ghostEl:te,rootEl:ne,nextEl:ae,lastDownEl:re,cloneEl:ie,cloneHidden:oe,dragStarted:ye,putSortable:pe,activeSortable:Ue.active,originalEvent:a,oldIndex:le,oldDraggableIndex:ue,newIndex:se,newDraggableIndex:ce,hideGhostForTarget:Le,unhideGhostForTarget:$e,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){Q({sortable:t,name:e,originalEvent:a})}},i))};function Q(e){Y(r({putSortable:pe,cloneEl:ie,targetEl:Z,rootEl:ne,oldIndex:le,oldDraggableIndex:ue,newIndex:se,newDraggableIndex:ce},e))}var Z,ee,te,ne,ae,re,ie,oe,le,se,ue,ce,de,pe,fe,me,he,ve,be,ge,ye,_e,we,Se,xe,Ee=!1,Oe=!1,Ce=[],ke=!1,Te=!1,Ne=[],Pe=!1,Ie=[],Ae="undefined"!=typeof document,je=v,Me=f||p?"cssFloat":"float",De=Ae&&!b&&!v&&"draggable"in document.createElement("div"),Re=function(){if(Ae){if(p)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Fe=function(e,t){var n=k(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=j(e,0,t),i=j(e,1,t),o=r&&k(r),l=i&&k(i),s=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+I(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&o.float&&"none"!==o.float){var c="left"===o.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||s>=a&&"none"===n[Me]||i&&"none"===n[Me]&&s+u>a)?"vertical":"horizontal"},Be=function(e){function t(e,n){return function(a,r,i,o){var l=a.options.group.name&&r.options.group.name&&a.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(a,r,i,o),n)(a,r,i,o);var s=(n?a:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},a=e.group;a&&"object"==i(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Le=function(){!Re&&te&&k(te,"display","none")},$e=function(){!Re&&te&&k(te,"display","")};Ae&&document.addEventListener("click",(function(e){if(Oe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Oe=!1,!1}),!0);var Ve=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Ce.some((function(e){var t=e[H].options.emptyInsertThreshold;if(t&&!M(e)){var n=I(e),a=r>=n.left-t&&r<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return a&&l?o=e:void 0}})),o);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}var r,i,o},ze=function(e){Z&&Z.parentNode[H]._isOutsideThisEl(e.target)};function Ue(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[H]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Fe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ue.supportPointer&&"PointerEvent"in window&&!h,emptyInsertThreshold:5};for(var a in G.initializePlugins(this,e,n),n)!(a in t)&&(t[a]=n[a]);for(var r in Be(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&De,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Ce.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,W())}function He(e,t,n,a,r,i,o,l){var s,u,c=e[H],d=c.options.onMove;return!window.CustomEvent||p||f?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=a,s.related=r||t,s.relatedRect=i||I(t),s.willInsertAfter=l,s.originalEvent=o,e.dispatchEvent(s),d&&(u=d.call(c,s,o)),u}function We(e){e.draggable=!1}function qe(){Pe=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,a=0;n--;)a+=t.charCodeAt(n);return a.toString(36)}function Ge(e){return setTimeout(e,0)}function Ye(e){return clearTimeout(e)}Ue.prototype={constructor:Ue,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(_e=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,r=a.preventOnFilter,i=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(o||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=a.filter;if(function(e){Ie.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var a=t[n];a.checked&&Ie.push(a)}}(n),!Z&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||a.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!h||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=x(l,a.draggable,n,!1))&&l.animated||re===l)){if(le=D(l),ue=D(l,a.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Q({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),X("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(a){if(a=x(s,a.trim(),n,!1))return Q({sortable:t,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),X("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());a.handle&&!x(s,a.handle,n,!1)||this._prepareDragStart(e,o,l)}}},_prepareDragStart:function(e,t,n){var a,r=this,i=r.el,o=r.options,l=i.ownerDocument;if(n&&!Z&&n.parentNode===i){var s=I(n);if(ne=i,ee=(Z=n).parentNode,ae=Z.nextSibling,re=n,de=o.group,Ue.dragged=Z,fe={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},be=fe.clientX-s.left,ge=fe.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",a=function(){X("delayEnded",r,{evt:e}),Ue.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!m&&r.nativeDraggable&&(Z.draggable=!0),r._triggerDragStart(e,t),Q({sortable:r,name:"choose",originalEvent:e}),C(Z,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){N(Z,e.trim(),We)})),y(l,"dragover",Ve),y(l,"mousemove",Ve),y(l,"touchmove",Ve),y(l,"mouseup",r._onDrop),y(l,"touchend",r._onDrop),y(l,"touchcancel",r._onDrop),m&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),X("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(f||p))a();else{if(Ue.eventCanceled)return void this._onDrop();y(l,"mouseup",r._disableDelayedDrag),y(l,"touchend",r._disableDelayedDrag),y(l,"touchcancel",r._disableDelayedDrag),y(l,"mousemove",r._delayedDragTouchMoveHandler),y(l,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&y(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(a,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&We(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._disableDelayedDrag),_(e,"touchend",this._disableDelayedDrag),_(e,"touchcancel",this._disableDelayedDrag),_(e,"mousemove",this._delayedDragTouchMoveHandler),_(e,"touchmove",this._delayedDragTouchMoveHandler),_(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(Z,"dragend",this),y(ne,"dragstart",this._onDragStart));try{document.selection?Ge((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Ee=!1,ne&&Z){X("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",ze);var n=this.options;!e&&C(Z,n.dragClass,!1),C(Z,n.ghostClass,!0),Ue.active=this,e&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(me){this._lastX=me.clientX,this._lastY=me.clientY,Le();for(var e=document.elementFromPoint(me.clientX,me.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(me.clientX,me.clientY))!==t;)t=e;if(Z.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]){if(t[H]._onDragOver({clientX:me.clientX,clientY:me.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);$e()}},_onTouchMove:function(e){if(fe){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=te&&T(te,!0),o=te&&i&&i.a,l=te&&i&&i.d,s=je&&xe&&R(xe),u=(r.clientX-fe.clientX+a.x)/(o||1)+(s?s[0]-Ne[0]:0)/(o||1),c=(r.clientY-fe.clientY+a.y)/(l||1)+(s?s[1]-Ne[1]:0)/(l||1);if(!Ue.active&&!Ee){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(te){i?(i.e+=u-(he||0),i.f+=c-(ve||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");k(te,"webkitTransform",d),k(te,"mozTransform",d),k(te,"msTransform",d),k(te,"transform",d),he=u,ve=c,me=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!te){var e=this.options.fallbackOnBody?document.body:ne,t=I(Z,!0,je,!0,e),n=this.options;if(je){for(xe=e;"static"===k(xe,"position")&&"none"===k(xe,"transform")&&xe!==document;)xe=xe.parentNode;xe!==document.body&&xe!==document.documentElement?(xe===document&&(xe=P()),t.top+=xe.scrollTop,t.left+=xe.scrollLeft):xe=P(),Ne=R(xe)}C(te=Z.cloneNode(!0),n.ghostClass,!1),C(te,n.fallbackClass,!0),C(te,n.dragClass,!0),k(te,"transition",""),k(te,"transform",""),k(te,"box-sizing","border-box"),k(te,"margin",0),k(te,"top",t.top),k(te,"left",t.left),k(te,"width",t.width),k(te,"height",t.height),k(te,"opacity","0.8"),k(te,"position",je?"absolute":"fixed"),k(te,"zIndex","100000"),k(te,"pointerEvents","none"),Ue.ghost=te,e.appendChild(te),k(te,"transform-origin",be/parseInt(te.style.width)*100+"% "+ge/parseInt(te.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,r=n.options;X("dragStart",this,{evt:e}),Ue.eventCanceled?this._onDrop():(X("setupClone",this),Ue.eventCanceled||((ie=V(Z)).draggable=!1,ie.style["will-change"]="",this._hideClone(),C(ie,this.options.chosenClass,!1),Ue.clone=ie),n.cloneId=Ge((function(){X("clone",n),Ue.eventCanceled||(n.options.removeCloneOnHide||ne.insertBefore(ie,Z),n._hideClone(),Q({sortable:n,name:"clone"}))})),!t&&C(Z,r.dragClass,!0),t?(Oe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,Z)),y(document,"drop",n),k(Z,"transform","translateZ(0)")),Ee=!0,n._dragStartId=Ge(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),ye=!0,h&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,a,i,o=this.el,l=e.target,s=this.options,u=s.group,c=Ue.active,d=de===u,p=s.sort,f=pe||c,m=this,h=!1;if(!Pe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=x(l,s.draggable,o,!0),B("dragOver"),Ue.eventCanceled)return h;if(Z.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return V(!1);if(Oe=!1,c&&!s.disabled&&(d?p||(a=ee!==ne):pe===this||(this.lastPutMode=de.checkPull(this,c,Z,e))&&u.checkPut(this,c,Z,e))){if(i="vertical"===this._getDirection(e,l),t=I(Z),B("dragOverValid"),Ue.eventCanceled)return h;if(a)return ee=ne,L(),this._hideClone(),B("revert"),Ue.eventCanceled||(ae?ne.insertBefore(Z,ae):ne.appendChild(Z)),V(!0);var v=M(o,s.draggable);if(!v||function(e,t,n){var a=I(M(n.el,n.options.draggable));return t?e.clientX>a.right+10||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+10}(e,i,this)&&!v.animated){if(v===Z)return V(!1);if(v&&o===e.target&&(l=v),l&&(n=I(l)),!1!==He(ne,o,Z,t,l,n,e,!!l))return L(),o.appendChild(Z),ee=o,z(),V(!0)}else if(v&&function(e,t,n){var a=I(j(n.el,0,n.options,!0));return t?e.clientX<a.left-10||e.clientY<a.top&&e.clientX<a.right:e.clientY<a.top-10||e.clientY<a.bottom&&e.clientX<a.left}(e,i,this)){var b=j(o,0,s,!0);if(b===Z)return V(!1);if(n=I(l=b),!1!==He(ne,o,Z,t,l,n,e,!1))return L(),o.insertBefore(Z,b),ee=o,z(),V(!0)}else if(l.parentNode===o){n=I(l);var g,y,_,w=Z.parentNode!==o,S=!function(e,t,n){var a=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,o=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return a===o||r===l||a+i/2===o+s/2}(Z.animated&&Z.toRect||t,l.animated&&l.toRect||n,i),E=i?"top":"left",O=A(l,"top","top")||A(Z,"top","top"),T=O?O.scrollTop:void 0;if(_e!==l&&(y=n[E],ke=!1,Te=!S&&s.invertSwap||w),0!==(g=function(e,t,n,a,r,i,o,l){var s=a?e.clientY:e.clientX,u=a?n.height:n.width,c=a?n.top:n.left,d=a?n.bottom:n.right,p=!1;if(!o)if(l&&Se<u*r){if(!ke&&(1===we?s>c+u*i/2:s<d-u*i/2)&&(ke=!0),ke)p=!0;else if(1===we?s<c+Se:s>d-Se)return-we}else if(s>c+u*(1-r)/2&&s<d-u*(1-r)/2)return function(e){return D(Z)<D(e)?1:-1}(t);if((p=p||o)&&(s<c+u*i/2||s>d-u*i/2))return s>c+u/2?1:-1;return 0}(e,l,n,i,S?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Te,_e===l))){var N=D(Z);do{N-=g,_=ee.children[N]}while(_&&("none"===k(_,"display")||_===te))}if(0===g||_===l)return V(!1);_e=l,we=g;var P=l.nextElementSibling,R=!1,F=He(ne,o,Z,t,l,n,e,R=1===g);if(!1!==F)return 1!==F&&-1!==F||(R=1===F),Pe=!0,setTimeout(qe,30),L(),R&&!P?o.appendChild(Z):l.parentNode.insertBefore(Z,R?P:l),O&&$(O,0,T-O.scrollTop),ee=Z.parentNode,void 0===y||Te||(Se=Math.abs(y-I(l)[E])),z(),V(!0)}if(o.contains(Z))return V(!1)}return!1}function B(s,u){X(s,m,r({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:a,dragRect:t,targetRect:n,canSort:p,fromSortable:f,target:l,completed:V,onMove:function(n,a){return He(ne,o,Z,t,n,I(n),e,a)},changed:z},u))}function L(){B("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function V(t){return B("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(m),m!==f&&(C(Z,pe?pe.options.ghostClass:c.options.ghostClass,!1),C(Z,s.ghostClass,!0)),pe!==m&&m!==Ue.active?pe=m:m===Ue.active&&pe&&(pe=null),f===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){B("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===Z&&!Z.animated||l===o&&!l.animated)&&(_e=null),s.dragoverBubble||e.rootEl||l===document||(Z.parentNode[H]._isOutsideThisEl(e.target),!t&&Ve(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function z(){se=D(Z),ce=D(Z,s.draggable),Q({sortable:m,name:"change",toEl:o,newIndex:se,newDraggableIndex:ce,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Ve),_(document,"mousemove",Ve),_(document,"touchmove",Ve)},_offUpEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._onDrop),_(e,"touchend",this._onDrop),_(e,"pointerup",this._onDrop),_(e,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;se=D(Z),ce=D(Z,n.draggable),X("drop",this,{evt:e}),ee=Z&&Z.parentNode,se=D(Z),ce=D(Z,n.draggable),Ue.eventCanceled||(Ee=!1,Te=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ye(this.cloneId),Ye(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&k(document.body,"user-select",""),k(Z,"transform",""),e&&(ye&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),te&&te.parentNode&&te.parentNode.removeChild(te),(ne===ee||pe&&"clone"!==pe.lastPutMode)&&ie&&ie.parentNode&&ie.parentNode.removeChild(ie),Z&&(this.nativeDraggable&&_(Z,"dragend",this),We(Z),Z.style["will-change"]="",ye&&!Ee&&C(Z,pe?pe.options.ghostClass:this.options.ghostClass,!1),C(Z,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:ee,newIndex:null,newDraggableIndex:null,originalEvent:e}),ne!==ee?(se>=0&&(Q({rootEl:ee,name:"add",toEl:ee,fromEl:ne,originalEvent:e}),Q({sortable:this,name:"remove",toEl:ee,originalEvent:e}),Q({rootEl:ee,name:"sort",toEl:ee,fromEl:ne,originalEvent:e}),Q({sortable:this,name:"sort",toEl:ee,originalEvent:e})),pe&&pe.save()):se!==le&&se>=0&&(Q({sortable:this,name:"update",toEl:ee,originalEvent:e}),Q({sortable:this,name:"sort",toEl:ee,originalEvent:e})),Ue.active&&(null!=se&&-1!==se||(se=le,ce=ue),Q({sortable:this,name:"end",toEl:ee,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),ne=Z=ee=te=ae=ie=re=oe=fe=me=ye=se=ce=le=ue=_e=we=pe=de=Ue.dragged=Ue.ghost=Ue.clone=Ue.active=null,Ie.forEach((function(e){e.checked=!0})),Ie.length=he=ve=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,a=0,r=n.length,i=this.options;a<r;a++)x(e=n[a],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Ke(e));return t},sort:function(e,t){var n={},a=this.el;this.toArray().forEach((function(e,t){var r=a.children[t];x(r,this.options.draggable,a,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(a.removeChild(n[e]),a.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return x(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var a=G.modifyOption(this,e,t);n[e]=void 0!==a?a:t,"group"===e&&Be(n)},destroy:function(){X("destroy",this);var e=this.el;e[H]=null,_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart),_(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ce.splice(Ce.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if(X("hideClone",this),Ue.eventCanceled)return;k(ie,"display","none"),this.options.removeCloneOnHide&&ie.parentNode&&ie.parentNode.removeChild(ie),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if(X("showClone",this),Ue.eventCanceled)return;Z.parentNode!=ne||this.options.group.revertClone?ae?ne.insertBefore(ie,ae):ne.appendChild(ie):ne.insertBefore(ie,Z),this.options.group.revertClone&&this.animate(Z,ie),k(ie,"display",""),oe=!1}}else this._hideClone()}},Ae&&y(document,"touchmove",(function(e){(Ue.active||Ee)&&e.cancelable&&e.preventDefault()})),Ue.utils={on:y,off:_,css:k,find:N,is:function(e,t){return!!x(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:L,closest:x,toggleClass:C,clone:V,index:D,nextTick:Ge,cancelNextTick:Ye,detectDirection:Fe,getChild:j},Ue.get=function(e){return e[H]},Ue.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ue.utils=r(r({},Ue.utils),e.utils)),G.mount(e)}))},Ue.create=function(e,t){return new Ue(e,t)},Ue.version="1.14.0";var Je,Xe,Qe,Ze,et,tt,nt=[],at=!1;function rt(){nt.forEach((function(e){clearInterval(e.pid)})),nt=[]}function it(){clearInterval(tt)}var ot,lt=L((function(e,t,n,a){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=P(),c=!1;Xe!==n&&(Xe=n,rt(),Je=t.scroll,r=t.scrollFn,!0===Je&&(Je=F(n,!0)));var d=0,p=Je;do{var f=p,m=I(f),h=m.top,v=m.bottom,b=m.left,g=m.right,y=m.width,_=m.height,w=void 0,S=void 0,x=f.scrollWidth,E=f.scrollHeight,O=k(f),C=f.scrollLeft,T=f.scrollTop;f===u?(w=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),S=_<E&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(w=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX),S=_<E&&("auto"===O.overflowY||"scroll"===O.overflowY));var N=w&&(Math.abs(g-i)<=l&&C+y<x)-(Math.abs(b-i)<=l&&!!C),A=S&&(Math.abs(v-o)<=l&&T+_<E)-(Math.abs(h-o)<=l&&!!T);if(!nt[d])for(var j=0;j<=d;j++)nt[j]||(nt[j]={});nt[d].vx==N&&nt[d].vy==A&&nt[d].el===f||(nt[d].el=f,nt[d].vx=N,nt[d].vy=A,clearInterval(nt[d].pid),0==N&&0==A||(c=!0,nt[d].pid=setInterval(function(){a&&0===this.layer&&Ue.active._onTouchMove(et);var t=nt[this.layer].vy?nt[this.layer].vy*s:0,n=nt[this.layer].vx?nt[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Ue.dragged.parentNode[H],n,t,e,et,nt[this.layer].el)||$(nt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==u&&(p=F(p,!1)));at=c}}),30),st=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,o=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||r;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function ut(){}function ct(){}function dt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ot=t},dragOverValid:function(e){var t=e.completed,n=e.target,a=e.onMove,r=e.activeSortable,i=e.changed,o=e.cancel;if(r.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var u=ot;!1!==a(n)?(C(n,s.swapClass,!0),ot=n):ot=null,u&&u!==ot&&C(u,s.swapClass,!1)}i(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,a=e.dragEl,r=n||this.sortable,i=this.options;ot&&C(ot,i.swapClass,!1),ot&&(i.swap||n&&n.options.swap)&&a!==ot&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),function(e,t){var n,a,r=e.parentNode,i=t.parentNode;if(!r||!i||r.isEqualNode(t)||i.isEqualNode(e))return;n=D(e),a=D(t),r.isEqualNode(i)&&n<a&&a++;r.insertBefore(t,r.children[n]),i.insertBefore(e,i.children[a])}(a,ot),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){ot=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ot}}})}ut.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=j(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:st},l(ut,{pluginName:"revertOnSpill"}),ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:st},l(ct,{pluginName:"removeOnSpill"});var pt,ft,mt,ht,vt,bt=[],gt=[],yt=!1,_t=!1,wt=!1;function St(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag)),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var a="";bt.length&&ft===e?bt.forEach((function(e,t){a+=(t?", ":"")+e.textContent})):a=n.textContent,t.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;mt=t},delayEnded:function(){this.isMultiDrag=~bt.indexOf(mt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var a=0;a<bt.length;a++)gt.push(V(bt[a])),gt[a].sortableIndex=bt[a].sortableIndex,gt[a].draggable=!1,gt[a].style["will-change"]="",C(gt[a],this.options.selectedClass,!1),bt[a]===mt&&C(gt[a],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,a=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||bt.length&&ft===t&&(xt(!0,n),a("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,a=e.cancel;this.isMultiDrag&&(xt(!1,n),gt.forEach((function(e){k(e,"display","")})),t(),vt=!1,a())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),a=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),vt=!0,a())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ft&&ft.multiDrag._deselectMultiDrag(),bt.forEach((function(e){e.sortableIndex=D(e)})),bt=bt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),wt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){bt.forEach((function(e){e!==mt&&k(e,"position","absolute")}));var a=I(mt,!1,!0,!0);bt.forEach((function(e){e!==mt&&z(e,a)})),_t=!0,yt=!0}n.animateAll((function(){_t=!1,yt=!1,t.options.animation&&bt.forEach((function(e){U(e)})),t.options.sort&&Et()}))}},dragOver:function(e){var t=e.target,n=e.completed,a=e.cancel;_t&&~bt.indexOf(t)&&(n(!1),a())},revert:function(e){var t=e.fromSortable,n=e.rootEl,a=e.sortable,r=e.dragRect;bt.length>1&&(bt.forEach((function(e){a.addAnimationState({target:e,rect:_t?I(e):r}),U(e),e.fromRect=r,t.removeAnimationState(e)})),_t=!1,function(e,t){bt.forEach((function(n,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,a=e.insertion,r=e.activeSortable,i=e.parentEl,o=e.putSortable,l=this.options;if(a){if(n&&r._hideClone(),yt=!1,l.animation&&bt.length>1&&(_t||!n&&!r.options.sort&&!o)){var s=I(mt,!1,!0,!0);bt.forEach((function(e){e!==mt&&(z(e,s),i.appendChild(e))})),_t=!0}if(!n)if(_t||Et(),bt.length>1){var u=vt;r._showClone(t),r.options.animation&&!vt&&u&>.forEach((function(e){r.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,a=e.activeSortable;if(bt.forEach((function(e){e.thisAnimationDuration=null})),a.options.animation&&!n&&a.multiDrag.isMultiDrag){ht=l({},t);var r=T(mt,!0);ht.top-=r.f,ht.left-=r.e}},dragOverAnimationComplete:function(){_t&&(_t=!1,Et())},drop:function(e){var t=e.originalEvent,n=e.rootEl,a=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,o=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var u=this.options,c=a.children;if(!wt)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(mt,u.selectedClass,!~bt.indexOf(mt)),~bt.indexOf(mt))bt.splice(bt.indexOf(mt),1),pt=null,Y({sortable:r,rootEl:n,name:"deselect",targetEl:mt,originalEvt:t});else{if(bt.push(mt),Y({sortable:r,rootEl:n,name:"select",targetEl:mt,originalEvt:t}),t.shiftKey&&pt&&r.el.contains(pt)){var d,p,f=D(pt),m=D(mt);if(~f&&~m&&f!==m)for(m>f?(p=f,d=m):(p=m,d=f+1);p<d;p++)~bt.indexOf(c[p])||(C(c[p],u.selectedClass,!0),bt.push(c[p]),Y({sortable:r,rootEl:n,name:"select",targetEl:c[p],originalEvt:t}))}else pt=mt;ft=s}if(wt&&this.isMultiDrag){if(_t=!1,(a[H].options.sort||a!==n)&&bt.length>1){var h=I(mt),v=D(mt,":not(."+this.options.selectedClass+")");if(!yt&&u.animation&&(mt.thisAnimationDuration=null),s.captureAnimationState(),!yt&&(u.animation&&(mt.fromRect=h,bt.forEach((function(e){if(e.thisAnimationDuration=null,e!==mt){var t=_t?I(e):h;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),Et(),bt.forEach((function(e){c[v]?a.insertBefore(e,c[v]):a.appendChild(e),v++})),o===D(mt))){var b=!1;bt.forEach((function(e){e.sortableIndex===D(e)||(b=!0)})),b&&i("update")}bt.forEach((function(e){U(e)})),s.animateAll()}ft=s}(n===a||l&&"clone"!==l.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=wt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==wt&&wt||ft!==this.sortable||e&&x(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;bt.length;){var t=bt[0];C(t,this.options.selectedClass,!1),bt.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[H];t&&t.options.multiDrag&&!~bt.indexOf(e)&&(ft&&ft!==t&&(ft.multiDrag._deselectMultiDrag(),ft=t),C(e,t.options.selectedClass,!0),bt.push(e))},deselect:function(e){var t=e.parentNode[H],n=bt.indexOf(e);t&&t.options.multiDrag&&~n&&(C(e,t.options.selectedClass,!1),bt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return bt.forEach((function(a){var r;t.push({multiDragElement:a,index:a.sortableIndex}),r=_t&&a!==mt?-1:_t?D(a,":not(."+e.options.selectedClass+")"):D(a),n.push({multiDragElement:a,index:r})})),{items:u(bt),clones:[].concat(gt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function xt(e,t){gt.forEach((function(n,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function Et(){bt.forEach((function(e){e!==mt&&e.parentNode&&e.parentNode.removeChild(e)}))}Ue.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),it(),rt(),clearTimeout(E),E=void 0},nulling:function(){et=Xe=Je=at=tt=Qe=Ze=null,nt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,a=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(a,r);if(et=e,t||this.options.forceAutoScrollFallback||f||p||h){lt(e,this.options,i,t);var o=F(i,!0);!at||tt&&a===Qe&&r===Ze||(tt&&it(),tt=setInterval((function(){var i=F(document.elementFromPoint(a,r),!0);i!==o&&(o=i,rt()),lt(e,n.options,i,t)}),10),Qe=a,Ze=r)}else{if(!this.options.bubbleScroll||F(i,!0)===P())return void rt();lt(e,this.options,F(i,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),Ue.mount(ct,ut),t.default=Ue},,function(e,t,n){"use strict";e.exports=n(539)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"useUnmount",(function(){return o})),n.d(t,"useForceUpdate",(function(){return l})),n.d(t,"isPlainObject",(function(){return s})),n.d(t,"getSymbol",(function(){return u})),n.d(t,"getGlobal",(function(){return d}));var a=n(0),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},i=[];function o(e){Object(a.useEffect)((function(){return e}),i)}function l(){var e=r(Object(a.useState)(0),2)[1];return Object(a.useCallback)((function(){e((function(e){return e+1}))}),[])}function s(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}function u(e){return"function"==typeof Symbol?Symbol.for(e):"__$mobx-react "+e+"__"}var c={};function d(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:c}}.call(this,n(65))},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"uncontrolledPropTypes",(function(){return r})),n.d(t,"isProp",(function(){return i})),n.d(t,"defaultKey",(function(){return o})),n.d(t,"canAcceptRef",(function(){return l}));n(288);var a=function(){};function r(e,t){var n={};return Object.keys(e).forEach((function(e){n[o(e)]=a})),n}function i(e,t){return void 0!==e[t]}function o(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function l(e){return!!e&&("function"!=typeof e||e.prototype&&e.prototype.isReactComponent)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var a=n(507),r=n(508),i=n(509),o=n(510);function l(e,t){return Object(a.default)(e)||Object(r.default)(e,t)||Object(i.default)(e,t)||Object(o.default)()}},,,function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.formatTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Math.floor(e%60),a=Math.floor(e/60%60),r=Math.floor(e/3600),i=Math.floor(t/60%60),o=Math.floor(t/3600);(s(e)||e===1/0)&&(r="-",a="-",n="-");return r=r>0||o>0?"".concat(r,":"):"",a="".concat((r||i>=10)&&a<10?"0".concat(a):a,":"),n=n<10?"0".concat(n):n,r+a+n},t.isVideoChild=function(e){if(e.props&&e.props.isVideoChild)return!0;return"source"===e.type||"track"===e.type},t.mergeAndSortChildren=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=l.default.Children.toArray(t),s=(n.order,(0,o.default)(n,["order"]));return r.filter((function(e){return!e.props.disabled})).concat(e.filter((function(e){return!u(r,(function(t){return c(t,e)}))}))).map((function(t){var n=u(e,(function(e){return c(e,t)})),a=n?n.props:{},r=(0,i.default)({},s,a,t.props);return l.default.cloneElement(t,r,t.props.children)})).sort((function(e,t){return(e.props.order||a)-(t.props.order||a)}))},t.deprecatedWarning=function(e,t){console.warn("WARNING: ".concat(e," will be deprecated soon! Please use ").concat(t," instead."))},t.throttle=function(e,t){var n=arguments,a=!1;return function(){a||(e.apply(void 0,(0,r.default)(n)),a=!0,setTimeout((function(){a=!1}),t))}},t.mediaProperties=void 0;var r=a(n(438)),i=a(n(96)),o=a(n(283)),l=a(n(0)),s=Number.isNaN||function(e){return e!=e};var u=function(e,t){return e.filter(t)[0]},c=function(e,t){var n=e.type,a=t.type;return"string"==typeof n||"string"==typeof a?n===a:"function"==typeof n&&"function"==typeof a&&n.displayName===a.displayName};t.mediaProperties=["error","src","srcObject","currentSrc","crossOrigin","networkState","preload","buffered","readyState","seeking","currentTime","duration","paused","defaultPlaybackRate","playbackRate","played","seekable","ended","autoplay","loop","mediaGroup","controller","controls","volume","muted","defaultMuted","audioTracks","videoTracks","textTracks","width","height","videoWidth","videoHeight","poster"]},function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",(function(){return a}))},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"UNMOUNTED",(function(){return d})),n.d(t,"EXITED",(function(){return p})),n.d(t,"ENTERING",(function(){return f})),n.d(t,"ENTERED",(function(){return m})),n.d(t,"EXITING",(function(){return h}));var a=n(483),r=n(484),i=(n(3),n(0)),o=n.n(i),l=n(11),s=n.n(l),u=n(299),c=n(300),d="unmounted",p="exited",f="entering",m="entered",h="exiting",v=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?i?(r=p,a.appearStatus=f):r=m:r=t.unmountOnExit||t.mountOnEnter?d:p,a.state={status:r},a.nextCallback=null,a}Object(r.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==m&&(t=f):n!==f&&n!==m||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,a=this.props.timeout;return e=t=n=a,null!=a&&"number"!=typeof a&&(e=a.exit,t=a.enter,n=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===f?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,a=this.context?this.context.isMounting:e,r=this.props.nodeRef?[a]:[s.a.findDOMNode(this),a],i=r[0],o=r[1],l=this.getTimeouts(),c=a?l.appear:l.enter;!e&&!n||u.default.disabled?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,o),this.safeSetState({status:f},(function(){t.props.onEntering(i,o),t.onTransitionEnd(c,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:s.a.findDOMNode(this);t&&!u.default.disabled?(this.props.onExit(a),this.safeSetState({status:h},(function(){e.props.onExiting(a),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(a)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.a.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(n&&!a){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],o=r[1];this.props.addEndListener(i,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(a.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(c.default.Provider,{value:null},"function"==typeof n?n(e,r):o.a.cloneElement(o.a.Children.only(n),r))},t}(o.a.Component);function b(){}v.contextType=c.default,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},v.UNMOUNTED=d,v.EXITED=p,v.ENTERING=f,v.ENTERED=m,v.EXITING=h,t.default=v},,,function(e,t,n){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",(function(){return a}))},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(605),r=n(46),i=n(228),o=n(610),l=n(332),s=n(333),u=n(618),c=n(41),d=n(621),p=n(236),f=n(342),m=n(328);function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v,b=h(r),g=h(i),y=h(o),_=h(l),w=h(s),S=h(u),x=h(c),E=h(d),O=h(p),C=h(f),k=h(m);!function(e){e[e.BooleanLiteral=1]="BooleanLiteral",e[e.RAW=2]="RAW",e[e.Variable=3]="Variable",e[e.OpenScript=4]="OpenScript",e[e.CloseScript=5]="CloseScript",e[e.EOF=6]="EOF",e[e.Identifier=7]="Identifier",e[e.Literal=8]="Literal",e[e.NumericLiteral=9]="NumericLiteral",e[e.Punctuator=10]="Punctuator",e[e.StringLiteral=11]="StringLiteral",e[e.RegularExpression=12]="RegularExpression",e[e.TemplateRaw=13]="TemplateRaw",e[e.TemplateLeftBrace=14]="TemplateLeftBrace",e[e.TemplateRightBrace=15]="TemplateRightBrace",e[e.OpenFilter=16]="OpenFilter",e[e.Char=17]="Char"}(v||(v={}));var T={};T[v.BooleanLiteral]="Boolean",T[v.RAW]="Raw",T[v.Variable]="Variable",T[v.OpenScript]="OpenScript",T[v.CloseScript]="CloseScript",T[v.EOF]="EOF",T[v.Identifier]="Identifier",T[v.Literal]="Literal",T[v.NumericLiteral]="Numeric",T[v.Punctuator]="Punctuator",T[v.StringLiteral]="String",T[v.RegularExpression]="RegularExpression",T[v.TemplateRaw]="TemplateRaw",T[v.TemplateLeftBrace]="TemplateLeftBrace",T[v.TemplateRightBrace]="TemplateRightBrace",T[v.OpenFilter]="OpenFilter",T[v.Char]="Char";var N=0,P=1,I=2,A=3,j=4,M=5,D=0,R=1,F=0,B=1,L=2,$=3,V=4,z=5,U=0,H=1,W=2,q=["===","!==",">>>","==","!=","<>","<=",">=","||","&&","++","--","<<",">>","**","+=","*=","/=","<",">","=","*","/","-","+","^","!","~","%","&","|","(",")","[","]","{","}","?",":",";",",",".","$"],K={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8};function G(e){return e>="1"&&e<="9"}function Y(e){return e>="0"&&e<="9"}function J(e){return"e"===e||"E"===e}function X(e,t){return void 0===t&&(t=[]),e.replace(/\\(.)/g,(function(e,n){return"b"===n?"\b":"f"===n?"\f":"n"===n?"\n":"r"===n?"\r":"t"===n?"\t":"v"===n?"\v":~t.indexOf(n)?n:e}))}function Q(e){return Number(e)}function Z(e,t){var n=1,a=1,r=0,i=N,o=[i],l=[],s=!1!==(null==t?void 0:t.allowFilter);function u(e){o.push(i=e)}function c(){o.pop(),i=o[o.length-1]}function d(e){if(e&&"string"==typeof e){var t=e.split(/[\r\n]+/);return{index:r+e.length,line:n+t.length-1,column:a+t[t.length-1].length}}return{index:r,line:n,column:a}}function p(){if(i!==P&&i!==I&&i!==A&&i!==M)return null;var n=function(){var t=e.substring(r,r+4).toLowerCase(),n=t,a=!1;"true"===t||"null"===t?(a=!0,n="true"===t||null):"false"===(t=e.substring(r,r+5).toLowerCase())?(a=!0,n=!1):"undefined"===(t=e.substring(r,r+9).toLowerCase())&&(a=!0,n=void 0);if(a)return{type:!0===n||!1===n?T[v.BooleanLiteral]:T[v.Literal],value:n,raw:t,start:d(),end:d(t)};return null}()||function(){var n=((null==t?void 0:t.variableMode)?/^[\u4e00-\u9fa5A-Za-z0-9_$@][\u4e00-\u9fa5A-Za-z0-9_\-$@]*/:/^(?:[\u4e00-\u9fa5A-Za-z_$@]([\u4e00-\u9fa5A-Za-z0-9_\-$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*|\d+[\u4e00-\u9fa5A-Za-z_$@](?:[\u4e00-\u9fa5A-Za-z0-9_\-$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*)/).exec(e.substring(r,r+256));if(n)return{type:T[v.Identifier],value:n[0].replace(/\\(\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,)/g,(function(e,t){return t})),start:d(),end:d(n[0])};return null}()||function(){var t=r,n=t,a=F;e:for(;t<e.length;){var i=e.charAt(t);switch(a){case F:if("0"===i)n=t+1,a=B;else{if(!G(i))return null;n=t+1,a=L}break;case B:if("."===i)a=$;else{if(!J(i))break e;a=z}break;case L:if(Y(i))n=t+1;else if("."===i)a=$;else{if(!J(i))break e;a=z}break;case $:if(!Y(i))break e;n=t+1,a=V;break;case V:if(Y(i))n=t+1;else{if(!J(i))break e;a=z}}t++}if(n>0){var o=e.slice(r,n);return{type:T[v.NumericLiteral],value:Q(o),raw:o,start:d(),end:d(o)}}return null}()||function(){var t='"',n=U,a=r;for(;a<e.length;){var i=e[a];if(n===U){if('"'!==i&&"'"!==i)break;t=i,a++,n=H}else if(n===W){if(!K.hasOwnProperty(i)&&i!==t){var o=d(e.substring(r,a+1));throw new SyntaxError("Unexpected token ".concat(i," in ").concat(o.line,":").concat(o.column))}a++,n=H}else if("\\"===i)a++,n=W;else{if(i===t){a++;break}a++}}if(a>r){var l=e.substring(r,a);return{type:T[v.StringLiteral],value:X(l.substring(1,l.length-1),[t]),raw:l,start:d(),end:d(l)}}return null}()||function(){var t=q.find((function(t){return e.substring(r,r+t.length)===t}));if(t)return{type:T[v.Punctuator],value:t,start:d(),end:d(t)};return null}()||function(){if(i!==M)return null;var t=r,n=e[t];if("\\"===n){var a=e[t+1];if("$"!==a&&!~q.indexOf(a)&&!K.hasOwnProperty(a)){var o=d(e.substring(r,r+2));throw new SyntaxError("Unexpected token ".concat(a," in ").concat(o.line,":").concat(o.column))}t++,n="b"===a?"\b":"f"===a?"\f":"n"===a?"\n":"r"===a?"\r":"t"===a?"\t":"v"===a?"\v":a}return{type:T[v.Char],value:n,start:d(),end:d(e.substring(r,t+1))}}();if("{"===(null==n?void 0:n.value))u(A);else if("}"===(null==n?void 0:n.value)){i===M&&c();var a=i;if(c(),a===P||a===I)return{type:T[a===I?v.TemplateRightBrace:v.CloseScript],value:n.value,start:d(),end:d(n.value)}}return i===P&&"|"===(null==n?void 0:n.value)&&s?(u(M),{type:T[v.OpenFilter],value:"|",start:d(),end:d("|")}):i===M&&"|"===(null==n?void 0:n.value)?{type:T[v.OpenFilter],value:"|",start:d(),end:d("|")}:n||"`"!==e[r]?n:(u(j),{type:T[v.Punctuator],value:"`",start:d(),end:d("`")})}function f(){return l.length?l.shift():(i!==P&&i!==I&&i!==A||function(){for(;r<e.length;){var t=e[r];if("\r"===t)r++,n++,a=1,"\n"===e.charAt(r)&&r++;else if("\n"===t)r++,n++,a=1;else{if("\t"!==t&&" "!==t)break;r++,a++}}}(),function(){if(r>=e.length)return{type:T[v.EOF],value:void 0,start:d(),end:d()}}()||function(){if(i!==N)return null;for(var t="",n=D,a=r;a<e.length;){var o=e[a];if(n===R){if(!K.hasOwnProperty(o)&&"$"!==o){var s=d(t+o);throw new SyntaxError("Unexpected token ".concat(o," in ").concat(s.line,":").concat(s.column))}t+=o,a++,n=D}else{if("\\"===o){t+=o,a++,n=R;continue}if("$"===o){var u=e[a+1];if("{"===u)break;if("$"===u){l.push({type:T[v.Variable],value:"&",raw:"$$",start:d(e.substring(r,a)),end:d(e.substring(r,a+2))});break}var c=/^[a-zA-Z0-9_]+(?:\.[a-zA-Z0-9_]+)*/.exec(e.substring(a+1));if(c){l.push({type:T[v.Variable],value:c[0],raw:c[0],start:d(e.substring(r,a)),end:d(e.substring(r,a+1+c[0].length))});break}}a++,t+=o}}return a>r?{type:T[v.RAW],value:X(t,["`","$"]),raw:t,start:d(),end:d(t)}:l.length?l.shift():null}()||function(){if(i===j)return null;if("$"===e[r]&&"{"===e[r+1]){u(P);var t=e.substring(r,r+2);return{type:T[v.OpenScript],value:t,start:d(),end:d(t)}}return null}()||p()||function(){if(i!==j)return null;for(var t=U,n=r;n<e.length;){var a=e[n];if(t===W){if(!K.hasOwnProperty(a)&&"`"!==a&&"$"!==a){var o=d(e.substring(r,n+1));throw new SyntaxError("Unexpected token ".concat(a," in ").concat(o.line,":").concat(o.column))}n++,t=H}else if("\\"===a)n++,t=W;else{if("`"===a){c(),l.push({type:T[v.Punctuator],value:"`",start:d(e.substring(r,n)),end:d(e.substring(r,n+1))});break}if("$"===a){if("{"===e[n+1]){u(I),l.push({type:T[v.TemplateLeftBrace],value:"${",start:d(e.substring(r,n)),end:d(e.substring(r,n+2))});break}n++}else n++}}if(n>r){var s=e.substring(r,n);return{type:T[v.TemplateRaw],value:X(s,["`","$"]),raw:s,start:d(),end:d(s)}}return l.length?l.shift():null}())}return((null==t?void 0:t.evalMode)||(null==t?void 0:t.variableMode))&&u(I),{next:function(){var t=f();if(t)return r=t.end.index,n=t.end.line,a=t.end.column,t;var i=d();throw new SyntaxError('unexpected character "'.concat(e[r],'" at ').concat(i.line,":").concat(i.column))}}}var ee=0,te=1,ne=2,ae=0,re=1,ie=0,oe=1,le=2,se=3,ue=4;function ce(e,t){var n,a,r,i=Z(e,t),o=[],l=[],s=null!==(n=null==t?void 0:t.variableNamespaces)&&void 0!==n?n:["window","cookie","ls","ss"];function u(){if(!(r=l.length?l.shift():i.next()))throw new TypeError("next token is undefined");o.push(r)}function c(){l.unshift(o.pop()),r=o[o.length-1]}function d(e){return r.type===T[v.Punctuator]&&(Array.isArray(e)?~e.indexOf(r.value):r.value===e)}function p(){throw TypeError("Unexpected token ".concat(r.value," in ").concat(r.start.line,":").concat(r.start.column))}function f(e){return e||p(),e}function m(){return H()}function h(){for(;r.type===T[v.Char]&&/^\s+$/m.test(r.value);)u()}function b(){for(var e=[];!d(":")&&r.type!==T[v.OpenFilter]&&r.type!==T[v.CloseScript];){var t=$()||F()||R()||B()||V()||q()||U();t?e.push(t):(f(~[T[v.Identifier],T[v.Punctuator],T[v.Char]].indexOf(r.type)),e.length&&"string"==typeof e[e.length-1]?e[e.length-1]+=r.raw||r.value:e.push(r.raw||r.value),u())}return e.length&&"string"==typeof e[e.length-1]&&(e[e.length-1]=e[e.length-1].replace(/\s+$/,""),e[e.length-1]||e.pop()),e}function g(){var e,t=function(e,t){void 0===e&&(e="(");void 0===t&&(t=")");var n=0,a=function(){for(;n-- >0;)c();return null};if(d(e)){var i=r,o=i;u(),n++;for(var l=[],s=ee;!d(t);)if(s===te||s===ee){var p=K(!1);if(!p)return a();n++,l.push(p),s=ne}else{if(s!==ne||!d(","))return a();u(),n++,s=te}return d(t)?(o=r,u(),{type:"arg-list",body:l,start:i.start,end:o.end}):a()}return null}()||K(),n=[];if("variable"===(null==t?void 0:t.type)?(n=[t],e=t.start):"arg-list"===(null==t?void 0:t.type)&&(e=t.start,n=t.body),Array.isArray(n)&&d("=")){if(u(),d(">")){u();var a=f(m());return{type:"anonymous_function",args:n,return:a,start:e,end:a.end}}c()}return t}function y(){var e=_("or","||",w);if(!e)return null;if(d("?")){u();var t=H();f(t),f(d(":")),u();var n=H();return f(n),{type:"conditional",test:e,consequent:t,alternate:n,start:e.start,end:n.end}}return e}function _(e,t,n,a,r,i){var o;void 0===a&&(a=n),void 0===r&&(r="left"),void 0===i&&(i="right");var l=n();if(!l)return null;if(d(t))for(;d(t);){u();var s=f(a());(o={type:e,op:t})[r]=l,o[i]=s,o.start=l.start,o.end=s.end,l=o}return l}function w(){return _("and","&&",S)}function S(){return _("binary","|",x)}function x(){return _("binary","^",E)}function E(){return _("binary","&",O)}function O(){return _("eq","==",(function(){return _("ne","!=",(function(){return _("streq","===",(function(){return _("strneq","!==",C)}))}))}))}function C(){return _("lt","<",(function(){return _("gt",">",(function(){return _("le","<=",(function(){return _("ge",">=",k)}))}))}))}function k(){return _("shift","<<",(function(){return _("shift",">>",(function(){return _("shift",">>>",N)}))}))}function N(){return _("add","+",(function(){return _("minus","-",P)}))}function P(){return _("multiply","*",(function(){return _("divide","/",(function(){return _("remainder","%",I)}))}))}function I(){return _("power","**",A)}function A(){for(var e=["+","-","~","!"],t=[];d(e);)t.push(r),u();var n=j();for(f(!t.length||n);t.length;){var a=t.pop();n={type:"unary",op:a.value,value:n,start:a.start,end:a.end}}return n}function j(e){void 0===e&&(e=M);var t=e();if(!t)return null;for(;d("[")||d(".");){var n=d(".");u();var a=f(n?L()||F()||q():m());n||(f(d("]")),u()),t={type:"getter",host:t,key:a,start:t.start,end:a.end}}return t}function M(){return function(){if(r.type===T[v.Identifier]){var e=r;if(u(),d("(")){var t=z();return f(t),{type:"func_call",identifier:e.value,args:null==t?void 0:t.body,start:e.start,end:t.end}}c()}return null}()||g()||K()||$()||F()||R()||B()||V()||U()||function(){var e=z();return 1===(null==e?void 0:e.body.length)?e.body[0]:e}()||q()}function D(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),(e?K():L())||R()||F()||(t?function(){if(d("[")){u();var e=f(B());return f(d("]")),u(),e}return null}():B())}function R(){if(r.type===T[v.StringLiteral]){var e=r;return u(),{type:"string",value:e.value,start:e.start,end:e.end}}return null}function F(){if(r.type===T[v.NumericLiteral]){var e=r.value,t=r;return u(),{type:"literal",value:e,start:t.start,end:t.end}}return null}function B(){if(d("`")){var e=r,t=e;u();for(var n=ae,a={type:"template",body:[],start:e.start,end:e.end};;)if(n===re){var i=f(m());a.body.push(i),f(r.type===T[v.TemplateRightBrace]),u(),n=ae}else{if(d("`")){t=r,u();break}r.type===T[v.TemplateLeftBrace]?(u(),n=re):r.type===T[v.TemplateRaw]?(a.body.push({type:"template_raw",value:r.value,start:r.start,end:r.end}),u()):p()}return a.end=t.end,a}return null}function L(){if(r.type===T[v.Identifier]){var e=r;return u(),{type:"identifier",name:e.value,start:e.start,end:e.end}}return null}function $(){if(r.type===T[v.Literal]||r.type===T[v.BooleanLiteral]){var e=r.value,t=r;return u(),{type:"literal",value:e,start:t.start,end:t.end}}return null}function V(){if(d("[")){var e=z("[","]");return f(e),{type:"array",members:null==e?void 0:e.body,start:e.start,end:e.end}}return null}function z(e,t){if(void 0===e&&(e="("),void 0===t&&(t=")"),d(e)){var n=r,a=void 0;u();for(var i=[],o=ee;;)if(o!==te&&d(t)){if(d(t)){a=r,u();break}}else{var l=f(m());i.push(l),o=ee,d(",")&&(u(),o=te)}return{type:"expression-list",body:i,start:n.start,end:a.end}}return null}function U(){if(d("{")){var e=r,t=e;u();for(var n={type:"object",members:[],start:e.start,end:e.end},a=ie,i=void 0,o=void 0;;)if(a===oe)f(d(":")),u(),a=le;else if(a===le)o=f(m()),n.members.push({key:i,value:o}),a=se;else if(a===se)if(d(","))u(),a=ue;else{if(d("}")){t=r,u();break}p()}else{if(a!=ue&&d("}")){t=r,u();break}i=f(D(!1,!0)),a=oe}return n.end=t.end,n}return null}function H(){return y()}function W(){if(r.type!==T[v.RAW])return null;var e=r;return u(),{type:"raw",value:e.value,start:e.start,end:e.end}}function q(){if(r.type!==T[v.OpenScript])return null;var e,t=r;u();var n=f(function(){for(var e=m(),t=[];r.type===T[v.OpenFilter];){u(),h();var n=f(L()).name,a=[];for(h();d(":");){u(),h();var i=b();1===i.length?i=i[0]:i.length||(i=""),a.push(Array.isArray(i)?{type:"mixed",body:i}:i)}t.push({name:n,args:a})}return t.length&&(e={type:"filter",input:e,filters:t,start:e.start,end:t[t.length-1].end}),e}());return f(r.type===T[v.CloseScript]),e=r,u(),{type:"script",body:n,start:t.start,end:e.end}}function K(e){if(void 0===e&&(e=!0),r.type===T[v.Identifier]){var t=r;if(u(),e&&d(":")&&~s.indexOf(t.value)){u();var n=f(j());return{type:"ns-variable",namespace:t.value,body:n,start:t.start,end:n.end}}return{type:"variable",name:t.value,start:t.start,end:t.end}}if(d("&")){var a=r;return u(),{type:"variable",name:"&",start:a.start,end:a.end}}return null}function G(){if(r.type!==T[v.Variable])return null;var e=r;return u(),{type:"script",body:e.value.split(".").reduce((function(t,n){return t?{type:"getter",host:t,key:n,start:e.start,end:e.end}:{type:"variable",name:n,start:e.start,end:e.end}}),null),start:e.start,end:e.end}}Array.isArray(s)||(s=[]),u();var Y=(null==t?void 0:t.variableMode)?j(K):(null==t?void 0:t.evalMode)?m():function(){for(var e={type:"document",body:[],start:r.start,end:r.end};r.type!==T[v.EOF];){var t=W()||q()||G();if(!t)break;e.body.push(t)}return e.body.length&&(e.end=e.body[e.body.length-1].end),e}();return f((null===(a=r)||void 0===a?void 0:a.type)===T[v.EOF]),Y}function de(e,t,n){e&&Object.isFrozen(e)&&(e=pe(e));var r=e?Object.create(e,a.__assign(a.__assign({},n),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,n);return t&&fe(t)&&Object.keys(t).forEach((function(e){return r[e]=t[e]})),r}function pe(e,t){void 0===t&&(t=!0);var n=e&&e.__super?Object.create(e.__super,{__super:{value:e.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return t&&e&&Object.keys(e).forEach((function(t){return n[t]=e[t]})),n}function fe(e){var t=typeof e;return e&&"string"!==t&&"number"!==t&&"boolean"!==t&&"function"!==t&&!Array.isArray(e)}function me(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new TypeError("Expected a string");return new RegExp(e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),t?"":"i")}function he(e,t,n){if(void 0===n&&(n=!0),e&&t)return(n?t in e:e.hasOwnProperty(t))?e[t]:be(t).reduce((function(e,t){return e&&"object"==typeof e&&(n?t in e:e.hasOwnProperty(t))?e[t]:void 0}),e)}function ve(e,t,n,r){if(t in(e=e||{}))e[t]=n;else{for(var i=!1!==r?be(t):[t],o=i.pop();i.length;){var l=i.shift();x.default(e[l])?e=e[l]=a.__assign({},e[l]):Array.isArray(e[l])?(e[l]=e[l].concat(),e=e[l]):(e[l],e[l]={},e=e[l])}e[o]=n}}var be=function(e){var t=[];return e.charCodeAt(0)===".".charCodeAt(0)&&t.push(""),e.replace(new RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),(function(e,n,a,r){var i=e;return a?i=r.replace(/\\(\\)?/g,"$1"):n&&(i=n.trim()),t.push(i),""})),t},ge=function(e,t,n){if(void 0===n&&(n="| html"),!e||"string"!=typeof e)return e;try{var a=ce(e,{evalMode:!1,allowFilter:!0}),r=new Pe(t,{defaultFilter:n}).evalute(a);return"".concat(null==r?"":r)}catch(t){return console.warn(t),e}},ye=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],_e=function(e){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got ".concat(typeof e,": ").concat(e));var t=e<0;if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),ye.length-1);return(t?"-":"")+Number((e/Math.pow(1e3,n)).toPrecision(3))+" "+ye[n]},we={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Se=function(e){return String(e).replace(/[&<>"'\/]/g,(function(e){return we[e]}))};function xe(e){for(var t=["秒","分","时","天","月","季","年"],n=[1,60,3600,86400,2592e3,7776e3,31104e3],a=n.length,r=[];a--;)n[a]&&e>=n[a]?(r.push(Math.floor(e/n[a])+t[a]),e%=n[a]):0===a&&e&&r.push((e.toFixed?e.toFixed(2):"0")+t[0]);return r.join("")}var Ee={year:"Y",month:"M",week:"w",weekday:"W",day:"d",hour:"h",minute:"m",min:"m",second:"s",millisecond:"ms"},Oe=/^(.+)?(\+|-)(\d+)(minute|min|hour|day|week|month|year|weekday|second|millisecond)s?$/i,Ce=function(e,t,n,a){void 0===t&&(t={}),void 0===n&&(n="X"),void 0===a&&(a=!1);var r,i=a?b.default.utc:b.default;"string"==typeof e&&(e=e.trim());var o=new Date;if((e=ge(e,de(t,{now:i().toDate(),today:i([o.getFullYear(),o.getMonth(),o.getDate()])}),"| raw"))&&"string"==typeof e&&(r=Oe.exec(e))){var l=new Date,s=parseInt(r[3],10),u=r[1]?Ce(r[1],t,n,a):i(/(minute|min|hour|second)s?/.test(r[4])?[l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()]:[l.getFullYear(),l.getMonth(),l.getDate()]);return"-"===r[2]?u.subtract(s,Ee[r[4]]):u.add(s,Ee[r[4]])}if("now"===e)return i();if("today"===e){var c=new Date;return i([c.getFullYear(),c.getMonth(),c.getDate()])}var d=i(e);return d.isValid()?d:i(e,n)};function ke(e){return"number"==typeof e?parseFloat(e.toPrecision(12)):e}function Te(e,t){var n,a;if(!e||(a=e.split(","))&&a.length<2){var r=e.indexOf("~");if(~r){var i=e.substring(0,r),o=e.substring(r+1);return(n={})[i]=Ne(o,t),n}return Ne(e,t)}var l={};return a.forEach((function(e){var n=e.indexOf("~"),a=e;~n&&(a=e.substring(n+1),e=e.substring(0,n)),ve(l,e,Ne(a,t))})),l}function Ne(e,t){if(void 0===t&&(t={}),"&"===e||"$$"==e)return t;if(e&&"string"==typeof e){if(!~e.indexOf(":"))return he(t,"$"===e[0]?e.substring(1):e);try{return new Pe(t).evalute(ce(e,{variableMode:!0,allowFilter:!1}))}catch(e){return}}}var Pe=function(){function e(t,n){void 0===n&&(n={defaultFilter:"html"}),this.options=n,this.functions={},this.contextStack=[],this.context=t,this.contextStack.push((function(e){return"&"===e?t:null==t?void 0:t[e]})),this.filters=a.__assign(a.__assign(a.__assign({},e.defaultFilters),this.filters),null==n?void 0:n.filters),this.functions=a.__assign(a.__assign({},this.functions),null==n?void 0:n.functions)}return e.setDefaultFilters=function(t){e.defaultFilters=a.__assign(a.__assign({},e.defaultFilters),t)},e.prototype.evalute=function(e){if(e&&e.type){var t=e.type.replace(/(?:_|\-)(\w)/g,(function(e,t){return t.toUpperCase()})),n=this.functions[t]||this[t];if(!n)throw new Error("".concat(e.type," unkown."));return n.call(this,e)}return e},e.prototype.document=function(e){var t=this;if(e.body.length){var n=e.body.length>1,a=e.body.map((function(e){var a=t.evalute(e);return n&&null==a?"":a}));return 1===a.length?a[0]:a.join("")}},e.prototype.filter=function(e){for(var t=this,n=this.evalute(e.input),a=e.filters.concat(),r={filter:void 0,data:this.context,restFilters:a};a.length;){var i=a.shift(),o=this.filters[i.name];if(!o)throw new Error("filter `".concat(i.name,"` not exits"));r.filter=i,n=o.apply(r,[n].concat(i.args.map((function(e){return"mixed"===(null==e?void 0:e.type)?e.body.map((function(e){return"string"==typeof e?e:t.evalute(e)})).join(""):e.type?t.evalute(e):e}))))}return n},e.prototype.raw=function(e){return e.value},e.prototype.script=function(e){var t,n=this.options.defaultFilter;return n&&~["getter","variable"].indexOf(null===(t=e.body)||void 0===t?void 0:t.type)&&(e.body={type:"filter",input:e.body,filters:[{name:n.replace(/^\s*\|\s*/,""),args:[]}]}),this.evalute(e.body)},e.prototype.expressionList=function(e){var t=this;return e.body.reduce((function(e,n){return t.evalute(n)}))},e.prototype.template=function(e){var t=this;return e.body.map((function(e){return t.evalute(e)})).join("")},e.prototype.templateRaw=function(e){return e.value},e.prototype.getter=function(e){var t,n=this.evalute(e.host),a=this.evalute(e.key);return void 0===a&&"variable"===(null===(t=e.key)||void 0===t?void 0:t.type)&&(a=e.key.name),null==n?void 0:n[a]},e.prototype.unary=function(e){var t=this.evalute(e.value);switch(e.op){case"+":return+t;case"-":return-t;case"~":return~t;case"!":return!t}},e.prototype.formatNumber=function(e,t){void 0===t&&(t=!1);var n=typeof e;return"string"===n?(t?parseInt(e,10):parseFloat(e))||0:"number"===n&&t?Math.round(e):null!=e?e:0},e.prototype.power=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return Math.pow(this.formatNumber(t),this.formatNumber(n))},e.prototype.multiply=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return ke(this.formatNumber(t)*this.formatNumber(n))},e.prototype.divide=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return ke(this.formatNumber(t)/this.formatNumber(n))},e.prototype.remainder=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return this.formatNumber(t)%this.formatNumber(n)},e.prototype.add=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return ke(this.formatNumber(t)+this.formatNumber(n))},e.prototype.minus=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return ke(this.formatNumber(t)-this.formatNumber(n))},e.prototype.shift=function(e){var t=this.evalute(e.left),n=this.formatNumber(this.evalute(e.right),!0);return"<<"===e.op?t<<n:">>"==e.op?t>>n:t>>>n},e.prototype.lt=function(e){return this.evalute(e.left)<this.evalute(e.right)},e.prototype.gt=function(e){return this.evalute(e.left)>this.evalute(e.right)},e.prototype.le=function(e){return this.evalute(e.left)<=this.evalute(e.right)},e.prototype.ge=function(e){return this.evalute(e.left)>=this.evalute(e.right)},e.prototype.eq=function(e){return this.evalute(e.left)==this.evalute(e.right)},e.prototype.ne=function(e){return this.evalute(e.left)!=this.evalute(e.right)},e.prototype.streq=function(e){return this.evalute(e.left)===this.evalute(e.right)},e.prototype.strneq=function(e){return this.evalute(e.left)!==this.evalute(e.right)},e.prototype.binary=function(e){var t=this.evalute(e.left),n=this.evalute(e.right);return"&"===e.op?t&n:"^"===e.op?t^n:t|n},e.prototype.and=function(e){return this.evalute(e.left)&&this.evalute(e.right)},e.prototype.or=function(e){return this.evalute(e.left)||this.evalute(e.right)},e.prototype.number=function(e){return e.value},e.prototype.nsVariable=function(e){if("window"===e.namespace)this.contextStack.push((function(e){return"&"===e?window:window[e]}));else if("cookie"===e.namespace)this.contextStack.push((function(e){return function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift();return}(e)}));else{if("ls"!==e.namespace&&"ss"!==e.namespace)throw new Error("Unsupported namespace: "+e.namespace);var t=e.namespace;this.contextStack.push((function(e){var n="ss"===t?sessionStorage.getItem(e):localStorage.getItem(e);if("string"==typeof n){if(/^\d+$/.test(n)){var a=JSON.parse(n);return"".concat(a)===n?a:n}return function(e,t){try{return JSON.parse(e)}catch(e){return t}}(n,n)}}))}var n=this.evalute(e.body);return this.contextStack.pop(),n},e.prototype.variable=function(e){return(0,this.contextStack[this.contextStack.length-1])(e.name)},e.prototype.identifier=function(e){return e.name},e.prototype.array=function(e){var t=this;return e.members.map((function(e){return t.evalute(e)}))},e.prototype.literal=function(e){return e.value},e.prototype.string=function(e){return e.value},e.prototype.object=function(e){var t=this,n={};return e.members.forEach((function(e){var a=e.key,r=e.value;n[t.evalute(a)]=t.evalute(r)})),n},e.prototype.conditional=function(e){return this.evalute(e.test)?this.evalute(e.consequent):this.evalute(e.alternate)},e.prototype.funcCall=function(e){var t=this,n="fn".concat(e.identifier),a=this.functions[n]||this[n]||this.filters[e.identifier];if(!a)throw new Error("".concat(e.identifier,"函数没有定义"));var r=e.args;return r=~["IF","AND","OR","XOR","IFS"].indexOf(e.identifier)?r.map((function(e){return function(){return t.evalute(e)}})):r.map((function(e){return t.evalute(e)})),a.apply(this,r)},e.prototype.anonymousFunction=function(e){return e},e.prototype.callAnonymousFunction=function(e,t){var n=de(this.contextStack[this.contextStack.length-1]("&")||{},{});e.args.forEach((function(e){if("variable"!==e.type)throw new Error("expected a variable as argument");n[e.name]=t.shift()})),this.contextStack.push((function(e){return"&"===e?n:n[e]}));var a=this.evalute(e.return);return this.contextStack.pop(),a},e.prototype.fnIF=function(e,t,n){return e()?t():n()},e.prototype.fnAND=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every((function(e){return e()}))},e.prototype.fnOR=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.some((function(e){return e()}))},e.prototype.fnXOR=function(e,t){return!!e()==!!t()},e.prototype.fnIFS=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(e.length%2&&e.splice(e.length-1,0,(function(){return!0}));e.length;){var n=e.shift(),a=e.shift();if(n())return a()}},e.prototype.fnABS=function(e){return e=this.formatNumber(e),Math.abs(e)},e.prototype.fnMAX=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=t;return 1===t.length&&Array.isArray(t[0])&&(a=t[0]),Math.max.apply(Math,a.map((function(t){return e.formatNumber(t)})))},e.prototype.fnMIN=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=t;return 1===t.length&&Array.isArray(t[0])&&(a=t[0]),Math.min.apply(Math,a.map((function(t){return e.formatNumber(t)})))},e.prototype.fnSUM=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=t;return 1===t.length&&Array.isArray(t[0])&&(a=t[0]),a.reduce((function(t,n){return t+e.formatNumber(n)||0}),0)},e.prototype.fnINT=function(e){return Math.floor(this.formatNumber(e))},e.prototype.fnMOD=function(e,t){return this.formatNumber(e)%this.formatNumber(t)},e.prototype.fnPI=function(){return Math.PI},e.prototype.fnROUND=function(e,t){e=this.formatNumber(e),t=this.formatNumber(t);var n=Math.round(t);if(n){var a=Math.pow(10,n);return Math.round(e*a)/a}return Math.round(e)},e.prototype.fnFLOOR=function(e,t){e=this.formatNumber(e),t=this.formatNumber(t);var n=Math.round(t);if(n){var a=Math.pow(10,n);return Math.floor(e*a)/a}return Math.floor(e)},e.prototype.fnCEIL=function(e,t){e=this.formatNumber(e),t=this.formatNumber(t);var n=Math.round(t);if(n){var a=Math.pow(10,n);return Math.ceil(e*a)/a}return Math.ceil(e)},e.prototype.fnSQRT=function(e){return Math.sqrt(this.formatNumber(e))},e.prototype.fnAVG=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=t;return 1===t.length&&Array.isArray(t[0])&&(a=t[0]),this.fnSUM.apply(this,a.map((function(t){return e.formatNumber(t)})))/a.length},e.prototype.fnDEVSQ=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return null;var a=t;1===t.length&&Array.isArray(t[0])&&(a=t[0]);for(var r=a.map((function(t){return e.formatNumber(t)})),i=r.reduce((function(e,t){return e+t||0}),0),o=i/r.length,l=0,s=0,u=r;s<u.length;s++){var c=u[s];l+=Math.pow(c-o,2)}return l},e.prototype.fnAVEDEV=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return null;var a=t;1===t.length&&Array.isArray(t[0])&&(a=t[0]);for(var r=a.map((function(t){return e.formatNumber(t)})),i=r.reduce((function(e,t){return e+t||0}),0),o=i/r.length,l=0,s=0,u=r;s<u.length;s++){var c=u[s];l+=Math.abs(c-o)}return l/r.length},e.prototype.fnHARMEAN=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return null;var a=t;1===t.length&&Array.isArray(t[0])&&(a=t[0]);for(var r=a.map((function(t){return e.formatNumber(t)})),i=0,o=0,l=r;o<l.length;o++){var s=l[o];i+=1/s}return r.length/i},e.prototype.fnLARGE=function(e,t){var n=this;if(0===e.length)return null;var a=e.map((function(e){return n.formatNumber(e)}));return t<0||a.length<t?null:a.sort((function(e,t){return t-e}))[t-1]},e.prototype.fnUPPERMONEY=function(e){var t=["角","分"],n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=[["元","万","亿"],["","拾","佰","仟"]],r=(e=this.formatNumber(e))<0?"欠":"";e=Math.abs(e);for(var i="",o=0;o<t.length;o++)i+=(n[Math.floor(10*e*Math.pow(10,o))%10]+t[o]).replace(/零./,"");i=i||"整",e=Math.floor(e);for(o=0;o<a[0].length&&e>0;o++){for(var l="",s=0;s<a[1].length&&e>0;s++)l=n[e%10]+a[1][s]+l,e=Math.floor(e/10);i=l.replace(/(零.)*零$/,"").replace(/^$/,"零")+a[0][o]+i}return r+i.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")},e.prototype.fnRAND=function(){return Math.random()},e.prototype.fnLAST=function(e){return e.length?e[e.length-1]:null},e.prototype.normalizeText=function(e){return e instanceof Date?b.default(e).format():"".concat(e)},e.prototype.fnLEFT=function(e,t){return(e=this.normalizeText(e)).substring(0,t)},e.prototype.fnRIGHT=function(e,t){return(e=this.normalizeText(e)).substring(e.length-t,e.length)},e.prototype.fnLEN=function(e){return null==(e=this.normalizeText(e))?void 0:e.length},e.prototype.fnLENGTH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.fnLEN.call(this,e)},e.prototype.fnISEMPTY=function(e){return!e||!String(e).trim()},e.prototype.fnCONCATENATE=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("")},e.prototype.fnCHAR=function(e){return String.fromCharCode(e)},e.prototype.fnLOWER=function(e){return(e=this.normalizeText(e)).toLowerCase()},e.prototype.fnUPPER=function(e){return(e=this.normalizeText(e)).toUpperCase()},e.prototype.fnUPPERFIRST=function(e){return e=this.normalizeText(e),g.default(e)},e.prototype.fnPADSTART=function(e,t,n){return e=this.normalizeText(e),y.default(e,t,n)},e.prototype.fnCAPITALIZE=function(e){return e=this.normalizeText(e),_.default(e)},e.prototype.fnESCAPE=function(e){return e=this.normalizeText(e),w.default(e)},e.prototype.fnTRUNCATE=function(e,t){return e=this.normalizeText(e),S.default(e,{length:t})},e.prototype.fnBEFORELAST=function(e,t){return void 0===t&&(t="."),(e=this.normalizeText(e)).split(t).slice(0,-1).join(t)||e+""},e.prototype.fnSPLIT=function(e,t){return void 0===t&&(t=","),(e=this.normalizeText(e)).split(t)},e.prototype.fnTRIM=function(e){return(e=this.normalizeText(e)).trim()},e.prototype.fnSTRIPTAG=function(e){return(e=this.normalizeText(e)).replace(/<\/?[^>]+(>|$)/g,"")},e.prototype.fnLINEBREAK=function(e){return(e=this.normalizeText(e)).replace(/(?:\r\n|\r|\n)/g,"<br/>")},e.prototype.fnSTARTSWITH=function(e,t){return!!t&&0===(e=this.normalizeText(e)).indexOf(t)},e.prototype.fnENDSWITH=function(e,t){return!!t&&-1!==(e=this.normalizeText(e)).indexOf(t,e.length-t.length)},e.prototype.fnCONTAINS=function(e,t){return!!t&&!!~(e=this.normalizeText(e)).indexOf(t)},e.prototype.fnREPLACE=function(e,t,n){for(var a=e=this.normalizeText(e);;){var r=a.indexOf(t);if(!~r)break;a=a.substring(0,r)+n+a.substring(r+t.length)}return a},e.prototype.fnSEARCH=function(e,t,n){void 0===n&&(n=0),e=this.normalizeText(e),n=this.formatNumber(n);var a=e.indexOf(t,n);return~a?a:-1},e.prototype.fnMID=function(e,t,n){return(e=this.normalizeText(e)).substring(t,t+n)},e.prototype.fnBASENAME=function(e){return(e=this.normalizeText(e)).split(/[\\/]/).pop()},e.prototype.fnDATE=function(e,t,n,a,r,i){return void 0===t?new Date(e):new Date(e,t,n,a,r,i)},e.prototype.fnTIMESTAMP=function(e,t){return parseInt(b.default(e).format("x"===t?"x":"X"),10)},e.prototype.fnTODAY=function(){return new Date},e.prototype.fnNOW=function(){return new Date},e.prototype.fnDATETOSTR=function(e,t){return void 0===t&&(t="YYYY-MM-DD HH:mm:ss"),b.default(e).format(t)},e.prototype.fnSTARTOF=function(e,t){return b.default(e).startOf(t||"day").toDate()},e.prototype.fnENDOF=function(e,t){return b.default(e).endOf(t||"day").toDate()},e.prototype.normalizeDate=function(e){if("string"==typeof e)for(var t=["","YYYY-MM-DD HH:mm:ss"];t.length;){var n=t.shift(),a=b.default(e,n);if(a.isValid())return a.toDate()}else if("number"==typeof e)return new Date(e);return e},e.prototype.fnYEAR=function(e){return(e=this.normalizeDate(e)).getFullYear()},e.prototype.fnMONTH=function(e){return(e=this.normalizeDate(e)).getMonth()+1},e.prototype.fnDAY=function(e){return(e=this.normalizeDate(e)).getDate()},e.prototype.fnHOUR=function(e){return(e=this.normalizeDate(e)).getHours()},e.prototype.fnMINUTE=function(e){return(e=this.normalizeDate(e)).getMinutes()},e.prototype.fnSECOND=function(e){return(e=this.normalizeDate(e)).getSeconds()},e.prototype.fnYEARS=function(e,t){return e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).diff(b.default(t),"year")},e.prototype.fnMINUTES=function(e,t){return e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).diff(b.default(t),"minutes")},e.prototype.fnDAYS=function(e,t){return e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).diff(b.default(t),"days")},e.prototype.fnHOURS=function(e,t){return e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).diff(b.default(t),"hour")},e.prototype.fnDATEMODIFY=function(e,t,n){return e=this.normalizeDate(e),b.default(e).add(t,n).toDate()},e.prototype.fnSTRTODATE=function(e,t){return void 0===t&&(t=""),b.default(e,t).toDate()},e.prototype.fnISBEFORE=function(e,t,n){return void 0===n&&(n="day"),e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).isBefore(b.default(t),n)},e.prototype.fnISAFTER=function(e,t,n){return void 0===n&&(n="day"),e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).isAfter(b.default(t),n)},e.prototype.fnISSAMEORBEFORE=function(e,t,n){return void 0===n&&(n="day"),e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).isSameOrBefore(b.default(t),n)},e.prototype.fnISSAMEORAFTER=function(e,t,n){return void 0===n&&(n="day"),e=this.normalizeDate(e),t=this.normalizeDate(t),b.default(e).isSameOrAfter(b.default(t),n)},e.prototype.fnCOUNT=function(e){return Array.isArray(e)?e.length:e?1:0},e.prototype.fnARRAYMAP=function(e,t){var n=this;if(!t||"anonymous_function"!==t.type)throw new Error("expected an anonymous function get "+t);return(Array.isArray(e)?e:[]).map((function(e,a){return n.callAnonymousFunction(t,[e,a])}))},e.prototype.fnCOMPACT=function(e){if(Array.isArray(e)){for(var t=0,n=[],a=0,r=e;a<r.length;a++){var i=r[a];i&&(n[t++]=i)}return n}return[]},e.prototype.fnJOIN=function(e,t){return void 0===t&&(t=""),Array.isArray(e)?e.join(t):""},e.defaultFilters={},e}();var Ie={map:function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Array.isArray(e)&&Ie[t]?e.map((function(e){var i;return(i=Ie[t]).call.apply(i,a.__spreadArray([n,e],r,!1))})):e},html:function(e){return null==e?e:Se(e)},json:function(e,t){return void 0===t&&(t=2),t?JSON.stringify(e,null,parseInt(t,10)):JSON.stringify(e)},toJson:function(e){var t;try{t=JSON.parse(e)}catch(e){t=null}return t},toInt:function(e){return"string"==typeof e?parseInt(e,10):e},toFloat:function(e){return"string"==typeof e?parseFloat(e):e},raw:function(e){return e},now:function(){return new Date},toDate:function(e,t){void 0===t&&(t="");var n=b.default(e,t);return n.isValid()?n.toDate():void 0},fromNow:function(e,t){return void 0===t&&(t=""),b.default(e,t).fromNow()},dateModify:function(e,t,n,a){return void 0===t&&(t="add"),void 0===n&&(n=0),void 0===a&&(a="days"),e instanceof Date||(e=new Date),"endOf"===t||"startOf"===t?b.default(e)["endOf"===t?"endOf":"startOf"](n||"day").toDate():b.default(e)["add"===t?"add":"subtract"](parseInt(n,10)||0,a).toDate()},date:function(e,t,n){return void 0===t&&(t="LLL"),void 0===n&&(n="X"),b.default(e,n).format(t)},number:function(e){var t=String(e).split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},trim:function(e){return"string"==typeof e?e.trim():e},percent:function(e,t){void 0===t&&(t=0),e=parseFloat(e)||0,t=parseInt(t,10)||0;var n=100*e,a=Math.pow(10,t);return(Math.round(n*a)/a).toFixed(t)+"%"},duration:function(e){return e?xe(e):e},bytes:function(e){return e?_e(parseFloat(e)):e},round:function(e,t){var n;if(void 0===t&&(t=2),isNaN(e))return 0;t=null!==(n=parseInt(t,10))&&void 0!==n?n:2;var a=Math.pow(10,t);return(Math.round(e*a)/a).toFixed(t)},truncate:function(e,t,n){return"string"!=typeof e?e:(n=n||"...",null==t?e:(t=parseInt(t,10)||200,e.substring(0,t)+(e.length>t?n:"")))},url_encode:function(e){return null==e?"":encodeURIComponent(e)},url_decode:function(e){return decodeURIComponent(e)},default:function(e,t,n){var a;return void 0===n&&(n=!1),null!==(a=n?e:e||void 0)&&void 0!==a?a:function(){try{if("undefined"===t)return;return JSON.parse(t)}catch(e){return t}}()},join:function(e,t){return e&&e.join?e.join(t):e},split:function(e,t){return void 0===t&&(t=","),"string"==typeof e?e.split(t):e},sortBy:function(e,t,n,a){return void 0===t&&(t="&"),void 0===n&&(n="alpha"),Array.isArray(e)?e.sort(function(e,t,n){return function(a,r){if(!a||!r)return 0;var i=Ne(e,a),o=Ne(e,r);return("numerical"===t?(parseFloat(i)||0)-(parseFloat(o)||0):String(i).localeCompare(String(o)))*("desc"===n?-1:1)}}(t,n,a)):e},objectToArray:function(e,t,n){return void 0===t&&(t="label"),void 0===n&&(n="value"),E.default(e,(function(e,a,r){var i;(e||(e=[])).push(((i={})[t]=a,i[n]=r,i))}),[])},unique:function(e,t){return Array.isArray(e)?t?C.default(e,t):k.default(e):e},topAndOther:function(e,t,n,a){if(void 0===t&&(t=10),void 0===n&&(n="name"),void 0===a&&(a="其他"),Array.isArray(e)&&t){var r=O.default(e,(function(n){var a=e.indexOf(n)+1;return a>=t?t:a}));return Object.keys(r).map((function(e,i){var o=r[e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e.hasOwnProperty(n)&&"labelField"!==n?"number"==typeof t[n]&&"number"==typeof e[n]?e[n]+=t[n]:"string"==typeof t[n]&&/^(?:\-|\.)\d/.test(t[n])&&"number"==typeof e[n]?e[n]+=parseFloat(t[n])||0:"string"==typeof t[n]&&"string"==typeof e[n]?e[n]+=", ".concat(t[n]):e[n]=t[n]:e[n]=t[n]})),e}),{});return i===t-1&&(o[n]=a||"其他"),o}))}return e},first:function(e){return e&&e[0]},nth:function(e,t){return void 0===t&&(t=0),e&&e[t]},last:function(e){return e&&(e.length?e[e.length-1]:null)},minus:function(e,t){var n;return void 0===t&&(t=1),ke((Number(e)||0)-Number(je(t,this.data,null===(n=this.filter)||void 0===n?void 0:n.args[0])))},plus:function(e,t){var n;return void 0===t&&(t=1),ke((Number(e)||0)+Number(je(t,this.data,null===(n=this.filter)||void 0===n?void 0:n.args[0])))},times:function(e,t){var n;return void 0===t&&(t=1),ke((Number(e)||0)*Number(je(t,this.data,null===(n=this.filter)||void 0===n?void 0:n.args[0])))},division:function(e,t){var n;return void 0===t&&(t=1),ke((Number(e)||0)/Number(je(t,this.data,null===(n=this.filter)||void 0===n?void 0:n.args[0])))},count:function(e){return Array.isArray(e)||"string"==typeof e?e.length:0},sum:function(e,t){return Array.isArray(e)?ke(e.reduce((function(e,n){return e+(parseFloat(t?Te(t,n):n)||0)}),0)):e},abs:function(e){return"number"==typeof e?Math.abs(e):e},pick:function(e,t){return void 0===t&&(t="&"),Array.isArray(e)&&!/^\d+$/.test(t)?e.map((function(e,n){return Te(t,de({index:n},e))})):Te(t,e)},pick_if_exist:function(e,t){return void 0===t&&(t="&"),Array.isArray(e)?e.map((function(e){return Ne(t,e)||e})):Ne(t,e)||e},str2date:function(e,t,n){return void 0===t&&(t="X"),void 0===n&&(n="X"),e?Ce(e,this.data,t).format(n):""},asArray:function(e){return Array.isArray(e)?e:e?[e]:e},concat:function(e){for(var t=this,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return Array.isArray(e)?e.concat.apply(e,n.map((function(e,n){var a;return je(e,t.data,null===(a=t.filter)||void 0===a?void 0:a.args[n])}))):e},filter:function(e,t,n,a){var r,i,o,l;if(!Array.isArray(e)||!t||!n)return e;var s=n,u=function(){return!0};if("isTrue"===s)u=function(e){return!!e};else if("isFalse"===s)u=function(e){return!e};else if("isExists"===s)u=function(e){return void 0!==e};else if("equals"===s||"equal"===s)a=a?je(a,this.data,null===(r=this.filter)||void 0===r?void 0:r.args[2]):"",u=function(e){return a==e};else if("isIn"===s){var c=a?je(a,this.data,null===(i=this.filter)||void 0===i?void 0:i.args[2]):[];c=Me(c),c=Array.isArray(c)?c:c?[c]:[],u=function(e){return!c.length||!!~c.indexOf(e)}}else if("notIn"===s){var d=a?je(a,this.data,null===(o=this.filter)||void 0===o?void 0:o.args[2]):[];d=Me(d),d=Array.isArray(d)?d:d?[d]:[],u=function(e){return!~d.indexOf(e)}}else{if("match"!==s&&(s="match",a=n),!(a=a?je(a,this.data,null===(l=this.filter)||void 0===l?void 0:l.args[2]):""))return e;var p=me("".concat(a),!1);u=function(e){return p.test(String(e))}}var f=/\s*\*\s*/.test(t);return t=t.split(/\s*,\s*/),e.filter((function(e){return(f?Object.keys(e):t).some((function(t){return u(Ne(t,e),t,e)}))}))},base64Encode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))},base64Decode:function(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},substring:function(e,t,n){return e&&"string"==typeof e?e.substring(t,n):e},lowerCase:function(e){return e&&"string"==typeof e?e.toLowerCase():e},upperCase:function(e){return e&&"string"==typeof e?e.toUpperCase():e},isTrue:function(e,t,n){var a=arguments.length>2;return Ae(e,a,this,!!e,t,n)},isFalse:function(e,t,n){var a=arguments.length>2;return Ae(e,a,this,!e,t,n)},isMatch:function(e,t,n,a){var r,i,o=arguments.length>3;return Ae(e,o,this,(t=null!==(i=je(t,this.data,null===(r=this.filter)||void 0===r?void 0:r.args[0]))&&void 0!==i?i:t)&&me("".concat(t),!1).test(String(e)),n,a)},notMatch:function(e,t,n,a){var r,i,o=arguments.length>3;return Ae(e,o,this,(t=null!==(i=je(t,this.data,null===(r=this.filter)||void 0===r?void 0:r.args[0]))&&void 0!==i?i:t)&&!me("".concat(t),!1).test(String(e)),n,a)},isEquals:function(e,t,n,a){var r,i;t=null!==(i=je(t,this.data,null===(r=this.filter)||void 0===r?void 0:r.args[0]))&&void 0!==i?i:t;var o=arguments.length>3;return Ae(e,o,this,e===t,n,a)},notEquals:function(e,t,n,a){var r,i;t=null!==(i=je(t,this.data,null===(r=this.filter)||void 0===r?void 0:r.args[0]))&&void 0!==i?i:t;var o=arguments.length>3;return Ae(e,o,this,e!==t,n,a)}};function Ae(e,t,n,a,r,i){var o,l,s;(t||a)&&function(e){var t;for(;~["isTrue","isFalse","isMatch","isEquals","notMatch","notEquals"].indexOf(null===(t=e[0])||void 0===t?void 0:t.name);)e.shift()}(n.restFilters);var u=a?r:i,c=a?null===(o=n.filter)||void 0===o?void 0:o.args[1]:null===(l=n.filter)||void 0===l?void 0:l.args[2];return a||t?null!==(s=je(u,n.data,c))&&void 0!==s?s:u:e}function je(e,t,n){return(null==n?void 0:n.type)&&"literal"!==n.type?e:"string"==typeof e&&/,/.test(e)?e.split(/\s*,\s*/).filter((function(e){return e})):"string"==typeof e?Ne(e,t):e}function Me(e){return e&&"string"==typeof e?/^\[.*\]$/.test(e)?e.substring(1,e.length-1).split(/\s*,\s*/).filter((function(e){return e})):e.split(/\s*,\s*/).filter((function(e){return e})):e}function De(){return Ie}Pe.setDefaultFilters(De()),t.Evaluator=Pe,t.cloneObject=pe,t.createObject=de,t.deleteVariable=function(e,t){if(e)if(e.hasOwnProperty(t))delete e[t];else{for(var n=be(t),r=n.pop();n.length;){var i=n.shift();if(!x.default(e[i])){if(e[i])throw new Error("目标路径不是纯对象,不能修改");break}e=e[i]=a.__assign({},e[i])}e&&e.hasOwnProperty&&e.hasOwnProperty(r)&&delete e[r]}},t.escapeHtml=Se,t.evaluate=function(e,t,n){var a=e;return"string"==typeof e&&(a=ce(e,n)),new Pe(t,n).evalute(a)},t.filterDate=Ce,t.filters=Ie,t.formatDuration=xe,t.getFilters=De,t.getVariable=he,t.isObject=fe,t.isPureVariable=function(e){return"string"==typeof e&&/^\$(?:((?:\w+\:)?[a-z0-9_.][a-z0-9_.\[\]]*)|{[^}{]+})$/i.test(e)},t.keyToPath=be,t.lexer=Z,t.parse=ce,t.parseDuration=function(e){var t=/^((?:\-|\+)?(?:\d*\.)?\d+)(minute|min|hour|day|week|month|quarter|year|weekday|second|millisecond)s?$/.exec(e);if(t){var n=b.default.duration(parseFloat(t[1]),t[2]);if(b.default.isDuration(n))return n}},t.pickValues=Te,t.prettyBytes=_e,t.registerFilter=function(e,t){Ie[e]=t,Pe.setDefaultFilters(Ie)},t.relativeValueRe=Oe,t.resolveVariable=Ne,t.resolveVariableAndFilter=function(e,t,n,a){if(void 0===t&&(t={}),void 0===n&&(n="| html"),void 0===a&&(a=function(e){return e}),e&&"string"==typeof e)try{var r=ce(e,{evalMode:!1,allowFilter:!0}),i=new Pe(t,{defaultFilter:n}).evalute(r);return null!=i||~e.indexOf("default")||~e.indexOf("now")?i:a(i)}catch(e){return void console.warn(e)}},t.setVariable=ve,t.string2regExp=me,t.stripNumber=ke,t.tokenize=ge},,,,function(e,t,n){var a=n(282);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(511);function r(e,t){if(null==e)return{};var n,r,i=Object(a.default)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(506);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"useStaticRendering",(function(){return r})),n.d(t,"isUsingStaticRendering",(function(){return i}));var a=!1;function r(e){a=e}function i(){return a}},function(e,t){var n,a,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var s,u=[],c=!1,d=-1;function p(){c&&s&&(c=!1,s.length?u=s.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=l(p);c=!0;for(var t=u.length;t;){for(s=u,u=[];++d<t;)s&&s[d].run();d=-1,t=u.length}s=null,c=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||c||l(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return U})),n.d(t,"resetIdCounter",(function(){return w})),n.d(t,"useCombobox",(function(){return Ie})),n.d(t,"useMultipleSelection",(function(){return ze})),n.d(t,"useSelect",(function(){return we}));var a=n(44),r=n(12),i=n(296),o=n(479),l=n(3),s=n.n(l),u=n(0),c=(n(297),n(481)),d=n(298),p=0;function f(e){return"function"==typeof e?e:m}function m(){}function h(e,t){e&&Object(c.default)(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,a=e.left;t.scrollTop=n,t.scrollLeft=a}))}function v(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function b(e,t){var n;function a(){n&&clearTimeout(n)}function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];a(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return r.cancel=a,r}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return t.some((function(t){return t&&t.apply(void 0,[e].concat(a)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function _(){return String(p++)}function w(){p=0}function S(e){var t=e.isOpen,n=e.resultCount,a=e.previousResultCount;return t?n?n!==a?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function x(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function E(e){return"string"==typeof e.type}function O(e){return e.props}var C=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function k(e){void 0===e&&(e={});var t={};return C.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function T(e,t){return Object.keys(e).reduce((function(n,a){return n[a]=N(t,a)?t[a]:e[a],n}),{})}function N(e,t){return void 0!==e[t]}function P(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function I(e,t,n,a,r){if(void 0===r&&(r=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var o=t+e;o<0?o=r?i:0:o>i&&(o=r?0:i);var l=A(e,o,n,a,r);return-1===l?t>=n?-1:t:l}function A(e,t,n,a,r){var i=a(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!a(o).hasAttribute("disabled"))return o}else for(var l=t-1;l>=0;l--)if(!a(l).hasAttribute("disabled"))return l;return r?e>0?A(1,0,n,a,!1):A(-1,n-1,n,a,!1):-1}function j(e,t,n,a){return void 0===a&&(a=!0),t.some((function(t){return t&&(v(t,e,n)||a&&v(t,n.document.activeElement,n))}))}var M=b((function(e){R(e).textContent=""}),500);function D(e,t){var n=R(t);e&&(n.textContent=e,M(t))}function R(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var F=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),B=["refKey","ref"],L=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],$=["onKeyDown","onBlur","onChange","onInput","onChangeText"],V=["refKey","ref"],z=["onMouseMove","onMouseDown","onClick","onPress","index","item"],U=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+_(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var a=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==a})),e()}),t);n.timeoutIds.push(a)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=k(t),n.internalSetState(Object(r.default)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,a){t=k(t),n.internalSetState(Object(r.default)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),a)},n.selectItemAtIndex=function(e,t,a){var r=n.items[e];null!=r&&n.selectItem(r,t,a)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var a,i,o={},l="function"==typeof e;return!l&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Object(r.default)({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var s=l?e(t):e;s=n.props.stateReducer(t,s),a=s.hasOwnProperty("selectedItem");var u={},c={};return a&&s.selectedItem!==t.selectedItem&&(i=s.selectedItem),s.type=s.type||0,Object.keys(s).forEach((function(e){t[e]!==s[e]&&(o[e]=s[e]),"type"!==e&&(c[e]=s[e],N(n.props,e)||(u[e]=s[e]))})),l&&s.hasOwnProperty("inputValue")&&n.props.onInputValueChange(s.inputValue,Object(r.default)({},n.getStateAndHelpers(),s)),u}),(function(){f(t)(),Object.keys(o).length>1&&n.props.onStateChange(o,n.getStateAndHelpers()),a&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(o,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,o=void 0===e?{}:e,l=o.refKey,s=void 0===l?"ref":l,u=o.ref,c=Object(a.default)(o,B),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=s,n.getRootProps.suppressRefError=p;var f=n.getState().isOpen;return Object(r.default)(((i={})[s]=y(u,n.rootRef),i.role="combobox",i["aria-expanded"]=f,i["aria-haspopup"]="listbox",i["aria-owns"]=f?n.menuId:null,i["aria-labelledby"]=n.labelId,i),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=I(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=I(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,a=t.highlightedIndex;if(n&&null!=a){e.preventDefault();var r=this.items[a],i=this.getItemNodeFromIndex(a);if(null==r||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(Object(r.default)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=Object(r.default)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=Object(r.default)({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var a=this.getItemCount();if(!(a<=0)&&n){var r=A(1,0,a,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(r,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var a=this.getItemCount();if(!(a<=0)&&n){var r=A(-1,a-1,a,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(r,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var o=t.onKeyDown,l=t.onKeyUp,s=t.onBlur,u=Object(a.default)(t,L),c=n.getState().isOpen,d={onClick:g(i,n.buttonHandleClick),onKeyDown:g(o,n.buttonHandleKeyDown),onKeyUp:g(l,n.buttonHandleKeyUp),onBlur:g(s,n.buttonHandleBlur)},p=u.disabled?{}:d;return Object(r.default)({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},p,u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=P(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Object(i.default)(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return Object(r.default)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,o=t.onBlur,l=t.onChange,s=t.onInput;t.onChangeText;var u=Object(a.default)(t,$),c={};var d,p=n.getState(),f=p.inputValue,m=p.isOpen,h=p.highlightedIndex;u.disabled||((d={}).onChange=g(l,s,n.inputHandleChange),d.onKeyDown=g(i,n.inputHandleKeyDown),d.onBlur=g(o,n.inputHandleBlur),c=d);return Object(r.default)({"aria-autocomplete":"list","aria-activedescendant":m&&"number"==typeof h&&h>=0?n.getItemId(h):null,"aria-controls":m?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:f,id:n.inputId},c,u)},n.inputHandleKeyDown=function(e){var t=P(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Object(i.default)(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,o=void 0===e?{}:e,l=o.refKey,s=void 0===l?"ref":l,u=o.ref,c=Object(a.default)(o,V),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=s,n.getMenuProps.suppressRefError=p,Object(r.default)(((i={})[s]=y(u,n.menuRef),i.role="listbox",i["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,i.id=n.menuId,i),c)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,o=i.onMouseMove,l=i.onMouseDown,s=i.onClick;i.onPress;var u=i.index,c=i.item,d=void 0===c?void 0:c,p=Object(a.default)(i,z);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var f=s,m=((t={onMouseMove:g(o,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:g(l,(function(e){e.preventDefault()}))}).onClick=g(f,(function(){n.selectItemAtIndex(u,{type:9})})),t),h=p.disabled?{onMouseDown:m.onMouseDown}:m;return Object(r.default)({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},h,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=k(e),n.internalSetState((function(t){var a=t.selectedItem;return Object(r.default)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(a)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=k(e),n.internalSetState((function(t){var a=t.isOpen;return Object(r.default)({isOpen:!a},a&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var a=n.getState(),r=a.isOpen,i=a.highlightedIndex;r&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),f(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=b((function(){var e=n.getState(),t=n.items[e.highlightedIndex],a=n.getItemCount(),i=n.props.getA11yStatusMessage(Object(r.default)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:a,highlightedItem:t},e));n.previousResultCount=a,D(i,n.props.environment.document)}),200);var o=n.props,l=o.defaultHighlightedIndex,s=o.initialHighlightedIndex,u=void 0===s?l:s,c=o.defaultIsOpen,d=o.initialIsOpen,p=void 0===d?c:d,m=o.initialInputValue,h=void 0===m?"":m,v=o.initialSelectedItem,w=void 0===v?null:v,S=n.getState({highlightedIndex:u,isOpen:p,inputValue:h,selectedItem:w});return null!=S.selectedItem&&void 0===n.props.initialInputValue&&(S.inputValue=n.props.itemToString(S.selectedItem)),n.state=S,n}Object(o.default)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),T(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this,a=this.getItemCount(),r=this.getState().highlightedIndex;if(a>0){var i=I(e,r,a,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,a=e.selectedItem,r=e.isOpen,i=this.props.itemToString,o=this.id,l=this.getRootProps,s=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,m=this.closeMenu,h=this.toggleMenu,v=this.selectItem,b=this.selectItemAtIndex,g=this.selectHighlightedItem,y=this.setHighlightedIndex,_=this.clearSelection,w=this.clearItems;return{getRootProps:l,getToggleButtonProps:s,getLabelProps:u,getMenuProps:c,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:m,toggleMenu:h,selectItem:v,selectItemAtIndex:b,selectHighlightedItem:g,setHighlightedIndex:y,clearSelection:_,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:o,highlightedIndex:t,inputValue:n,isOpen:r,selectedItem:a}},n.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!j(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},i=function(t){var n=j(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=this.props.environment;o.addEventListener("mousedown",t),o.addEventListener("mouseup",n),o.addEventListener("touchstart",a),o.addEventListener("touchmove",r),o.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),o.removeEventListener("mousedown",t),o.removeEventListener("mouseup",n),o.removeEventListener("touchstart",a),o.removeEventListener("touchmove",r),o.removeEventListener("touchend",i)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,a=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==a},n.componentDidUpdate=function(e,t){N(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=x(this.props.children,m);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=x(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:E(t)?Object(u.cloneElement)(t,this.getRootProps(O(t))):void 0:null},t}(u.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:S,itemToString:function(e){return null==e?"":String(e)},onStateChange:m,onInputValueChange:m,onUserAction:m,onChange:m,onSelect:m,onOuterClick:m,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:h},e.stateChangeTypes=F,e}();var H=["isInitialMount","highlightedIndex","items","environment"],W={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function q(e,t,n){var a=e.props,i=e.type,o={};Object.keys(t).forEach((function(a){!function(e,t,n,a){var i=t.props,o=t.type,l="on"+Q(e)+"Change";i[l]&&void 0!==a[e]&&a[e]!==n[e]&&i[l](Object(r.default)({type:o},a))}(a,e,t,n),n[a]!==t[a]&&(o[a]=n[a])})),a.onStateChange&&Object.keys(o).length&&a.onStateChange(Object(r.default)({type:i},o))}var K=b((function(e,t){D(e(),t)}),200),G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function Y(e){var t=e.id,n=void 0===t?"downshift-"+_():t,a=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,l=e.inputId;return Object(u.useRef)({labelId:a||n+"-label",menuId:r||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:l||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function X(e){return/^\S{1}$/.test(e)}function Q(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Z(e){var t=Object(u.useRef)(e);return t.current=e,t}function ee(e,t,n){var a=Object(u.useRef)(),i=Object(u.useRef)(),o=Object(u.useCallback)((function(t,n){i.current=n,t=T(t,n.props);var a=e(t,n);return n.props.stateReducer(t,Object(r.default)({},n,{changes:a}))}),[e]),l=Object(u.useReducer)(o,t),s=l[0],c=l[1],d=Z(n),p=Object(u.useCallback)((function(e){return c(Object(r.default)({props:d.current},e))}),[d]),f=i.current;return Object(u.useEffect)((function(){f&&a.current&&a.current!==s&&q(f,T(a.current,f.props),s),a.current=s}),[s,n,f]),[s,p]}function te(e,t,n){var a=ee(e,t,n),r=a[0],i=a[1];return[T(r,n),i]}var ne={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:h,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=W);var a="default"+Q(t);return a in e?e[a]:n[t]}function re(e,t,n){if(void 0===n&&(n=W),t in e)return e[t];var a="initial"+Q(t);return a in e?e[a]:ae(e,t,n)}function ie(e){var t=re(e,"selectedItem"),n=re(e,"isOpen"),a=re(e,"highlightedIndex"),r=re(e,"inputValue");return{highlightedIndex:a<0&&t&&n?e.items.indexOf(t):a,isOpen:n,selectedItem:t,inputValue:r}}function oe(e,t,n,a){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,l=t.selectedItem,s=t.highlightedIndex;return 0===r.length?-1:void 0!==i&&s===i?i:void 0!==o?o:l?0===n?r.indexOf(l):I(n,r.indexOf(l),r.length,a,!1):0===n?-1:n<0?r.length-1:0}function le(e,t,n,a){var r=Object(u.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(u.useEffect)((function(){var i=function(){r.current.isMouseDown=!0},o=function(i){r.current.isMouseDown=!1,e&&!j(i.target,t.map((function(e){return e.current})),n)&&a()},l=function(){r.current.isTouchMove=!1},s=function(){r.current.isTouchMove=!0},u=function(i){!e||r.current.isTouchMove||j(i.target,t.map((function(e){return e.current})),n,!1)||a()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),r}var se=function(){return m};function ue(e,t,n){var i=n.isInitialMount,o=n.highlightedIndex,l=n.items,s=n.environment,c=Object(a.default)(n,H);Object(u.useEffect)((function(){i||K((function(){return e(Object(r.default)({highlightedIndex:o,highlightedItem:l[o],resultCount:l.length},c))}),s.document)}),t)}function ce(e){var t=e.highlightedIndex,n=e.isOpen,a=e.itemRefs,r=e.getItemNodeFromIndex,i=e.menuElement,o=e.scrollIntoView,l=Object(u.useRef)(!0);return G((function(){t<0||!n||!Object.keys(a.current).length||(!1===l.current?l.current=!0:o(r(t),i))}),[t]),l}var de=m;function pe(e,t,n){var a,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:a={highlightedIndex:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:oe(o,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:oe(o,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:ae(o,"highlightedIndex"),isOpen:ae(o,"isOpen"),selectedItem:ae(o,"selectedItem"),inputValue:ae(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(r.default)({},e,a)}function fe(e){for(var t=e.keysSoFar,n=e.highlightedIndex,a=e.items,r=e.itemToString,i=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<a.length;l++){var s=(l+n+1)%a.length,u=a[s];if(void 0!==u&&r(u).toLowerCase().startsWith(o)){var c=i(s);if(!(null==c?void 0:c.hasAttribute("disabled")))return s}}return n}s.a.array.isRequired,s.a.func,s.a.func,s.a.func,s.a.bool,s.a.number,s.a.number,s.a.number,s.a.bool,s.a.bool,s.a.bool,s.a.any,s.a.any,s.a.any,s.a.string,s.a.string,s.a.string,s.a.func,s.a.string,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.shape({addEventListener:s.a.func,removeEventListener:s.a.func,document:s.a.shape({getElementById:s.a.func,activeElement:s.a.any,body:s.a.any})});var me=Object(d.__assign)(Object(d.__assign)({},ne),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,a=e.previousResultCount;return t?n?n!==a?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),he=m;var ve=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function be(e,t){var n,a=t.type,i=t.props,o=t.shiftKey;switch(a){case 11:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var l=t.key,s=""+e.inputValue+l,u=fe({keysSoFar:s,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(r.default)({inputValue:s},u>=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:oe(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:oe(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(r.default)({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:A(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:A(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var c=t.key,d=""+e.inputValue+c,p=fe({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=Object(r.default)({inputValue:d},p>=0&&{highlightedIndex:p});break;case 0:n={highlightedIndex:I(o?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:I(o?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return pe(e,t,ve)}return Object(r.default)({},e,n)}var ge=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],ye=["onClick","onKeyDown","refKey","ref"],_e=["item","index","onMouseMove","onClick","refKey","ref"];function we(e){void 0===e&&(e={}),he(e,we);var t=Object(r.default)({},me,e),n=t.items,i=t.scrollIntoView,o=t.environment,l=t.initialIsOpen,s=t.defaultIsOpen,c=t.itemToString,d=t.getA11ySelectionMessage,p=t.getA11yStatusMessage,f=te(be,ie(t),t),m=f[0],h=f[1],v=m.isOpen,_=m.highlightedIndex,w=m.selectedItem,S=m.inputValue,x=Object(u.useRef)(null),E=Object(u.useRef)(null),O=Object(u.useRef)({}),C=Object(u.useRef)(!0),k=Object(u.useRef)(null),T=Y(t),N=Object(u.useRef)(),I=Object(u.useRef)(!0),A=Z({state:m,props:t}),j=Object(u.useCallback)((function(e){return O.current[T.getItemId(e)]}),[T]);ue(p,[v,_,S,n],Object(r.default)({isInitialMount:I.current,previousResultCount:N.current,items:n,environment:o,itemToString:c},m)),ue(d,[w],Object(r.default)({isInitialMount:I.current,previousResultCount:N.current,items:n,environment:o,itemToString:c},m));var M=ce({menuElement:E.current,highlightedIndex:_,isOpen:v,itemRefs:O,scrollIntoView:i,getItemNodeFromIndex:j});Object(u.useEffect)((function(){return k.current=b((function(e){e({type:21,inputValue:""})}),500),function(){k.current.cancel()}}),[]),Object(u.useEffect)((function(){S&&k.current(h)}),[h,S]),de({isInitialMount:I.current,props:t,state:m}),Object(u.useEffect)((function(){I.current?(l||s||v)&&E.current&&E.current.focus():v?E.current&&E.current.focus():o.document.activeElement===E.current&&x.current&&(C.current=!1,x.current.focus())}),[v]),Object(u.useEffect)((function(){I.current||(N.current=n.length)}));var D=le(v,[E,x],o,(function(){h({type:8})})),R=se();Object(u.useEffect)((function(){I.current=!1}),[]),Object(u.useEffect)((function(){v||(O.current={})}),[v]);var F=Object(u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:13,getItemNodeFromIndex:j,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:14,getItemNodeFromIndex:j,shiftKey:e.shiftKey})}}}),[h,j]),B=Object(u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,getItemNodeFromIndex:j,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),h({type:1,getItemNodeFromIndex:j,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),h({type:3,getItemNodeFromIndex:j})},End:function(e){e.preventDefault(),h({type:4,getItemNodeFromIndex:j})},Escape:function(){h({type:2})},Enter:function(e){e.preventDefault(),h({type:5})}," ":function(e){e.preventDefault(),h({type:6})}}}),[h,j]),L=Object(u.useCallback)((function(){h({type:16})}),[h]),$=Object(u.useCallback)((function(){h({type:18})}),[h]),V=Object(u.useCallback)((function(){h({type:17})}),[h]),z=Object(u.useCallback)((function(e){h({type:19,highlightedIndex:e})}),[h]),U=Object(u.useCallback)((function(e){h({type:20,selectedItem:e})}),[h]),H=Object(u.useCallback)((function(){h({type:22})}),[h]),W=Object(u.useCallback)((function(e){h({type:21,inputValue:e})}),[h]),q=Object(u.useCallback)((function(e){return Object(r.default)({id:T.labelId,htmlFor:T.toggleButtonId},e)}),[T]),K=Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.onMouseLeave,l=i.refKey,s=void 0===l?"ref":l,u=i.onKeyDown,c=i.onBlur,d=i.ref,p=Object(a.default)(i,ge),f=(void 0===t?{}:t).suppressRefError,m=void 0!==f&&f,v=A.current.state;return R("getMenuProps",m,s,E),Object(r.default)(((n={})[s]=y(d,(function(e){E.current=e})),n.id=T.menuId,n.role="listbox",n["aria-labelledby"]=T.labelId,n.tabIndex=-1,n),v.isOpen&&v.highlightedIndex>-1&&{"aria-activedescendant":T.getItemId(v.highlightedIndex)},{onMouseLeave:g(o,(function(){h({type:9})})),onKeyDown:g(u,(function(e){var t=P(e);t&&B[t]?B[t](e):X(t)&&h({type:7,key:t,getItemNodeFromIndex:j})})),onBlur:g(c,(function(){!1!==C.current?!D.current.isMouseDown&&h({type:8}):C.current=!0}))},p)}),[h,A,B,D,R,T,j]);return{getToggleButtonProps:Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.onClick,l=i.onKeyDown,s=i.refKey,u=void 0===s?"ref":s,c=i.ref,d=Object(a.default)(i,ye),p=(void 0===t?{}:t).suppressRefError,f=void 0!==p&&p,m=Object(r.default)(((n={})[u]=y(c,(function(e){x.current=e})),n.id=T.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=A.current.state.isOpen,n["aria-labelledby"]=T.labelId+" "+T.toggleButtonId,n),d);return d.disabled||(m.onClick=g(o,(function(){h({type:12})})),m.onKeyDown=g(l,(function(e){var t=P(e);t&&F[t]?F[t](e):X(t)&&h({type:15,key:t,getItemNodeFromIndex:j})}))),R("getToggleButtonProps",f,u,x),m}),[h,A,F,R,T,j]),getLabelProps:q,getMenuProps:K,getItemProps:Object(u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,o=n.index,l=n.onMouseMove,s=n.onClick,u=n.refKey,c=void 0===u?"ref":u,d=n.ref,p=Object(a.default)(n,_e),f=A.current,m=f.state,v=f.props,b=J(o,i,v.items);if(b<0)throw new Error("Pass either item or item index in getItemProps!");var _=Object(r.default)(((t={role:"option","aria-selected":""+(b===m.highlightedIndex),id:T.getItemId(b)})[c]=y(d,(function(e){e&&(O.current[T.getItemId(b)]=e)})),t),p);return p.disabled||(_.onMouseMove=g(l,(function(){o!==m.highlightedIndex&&(M.current=!1,h({type:10,index:o}))})),_.onClick=g(s,(function(){h({type:11,index:o})}))),_}),[h,A,M,T]),toggleMenu:L,openMenu:V,closeMenu:$,setHighlightedIndex:z,selectItem:U,reset:H,setInputValue:W,highlightedIndex:_,isOpen:v,selectedItem:w,inputValue:S}}we.stateChangeTypes=ve;var Se=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});s.a.array.isRequired,s.a.func,s.a.func,s.a.func,s.a.bool,s.a.number,s.a.number,s.a.number,s.a.bool,s.a.bool,s.a.bool,s.a.any,s.a.any,s.a.any,s.a.string,s.a.string,s.a.string,s.a.string,s.a.string,s.a.string,s.a.func,s.a.string,s.a.string,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.func,s.a.shape({addEventListener:s.a.func,removeEventListener:s.a.func,document:s.a.shape({getElementById:s.a.func,activeElement:s.a.any,body:s.a.any})});var xe=m;var Ee=Object(r.default)({},ne,{getA11yStatusMessage:S,circularNavigation:!0});function Oe(e,t){var n,a=t.type,i=t.props,o=t.shiftKey;switch(a){case 10:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:I(o?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:oe(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:I(o?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:oe(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 5:n=Object(r.default)({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 2:n=Object(r.default)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:A(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:A(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=Object(r.default)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(i,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return pe(e,t,Se)}return Object(r.default)({},e,n)}var Ce=["onMouseLeave","refKey","ref"],ke=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Te=["onClick","onPress","refKey","ref"],Ne=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Pe=["refKey","ref"];function Ie(e){void 0===e&&(e={}),xe(e,Ie);var t=Object(r.default)({},Ee,e),n=t.initialIsOpen,i=t.defaultIsOpen,o=t.items,l=t.scrollIntoView,s=t.environment,c=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,p=t.itemToString,f=function(e,t,n){var a=Object(u.useRef)(),r=ee(e,t,n),i=r[0],o=r[1];return Object(u.useEffect)((function(){N(n,"selectedItem")&&(a.current!==n.selectedItem&&o({type:19,inputValue:n.itemToString(n.selectedItem)}),a.current=i.selectedItem===a.current?n.selectedItem:i.selectedItem)})),[T(i,n),o]}(Oe,function(e){var t=ie(e),n=t.selectedItem,a=t.inputValue;return""===a&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(a=e.itemToString(n)),Object(r.default)({},t,{inputValue:a})}(t),t),m=f[0],h=f[1],v=m.isOpen,b=m.highlightedIndex,_=m.selectedItem,w=m.inputValue,S=Object(u.useRef)(null),x=Object(u.useRef)({}),E=Object(u.useRef)(null),O=Object(u.useRef)(null),C=Object(u.useRef)(null),k=Object(u.useRef)(!0),I=Y(t),A=Object(u.useRef)(),j=Z({state:m,props:t}),M=Object(u.useCallback)((function(e){return x.current[I.getItemId(e)]}),[I]);ue(c,[v,b,w,o],Object(r.default)({isInitialMount:k.current,previousResultCount:A.current,items:o,environment:s,itemToString:p},m)),ue(d,[_],Object(r.default)({isInitialMount:k.current,previousResultCount:A.current,items:o,environment:s,itemToString:p},m));var D=ce({menuElement:S.current,highlightedIndex:b,isOpen:v,itemRefs:x,scrollIntoView:l,getItemNodeFromIndex:M});de({isInitialMount:k.current,props:t,state:m}),Object(u.useEffect)((function(){(n||i||v)&&E.current&&E.current.focus()}),[]),Object(u.useEffect)((function(){k.current||(A.current=o.length)}));var R=le(v,[C,S,O],s,(function(){h({type:7,selectItem:!1})})),F=se();Object(u.useEffect)((function(){k.current=!1}),[]),Object(u.useEffect)((function(){v||(x.current={})}),[v]);var B=Object(u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},ArrowUp:function(e){e.preventDefault(),h({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},Home:function(e){j.current.state.isOpen&&(e.preventDefault(),h({type:3,getItemNodeFromIndex:M}))},End:function(e){j.current.state.isOpen&&(e.preventDefault(),h({type:4,getItemNodeFromIndex:M}))},Escape:function(){var e=j.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&h({type:2})},Enter:function(e){var t=j.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),h({type:5,getItemNodeFromIndex:M}))}}}),[h,j,M]),L=Object(u.useCallback)((function(e){return Object(r.default)({id:I.labelId,htmlFor:I.inputId},e)}),[I]),$=Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.onMouseLeave,l=i.refKey,s=void 0===l?"ref":l,u=i.ref,c=Object(a.default)(i,Ce),d=(void 0===t?{}:t).suppressRefError;return F("getMenuProps",void 0!==d&&d,s,S),Object(r.default)(((n={})[s]=y(u,(function(e){S.current=e})),n.id=I.menuId,n.role="listbox",n["aria-labelledby"]=I.labelId,n.onMouseLeave=g(o,(function(){h({type:8})})),n),c)}),[h,F,I]),V=Object(u.useCallback)((function(e){var t,n,i=void 0===e?{}:e,o=i.item,l=i.index,s=i.refKey,u=void 0===s?"ref":s,c=i.ref,d=i.onMouseMove,p=i.onClick;i.onPress;var f=Object(a.default)(i,ke),m=j.current,v=m.props,b=m.state,_=J(l,o,v.items);if(_<0)throw new Error("Pass either item or item index in getItemProps!");var w=p;return Object(r.default)(((t={})[u]=y(c,(function(e){e&&(x.current[I.getItemId(_)]=e)})),t.role="option",t["aria-selected"]=""+(_===b.highlightedIndex),t.id=I.getItemId(_),t),!f.disabled&&((n={onMouseMove:g(d,(function(){l!==b.highlightedIndex&&(D.current=!1,h({type:9,index:l}))}))}).onClick=g(w,(function(){h({type:10,index:l}),E.current&&E.current.focus()})),n),f)}),[h,j,D,I]),z=Object(u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.onClick;n.onPress;var o=n.refKey,l=void 0===o?"ref":o,s=n.ref,u=Object(a.default)(n,Te);return Object(r.default)(((t={})[l]=y(s,(function(e){O.current=e})),t.id=I.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&Object(r.default)({},{onClick:g(i,(function(){h({type:11}),!j.current.state.isOpen&&E.current&&E.current.focus()}))}),u)}),[h,j,I]),U=Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.onKeyDown,l=i.onChange,s=i.onInput,u=i.onBlur;i.onChangeText;var c=i.refKey,d=void 0===c?"ref":c,p=i.ref,f=Object(a.default)(i,Ne),m=(void 0===t?{}:t).suppressRefError;F("getInputProps",void 0!==m&&m,d,E);var v,b=j.current.state,_={};f.disabled||((v={}).onChange=g(l,s,(function(e){h({type:6,inputValue:e.target.value})})),v.onKeyDown=g(o,(function(e){var t=P(e);t&&B[t]&&B[t](e)})),v.onBlur=g(u,(function(){b.isOpen&&!R.current.isMouseDown&&h({type:7,selectItem:!0})})),_=v);return Object(r.default)(((n={})[d]=y(p,(function(e){E.current=e})),n.id=I.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=I.menuId,n),b.isOpen&&b.highlightedIndex>-1&&{"aria-activedescendant":I.getItemId(b.highlightedIndex)},{"aria-labelledby":I.labelId,autoComplete:"off",value:b.inputValue},_,f)}),[h,B,j,R,F,I]),H=Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.refKey,l=void 0===o?"ref":o,s=i.ref,u=Object(a.default)(i,Pe),c=(void 0===t?{}:t).suppressRefError;return F("getComboboxProps",void 0!==c&&c,l,C),Object(r.default)(((n={})[l]=y(s,(function(e){C.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=I.menuId,n["aria-expanded"]=j.current.state.isOpen,n),u)}),[j,F,I]),W=Object(u.useCallback)((function(){h({type:12})}),[h]),q=Object(u.useCallback)((function(){h({type:14})}),[h]),K=Object(u.useCallback)((function(){h({type:13})}),[h]),G=Object(u.useCallback)((function(e){h({type:15,highlightedIndex:e})}),[h]),X=Object(u.useCallback)((function(e){h({type:16,selectedItem:e})}),[h]);return{getItemProps:V,getLabelProps:L,getMenuProps:$,getInputProps:U,getComboboxProps:H,getToggleButtonProps:z,toggleMenu:W,openMenu:K,closeMenu:q,setHighlightedIndex:G,setInputValue:Object(u.useCallback)((function(e){h({type:17,inputValue:e})}),[h]),selectItem:X,reset:Object(u.useCallback)((function(){h({type:18})}),[h]),highlightedIndex:b,isOpen:v,selectedItem:_,inputValue:w}}Ie.stateChangeTypes=Se;var Ae={activeIndex:-1,selectedItems:[]};function je(e,t){return re(e,t,Ae)}function Me(e,t){return ae(e,t,Ae)}function De(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}s.a.array,s.a.array,s.a.array,s.a.func,s.a.func,s.a.func,s.a.number,s.a.number,s.a.number,s.a.func,s.a.func,s.a.string,s.a.string,s.a.shape({addEventListener:s.a.func,removeEventListener:s.a.func,document:s.a.shape({getElementById:s.a.func,activeElement:s.a.any,body:s.a.any})});var Re={itemToString:ne.itemToString,stateReducer:ne.stateReducer,environment:ne.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Fe=m;var Be=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function Le(e,t){var n,a=t.type,i=t.index,o=t.props,l=t.selectedItem,s=e.activeIndex,u=e.selectedItems;switch(a){case 0:n={activeIndex:i};break;case 4:n={activeIndex:s-1<0?0:s-1};break;case 3:n={activeIndex:s+1>=u.length?-1:s+1};break;case 2:case 1:var c=s;1===u.length?c=-1:s===u.length-1&&(c=u.length-2),n=Object(r.default)({selectedItems:[].concat(u.slice(0,s),u.slice(s+1))},{activeIndex:c});break;case 5:n={activeIndex:u.length-1};break;case 6:n={selectedItems:u.slice(0,u.length-1)};break;case 8:n={selectedItems:[].concat(u,[l])};break;case 7:n={activeIndex:-1};break;case 9:var d=s,p=u.indexOf(l);1===u.length?d=-1:p===u.length-1&&(d=u.length-2),n=Object(r.default)({selectedItems:[].concat(u.slice(0,p),u.slice(p+1))},{activeIndex:d});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:Me(o,"activeIndex"),selectedItems:Me(o,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Object(r.default)({},e,n)}var $e=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ve=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function ze(e){void 0===e&&(e={}),Fe(e,ze);var t=Object(r.default)({},Re,e),n=t.getA11yRemovalMessage,i=t.itemToString,o=t.environment,l=t.keyNavigationNext,s=t.keyNavigationPrevious,c=te(Le,function(e){return{activeIndex:je(e,"activeIndex"),selectedItems:je(e,"selectedItems")}}(t),t),d=c[0],p=c[1],f=d.activeIndex,m=d.selectedItems,h=Object(u.useRef)(!0),v=Object(u.useRef)(null),b=Object(u.useRef)(m),_=Object(u.useRef)();_.current=[];var w=Z({state:d,props:t});Object(u.useEffect)((function(){if(!h.current){if(m.length<b.current.length){var e=b.current.find((function(e){return m.indexOf(e)<0}));D(n({itemToString:i,resultCount:m.length,removedSelectedItem:e,activeIndex:f,activeSelectedItem:m[f]}),o.document)}b.current=m}}),[m.length]),Object(u.useEffect)((function(){h.current||(-1===f&&v.current?v.current.focus():_.current[f]&&_.current[f].focus())}),[f]),de({isInitialMount:h.current,props:t,state:d});var S=se();Object(u.useEffect)((function(){h.current=!1}),[]);var x=Object(u.useMemo)((function(){var e;return(e={})[s]=function(){p({type:4})},e[l]=function(){p({type:3})},e.Delete=function(){p({type:1})},e.Backspace=function(){p({type:2})},e}),[p,l,s]),E=Object(u.useMemo)((function(){var e;return(e={})[s]=function(e){De(e)&&p({type:5})},e.Backspace=function(e){De(e)&&p({type:6})},e}),[p,s]);return{getSelectedItemProps:Object(u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.refKey,o=void 0===i?"ref":i,l=n.ref,s=n.onClick,u=n.onKeyDown,c=n.selectedItem,d=n.index,f=Object(a.default)(n,$e),m=w.current.state;if(J(d,c,m.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return Object(r.default)(((t={})[o]=y(l,(function(e){e&&_.current.push(e)})),t.tabIndex=d===m.activeIndex?0:-1,t.onClick=g(s,(function(){p({type:0,index:d})})),t.onKeyDown=g(u,(function(e){var t=P(e);t&&x[t]&&x[t](e)})),t),f)}),[p,w,x]),getDropdownProps:Object(u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,o=i.refKey,l=void 0===o?"ref":o,s=i.ref,u=i.onKeyDown,c=i.onClick,d=i.preventKeyAction,f=void 0!==d&&d,m=Object(a.default)(i,Ve),h=(void 0===t?{}:t).suppressRefError;S("getDropdownProps",void 0!==h&&h,l,v);return Object(r.default)(((n={})[l]=y(s,(function(e){e&&(v.current=e)})),n),!f&&{onKeyDown:g(u,(function(e){var t=P(e);t&&E[t]&&E[t](e)})),onClick:g(c,(function(){p({type:7})}))},m)}),[p,E,S]),addSelectedItem:Object(u.useCallback)((function(e){p({type:8,selectedItem:e})}),[p]),removeSelectedItem:Object(u.useCallback)((function(e){p({type:9,selectedItem:e})}),[p]),setSelectedItems:Object(u.useCallback)((function(e){p({type:10,selectedItems:e})}),[p]),setActiveIndex:Object(u.useCallback)((function(e){p({type:11,activeIndex:e})}),[p]),reset:Object(u.useCallback)((function(){p({type:12})}),[p]),selectedItems:m,activeIndex:f}}ze.stateChangeTypes=Be},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultBaseSortFn",(function(){return l})),n.d(t,"matchSorter",(function(){return s})),n.d(t,"rankings",(function(){return o}));var a=n(17),r=n(482),i=n.n(r),o={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};s.rankings=o;var l=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function s(e,t,n){void 0===n&&(n={});var r=n,i=r.keys,s=r.threshold,c=void 0===s?o.MATCHES:s,p=r.baseSort,m=void 0===p?l:p,h=r.sorter;return(void 0===h?function(e){return e.sort((function(e,t){return function(e,t,n){var a=e.rank,r=e.keyIndex,i=t.rank,o=t.keyIndex;return a===i?r===o?n(e,t):r<o?-1:1:a>i?-1:1}(e,t,m)}))}:h)(e.reduce((function(e,r,l){var s=function(e,t,n,a){if(!t){return{rankedValue:e,rank:u(e,n,a),keyIndex:-1,keyThreshold:a.threshold}}return function(e,t){for(var n=[],a=0,r=t.length;a<r;a++)for(var i=t[a],o=f(i),l=d(e,i),s=0,u=l.length;s<u;s++)n.push({itemValue:l[s],attributes:o});return n}(e,t).reduce((function(e,t,r){var i=e.rank,l=e.rankedValue,s=e.keyIndex,c=e.keyThreshold,d=t.itemValue,p=t.attributes,f=u(d,n,a),m=l,h=p.minRanking,v=p.maxRanking,b=p.threshold;return f<h&&f>=o.MATCHES?f=h:f>v&&(f=v),f>i&&(i=f,s=r,c=b,m=d),{rankedValue:m,rank:i,keyIndex:s,keyThreshold:c}}),{rankedValue:e,rank:o.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(r,i,t,n),p=s.rank,m=s.keyThreshold;p>=(void 0===m?c:m)&&e.push(Object(a.default)({},s,{item:r,index:l}));return e}),[])).map((function(e){return e.item}))}function u(e,t,n){return e=c(e,n),(t=c(t,n)).length>e.length?o.NO_MATCH:e===t?o.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?o.EQUAL:e.startsWith(t)?o.STARTS_WITH:e.includes(" "+t)?o.WORD_STARTS_WITH:e.includes(t)?o.CONTAINS:1===t.length?o.NO_MATCH:(a=e,r="",a.split(" ").forEach((function(e){e.split("-").forEach((function(e){r+=e.substr(0,1)}))})),r).includes(t)?o.ACRONYM:function(e,t){var n=0,a=0;function r(e,t,a){for(var r=a,i=t.length;r<i;r++){if(t[r]===e)return n+=1,r+1}return-1}var i=r(t[0],e,0);if(i<0)return o.NO_MATCH;a=i;for(var l=1,s=t.length;l<s;l++){var u=t[l];if(!((a=r(u,e,a))>-1))return o.NO_MATCH}return function(e){var a=1/e,r=n/t.length;return o.MATCHES+r*a}(a-i)}(e,t);var a,r}function c(e,t){return e=""+e,t.keepDiacritics||(e=i()(e)),e}function d(e,t){var n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){for(var n=e.split("."),a=[t],r=0,i=n.length;r<i;r++){for(var o=n[r],l=[],s=0,u=a.length;s<u;s++){var c=a[s];if(null!=c)if(Object.hasOwnProperty.call(c,o)){var d=c[o];null!=d&&l.push(d)}else"*"===o&&(l=l.concat(c))}a=l}if(Array.isArray(a[0])){var p=[];return p.concat.apply(p,a)}return a}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}var p={maxRanking:1/0,minRanking:-1/0};function f(e){return"string"==typeof e?p:Object(a.default)({},p,e)}},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"useObserver",(function(){return f}));var a=n(6),r=n(0),i=n.n(r),o=n(466),l=n(208),s=n(108),u=n(73),c=n(129),d={};function p(e){return"observer"+e}function f(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=d),Object(s.isUsingStaticRendering)())return e();var r=(n.useForceUpdate||u.useForceUpdate)(),f=Object(c.useQueuedForceUpdate)(r),m=i.a.useRef(null);if(!m.current){var h=new a.Reaction(p(t),(function(){v.mounted?f():(h.dispose(),m.current=null)})),v=Object(l.createTrackingData)(h);m.current=v,Object(l.scheduleCleanupOfReactionIfLeaked)(m)}var b=m.current.reaction;return i.a.useDebugValue(b,o.printDebugValue),i.a.useEffect((function(){return Object(l.recordReactionAsCommitted)(m),m.current?m.current.mounted=!0:(m.current={reaction:new a.Reaction(p(t),(function(){f()})),cleanAt:1/0},f()),function(){m.current.reaction.dispose(),m.current=null}}),[]),Object(c.useQueuedForceUpdateBlock)((function(){var t,n;if(b.track((function(){try{t=e()}catch(e){n=e}})),n)throw n;return t}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"useQueuedForceUpdate",(function(){return l})),n.d(t,"useQueuedForceUpdateBlock",(function(){return s}));var a=n(0),r=n.n(a),i=!1,o=[];function l(e){return function(){i?o.push(e):e()}}function s(e){i=!0,o=[];try{var t=e();i=!1;var n=o.length>0?o:void 0;return r.a.useLayoutEffect((function(){n&&n.forEach((function(e){return e()}))}),[n]),t}finally{i=!1}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(74);function r(e,t){if(null==e)return{};var n,r,i=Object(a.default)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)){if(a.length){var o=r.apply(null,a);o&&e.push(o)}}else if("object"===i)if(a.toString===Object.prototype.toString)for(var l in a)n.call(a,l)&&a[l]&&e.push(l);else e.push(a.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultProps",(function(){return r})),n.d(t,"useTransitionDuration",(function(){return i}));var a=n(0),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},i=function(e){var t=e.map((function(){return Object(a.useRef)()})),n=Object(a.useRef)(null);return Object(a.useEffect)((function(){var e=Date.now(),a=!1;Object.keys(t).forEach((function(r){var i=t[r].current;if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(o.transitionDuration="0s, 0s")}})),a&&(n.current=Date.now())})),[t]}},function(e,t,n){"use strict";n.r(t);var a=n(81),r=n(98),i=n(97),o=n(0),l=n(131),s=n.n(l),u=n(206),c=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"];function d(e,t){var n=e.prefixCls,l=e.invalidate,d=e.item,p=e.renderItem,f=e.responsive,m=e.registerSize,h=e.itemKey,v=e.className,b=e.style,g=e.children,y=e.display,_=e.order,w=e.component,S=void 0===w?"div":w,x=Object(i.default)(e,c),E=f&&!y;function O(e){m(h,e)}o.useEffect((function(){return function(){O(null)}}),[]);var C,k=p&&void 0!==d?p(d):g;l||(C={opacity:E?0:1,height:E?0:void 0,overflowY:E?"hidden":void 0,order:f?_:void 0,pointerEvents:E?"none":void 0,position:E?"absolute":void 0});var T={};E&&(T["aria-hidden"]=!0);var N=o.createElement(S,Object(a.default)({className:s()(!l&&n,v),style:Object(r.default)(Object(r.default)({},C),b)},T,x,{ref:t}),k);return f&&(N=o.createElement(u.default,{onResize:function(e){O(e.offsetWidth)}},N)),N}var p=o.forwardRef(d);p.displayName="Item",t.default=p},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"defaultNoopBatch",(function(){return o})),n.d(t,"observerBatching",(function(){return l})),n.d(t,"isObserverBatched",(function(){return s}));var a=n(6),r=n(73),i=Object(r.getSymbol)("observerBatching");function o(e){e()}function l(e){e||(e=o),Object(a.configure)({reactionScheduler:e}),Object(r.getGlobal)()[i]=!0}var s=function(){return!!Object(r.getGlobal)()[i]}},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";function a(){return"function"==typeof BigInt}n.r(t),n.d(t,"supportBigInt",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"OverflowContext",(function(){return v}));var a=n(81),r=n(98),i=n(77),o=n(97),l=n(0),s=n(131),u=n.n(s),c=n(206),d=n(522),p=n(133),f=n(524),m=n(526),h=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],v=l.createContext(null);function b(e){return"+ ".concat(e.length," ...")}function g(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,m=e.data,g=void 0===m?[]:m,y=e.renderItem,_=e.renderRawItem,w=e.itemKey,S=e.itemWidth,x=void 0===S?10:S,E=e.ssr,O=e.style,C=e.className,k=e.maxCount,T=e.renderRest,N=e.renderRawRest,P=e.suffix,I=e.component,A=void 0===I?"div":I,j=e.itemComponent,M=e.onVisibleChange,D=Object(o.default)(e,h),R=Object(f.useBatchFrameState)(),F="full"===E,B=R(null),L=Object(i.default)(B,2),$=L[0],V=L[1],z=$||0,U=R(new Map),H=Object(i.default)(U,2),W=H[0],q=H[1],K=R(0),G=Object(i.default)(K,2),Y=G[0],J=G[1],X=R(0),Q=Object(i.default)(X,2),Z=Q[0],ee=Q[1],te=R(0),ne=Object(i.default)(te,2),ae=ne[0],re=ne[1],ie=Object(l.useState)(null),oe=Object(i.default)(ie,2),le=oe[0],se=oe[1],ue=Object(l.useState)(null),ce=Object(i.default)(ue,2),de=ce[0],pe=ce[1],fe=l.useMemo((function(){return null===de&&F?Number.MAX_SAFE_INTEGER:de||0}),[de,$]),me=Object(l.useState)(!1),he=Object(i.default)(me,2),ve=he[0],be=he[1],ge="".concat(s,"-item"),ye=Math.max(Y,Z),_e=g.length&&"responsive"===k,we="invalidate"===k,Se=_e||"number"==typeof k&&g.length>k,xe=Object(l.useMemo)((function(){var e=g;return _e?e=null===$&&F?g:g.slice(0,Math.min(g.length,z/x)):"number"==typeof k&&(e=g.slice(0,k)),e}),[g,x,$,k,_e]),Ee=Object(l.useMemo)((function(){return _e?g.slice(fe+1):g.slice(xe.length)}),[g,xe,_e,fe]),Oe=Object(l.useCallback)((function(e,t){var n;return"function"==typeof w?w(e):null!==(n=w&&(null==e?void 0:e[w]))&&void 0!==n?n:t}),[w]),Ce=Object(l.useCallback)(y||function(e){return e},[y]);function ke(e,t){pe(e),t||(be(e<g.length-1),null==M||M(e))}function Te(e,t){q((function(n){var a=new Map(n);return null===t?a.delete(e):a.set(e,t),a}))}function Ne(e){return W.get(Oe(xe[e],e))}Object(d.default)((function(){if(z&&ye&&xe){var e=ae,t=xe.length,n=t-1;if(!t)return ke(0),void se(null);for(var a=0;a<t;a+=1){var r=Ne(a);if(F&&(r=r||0),void 0===r){ke(a-1,!0);break}if(e+=r,0===n&&e<=z||a===n-1&&e+Ne(n)<=z){ke(n),se(null);break}if(e+ye>z){ke(a-1),se(e-r-ae+Z);break}}P&&Ne(0)+ae>z&&se(null)}}),[z,W,Z,ae,Oe,xe]);var Pe=ve&&!!Ee.length,Ie={};null!==le&&_e&&(Ie={position:"absolute",left:le,top:0});var Ae,je={prefixCls:ge,responsive:_e,component:j,invalidate:we},Me=_?function(e,t){var n=Oe(e,t);return l.createElement(v.Provider,{key:n,value:Object(r.default)(Object(r.default)({},je),{},{order:t,item:e,itemKey:n,registerSize:Te,display:t<=fe})},_(e,t))}:function(e,t){var n=Oe(e,t);return l.createElement(p.default,Object(a.default)({},je,{order:t,key:n,item:e,renderItem:Ce,itemKey:n,registerSize:Te,display:t<=fe}))},De={order:Pe?fe:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:function(e,t){ee(t),J(Z)},display:Pe};if(N)N&&(Ae=l.createElement(v.Provider,{value:Object(r.default)(Object(r.default)({},je),De)},N(Ee)));else{var Re=T||b;Ae=l.createElement(p.default,Object(a.default)({},je,De),"function"==typeof Re?Re(Ee):Re)}var Fe=l.createElement(A,Object(a.default)({className:u()(!we&&s,C),style:O,ref:t},D),xe.map(Me),Se?Ae:null,P&&l.createElement(p.default,Object(a.default)({},je,{order:fe,className:"".concat(ge,"-suffix"),registerSize:function(e,t){re(t)},display:!0,style:Ie}),P));return _e&&(Fe=l.createElement(c.default,{onResize:function(e,t){V(t.clientWidth)}},Fe)),Fe}var y=l.forwardRef(g);y.displayName="Overflow",y.Item=m.default,y.RESPONSIVE="responsive",y.INVALIDATE="invalidate",t.default=y},function(e,t,n){"use strict";n.r(t);var a=n(472),r=n(474);t.default=function(e,t,n,i){return Object(a.default)(e,t,n,i),function(){Object(r.default)(e,t,n,i)}}},function(e,t,n){"use strict";n.r(t);var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=a.ZERO&&e<=a.NINE)return!0;if(e>=a.NUM_ZERO&&e<=a.NUM_MULTIPLY)return!0;if(e>=a.A&&e<=a.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"COMMON_MIME_TYPES",(function(){return a})),n.d(t,"toFileWithPath",(function(){return r}));var a=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function r(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=a.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(3),r=n.n(a),i=n(11),o=n.n(i),l=n(0),s=n.n(l),u=n(470),c={container:r.a.any,onRendered:r.a.func},d=function(e){var t=e.container,n=e.children,a=e.onRendered,r=Object(u.default)(t,a);return r?s.a.createElement(s.a.Fragment,null,o.a.createPortal(n,r)):null};d.displayName="Portal",d.propTypes=c,t.default=d},,,,,,,,function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.handleFullscreenChange=function(e){return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:e}},t.activate=function(e){return{type:"video-react/PLAYER_ACTIVATE",activity:e}},t.userActivate=function(e){return{type:"video-react/USER_ACTIVATE",activity:e}},t.play=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"play",source:""};return this.video.play(),{type:i,operation:e}},t.pause=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"pause",source:""};return this.video.pause(),{type:i,operation:e}},t.togglePlay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"toggle-play",source:""};return this.video.togglePlay(),{type:i,operation:e}},t.seek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"seek",source:""};return this.video.seek(e),{type:i,operation:t}},t.forward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"forward-".concat(e),source:""};return this.video.forward(e),{type:i,operation:t}},t.replay=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"replay-".concat(e),source:""};return this.video.replay(e),{type:i,operation:t}},t.changeRate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-rate",source:""};return this.video.playbackRate=e,{type:i,operation:t}},t.changeVolume=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-volume",source:""},n=e;e<0&&(n=0);e>1&&(n=1);return this.video.volume=n,{type:i,operation:t}},t.mute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:e?"muted":"unmuted",source:""};return this.video.muted=e,{type:i,operation:t}},t.toggleFullscreen=function(e){if(r.default.enabled)return r.default.isFullscreen?r.default.exit():r.default.request(this.rootElement),{type:i,operation:{action:"toggle-fullscreen",source:""}};return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:!e.isFullscreen}},t.USER_ACTIVATE=t.PLAYER_ACTIVATE=t.FULLSCREEN_CHANGE=t.OPERATE=void 0;var r=a(n(433)),i="video-react/OPERATE";t.OPERATE=i;t.FULLSCREEN_CHANGE="video-react/FULLSCREEN_CHANGE";t.PLAYER_ACTIVATE="video-react/PLAYER_ACTIVATE";t.USER_ACTIVATE="video-react/USER_ACTIVATE"},function(e,t,n){"use strict";function a(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=document,a=n.body,r=n.documentElement,i=r.clientLeft||a.clientLeft||0,o=window.pageXOffset||a.scrollLeft,l=t.left+o-i,s=r.clientTop||a.clientTop||0,u=window.pageYOffset||a.scrollTop,c=t.top+u-s;return{left:Math.round(l),top:Math.round(c)}}Object.defineProperty(t,"__esModule",{value:!0}),t.findElPosition=a,t.getPointerPosition=function(e,t){var n={},r=a(e),i=e.offsetWidth,o=e.offsetHeight,l=r.top,s=r.left,u=t.pageY,c=t.pageX;t.changedTouches&&(c=t.changedTouches[0].pageX,u=t.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(l-u+o)/o)),n.x=Math.max(0,Math.min(1,(c-s)/i)),n},t.blurNode=function(e){e&&e.blur&&e.blur()},t.focusNode=function(e){e&&e.focus&&e.focus()},t.hasClass=function(e,t){for(var n=e.className.split(" "),a=0;a<n.length;a++)if(n[a].toLowerCase()===t.toLowerCase())return!0;return!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"useAsObservableSourceInternal",(function(){return l})),n.d(t,"useAsObservableSource",(function(){return s}));var a=n(6),r=n(0),i=n.n(r),o=(n(73),function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o});function l(e,t){if(!t||void 0!==e){0;var n=o(i.a.useState((function(){return Object(a.observable)(e,{},{deep:!1})})),1)[0];return Object(a.runInAction)((function(){Object.assign(n,e)})),n}}function s(e){return l(e,!1)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e){return e&&e.ownerDocument||document}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t);var a=n(17),r=n(0),i=n(512),o=(n(1008),n(513)),l=n(207);function s(e){var t=e.children;return("function"==typeof t?[t]:Object(i.default)(t)).map((function(t,n){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return r.createElement(o.default,Object(a.default)({},e,{key:i}),t)}))}s.Collection=l.Collection,t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"CollectionContext",(function(){return r})),n.d(t,"Collection",(function(){return i}));var a=n(0),r=a.createContext(null);function i(e){var t=e.children,n=e.onBatchResize,i=a.useRef(0),o=a.useRef([]),l=a.useContext(r),s=a.useCallback((function(e,t,a){i.current+=1;var r=i.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){r===i.current&&(null==n||n(o.current),o.current=[])})),null==l||l(e,t,a)}),[n,l]);return a.createElement(r.Provider,{value:s},t)}},function(e,t,n){"use strict";function a(e){return{cleanAt:Date.now()+i,reaction:e}}n.r(t),n.d(t,"createTrackingData",(function(){return a})),n.d(t,"CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS",(function(){return i})),n.d(t,"CLEANUP_TIMER_LOOP_MILLIS",(function(){return o})),n.d(t,"scheduleCleanupOfReactionIfLeaked",(function(){return u})),n.d(t,"recordReactionAsCommitted",(function(){return c})),n.d(t,"forceCleanupTimerToRunNowForTests",(function(){return p})),n.d(t,"resetCleanupScheduleForTests",(function(){return f}));var r,i=1e4,o=1e4,l=new Set;function s(){void 0===r&&(r=setTimeout(d,o))}function u(e){l.add(e),s()}function c(e){l.delete(e)}function d(){r=void 0;var e=Date.now();l.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,l.delete(t))})),l.size>0&&s()}function p(){r&&(clearTimeout(r),d())}function f(){r&&(clearTimeout(r),r=void 0),l.clear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(0),r=n(499);function i(e,t){var n=a.useRef(!1);Object(r.useLayoutEffect)((function(){if(n.current)return e();n.current=!0}),t)}},,,,function(e,t,n){"use strict";var a=SyntaxError,r=Function,i=TypeError,o=function(e){try{return r('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new i},u=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,c=n(544)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?void 0:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?d(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":a,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(214),b=n(547),g=v.call(Function.call,Array.prototype.concat),y=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),w=v.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,E=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,S,(function(e,t,n,a){r[r.length]=n?_(a,x,"$1"):t||e})),r},O=function(e,t){var n,r=e;if(b(h,r)&&(r="%"+(n=h[r])[0]+"%"),b(m,r)){var l=m[r];if(l===p&&(l=function e(t){var n;if("%AsyncFunction%"===t)n=o("async function () {}");else if("%GeneratorFunction%"===t)n=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=o("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=d(r.prototype))}return m[t]=n,n}(r)),void 0===l&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:l}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');var n=E(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,u=o.value,c=!1,d=o.alias;d&&(r=d[0],y(n,g([0,1],d)));for(var p=1,f=!0;p<n.length;p+=1){var h=n[p],v=w(h,0,1),_=w(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===_||"'"===_||"`"===_)&&v!==_)throw new a("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),b(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&p+1>=n.length){var S=l(u,h);u=(f=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:u[h]}else f=b(u,h),u=u[h];f&&!c&&(m[s]=u)}}return u}},function(e,t,n){"use strict";var a=n(546);e.exports=Function.prototype.bind||a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var a;e.exports=(a=n(0),function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(e,t){e.exports=a},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(26)("wks"),r=n(17),i=n(3).Symbol,o="function"==typeof i;(e.exports=function(e){return a[e]||(a[e]=o&&i[e]||(o?i:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var a=n(7),r=n(16);e.exports=n(4)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var a=n(10),r=n(35),i=n(23),o=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(a(e),t=i(t,!0),a(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var a=n(40),r=n(22);e.exports=function(e){return a(r(e))}},function(e,t,n){var a=n(11);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var a=n(39),r=n(27);e.exports=Object.keys||function(e){return a(e,r)}},function(e,t){e.exports=!0},function(e,t,n){var a=n(3),r=n(1),i=n(53),o=n(6),l=n(5),s=function(e,t,n){var u,c,d,p=e&s.F,f=e&s.G,m=e&s.S,h=e&s.P,v=e&s.B,b=e&s.W,g=f?r:r[t]||(r[t]={}),y=g.prototype,_=f?a:m?a[t]:(a[t]||{}).prototype;for(u in f&&(n=t),n)(c=!p&&_&&void 0!==_[u])&&l(g,u)||(d=c?_[u]:n[u],g[u]=f&&"function"!=typeof _[u]?n[u]:v&&c?i(d,a):b&&_[u]==d?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):h&&"function"==typeof d?i(Function.call,d):d,h&&((g.virtual||(g.virtual={}))[u]=d,e&s.R&&y&&!y[u]&&o(y,u,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},function(e,t,n){var a=n(22);e.exports=function(e){return Object(a(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var a=n(52)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(11);e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(26)("keys"),r=n(17);e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,n){var a=n(1),r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:n(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var a=n(7).f,r=n(5),i=n(2)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&a(e,i,{configurable:!0,value:t})}},function(e,t,n){n(62);for(var a=n(3),r=n(6),i=n(12),o=n(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<l.length;s++){var u=l[s],c=a[u],d=c&&c.prototype;d&&!d[o]&&r(d,o,u),i[u]=i.Array}},function(e,t,n){t.f=n(2)},function(e,t,n){var a=n(3),r=n(1),i=n(14),o=n(30),l=n(7).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:a.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:o.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e,t,n){return Math.min(Math.max(e,t),n)}},function(e,t,n){"use strict";var a=n(14),r=n(15),i=n(37),o=n(6),l=n(12),s=n(55),u=n(28),c=n(61),d=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,m,h,v,b){s(n,t,m);var g,y,_,w=function(e){if(!p&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",x="values"==h,E=!1,O=e.prototype,C=O[d]||O["@@iterator"]||h&&O[h],k=C||w(h),T=h?x?w("entries"):k:void 0,N="Array"==t&&O.entries||C;if(N&&(_=c(N.call(new e)))!==Object.prototype&&_.next&&(u(_,S,!0),a||"function"==typeof _[d]||o(_,d,f)),x&&C&&"values"!==C.name&&(E=!0,k=function(){return C.call(this)}),a&&!b||!p&&!E&&O[d]||o(O,d,k),l[t]=k,l[S]=f,h)if(g={values:x?k:w("values"),keys:v?k:w("keys"),entries:T},b)for(y in g)y in O||i(O,y,g[y]);else r(r.P+r.F*(p||E),t,g);return g}},function(e,t,n){e.exports=!n(4)&&!n(8)((function(){return 7!=Object.defineProperty(n(36)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var a=n(11),r=n(3).document,i=a(r)&&a(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=n(6)},function(e,t,n){var a=n(10),r=n(56),i=n(27),o=n(25)("IE_PROTO"),l=function(){},s=function(){var e,t=n(36)("iframe"),a=i.length;for(t.style.display="none",n(60).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;a--;)delete s.prototype[i[a]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=a(e),n=new l,l.prototype=null,n[o]=e):n=s(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(5),r=n(9),i=n(57)(!1),o=n(25)("IE_PROTO");e.exports=function(e,t){var n,l=r(e),s=0,u=[];for(n in l)n!=o&&a(l,n)&&u.push(n);for(;t.length>s;)a(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var a=n(24);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,n){var a=n(39),r=n(27).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},function(e,t,n){var a=n(24),r=n(2)("toStringTag"),i="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var a=f(n(49)),r=f(n(76)),i=f(n(81)),o=f(n(89)),l=f(n(93)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(94)),u=f(n(132)),c=f(n(133)),d=f(n(138)),p=n(139);function f(e){return e&&e.__esModule?e:{default:e}}var m=s.default,h=(0,o.default)(m),v=(0,d.default)(c.default,p.rgb2yuv,(function(e){var t,n=(0,i.default)(e,3);return[(t=n[0],t<.25?1:t<.5?.9-t:1.1-t),n[1],n[2]]}),p.yuv2rgb,u.default),b=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,r.default)({},t.style||{},e.style||{})}}},g=function(e,t){var n=(0,o.default)(t);for(var i in e)-1===n.indexOf(i)&&n.push(i);return n.reduce((function(n,i){return n[i]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,a.default)(e),i=void 0===t?"undefined":(0,a.default)(t);switch(n){case"string":switch(i){case"string":return[t,e].filter(Boolean).join(" ");case"object":return b({className:e,style:t});case"function":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return b({className:e})(t.apply(void 0,[n].concat(r)))}}case"object":switch(i){case"string":return b({className:t,style:e});case"object":return(0,r.default)({},t,e);case"function":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return b({style:e})(t.apply(void 0,[n].concat(r)))}}case"function":switch(i){case"string":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return e.apply(void 0,[b(n)({className:t})].concat(r))};case"object":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return e.apply(void 0,[b(n)({style:t})].concat(r))};case"function":return function(n){for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return e.apply(void 0,[t.apply(void 0,[n].concat(r))].concat(r))}}}}(e[i],t[i]),n}),{})},y=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),l=2;l<n;l++)i[l-2]=arguments[l];if(null===t)return e;Array.isArray(t)||(t=[t]);var s=t.map((function(t){return e[t]})).filter(Boolean),u=s.reduce((function(e,t){return"string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"===(void 0===t?"undefined":(0,a.default)(t))?e.style=(0,r.default)({},e.style,t):"function"==typeof t&&(e=(0,r.default)({},e,t.apply(void 0,[e].concat(i)))),e}),{className:"",style:{}});return u.className||delete u.className,0===(0,o.default)(u.style).length&&delete u.style,u},_=t.invertTheme=function(e){return(0,o.default)(e).reduce((function(t,n){return t[n]=/^base/.test(n)?v(e[n]):"scheme"===n?e[n]+":inverted":e[n],t}),{})},w=(t.createStyling=(0,l.default)((function(e){for(var t=arguments.length,n=Array(t>3?t-3:0),a=3;a<t;a++)n[a-3]=arguments[a];var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i.defaultBase16,c=void 0===u?m:u,d=i.base16Themes,p=void 0===d?null:d,f=w(s,p);f&&(s=(0,r.default)({},f,s));var v=h.reduce((function(e,t){return e[t]=s[t]||c[t],e}),{}),b=(0,o.default)(s).reduce((function(e,t){return-1===h.indexOf(t)?(e[t]=s[t],e):e}),{}),_=e(v),S=g(b,_);return(0,l.default)(y,2).apply(void 0,[S].concat(n))}),3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),a=(0,i.default)(n,2),r=a[0],o=a[1];e=(t||{})[r]||s[r],"inverted"===o&&(e=_(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";var a,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise((function(n,a){function r(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,r),a(n)},e.once("error",i)),e.once(t,r)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,a){var r,i,o,l;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=a?[n,o]:[o,n]:a?o.unshift(n):o.push(n),(r=c(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=p.bind(a);return r.listener=n,a.wrapFn=r,r}function m(e,t,n){var a=e._events;if(void 0===a)return[];var r=a[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):v(r,r.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),a=0;a<t;++a)n[a]=e[a];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return c(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,r=this._events;if(void 0!==r)a=a&&void 0===r.error;else if(!a)return!1;if(a){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var u=s.length,c=v(s,u);for(n=0;n<u;++n)i(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,a,r,i,o;if(u(t),void 0===(a=this._events))return this;if(void 0===(n=a[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(a[e]=n[0]),void 0!==a.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,a;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(a=0;a<i.length;++a)"removeListener"!==(r=i[a])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},l.prototype.listenerCount=h,l.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(e,t,n){e.exports.Dispatcher=n(140)},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";t.__esModule=!0;var a=o(n(50)),r=o(n(65)),i="function"==typeof r.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(a.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){n(20),n(29),e.exports=n(30).f("iterator")},function(e,t,n){var a=n(21),r=n(22);e.exports=function(e){return function(t,n){var i,o,l=String(r(t)),s=a(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):i:e?l.slice(s,s+2):o-56320+(i-55296<<10)+65536}}},function(e,t,n){var a=n(54);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var a=n(38),r=n(16),i=n(28),o={};n(6)(o,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=a(o,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var a=n(7),r=n(10),i=n(13);e.exports=n(4)?Object.defineProperties:function(e,t){r(e);for(var n,o=i(t),l=o.length,s=0;l>s;)a.f(e,n=o[s++],t[n]);return e}},function(e,t,n){var a=n(9),r=n(58),i=n(59);e.exports=function(e){return function(t,n,o){var l,s=a(t),u=r(s.length),c=i(o,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var a=n(21),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},function(e,t,n){var a=n(21),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var a=n(3).document;e.exports=a&&a.documentElement},function(e,t,n){var a=n(5),r=n(18),i=n(25)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),a(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){"use strict";var a=n(63),r=n(64),i=n(12),o=n(9);e.exports=n(34)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){n(67),n(73),n(74),n(75),e.exports=n(1).Symbol},function(e,t,n){"use strict";var a=n(3),r=n(5),i=n(4),o=n(15),l=n(37),s=n(68).KEY,u=n(8),c=n(26),d=n(28),p=n(17),f=n(2),m=n(30),h=n(31),v=n(69),b=n(70),g=n(10),y=n(11),_=n(18),w=n(9),S=n(23),x=n(16),E=n(38),O=n(71),C=n(72),k=n(32),T=n(7),N=n(13),P=C.f,I=T.f,A=O.f,j=a.Symbol,M=a.JSON,D=M&&M.stringify,R=f("_hidden"),F=f("toPrimitive"),B={}.propertyIsEnumerable,L=c("symbol-registry"),$=c("symbols"),V=c("op-symbols"),z=Object.prototype,U="function"==typeof j&&!!k.f,H=a.QObject,W=!H||!H.prototype||!H.prototype.findChild,q=i&&u((function(){return 7!=E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var a=P(z,t);a&&delete z[t],I(e,t,n),a&&e!==z&&I(z,t,a)}:I,K=function(e){var t=$[e]=E(j.prototype);return t._k=e,t},G=U&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},Y=function(e,t,n){return e===z&&Y(V,t,n),g(e),t=S(t,!0),g(n),r($,t)?(n.enumerable?(r(e,R)&&e[R][t]&&(e[R][t]=!1),n=E(n,{enumerable:x(0,!1)})):(r(e,R)||I(e,R,x(1,{})),e[R][t]=!0),q(e,t,n)):I(e,t,n)},J=function(e,t){g(e);for(var n,a=v(t=w(t)),r=0,i=a.length;i>r;)Y(e,n=a[r++],t[n]);return e},X=function(e){var t=B.call(this,e=S(e,!0));return!(this===z&&r($,e)&&!r(V,e))&&(!(t||!r(this,e)||!r($,e)||r(this,R)&&this[R][e])||t)},Q=function(e,t){if(e=w(e),t=S(t,!0),e!==z||!r($,t)||r(V,t)){var n=P(e,t);return!n||!r($,t)||r(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=A(w(e)),a=[],i=0;n.length>i;)r($,t=n[i++])||t==R||t==s||a.push(t);return a},ee=function(e){for(var t,n=e===z,a=A(n?V:w(e)),i=[],o=0;a.length>o;)!r($,t=a[o++])||n&&!r(z,t)||i.push($[t]);return i};U||(l((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(V,n),r(this,R)&&r(this[R],e)&&(this[R][e]=!1),q(this,e,x(1,n))};return i&&W&&q(z,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),C.f=Q,T.f=Y,n(41).f=O.f=Z,n(19).f=X,k.f=ee,i&&!n(14)&&l(z,"propertyIsEnumerable",X,!0),m.f=function(e){return K(f(e))}),o(o.G+o.W+o.F*!U,{Symbol:j});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ae=N(f.store),re=0;ae.length>re;)h(ae[re++]);o(o.S+o.F*!U,"Symbol",{for:function(e){return r(L,e+="")?L[e]:L[e]=j(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!U,"Object",{create:function(e,t){return void 0===t?E(e):J(E(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=u((function(){k.f(1)}));o(o.S+o.F*ie,"Object",{getOwnPropertySymbols:function(e){return k.f(_(e))}}),M&&o(o.S+o.F*(!U||u((function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,a=[e],r=1;arguments.length>r;)a.push(arguments[r++]);if(n=t=a[1],(y(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),a[1]=t,D.apply(M,a)}}),j.prototype[F]||n(6)(j.prototype,F,j.prototype.valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(a.JSON,"JSON",!0)},function(e,t,n){var a=n(17)("meta"),r=n(11),i=n(5),o=n(7).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(8)((function(){return s(Object.preventExtensions({}))})),c=function(e){o(e,a,{value:{i:"O"+ ++l,w:{}}})},d=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,a)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!i(e,a)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return u&&d.NEED&&s(e)&&!i(e,a)&&c(e),e}}},function(e,t,n){var a=n(13),r=n(32),i=n(19);e.exports=function(e){var t=a(e),n=r.f;if(n)for(var o,l=n(e),s=i.f,u=0;l.length>u;)s.call(e,o=l[u++])&&t.push(o);return t}},function(e,t,n){var a=n(24);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,n){var a=n(9),r=n(41).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return o.slice()}}(e):r(a(e))}},function(e,t,n){var a=n(19),r=n(16),i=n(9),o=n(23),l=n(5),s=n(35),u=Object.getOwnPropertyDescriptor;t.f=n(4)?u:function(e,t){if(e=i(e),t=o(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(31)("asyncIterator")},function(e,t,n){n(31)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var a,r=(a=n(77))&&a.__esModule?a:{default:a};t.default=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}},function(e,t,n){e.exports={default:n(78),__esModule:!0}},function(e,t,n){n(79),e.exports=n(1).Object.assign},function(e,t,n){var a=n(15);a(a.S+a.F,"Object",{assign:n(80)})},function(e,t,n){"use strict";var a=n(4),r=n(13),i=n(32),o=n(19),l=n(18),s=n(40),u=Object.assign;e.exports=!u||n(8)((function(){var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=a}))?function(e,t){for(var n=l(e),u=arguments.length,c=1,d=i.f,p=o.f;u>c;)for(var f,m=s(arguments[c++]),h=d?r(m).concat(d(m)):r(m),v=h.length,b=0;v>b;)f=h[b++],a&&!p.call(m,f)||(n[f]=m[f]);return n}:u},function(e,t,n){"use strict";t.__esModule=!0;var a=i(n(82)),r=i(n(85));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var l,s=(0,r.default)(e);!(a=(l=s.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(84)},function(e,t,n){var a=n(42),r=n(2)("iterator"),i=n(12);e.exports=n(1).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||i.hasOwnProperty(a(t))}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(87)},function(e,t,n){var a=n(10),r=n(88);e.exports=n(1).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},function(e,t,n){var a=n(42),r=n(2)("iterator"),i=n(12);e.exports=n(1).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[a(e)]}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){n(91),e.exports=n(1).Object.keys},function(e,t,n){var a=n(18),r=n(13);n(92)("keys",(function(){return function(e){return r(a(e))}}))},function(e,t,n){var a=n(15),r=n(1),i=n(8);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),a(a.S+a.F*i((function(){n(1)})),"Object",o)}},function(e,t,n){(function(t){var n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a=/^\s+|\s+$/g,r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^\[object .+?Constructor\]$/,c=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,p=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,h=f||m||Function("return this")();function v(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function b(e){return e!=e}function g(e,t){for(var n=e.length,a=0;n--;)e[n]===t&&a++;return a}function y(e,t){for(var n=-1,a=e.length,r=0,i=[];++n<a;){var o=e[n];o!==t&&"__lodash_placeholder__"!==o||(e[n]="__lodash_placeholder__",i[r++]=n)}return i}var _,w,S,x=Function.prototype,E=Object.prototype,O=h["__core-js_shared__"],C=(_=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",k=x.toString,T=E.hasOwnProperty,N=E.toString,P=RegExp("^"+k.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=Object.create,A=Math.max,j=Math.min,M=(w=z(Object,"defineProperty"),(S=z.name)&&S.length>2?w:void 0);function D(e){return J(e)?I(e):{}}function R(e,t,n,a){for(var r=-1,i=e.length,o=n.length,l=-1,s=t.length,u=A(i-o,0),c=Array(s+u),d=!a;++l<s;)c[l]=t[l];for(;++r<o;)(d||r<i)&&(c[n[r]]=e[r]);for(;u--;)c[l++]=e[r++];return c}function F(e,t,n,a){for(var r=-1,i=e.length,o=-1,l=n.length,s=-1,u=t.length,c=A(i-l,0),d=Array(c+u),p=!a;++r<c;)d[r]=e[r];for(var f=r;++s<u;)d[f+s]=t[s];for(;++o<l;)(p||r<i)&&(d[f+n[o]]=e[r++]);return d}function B(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=D(e.prototype),a=e.apply(n,t);return J(a)?a:n}}function L(e,t,n,a,r,i,o,l,s,u){var c=128&t,d=1&t,p=2&t,f=24&t,m=512&t,v=p?void 0:B(e);return function b(){for(var _=arguments.length,w=Array(_),S=_;S--;)w[S]=arguments[S];if(f)var x=V(b),E=g(w,x);if(a&&(w=R(w,a,r,f)),i&&(w=F(w,i,o,f)),_-=E,f&&_<u){var O=y(w,x);return $(e,t,L,b.placeholder,n,w,O,l,s,u-_)}var C=d?n:this,k=p?C[e]:e;return _=w.length,l?w=q(w,l):m&&_>1&&w.reverse(),c&&s<_&&(w.length=s),this&&this!==h&&this instanceof b&&(k=v||B(k)),k.apply(C,w)}}function $(e,t,n,a,r,i,o,l,s,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var d=n(e,t,r,c?i:void 0,c?o:void 0,c?void 0:i,c?void 0:o,l,s,u);return d.placeholder=a,K(d,e,t)}function V(e){return e.placeholder}function z(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!J(e)||function(e){return!!C&&C in e}(e))&&(function(e){var t=J(e)?N.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?P:u).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function U(e){var t=e.match(i);return t?t[1].split(o):[]}function H(e,t){var n=t.length,a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(r,"{\n/* [wrapped with "+t+"] */\n")}function W(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||d.test(e))&&e>-1&&e%1==0&&e<t}function q(e,t){for(var n=e.length,a=j(t.length,n),r=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}(e);a--;){var i=t[a];e[a]=W(i,n)?r[i]:void 0}return e}var K=M?function(e,t,n){var a,r=t+"";return M(e,"toString",{configurable:!0,enumerable:!1,value:(a=H(r,G(U(r),n)),function(){return a})})}:function(e){return e};function G(e,t){return function(e,t){for(var n=-1,a=e?e.length:0;++n<a&&!1!==t(e[n]););}(n,(function(n){var a="_."+n[0];t&n[1]&&!function(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,a){for(var r=e.length,i=-1;++i<r;)if(t(e[i],i,e))return i;return-1}(e,b);for(var a=-1,r=e.length;++a<r;)if(e[a]===t)return a;return-1}(e,t)>-1}(e,a)&&e.push(a)})),e.sort()}function Y(e,t,n){var a=function(e,t,n,a,r,i,o,l){var s=2&t;if(!s&&"function"!=typeof e)throw new TypeError("Expected a function");var u=a?a.length:0;if(u||(t&=-97,a=r=void 0),o=void 0===o?o:A(X(o),0),l=void 0===l?l:X(l),u-=r?r.length:0,64&t){var c=a,d=r;a=r=void 0}var p=[e,t,n,a,r,c,d,i,o,l];if(e=p[0],t=p[1],n=p[2],a=p[3],r=p[4],!(l=p[9]=null==p[9]?s?0:e.length:A(p[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)f=8==t||16==t?function(e,t,n){var a=B(e);return function r(){for(var i=arguments.length,o=Array(i),l=i,s=V(r);l--;)o[l]=arguments[l];var u=i<3&&o[0]!==s&&o[i-1]!==s?[]:y(o,s);if((i-=u.length)<n)return $(e,t,L,r.placeholder,void 0,o,u,void 0,void 0,n-i);var c=this&&this!==h&&this instanceof r?a:e;return v(c,this,o)}}(e,t,l):32!=t&&33!=t||r.length?L.apply(void 0,p):function(e,t,n,a){var r=1&t,i=B(e);return function t(){for(var o=-1,l=arguments.length,s=-1,u=a.length,c=Array(u+l),d=this&&this!==h&&this instanceof t?i:e;++s<u;)c[s]=a[s];for(;l--;)c[s++]=arguments[++o];return v(d,r?n:this,c)}}(e,t,n,a);else var f=function(e,t,n){var a=1&t,r=B(e);return function t(){var i=this&&this!==h&&this instanceof t?r:e;return i.apply(a?n:this,arguments)}}(e,t,n);return K(f,e,t)}(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return a.placeholder=Y.placeholder,a}function J(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function X(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==N.call(e)}(e))return NaN;if(J(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=J(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?p(e.slice(2),n?2:8):l.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}Y.placeholder={},e.exports=Y}).call(this,n(43))},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(95);t.threezerotwofour=a(r);var i=n(96);t.apathy=a(i);var o=n(97);t.ashes=a(o);var l=n(98);t.atelierDune=a(l);var s=n(99);t.atelierForest=a(s);var u=n(100);t.atelierHeath=a(u);var c=n(101);t.atelierLakeside=a(c);var d=n(102);t.atelierSeaside=a(d);var p=n(103);t.bespin=a(p);var f=n(104);t.brewer=a(f);var m=n(105);t.bright=a(m);var h=n(106);t.chalk=a(h);var v=n(107);t.codeschool=a(v);var b=n(108);t.colors=a(b);var g=n(109);t.default=a(g);var y=n(110);t.eighties=a(y);var _=n(111);t.embers=a(_);var w=n(112);t.flat=a(w);var S=n(113);t.google=a(S);var x=n(114);t.grayscale=a(x);var E=n(115);t.greenscreen=a(E);var O=n(116);t.harmonic=a(O);var C=n(117);t.hopscotch=a(C);var k=n(118);t.isotope=a(k);var T=n(119);t.marrakesh=a(T);var N=n(120);t.mocha=a(N);var P=n(121);t.monokai=a(P);var I=n(122);t.ocean=a(I);var A=n(123);t.paraiso=a(A);var j=n(124);t.pop=a(j);var M=n(125);t.railscasts=a(M);var D=n(126);t.shapeshifter=a(D);var R=n(127);t.solarized=a(R);var F=n(128);t.summerfruit=a(F);var B=n(129);t.tomorrow=a(B);var L=n(130);t.tube=a(L);var $=n(131);t.twilight=a($)},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},function(e,t,n){var a=n(33);function r(e){var t=Math.round(a(e,0,255)).toString(16);return 1==t.length?"0"+t:t}e.exports=function(e){var t=4===e.length?r(255*e[3]):"";return"#"+r(e[0])+r(e[1])+r(e[2])+t}},function(e,t,n){var a=n(134),r=n(135),i=n(136),o=n(137),l={"#":r,hsl:function(e){var t=a(e),n=o(t);return 4===t.length&&n.push(t[3]),n},rgb:i};function s(e){for(var t in l)if(0===e.indexOf(t))return l[t](e)}s.rgb=i,s.hsl=a,s.hex=r,e.exports=s},function(e,t,n){var a=n(44),r=n(33);function i(e,t){switch(e=parseFloat(e),t){case 0:return r(e,0,360);case 1:case 2:return r(e,0,100);case 3:return r(e,0,1)}}e.exports=function(e){return a(e).map(i)}},function(e,t){e.exports=function(e){4!==e.length&&5!==e.length||(e=function(e){for(var t="#",n=1;n<e.length;n++){var a=e.charAt(n);t+=a+a}return t}(e));var t=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(9===e.length){var n=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));t.push(n)}return t}},function(e,t,n){var a=n(44),r=n(33);function i(e,t){return t<3?-1!=e.indexOf("%")?Math.round(255*r(parseInt(e,10),0,100)/100):r(parseInt(e,10),0,255):r(parseFloat(e),0,1)}e.exports=function(e){return a(e).map(i)}},function(e,t){e.exports=function(e){var t,n,a,r,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0==l)return[i=255*s,i,i];t=2*s-(n=s<.5?s*(1+l):s+l-s*l),r=[0,0,0];for(var u=0;u<3;u++)(a=o+1/3*-(u-1))<0&&a++,a>1&&a--,i=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[u]=255*i;return r}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,r=n||a||Function("return this")();function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function o(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}var l=Object.prototype,s=l.hasOwnProperty,u=l.toString,c=r.Symbol,d=l.propertyIsEnumerable,p=c?c.isConcatSpreadable:void 0,f=Math.max;function m(e){return b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&s.call(e,"callee")&&(!d.call(e,"callee")||"[object Arguments]"==u.call(e))}(e)||!!(p&&e&&e[p])}var h,v,b=Array.isArray,g=(h=function(e){for(var t=(e=function e(t,n,a,r,i){var l=-1,s=t.length;for(a||(a=m),i||(i=[]);++l<s;){var u=t[l];n>0&&a(u)?n>1?e(u,n-1,a,r,i):o(i,u):r||(i[i.length]=u)}return i}(e,1)).length,n=t;n--;)if("function"!=typeof e[n])throw new TypeError("Expected a function");return function(){for(var n=0,a=t?e[n].apply(this,arguments):arguments[0];++n<t;)a=e[n].call(this,a);return a}},v=f(void 0===v?h.length-1:v,0),function(){for(var e=arguments,t=-1,n=f(e.length-v,0),a=Array(n);++t<n;)a[t]=e[v+t];t=-1;for(var r=Array(v+1);++t<v;)r[t]=e[t];return r[v]=a,i(h,this,r)});e.exports=g}).call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yuv2rgb=function(e){var t,n,a,r=e[0],i=e[1],o=e[2];return t=1*r+0*i+1.13983*o,n=1*r+-.39465*i+-.5806*o,a=1*r+2.02311*i+0*o,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},t.rgb2yuv=function(e){var t=e[0]/255,n=e[1]/255,a=e[2]/255;return[.299*t+.587*n+.114*a,-.14713*t+-.28886*n+.436*a,.615*t+-.51499*n+-.10001*a]}},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(141),i=function(){function e(){a(this,"_callbacks",void 0),a(this,"_isDispatching",void 0),a(this,"_isHandled",void 0),a(this,"_isPending",void 0),a(this,"_lastID",void 0),a(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||r(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||r(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||r(!1):(this._callbacks[n]||r(!1),this._invokeCallback(n))}},t.dispatch=function(e){this._isDispatching&&r(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},t.isDispatching=function(){return this._isDispatching},t._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},t._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},t._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(i=new Error(t.replace(/%s/g,(function(){return String(a[o++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?f(e):t}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return m(this,n)}}n.r(t);var v=n(0),b=n.n(v);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function _(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function w(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==r){var i=e.displayName||e.name,o="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+o+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=_;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,a)}}return e}function S(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}g.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,_.__suppressDeprecationWarning=!0;var E={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},O={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},C={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},k=n(45),T=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:C.globalFontFamily,cursor:C.globalCursor,backgroundColor:t.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:t.ellipsisColor,fontSize:C.ellipsisFontSize,lineHeight:C.ellipsisLineHeight,cursor:C.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:C.braceCursor,fontWeight:C.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:"inline-block",margin:C.keyMargin,color:t.keyColor,verticalAlign:"top"},objectKeyVal:function(e,n){return{style:i({paddingTop:C.keyValPaddingTop,paddingRight:C.keyValPaddingRight,paddingBottom:C.keyValPaddingBottom,borderLeft:C.keyValBorderLeft+" "+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+"px",borderLeft:C.keyValBorderHover+" "+t.objectBorder}},n)}},"object-key-val-no-border":{padding:C.keyValPadding},"pushed-content":{marginLeft:C.pushedContentMarginLeft},variableValue:function(e,t){return{style:i({display:"inline-block",paddingRight:C.variableValuePaddingRight,position:"relative"},t)}},"object-name":{display:"inline-block",color:t.keyColor,letterSpacing:C.keyLetterSpacing,fontStyle:C.keyFontStyle,verticalAlign:C.keyVerticalAlign,opacity:C.keyOpacity,":hover":{opacity:C.keyOpacityHover}},"array-key":{display:"inline-block",color:t.arrayKeyColor,letterSpacing:C.keyLetterSpacing,fontStyle:C.keyFontStyle,verticalAlign:C.keyVerticalAlign,opacity:C.keyOpacity,":hover":{opacity:C.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:C.objectSizeBorderRadius,fontStyle:C.objectSizeFontStyle,margin:C.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:C.dataTypeFontSize,marginRight:C.dataTypeMarginRight,opacity:C.datatypeOpacity},boolean:{display:"inline-block",color:t.dataTypes.boolean},date:{display:"inline-block",color:t.dataTypes.date},"date-value":{marginLeft:C.dateValueMarginLeft},float:{display:"inline-block",color:t.dataTypes.float},function:{display:"inline-block",color:t.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:t.dataTypes.integer},string:{display:"inline-block",color:t.dataTypes.string},nan:{display:"inline-block",color:t.dataTypes.nan,fontSize:C.nanFontSize,fontWeight:C.nanFontWeight,backgroundColor:t.dataTypes.background,padding:C.nanPadding,borderRadius:C.nanBorderRadius},null:{display:"inline-block",color:t.dataTypes.null,fontSize:C.nullFontSize,fontWeight:C.nullFontWeight,backgroundColor:t.dataTypes.background,padding:C.nullPadding,borderRadius:C.nullBorderRadius},undefined:{display:"inline-block",color:t.dataTypes.undefined,fontSize:C.undefinedFontSize,padding:C.undefinedPadding,borderRadius:C.undefinedBorderRadius,backgroundColor:t.dataTypes.background},regexp:{display:"inline-block",color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:C.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:C.iconFontSize,marginRight:C.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:C.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:C.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:C.metaDataPadding},"icon-container":{display:"inline-block",width:C.iconContainerWidth},tooltip:{padding:C.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.removeIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.addIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.editIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:C.iconCursor,color:t.editVariable.checkIcon,fontSize:C.iconFontSize,paddingRight:C.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:C.iconCursor,color:t.editVariable.cancelIcon,fontSize:C.iconFontSize,paddingRight:C.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:C.editInputMinWidth,borderRadius:C.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:C.editInputPadding,marginRight:C.editInputMarginRight,fontFamily:C.editInputFontFamily},"detected-row":{paddingTop:C.detectedRowPaddingTop},"key-modal-request":{position:C.addKeyCoverPosition,top:C.addKeyCoverPositionPx,left:C.addKeyCoverPositionPx,right:C.addKeyCoverPositionPx,bottom:C.addKeyCoverPositionPx,backgroundColor:C.addKeyCoverBackground},"key-modal":{width:C.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:C.addKeyModalMargin,marginRight:C.addKeyModalMargin,padding:C.addKeyModalPadding,borderRadius:C.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:t.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:C.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:C.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:t.ellipsisColor,fontSize:C.ellipsisFontSize,lineHeight:C.ellipsisLineHeight,cursor:C.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:t.validationFailure.iconColor,fontSize:C.iconFontSize,transform:"rotate(45deg)"}}};function N(e,t,n){return e||console.error("theme has not been set"),function(e){var t=E;return!1!==e&&"none"!==e||(t=O),Object(k.createStyling)(T,{defaultBase16:t})(e)}(e)(t,n)}var P=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=(e.rjvId,e.type_name),n=e.displayDataTypes,a=e.theme;return n?b.a.createElement("span",Object.assign({className:"data-type-label"},N(a,"data-type-label")),t):null}}]),n}(b.a.PureComponent),I=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props;return b.a.createElement("div",N(e.theme,"boolean"),b.a.createElement(P,Object.assign({type_name:"bool"},e)),e.value?"true":"false")}}]),n}(b.a.PureComponent),A=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props;return b.a.createElement("div",N(e.theme,"date"),b.a.createElement(P,Object.assign({type_name:"date"},e)),b.a.createElement("span",Object.assign({className:"date-value"},N(e.theme,"date-value")),e.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),n}(b.a.PureComponent),j=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props;return b.a.createElement("div",N(e.theme,"float"),b.a.createElement(P,Object.assign({type_name:"float"},e)),this.props.value)}}]),n}(b.a.PureComponent);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function R(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=D(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function F(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var B=n(46),L=new(n(47).Dispatcher),$=new(function(e){c(n,e);var t=h(n);function n(){var e;o(this,n);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return(e=t.call.apply(t,[this].concat(r))).objects={},e.set=function(t,n,a,r){void 0===e.objects[t]&&(e.objects[t]={}),void 0===e.objects[t][n]&&(e.objects[t][n]={}),e.objects[t][n][a]=r},e.get=function(t,n,a,r){return void 0===e.objects[t]||void 0===e.objects[t][n]||null==e.objects[t][n][a]?r:e.objects[t][n][a]},e.handleAction=function(t){var n=t.rjvId,a=t.data;switch(t.name){case"RESET":e.emit("reset-"+n);break;case"VARIABLE_UPDATED":t.data.updated_src=e.updateSrc(n,a),e.set(n,"action","variable-update",i(i({},a),{},{type:"variable-edited"})),e.emit("variable-update-"+n);break;case"VARIABLE_REMOVED":t.data.updated_src=e.updateSrc(n,a),e.set(n,"action","variable-update",i(i({},a),{},{type:"variable-removed"})),e.emit("variable-update-"+n);break;case"VARIABLE_ADDED":t.data.updated_src=e.updateSrc(n,a),e.set(n,"action","variable-update",i(i({},a),{},{type:"variable-added"})),e.emit("variable-update-"+n);break;case"ADD_VARIABLE_KEY_REQUEST":e.set(n,"action","new-key-request",a),e.emit("add-key-request-"+n)}},e.updateSrc=function(t,n){var a=n.name,r=n.namespace,i=n.new_value,o=(n.existing_value,n.variable_removed);r.shift();var l,s=e.get(t,"global","src"),u=e.deepCopy(s,F(r)),c=u,d=R(r);try{for(d.s();!(l=d.n()).done;)c=c[l.value]}catch(e){d.e(e)}finally{d.f()}return o?"array"==x(c)?c.splice(a,1):delete c[a]:null!==a?c[a]=i:u=i,e.set(t,"global","src",u),u},e.deepCopy=function(t,n){var a,r=x(t),o=n.shift();return"array"==r?a=F(t):"object"==r&&(a=i({},t)),void 0!==o&&(a[o]=e.deepCopy(t[o],n)),a},e}return n}(B.EventEmitter));L.register($.handleAction.bind($));var V=$,z=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){V.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.getFunctionDisplay=function(e){var t=f(a).props;return e?b.a.createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),b.a.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},b.a.createElement("span",null,"{"),b.a.createElement("span",N(t.theme,"ellipsis"),"..."),b.a.createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:V.get(e.rjvId,e.namespace,"collapsed",!0)},a}return s(n,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return b.a.createElement("div",N(e.theme,"function"),b.a.createElement(P,Object.assign({type_name:"function"},e)),b.a.createElement("span",Object.assign({},N(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}]),n}(b.a.PureComponent),U=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){return b.a.createElement("div",N(this.props.theme,"nan"),"NaN")}}]),n}(b.a.PureComponent),H=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){return b.a.createElement("div",N(this.props.theme,"null"),"NULL")}}]),n}(b.a.PureComponent),W=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props;return b.a.createElement("div",N(e.theme,"integer"),b.a.createElement(P,Object.assign({type_name:"int"},e)),this.props.value)}}]),n}(b.a.PureComponent),q=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props;return b.a.createElement("div",N(e.theme,"regexp"),b.a.createElement(P,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}]),n}(b.a.PureComponent),K=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){V.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.state={collapsed:V.get(e.rjvId,e.namespace,"collapsed",!0)},a}return s(n,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,a=e.value,r={style:{cursor:"default"}};return"integer"===x(t)&&a.length>t&&(r.style.cursor="pointer",this.state.collapsed&&(a=b.a.createElement("span",null,a.substring(0,t),b.a.createElement("span",N(n,"ellipsis")," ...")))),b.a.createElement("div",N(n,"string"),b.a.createElement(P,Object.assign({type_name:"string"},e)),b.a.createElement("span",Object.assign({className:"string-value"},r,{onClick:this.toggleCollapsed}),'"',a,'"'))}}]),n}(b.a.PureComponent),G=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){return b.a.createElement("div",N(this.props.theme,"undefined"),"undefined")}}]),n}(b.a.PureComponent);function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var J=v.useLayoutEffect,X=function(e,t){"function"!=typeof e?e.current=t:e(t)},Q={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Z=function(e){Object.keys(Q).forEach((function(t){e.style.setProperty(t,Q[t],"important")}))},ee=null,te=function(){},ne=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],ae=!!document.documentElement.currentStyle,re=Object(v.forwardRef)((function(e,t){var n,a=e.cacheMeasurements,r=e.maxRows,i=e.minRows,o=e.onChange,l=void 0===o?te:o,s=e.onHeightChange,u=void 0===s?te:s,c=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),d=void 0!==c.value,p=Object(v.useRef)(null),f=function(e,t){var n=Object(v.useRef)();return Object(v.useCallback)((function(a){e.current=a,n.current&&X(n.current,null),n.current=t,t&&X(t,a)}),[t])}(p,t),m=Object(v.useRef)(0),h=Object(v.useRef)(),b=function(){var e=p.current,t=a&&h.current?h.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,a=(n=t,ne.reduce((function(e,t){return e[t]=n[t],e}),{})),r=a.boxSizing;return""===r?null:(ae&&"border-box"===r&&(a.width=parseFloat(a.width)+parseFloat(a.borderRightWidth)+parseFloat(a.borderLeftWidth)+parseFloat(a.paddingRight)+parseFloat(a.paddingLeft)+"px"),{sizingStyle:a,paddingSize:parseFloat(a.paddingBottom)+parseFloat(a.paddingTop),borderSize:parseFloat(a.borderBottomWidth)+parseFloat(a.borderTopWidth)})}(e);if(t){h.current=t;var n=function(e,t,n,a){void 0===n&&(n=1),void 0===a&&(a=1/0),ee||((ee=document.createElement("textarea")).setAttribute("tab-index","-1"),ee.setAttribute("aria-hidden","true"),Z(ee)),null===ee.parentNode&&document.body.appendChild(ee);var r=e.paddingSize,i=e.borderSize,o=e.sizingStyle,l=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;ee.style[t]=o[t]})),Z(ee),ee.value=t;var s=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(ee,e);ee.value="x";var u=ee.scrollHeight-r,c=u*n;"border-box"===l&&(c=c+r+i),s=Math.max(c,s);var d=u*a;return"border-box"===l&&(d=d+r+i),[s=Math.min(d,s),u]}(t,e.value||e.placeholder||"x",i,r),o=n[0],l=n[1];m.current!==o&&(m.current=o,e.style.setProperty("height",o+"px","important"),u(o,{rowHeight:l}))}};return Object(v.useLayoutEffect)(b),n=function(e){var t=Object(v.useRef)(e);return J((function(){t.current=e})),t}(b),Object(v.useLayoutEffect)((function(){var e=function(e){n.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(v.createElement)("textarea",Y({},c,{onChange:function(e){d||b(),l(e)},ref:f}))}));function ie(e){e=e.trim();try{if("["===(e=JSON.stringify(JSON.parse(e)))[0])return oe("array",JSON.parse(e));if("{"===e[0])return oe("object",JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return oe("float",parseFloat(e));if(e.match(/\-?\d+e-\d+/)&&e.match(/\-?\d+e-\d+/)[0]===e)return oe("float",Number(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return oe("integer",parseInt(e));if(e.match(/\-?\d+e\+\d+/)&&e.match(/\-?\d+e\+\d+/)[0]===e)return oe("integer",Number(e))}catch(e){}switch(e=e.toLowerCase()){case"undefined":return oe("undefined",void 0);case"nan":return oe("nan",NaN);case"null":return oe("null",null);case"true":return oe("boolean",!0);case"false":return oe("boolean",!1);default:if(e=Date.parse(e))return oe("date",new Date(e))}return oe(!1,null)}function oe(e,t){return{type:e,value:t}}var le=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),n}(b.a.PureComponent),se=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),n}(b.a.PureComponent),ue=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]),a=ye(t).style;return b.a.createElement("span",n,b.a.createElement("svg",{fill:a.color,width:a.height,height:a.width,style:a,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(b.a.PureComponent),ce=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]),a=ye(t).style;return b.a.createElement("span",n,b.a.createElement("svg",{fill:a.color,width:a.height,height:a.width,style:a,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(b.a.PureComponent),de=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",{style:i(i({},ye(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),n}(b.a.PureComponent),pe=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",{style:i(i({},ye(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),n}(b.a.PureComponent),fe=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),n}(b.a.PureComponent),me=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(b.a.PureComponent),he=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(b.a.PureComponent),ve=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),n}(b.a.PureComponent),be=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),n}(b.a.PureComponent),ge=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return b.a.createElement("span",n,b.a.createElement("svg",Object.assign({},ye(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(b.a.PureComponent);function ye(e){return e||(e={}),{style:i(i({verticalAlign:"middle"},e),{},{color:e.color?e.color:"#000000",height:"1em",width:"1em"})}}var _e=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).copiedTimer=null,a.handleCopy=function(){var e=document.createElement("textarea"),t=a.props,n=t.clickCallback,r=t.src,i=t.namespace;e.innerHTML=JSON.stringify(a.clipboardValue(r),null," "),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),a.copiedTimer=setTimeout((function(){a.setState({copied:!1})}),5500),a.setState({copied:!0},(function(){"function"==typeof n&&n({src:r,namespace:i,name:i[i.length-1]})}))},a.getClippyIcon=function(){var e=a.props.theme;return a.state.copied?b.a.createElement("span",null,b.a.createElement(fe,Object.assign({className:"copy-icon"},N(e,"copy-icon"))),b.a.createElement("span",N(e,"copy-icon-copied"),"✔")):b.a.createElement(fe,Object.assign({className:"copy-icon"},N(e,"copy-icon")))},a.clipboardValue=function(e){switch(x(e)){case"function":case"regexp":return e.toString();default:return e}},a.state={copied:!1},a}return s(n,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var e=this.props,t=(e.src,e.theme),n=e.hidden,a=e.rowHovered,r=N(t,"copy-to-clipboard").style,o="inline";return n&&(o="none"),b.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:a?"inline-block":"none"}},b.a.createElement("span",{style:i(i({},r),{},{display:o}),onClick:this.handleCopy},this.getClippyIcon()))}}]),n}(b.a.PureComponent),we=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).getEditIcon=function(){var e=a.props,t=e.variable,n=e.theme;return b.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:a.state.hovered?"inline-block":"none"}},b.a.createElement(be,Object.assign({className:"click-to-edit-icon"},N(n,"editVarIcon"),{onClick:function(){a.prepopInput(t)}})))},a.prepopInput=function(e){if(!1!==a.props.onEdit){var t=function(e){var t;switch(x(e)){case"undefined":t="undefined";break;case"nan":t="NaN";break;case"string":t=e;break;case"date":case"function":case"regexp":t=e.toString();break;default:try{t=JSON.stringify(e,null," ")}catch(e){t=""}}return t}(e.value),n=ie(t);a.setState({editMode:!0,editValue:t,parsedInput:{type:n.type,value:n.value}})}},a.getRemoveIcon=function(){var e=a.props,t=e.variable,n=e.namespace,r=e.theme,i=e.rjvId;return b.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:a.state.hovered?"inline-block":"none"}},b.a.createElement(me,Object.assign({className:"click-to-remove-icon"},N(r,"removeVarIcon"),{onClick:function(){L.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:t.name,namespace:n,existing_value:t.value,variable_removed:!0}})}})))},a.getValue=function(e,t){var n=!t&&e.type,r=f(a).props;switch(n){case!1:return a.getEditInput();case"string":return b.a.createElement(K,Object.assign({value:e.value},r));case"integer":return b.a.createElement(W,Object.assign({value:e.value},r));case"float":return b.a.createElement(j,Object.assign({value:e.value},r));case"boolean":return b.a.createElement(I,Object.assign({value:e.value},r));case"function":return b.a.createElement(z,Object.assign({value:e.value},r));case"null":return b.a.createElement(H,r);case"nan":return b.a.createElement(U,r);case"undefined":return b.a.createElement(G,r);case"date":return b.a.createElement(A,Object.assign({value:e.value},r));case"regexp":return b.a.createElement(q,Object.assign({value:e.value},r));default:return b.a.createElement("div",{className:"object-value"},JSON.stringify(e.value))}},a.getEditInput=function(){var e=a.props.theme,t=a.state.editValue;return b.a.createElement("div",null,b.a.createElement(re,Object.assign({type:"text",inputRef:function(e){return e&&e.focus()},value:t,className:"variable-editor",onChange:function(e){var t=e.target.value,n=ie(t);a.setState({editValue:t,parsedInput:{type:n.type,value:n.value}})},onKeyDown:function(e){switch(e.key){case"Escape":a.setState({editMode:!1,editValue:""});break;case"Enter":(e.ctrlKey||e.metaKey)&&a.submitEdit(!0)}e.stopPropagation()},placeholder:"update this value",minRows:2},N(e,"edit-input"))),b.a.createElement("div",N(e,"edit-icon-container"),b.a.createElement(me,Object.assign({className:"edit-cancel"},N(e,"cancel-icon"),{onClick:function(){a.setState({editMode:!1,editValue:""})}})),b.a.createElement(ge,Object.assign({className:"edit-check string-value"},N(e,"check-icon"),{onClick:function(){a.submitEdit()}})),b.a.createElement("div",null,a.showDetected())))},a.submitEdit=function(e){var t=a.props,n=t.variable,r=t.namespace,i=t.rjvId,o=a.state,l=o.editValue,s=o.parsedInput,u=l;e&&s.type&&(u=s.value),a.setState({editMode:!1}),L.dispatch({name:"VARIABLE_UPDATED",rjvId:i,data:{name:n.name,namespace:r,existing_value:n.value,new_value:u,variable_removed:!1}})},a.showDetected=function(){var e=a.props,t=e.theme,n=(e.variable,e.namespace,e.rjvId,a.state.parsedInput),r=(n.type,n.value,a.getDetectedInput());if(r)return b.a.createElement("div",null,b.a.createElement("div",N(t,"detected-row"),r,b.a.createElement(ge,{className:"edit-check detected",style:i({verticalAlign:"top",paddingLeft:"3px"},N(t,"check-icon").style),onClick:function(){a.submitEdit(!0)}})))},a.getDetectedInput=function(){var e=a.state.parsedInput,t=e.type,n=e.value,r=f(a).props,o=r.theme;if(!1!==t)switch(t.toLowerCase()){case"object":return b.a.createElement("span",null,b.a.createElement("span",{style:i(i({},N(o,"brace").style),{},{cursor:"default"})},"{"),b.a.createElement("span",{style:i(i({},N(o,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:i(i({},N(o,"brace").style),{},{cursor:"default"})},"}"));case"array":return b.a.createElement("span",null,b.a.createElement("span",{style:i(i({},N(o,"brace").style),{},{cursor:"default"})},"["),b.a.createElement("span",{style:i(i({},N(o,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:i(i({},N(o,"brace").style),{},{cursor:"default"})},"]"));case"string":return b.a.createElement(K,Object.assign({value:n},r));case"integer":return b.a.createElement(W,Object.assign({value:n},r));case"float":return b.a.createElement(j,Object.assign({value:n},r));case"boolean":return b.a.createElement(I,Object.assign({value:n},r));case"function":return b.a.createElement(z,Object.assign({value:n},r));case"null":return b.a.createElement(H,r);case"nan":return b.a.createElement(U,r);case"undefined":return b.a.createElement(G,r);case"date":return b.a.createElement(A,Object.assign({value:new Date(n)},r))}},a.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},a}return s(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.variable,a=t.singleIndent,r=t.type,o=t.theme,l=t.namespace,s=t.indentWidth,u=t.enableClipboard,c=t.onEdit,d=t.onDelete,p=t.onSelect,f=t.displayArrayKey,m=t.quotesOnKeys,h=this.state.editMode;return b.a.createElement("div",Object.assign({},N(o,"objectKeyVal",{paddingLeft:s*a}),{onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))},className:"variable-row",key:n.name}),"array"==r?f?b.a.createElement("span",Object.assign({},N(o,"array-key"),{key:n.name+"_"+l}),n.name,b.a.createElement("div",N(o,"colon"),":")):null:b.a.createElement("span",null,b.a.createElement("span",Object.assign({},N(o,"object-name"),{className:"object-key",key:n.name+"_"+l}),!!m&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",{style:{display:"inline-block"}},n.name),!!m&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",N(o,"colon"),":")),b.a.createElement("div",Object.assign({className:"variable-value",onClick:!1===p&&!1===c?null:function(t){var a=F(l);(t.ctrlKey||t.metaKey)&&!1!==c?e.prepopInput(n):!1!==p&&(a.shift(),p(i(i({},n),{},{namespace:a})))}},N(o,"variableValue",{cursor:!1===p?"default":"pointer"})),this.getValue(n,h)),u?b.a.createElement(_e,{rowHovered:this.state.hovered,hidden:h,src:n.value,clickCallback:u,theme:o,namespace:[].concat(F(l),[n.name])}):null,!1!==c&&0==h?this.getEditIcon():null,!1!==d&&0==h?this.getRemoveIcon():null)}}]),n}(b.a.PureComponent),Se=function(e){c(n,e);var t=h(n);function n(){var e;o(this,n);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return(e=t.call.apply(t,[this].concat(r))).getObjectSize=function(){var t=e.props,n=t.size,a=t.theme;if(t.displayObjectSize)return b.a.createElement("span",Object.assign({className:"object-size"},N(a,"object-size")),n," item",1===n?"":"s")},e.getAddAttribute=function(t){var n=e.props,a=n.theme,r=n.namespace,o=n.name,l=n.src,s=n.rjvId,u=n.depth;return b.a.createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:t?"inline-block":"none"}},b.a.createElement(he,Object.assign({className:"click-to-add-icon"},N(a,"addVarIcon"),{onClick:function(){var e={name:u>0?o:null,namespace:r.splice(0,r.length-1),existing_value:l,variable_removed:!1,key_name:null};"object"===x(l)?L.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:s,data:e}):L.dispatch({name:"VARIABLE_ADDED",rjvId:s,data:i(i({},e),{},{new_value:[].concat(F(l),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,a=n.theme,r=(n.hover,n.namespace),i=n.name,o=n.src,l=n.rjvId;if(1!==r.length)return b.a.createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},b.a.createElement(me,Object.assign({className:"click-to-remove-icon"},N(a,"removeVarIcon"),{onClick:function(){L.dispatch({name:"VARIABLE_REMOVED",rjvId:l,data:{name:i,namespace:r.splice(0,r.length-1),existing_value:o,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,a=t.onDelete,r=t.onAdd,i=t.enableClipboard,o=t.src,l=t.namespace,s=t.rowHovered;return b.a.createElement("div",Object.assign({},N(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),i?b.a.createElement(_e,{rowHovered:s,clickCallback:i,src:o,theme:n,namespace:l}):null,!1!==r?e.getAddAttribute(s):null,!1!==a?e.getRemoveObject(s):null)},e}return n}(b.a.PureComponent);function xe(e){var t=e.parent_type,n=e.namespace,a=e.quotesOnKeys,r=e.theme,i=e.jsvRoot,o=e.name,l=e.displayArrayKey,s=e.name?e.name:"";return!i||!1!==o&&null!==o?"array"==t?l?b.a.createElement("span",Object.assign({},N(r,"array-key"),{key:n}),b.a.createElement("span",{className:"array-key"},s),b.a.createElement("span",N(r,"colon"),":")):b.a.createElement("span",null):b.a.createElement("span",Object.assign({},N(r,"object-name"),{key:n}),b.a.createElement("span",{className:"object-key"},a&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",null,s),a&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",N(r,"colon"),":")):b.a.createElement("span",null)}function Ee(e){var t=e.theme;switch(e.iconStyle){case"triangle":return b.a.createElement(pe,Object.assign({},N(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return b.a.createElement(ue,Object.assign({},N(t,"expanded-icon"),{className:"expanded-icon"}));default:return b.a.createElement(le,Object.assign({},N(t,"expanded-icon"),{className:"expanded-icon"}))}}function Oe(e){var t=e.theme;switch(e.iconStyle){case"triangle":return b.a.createElement(de,Object.assign({},N(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return b.a.createElement(ce,Object.assign({},N(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return b.a.createElement(se,Object.assign({},N(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ce=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).toggleCollapsed=function(e){var t=[];for(var n in a.state.expanded)t.push(a.state.expanded[n]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return s(n,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,a=t.iconStyle;return this.state.expanded[e]?b.a.createElement(Ee,{theme:n,iconStyle:a}):b.a.createElement(Oe,{theme:n,iconStyle:a})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,a=t.groupArraysAfterLength,r=(t.depth,t.name),i=t.theme,o=t.jsvRoot,l=t.namespace,s=(t.parent_type,S(t,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),u=0,c=5*this.props.indentWidth;o||(u=5*this.props.indentWidth);var d=a,p=Math.ceil(n.length/d);return b.a.createElement("div",Object.assign({className:"object-key-val"},N(i,o?"jsv-root":"objectKeyVal",{paddingLeft:u})),b.a.createElement(xe,this.props),b.a.createElement("span",null,b.a.createElement(Se,Object.assign({size:n.length},this.props))),F(Array(p)).map((function(t,a){return b.a.createElement("div",Object.assign({key:a,className:"object-key-val array-group"},N(i,"objectKeyVal",{marginLeft:6,paddingLeft:c})),b.a.createElement("span",N(i,"brace-row"),b.a.createElement("div",Object.assign({className:"icon-container"},N(i,"icon-container"),{onClick:function(t){e.toggleCollapsed(a)}}),e.getExpandedIcon(a)),e.state.expanded[a]?b.a.createElement(Ne,Object.assign({key:r+a,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:a*d,src:n.slice(a*d,a*d+d),namespace:l,type:"array",parent_type:"array_group",theme:i},s)):b.a.createElement("span",Object.assign({},N(i,"brace"),{onClick:function(t){e.toggleCollapsed(a)},className:"array-group-brace"}),"[",b.a.createElement("div",Object.assign({},N(i,"array-group-meta-data"),{className:"array-group-meta-data"}),b.a.createElement("span",Object.assign({className:"object-size"},N(i,"object-size")),a*d," - ",a*d+d>n.length?n.length:a*d+d)),"]")))})))}}]),n}(b.a.PureComponent),ke=function(e){c(n,e);var t=h(n);function n(e){var a;o(this,n),(a=t.call(this,e)).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},(function(){V.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)}))},a.getObjectContent=function(e,t,n){return b.a.createElement("div",{className:"pushed-content object-container"},b.a.createElement("div",Object.assign({className:"object-content"},N(a.props.theme,"pushed-content")),a.renderObjectContents(t,n)))},a.getEllipsis=function(){return 0===a.state.size?null:b.a.createElement("div",Object.assign({},N(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,n=(t.rjvId,t.theme,a.state),r=n.size,i=n.hovered;return b.a.createElement(Se,Object.assign({rowHovered:i,size:r},a.props))},a.renderObjectContents=function(e,t){var n,r=a.props,i=r.depth,o=r.parent_type,l=r.index_offset,s=r.groupArraysAfterLength,u=r.namespace,c=a.state.object_type,d=[],p=Object.keys(e||{});return a.props.sortKeys&&"array"!==c&&(p=p.sort()),p.forEach((function(r){if(n=new Te(r,e[r]),"array_group"===o&&l&&(n.name=parseInt(n.name)+l),e.hasOwnProperty(r))if("object"===n.type)d.push(b.a.createElement(Ne,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:u.concat(n.name),parent_type:c},t)));else if("array"===n.type){var p=Ne;s&&n.value.length>s&&(p=Ce),d.push(b.a.createElement(p,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:u.concat(n.name),type:"array",parent_type:c},t)))}else d.push(b.a.createElement(we,Object.assign({key:n.name+"_"+u,variable:n,singleIndent:5,namespace:u,type:a.props.type},t)))})),d};var r=n.getState(e);return a.state=i(i({},r),{},{prevProps:{}}),a}return s(n,[{key:"getBraceStart",value:function(e,t){var n=this,a=this.props,r=a.src,i=a.theme,o=a.iconStyle;if("array_group"===a.parent_type)return b.a.createElement("span",null,b.a.createElement("span",N(i,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(r):null);var l=t?Ee:Oe;return b.a.createElement("span",null,b.a.createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},N(i,"brace-row")),b.a.createElement("div",Object.assign({className:"icon-container"},N(i,"icon-container")),b.a.createElement(l,{theme:i,iconStyle:o})),b.a.createElement(xe,this.props),b.a.createElement("span",N(i,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(r):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,a=t.src,r=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,l=t.jsvRoot,s=t.iconStyle,u=S(t,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),c=this.state,d=c.object_type,p=c.expanded,f={};return l||"array_group"===r?"array_group"===r&&(f.borderLeft=0,f.display="inline"):f.paddingLeft=5*this.props.indentWidth,b.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))}},N(o,l?"jsv-root":"objectKeyVal",f)),this.getBraceStart(d,p),p?this.getObjectContent(n,a,i({theme:o,iconStyle:s},u)):this.getEllipsis(),b.a.createElement("span",{className:"brace-row"},b.a.createElement("span",{style:i(i({},N(o,"brace").style),{},{paddingLeft:p?"3px":"0px"})},"array"===d?"]":"}"),p?null:this.getObjectMetaData(a)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps;return e.src!==a.src||e.collapsed!==a.collapsed||e.name!==a.name||e.namespace!==a.namespace||e.rjvId!==a.rjvId?i(i({},n.getState(e)),{},{prevProps:e}):null}}]),n}(b.a.PureComponent);ke.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:V.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var Te=function e(t,n){o(this,e),this.name=t,this.value=n,this.type=x(n)};w(ke);var Ne=ke,Pe=function(e){c(n,e);var t=h(n);function n(){var e;o(this,n);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).render=function(){var t=f(e).props,n=[t.name],a=Ne;return Array.isArray(t.src)&&t.groupArraysAfterLength&&t.src.length>t.groupArraysAfterLength&&(a=Ce),b.a.createElement("div",{className:"pretty-json-container object-container"},b.a.createElement("div",{className:"object-content"},b.a.createElement(a,Object.assign({namespace:n,depth:0,jsvRoot:!0},t))))},e}return n}(b.a.PureComponent),Ie=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).closeModal=function(){L.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return s(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,a=t.rjvId,r=t.isValid,i=this.state.input,o=r(i);return b.a.createElement("div",Object.assign({className:"key-modal-request"},N(n,"key-modal-request"),{onClick:this.closeModal}),b.a.createElement("div",Object.assign({},N(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),b.a.createElement("div",N(n,"key-modal-label"),"Key Name:"),b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("input",Object.assign({},N(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:i,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){o&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),o?b.a.createElement(ge,Object.assign({},N(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),b.a.createElement("span",N(n,"key-modal-cancel"),b.a.createElement(ve,Object.assign({},N(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){L.dispatch({rjvId:a,name:"RESET"})}})))))}}]),n}(b.a.PureComponent),Ae=function(e){c(n,e);var t=h(n);function n(){var e;o(this,n);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return(e=t.call.apply(t,[this].concat(r))).isValid=function(t){var n=e.props.rjvId,a=V.get(n,"action","new-key-request");return""!=t&&-1===Object.keys(a.existing_value).indexOf(t)},e.submit=function(t){var n=e.props.rjvId,a=V.get(n,"action","new-key-request");a.new_value=i({},a.existing_value),a.new_value[t]=e.props.defaultValue,L.dispatch({name:"VARIABLE_ADDED",rjvId:n,data:a})},e}return s(n,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.theme,a=e.rjvId;return t?b.a.createElement(Ie,{rjvId:a,theme:n,isValid:this.isValid,submit:this.submit}):null}}]),n}(b.a.PureComponent),je=function(e){c(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.message,n=e.active,a=e.theme,r=e.rjvId;return n?b.a.createElement("div",Object.assign({className:"validation-failure"},N(a,"validation-failure"),{onClick:function(){L.dispatch({rjvId:r,name:"RESET"})}}),b.a.createElement("span",N(a,"validation-failure-label"),t),b.a.createElement(ve,N(a,"validation-failure-clear"))):null}}]),n}(b.a.PureComponent),Me=function(e){c(n,e);var t=h(n);function n(e){var a;return o(this,n),(a=t.call(this,e)).rjvId=Date.now().toString(),a.getListeners=function(){return{reset:a.resetState,"variable-update":a.updateSrc,"add-key-request":a.addKeyRequest}},a.updateSrc=function(){var e,t=V.get(a.rjvId,"action","variable-update"),n=t.name,r=t.namespace,i=t.new_value,o=t.existing_value,l=(t.variable_removed,t.updated_src),s=t.type,u=a.props,c=u.onEdit,d=u.onDelete,p=u.onAdd,f={existing_src:a.state.src,new_value:i,updated_src:l,name:n,namespace:r,existing_value:o};switch(s){case"variable-added":e=p(f);break;case"variable-edited":e=c(f);break;case"variable-removed":e=d(f)}!1!==e?(V.set(a.rjvId,"global","src",l),a.setState({src:l})):a.setState({validationFailure:!0})},a.addKeyRequest=function(){a.setState({addKeyRequest:!0})},a.resetState=function(){a.setState({validationFailure:!1,addKeyRequest:!1})},a.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:n.defaultProps.src,name:n.defaultProps.name,theme:n.defaultProps.theme,validationMessage:n.defaultProps.validationMessage,prevSrc:n.defaultProps.src,prevName:n.defaultProps.name,prevTheme:n.defaultProps.theme},a}return s(n,[{key:"componentDidMount",value:function(){V.set(this.rjvId,"global","src",this.state.src);var e=this.getListeners();for(var t in e)V.on(t+"-"+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1}),e.src!==this.state.src&&V.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var e=this.getListeners();for(var t in e)V.removeListener(t+"-"+this.rjvId,e[t])}},{key:"render",value:function(){var e=this.state,t=e.validationFailure,n=e.validationMessage,a=e.addKeyRequest,r=e.theme,o=e.src,l=e.name,s=this.props,u=s.style,c=s.defaultValue;return b.a.createElement("div",{className:"react-json-view",style:i(i({},N(r,"app-container").style),u)},b.a.createElement(je,{message:n,active:t,theme:r,rjvId:this.rjvId}),b.a.createElement(Pe,Object.assign({},this.props,{src:o,name:l,theme:r,type:x(o),rjvId:this.rjvId})),b.a.createElement(Ae,{active:a,theme:r,rjvId:this.rjvId,defaultValue:c}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.src!==t.prevSrc||e.name!==t.prevName||e.theme!==t.prevTheme){var a={src:e.src,name:e.name,theme:e.theme,validationMessage:e.validationMessage,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return n.validateState(a)}return null}}]),n}(b.a.PureComponent);Me.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0},Me.validateState=function(e){var t={};return"object"!==x(e.theme)||function(e){var t=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if("object"===x(e)){for(var n=0;n<t.length;n++)if(!(t[n]in e))return!1;return!0}return!1}(e.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),t.theme="rjv-default"),"object"!==x(e.src)&&"array"!==x(e.src)&&(console.error("react-json-view error:","src property must be a valid json object"),t.name="ERROR",t.src={message:"src property must be a valid json object"}),i(i({},e),t)},w(Me),t.default=Me}]))},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"useUncontrolledProp",(function(){return s})),n.d(t,"default",(function(){return u}));var a=n(89),r=n(204),i=n(0),o=n(76);function l(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function s(e,t,n){var a=Object(i.useRef)(void 0!==e),r=Object(i.useState)(t),o=r[0],l=r[1],s=void 0!==e,u=a.current;return a.current=s,!s&&u&&o!==t&&l(t),[s?e:o,Object(i.useCallback)((function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];n&&n.apply(void 0,[e].concat(a)),l(e)}),[n])]}function u(e,t){return Object.keys(t).reduce((function(n,i){var u,c=n,d=c[o.defaultKey(i)],p=c[i],f=Object(r.default)(c,[o.defaultKey(i),i].map(l)),m=t[i],h=s(p,d,e[m]),v=h[0],b=h[1];return Object(a.default)({},f,((u={})[i]=v,u[m]=b,u))}),e)}},,,,,function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,i=String(e);return(n=a[i.toLowerCase()])?n:(n=r[i.toLowerCase()])||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var i;if(i=a[t.toLowerCase()])return i===n;if(i=r[t.toLowerCase()])return i===n}else if("number"==typeof t)return t===n;return!1}};var a=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)a[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)a[i-48]=i;for(i=1;i<13;i++)a["f"+i]=i+111;for(i=0;i<10;i++)a["numpad "+i]=i+96;var o=t.names=t.title={};for(i in a)o[a[i]]=i;for(var l in r)a[l]=r[l]},,,,,,,,,,,,,,,,,,,function(e,t,n){(function(n){var a,r,i;r=[],void 0===(i="function"==typeof(a=function(){"use strict";function t(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){l(a.response,t,n)},a.onerror=function(){console.error("could not download file")},a.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,n,o){var l=i.URL||i.webkitURL,s=document.createElement("a");n=n||e.name||"download",s.download=n,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?r(s):a(s.href)?t(e,n,o):r(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout((function(){l.revokeObjectURL(s.href)}),4e4),setTimeout((function(){r(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(a(e))t(e,n,i);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){r(o)}))}}:function(e,n,a,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,a);var l="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&s||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},c.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,p=d.createObjectURL(e);r?r.location=p:location.href=p,r=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?a.apply(t,r):a)||(e.exports=i)}).call(this,n(65))},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"useDropzone",(function(){return E}));var a=n(0),r=n.n(a),i=n(3),o=n.n(i),l=n(502),s=n(24);n.d(t,"ErrorCode",(function(){return s.ErrorCode}));var u=["children"],c=["open"],d=["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],p=["refKey","onChange","onClick"];function f(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){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 m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var w=Object(a.forwardRef)((function(e,t){var n=e.children,i=E(_(e,u)),o=i.open,l=_(i,c);return Object(a.useImperativeHandle)(t,(function(){return{open:o}}),[o]),r.a.createElement(a.Fragment,null,n(g(g({},l),{},{open:o})))}));w.displayName="Dropzone";var S={disabled:!1,getFilesFromEvent:l.fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};w.defaultProps=S,w.propTypes={children:o.a.func,accept:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),multiple:o.a.bool,preventDropOnDocument:o.a.bool,noClick:o.a.bool,noKeyboard:o.a.bool,noDrag:o.a.bool,noDragEventsBubbling:o.a.bool,minSize:o.a.number,maxSize:o.a.number,maxFiles:o.a.number,disabled:o.a.bool,getFilesFromEvent:o.a.func,onFileDialogCancel:o.a.func,onDragEnter:o.a.func,onDragLeave:o.a.func,onDragOver:o.a.func,onDrop:o.a.func,onDropAccepted:o.a.func,onDropRejected:o.a.func,validator:o.a.func},t.default=w;var x={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=g(g({},S),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,u=t.multiple,c=t.maxFiles,h=t.onDragEnter,v=t.onDragLeave,b=t.onDragOver,w=t.onDrop,E=t.onDropAccepted,C=t.onDropRejected,k=t.onFileDialogCancel,T=t.preventDropOnDocument,N=t.noClick,P=t.noKeyboard,I=t.noDrag,A=t.noDragEventsBubbling,j=t.validator,M=Object(a.useRef)(null),D=Object(a.useRef)(null),R=Object(a.useReducer)(O,x),F=m(R,2),B=F[0],L=F[1],$=B.isFocused,V=B.isFileDialogActive,z=B.draggedFiles,U=Object(a.useCallback)((function(){D.current&&(L({type:"openDialog"}),D.current.value=null,D.current.click())}),[L]),H=function(){V&&setTimeout((function(){D.current&&(D.current.files.length||(L({type:"closeDialog"}),"function"==typeof k&&k()))}),300)};Object(a.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[D,V,k]);var W=Object(a.useCallback)((function(e){M.current&&M.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),U()))}),[M,D]),q=Object(a.useCallback)((function(){L({type:"focus"})}),[]),K=Object(a.useCallback)((function(){L({type:"blur"})}),[]),G=Object(a.useCallback)((function(){N||(Object(s.isIeOrEdge)()?setTimeout(U,0):U())}),[D,N]),Y=Object(a.useRef)([]),J=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),Y.current=[])};Object(a.useEffect)((function(){return T&&(document.addEventListener("dragover",s.onDocumentDragOver,!1),document.addEventListener("drop",J,!1)),function(){T&&(document.removeEventListener("dragover",s.onDocumentDragOver),document.removeEventListener("drop",J))}}),[M,T]);var X=Object(a.useCallback)((function(e){e.preventDefault(),e.persist(),re(e),Y.current=[].concat(f(Y.current),[e.target]),Object(s.isEvtWithFiles)(e)&&Promise.resolve(i(e)).then((function(t){Object(s.isPropagationStopped)(e)&&!A||(L({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),h&&h(e))}))}),[i,h,A]),Q=Object(a.useCallback)((function(e){e.preventDefault(),e.persist(),re(e);var t=Object(s.isEvtWithFiles)(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&b&&b(e),!1}),[b,A]),Z=Object(a.useCallback)((function(e){e.preventDefault(),e.persist(),re(e);var t=Y.current.filter((function(e){return M.current&&M.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),Y.current=t,t.length>0||(L({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Object(s.isEvtWithFiles)(e)&&v&&v(e))}),[M,v,A]),ee=Object(a.useCallback)((function(e){e.preventDefault(),e.persist(),re(e),Y.current=[],Object(s.isEvtWithFiles)(e)&&Promise.resolve(i(e)).then((function(t){if(!Object(s.isPropagationStopped)(e)||A){var a=[],r=[];t.forEach((function(e){var t=m(Object(s.fileAccepted)(e,n),2),i=t[0],u=t[1],c=m(Object(s.fileMatchSize)(e,l,o),2),d=c[0],p=c[1],f=j?j(e):null;if(i&&d&&!f)a.push(e);else{var h=[u,p];f&&(h=h.concat(f)),r.push({file:e,errors:h.filter((function(e){return e}))})}})),(!u&&a.length>1||u&&c>=1&&a.length>c)&&(a.forEach((function(e){r.push({file:e,errors:[s.TOO_MANY_FILES_REJECTION]})})),a.splice(0)),L({acceptedFiles:a,fileRejections:r,type:"setFiles"}),w&&w(a,r,e),r.length>0&&C&&C(r,e),a.length>0&&E&&E(a,e)}})),L({type:"reset"})}),[u,n,l,o,c,i,w,E,C,A,j]),te=function(e){return r?null:e},ne=function(e){return P?null:te(e)},ae=function(e){return I?null:te(e)},re=function(e){A&&e.stopPropagation()},ie=Object(a.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onKeyDown,i=e.onFocus,o=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,p=e.onDragLeave,f=e.onDrop,m=_(e,d);return g(g(y({onKeyDown:ne(Object(s.composeEventHandlers)(a,W)),onFocus:ne(Object(s.composeEventHandlers)(i,q)),onBlur:ne(Object(s.composeEventHandlers)(o,K)),onClick:te(Object(s.composeEventHandlers)(l,G)),onDragEnter:ae(Object(s.composeEventHandlers)(u,X)),onDragOver:ae(Object(s.composeEventHandlers)(c,Q)),onDragLeave:ae(Object(s.composeEventHandlers)(p,Z)),onDrop:ae(Object(s.composeEventHandlers)(f,ee))},n,M),r||P?{}:{tabIndex:0}),m)}}),[M,W,q,K,G,X,Q,Z,ee,P,I,r]),oe=Object(a.useCallback)((function(e){e.stopPropagation()}),[]),le=Object(a.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,a=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=_(e,p),l=y({accept:n,multiple:u,type:"file",style:{display:"none"},onChange:te(Object(s.composeEventHandlers)(r,ee)),onClick:te(Object(s.composeEventHandlers)(i,oe)),autoComplete:"off",tabIndex:-1},a,D);return g(g({},l),o)}}),[D,n,u,ee,r]),se=z.length,ue=se>0&&Object(s.allFilesAccepted)({files:z,accept:n,minSize:l,maxSize:o,multiple:u,maxFiles:c}),ce=se>0&&!ue;return g(g({},B),{},{isDragAccept:ue,isDragReject:ce,isFocused:$&&!r,getRootProps:ie,getInputProps:le,rootRef:M,inputRef:D,open:te(U)})}function O(e,t){switch(t.type){case"focus":return g(g({},e),{},{isFocused:!0});case"blur":return g(g({},e),{},{isFocused:!1});case"openDialog":return g(g({},e),{},{isFileDialogActive:!0});case"closeDialog":return g(g({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,a=t.draggedFiles;return g(g({},e),{},{draggedFiles:a,isDragActive:n});case"setFiles":return g(g({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return g({},x);default:return e}}},,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var a=n(986);e.exports=function(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleLoadStart=function(e){return{type:"video-react/LOAD_START",videoProps:e}},t.handleCanPlay=function(e){return{type:"video-react/CAN_PLAY",videoProps:e}},t.handleWaiting=function(e){return{type:"video-react/WAITING",videoProps:e}},t.handleCanPlayThrough=function(e){return{type:"video-react/CAN_PLAY_THROUGH",videoProps:e}},t.handlePlaying=function(e){return{type:"video-react/PLAYING",videoProps:e}},t.handlePlay=function(e){return{type:a,videoProps:e}},t.handlePause=function(e){return{type:r,videoProps:e}},t.handleEnd=function(e){return{type:i,videoProps:e}},t.handleSeeking=function(e){return{type:"video-react/SEEKING",videoProps:e}},t.handleSeeked=function(e){return{type:"video-react/SEEKED",videoProps:e}},t.handleDurationChange=function(e){return{type:"video-react/DURATION_CHANGE",videoProps:e}},t.handleTimeUpdate=function(e){return{type:"video-react/TIME_UPDATE",videoProps:e}},t.handleVolumeChange=function(e){return{type:"video-react/VOLUME_CHANGE",videoProps:e}},t.handleProgressChange=function(e){return{type:"video-react/PROGRESS_CHANGE",videoProps:e}},t.handleRateChange=function(e){return{type:"video-react/RATE_CHANGE",videoProps:e}},t.handleSuspend=function(e){return{type:"video-react/SUSPEND",videoProps:e}},t.handleAbort=function(e){return{type:o,videoProps:e}},t.handleEmptied=function(e){return{type:"video-react/EMPTIED",videoProps:e}},t.handleStalled=function(e){return{type:"video-react/STALLED",videoProps:e}},t.handleLoadedMetaData=function(e){return{type:"video-react/LOADED_META_DATA",videoProps:e}},t.handleLoadedData=function(e){return{type:"video-react/LOADED_DATA",videoProps:e}},t.handleResize=function(e){return{type:"video-react/RESIZE",videoProps:e}},t.handleError=function(e){return{type:l,videoProps:e}},t.handleSeekingTime=function(e){return{type:"video-react/SEEKING_TIME",time:e}},t.handleEndSeeking=function(e){return{type:"video-react/END_SEEKING",time:e}},t.activateTextTrack=function(e){return{type:"video-react/ACTIVATE_TEXT_TRACK",textTrack:e}},t.ACTIVATE_TEXT_TRACK=t.ERROR=t.RESIZE=t.LOADED_DATA=t.LOADED_META_DATA=t.STALLED=t.EMPTIED=t.ABORT=t.SUSPEND=t.RATE_CHANGE=t.PROGRESS_CHANGE=t.VOLUME_CHANGE=t.TIME_UPDATE=t.DURATION_CHANGE=t.END_SEEKING=t.SEEKING_TIME=t.SEEKED=t.SEEKING=t.END=t.PAUSE=t.PLAY=t.PLAYING=t.CAN_PLAY_THROUGH=t.WAITING=t.CAN_PLAY=t.LOAD_START=void 0;t.LOAD_START="video-react/LOAD_START";t.CAN_PLAY="video-react/CAN_PLAY";t.WAITING="video-react/WAITING";t.CAN_PLAY_THROUGH="video-react/CAN_PLAY_THROUGH";t.PLAYING="video-react/PLAYING";var a="video-react/PLAY";t.PLAY=a;var r="video-react/PAUSE";t.PAUSE=r;var i="video-react/END";t.END=i;t.SEEKING="video-react/SEEKING";t.SEEKED="video-react/SEEKED";t.SEEKING_TIME="video-react/SEEKING_TIME";t.END_SEEKING="video-react/END_SEEKING";t.DURATION_CHANGE="video-react/DURATION_CHANGE";t.TIME_UPDATE="video-react/TIME_UPDATE";t.VOLUME_CHANGE="video-react/VOLUME_CHANGE";t.PROGRESS_CHANGE="video-react/PROGRESS_CHANGE";t.RATE_CHANGE="video-react/RATE_CHANGE";t.SUSPEND="video-react/SUSPEND";var o="video-react/ABORT";t.ABORT=o;t.EMPTIED="video-react/EMPTIED";t.STALLED="video-react/STALLED";t.LOADED_META_DATA="video-react/LOADED_META_DATA";t.LOADED_DATA="video-react/LOADED_DATA";t.RESIZE="video-react/RESIZE";var l="video-react/ERROR";t.ERROR=l;t.ACTIVATE_TEXT_TRACK="video-react/ACTIVATE_TEXT_TRACK"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m=a(n(200)),h={className:d.default.string,onMouseDown:d.default.func,onMouseMove:d.default.func,stepForward:d.default.func,stepBack:d.default.func,sliderActive:d.default.func,sliderInactive:d.default.func,onMouseUp:d.default.func,onFocus:d.default.func,onBlur:d.default.func,onClick:d.default.func,getPercent:d.default.func,vertical:d.default.bool,children:d.default.node,label:d.default.string,valuenow:d.default.string,valuetext:d.default.string},v=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleMouseDown=a.handleMouseDown.bind((0,u.default)(a)),a.handleMouseMove=a.handleMouseMove.bind((0,u.default)(a)),a.handleMouseUp=a.handleMouseUp.bind((0,u.default)(a)),a.handleFocus=a.handleFocus.bind((0,u.default)(a)),a.handleBlur=a.handleBlur.bind((0,u.default)(a)),a.handleClick=a.handleClick.bind((0,u.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,u.default)(a)),a.stepForward=a.stepForward.bind((0,u.default)(a)),a.stepBack=a.stepBack.bind((0,u.default)(a)),a.calculateDistance=a.calculateDistance.bind((0,u.default)(a)),a.getProgress=a.getProgress.bind((0,u.default)(a)),a.renderChildren=a.renderChildren.bind((0,u.default)(a)),a.state={active:!1},a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),document.removeEventListener("keydown",this.handleKeyPress,!0)}},{key:"getProgress",value:function(){var e=this.props.getPercent;if(!e)return 0;var t=e();return("number"!=typeof t||t<0||t===1/0)&&(t=0),t}},{key:"handleMouseDown",value:function(e){var t=this.props.onMouseDown;document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("mouseup",this.handleMouseUp,!0),document.addEventListener("touchmove",this.handleMouseMove,!0),document.addEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!0}),this.props.sliderActive&&this.props.sliderActive(e),this.handleMouseMove(e),t&&t(e)}},{key:"handleMouseMove",value:function(e){var t=this.props.onMouseMove;t&&t(e)}},{key:"handleMouseUp",value:function(e){e.preventDefault();var t=this.props.onMouseUp;document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!1}),this.props.sliderInactive&&this.props.sliderInactive(e),t&&t(e)}},{key:"handleFocus",value:function(e){document.addEventListener("keydown",this.handleKeyPress,!0),this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){document.removeEventListener("keydown",this.handleKeyPress,!0),this.props.onBlur&&this.props.onBlur(e)}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"handleKeyPress",value:function(e){37===e.which||40===e.which?(e.preventDefault(),e.stopPropagation(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),e.stopPropagation(),this.stepForward())}},{key:"stepForward",value:function(){this.props.stepForward&&this.props.stepForward()}},{key:"stepBack",value:function(){this.props.stepBack&&this.props.stepBack()}},{key:"calculateDistance",value:function(e){var t=this.slider,n=m.getPointerPosition(t,e);return this.props.vertical?n.y:n.x}},{key:"renderChildren",value:function(){var e=this.getProgress(),t="".concat((100*e).toFixed(2),"%");return p.default.Children.map(this.props.children,(function(n){return p.default.cloneElement(n,{progress:e,percentage:t})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.vertical,a=t.label,r=t.valuenow,i=t.valuetext;return p.default.createElement("div",{className:(0,f.default)(this.props.className,{"video-react-slider-vertical":n,"video-react-slider-horizontal":!n,"video-react-sliding":this.state.active},"video-react-slider"),ref:function(t){e.slider=t},tabIndex:"0",role:"slider",onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,"aria-label":a||"","aria-valuenow":r||"","aria-valuetext":i||"","aria-valuemin":0,"aria-valuemax":100},this.renderChildren())}}]),t}(p.Component);t.default=v,v.propTypes=h,v.displayName="Slider"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m=r(n(287)),h={player:d.default.object,actions:d.default.object,rates:d.default.array,className:d.default.string},v=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleSelectItem=a.handleSelectItem.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleSelectItem",value:function(e){var t=this.props,n=t.rates,a=t.actions;e>=0&&e<n.length&&a.changeRate(n[e])}},{key:"render",value:function(){var e=this.props,t=e.rates,n=e.player,a=t.map((function(e){return{label:"".concat(e,"x"),value:e}})),r=t.indexOf(n.playbackRate)||0;return p.default.createElement(m.default,{className:(0,f.default)("video-react-playback-rate",this.props.className),onSelectItem:this.handleSelectItem,items:a,selectedIndex:r},p.default.createElement("span",{className:"video-react-control-text"},"Playback Rate"),p.default.createElement("div",{className:"video-react-playback-rate-value"},"".concat(n.playbackRate.toFixed(2),"x")))}}]),t}(p.Component);v.propTypes=h,v.defaultProps={rates:[2,1.5,1.25,1,.5,.25]},v.displayName="PlaybackRateMenuButton";var b=v;t.default=b},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m=r(n(1e3)),h=r(n(1001)),v=r(n(458)),b={inline:d.default.bool,items:d.default.array,className:d.default.string,onSelectItem:d.default.func,children:d.default.any,selectedIndex:d.default.number},g=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).state={active:!1,activateIndex:e.selectedIndex||0},a.commitSelection=a.commitSelection.bind((0,u.default)(a)),a.activateMenuItem=a.activateMenuItem.bind((0,u.default)(a)),a.handleClick=a.handleClick.bind((0,u.default)(a)),a.renderMenu=a.renderMenu.bind((0,u.default)(a)),a.handleFocus=a.handleFocus.bind((0,u.default)(a)),a.handleBlur=a.handleBlur.bind((0,u.default)(a)),a.handleUpArrow=a.handleUpArrow.bind((0,u.default)(a)),a.handleDownArrow=a.handleDownArrow.bind((0,u.default)(a)),a.handleEscape=a.handleEscape.bind((0,u.default)(a)),a.handleReturn=a.handleReturn.bind((0,u.default)(a)),a.handleTab=a.handleTab.bind((0,u.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,u.default)(a)),a.handleSelectItem=a.handleSelectItem.bind((0,u.default)(a)),a.handleIndexChange=a.handleIndexChange.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidUpdate",value:function(e){e.selectedIndex!==this.props.selectedIndex&&this.activateMenuItem(this.props.selectedIndex)}},{key:"commitSelection",value:function(e){this.setState({activateIndex:e}),this.handleIndexChange(e)}},{key:"activateMenuItem",value:function(e){this.setState({activateIndex:e}),this.handleIndexChange(e)}},{key:"handleIndexChange",value:function(e){(0,this.props.onSelectItem)(e)}},{key:"handleClick",value:function(){this.setState((function(e){return{active:!e.active}}))}},{key:"handleFocus",value:function(){document.addEventListener("keydown",this.handleKeyPress)}},{key:"handleBlur",value:function(){this.setState({active:!1}),document.removeEventListener("keydown",this.handleKeyPress)}},{key:"handleUpArrow",value:function(e){var t=this.props.items;if(this.state.active){e.preventDefault();var n=this.state.activateIndex-1;n<0&&(n=t.length?t.length-1:0),this.activateMenuItem(n)}}},{key:"handleDownArrow",value:function(e){var t=this.props.items;if(this.state.active){e.preventDefault();var n=this.state.activateIndex+1;n>=t.length&&(n=0),this.activateMenuItem(n)}}},{key:"handleTab",value:function(e){this.state.active&&(e.preventDefault(),this.commitSelection(this.state.activateIndex))}},{key:"handleReturn",value:function(e){e.preventDefault(),this.state.active?this.commitSelection(this.state.activateIndex):this.setState({active:!0})}},{key:"handleEscape",value:function(){this.setState({active:!1,activateIndex:0})}},{key:"handleKeyPress",value:function(e){27===e.which?this.handleEscape(e):9===e.which?this.handleTab(e):13===e.which?this.handleReturn(e):38===e.which?this.handleUpArrow(e):40===e.which&&this.handleDownArrow(e)}},{key:"handleSelectItem",value:function(e){this.commitSelection(e)}},{key:"renderMenu",value:function(){var e=this;if(!this.state.active)return null;var t=this.props.items;return p.default.createElement(m.default,null,t.map((function(t,n){return p.default.createElement(h.default,{item:t,index:n,onSelectItem:e.handleSelectItem,activateIndex:e.state.activateIndex,key:"item-".concat(n++)})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.inline,a=t.className;return p.default.createElement(v.default,{className:(0,f.default)(a,{"video-react-menu-button-inline":!!n,"video-react-menu-button-popup":!n,"video-react-menu-button-active":this.state.active},"video-react-control video-react-button video-react-menu-button"),role:"button",tabIndex:"0",ref:function(t){e.menuButton=t},onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},this.props.children,this.renderMenu())}}]),t}(p.Component);t.default=g,g.propTypes=b,g.displayName="MenuButton"},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,i,o,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,i,o,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),a=e.name||"",r=(e.type||"").toLowerCase(),i=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):r===t}))}return!0}},function(e,t,n){"use strict";n.r(t);var a=n(17),r=n(56),i=n(130),o=n(0),l=n(16),s=n.n(l),u=n(132),c=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],d=function(e){var t=e.className,n=e.percent,l=e.prefixCls,d=e.strokeColor,p=e.strokeLinecap,f=e.strokeWidth,m=e.style,h=e.trailColor,v=e.trailWidth,b=e.transition,g=Object(i.default)(e,c);delete g.gapPosition;var y=Array.isArray(n)?n:[n],_=Array.isArray(d)?d:[d],w=Object(u.useTransitionDuration)(y),S=Object(r.default)(w,1)[0],x=f/2,E=100-f/2,O="M ".concat("round"===p?x:0,",").concat(x,"\n L ").concat("round"===p?E:100,",").concat(x),C="0 0 100 ".concat(f),k=0;return o.createElement("svg",Object(a.default)({className:s()("".concat(l,"-line"),t),viewBox:C,preserveAspectRatio:"none",style:m},g),o.createElement("path",{className:"".concat(l,"-line-trail"),d:O,strokeLinecap:p,stroke:h,strokeWidth:v||f,fillOpacity:"0"}),y.map((function(e,t){var n=1;switch(p){case"round":n=1-f/100;break;case"square":n=1-f/2/100;break;default:n=1}var a={strokeDasharray:"".concat(e*n,"px, 100px"),strokeDashoffset:"-".concat(k,"px"),transition:b||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},r=_[t]||_[_.length-1];return k+=e,o.createElement("path",{key:t,className:"".concat(l,"-line-path"),d:O,strokeLinecap:p,stroke:r,strokeWidth:f,fillOpacity:"0",ref:S[t],style:a})})))};d.defaultProps=u.defaultProps,d.displayName="Line",t.default=d},function(e,t,n){"use strict";n.r(t);var a=n(17),r=n(56),i=n(88),o=n(130),l=n(0),s=n(16),u=n.n(s),c=n(132),d=n(503),p=["id","prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function f(e){return+e.replace("%","")}function m(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}function h(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,l=0,s=-o,u=0,c=-2*o;switch(i){case"left":l=-o,s=0,u=2*o,c=0;break;case"right":l=o,s=0,u=-2*o,c=0;break;case"bottom":s=o,c=2*o}var d="M 50,50 m ".concat(l,",").concat(s,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(u,",").concat(-c,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(-u,",").concat(c),p=2*Math.PI*o,f={stroke:"string"==typeof n?n:void 0,strokeDasharray:"".concat(t/100*(p-r),"px ").concat(p,"px"),strokeDashoffset:"-".concat(r/2+e/100*(p-r),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:f}}var v=function(e){var t,n=e.id,s=e.prefixCls,v=e.strokeWidth,b=e.trailWidth,g=e.gapDegree,y=e.gapPosition,_=e.trailColor,w=e.strokeLinecap,S=e.style,x=e.className,E=e.strokeColor,O=e.percent,C=Object(o.default)(e,p),k=Object(d.default)(n),T="".concat(k,"-gradient"),N=h(0,100,_,v,g,y),P=N.pathString,I=N.pathStyle,A=m(O),j=m(E),M=j.find((function(e){return e&&"object"===Object(i.default)(e)})),D=Object(c.useTransitionDuration)(A),R=Object(r.default)(D,1)[0];return l.createElement("svg",Object(a.default)({className:u()("".concat(s,"-circle"),x),viewBox:"0 0 100 100",style:S,id:n},C),M&&l.createElement("defs",null,l.createElement("linearGradient",{id:T,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(M).sort((function(e,t){return f(e)-f(t)})).map((function(e,t){return l.createElement("stop",{key:t,offset:e,stopColor:M[e]})})))),l.createElement("path",{className:"".concat(s,"-circle-trail"),d:P,stroke:_,strokeLinecap:w,strokeWidth:b||v,fillOpacity:"0",style:I}),(t=0,A.map((function(e,n){var a=j[n]||j[j.length-1],r=a&&"object"===Object(i.default)(a)?"url(#".concat(T,")"):"",o=h(t,e,a,v,g,y);return t+=e,l.createElement("path",{key:n,className:"".concat(s,"-circle-path"),d:o.pathString,stroke:r,strokeLinecap:w,strokeWidth:v,opacity:0===e?0:1,fillOpacity:"0",style:o.pathStyle,ref:R[n]})}))).reverse())};v.defaultProps=c.defaultProps,v.displayName="Circle",t.default=v},function(e,t,n){"use strict";n.r(t),function(e){var a=n(0),r=n.n(a),i=n(57),o=n(3),l=n.n(o),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,a){e=n,t.forEach((function(t){return t(e,a)}))}}}var c=r.a.createContext||function(e,t){var n,r,o,c="__create-react-context-"+((s[o="__global_unique_id__"]=(s[o]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(i.default)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,a=this.props.value,r=e.value;((i=a)===(o=r)?0!==i||1/i==1/o:i!=i&&o!=o)?n=0:(n="function"==typeof t?t(a,r):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,o},a.render=function(){return this.props.children},n}(a.Component);d.childContextTypes=((n={})[c]=l.a.object.isRequired,n);var p=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.default)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},a.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},a.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},a.getValue=function(){return this.context[c]?this.context[c].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return p.contextTypes=((r={})[c]=l.a.object,r),{Provider:d,Consumer:p}};t.default=c}.call(this,n(65))},function(e,t,n){var a=n(538);e.exports=f,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var r=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,a=[],i=0,o=0,l="",c=t&&t.delimiter||"/";null!=(n=r.exec(e));){var d=n[0],p=n[1],f=n.index;if(l+=e.slice(o,f),o=f+d.length,p)l+=p[1];else{var m=e[o],h=n[2],v=n[3],b=n[4],g=n[5],y=n[6],_=n[7];l&&(a.push(l),l="");var w=null!=h&&null!=m&&m!==h,S="+"===y||"*"===y,x="?"===y||"*"===y,E=n[2]||c,O=b||g;a.push({name:v||i++,prefix:h||"",delimiter:E,optional:x,repeat:S,partial:w,asterisk:!!_,pattern:O?u(O):_?".*":"[^"+s(E)+"]+?"})}}return o<e.length&&(l+=e.substr(o)),l&&a.push(l),a}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",d(t)));return function(t,r){for(var i="",l=t||{},s=(r||{}).pretty?o:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,p=l[c.name];if(null==p){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(a(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=s(p[f]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===f?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(p),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');i+=c.prefix+d}}else i+=c}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){a(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",l=0;l<e.length;l++){var u=e[l];if("string"==typeof u)o+=s(u);else{var p=s(u.prefix),f="(?:"+u.pattern+")";t.push(u),u.repeat&&(f+="(?:"+p+f+")*"),o+=f=u.optional?u.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=s(n.delimiter||"/"),h=o.slice(-m.length)===m;return r||(o=(h?o.slice(0,-m.length):o)+"(?:"+m+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+m+"|$)",c(new RegExp("^"+o,d(n)),t)}function f(e,t,n){return a(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var a=0;a<n.length;a++)t.push({name:a,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):a(e)?function(e,t,n){for(var a=[],r=0;r<e.length;r++)a.push(f(e[r],t,n).source);return c(new RegExp("(?:"+a.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";n.r(t);var a=n(464),r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=Object(a.default)((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(0),r=n(475);function i(e){var t=Object(r.default)(e);return Object(a.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}},function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";e.exports=n(685)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return l})),n.d(t,"__param",(function(){return s})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return m})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__spreadArray",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return O})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}function l(e,t,n,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t){return function(n,a){t(n,a,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function l(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((a=a.apply(e,t||[])).next())}))}function d(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var p=Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,r++)a[r]=i[o];return a}function g(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,r=n.apply(e,t||[]),i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(e){r[e]&&(a[e]=function(t){return new Promise((function(n,a){i.push([e,t,n,a])>1||l(e,t)}))})}function l(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){l("next",e)}function u(e){l("throw",e)}function c(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function w(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:y(e[a](t)),done:"return"===a}:r?r(t):t}:r}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)}function T(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),t.default={disabled:!1}},function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a);t.default=r.a.createContext(null)},function(e,t,n){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var a=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(a=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,o=new Map;function l(e){o.delete(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;function r(t){if(0===t)l(n),e();else{var i=a((function(){r(t-1)}));o.set(n,i)}}return r(t),n}s.cancel=function(e){var t=o.get(e);return l(t),r(t)}},function(e,t,n){"use strict";n.r(t),function(e,a){var r,i=n(505);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:a;var o=Object(i.default)(r);t.default=o}.call(this,n(65),n(527)(e))},function(e,t,n){"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(75);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"fillRef",(function(){return o})),n.d(t,"composeRef",(function(){return l})),n.d(t,"useComposeRef",(function(){return s})),n.d(t,"supportRef",(function(){return u}));var a=n(88),r=n(72),i=n(514);function o(e,t){"function"==typeof e?e(t):"object"===Object(a.default)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.filter((function(e){return e}));return a.length<=1?a[0]:function(e){t.forEach((function(t){o(t,e)}))}}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(i.default)((function(){return l.apply(void 0,t)}),t,(function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}))}function u(e){var t,n,a=Object(r.isMemo)(e)?e.type.type:e.type;return!("function"==typeof a&&!(null===(t=a.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(11),r=n.n(a);function i(e){return e instanceof HTMLElement?e:r.a.findDOMNode(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"_el",(function(){return o})),n.d(t,"_rs",(function(){return l})),n.d(t,"observe",(function(){return s})),n.d(t,"unobserve",(function(){return u}));var a=n(515),r=new Map;var i=new a.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=r.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),o=null,l=null;function s(e,t){r.has(e)||(r.set(e,new Set),i.observe(e)),r.get(e).add(t)}function u(e,t){r.has(e)&&(r.get(e).delete(t),r.get(e).size||(i.unobserve(e),r.delete(e)))}},function(e,t,n){"use strict";function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var a=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(a=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var i=0,o=new Map;function l(e){o.delete(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;function r(t){if(0===t)l(n),e();else{var i=a((function(){r(t-1)}));o.set(n,i)}}return r(t),n}s.cancel=function(e){var t=o.get(e);return l(t),r(t)}},,function(e,t,n){"use strict";var a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(s[c]=n[c]);if(a){l=a(n);for(var d=0;d<l.length;d++)i.call(n,l[d])&&(s[l[d]]=n[l[d]])}}return s}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"observer",(function(){return l}));var a=n(0),r=n(108),i=n(128),o=function(){return(o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function l(e,t){if(Object(r.isUsingStaticRendering)())return e;var n,l,u,c=o({forwardRef:!1},t),d=e.displayName||e.name,p=function(t,n){return Object(i.useObserver)((function(){return e(t,n)}),d)};return p.displayName=d,n=c.forwardRef?Object(a.memo)(Object(a.forwardRef)(p)):Object(a.memo)(p),l=e,u=n,Object.keys(l).forEach((function(e){s[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(l,e))})),n.displayName=d,n}var s={$$typeof:!0,render:!0,compare:!0,type:!0}},function(e,t,n){"use strict";n.r(t),n.d(t,"Observer",(function(){return r}));var a=n(128);function r(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:Object(a.useObserver)(r)}function i(e,t,n,a,r){var i="children"===t?"render":"children",o="function"==typeof e[t],l="function"==typeof e[i];return o&&l?new Error("MobX Observer: Do not use children and render in the same time in`"+n):o||l?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}r.propTypes={children:i,render:i},r.displayName="Observer"},function(e,t,n){"use strict";n.r(t),n.d(t,"useLocalStore",(function(){return s}));var a=n(6),r=n(0),i=n.n(r),o=n(201),l=n(73);function s(e,t){var n=Object(o.useAsObservableSourceInternal)(t,!0);return i.a.useState((function(){var t=Object(a.observable)(e(n));return Object(l.isPlainObject)(t)&&Object(a.runInAction)((function(){Object.keys(t).forEach((function(e){var n,r,i=t[e];"function"==typeof i&&(t[e]=(n=i,r=t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object(a.transaction)((function(){return n.apply(r,e)}))}))}))})),t}))[0]}},,function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return p}));var a=n(204),r=n(89),i=n(467),o=n(0),l=n.n(o),s=n(469),u=n(288),c=n.n(u),d=n(76);function p(e,t,n){void 0===n&&(n=[]);var o=e.displayName||e.name||"Component",u=d.canAcceptRef(e),f=Object.keys(t),m=f.map(d.defaultKey);!u&&n.length&&c()(!1);var h=function(o){function s(){for(var e,a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];(e=o.call.apply(o,[this].concat(i))||this).handlers=Object.create(null),f.forEach((function(n){var a=t[n];e.handlers[a]=function(t){if(e.props[a]){var i;e._notifying=!0;for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];(i=e.props)[a].apply(i,[t].concat(l)),e._notifying=!1}e.unmounted||e.setState((function(e){var a,i=e.values;return{values:Object(r.default)(Object.create(null),i,(a={},a[n]=t,a))}}))}})),n.length&&(e.attachRef=function(t){e.inner=t});var s=Object.create(null);return f.forEach((function(t){s[t]=e.props[d.defaultKey(t)]})),e.state={values:s,prevProps:{}},e}Object(i.default)(s,o);var u=s.prototype;return u.shouldComponentUpdate=function(){return!this._notifying},s.getDerivedStateFromProps=function(e,t){var n=t.values,a=t.prevProps,i={values:Object(r.default)(Object.create(null),n),prevProps:{}};return f.forEach((function(t){i.prevProps[t]=e[t],!d.isProp(e,t)&&d.isProp(a,t)&&(i.values[t]=e[d.defaultKey(t)])})),i},u.componentWillUnmount=function(){this.unmounted=!0},u.render=function(){var t=this,n=this.props,i=n.innerRef,o=Object(a.default)(n,["innerRef"]);m.forEach((function(e){delete o[e]}));var s={};return f.forEach((function(e){var n=t.props[e];s[e]=void 0!==n?n:t.state.values[e]})),l.a.createElement(e,Object(r.default)({},o,s,this.handlers,{ref:i||this.attachRef}))},s}(l.a.Component);Object(s.polyfill)(h),h.displayName="Uncontrolled("+o+")",h.propTypes=Object(r.default)({innerRef:function(){}},d.uncontrolledPropTypes(t,o)),n.forEach((function(e){h.prototype[e]=function(){var t;return(t=this.inner)[e].apply(t,arguments)}}));var v=h;return l.a.forwardRef&&((v=l.a.forwardRef((function(e,t){return l.a.createElement(h,Object(r.default)({},e,{innerRef:t,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))}))).propTypes=h.propTypes),v.ControlledComponent=e,v.deferControlTo=function(e,n,a){return void 0===n&&(n={}),p(e,Object(r.default)({},t,n),a)},v}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNumberPrecision=o,t.isE=i,t.num2str=function(e){var t=String(e);if(i(e)){if(e>Number.MAX_SAFE_INTEGER)return String((0,a.supportBigInt)()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String((0,a.supportBigInt)()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(o(t))}return r(t).fullStr},t.trimNumber=r,t.validateNumber=l;var a=n(388);function r(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var a=t||"0",r=a.split("."),i=r[0]||"0",o=r[1]||"0";"0"===i&&"0"===o&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:a,integerStr:i,decimalStr:o,fullStr:"".concat(l).concat(a)}}function i(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function o(e){var t=String(e);if(i(e)){var n=Number(t.slice(t.indexOf("e-")+2)),a=t.match(/\.(\d+)/);return(null==a?void 0:a[1])&&(n+=a[1].length),n}return t.includes(".")&&l(t)?t.length-t.indexOf(".")-1:0}function l(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportBigInt=function(){return"function"==typeof BigInt}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"Controller",(function(){return W})),n.d(t,"FormProvider",(function(){return I})),n.d(t,"appendErrors",(function(){return q})),n.d(t,"get",(function(){return f})),n.d(t,"set",(function(){return Y})),n.d(t,"useController",(function(){return H})),n.d(t,"useFieldArray",(function(){return ue})),n.d(t,"useForm",(function(){return $e})),n.d(t,"useFormContext",(function(){return P})),n.d(t,"useFormState",(function(){return B})),n.d(t,"useWatch",(function(){return U}));var a=n(0),r=e=>"checkbox"===e.type,i=e=>e instanceof Date,o=e=>null==e;const l=e=>"object"==typeof e;var s=e=>!o(e)&&!Array.isArray(e)&&l(e)&&!i(e),u=e=>s(e)&&e.target?r(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>Array.isArray(e)?e.filter(Boolean):[],p=e=>void 0===e,f=(e,t,n)=>{if(!t||!s(e))return n;const a=d(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return p(a)||a===e?p(e[t])?n:e[t]:a};const m="blur",h="focusout",v="change",b="onBlur",g="onChange",y="onSubmit",_="onTouched",w="all",S="max",x="min",E="maxLength",O="minLength",C="pattern",k="required",T="validate",N=a.createContext(null),P=()=>a.useContext(N),I=e=>{const{children:t,...n}=e;return a.createElement(N.Provider,{value:n},e.children)};var A=(e,t,n,a=!0)=>{const r={};for(const i in e)Object.defineProperty(r,i,{get:()=>{const r=i;return t[r]!==w&&(t[r]=!a||w),n&&(n[r]=!0),e[r]}});return r},j=e=>s(e)&&!Object.keys(e).length,M=(e,t,n)=>{const{name:a,...r}=e;return j(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find(e=>t[e]===(!n||w))},D=e=>Array.isArray(e)?e:[e],R=(e,t,n)=>n&&t?e===t:!e||!t||e===t||D(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function F(e){const t=a.useRef(e);t.current=e,a.useEffect(()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>(e=>{e&&e.unsubscribe()})(n)},[e.disabled])}function B(e){const t=P(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[l,s]=a.useState(n._formState),u=a.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=a.useRef(i),d=a.useRef(!0);c.current=i;return F({disabled:r,callback:a.useCallback(e=>d.current&&R(c.current,e.name,o)&&M(e,u.current)&&s({...n._formState,...e}),[n,o]),subject:n._subjects.state}),a.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]),A(l,n._proxyFormState,u.current,!1)}var L=e=>"string"==typeof e,$=(e,t,n,a)=>{const r=Array.isArray(e);return L(e)?(a&&t.watch.add(e),f(n,e)):r?e.map(e=>(a&&t.watch.add(e),f(n,e))):(a&&(t.watchAll=!0),n)},V=e=>"function"==typeof e,z=e=>{for(const t in e)if(V(e[t]))return!0;return!1};function U(e){const t=P(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:l}=e||{},u=a.useRef(r);u.current=r;const c=a.useCallback(e=>{if(R(u.current,e.name,l)){const t=$(u.current,n._names,e.values||n._formValues);f(p(u.current)||s(t)&&!z(t)?{...t}:Array.isArray(t)?[...t]:p(t)?i:t)}},[n,l,i]);F({disabled:o,subject:n._subjects.watch,callback:c});const[d,f]=a.useState(p(i)?n._getWatch(r):i);return a.useEffect(()=>{n._removeUnmounted()}),d}function H(e){const t=P(),{name:n,control:r=t.control,shouldUnregister:i}=e,o=c(r._names.array,n),l=U({control:r,name:n,defaultValue:f(r._formValues,n,f(r._defaultValues,n,e.defaultValue)),exact:!0}),s=B({control:r,name:n}),d=a.useRef(r.register(n,{...e.rules,value:l}));return a.useEffect(()=>{const e=(e,t)=>{const n=f(r._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=r._options.shouldUnregister||i;(o?t&&!r._stateFlags.action:t)?r.unregister(n):e(n,!1)}},[n,r,o,i]),{field:{name:n,value:l,onChange:a.useCallback(e=>{d.current.onChange({target:{value:u(e),name:n},type:v})},[n]),onBlur:a.useCallback(()=>{d.current.onBlur({target:{value:f(r._formValues,n),name:n},type:m})},[n,r]),ref:a.useCallback(e=>{const t=f(r._fields,n);e&&t&&e.focus&&(t._f.ref={focus:()=>e.focus(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[n,r._fields])},formState:s,fieldState:r.getFieldState(n,s)}}const W=e=>e.render(H(e));var q=(e,t,n,a,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[a]:r||!0}}:{},K=e=>/^\w*$/.test(e),G=e=>d(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Y(e,t,n){let a=-1;const r=K(t)?[t]:G(t),i=r.length,o=i-1;for(;++a<i;){const t=r[a];let i=n;if(a!==o){const n=e[t];i=s(n)||Array.isArray(n)?n:isNaN(+r[a+1])?{}:[]}e[t]=i,e=e[t]}return e}const J=(e,t,n)=>{for(const a of n||Object.keys(e)){const n=f(e,a);if(n){const{_f:e,...a}=n;if(e&&t(e.name)){if(e.ref.focus&&p(e.ref.focus()))break;if(e.refs){e.refs[0].focus();break}}else s(a)&&J(a,t)}}};var X=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)})},Q=(e,t,n={})=>n.shouldFocus||p(n.shouldFocus)?n.focusName||`${e}.${p(n.focusIndex)?t:n.focusIndex}.`:"",Z=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));function ee(e,t){return[...e,...D(t)]}function te(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(!n&&!s(e))return e;t=n?[]:{};for(const n in e){if(V(e[n])){t=e;break}t[n]=te(e[n])}}return t}var ne=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ae(e,t,n){return[...e.slice(0,t),...D(n),...e.slice(t)]}var re=(e,t,n)=>Array.isArray(e)?(p(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[];function ie(e,t){return[...D(t),...D(e)]}var oe=(e,t)=>p(t)?[]:function(e,t){let n=0;const a=[...e];for(const e of t)a.splice(e-n,1),n++;return d(a).length?a:[]}(e,D(t).sort((e,t)=>e-t)),le=(e,t,n)=>{e[t]=[e[n],e[n]=e[t]][0]},se=(e,t,n)=>(e[t]=n,e);function ue(e){const t=P(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:o}=e,[l,s]=a.useState(n._getFieldArray(r)),u=a.useRef(n._getFieldArray(r).map(X)),c=a.useRef(l),d=a.useRef(r),p=a.useRef(!1);d.current=r,c.current=l,n._names.array.add(r);F({callback:a.useCallback(({values:e,name:t})=>{if(t===d.current||!t){const t=f(e,d.current,[]);s(t),u.current=t.map(X)}},[]),subject:n._subjects.array});const m=a.useCallback(e=>{p.current=!0,n._updateFieldArray(r,e)},[n,r]);return a.useEffect(()=>{n._stateFlags.action=!1,Z(r,n._names)&&n._subjects.state.next({}),p.current&&n._executeSchema([r]).then(e=>{const t=f(e.errors,r);t&&t.type&&!f(n._formState.errors,r)&&(Y(n._formState.errors,r,t),n._subjects.state.next({errors:n._formState.errors}))}),n._subjects.watch.next({name:r,values:n._formValues}),n._names.focus&&J(n._fields,e=>e.startsWith(n._names.focus)),n._names.focus="",n._proxyFormState.isValid&&n._updateValid()},[l,r,n]),a.useEffect(()=>(!f(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||o)&&n.unregister(r)}),[r,n,i,o]),{swap:a.useCallback((e,t)=>{const a=n._getFieldArray(r);le(a,e,t),le(u.current,e,t),m(a),s(a),n._updateFieldArray(r,a,le,{argA:e,argB:t},!1)},[m,r,n]),move:a.useCallback((e,t)=>{const a=n._getFieldArray(r);re(a,e,t),re(u.current,e,t),m(a),s(a),n._updateFieldArray(r,a,re,{argA:e,argB:t},!1)},[m,r,n]),prepend:a.useCallback((e,t)=>{const a=D(te(e)),i=ie(n._getFieldArray(r),a);n._names.focus=Q(r,0,t),u.current=ie(u.current,a.map(X)),m(i),s(i),n._updateFieldArray(r,i,ie,{argA:ne(e)})},[m,r,n]),append:a.useCallback((e,t)=>{const a=D(te(e)),i=ee(n._getFieldArray(r),a);n._names.focus=Q(r,i.length-1,t),u.current=ee(u.current,a.map(X)),m(i),s(i),n._updateFieldArray(r,i,ee,{argA:ne(e)})},[m,r,n]),remove:a.useCallback(e=>{const t=oe(n._getFieldArray(r),e);u.current=oe(u.current,e),m(t),s(t),n._updateFieldArray(r,t,oe,{argA:e})},[m,r,n]),insert:a.useCallback((e,t,a)=>{const i=D(te(t)),o=ae(n._getFieldArray(r),e,i);n._names.focus=Q(r,e,a),u.current=ae(u.current,e,i.map(X)),m(o),s(o),n._updateFieldArray(r,o,ae,{argA:e,argB:ne(t)})},[m,r,n]),update:a.useCallback((e,t)=>{const a=te(t),i=se(n._getFieldArray(r),e,a);u.current=[...i].map((t,n)=>t&&n!==e?u.current[n]:X()),m(i),s([...i]),n._updateFieldArray(r,i,se,{argA:e,argB:a},!0,!1)},[m,r,n]),replace:a.useCallback(e=>{const t=D(te(e));u.current=t.map(X),m([...t]),s([...t]),n._updateFieldArray(r,[...t],e=>e,{},!0,!1)},[m,r,n]),fields:a.useMemo(()=>l.map((e,t)=>({...e,[i]:u.current[t]||X()})),[l,i])}}function ce(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var de=e=>o(e)||!l(e);function pe(e,t){if(de(e)||de(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(const r of n){const n=e[r];if(!a.includes(r))return!1;if("ref"!==r){const e=t[r];if(i(n)&&i(e)||s(n)&&s(e)||Array.isArray(n)&&Array.isArray(e)?!pe(n,e):n!==e)return!1}}return!0}var fe=e=>({isOnSubmit:!e||e===y,isOnBlur:e===b,isOnChange:e===g,isOnAll:e===w,isOnTouch:e===_}),me=e=>"boolean"==typeof e,he=e=>"file"===e.type,ve=e=>e instanceof HTMLElement,be=e=>"select-multiple"===e.type,ge=e=>"radio"===e.type,ye="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document,_e=e=>ve(e)&&e.isConnected;function we(e,t){const n=K(t)?[t]:G(t),a=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let a=0;for(;a<n;)e=p(e)?a++:e[t[a++]];return e}(e,n),r=n[n.length-1];let i;a&&delete a[r];for(let t=0;t<n.slice(0,-1).length;t++){let a,r=-1;const o=n.slice(0,-(t+1)),l=o.length-1;for(t>0&&(i=e);++r<o.length;){const t=o[r];a=a?a[t]:e[t],l===r&&(s(a)&&j(a)||Array.isArray(a)&&!a.filter(e=>!p(e)).length)&&(i?delete i[t]:delete e[t]),i=a}}return e}function Se(e,t={}){const n=Array.isArray(e);if(s(e)||n)for(const n in e)Array.isArray(e[n])||s(e[n])&&!z(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Se(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var xe=(e,t)=>function e(t,n,a){const r=Array.isArray(t);if(s(t)||r)for(const r in t)Array.isArray(t[r])||s(t[r])&&!z(t[r])?p(n)||de(a[r])?a[r]=Array.isArray(t[r])?Se(t[r],[]):{...Se(t[r])}:e(t[r],o(n)?{}:n[r],a[r]):a[r]=!pe(t[r],n[r]);return a}(e,t,Se(t));const Ee={value:!1,isValid:!1},Oe={value:!0,isValid:!0};var Ce=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!p(e[0].attributes.value)?p(e[0].value)||""===e[0].value?Oe:{value:e[0].value,isValid:!0}:Oe:Ee}return Ee},ke=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:a})=>p(e)?e:t?""===e?NaN:+e:n&&L(e)?new Date(e):a?a(e):e;const Te={isValid:!1,value:null};var Ne=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Te):Te;function Pe(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return he(t)?t.files:ge(t)?Ne(e.refs).value:be(t)?[...t.selectedOptions].map(({value:e})=>e):r(t)?Ce(e.refs).value:ke(p(t.value)?e.ref.value:t.value,e)}var Ie=e=>e instanceof RegExp,Ae=e=>p(e)?void 0:Ie(e)?e.source:s(e)?Ie(e.value)?e.value.source:e.value:e;function je(e,t,n){const a=f(e,n);if(a||K(n))return{error:a,name:n};const r=n.split(".");for(;r.length;){const a=r.join("."),i=f(t,a),o=f(e,a);if(i&&!Array.isArray(i)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};r.pop()}return{name:n}}var Me=e=>L(e)||a.isValidElement(e);function De(e,t,n="validate"){if(Me(e)||Array.isArray(e)&&e.every(Me)||me(e)&&!e)return{type:n,message:Me(e)?e:"",ref:t}}var Re=e=>s(e)&&!Ie(e)?e:{value:e,message:""},Fe=async(e,t,n,a)=>{const{ref:i,refs:l,required:u,maxLength:c,minLength:d,min:p,max:f,pattern:m,validate:h,name:v,valueAsNumber:b,mount:g,disabled:y}=e._f;if(!g||y)return{};const _=l?l[0]:i,w=e=>{a&&_.reportValidity&&(_.setCustomValidity(me(e)?"":e||" "),_.reportValidity())},N={},P=ge(i),I=r(i),A=P||I,M=(b||he(i))&&!i.value||""===t||Array.isArray(t)&&!t.length,D=q.bind(null,v,n,N),R=(e,t,n,a=E,r=O)=>{const o=e?t:n;N[v]={type:e?a:r,message:o,ref:i,...D(e?a:r,o)}};if(u&&(!A&&(M||o(t))||me(t)&&!t||I&&!Ce(l).isValid||P&&!Ne(l).isValid)){const{value:e,message:t}=Me(u)?{value:!!u,message:u}:Re(u);if(e&&(N[v]={type:k,message:t,ref:_,...D(k,t)},!n))return w(t),N}if(!(M||o(p)&&o(f))){let e,a;const r=Re(f),l=Re(p);if(isNaN(t)){const n=i.valueAsDate||new Date(t);L(r.value)&&(e=n>new Date(r.value)),L(l.value)&&(a=n<new Date(l.value))}else{const n=i.valueAsNumber||+t;o(r.value)||(e=n>r.value),o(l.value)||(a=n<l.value)}if((e||a)&&(R(!!e,r.message,l.message,S,x),!n))return w(N[v].message),N}if((c||d)&&!M&&L(t)){const e=Re(c),a=Re(d),r=!o(e.value)&&t.length>e.value,i=!o(a.value)&&t.length<a.value;if((r||i)&&(R(r,e.message,a.message),!n))return w(N[v].message),N}if(m&&!M&&L(t)){const{value:e,message:a}=Re(m);if(Ie(e)&&!t.match(e)&&(N[v]={type:C,message:a,ref:i,...D(C,a)},!n))return w(a),N}if(h)if(V(h)){const e=De(await h(t),_);if(e&&(N[v]={...e,...D(T,e.message)},!n))return w(e.message),N}else if(s(h)){let e={};for(const a in h){if(!j(e)&&!n)break;const r=De(await h[a](t),_,a);r&&(e={...r,...D(a,r.message)},w(r.message),n&&(N[v]=e))}if(!j(e)&&(N[v]={ref:_,...e},!n))return N}return w(!0),N};const Be={mode:y,reValidateMode:g,shouldFocusError:!0};function Le(e={}){let t,n={...Be,...e},a={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},l={},s=te(n.defaultValues)||{},v=n.shouldUnregister?{}:te(s),b={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},y=0,_={};const S={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={watch:ce(),array:ce(),state:ce()},E=fe(n.mode),O=fe(n.reValidateMode),C=n.criteriaMode===w,k=async e=>{let t=!1;return S.isValid&&(t=n.resolver?j((await A()).errors):await M(l,!0),e||t===a.isValid||(a.isValid=t,x.state.next({isValid:t}))),t},T=(e,t)=>(Y(a.errors,e,t),x.state.next({errors:a.errors})),N=(e,t,n,a)=>{const r=f(l,e);if(r){const i=f(v,e,p(n)?f(s,e):n);p(i)||a&&a.defaultChecked||t?Y(v,e,t?i:Pe(r._f)):B(e,i),b.mount&&k()}},P=(e,t,n,r,i)=>{let o=!1;const l={name:e},u=f(a.touchedFields,e);if(S.isDirty){const e=a.isDirty;a.isDirty=l.isDirty=R(),o=e!==l.isDirty}if(S.dirtyFields&&(!n||r)){const n=f(a.dirtyFields,e);pe(f(s,e),t)?we(a.dirtyFields,e):Y(a.dirtyFields,e,!0),l.dirtyFields=a.dirtyFields,o=o||n!==f(a.dirtyFields,e)}return n&&!u&&(Y(a.touchedFields,e,n),l.touchedFields=a.touchedFields,o=o||S.touchedFields&&u!==n),o&&i&&x.state.next(l),o?l:{}},I=async(n,r,i,o,l)=>{const s=f(a.errors,r),u=S.isValid&&a.isValid!==i;var c,d;if(e.delayError&&o?(t=t||(c=T,d=e.delayError,(...e)=>{clearTimeout(y),y=window.setTimeout(()=>c(...e),d)}),t(r,o)):(clearTimeout(y),o?Y(a.errors,r,o):we(a.errors,r)),((o?!pe(s,o):s)||!j(l)||u)&&!n){const e={...l,...u?{isValid:i}:{},errors:a.errors,name:r};a={...a,...e},x.state.next(e)}_[r]--,S.isValidating&&!Object.values(_).some(e=>e)&&(x.state.next({isValidating:!1}),_={})},A=async e=>n.resolver?await n.resolver({...v},n.context,((e,t,n,a)=>{const r={};for(const n of e){const e=f(t,n);e&&Y(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:a}})(e||g.mount,l,n.criteriaMode,n.shouldUseNativeValidation)):{},M=async(e,t,r={valid:!0})=>{for(const i in e){const o=e[i];if(o){const{_f:e,...i}=o;if(e){const i=await Fe(o,f(v,e.name),C,n.shouldUseNativeValidation);if(i[e.name]&&(r.valid=!1,t))break;t||(i[e.name]?Y(a.errors,e.name,i[e.name]):we(a.errors,e.name))}i&&await M(i,t,r)}}return r.valid},R=(e,t)=>(e&&t&&Y(v,e,t),!pe(q(),s)),F=(e,t,n)=>{const a={...b.mount?v:p(t)?s:L(e)?{[e]:t}:t};return $(e,g,a,n)},B=(e,t,n={})=>{const a=f(l,e);let i=t;if(a){const n=a._f;n&&(!n.disabled&&Y(v,e,ke(t,n)),i=ye&&ve(n.ref)&&o(t)?"":t,be(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?r(n.ref)?n.refs.length>1?n.refs.forEach(e=>!e.disabled&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):he(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||x.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&P(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&W(e)},z=(e,t,n)=>{for(const a in t){const r=t[a],o=`${e}.${a}`,s=f(l,o);!g.array.has(e)&&de(r)&&(!s||s._f)||i(r)?B(o,r,n):z(o,r,n)}},U=(e,t,n={})=>{const r=f(l,e),i=g.array.has(e),u=te(t);Y(v,e,u),i?(x.array.next({name:e,values:v}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&(a.dirtyFields=xe(s,v),x.state.next({name:e,dirtyFields:a.dirtyFields,isDirty:R(e,u)}))):!r||r._f||o(u)?B(e,u,n):z(e,u,n),Z(e,g)&&x.state.next({}),x.watch.next({name:e})},H=async e=>{const t=e.target;let r=t.name;const i=f(l,r);if(i){let s,c;const d=t.type?Pe(i._f):u(e),p=e.type===m||e.type===h,b=!((o=i._f).mount&&(o.required||o.min||o.max||o.maxLength||o.minLength||o.pattern||o.validate)||n.resolver||f(a.errors,r)||i._f.deps)||((e,t,n,a,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?a.isOnBlur:r.isOnBlur)?!e:!(n?a.isOnChange:r.isOnChange)||e))(p,f(a.touchedFields,r),a.isSubmitted,O,E),y=Z(r,g,p);Y(v,r,d),p?i._f.onBlur&&i._f.onBlur(e):i._f.onChange&&i._f.onChange(e);const w=P(r,d,p,!1),S=!j(w)||y;if(!p&&x.watch.next({name:r,type:e.type}),b)return S&&x.state.next({name:r,...y?{}:w});if(!p&&y&&x.state.next({}),_[r]=(_[r],1),x.state.next({isValidating:!0}),n.resolver){const{errors:e}=await A([r]),t=je(a.errors,l,r),n=je(e,l,t.name||r);s=n.error,r=n.name,c=j(e)}else s=(await Fe(i,f(v,r),C,n.shouldUseNativeValidation))[r],c=await k(!0);i._f.deps&&W(i._f.deps),I(!1,r,c,s,w)}var o},W=async(e,t={})=>{let r,i;const o=D(e);if(x.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await A();if(e)for(const n of e){const e=f(t,n);e?Y(a.errors,n,e):we(a.errors,n)}else a.errors=t;return t})(p(e)?e:o);r=j(t),i=e?!o.some(e=>f(t,e)):r}else e?(i=(await Promise.all(o.map(async e=>{const t=f(l,e);return await M(t&&t._f?{[e]:t}:t)}))).every(Boolean),(i||a.isValid)&&k()):i=r=await M(l);return x.state.next({...!L(e)||S.isValid&&r!==a.isValid?{}:{name:e},...n.resolver?{isValid:r}:{},errors:a.errors,isValidating:!1}),t.shouldFocus&&!i&&J(l,e=>f(a.errors,e),e?o:g.mount),i},q=e=>{const t={...s,...b.mount?v:{}};return p(e)?t:L(e)?f(t,e):e.map(e=>f(t,e))},K=(e,t)=>({invalid:!!f((t||a).errors,e),isDirty:!!f((t||a).dirtyFields,e),isTouched:!!f((t||a).touchedFields,e),error:f((t||a).errors,e)}),G=(e,t={})=>{for(const r of e?D(e):g.mount)g.mount.delete(r),g.array.delete(r),f(l,r)&&(t.keepValue||(we(l,r),we(v,r)),!t.keepError&&we(a.errors,r),!t.keepDirty&&we(a.dirtyFields,r),!t.keepTouched&&we(a.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&we(s,r));x.watch.next({}),x.state.next({...a,...t.keepDirty?{isDirty:R()}:{}}),!t.keepIsValid&&k()},X=(e,t={})=>{let a=f(l,e);const i=me(t.disabled);return Y(l,e,{_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...t}}),g.mount.add(e),a?i&&Y(v,e,t.disabled?void 0:f(v,e,Pe(a._f))):N(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:Ae(t.min),max:Ae(t.max),minLength:Ae(t.minLength),maxLength:Ae(t.maxLength),pattern:Ae(t.pattern)}:{},name:e,onChange:H,onBlur:H,ref:i=>{if(i){X(e,t),a=f(l,e);const n=p(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=(e=>ge(e)||r(e))(n),u=a._f.refs||[];if(o?u.find(e=>e===n):n===a._f.ref)return;Y(l,e,{_f:{...a._f,...o?{refs:[...u.filter(_e),n,...Array.isArray(f(s,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),N(e,!1,void 0,n)}else a=f(l,e,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!c(g.array,e)||!b.action)&&g.unMount.add(e)}}};return{control:{register:X,unregister:G,getFieldState:K,_executeSchema:A,_getWatch:F,_getDirty:R,_updateValid:k,_removeUnmounted:()=>{for(const e of g.unMount){const t=f(l,e);t&&(t._f.refs?t._f.refs.every(e=>!_e(e)):!_e(t._f.ref))&&G(e)}g.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(b.action=!0,o&&Array.isArray(f(l,e))){const t=n(f(l,e),r.argA,r.argB);i&&Y(l,e,t)}if(S.errors&&o&&Array.isArray(f(a.errors,e))){const t=n(f(a.errors,e),r.argA,r.argB);i&&Y(a.errors,e,t),((e,t)=>{!d(f(e,t)).length&&we(e,t)})(a.errors,e)}if(S.touchedFields&&o&&Array.isArray(f(a.touchedFields,e))){const t=n(f(a.touchedFields,e),r.argA,r.argB);i&&Y(a.touchedFields,e,t)}S.dirtyFields&&(a.dirtyFields=xe(s,v)),x.state.next({isDirty:R(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else Y(v,e,t)},_getFieldArray:t=>d(f(b.mount?v:s,t,e.shouldUnregister?f(s,t,[]):[])),_subjects:x,_proxyFormState:S,get _fields(){return l},get _formValues(){return v},get _stateFlags(){return b},set _stateFlags(e){b=e},get _defaultValues(){return s},get _names(){return g},set _names(e){g=e},get _formState(){return a},set _formState(e){a=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:W,register:X,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=!0,o=te(v);x.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await A();a.errors=e,o=t}else await M(l);j(a.errors)&&Object.keys(a.errors).every(e=>f(o,e))?(x.state.next({errors:{},isSubmitting:!0}),await e(o,r)):(t&&await t({...a.errors},r),n.shouldFocusError&&J(l,e=>f(a.errors,e),g.mount))}catch(e){throw i=!1,e}finally{a.isSubmitted=!0,x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(a.errors)&&i,submitCount:a.submitCount+1,errors:a.errors})}},watch:(e,t)=>V(e)?x.watch.subscribe({next:n=>e(F(void 0,t),n)}):F(e,t,!0),setValue:U,getValues:q,reset:(t,n={})=>{const r=t||s,i=te(r),o=t&&!j(t)?i:s;if(n.keepDefaultValues||(s=r),!n.keepValues){if(ye&&p(t))for(const e of g.mount){const t=f(l,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{ve(e)&&e.closest("form").reset();break}catch(e){}}}v=e.shouldUnregister?n.keepDefaultValues?te(s):{}:i,l={},x.array.next({values:o}),x.watch.next({values:o})}g={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!S.isValid||!!n.keepIsValid,b.watch=!!e.shouldUnregister,x.state.next({submitCount:n.keepSubmitCount?a.submitCount:0,isDirty:n.keepDirty?a.isDirty:!!n.keepDefaultValues&&!pe(t,s),isSubmitted:!!n.keepIsSubmitted&&a.isSubmitted,dirtyFields:n.keepDirty?a.dirtyFields:n.keepDefaultValues&&t?Object.entries(t).reduce((e,[t,n])=>({...e,[t]:n!==f(s,t)}),{}):{},touchedFields:n.keepTouched?a.touchedFields:{},errors:n.keepErrors?a.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},resetField:(e,t={})=>{f(l,e)&&(p(t.defaultValue)?U(e,f(s,e)):(U(e,t.defaultValue),Y(s,e,t.defaultValue)),t.keepTouched||we(a.touchedFields,e),t.keepDirty||(we(a.dirtyFields,e),a.isDirty=t.defaultValue?R(e,f(s,e)):R()),t.keepError||(we(a.errors,e),S.isValid&&k()),x.state.next({...a}))},clearErrors:e=>{e?D(e).forEach(e=>we(a.errors,e)):a.errors={},x.state.next({errors:a.errors})},unregister:G,setError:(e,t,n)=>{const r=(f(l,e,{_f:{}})._f||{}).ref;Y(a.errors,e,{...t,ref:r}),x.state.next({name:e,errors:a.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{const n=f(l,e)._f,a=n.refs?n.refs[0]:n.ref;t.shouldSelect?a.select():a.focus()},getFieldState:K}}function $e(e={}){const t=a.useRef(),[n,r]=a.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});t.current?t.current.control._options=e:t.current={...Le(e),formState:n};const i=t.current.control,o=a.useCallback(e=>{M(e,i._proxyFormState,!0)&&(i._formState={...i._formState,...e},r({...i._formState}))},[i]);return F({subject:i._subjects.state,callback:o}),a.useEffect(()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()}),t.current.formState=A(n,i._proxyFormState),t.current}},function(e,t,n){"use strict";n.r(t),n.d(t,"fromEvent",(function(){return o}));var a=n(59),r=n(171),i=[".DS_Store","Thumbs.db"];function o(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?s(e.dataTransfer,e.type):l(e))];var n}))}))}function l(e){return(null!==e.target&&e.target.files?c(e.target.files):[]).map((function(e){return Object(r.toFileWithPath)(e)}))}function s(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return e.items?(n=c(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(d))]):[3,2];case 1:return[2,u(p(a.sent()))];case 2:return[2,u(c(e.files).map((function(e){return Object(r.toFileWithPath)(e)})))]}}))}))}function u(e){return e.filter((function(e){return-1===i.indexOf(e.name)}))}function c(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];t.push(a)}return t}function d(e){if("function"!=typeof e.webkitGetAsEntry)return f(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?h(t):f(e)}function p(e){return e.reduce((function(e,t){return Object(a.__spread)(e,Array.isArray(t)?p(t):[t])}),[])}function f(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Object(r.toFileWithPath)(t);return Promise.resolve(n)}function m(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return[2,e.isDirectory?h(e):v(e)]}))}))}function h(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return Object(a.__awaiter)(o,void 0,void 0,(function(){var o,l,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=a.sent(),e(o),[3,4];case 3:return l=a.sent(),n(l),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(m)),r.push(s),i(),a.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function v(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var a=Object(r.toFileWithPath)(n,e.fullPath);t(a)}),(function(e){n(e)}))}))]}))}))}},,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{player:(0,r.default)(e.player,t),operation:(0,i.default)(e.operation,t)}},t.operationReducer=t.playerReducer=void 0;var r=a(n(990)),i=a(n(991));var o=r.default;t.playerReducer=o;var l=i.default;t.operationReducer=l},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(25)),i=a(n(26)),o=new(function(){function e(){(0,r.default)(this,e)}return(0,i.default)(e,[{key:"request",value:function(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},{key:"exit",value:function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}},{key:"addEventListener",value:function(e){document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e)}},{key:"removeEventListener",value:function(e){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}},{key:"isFullscreen",get:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}},{key:"enabled",get:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}}]),e}());t.default=o},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m={actions:d.default.object,player:d.default.object,position:d.default.string,className:d.default.string},h=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){}},{key:"handleClick",value:function(){this.props.actions.play()}},{key:"render",value:function(){var e=this.props,t=e.player,n=e.position;return p.default.createElement("button",{className:(0,f.default)("video-react-button","video-react-big-play-button","video-react-big-play-button-".concat(n),this.props.className,{"big-play-button-hide":t.hasStarted||!t.currentSrc}),type:"button","aria-live":"polite",tabIndex:"0",onClick:this.handleClick},p.default.createElement("span",{className:"video-react-control-text"},"Play Video"))}}]),t}(p.Component);t.default=h,h.propTypes=m,h.defaultProps={position:"left"},h.displayName="BigPlayButton"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l={player:r.default.object,className:r.default.string};function s(e){var t=e.player,n=e.className;return t.error?null:i.default.createElement("div",{className:(0,o.default)("video-react-loading-spinner",n)})}s.propTypes=l,s.displayName="LoadingSpinner"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l={poster:r.default.string,player:r.default.object,actions:r.default.object,className:r.default.string};function s(e){var t=e.poster,n=e.player,a=e.actions,r=e.className;return!t||n.hasStarted?null:i.default.createElement("div",{className:(0,o.default)("video-react-poster",r),style:{backgroundImage:'url("'.concat(t,'")')},onClick:function(){n.paused&&a.play()}})}s.propTypes=l,s.displayName="PosterImage";var u=s;t.default=u},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(96)),o=r(n(25)),l=r(n(26)),s=r(n(32)),u=r(n(34)),c=r(n(33)),d=r(n(35)),p=r(n(3)),f=a(n(0)),m=r(n(16)),h=n(80),v={actions:p.default.object,player:p.default.object,children:p.default.any,startTime:p.default.number,loop:p.default.bool,muted:p.default.bool,autoPlay:p.default.bool,playsInline:p.default.bool,src:p.default.string,poster:p.default.string,className:p.default.string,preload:p.default.oneOf(["auto","metadata","none"]),crossOrigin:p.default.string,onLoadStart:p.default.func,onWaiting:p.default.func,onCanPlay:p.default.func,onCanPlayThrough:p.default.func,onPlaying:p.default.func,onEnded:p.default.func,onSeeking:p.default.func,onSeeked:p.default.func,onPlay:p.default.func,onPause:p.default.func,onProgress:p.default.func,onDurationChange:p.default.func,onError:p.default.func,onSuspend:p.default.func,onAbort:p.default.func,onEmptied:p.default.func,onStalled:p.default.func,onLoadedMetadata:p.default.func,onLoadedData:p.default.func,onTimeUpdate:p.default.func,onRateChange:p.default.func,onVolumeChange:p.default.func,onResize:p.default.func},b=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,s.default)(this,(0,u.default)(t).call(this,e))).video=null,n.play=n.play.bind((0,c.default)(n)),n.pause=n.pause.bind((0,c.default)(n)),n.seek=n.seek.bind((0,c.default)(n)),n.forward=n.forward.bind((0,c.default)(n)),n.replay=n.replay.bind((0,c.default)(n)),n.toggleFullscreen=n.toggleFullscreen.bind((0,c.default)(n)),n.getProperties=n.getProperties.bind((0,c.default)(n)),n.renderChildren=n.renderChildren.bind((0,c.default)(n)),n.handleLoadStart=n.handleLoadStart.bind((0,c.default)(n)),n.handleCanPlay=n.handleCanPlay.bind((0,c.default)(n)),n.handleCanPlayThrough=n.handleCanPlayThrough.bind((0,c.default)(n)),n.handlePlay=n.handlePlay.bind((0,c.default)(n)),n.handlePlaying=n.handlePlaying.bind((0,c.default)(n)),n.handlePause=n.handlePause.bind((0,c.default)(n)),n.handleEnded=n.handleEnded.bind((0,c.default)(n)),n.handleWaiting=n.handleWaiting.bind((0,c.default)(n)),n.handleSeeking=n.handleSeeking.bind((0,c.default)(n)),n.handleSeeked=n.handleSeeked.bind((0,c.default)(n)),n.handleFullscreenChange=n.handleFullscreenChange.bind((0,c.default)(n)),n.handleError=n.handleError.bind((0,c.default)(n)),n.handleSuspend=n.handleSuspend.bind((0,c.default)(n)),n.handleAbort=n.handleAbort.bind((0,c.default)(n)),n.handleEmptied=n.handleEmptied.bind((0,c.default)(n)),n.handleStalled=n.handleStalled.bind((0,c.default)(n)),n.handleLoadedMetaData=n.handleLoadedMetaData.bind((0,c.default)(n)),n.handleLoadedData=n.handleLoadedData.bind((0,c.default)(n)),n.handleTimeUpdate=n.handleTimeUpdate.bind((0,c.default)(n)),n.handleRateChange=n.handleRateChange.bind((0,c.default)(n)),n.handleVolumeChange=n.handleVolumeChange.bind((0,c.default)(n)),n.handleDurationChange=n.handleDurationChange.bind((0,c.default)(n)),n.handleProgress=(0,h.throttle)(n.handleProgress.bind((0,c.default)(n)),250),n.handleKeypress=n.handleKeypress.bind((0,c.default)(n)),n.handleTextTrackChange=n.handleTextTrackChange.bind((0,c.default)(n)),n}return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.forceUpdate(),this.video&&this.video.textTracks&&(this.video.textTracks.onaddtrack=this.handleTextTrackChange,this.video.textTracks.onremovetrack=this.handleTextTrackChange)}},{key:"getProperties",value:function(){var e=this;return this.video?h.mediaProperties.reduce((function(t,n){return t[n]=e.video[n],t}),{}):null}},{key:"handleTextTrackChange",value:function(){var e=this.props,t=e.actions,n=e.player;if(this.video&&this.video.textTracks){var a=Array.from(this.video.textTracks).find((function(e){return"showing"===e.mode}));a!==n.activeTextTrack&&t.activateTextTrack(a)}}},{key:"play",value:function(){var e=this.video.play();void 0!==e&&e.catch((function(){})).then((function(){}))}},{key:"pause",value:function(){var e=this.video.pause();void 0!==e&&e.catch((function(){})).then((function(){}))}},{key:"load",value:function(){this.video.load()}},{key:"addTextTrack",value:function(){var e;(e=this.video).addTextTrack.apply(e,arguments)}},{key:"canPlayType",value:function(){var e;(e=this.video).canPlayType.apply(e,arguments)}},{key:"togglePlay",value:function(){this.video.paused?this.play():this.pause()}},{key:"seek",value:function(e){try{this.video.currentTime=e}catch(e){}}},{key:"forward",value:function(e){this.seek(this.video.currentTime+e)}},{key:"replay",value:function(e){this.forward(-e)}},{key:"toggleFullscreen",value:function(){var e=this.props,t=e.player;e.actions.toggleFullscreen(t)}},{key:"handleLoadStart",value:function(){var e=this.props,t=e.actions,n=e.onLoadStart;t.handleLoadStart(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleCanPlay",value:function(){var e=this.props,t=e.actions,n=e.onCanPlay;t.handleCanPlay(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleCanPlayThrough",value:function(){var e=this.props,t=e.actions,n=e.onCanPlayThrough;t.handleCanPlayThrough(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePlaying",value:function(){var e=this.props,t=e.actions,n=e.onPlaying;t.handlePlaying(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePlay",value:function(){var e=this.props,t=e.actions,n=e.onPlay;t.handlePlay(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePause",value:function(){var e=this.props,t=e.actions,n=e.onPause;t.handlePause(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleDurationChange",value:function(){var e=this.props,t=e.actions,n=e.onDurationChange;t.handleDurationChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleProgress",value:function(){var e=this.props,t=e.actions,n=e.onProgress;this.video&&t.handleProgressChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleEnded",value:function(){var e=this.props,t=e.loop,n=e.player,a=e.actions,r=e.onEnded;t?(this.seek(0),this.play()):n.paused||this.pause(),a.handleEnd(this.getProperties()),r&&r.apply(void 0,arguments)}},{key:"handleWaiting",value:function(){var e=this.props,t=e.actions,n=e.onWaiting;t.handleWaiting(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleSeeking",value:function(){var e=this.props,t=e.actions,n=e.onSeeking;t.handleSeeking(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleSeeked",value:function(){var e=this.props,t=e.actions,n=e.onSeeked;t.handleSeeked(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleFullscreenChange",value:function(){}},{key:"handleSuspend",value:function(){var e=this.props,t=e.actions,n=e.onSuspend;t.handleSuspend(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleAbort",value:function(){var e=this.props,t=e.actions,n=e.onAbort;t.handleAbort(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleEmptied",value:function(){var e=this.props,t=e.actions,n=e.onEmptied;t.handleEmptied(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleStalled",value:function(){var e=this.props,t=e.actions,n=e.onStalled;t.handleStalled(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleLoadedMetaData",value:function(){var e=this.props,t=e.actions,n=e.onLoadedMetadata,a=e.startTime;a&&a>0&&(this.video.currentTime=a),t.handleLoadedMetaData(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleLoadedData",value:function(){var e=this.props,t=e.actions,n=e.onLoadedData;t.handleLoadedData(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleTimeUpdate",value:function(){var e=this.props,t=e.actions,n=e.onTimeUpdate;t.handleTimeUpdate(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleRateChange",value:function(){var e=this.props,t=e.actions,n=e.onRateChange;t.handleRateChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleVolumeChange",value:function(){var e=this.props,t=e.actions,n=e.onVolumeChange;t.handleVolumeChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleError",value:function(){var e=this.props,t=e.actions,n=e.onError;t.handleError(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleResize",value:function(){var e=this.props,t=e.actions,n=e.onResize;t.handleResize(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleKeypress",value:function(){}},{key:"renderChildren",value:function(){var e=this,t=(0,i.default)({},this.props,{video:this.video});return this.video?f.default.Children.toArray(this.props.children).filter(h.isVideoChild).map((function(n){var a;if("string"==typeof n.type){if("source"===n.type){var r=(a=(0,i.default)({},n.props)).onError;a.onError=function(){r&&r.apply(void 0,arguments),e.handleError.apply(e,arguments)}}}else a=t;return f.default.cloneElement(n,a)})):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.loop,a=t.poster,r=t.preload,i=t.src,o=t.autoPlay,l=t.playsInline,s=t.muted,u=t.crossOrigin,c=t.videoId;return f.default.createElement("video",{className:(0,m.default)("video-react-video",this.props.className),id:c,crossOrigin:u,ref:function(t){e.video=t},muted:s,preload:r,loop:n,playsInline:l,autoPlay:o,poster:a,src:i,onLoadStart:this.handleLoadStart,onWaiting:this.handleWaiting,onCanPlay:this.handleCanPlay,onCanPlayThrough:this.handleCanPlayThrough,onPlaying:this.handlePlaying,onEnded:this.handleEnded,onSeeking:this.handleSeeking,onSeeked:this.handleSeeked,onPlay:this.handlePlay,onPause:this.handlePause,onProgress:this.handleProgress,onDurationChange:this.handleDurationChange,onError:this.handleError,onSuspend:this.handleSuspend,onAbort:this.handleAbort,onEmptied:this.handleEmptied,onStalled:this.handleStalled,onLoadedMetadata:this.handleLoadedMetaData,onLoadedData:this.handleLoadedData,onTimeUpdate:this.handleTimeUpdate,onRateChange:this.handleRateChange,onVolumeChange:this.handleVolumeChange,tabIndex:"-1"},this.renderChildren())}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){e>1&&(e=1),e<0&&(e=0),this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),t}(f.Component);t.default=b,b.propTypes=v,b.displayName="Video"},function(e,t,n){var a=n(992),r=n(993),i=n(994),o=n(995);e.exports=function(e){return a(e)||r(e)||i(e)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m={manager:d.default.object,className:d.default.string},h=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).timer=null,e.manager.subscribeToOperationStateChange(a.handleStateChange.bind((0,u.default)(a))),a.state={hidden:!0,operation:{}},a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleStateChange",value:function(e,t){var n=this;e.count!==t.count&&"shortcut"===e.operation.source&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.setState({hidden:!1,count:e.count,operation:e.operation}),this.timer=setTimeout((function(){n.setState({hidden:!0}),n.timer=null}),500))}},{key:"render",value:function(){if("shortcut"!==this.state.operation.source)return null;var e=this.state.hidden?{display:"none"}:null;return p.default.createElement("div",{className:(0,f.default)({"video-react-bezel":!0,"video-react-bezel-animation":this.state.count%2==0,"video-react-bezel-animation-alt":this.state.count%2==1},this.props.className),style:e,role:"status","aria-label":this.state.operation.action},p.default.createElement("div",{className:(0,f.default)("video-react-bezel-icon","video-react-bezel-icon-".concat(this.state.operation.action))}))}}]),t}(p.Component);t.default=h,h.propTypes=m,h.displayName="Bezel"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(282)),i=a(n(438)),o=a(n(25)),l=a(n(26)),s=a(n(32)),u=a(n(34)),c=a(n(33)),d=a(n(35)),p=n(0),f=a(n(3)),m=n(200),h={clickable:f.default.bool,dblclickable:f.default.bool,manager:f.default.object,actions:f.default.object,player:f.default.object,shortcuts:f.default.array},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).defaultShortcuts=[{keyCode:32,handle:a.togglePlay},{keyCode:75,handle:a.togglePlay},{keyCode:70,handle:a.toggleFullscreen},{keyCode:37,handle:function(e,t){e.hasStarted&&t.replay(5,{action:"replay-5",source:"shortcut"})}},{keyCode:74,handle:function(e,t){e.hasStarted&&t.replay(10,{action:"replay-10",source:"shortcut"})}},{keyCode:39,handle:function(e,t){e.hasStarted&&t.forward(5,{action:"forward-5",source:"shortcut"})}},{keyCode:76,handle:function(e,t){e.hasStarted&&t.forward(10,{action:"forward-10",source:"shortcut"})}},{keyCode:36,handle:function(e,t){e.hasStarted&&t.seek(0)}},{keyCode:35,handle:function(e,t){e.hasStarted&&t.seek(e.duration)}},{keyCode:38,handle:function(e,t){var n=e.volume+.05;n>1&&(n=1),t.changeVolume(n,{action:"volume-up",source:"shortcut"})}},{keyCode:40,handle:function(e,t){var n=e.volume-.05;n<0&&(n=0);var a=n>0?"volume-down":"volume-off";t.changeVolume(n,{action:a,source:"shortcut"})}},{keyCode:190,shift:!0,handle:function(e,t){var n=e.playbackRate;n>=1.5?n=2:n>=1.25?n=1.5:n>=1?n=1.25:n>=.5?n=1:n>=.25?n=.5:n>=0&&(n=.25),t.changeRate(n,{action:"fast-forward",source:"shortcut"})}},{keyCode:188,shift:!0,handle:function(e,t){var n=e.playbackRate;n<=.5?n=.25:n<=1?n=.5:n<=1.25?n=1:n<=1.5?n=1.25:n<=2&&(n=1.5),t.changeRate(n,{action:"fast-rewind",source:"shortcut"})}}],a.shortcuts=(0,i.default)(a.defaultShortcuts),a.mergeShortcuts=a.mergeShortcuts.bind((0,c.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,c.default)(a)),a.handleClick=a.handleClick.bind((0,c.default)(a)),a.handleDoubleClick=a.handleDoubleClick.bind((0,c.default)(a)),a}return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.mergeShortcuts(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),document.addEventListener("dblclick",this.handleDoubleClick)}},{key:"componentDidUpdate",value:function(e){e.shortcuts!==this.props.shortcuts&&this.mergeShortcuts()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),document.removeEventListener("dblclick",this.handleDoubleClick)}},{key:"mergeShortcuts",value:function(){var e=function(e){var t=e.keyCode,n=void 0===t?0:t,a=e.ctrl,r=void 0!==a&&a,i=e.shift,o=void 0!==i&&i,l=e.alt,s=void 0!==l&&l;return"".concat(n,":").concat(r,":").concat(o,":").concat(s)},t=this.defaultShortcuts.reduce((function(t,n){return Object.assign(t,(0,r.default)({},e(n),n))}),{}),n=(this.props.shortcuts||[]).reduce((function(t,n){var a=n.keyCode,i=n.handle;return a&&"function"==typeof i?Object.assign(t,(0,r.default)({},e(n),n)):t}),t),a=function(e){var t=0;return["ctrl","shift","alt"].forEach((function(n){e[n]&&t++})),t};this.shortcuts=Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){return a(t)-a(e)}))}},{key:"togglePlay",value:function(e,t){e.paused?t.play({action:"play",source:"shortcut"}):t.pause({action:"pause",source:"shortcut"})}},{key:"toggleFullscreen",value:function(e,t){t.toggleFullscreen(e)}},{key:"handleKeyPress",value:function(e){var t=this.props,n=t.player,a=t.actions;if(n.isActive&&(!document.activeElement||!((0,m.hasClass)(document.activeElement,"video-react-control")||(0,m.hasClass)(document.activeElement,"video-react-menu-button-active")||(0,m.hasClass)(document.activeElement,"video-react-big-play-button")))){var r=e.keyCode||e.which,i=e.ctrlKey||e.metaKey,o=e.shiftKey,l=e.altKey,s=this.shortcuts.filter((function(e){return!(!e.keyCode||e.keyCode-r!=0)&&!(void 0!==e.ctrl&&e.ctrl!==i||void 0!==e.shift&&e.shift!==o||void 0!==e.alt&&e.alt!==l)}))[0];s&&(s.handle(n,a),e.preventDefault())}}},{key:"canBeClicked",value:function(e,t){return!(!e.isActive||"VIDEO"!==t.target.nodeName||4!==e.readyState)}},{key:"handleClick",value:function(e){var t=this.props,n=t.player,a=t.actions,r=t.clickable;this.canBeClicked(n,e)&&r&&this.togglePlay(n,a)}},{key:"handleDoubleClick",value:function(e){var t=this.props,n=t.player,a=t.actions,r=t.dblclickable;this.canBeClicked(n,e)&&r&&this.toggleFullscreen(n,a)}},{key:"render",value:function(){return null}}]),t}(p.Component);t.default=v,v.propTypes=h,v.defaultProps={clickable:!0,dblclickable:!0},v.displayName="Shortcut"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(283)),o=r(n(25)),l=r(n(26)),s=r(n(32)),u=r(n(34)),c=r(n(33)),d=r(n(35)),p=r(n(3)),f=a(n(0)),m=r(n(16)),h=r(n(443)),v=r(n(448)),b=r(n(449)),g=r(n(451)),y=r(n(452)),_=r(n(453)),w=r(n(454)),S=r(n(455)),x=r(n(456)),E=r(n(457)),O=r(n(286)),C=n(80),k={children:p.default.any,autoHide:p.default.bool,autoHideTime:p.default.number,disableDefaultControls:p.default.bool,disableCompletely:p.default.bool,className:p.default.string},T=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,s.default)(this,(0,u.default)(t).call(this,e))).getDefaultChildren=n.getDefaultChildren.bind((0,c.default)(n)),n.getFullChildren=n.getFullChildren.bind((0,c.default)(n)),n}return(0,d.default)(t,e),(0,l.default)(t,[{key:"getDefaultChildren",value:function(){return[f.default.createElement(v.default,{key:"play-toggle",order:1}),f.default.createElement(E.default,{key:"volume-menu-button",order:4}),f.default.createElement(w.default,{key:"current-time-display",order:5.1}),f.default.createElement(x.default,{key:"time-divider",order:5.2}),f.default.createElement(S.default,{key:"duration-display",order:5.3}),f.default.createElement(h.default,{key:"progress-control",order:6}),f.default.createElement(y.default,{key:"fullscreen-toggle",order:8})]}},{key:"getFullChildren",value:function(){return[f.default.createElement(v.default,{key:"play-toggle",order:1}),f.default.createElement(g.default,{key:"replay-control",order:2}),f.default.createElement(b.default,{key:"forward-control",order:3}),f.default.createElement(E.default,{key:"volume-menu-button",order:4}),f.default.createElement(w.default,{key:"current-time-display",order:5}),f.default.createElement(x.default,{key:"time-divider",order:6}),f.default.createElement(S.default,{key:"duration-display",order:7}),f.default.createElement(h.default,{key:"progress-control",order:8}),f.default.createElement(_.default,{key:"remaining-time-display",order:9}),f.default.createElement(O.default,{rates:[1,1.25,1.5,2],key:"playback-rate",order:10}),f.default.createElement(y.default,{key:"fullscreen-toggle",order:11})]}},{key:"getChildren",value:function(){var e=f.default.Children.toArray(this.props.children),t=this.props.disableDefaultControls?[]:this.getDefaultChildren(),n=this.props,a=(n.className,(0,i.default)(n,["className"]));return(0,C.mergeAndSortChildren)(t,e,a)}},{key:"render",value:function(){var e=this.props,t=e.autoHide,n=e.className,a=e.disableCompletely,r=this.getChildren();return a?null:f.default.createElement("div",{className:(0,m.default)("video-react-control-bar",{"video-react-control-bar-auto-hide":t},n)},r)}}]),t}(f.Component);t.default=T,T.propTypes=k,T.defaultProps={autoHide:!0,disableCompletely:!1},T.displayName="ControlBar"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(163)),o=r(n(25)),l=r(n(26)),s=r(n(32)),u=r(n(34)),c=r(n(33)),d=r(n(35)),p=r(n(3)),f=a(n(0)),m=r(n(16)),h=a(n(200)),v=r(n(444)),b={player:p.default.object,className:p.default.string},g=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).state={mouseTime:{time:null,position:0}},a.handleMouseMoveThrottle=a.handleMouseMove.bind((0,c.default)(a)),a}return(0,d.default)(t,e),(0,l.default)(t,[{key:"handleMouseMove",value:function(e){if(e.pageX){var t=this.props.player.duration,n=this.seekBar,a=h.getPointerPosition(n,e).x*t,r=e.pageX-h.findElPosition(n).left;this.setState({mouseTime:{time:a,position:r}})}}},{key:"render",value:function(){var e=this,t=this.props.className;return f.default.createElement("div",{onMouseMove:this.handleMouseMoveThrottle,className:(0,m.default)("video-react-progress-control video-react-control",t)},f.default.createElement(v.default,(0,i.default)({mouseTime:this.state.mouseTime,ref:function(t){e.seekBar=t}},this.props)))}}]),t}(f.Component);t.default=g,g.propTypes=b,g.displayName="ProgressControl"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m=r(n(285)),h=r(n(445)),v=r(n(446)),b=r(n(447)),g=n(80),y={player:d.default.object,mouseTime:d.default.object,actions:d.default.object,className:d.default.string},_=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).getPercent=a.getPercent.bind((0,u.default)(a)),a.getNewTime=a.getNewTime.bind((0,u.default)(a)),a.stepForward=a.stepForward.bind((0,u.default)(a)),a.stepBack=a.stepBack.bind((0,u.default)(a)),a.handleMouseDown=a.handleMouseDown.bind((0,u.default)(a)),a.handleMouseMove=a.handleMouseMove.bind((0,u.default)(a)),a.handleMouseUp=a.handleMouseUp.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"getPercent",value:function(){var e=this.props.player,t=e.currentTime,n=(e.seekingTime||t)/e.duration;return n>=1?1:n}},{key:"getNewTime",value:function(e){var t=this.props.player.duration,n=this.slider.calculateDistance(e)*t;return n===t?n-.1:n}},{key:"handleMouseDown",value:function(){}},{key:"handleMouseUp",value:function(e){var t=this.props.actions,n=this.getNewTime(e);t.seek(n),t.handleEndSeeking(n)}},{key:"handleMouseMove",value:function(e){var t=this.props.actions,n=this.getNewTime(e);t.handleSeekingTime(n)}},{key:"stepForward",value:function(){this.props.actions.forward(5)}},{key:"stepBack",value:function(){this.props.actions.replay(5)}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=n.currentTime,r=n.seekingTime,i=n.duration,o=n.buffered,l=t.mouseTime,s=r||a;return p.default.createElement(m.default,{ref:function(t){e.slider=t},label:"video progress bar",className:(0,f.default)("video-react-progress-holder",this.props.className),valuenow:(100*this.getPercent()).toFixed(2),valuetext:(0,g.formatTime)(s,i),onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,getPercent:this.getPercent,stepForward:this.stepForward,stepBack:this.stepBack},p.default.createElement(v.default,{buffered:o,currentTime:s,duration:i}),p.default.createElement(b.default,{duration:i,mouseTime:l}),p.default.createElement(h.default,{currentTime:s,duration:i}))}}]),t}(p.Component);t.default=_,_.propTypes=y,_.displayName="SeekBar"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l=n(80),s={currentTime:r.default.number,duration:r.default.number,percentage:r.default.string,className:r.default.string};function u(e){var t=e.currentTime,n=e.duration,a=e.percentage,r=e.className;return i.default.createElement("div",{"data-current-time":(0,l.formatTime)(t,n),className:(0,o.default)("video-react-play-progress video-react-slider-bar",r),style:{width:a}},i.default.createElement("span",{className:"video-react-control-text"},"Progress: ".concat(a)))}u.propTypes=s,u.displayName="PlayProgressBar"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l={duration:r.default.number,buffered:r.default.object,className:r.default.string};function s(e){var t=e.buffered,n=e.duration,a=e.className;if(!t||!t.length)return null;var r=t.end(t.length-1),l={};function s(e,t){var n=e/t||0;return"".concat(100*(n>=1?1:n),"%")}r>n&&(r=n),l.width=s(r,n);for(var u=[],c=0;c<t.length;c++){var d=t.start(c),p=t.end(c),f=i.default.createElement("div",{style:{left:s(d,r),width:s(p-d,r)},key:"part-".concat(c)});u.push(f)}return 0===u.length&&(u=null),i.default.createElement("div",{style:l,className:(0,o.default)("video-react-load-progress",a)},i.default.createElement("span",{className:"video-react-control-text"},"Loaded: 0%"),u)}s.propTypes=l,s.displayName="LoadProgressBar"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l=n(80);function s(e){var t=e.duration,n=e.mouseTime,a=e.className,r=e.text;if(!n.time)return null;var s=r||(0,l.formatTime)(n.time,t);return i.default.createElement("div",{className:(0,o.default)("video-react-mouse-display",a),style:{left:"".concat(n.position,"px")},"data-current-time":s})}s.propTypes={duration:r.default.number,mouseTime:r.default.object,className:r.default.string},s.displayName="MouseTimeDisplay";var u=s;t.default=u},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m={actions:d.default.object,player:d.default.object,className:d.default.string},h=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.actions;e.player.paused?t.play():t.pause()}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className,r=n.paused?"Play":"Pause";return p.default.createElement("button",{ref:function(t){e.button=t},className:(0,f.default)(a,{"video-react-play-control":!0,"video-react-control":!0,"video-react-button":!0,"video-react-paused":n.paused,"video-react-playing":!n.paused}),type:"button",tabIndex:"0",onClick:this.handleClick},p.default.createElement("span",{className:"video-react-control-text"},r))}}]),t}(p.Component);t.default=h,h.propTypes=m,h.displayName="PlayToggle"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,a(n(450)).default)("forward");r.displayName="ForwardControl";var i=r;t.default=i},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f={actions:d.default.object,className:d.default.string,seconds:d.default.oneOf([5,10,30])},m={seconds:10};t.default=function(e){var t=function(t){function n(e,t){var a;return(0,i.default)(this,n),(a=(0,l.default)(this,(0,s.default)(n).call(this,e,t))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(n,t),(0,o.default)(n,[{key:"handleClick",value:function(){var t=this.props,n=t.actions,a=t.seconds;"forward"===e?n.forward(a):n.replay(a)}},{key:"render",value:function(){var t=this,n=this.props,a=n.seconds,r=n.className,i=["video-react-control","video-react-button","video-react-icon"];return i.push("video-react-icon-".concat(e,"-").concat(a),"video-react-".concat(e,"-control")),r&&i.push(r),p.default.createElement("button",{ref:function(e){t.button=e},className:i.join(" "),type:"button",onClick:this.handleClick},p.default.createElement("span",{className:"video-react-control-text"},"".concat(e," ").concat(a," seconds")))}}]),n}(p.Component);return t.propTypes=f,t.defaultProps=m,t}},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,a(n(450)).default)("replay");r.displayName="ReplayControl";var i=r;t.default=i},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m={actions:d.default.object,player:d.default.object,className:d.default.string},h=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.player;e.actions.toggleFullscreen(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className;return p.default.createElement("button",{className:(0,f.default)(a,{"video-react-icon-fullscreen-exit":n.isFullscreen,"video-react-icon-fullscreen":!n.isFullscreen},"video-react-fullscreen-control video-react-control video-react-button video-react-icon"),ref:function(t){e.button=t},type:"button",tabIndex:"0",onClick:this.handleClick},p.default.createElement("span",{className:"video-react-control-text"},"Non-Fullscreen"))}}]),t}(p.Component);t.default=h,h.propTypes=m,h.displayName="FullscreenToggle"},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l=n(80),s={player:r.default.object,className:r.default.string};function u(e){var t=e.player,n=t.currentTime,a=t.duration,r=e.className,s=a-n,u=(0,l.formatTime)(s);return i.default.createElement("div",{className:(0,o.default)("video-react-remaining-time video-react-time-control video-react-control",r)},i.default.createElement("div",{className:"video-react-remaining-time-display","aria-live":"off"},i.default.createElement("span",{className:"video-react-control-text"},"Remaining Time "),"-".concat(u)))}u.propTypes=s,u.displayName="RemainingTimeDisplay";var c=u;t.default=c},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l=n(80),s={player:r.default.object,className:r.default.string};function u(e){var t=e.player,n=t.currentTime,a=t.duration,r=e.className,s=(0,l.formatTime)(n,a);return i.default.createElement("div",{className:(0,o.default)("video-react-current-time video-react-time-control video-react-control",r)},i.default.createElement("div",{className:"video-react-current-time-display","aria-live":"off"},i.default.createElement("span",{className:"video-react-control-text"},"Current Time "),s))}u.propTypes=s,u.displayName="CurrentTimeDisplay";var c=u;t.default=c},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l=n(80),s={player:r.default.object,className:r.default.string};function u(e){var t=e.player.duration,n=e.className,a=(0,l.formatTime)(t);return i.default.createElement("div",{className:(0,o.default)(n,"video-react-duration video-react-time-control video-react-control")},i.default.createElement("div",{className:"video-react-duration-display","aria-live":"off"},i.default.createElement("span",{className:"video-react-control-text"},"Duration Time "),a))}u.propTypes=s,u.displayName="DurationDisplay";var c=u;t.default=c},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l={separator:r.default.string,className:r.default.string};function s(e){var t=e.separator,n=e.className,a=t||"/";return i.default.createElement("div",{className:(0,o.default)("video-react-time-control video-react-time-divider",n),dir:"ltr"},i.default.createElement("div",null,i.default.createElement("span",null,a)))}s.propTypes=l,s.displayName="TimeDivider"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(163)),o=r(n(25)),l=r(n(26)),s=r(n(32)),u=r(n(34)),c=r(n(33)),d=r(n(35)),p=r(n(3)),f=a(n(0)),m=r(n(16)),h=r(n(996)),v=r(n(998)),b={player:p.default.object,actions:p.default.object,vertical:p.default.bool,className:p.default.string,alwaysShowVolume:p.default.bool},g=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).state={active:!1},a.handleClick=a.handleClick.bind((0,c.default)(a)),a.handleFocus=a.handleFocus.bind((0,c.default)(a)),a.handleBlur=a.handleBlur.bind((0,c.default)(a)),a}return(0,d.default)(t,e),(0,l.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.player;e.actions.mute(!t.muted)}},{key:"handleFocus",value:function(){this.setState({active:!0})}},{key:"handleBlur",value:function(){this.setState({active:!1})}},{key:"render",value:function(){var e=this.props,t=e.vertical,n=e.player,a=e.className,r=!t,o=this.volumeLevel;return f.default.createElement(h.default,{className:(0,m.default)(a,{"video-react-volume-menu-button-vertical":t,"video-react-volume-menu-button-horizontal":!t,"video-react-vol-muted":n.muted,"video-react-vol-0":0===o&&!n.muted,"video-react-vol-1":1===o,"video-react-vol-2":2===o,"video-react-vol-3":3===o,"video-react-slider-active":this.props.alwaysShowVolume||this.state.active,"video-react-lock-showing":this.props.alwaysShowVolume||this.state.active},"video-react-volume-menu-button"),onClick:this.handleClick,inline:r},f.default.createElement(v.default,(0,i.default)({onFocus:this.handleFocus,onBlur:this.handleBlur},this.props)))}},{key:"volumeLevel",get:function(){var e=this.props.player,t=e.volume,n=e.muted,a=3;return 0===t||n?a=0:t<.33?a=1:t<.67&&(a=2),a}}]),t}(f.Component);g.propTypes=b,g.defaultProps={vertical:!1},g.displayName="VolumeMenuButton";var y=g;t.default=y},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(163)),o=r(n(96)),l=r(n(25)),s=r(n(26)),u=r(n(32)),c=r(n(34)),d=r(n(33)),p=r(n(35)),f=r(n(3)),m=a(n(0)),h=r(n(16)),v={tagName:f.default.string,onClick:f.default.func.isRequired,onFocus:f.default.func,onBlur:f.default.func,className:f.default.string},b=function(e){function t(e,n){var a;return(0,l.default)(this,t),(a=(0,u.default)(this,(0,c.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a.handleFocus=a.handleFocus.bind((0,d.default)(a)),a.handleBlur=a.handleBlur.bind((0,d.default)(a)),a.handleKeypress=a.handleKeypress.bind((0,d.default)(a)),a}return(0,p.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(e){this.handleBlur(e)}},{key:"handleKeypress",value:function(e){32!==e.which&&13!==e.which||(e.preventDefault(),this.handleClick(e))}},{key:"handleClick",value:function(e){(0,this.props.onClick)(e)}},{key:"handleFocus",value:function(e){document.addEventListener("keydown",this.handleKeypress),this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){document.removeEventListener("keydown",this.handleKeypress),this.props.onBlur&&this.props.onBlur(e)}},{key:"render",value:function(){var e=this.props.tagName,t=(0,o.default)({},this.props);return delete t.tagName,delete t.className,m.default.createElement(e,(0,i.default)({className:(0,h.default)(this.props.className),role:"button",tabIndex:"0",onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},t))}}]),t}(m.Component);t.default=b,b.propTypes=v,b.defaultProps={tagName:"div"},b.displayName="ClickableComponent"},function(e,t,n){"use strict";function a(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,a=n+1,r=e.length;a<r;n+=1,a+=1)e[n]=e[a];e.pop()}n.r(t),t.default=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],o=t&&t.split("/")||[],l=e&&a(e),s=t&&a(t),u=l||s;if(e&&a(e)?o=i:i.length&&(o.pop(),o=o.concat(i)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,p=o.length;p>=0;p--){var f=o[p];"."===f?r(o,p):".."===f?(r(o,p),d++):d&&(r(o,p),d--)}if(!u)for(;d--;d)o.unshift("..");!u||""===o[0]||o[0]&&a(o[0])||o.unshift("");var m=o.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m}},function(e,t,n){"use strict";function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}n.r(t),t.default=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,a){return e(t,n[a])}));if("object"==typeof t||"object"==typeof n){var r=a(t),i=a(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(a){return e(t[a],n[a])}))}return!1}},function(e,t){e.exports=function(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(r=n?n.call(a,c,d,u):void 0)||void 0===r&&c!==d)return!1}return!0}},function(e,t,n){"use strict";n.r(t),t.default=function(e){function t(e,t,a){var r=t.trim().split(m);t=r;var i=r.length,o=e.length;switch(o){case 0:case 1:var l=0;for(e=0===o?"":e[0]+" ";l<i;++l)t[l]=n(e,t[l],a).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var u=0;u<o;++u)t[s++]=n(e[u]+" ",r[l],a).trim()}return t}function n(e,t,n){var a=t.charCodeAt(0);switch(33>a&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,i){var o=e+";",l=2*t+3*n+4*i;if(944===l){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===N||2===N&&r(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!r(o,1))return o;switch(l){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(O,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(y,"tb");break;case 232:s=o.replace(y,"tb-rl");break;case 220:s=o.replace(y,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,l=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return s=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+s+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+i&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function r(e,t){var n=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?a:a.replace(x,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function o(e,t,n,a,r,i,o,l,u,c){for(var d,p=0,f=t;p<A;++p)switch(d=I[p].call(s,e,f,n,a,r,i,o,l,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?N=1:(N=2,j=e):N=0),l}function s(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<A){var s=o(-1,n,l,l,k,C,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var d=function e(n,l,s,d,p){for(var f,m,h,y,w,S=0,x=0,E=0,O=0,I=0,j=0,D=h=f=0,R=0,F=0,B=0,L=0,$=s.length,V=$-1,z="",U="",H="",W="";R<$;){if(m=s.charCodeAt(R),R===V&&0!==x+O+E+S&&(0!==x&&(m=47===x?10:47),O=E=S=0,$++,V++),0===x+O+E+S){if(R===V&&(0<F&&(z=z.replace(c,"")),0<z.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(R)}m=59}switch(m){case 123:for(f=(z=z.trim()).charCodeAt(0),h=1,L=++R;R<$;){switch(m=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(R+1)){case 42:case 47:e:{for(D=R+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===m&&42===s.charCodeAt(D-1)&&R+2!==D){R=D+1;break e}break;case 10:if(47===m){R=D+1;break e}}R=D}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<V&&s.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=s.substring(L,R),0===f&&(f=(z=z.replace(u,"").trim()).charCodeAt(0)),f){case 64:switch(0<F&&(z=z.replace(c,"")),m=z.charCodeAt(1)){case 100:case 109:case 115:case 45:F=l;break;default:F=P}if(L=(h=e(l,F,h,m,p+1)).length,0<A&&(w=o(3,h,F=t(P,z,B),l,k,C,L,m,p,d),z=F.join(""),void 0!==w&&0===(L=(h=w.trim()).length)&&(m=0,h="")),0<L)switch(m){case 115:z=z.replace(_,i);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(v,"$1 $2"))+"{"+h+"}",h=1===N||2===N&&r("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===d&&(U+=h,h="")}else h="";break;default:h=e(l,t(l,z,B),h,d,p+1)}H+=h,h=B=F=D=f=0,z="",m=s.charCodeAt(++R);break;case 125:case 59:if(1<(L=(z=(0<F?z.replace(c,""):z).trim()).length))switch(0===D&&(f=z.charCodeAt(0),45===f||96<f&&123>f)&&(L=(z=z.replace(" ",":")).length),0<A&&void 0!==(w=o(1,z,l,n,k,C,U.length,d,p,d))&&0===(L=(z=w.trim()).length)&&(z="\0\0"),f=z.charCodeAt(0),m=z.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){W+=z+s.charAt(R);break}default:58!==z.charCodeAt(L-1)&&(U+=a(z,f,m,z.charCodeAt(2)))}B=F=D=f=0,z="",m=s.charCodeAt(++R)}}switch(m){case 13:case 10:47===x?x=0:0===1+f&&107!==d&&0<z.length&&(F=1,z+="\0"),0<A*M&&o(0,z,l,n,k,C,U.length,d,p,d),C=1,k++;break;case 59:case 125:if(0===x+O+E+S){C++;break}default:switch(C++,y=s.charAt(R),m){case 9:case 32:if(0===O+S+x)switch(I){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===O+x+S&&(F=B=1,y="\f"+y);break;case 108:if(0===O+x+S+T&&0<D)switch(R-D){case 2:112===I&&58===s.charCodeAt(R-3)&&(T=I);case 8:111===j&&(T=j)}break;case 58:0===O+x+S&&(D=R);break;case 44:0===x+E+O+S&&(F=1,y+="\r");break;case 34:case 39:0===x&&(O=O===m?0:0===O?m:O);break;case 91:0===O+x+E&&S++;break;case 93:0===O+x+E&&S--;break;case 41:0===O+x+S&&E--;break;case 40:if(0===O+x+S){if(0===f)switch(2*I+3*j){case 533:break;default:f=1}E++}break;case 64:0===x+E+O+S+D+h&&(h=1);break;case 42:case 47:if(!(0<O+S+E))switch(x){case 0:switch(2*m+3*s.charCodeAt(R+1)){case 235:x=47;break;case 220:L=R,x=42}break;case 42:47===m&&42===I&&L+2!==R&&(33===s.charCodeAt(L+2)&&(U+=s.substring(L,R+1)),y="",x=0)}}0===x&&(z+=y)}j=I,I=m,R++}if(0<(L=U.length)){if(F=l,0<A&&(void 0!==(w=o(2,U,F,n,k,C,L,d,p,d))&&0===(U=w).length))return W+U+H;if(U=F.join(",")+"{"+U+"}",0!=N*T){switch(2!==N||r(U,2)||(T=0),T){case 111:U=U.replace(g,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}T=0}}return W+U+H}(P,l,n,0,0);return 0<A&&(void 0!==(s=o(-2,d,l,l,k,C,d.length,0,0,0))&&(d=s)),"",T=0,C=k=1,d}var u=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,g=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,k=1,T=0,N=1,P=[],I=[],A=0,j=null,M=0;return s.use=function e(t){switch(t){case void 0:case null:A=I.length=0;break;default:if("function"==typeof t)I[A++]=t;else if("object"==typeof t)for(var n=0,a=t.length;n<a;++n)e(t[n]);else M=0|!!t}return e},s.set=l,void 0!==e&&l(e),s}},function(e,t,n){"use strict";n.r(t);t.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";n.r(t);var a=n(11);n.d(t,"unstable_batchedUpdates",(function(){return a.unstable_batchedUpdates}))},function(e,t,n){"use strict";n.r(t),n.d(t,"printDebugValue",(function(){return r}));var a=n(6);function r(e){return Object(a.getDependencyTree)(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(468);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(a.default)(e,t)}},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==l){var s=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,a)}}return e}n.r(t),n.d(t,"polyfill",(function(){return o})),a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";n.r(t),n.d(t,"resolveContainerRef",(function(){return i})),n.d(t,"default",(function(){return o}));var a=n(205),r=n(0),i=function(e){var t;return"undefined"==typeof document?null:null==e?Object(a.default)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function o(e,t){var n=Object(r.useState)((function(){return i(e)})),a=n[0],o=n[1];if(!a){var l=i(e);l&&o(l)}return Object(r.useEffect)((function(){t&&a&&t(a)}),[t,a]),Object(r.useEffect)((function(){var t=i(e);t!==a&&o(t)}),[e,a]),a}},function(e,t,n){"use strict";function a(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"optionsSupported",(function(){return r})),n.d(t,"onceSupported",(function(){return i}));var a=n(473),r=!1,i=!1;try{var o={get passive(){return r=!0},get once(){return i=r=!0}};a.default&&(window.addEventListener("test",o,o),window.removeEventListener("test",o,!0))}catch(e){}t.default=function(e,t,n,a){if(a&&"boolean"!=typeof a&&!i){var o=a.once,l=a.capture,s=n;!i&&o&&(s=n.__once||function e(a){this.removeEventListener(t,e,l),n.call(this,a)},n.__once=s),e.addEventListener(t,s,r?a:l)}e.addEventListener(t,n,a)}},function(e,t,n){"use strict";n.r(t),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n,a){var r=a&&"boolean"!=typeof a?a.capture:a;e.removeEventListener(t,n,r),n.__once&&e.removeEventListener(t,n.__once,r)}},function(e,t,n){"use strict";n.r(t);var a=n(0);t.default=function(e){var t=Object(a.useRef)(e);return Object(a.useEffect)((function(){t.current=e}),[e]),t}},function(e,t,n){"use strict";var a=function(){};e.exports=a},function(e,t,n){"use strict";n.r(t);var a=n(205),r=n(478);t.default=function(e){return Object(a.default)(Object(r.default)(e))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(11),r=n.n(a);function i(e){return e&&"setState"in e?r.a.findDOMNode(e):null!=e?e:null}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(480);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(a.default)(e,t)}},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function o(e,t,n,a,r,i,o,l){return i<e&&o>t||i>e&&o<t?0:i<=e&&l<=n||o>=t&&l>=n?i-e-a:o>t&&l<n||i<e&&l>n?o-t+r:0}n.r(t),t.default=function(e,t){var n=window,r=t.scrollMode,l=t.block,s=t.inline,u=t.boundary,c=t.skipOverflowHiddenElements,d="function"==typeof u?u:function(e){return e!==u};if(!a(e))throw new TypeError("Invalid target");for(var p=document.scrollingElement||document.documentElement,f=[],m=e;a(m)&&d(m);){if((m=m.parentElement)===p){f.push(m);break}null!=m&&m===document.body&&i(m)&&!i(document.documentElement)||null!=m&&i(m,c)&&f.push(m)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),_=y.height,w=y.width,S=y.top,x=y.right,E=y.bottom,O=y.left,C="start"===l||"nearest"===l?S:"end"===l?E:S+_/2,k="center"===s?O+w/2:"end"===s?x:O,T=[],N=0;N<f.length;N++){var P=f[N],I=P.getBoundingClientRect(),A=I.height,j=I.width,M=I.top,D=I.right,R=I.bottom,F=I.left;if("if-needed"===r&&S>=0&&O>=0&&E<=v&&x<=h&&S>=M&&E<=R&&O>=F&&x<=D)return T;var B=getComputedStyle(P),L=parseInt(B.borderLeftWidth,10),$=parseInt(B.borderTopWidth,10),V=parseInt(B.borderRightWidth,10),z=parseInt(B.borderBottomWidth,10),U=0,H=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-V:0,q="offsetHeight"in P?P.offsetHeight-P.clientHeight-$-z:0;if(p===P)U="start"===l?C:"end"===l?C-v:"nearest"===l?o(g,g+v,v,$,z,g+C,g+C+_,_):C-v/2,H="start"===s?k:"center"===s?k-h/2:"end"===s?k-h:o(b,b+h,h,L,V,b+k,b+k+w,w),U=Math.max(0,U+g),H=Math.max(0,H+b);else{U="start"===l?C-M-$:"end"===l?C-R+z+q:"nearest"===l?o(M,R,A,$,z+q,C,C+_,_):C-(M+A/2)+q/2,H="start"===s?k-F-L:"center"===s?k-(F+j/2)+W/2:"end"===s?k-D+V+W:o(F,D,j,L,V+W,k,k+w,w);var K=P.scrollLeft,G=P.scrollTop;C+=G-(U=Math.max(0,Math.min(G+U,P.scrollHeight-A+q))),k+=K-(H=Math.max(0,Math.min(K+H,P.scrollWidth-j+W)))}T.push({el:P,top:U,left:H})}return T}},function(e,t){var n={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},a=Object.keys(n).join("|"),r=new RegExp(a,"g"),i=new RegExp(a,""),o=function(e){return e.replace(r,(function(e){return n[e]}))};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(485);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(a.default)(e,t)}},function(e,t,n){"use strict";function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(487);t.default=function(e){var t=Object(a.useRef)(e);return Object(r.default)((function(){t.current=e})),t}},function(e,t,n){"use strict";n.r(t);var a=n(0),r=a.useLayoutEffect;t.default=r},function(e,t,n){"use strict";n.r(t);var a=n(0),r=function(e,t){"function"!=typeof e?e.current=t:e(t)};t.default=function(e,t){var n=Object(a.useRef)();return Object(a.useCallback)((function(a){e.current=a,n.current&&r(n.current,null),n.current=t,t&&r(t,a)}),[t])}},function(e,t,n){"use strict";n.r(t);var a=n(17),r=n(75),i=n(88),o=n(56),l=n(130),s=n(0),u=n(16),c=n.n(u),d=n(170),p=n(494),f=n(64),m=n(495),h=n(49),v=n(497),b=n(209),g=n(501),y=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],_=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},w=function(e){var t=Object(f.default)(e);return t.isInvalidate()?null:t},S=s.forwardRef((function(e,t){var n,u=e.prefixCls,S=void 0===u?"rc-input-number":u,x=e.className,E=e.style,O=e.min,C=e.max,k=e.step,T=void 0===k?1:k,N=e.defaultValue,P=e.value,I=e.disabled,A=e.readOnly,j=e.upHandler,M=e.downHandler,D=e.keyboard,R=e.controls,F=void 0===R||R,B=e.stringMode,L=e.parser,$=e.formatter,V=e.precision,z=e.decimalSeparator,U=e.onChange,H=e.onInput,W=e.onPressEnter,q=e.onStep,K=Object(l.default)(e,y),G="".concat(S,"-input"),Y=s.useRef(null),J=s.useState(!1),X=Object(o.default)(J,2),Q=X[0],Z=X[1],ee=s.useRef(!1),te=s.useRef(!1),ne=s.useState((function(){return Object(f.default)(null!=P?P:N)})),ae=Object(o.default)(ne,2),re=ae[0],ie=ae[1];var oe=s.useCallback((function(e,t){if(!t)return V>=0?V:Math.max(Object(h.getNumberPrecision)(e),Object(h.getNumberPrecision)(T))}),[V,T]),le=s.useCallback((function(e){var t=String(e);if(L)return L(t);var n=t;return z&&(n=n.replace(z,".")),n.replace(/[^\w.-]+/g,"")}),[L,z]),se=s.useRef(""),ue=s.useCallback((function(e,t){if($)return $(e,{userTyping:t,input:String(se.current)});var n="number"==typeof e?Object(h.num2str)(e):e;if(!t){var a=oe(n,t);if(Object(h.validateNumber)(n)&&(z||a>=0)){var r=z||".";n=Object(f.toFixed)(n,r,a)}}return n}),[$,oe,z]),ce=s.useState((function(){var e=null!=N?N:P;return re.isInvalidate()&&["string","number"].includes(Object(i.default)(e))?Number.isNaN(e)?"":e:ue(re.toString(),!1)})),de=Object(o.default)(ce,2),pe=de[0],fe=de[1];function me(e,t){fe(ue(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}se.current=pe;var he=s.useMemo((function(){return w(C)}),[C]),ve=s.useMemo((function(){return w(O)}),[O]),be=s.useMemo((function(){return!(!he||!re||re.isInvalidate())&&he.lessEquals(re)}),[he,re]),ge=s.useMemo((function(){return!(!ve||!re||re.isInvalidate())&&re.lessEquals(ve)}),[ve,re]),ye=Object(v.default)(Y.current,Q),_e=Object(o.default)(ye,2),we=_e[0],Se=_e[1],xe=function(e){return he&&!e.lessEquals(he)?he:ve&&!ve.lessEquals(e)?ve:null},Ee=function(e){return!xe(e)},Oe=function(e,t){var n,a=e,r=Ee(a)||a.isEmpty();if(a.isEmpty()||t||(a=xe(a)||a,r=!0),!A&&!I&&r){var i=a.toString(),o=oe(i,t);return o>=0&&(a=Object(f.default)(Object(f.toFixed)(i,".",o))),a.equals(re)||(n=a,void 0===P&&ie(n),null==U||U(a.isEmpty()?null:_(B,a)),void 0===P&&me(a,t)),a}return re},Ce=Object(g.default)(),ke=function e(t){if(we(),fe(t),!te.current){var n=le(t),a=Object(f.default)(n);a.isNaN()||Oe(a,!0)}null==H||H(t),Ce((function(){var n=t;L||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},Te=function(e){var t;if(!(e&&be||!e&&ge)){ee.current=!1;var n=Object(f.default)(T);e||(n=n.negate());var a=(re||Object(f.default)(0)).add(n.toString()),r=Oe(a,!1);null==q||q(_(B,r),{offset:T,type:e?"up":"down"}),null===(t=Y.current)||void 0===t||t.focus()}},Ne=function(e){var t=Object(f.default)(le(pe)),n=t;n=t.isNaN()?re:Oe(t,e),void 0!==P?me(re,!1):n.isNaN()||me(n,!1)};return Object(b.default)((function(){re.isInvalidate()||me(re,!1)}),[V]),Object(b.default)((function(){var e=Object(f.default)(P);ie(e);var t=Object(f.default)(le(pe));e.equals(t)&&ee.current&&!$||me(e,ee.current)}),[P]),Object(b.default)((function(){$&&Se()}),[pe]),s.createElement("div",{className:c()(S,x,(n={},Object(r.default)(n,"".concat(S,"-focused"),Q),Object(r.default)(n,"".concat(S,"-disabled"),I),Object(r.default)(n,"".concat(S,"-readonly"),A),Object(r.default)(n,"".concat(S,"-not-a-number"),re.isNaN()),Object(r.default)(n,"".concat(S,"-out-of-range"),!re.isInvalidate()&&!Ee(re)),n)),style:E,onFocus:function(){Z(!0)},onBlur:function(){Ne(!1),Z(!1),ee.current=!1},onKeyDown:function(e){var t=e.which;ee.current=!0,t===d.default.ENTER&&(te.current||(ee.current=!1),Ne(!1),null==W||W(e)),!1!==D&&!te.current&&[d.default.UP,d.default.DOWN].includes(t)&&(Te(d.default.UP===t),e.preventDefault())},onKeyUp:function(){ee.current=!1},onCompositionStart:function(){te.current=!0},onCompositionEnd:function(){te.current=!1,ke(Y.current.value)}},F&&s.createElement(m.default,{prefixCls:S,upNode:j,downNode:M,upDisabled:be,downDisabled:ge,onStep:Te}),s.createElement("div",{className:"".concat(G,"-wrap")},s.createElement("input",Object(a.default)({autoComplete:"off",role:"spinbutton","aria-valuemin":O,"aria-valuemax":C,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:T},K,{ref:Object(p.composeRef)(Y,t),className:G,value:pe,onChange:function(e){ke(e.target.value)},disabled:I,readOnly:A}))))}));S.displayName="InputNumber",t.default=S},function(e,t,n){"use strict";function a(e){if(Array.isArray(e))return e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw i}}return n}}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(301);function r(e,t){if(e){if("string"==typeof e)return Object(a.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(a.default)(e,t):void 0}}},function(e,t,n){"use strict";function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"fillRef",(function(){return i})),n.d(t,"composeRef",(function(){return o})),n.d(t,"supportRef",(function(){return l}));var a=n(88),r=n(72);function i(e,t){"function"==typeof e?e(t):"object"===Object(a.default)(e)&&e&&"current"in e&&(e.current=t)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}}function l(e){var t,n,a=Object(r.isMemo)(e)?e.type.type:e.type;return!("function"==typeof a&&!(null===(t=a.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var a=n(17),r=n(75),i=n(0),o=n(16),l=n.n(o),s=n(496);function u(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,u=e.upDisabled,c=e.downDisabled,d=e.onStep,p=i.useRef(),f=i.useRef();f.current=d;var m=function(e,t){e.preventDefault(),f.current(t),p.current=setTimeout((function e(){f.current(t),p.current=setTimeout(e,200)}),600)},h=function(){clearTimeout(p.current)};if(i.useEffect((function(){return h}),[]),Object(s.default)())return null;var v="".concat(t,"-handler"),b=l()(v,"".concat(v,"-up"),Object(r.default)({},"".concat(v,"-up-disabled"),u)),g=l()(v,"".concat(v,"-down"),Object(r.default)({},"".concat(v,"-down-disabled"),c)),y={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return i.createElement("div",{className:"".concat(v,"-wrap")},i.createElement("span",Object(a.default)({},y,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":u,className:b}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",Object(a.default)({},y,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:g}),o||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}},function(e,t,n){"use strict";n.r(t),t.default=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(0),r=n(498);function i(e,t){var n=Object(a.useRef)(null);return[function(){try{var t=e.selectionStart,a=e.selectionEnd,r=e.value,i=r.substring(0,t),o=r.substring(a);n.current={start:t,end:a,value:r,beforeTxt:i,afterTxt:o}}catch(e){}},function(){if(e&&n.current&&t)try{var a=e.value,i=n.current,o=i.beforeTxt,l=i.afterTxt,s=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(o))u=o.length;else{var c=o[s-1],d=a.indexOf(c,s-1);-1!==d&&(u=d+1)}e.setSelectionRange(u,u)}catch(e){Object(r.default)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}},function(e,t,n){"use strict";n.r(t),n.d(t,"warning",(function(){return r})),n.d(t,"note",(function(){return i})),n.d(t,"resetWarned",(function(){return o})),n.d(t,"call",(function(){return l})),n.d(t,"warningOnce",(function(){return s})),n.d(t,"noteOnce",(function(){return u}));var a={};function r(e,t){0}function i(e,t){0}function o(){a={}}function l(e,t,n){t||a[n]||(e(!1,n),a[n]=!0)}function s(e,t){l(r,e,t)}function u(e,t){l(i,e,t)}t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"useLayoutEffect",(function(){return i}));var a=n(0),r=n(500),i=Object(r.default)()?a.useLayoutEffect:a.useEffect},function(e,t,n){"use strict";function a(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(302);t.default=function(){var e=Object(a.useRef)(0),t=function(){r.default.cancel(e.current)};return Object(a.useEffect)((function(){return t}),[]),function(n){t(),e.current=Object(r.default)((function(){n()}))}}},function(e,t,n){"use strict";n.r(t);var a=n(417);n.d(t,"fromEvent",(function(){return a.fromEvent}))},function(e,t,n){"use strict";n.r(t),n.d(t,"isBrowserClient",(function(){return l}));var a=n(56),r=n(0),i=n(504),o=0,l=Object(i.default)();t.default=function(e){var t=r.useState(),n=Object(a.default)(t,2),i=n[0],s=n[1];return r.useEffect((function(){var e;s("rc_progress_".concat((l?(e=o,o+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},function(e,t,n){"use strict";function a(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e){if(Array.isArray(e))return e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(304);function r(e,t){if(e){if("string"==typeof e)return Object(a.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(a.default)(e,t):void 0}}},function(e,t,n){"use strict";function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var a=n(0),r=n.n(a),i=n(72);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.a.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):Object(i.isFragment)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))})),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var a=n(305),r=n(306),i=n(0),o=n(307),l=n(308),s=n(516),u=n(207);function c(e){var t=e.children,n=e.disabled,c=i.useRef(null),d=i.useRef(null),p=i.useContext(u.CollectionContext),f="function"==typeof t,m=f?t(c):t,h=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!f&&i.isValidElement(m)&&Object(r.supportRef)(m),b=v?m.ref:null,g=i.useMemo((function(){return Object(r.composeRef)(b,c)}),[b,c]),y=i.useRef(e);y.current=e;var _=i.useCallback((function(e){var t=y.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,l=i.height,s=e.offsetWidth,u=e.offsetHeight,c=Math.floor(o),d=Math.floor(l);if(h.current.width!==c||h.current.height!==d||h.current.offsetWidth!==s||h.current.offsetHeight!==u){var f={width:c,height:d,offsetWidth:s,offsetHeight:u};h.current=f;var m=s===Math.round(o)?o:s,v=u===Math.round(l)?l:u,b=Object(a.default)(Object(a.default)({},f),{},{offsetWidth:m,offsetHeight:v});null==p||p(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return i.useEffect((function(){var e=Object(o.default)(c.current)||Object(o.default)(d.current);return e&&!n&&Object(l.observe)(e,_),function(){return Object(l.unobserve)(e,_)}}),[c.current,n]),i.createElement(s.default,{ref:d},v?i.cloneElement(m,{ref:g}):m)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(0);function r(e,t,n){var r=a.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,a){return e[0]===t&&(n=a,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(t,n){var a=e(this.__entries__,t);~a?this.__entries__[a][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,a=e(n,t);~a&&n.splice(a,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,a=this.__entries__;n<a.length;n++){var r=a[n];e.call(t,r[1],r[0])}},t}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,a=!1,r=0;function o(){n&&(n=!1,e()),a&&s()}function l(){i(o)}function s(){var e=Date.now();if(n){if(e-r<2)return;a=!0}else n=!0,a=!1,setTimeout(l,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,a=Object.keys(t);n<a.length;n++){var r=a[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},d=b(0,0,0,0);function p(e){return parseFloat(e)||0}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var a=c(e).getComputedStyle(e),r=function(e){for(var t={},n=0,a=["top","right","bottom","left"];n<a.length;n++){var r=a[n],i=e["padding-"+r];t[r]=p(i)}return t}(a),i=r.left+r.right,o=r.top+r.bottom,l=p(a.width),s=p(a.height);if("border-box"===a.boxSizing&&(Math.round(l+i)!==t&&(l-=f(a,"left","right")+i),Math.round(s+o)!==n&&(s-=f(a,"top","bottom")+o)),!function(e){return e===c(e).document.documentElement}(e)){var u=Math.round(l+i)-t,m=Math.round(s+o)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(m)&&(s-=m)}return b(r.left,r.top,l,s)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return a?h(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):m(e):d}function b(e,t,n,a){return{x:e,y:t,width:n,height:a}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(e,t){var n,a,r,i,o,l,s,c=(a=(n=t).x,r=n.y,i=n.width,o=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),u(s,{x:a,y:r,width:i,height:o,top:r,right:a+i,bottom:o+r,left:a}),s);u(this,{target:e,contentRect:c})},_=function(){function e(e,t,a){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=a}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),a=new _(t,n,this);w.set(this,a)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var x=void 0!==r.ResizeObserver?r.ResizeObserver:S;t.default=x}.call(this,n(65))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var a=n(165),r=n(166),i=n(517),o=n(518),l=n(0),s=function(e){Object(i.default)(n,e);var t=Object(o.default)(n);function n(){return Object(a.default)(this,n),t.apply(this,arguments)}return Object(r.default)(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var a=n(203);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(a.default)(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var a=n(309),r=n(519),i=n(520);function o(e){var t=Object(r.default)();return function(){var n,r=Object(a.default)(e);if(t){var o=Object(a.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.default)(this,n)}}},function(e,t,n){"use strict";function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var a=n(202),r=n.n(a),i=n(521);function o(e,t){return!t||"object"!==r()(t)&&"function"!=typeof t?Object(i.default)(e):t}},function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(523),i=Object(r.default)()?a.useLayoutEffect:a.useEffect;t.default=i},function(e,t,n){"use strict";function a(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.r(t),n.d(t,"default",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"useBatchFrameState",(function(){return l}));var a=n(77),r=n(0),i=n(310),o=n(525);function l(){var e=Object(o.default)({}),t=Object(a.default)(e,2)[1],n=Object(r.useRef)([]),l=0,s=0;return function(e){var a=l;return l+=1,n.current.length<a+1&&(n.current[a]=e),[n.current[a],function(e){n.current[a]="function"==typeof e?e(n.current[a]):e,i.default.cancel(s),s=Object(i.default)((function(){t({},!0)}))}]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var a=n(56),r=n(0);function i(e){var t=r.useRef(!1),n=r.useState(e),i=Object(a.default)(n,2),o=i[0],l=i[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||l(e)}]}},function(e,t,n){"use strict";n.r(t);var a=n(81),r=n(97),i=n(0),o=n(131),l=n.n(o),s=n(133),u=n(168),c=["component"],d=["className"],p=["className"],f=function(e,t){var n=i.useContext(u.OverflowContext);if(!n){var o=e.component,f=void 0===o?"div":o,m=Object(r.default)(e,c);return i.createElement(f,Object(a.default)({},m,{ref:t}))}var h=n.className,v=Object(r.default)(n,d),b=e.className,g=Object(r.default)(e,p);return i.createElement(u.OverflowContext.Provider,{value:null},i.createElement(s.default,Object(a.default)({ref:t,className:l()(h,b)},v,g)))},m=i.forwardRef(f);m.displayName="RawItem",t.default=m},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);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}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){(function(e){var a=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(a,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(555),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(65))},,,,,function(e,t,n){e.exports=n},,,function(e,t,n){"use strict";var a=n(537);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var a="function"==typeof Symbol&&Symbol.for,r=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,s=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,p=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,b=a?Symbol.for("react.lazy"):60116,g=a?Symbol.for("react.block"):60121,y=a?Symbol.for("react.fundamental"):60117,_=a?Symbol.for("react.responder"):60118,w=a?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case p:case o:case s:case l:case m:return e;default:switch(e=e&&e.$$typeof){case c:case f:case b:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return S(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||S(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===b},t.isMemo=function(e){return S(e)===v},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===l},t.isSuspense=function(e){return S(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===w||e.$$typeof===g)},t.typeOf=S},,,,function(e,t,n){"use strict";var a=n(213),r=n(548),i=n(550),o=a("%TypeError%"),l=a("%WeakMap%",!0),s=a("%Map%",!0),u=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),p=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),m=r("Map.prototype.has",!0),h=function(e,t){for(var n,a=e;null!==(n=a.next);a=n)if(n.key===t)return a.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,a={assert:function(e){if(!a.has(e))throw new o("Side channel does not contain "+i(e))},get:function(a){if(l&&a&&("object"==typeof a||"function"==typeof a)){if(e)return u(e,a)}else if(s){if(t)return p(t,a)}else if(n)return function(e,t){var n=h(e,t);return n&&n.value}(n,a)},has:function(a){if(l&&a&&("object"==typeof a||"function"==typeof a)){if(e)return d(e,a)}else if(s){if(t)return m(t,a)}else if(n)return function(e,t){return!!h(e,t)}(n,a);return!1},set:function(a,r){l&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new l),c(e,a,r)):s?(t||(t=new s),f(t,a,r)):(n||(n={key:{},next:null}),function(e,t,n){var a=h(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(n,a,r))}};return a}},function(e,t,n){"use strict";var a="undefined"!=typeof Symbol&&Symbol,r=n(545);e.exports=function(){return"function"==typeof a&&("function"==typeof Symbol&&("symbol"==typeof a("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},function(e,t,n){"use strict";var a="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(a+t);for(var n,o=r.call(arguments,1),l=function(){if(this instanceof n){var a=t.apply(this,o.concat(r.call(arguments)));return Object(a)===a?a:this}return t.apply(e,o.concat(r.call(arguments)))},s=Math.max(0,t.length-o.length),u=[],c=0;c<s;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype){var d=function(){};d.prototype=t.prototype,n.prototype=new d,d.prototype=null}return n}},function(e,t,n){"use strict";var a=n(214);e.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var a=n(213),r=n(549),i=r(a("String.prototype.indexOf"));e.exports=function(e,t){var n=a(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},function(e,t,n){"use strict";var a=n(214),r=n(213),i=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||a.call(o,i),s=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=l(a,o,arguments);if(s&&u){var n=s(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return l(a,i,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){var a="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=a&&r&&"function"==typeof r.get?r.get:null,o=a&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&s&&"function"==typeof s.get?s.get:null,c=l&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,b="function"==typeof BigInt?BigInt.prototype.valueOf:null,g=Object.getOwnPropertySymbols,y="function"==typeof Symbol?Symbol.prototype.toString:null,_=Object.prototype.propertyIsEnumerable,w=n(551).custom,S=w&&C(w)?w:null;function x(e,t,n){var a="double"===(n.quoteStyle||t)?'"':"'";return a+e+a}function E(e){return String(e).replace(/"/g,""")}function O(e){return"[object Array]"===N(e)}function C(e){return"[object Symbol]"===N(e)}e.exports=function e(t,n,a,r){var l=n||{};if(T(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(T(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!T(l,"customInspect")||l.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(T(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var a=t.length-n.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+r}return x(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,I),"single",n)}(t,l);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var m=void 0===l.depth?5:l.depth;if(void 0===a&&(a=0),a>=m&&m>0&&"object"==typeof t)return O(t)?"[Array]":"[Object]";var g=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(l,a);if(void 0===r)r=[];else if(P(r,t)>=0)return"[Circular]";function _(t,n,i){if(n&&(r=r.slice()).push(n),i){var o={depth:l.depth};return T(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,a+1,r)}return e(t,l,a+1,r)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),k=R(t,_);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(k.length>0?" { "+k.join(", ")+" }":"")}if(C(t)){var F=y.call(t);return"object"==typeof t?A(F):F}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var B="<"+String(t.nodeName).toLowerCase(),L=t.attributes||[],$=0;$<L.length;$++)B+=" "+L[$].name+"="+x(E(L[$].value),"double",l);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+String(t.nodeName).toLowerCase()+">"}if(O(t)){if(0===t.length)return"[]";var V=R(t,_);return g&&!function(e){for(var t=0;t<e.length;t++)if(P(e[t],"\n")>=0)return!1;return!0}(V)?"["+D(V,g)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return"[object Error]"===N(e)}(t)){var z=R(t,_);return 0===z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+z.join(", ")+" }"}if("object"==typeof t&&s){if(S&&"function"==typeof t[S])return t[S]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var U=[];return o.call(t,(function(e,n){U.push(_(n,t,!0)+" => "+_(e,t))})),M("Map",i.call(t),U,g)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var H=[];return c.call(t,(function(e){H.push(_(e,t))})),M("Set",u.call(t),H,g)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return j("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return j("WeakSet");if(function(e){return"[object Number]"===N(e)}(t))return A(_(Number(t)));if(function(e){return"[object BigInt]"===N(e)}(t))return A(_(b.call(t)));if(function(e){return"[object Boolean]"===N(e)}(t))return A(f.call(t));if(function(e){return"[object String]"===N(e)}(t))return A(_(String(t)));if(!function(e){return"[object Date]"===N(e)}(t)&&!function(e){return"[object RegExp]"===N(e)}(t)){var W=R(t,_);return 0===W.length?"{}":g?"{"+D(W,g)+"}":"{ "+W.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function T(e,t){return k.call(e,t)}function N(e){return m.call(e)}function P(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function I(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function A(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function M(e,t,n,a){return e+" ("+t+") {"+(a?D(n,a):n.join(", "))+"}"}function D(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function R(e,t){var n=O(e),a=[];if(n){a.length=e.length;for(var r=0;r<e.length;r++)a[r]=T(e,r)?t(e[r],e):""}for(var i in e)T(e,i)&&(n&&String(Number(i))===i&&i<e.length||(/[^\w$]/.test(i)?a.push(t(i,e)+": "+t(e[i],e)):a.push(i+": "+t(e[i],e))));if("function"==typeof g)for(var o=g(e),l=0;l<o.length;l++)_.call(e,o[l])&&a.push("["+t(o[l])+"]: "+t(e[o[l]],e));return a}},function(e,t){},,,,function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var a,r,i,o,l,s=1,u={},c=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},a=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,a=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):a=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&m(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),a=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return u[s]=r,a(s),s++},p.clearImmediate=f}function f(e){delete u[e]}function m(e){if(c)setTimeout(m,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(65),n(109))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return l})),n.d(t,"__param",(function(){return s})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return m})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__spreadArray",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return O})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}function l(e,t,n,a){var r,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t){return function(n,a){t(n,a,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function l(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}s((a=a.apply(e,t||[])).next())}))}function d(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var p=Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]};function f(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,r++)a[r]=i[o];return a}function g(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,r=n.apply(e,t||[]),i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(e){r[e]&&(a[e]=function(t){return new Promise((function(n,a){i.push([e,t,n,a])>1||l(e,t)}))})}function l(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function s(e){l("next",e)}function u(e){l("throw",e)}function c(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function w(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:y(e[a](t)),done:"return"===a}:r?r(t):t}:r}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)}function T(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n}},function(e,t,n){var a={"./zh-cn":138,"./zh-cn.js":138};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id=606},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(675)},function(e,t,n){"use strict";var a,r,i,o,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},a=function(e){null!==s?setTimeout(a,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},o=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,f=window.Date,m=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=f.now();t.unstable_now=function(){return f.now()-b}}var g=!1,y=null,_=-1,w=5,S=0;o=function(){return t.unstable_now()>=S},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();S=e+w;try{y(!0,e)?E.postMessage(null):(g=!1,y=null)}catch(e){throw E.postMessage(null),e}}else g=!1},a=function(e){y=e,g||(g=!0,E.postMessage(null))},r=function(e,n){_=m((function(){e(t.unstable_now())}),n)},i=function(){h(_),_=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var a=n-1>>>1,r=e[a];if(!(void 0!==r&&0<T(r,t)))break e;e[a]=t,e[n]=r,n=a}}function C(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length;a<r;){var i=2*(a+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>T(o,n))void 0!==s&&0>T(s,o)?(e[a]=s,e[l]=n,a=l):(e[a]=o,e[i]=n,a=i);else{if(!(void 0!==s&&0>T(s,n)))break e;e[a]=s,e[l]=n,a=l}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],P=[],I=1,A=null,j=3,M=!1,D=!1,R=!1;function F(e){for(var t=C(P);null!==t;){if(null===t.callback)k(P);else{if(!(t.startTime<=e))break;k(P),t.sortIndex=t.expirationTime,O(N,t)}t=C(P)}}function B(e){if(R=!1,F(e),!D)if(null!==C(N))D=!0,a(L);else{var t=C(P);null!==t&&r(B,t.startTime-e)}}function L(e,n){D=!1,R&&(R=!1,i()),M=!0;var a=j;try{for(F(n),A=C(N);null!==A&&(!(A.expirationTime>n)||e&&!o());){var l=A.callback;if(null!==l){A.callback=null,j=A.priorityLevel;var s=l(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===C(N)&&k(N),F(n)}else k(N);A=C(N)}if(null!==A)var u=!0;else{var c=C(P);null!==c&&r(B,c.startTime-n),u=!1}return u}finally{A=null,j=a,M=!1}}function $(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||M||(D=!0,a(L))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(N)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?l+s:l,o="number"==typeof o.timeout?o.timeout:$(e)}else o=$(e),s=l;return e={id:I++,callback:n,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>l?(e.sortIndex=s,O(P,e),null===C(N)&&e===C(P)&&(R?i():R=!0,r(B,s-l))):(e.sortIndex=o,O(N,e),D||M||(D=!0,a(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=C(N);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";n.r(t);var a=n(6),r=n(0);if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!a.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available")},,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(471),r=n(169),i=n(0),o=n(295),l=n(476),s=n.n(l),u=n(477),c=function(){};var d=function(e){return e&&("current"in e?e.current:e)};t.default=function(e,t,n){var l=void 0===n?{}:n,p=l.disabled,f=l.clickTrigger,m=void 0===f?"click":f,h=Object(i.useRef)(!1),v=t||c,b=Object(i.useCallback)((function(t){var n,r=d(e);s()(!!r,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),h.current=!(r&&(n=t,!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey))&&function(e){return 0===e.button}(t)&&!Object(a.default)(r,t.target))}),[e]),g=Object(o.default)((function(e){h.current||v(e)})),y=Object(o.default)((function(e){27===e.keyCode&&v(e)}));Object(i.useEffect)((function(){if(!p&&null!=e){var t=window.event,n=Object(u.default)(d(e)),a=Object(r.default)(n,m,b,!0),i=Object(r.default)(n,m,(function(e){e!==t?g(e):t=void 0})),o=Object(r.default)(n,"keyup",(function(e){e!==t?y(e):t=void 0})),l=[];return"ontouchstart"in n.documentElement&&(l=[].slice.call(n.body.children).map((function(e){return Object(r.default)(e,"mousemove",c)}))),function(){a(),i(),o(),l.forEach((function(e){return e()}))}}}),[e,p,m,b,g,y])}},function(e,t,n){"use strict";var a=60103,r=60106,i=60107,o=60108,l=60114,s=60109,u=60110,c=60112,d=60113,p=60120,f=60115,m=60116,h=60121,v=60122,b=60117,g=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;a=_("react.element"),r=_("react.portal"),i=_("react.fragment"),o=_("react.strict_mode"),l=_("react.profiler"),s=_("react.provider"),u=_("react.context"),c=_("react.forward_ref"),d=_("react.suspense"),p=_("react.suspense_list"),f=_("react.memo"),m=_("react.lazy"),h=_("react.block"),v=_("react.server.block"),b=_("react.fundamental"),g=_("react.debug_trace_mode"),y=_("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case i:case l:case o:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case m:case f:case s:return e;default:return t}}case r:return t}}}var S=s,x=a,E=c,O=i,C=m,k=f,T=r,N=l,P=o,I=d;t.ContextConsumer=u,t.ContextProvider=S,t.Element=x,t.ForwardRef=E,t.Fragment=O,t.Lazy=C,t.Memo=k,t.Portal=T,t.Profiler=N,t.StrictMode=P,t.Suspense=I,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return w(e)===c},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===l||e===g||e===o||e===d||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===b||e.$$typeof===h||e[0]===v)},t.typeOf=w},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var a;a=function(e,t){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var a=e.direction,r=e.value;switch(a){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return b}));var a=n(1),r=n.n(a),i=n(2),o=n.n(i),l=n(0),s=n.n(l),u=n(3),c=n.n(u);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?m(e):t}(this,f(t).call(this,e)),v(m(n),"getContainer",(function(){return n.props.containment||window})),v(m(n),"addEventListener",(function(e,t,a,r){var i;n.debounceCheck||(n.debounceCheck={});var o=function(){i=null,n.check()},l={target:e,fn:r>-1?function(){i||(i=setTimeout(o,r||0))}:function(){clearTimeout(i),i=setTimeout(o,a||0)},getLastTimeout:function(){return i}};e.addEventListener(t,l.fn),n.debounceCheck[t]=l})),v(m(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),v(m(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),v(m(n),"check",(function(){var e,t,a=n.node;if(!a)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(a.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===d(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var o={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},l=e.height>0&&e.width>0,s=l&&o.top&&o.left&&o.bottom&&o.right;if(l&&n.props.partialVisibility){var u=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(u=o[n.props.partialVisibility]),s=n.props.minTopValue?u&&e.top<=t.bottom-n.props.minTopValue:u}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),s=c()(i,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(a=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=o.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&p(n.prototype,a),i&&p(n,i),t}(r.a.Component);v(b,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),v(b,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var a=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=a(n(0),n(11))},,,,,function(e,t,n){"use strict";n.r(t);var a=n(17),r=n(74),i=n(0),o=n(486),l=n(488),s={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},u=function(e){Object.keys(s).forEach((function(t){e.style.setProperty(t,s[t],"important")}))},c=null;var d=function(){},p=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],f=!!document.documentElement.currentStyle,m=function(e,t){var n=e.cacheMeasurements,s=e.maxRows,m=e.minRows,h=e.onChange,v=void 0===h?d:h,b=e.onHeightChange,g=void 0===b?d:b,y=Object(r.default)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var _,w,S=void 0!==y.value,x=Object(i.useRef)(null),E=Object(l.default)(x,t),O=Object(i.useRef)(0),C=Object(i.useRef)(),k=function(){var e=x.current,t=n&&C.current?C.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,a=(n=t,p.reduce((function(e,t){return e[t]=n[t],e}),{})),r=a.boxSizing;return""===r?null:(f&&"border-box"===r&&(a.width=parseFloat(a.width)+parseFloat(a.borderRightWidth)+parseFloat(a.borderLeftWidth)+parseFloat(a.paddingRight)+parseFloat(a.paddingLeft)+"px"),{sizingStyle:a,paddingSize:parseFloat(a.paddingBottom)+parseFloat(a.paddingTop),borderSize:parseFloat(a.borderBottomWidth)+parseFloat(a.borderTopWidth)})}(e);if(t){C.current=t;var a=function(e,t,n,a){void 0===n&&(n=1),void 0===a&&(a=1/0),c||((c=document.createElement("textarea")).setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),u(c)),null===c.parentNode&&document.body.appendChild(c);var r=e.paddingSize,i=e.borderSize,o=e.sizingStyle,l=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;c.style[t]=o[t]})),u(c),c.value=t;var s=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(c,e);c.value="x";var d=c.scrollHeight-r,p=d*n;"border-box"===l&&(p=p+r+i),s=Math.max(p,s);var f=d*a;return"border-box"===l&&(f=f+r+i),[s=Math.min(f,s),d]}(t,e.value||e.placeholder||"x",m,s),r=a[0],i=a[1];O.current!==r&&(O.current=r,e.style.setProperty("height",r+"px","important"),g(r,{rowHeight:i}))}};return Object(i.useLayoutEffect)(k),_=k,w=Object(o.default)(_),Object(i.useLayoutEffect)((function(){var e=function(e){w.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(i.createElement)("textarea",Object(a.default)({},y,{onChange:function(e){S||k(),v(e)},ref:E}))},h=Object(i.forwardRef)(m);t.default=h},,,,,,function(e,t,n){"use strict";n.r(t);var a=n(489);t.default=a.default},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDecimal=t.BigIntDecimal=void 0,t.default=c,t.toFixed=function e(t,n,a){if(""===t)return"";var r=(0,o.trimNumber)(t),i=r.negativeStr,l=r.integerStr,s=r.decimalStr,u="".concat(n).concat(s),d="".concat(i).concat(l);if(a>=0){var p=Number(s[a]);if(p>=5){var f=c(t).add("".concat(i,"0.").concat("0".repeat(a)).concat(10-p));return e(f.toString(),n,a)}return 0===a?d:"".concat(d).concat(n).concat(s.padEnd(a,"0").slice(0,a))}if(".0"===u)return d;return"".concat(d).concat(u)};var r=a(n(25)),i=a(n(26)),o=n(387),l=n(388),s=function(){function e(t){(0,r.default)(this,e),this.origin="",this.number=void 0,this.empty=void 0,(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return(0,i.default)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max((0,o.getNumberPrecision)(this.number),(0,o.getNumberPrecision)(n));return new e(a.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":(0,o.num2str)(this.number):this.origin}}]),e}();t.NumberDecimal=s;var u=function(){function e(t){if((0,r.default)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if((0,o.isE)(n)&&(n=Number(n)),n="string"==typeof n?n:(0,o.num2str)(n),(0,o.validateNumber)(n)){var a=(0,o.trimNumber)(n);this.negative=a.negative;var i=a.trimStr.split(".");this.integer=BigInt(i[0]);var l=i[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return(0,i.default)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=(this.alignDecimal(a)+n.alignDecimal(a)).toString(),i=(0,o.trimNumber)(r),l=i.negativeStr,s=i.trimStr,u="".concat(l).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":(0,o.trimNumber)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function c(e){return(0,l.supportBigInt)()?new u(e):new s(e)}t.BigIntDecimal=u},,,,,,,,,,,,,,,,,,,,,function(e,t){t.doc=[{name:"IF",description:"示例:IF(A, B, C)\n\n如果满足条件A,则返回B,否则返回C,支持多层嵌套IF函数。\n\n也可以用表达式如:A ? B : C",example:"IF(condition, consequent, alternate)",params:[{type:"expression",name:"condition",description:"条件表达式."},{type:"any",name:"consequent",description:"条件判断通过的返回结果"},{type:"any",name:"alternate",description:"条件判断不通过的返回结果"}],returns:{type:"any",description:"根据条件返回不同的结果"},namespace:"逻辑函数"},{name:"AND",description:"条件全部符合,返回 true,否则返回 false\n\n示例:AND(语文成绩>80, 数学成绩>80)\n\n语文成绩和数学成绩都大于 80,则返回 true,否则返回 false\n\n也可以直接用表达式如:语文成绩>80 && 数学成绩>80",example:"AND(expression1, expression2, ...expressionN)",params:[{type:"...expression",name:"conditions",description:"条件表达式."}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"OR",description:"条件任意一个满足条件,返回 true,否则返回 false\n\n示例:OR(语文成绩>80, 数学成绩>80)\n\n语文成绩和数学成绩任意一个大于 80,则返回 true,否则返回 false\n\n也可以直接用表达式如:语文成绩>80 || 数学成绩>80",example:"OR(expression1, expression2, ...expressionN)",params:[{type:"...expression",name:"conditions",description:"条件表达式."}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"XOR",description:"异或处理,两个表达式同时为「真」,或者同时为「假」,则结果返回为「真」",example:"XOR(condition1, condition2)",params:[{type:"expression",name:"condition1",description:"条件表达式1"},{type:"expression",name:"condition2",description:"条件表达式2"}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"IFS",description:'判断函数集合,相当于多个 else if 合并成一个。\n\n示例:IFS(语文成绩 > 80, "优秀", 语文成绩 > 60, "良", "继续努力")\n\n如果语文成绩大于 80,则返回优秀,否则判断大于 60 分,则返回良,否则返回继续努力。',example:"IFS(condition1, result1, condition2, result2,...conditionN, resultN)",params:[{type:"...any",name:"args",description:"条件,返回值集合"}],returns:{type:"any",description:"第一个满足条件的结果,没有命中的返回 false。"},namespace:"逻辑函数"},{name:"ABS",description:"返回传入数字的绝对值",example:"ABS(num)",params:[{type:"number",name:"num",description:"数值"}],returns:{type:"number",description:"传入数值的绝对值"},namespace:"数学函数"},{name:"MAX",description:"获取最大值,如果只有一个参数且是数组,则计算这个数组内的值",example:"MAX(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入值中最大的那个"},namespace:"数学函数"},{name:"MIN",description:"获取最小值,如果只有一个参数且是数组,则计算这个数组内的值",example:"MIN(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入值中最小的那个"},namespace:"数学函数"},{name:"SUM",description:"求和,如果只有一个参数且是数组,则计算这个数组内的值",example:"SUM(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入数值的总和"},namespace:"数学函数"},{name:"INT",description:"将数值向下取整为最接近的整数",example:"INT(num)",params:[{type:"number",name:"num",description:"数值"}],returns:{type:"number",description:"数值对应的整形"},namespace:"数学函数"},{name:"MOD",description:"返回两数相除的余数,参数 number 是被除数,divisor 是除数",example:"MOD(num, divisor)",params:[{type:"number",name:"num",description:"被除数"},{type:"number",name:"divisor",description:"除数"}],returns:{type:"number",description:"两数相除的余数"},namespace:"数学函数"},{name:"PI",description:"圆周率 3.1415...",example:"PI()",params:[],returns:{type:"number",description:"圆周率数值"},namespace:"数学函数"},{name:"ROUND",description:"将数字四舍五入到指定的位数,可以设置小数位。",example:"ROUND(num[, numDigits = 2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值四舍五入后的结果"},namespace:"数学函数"},{name:"FLOOR",description:"将数字向下取整到指定的位数,可以设置小数位。",example:"FLOOR(num[, numDigits=2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值向下取整后的结果"},namespace:"数学函数"},{name:"CEIL",description:"将数字向上取整到指定的位数,可以设置小数位。",example:"CEIL(num[, numDigits=2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值向上取整后的结果"},namespace:"数学函数"},{name:"SQRT",description:"开平方,参数 number 为非负数",example:"SQRT(num)",params:[{type:"number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"开平方的结果"},namespace:"数学函数"},{name:"AVG",description:"返回所有参数的平均值,如果只有一个参数且是数组,则计算这个数组内的值",example:"AVG(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"DEVSQ",description:"返回数据点与数据均值点之差(数据偏差)的平方和,如果只有一个参数且是数组,则计算这个数组内的值",example:"DEVSQ(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"AVEDEV",description:"数据点到其算术平均值的绝对偏差的平均值",example:"AVEDEV(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"HARMEAN",description:"数据点的调和平均值,如果只有一个参数且是数组,则计算这个数组内的值",example:"HARMEAN(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"LARGE",description:"数据集中第 k 个最大值",example:"LARGE(array, k)",params:[{type:"array",name:"nums",description:"要处理的数字"},{type:"number",name:"k",description:"第几大"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"UPPERMONEY",description:"将数值转为中文大写金额",example:"UPPERMONEY(num)",params:[{type:"number",name:"num",description:"要处理的数字"}],returns:{type:"string",description:"数值中文大写字符"},namespace:"数学函数"},{name:"RAND",description:"返回大于等于 0 且小于 1 的均匀分布随机实数。每一次触发计算都会变化。\n\n示例:`RAND()*100`\n\n返回 0-100 之间的随机数",example:"RAND()",params:[],returns:{type:"number",description:"随机数"},namespace:"数学函数"},{name:"LAST",description:"取数据最后一个",example:"LAST(array)",params:[{type:"...number",name:"arr",description:"要处理的数组"}],returns:{type:"any",description:"最后一个值"},namespace:"数学函数"},{name:"LEFT",description:"返回传入文本左侧的指定长度字符串。",example:"LEFT(text, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"len",description:"要处理的长度"}],returns:{type:"string",description:"对应字符串"},namespace:"文本函数"},{name:"RIGHT",description:"返回传入文本右侧的指定长度字符串。",example:"RIGHT(text, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"len",description:"要处理的长度"}],returns:{type:"string",description:"对应字符串"},namespace:"文本函数"},{name:"LEN",description:"计算文本的长度",example:"LEN(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"number",description:"长度"},namespace:"文本函数"},{name:"LENGTH",description:"计算文本集合中所有文本的长度",example:"LENGTH(textArr)",params:[{type:"Array<string>",name:"textArr",description:"要处理的文本集合"}],returns:{type:"Array<number>",description:"长度集合"},namespace:"文本函数"},{name:"ISEMPTY",description:"判断文本是否为空",example:"ISEMPTY(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"boolean",description:"判断结果"},namespace:"文本函数"},{name:"CONCATENATE",description:"将多个传入值连接成文本",example:"CONCATENATE(text1, text2, ...textN)",params:[{type:"...string",name:"text",description:"文本集合"}],returns:{type:"string",description:"连接后的文本"},namespace:"文本函数"},{name:"CHAR",description:'返回计算机字符集的数字代码所对应的字符。\n\n`CHAR(97)` 等价于 "a"',example:"CHAR(code)",params:[{type:"number",name:"code",description:"编码值"}],returns:{type:"string",description:"指定位置的字符"},namespace:"文本函数"},{name:"LOWER",description:"将传入文本转成小写",example:"LOWER(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"UPPER",description:"将传入文本转成大写",example:"UPPER(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"UPPERFIRST",description:"将传入文本首字母转成大写",example:"UPPERFIRST(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"PADSTART",description:'向前补齐文本长度\n\n示例 `PADSTART("6", 2, "0")`\n\n返回 `06`',example:"PADSTART(text)",params:[{type:"string",name:"text",description:"文本"},{type:"number",name:"num",description:"目标长度"},{type:"string",name:"pad",description:"用于补齐的文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"CAPITALIZE",description:'将文本转成标题\n\n示例 `CAPITALIZE("star")`\n\n返回 `Star`',example:"CAPITALIZE(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"ESCAPE",description:'对文本进行 HTML 转义\n\n示例 `ESCAPE("star")`\n\n返回 `Star`',example:"ESCAPE(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"TRUNCATE",description:'对文本长度进行截断\n\n示例 `TRUNCATE("amis.baidu.com", 6)`\n\n返回 `amis...`',example:"TRUNCATE(text, 6)",params:[{type:"string",name:"text",description:"文本"},{type:"number",name:"text",description:"最长长度"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"BEFORELAST",description:"取在某个分隔符之前的所有字符串",example:"BEFORELAST(text, '.')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"delimiter",description:"结束文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"SPLIT",description:'将文本根据指定片段分割成数组\n\n示例:`SPLIT("a,b,c", ",")`\n\n返回 `["a", "b", "c"]`',example:"SPLIT(text, ',')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"delimiter",description:"文本片段"}],returns:{type:"Array<string>",description:"文本集"},namespace:"文本函数"},{name:"TRIM",description:"将文本去除前后空格",example:"TRIM(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"STRIPTAG",description:'去除文本中的 HTML 标签\n\n示例:`STRIPTAG("<b>amis</b>")`\n\n返回:`amis`',example:"STRIPTAG(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"LINEBREAK",description:'将字符串中的换行转成 HTML `<br>`,用于简单换行的场景\n\n示例:`LINEBREAK("\\n")`\n\n返回:`<br/>`',example:"LINEBREAK(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"STARTSWITH",description:"判断字符串(text)是否以特定字符串(startString)开始,是则返回 True,否则返回 False",example:"STARTSWITH(text, '片段')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"startString",description:"起始文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"ENDSWITH",description:"判断字符串(text)是否以特定字符串(endString)结束,是则返回 True,否则返回 False",example:"ENDSWITH(text, '片段')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"endString",description:"结束文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"CONTAINS",description:"判断参数 1 中的文本是否包含参数 2 中的文本。",example:"CONTAINS(text, searchText)",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"searchText",description:"搜索文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"REPLACE",description:"对文本进行全量替换。",example:"REPLACE(text, search, replace)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"string",name:"search",description:"要被替换的文本"},{type:"string",name:"replace",description:"要替换的文本"}],returns:{type:"string",description:"处理结果"},namespace:"文本函数"},{name:"SEARCH",description:"对文本进行搜索,返回命中的位置",example:"SEARCH(text, search, 0)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"string",name:"search",description:"用来搜索的文本"},{type:"number",name:"start",description:"起始位置"}],returns:{type:"number",description:"命中的位置"},namespace:"文本函数"},{name:"MID",description:"返回文本字符串中从指定位置开始的特定数目的字符",example:"MID(text, from, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"from",description:"起始位置"},{type:"number",name:"len",description:"处理长度"}],returns:{type:"number",description:"命中的位置"},namespace:"文本函数"},{name:"BASENAME",description:"返回路径中的文件名\n\n示例:`/home/amis/a.json`\n\n返回:a.json`",example:"BASENAME(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"string",description:"文件名"},namespace:"文本函数"},{name:"DATE",description:"创建日期对象,可以通过特定格式的字符串,或者数值。\n\n需要注意的是,其中月份的数值是从0开始的,也就是说,\n如果是12月份,你应该传入数值11。",example:"DATE('2021-12-06 08:20:00')",params:[],returns:{type:"Date",description:"日期对象"},namespace:"日期函数"},{name:"TIMESTAMP",description:"返回时间的时间戳",example:'TIMESTAMP(date[, format = "X"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"format",description:"时间戳格式,带毫秒传入 'x'。默认为 'X' 不带毫秒的。"}],returns:{type:"number",description:"时间戳"},namespace:"日期函数"},{name:"TODAY",description:"返回今天的日期",example:"TODAY()",params:[],returns:{type:"number",description:"日期"},namespace:"日期函数"},{name:"NOW",description:"返回现在的日期",example:"NOW()",params:[],returns:{type:"number",description:"日期"},namespace:"日期函数"},{name:"DATETOSTR",description:"将日期转成日期字符串",example:'DATETOSTR(date[, format="YYYY-MM-DD HH:mm:ss"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"format",description:'日期格式,默认为 "YYYY-MM-DD HH:mm:ss"'}],returns:{type:"number",description:"日期字符串"},namespace:"日期函数"},{name:"STARTOF",description:"返回日期的指定范围的开端",example:'STARTOF(date[unit = "day"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"unit",description:"比如可以传入 'day'、'month'、'year' 或者 `week` 等等"}],returns:{type:"date",description:"新的日期对象"},namespace:"日期函数"},{name:"ENDOF",description:"返回日期的指定范围的末尾",example:'ENDOF(date[unit = "day"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"unit",description:"比如可以传入 'day'、'month'、'year' 或者 `week` 等等"}],returns:{type:"date",description:"新的日期对象"},namespace:"日期函数"},{name:"YEAR",description:"返回日期的年份",example:"YEAR(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MONTH",description:"返回日期的月份,这里就是自然月份。",example:"MONTH(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DAY",description:"返回日期的天",example:"DAY(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"HOUR",description:"返回日期的小时",example:"HOUR(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MINUTE",description:"返回日期的分",example:"MINUTE(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"SECOND",description:"返回日期的秒",example:"SECOND(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"YEARS",description:"返回两个日期相差多少年",example:"YEARS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MINUTES",description:"返回两个日期相差多少分钟",example:"MINUTES(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DAYS",description:"返回两个日期相差多少天",example:"DAYS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"HOURS",description:"返回两个日期相差多少小时",example:"HOURS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DATEMODIFY",description:"修改日期,对日期进行加减天、月份、年等操作\n\n示例:\n\nDATEMODIFY(A, -2, 'month')\n\n对日期 A 进行往前减2月的操作。",example:"DATEMODIFY(date, 2, 'days')",params:[{type:"date",name:"date",description:"日期对象"},{type:"number",name:"num",description:"数值"},{type:"string",name:"unit",description:"单位:支持年、月、天等等"}],returns:{type:"date",description:"日期对象"},namespace:"日期函数"},{name:"STRTODATE",description:"将字符日期转成日期对象,可以指定日期格式。\n\n示例:STRTODATE('2021/12/6', 'YYYY/MM/DD')",example:'STRTODATE(value[, format=""])',params:[{type:"string",name:"value",description:"日期字符"},{type:"string",name:"format",description:"日期格式"}],returns:{type:"date",description:"日期对象"},namespace:"日期函数"},{name:"ISBEFORE",description:"判断两个日期,是否第一个日期在第二个日期的前面",example:"ISBEFORE(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISAFTER",description:"判断两个日期,是否第一个日期在第二个日期的后面",example:"ISAFTER(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISSAMEORBEFORE",description:"判断两个日期,是否第一个日期在第二个日期的前面或者相等",example:"ISSAMEORBEFORE(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISSAMEORAFTER",description:"判断两个日期,是否第一个日期在第二个日期的后面或者相等",example:"ISSAMEORAFTER(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"COUNT",description:"返回数组的长度",example:"COUNT(arr)",params:[{type:"Array<any>",name:"arr",description:"数组"}],returns:{type:"boolean",description:"结果"},namespace:"数组"},{name:"ARRAYMAP",description:"数组做数据转换,需要搭配箭头函数一起使用,注意箭头函数只支持单表达式用法。",example:"ARRAYMAP(arr, item => item)",params:[{type:"Array<any>",name:"arr",description:"数组"},{type:"Array<any>",name:"iterator",description:"箭头函数"}],returns:{type:"boolean",description:"结果"},namespace:"数组"},{name:"COMPACT",description:"数组过滤掉 false、null、0 和 \"\"\n\n示例:\n\nCOMPACT([0, 1, false, 2, '', 3]) 得到 [1, 2, 3]",example:"COMPACT(arr)",params:[{type:"Array<any>",name:"arr",description:"数组"}],returns:{type:"Array<any>",description:"结果"},namespace:"数组"},{name:"JOIN",description:"数组转成字符串\n\n示例:\n\nJOIN(['a', 'b', 'c'], '~') 得到 'a~b~c'",example:"JOIN(arr, string)",params:[{type:"Array<any>",name:"arr",description:"数组"},{type:"String",name:"separator",description:"分隔符"}],returns:{type:"String",description:"结果"},namespace:"数组"}]},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function i(e,t){for(var n=t.slice(0,t.length-1),a=0;a<n.length;a++)n[a]=e[n[a].toLowerCase()];return n}function o(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var l={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":a?173:189,"=":a?61:187,";":a?59:186,"'":222,"[":219,"]":221,"\\":220},s={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},d={},p=1;p<20;p++)l["f".concat(p)]=111+p;var f=[],m="all",h=[],v=function(e){return l[e.toLowerCase()]||s[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function b(e){m=e||"all"}function g(){return m||"all"}var y=function(e){var t=e.key,n=e.scope,a=e.method,r=e.splitKey,l=void 0===r?"+":r;o(t).forEach((function(e){var t=e.split(l),r=t.length,o=t[r-1],u="*"===o?"*":v(o);if(d[u]){n||(n=g());var c=r>1?i(s,t):[];d[u]=d[u].map((function(e){return(!a||e.method===a)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,i=0;i<n.length;i++)-1===a.indexOf(n[i])&&(r=!1);return r}(e.mods,c)?{}:e}))}}))};function _(e,t,n){var a;if(t.scope===n||"all"===t.scope){for(var r in a=t.mods.length>0,c)Object.prototype.hasOwnProperty.call(c,r)&&(!c[r]&&t.mods.indexOf(+r)>-1||c[r]&&-1===t.mods.indexOf(+r))&&(a=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!a&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function w(e){var t=d["*"],n=e.keyCode||e.which||e.charCode;if(S.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===f.indexOf(n)&&229!==n&&f.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=u[t];e[t]&&-1===f.indexOf(n)?f.push(n):!e[t]&&f.indexOf(n)>-1?f.splice(f.indexOf(n),1):"metaKey"===t&&e[t]&&3===f.length&&(e.ctrlKey||e.shiftKey||e.altKey||(f=f.slice(f.indexOf(n))))})),n in c){for(var a in c[n]=!0,s)s[a]===n&&(S[a]=!0);if(!t)return}for(var r in c)Object.prototype.hasOwnProperty.call(c,r)&&(c[r]=e[u[r]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===f.indexOf(17)&&f.push(17),-1===f.indexOf(18)&&f.push(18),c[17]=!0,c[18]=!0);var i=g();if(t)for(var o=0;o<t.length;o++)t[o].scope===i&&("keydown"===e.type&&t[o].keydown||"keyup"===e.type&&t[o].keyup)&&_(e,t[o],i);if(n in d)for(var l=0;l<d[n].length;l++)if(("keydown"===e.type&&d[n][l].keydown||"keyup"===e.type&&d[n][l].keyup)&&d[n][l].key){for(var p=d[n][l],m=p.splitKey,h=p.key.split(m),b=[],y=0;y<h.length;y++)b.push(v(h[y]));b.sort().join("")===f.sort().join("")&&_(e,p,i)}}}function S(e,t,n){f=[];var a=o(e),l=[],u="all",p=document,m=0,b=!1,g=!0,y="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(u=t.scope),t.element&&(p=t.element),t.keyup&&(b=t.keyup),void 0!==t.keydown&&(g=t.keydown),"string"==typeof t.splitKey&&(y=t.splitKey)),"string"==typeof t&&(u=t);m<a.length;m++)l=[],(e=a[m].split(y)).length>1&&(l=i(s,e)),(e="*"===(e=e[e.length-1])?"*":v(e))in d||(d[e]=[]),d[e].push({keyup:b,keydown:g,scope:u,mods:l,shortcut:a[m],method:n,key:a[m],splitKey:y});void 0!==p&&!function(e){return h.indexOf(e)>-1}(p)&&window&&(h.push(p),r(p,"keydown",(function(e){w(e)})),r(window,"focus",(function(){f=[]})),r(p,"keyup",(function(e){w(e),function(e){var t=e.keyCode||e.which||e.charCode,n=f.indexOf(t);if(n>=0&&f.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&f.splice(0,f.length),93!==t&&224!==t||(t=91),t in c)for(var a in c[t]=!1,s)s[a]===t&&(S[a]=!1)}(e)})))}var x={setScope:b,getScope:g,deleteScope:function(e,t){var n,a;for(var r in e||(e=g()),d)if(Object.prototype.hasOwnProperty.call(d,r))for(n=d[r],a=0;a<n.length;)n[a].scope===e?n.splice(a,1):a++;g()===e&&b(t||"all")},getPressedKeyCodes:function(){return f.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=v(e)),-1!==f.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,a=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(a=!1),a},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&y(e)}));else if("object"==typeof e)e.key&&y(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var r=n[0],i=n[1];"function"==typeof r&&(i=r,r=""),y({key:e,scope:r,method:i,splitKey:"+"})}}else Object.keys(d).forEach((function(e){return delete d[e]}))}};for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(S[E]=x[E]);if("undefined"!=typeof window){var O=window.hotkeys;S.noConflict=function(e){return e&&window.hotkeys===S&&(window.hotkeys=O),S},window.hotkeys=S}t.default=S},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var a;!function(r){"use strict";var i=r.HTMLCanvasElement&&r.HTMLCanvasElement.prototype,o=r.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),l=o&&r.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),s=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder,u=(o||s)&&r.atob&&r.ArrayBuffer&&r.Uint8Array&&function(e){var t,n,a,r,i,u;for(t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURIComponent(e.split(",")[1]),n=new ArrayBuffer(t.length),a=new Uint8Array(n),r=0;r<t.length;r+=1)a[r]=t.charCodeAt(r);return i=e.split(",")[0].split(":")[1].split(";")[0],o?new Blob([l?a:n],{type:i}):((u=new s).append(n),u.getBlob(i))};r.HTMLCanvasElement&&!i.toBlob&&(i.mozGetAsFile?i.toBlob=function(e,t,n){n&&i.toDataURL&&u?e(u(this.toDataURL(t,n))):e(this.mozGetAsFile("blob",t))}:i.toDataURL&&u&&(i.toBlob=function(e,t,n){e(u(this.toDataURL(t,n)))})),void 0===(a=function(){return u}.call(t,n,t,e))||(e.exports=a)}(window)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=a(n(956)),o=n(957),l=r(n(0));function s(e,t,n,a){const r=t?null:function(e){const t={};return e.bg&&(t.backgroundColor=`rgb(${e.bg})`),e.fg&&(t.color=`rgb(${e.fg})`),t}(n),i=t?function(e){let t="";return e.bg&&(t+=e.bg+"-bg "),e.fg&&(t+=e.fg+"-fg "),e.decoration&&(t+=`ansi-${e.decoration} `),""===t?null:(t=t.substring(0,t.length-1),t)}(n):null;if(!e)return l.createElement("span",{style:r,key:a,className:i},n.content);const o=[],s=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let u,c=0;for(;null!==(u=s.exec(n.content));){const[,e,t]=u,a=u.index+e.length;a>c&&o.push(n.content.substring(c,a));const r=t.startsWith("www.")?"http://"+t:t;o.push(l.createElement("a",{key:c,href:r,target:"_blank"},""+t)),c=s.lastIndex}return c<n.content.length&&o.push(n.content.substring(c)),l.createElement("span",{style:r,key:a,className:i},o)}t.default=function(e){const{className:t,useClasses:n,children:a,linkify:r}=e;return l.createElement("code",{className:t},function(e,t=!1){return e=o.escapeCarriageReturn(function(e){let t=e;do{t=(e=t).replace(/[^\n]\x08/gm,"")}while(t.length<e.length);return e}(e)),i.default.ansiToJson(e,{json:!0,remove_empty:!0,use_classes:t})}(null!=a?a:"",null!=n&&n).map(s.bind(null,null!=r&&r,null!=n&&n)))}},function(e,t,n){"use strict";var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();var r=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0}return a(e,null,[{key:"escapeForHtml",value:function(t){return(new e).escapeForHtml(t)}},{key:"linkify",value:function(t){return(new e).linkify(t)}},{key:"ansiToHtml",value:function(t,n){return(new e).ansiToHtml(t,n)}},{key:"ansiToJson",value:function(t,n){return(new e).ansiToJson(t,n)}},{key:"ansiToText",value:function(t){return(new e).ansiToText(t)}}]),a(e,[{key:"setupPalette",value:function(){this.PALETTE_COLORS=[];for(var e=0;e<2;++e)for(var t=0;t<8;++t)this.PALETTE_COLORS.push(r[e][t].color);for(var n=[0,95,135,175,215,255],a=function(e,t,a){return n[e]+", "+n[t]+", "+n[a]},i=0;i<6;++i)for(var o=0;o<6;++o)for(var l=0;l<6;++l)this.PALETTE_COLORS.push(a(i,o,l));for(var s=8,u=0;u<24;++u,s+=10)this.PALETTE_COLORS.push(a(s,s,s))}},{key:"escapeForHtml",value:function(e){return e.replace(/[&<>]/gm,(function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":""}))}},{key:"linkify",value:function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,(function(e){return'<a href="'+e+'">'+e+"</a>"}))}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,n){var a=this,r=e.split(/\033\[/),i=r.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);var o=r.map((function(e){return a.processChunk(e,t,n)}));if(t&&t.json){var l=this.processChunkJson("");return l.content=i,l.clearLine=t.clearLine,o.unshift(l),t.remove_empty&&(o=o.filter((function(e){return!e.isEmpty()}))),o}return o.unshift(i),o.join("")}},{key:"processChunkJson",value:function(e,t,n){var a=(t=void 0===t?{}:t).use_classes=void 0!==t.use_classes&&t.use_classes,i=t.key=a?"class":"color",o={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,clearLine:t.clearLine,decoration:null,was_processed:!1,isEmpty:function(){return!o.content}},l=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!l)return o;o.content=l[4];var s=l[2].split(";");if(""!==l[1]||"m"!==l[3])return o;if(!n)return o;for(this.decoration=null;s.length>0;){var u=s.shift(),c=parseInt(u);if(isNaN(c)||0===c)this.fg=this.bg=this.decoration=null;else if(1===c)this.decoration="bold";else if(2===c)this.decoration="dim";else if(3==c)this.decoration="italic";else if(4==c)this.decoration="underline";else if(5==c)this.decoration="blink";else if(7===c)this.decoration="reverse";else if(8===c)this.decoration="hidden";else if(9===c)this.decoration="strikethrough";else if(39==c)this.fg=null;else if(49==c)this.bg=null;else if(c>=30&&c<38)this.fg=r[0][c%10][i];else if(c>=90&&c<98)this.fg=r[1][c%10][i];else if(c>=40&&c<48)this.bg=r[0][c%10][i];else if(c>=100&&c<108)this.bg=r[1][c%10][i];else if(38===c||48===c){var d=38===c;if(s.length>=1){var p=s.shift();if("5"===p&&s.length>=1){var f=parseInt(s.shift());if(f>=0&&f<=255)if(a){var m=f>=16?"ansi-palette-"+f:r[f>7?1:0][f%8].class;d?this.fg=m:this.bg=m}else this.PALETTE_COLORS||this.setupPalette(),d?this.fg=this.PALETTE_COLORS[f]:this.bg=this.PALETTE_COLORS[f]}else if("2"===p&&s.length>=3){var h=parseInt(s.shift()),v=parseInt(s.shift()),b=parseInt(s.shift());if(h>=0&&h<=255&&v>=0&&v<=255&&b>=0&&b<=255){var g=h+", "+v+", "+b;a?d?(this.fg="ansi-truecolor",this.fg_truecolor=g):(this.bg="ansi-truecolor",this.bg_truecolor=g):d?this.fg=g:this.bg=g}}}}}if(null===this.fg&&null===this.bg&&null===this.decoration)return o;return o.fg=this.fg,o.bg=this.bg,o.fg_truecolor=this.fg_truecolor,o.bg_truecolor=this.bg_truecolor,o.decoration=this.decoration,o.was_processed=!0,o}},{key:"processChunk",value:function(e,t,n){var a=this;t=t||{};var r=this.processChunkJson(e,t,n);if(t.json)return r;if(r.isEmpty())return"";if(!r.was_processed)return r.content;var i=t.use_classes,o=[],l=[],s={},u=function(e){var t=[],n=void 0;for(n in e)e.hasOwnProperty(n)&&t.push("data-"+n+'="'+a.escapeForHtml(e[n])+'"');return t.length>0?" "+t.join(" "):""};return r.fg&&(i?(l.push(r.fg+"-fg"),null!==r.fg_truecolor&&(s["ansi-truecolor-fg"]=r.fg_truecolor,r.fg_truecolor=null)):o.push("color:rgb("+r.fg+")")),r.bg&&(i?(l.push(r.bg+"-bg"),null!==r.bg_truecolor&&(s["ansi-truecolor-bg"]=r.bg_truecolor,r.bg_truecolor=null)):o.push("background-color:rgb("+r.bg+")")),r.decoration&&(i?l.push("ansi-"+r.decoration):"bold"===r.decoration?o.push("font-weight:bold"):"dim"===r.decoration?o.push("opacity:0.5"):"italic"===r.decoration?o.push("font-style:italic"):"reverse"===r.decoration?o.push("filter:invert(100%)"):"hidden"===r.decoration?o.push("visibility:hidden"):"strikethrough"===r.decoration?o.push("text-decoration:line-through"):o.push("text-decoration:"+r.decoration)),i?'<span class="'+l.join(" ")+'"'+u(s)+">"+r.content+"</span>":'<span style="'+o.join(";")+'"'+u(s)+">"+r.content+"</span>"}}]),e}();e.exports=i},function(e,t){function n(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r[^$]/.test(e);){var t=/^(.*)\r+/m.exec(e)[1],n=/\r+(.*)$/m.exec(e)[1];n+=t.slice(n.length,t.length),e=e.replace(/\r+.*$/m,"\r").replace(/^.*\r/m,n)}return e}function a(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}function r(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),n=[];t.length>0;){var r=a(t);n.push(t[r]),t=t.slice(r+1)}return n.join("\r")}e.exports=n,e.exports.escapeCarriageReturn=n,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return r(e);var t=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return n(e.slice(0,t))+"\n"+r(e.slice(t+1))}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(290);n.d(t,"Line",(function(){return a.default}));var r=n(291);n.d(t,"Circle",(function(){return r.default})),t.default={Line:a.default,Circle:r.default}},,,,,,,,,,,,function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Player",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Video",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BigPlayButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"LoadingSpinner",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"PosterImage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Bezel",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Shortcut",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PlayToggle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"ForwardControl",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"ReplayControl",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"FullscreenToggle",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"ProgressControl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"PlayProgressBar",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"LoadProgressBar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"MouseTimeDisplay",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"VolumeMenuButton",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"PlaybackRateMenuButton",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"PlaybackRate",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"ClosedCaptionButton",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"RemainingTimeDisplay",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"CurrentTimeDisplay",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"DurationDisplay",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"TimeDivider",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"MenuButton",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"playerReducer",{enumerable:!0,get:function(){return M.playerReducer}}),Object.defineProperty(t,"operationReducer",{enumerable:!0,get:function(){return M.operationReducer}}),t.videoActions=t.playerActions=void 0;var i=r(n(985)),o=r(n(437)),l=r(n(434)),s=r(n(435)),u=r(n(436)),c=r(n(285)),d=r(n(440)),p=r(n(441)),f=r(n(442)),m=r(n(448)),h=r(n(449)),v=r(n(451)),b=r(n(452)),g=r(n(443)),y=r(n(444)),_=r(n(445)),w=r(n(446)),S=r(n(447)),x=r(n(457)),E=r(n(286)),O=r(n(1003)),C=r(n(1004)),k=r(n(453)),T=r(n(454)),N=r(n(455)),P=r(n(456)),I=r(n(287)),A=a(n(199));t.playerActions=A;var j=a(n(284));t.videoActions=j;var M=n(432)},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(96)),o=r(n(282)),l=r(n(283)),s=r(n(25)),u=r(n(26)),c=r(n(32)),d=r(n(34)),p=r(n(33)),f=r(n(35)),m=r(n(3)),h=a(n(0)),v=r(n(16)),b=r(n(988)),g=r(n(434)),y=r(n(435)),_=r(n(436)),w=r(n(437)),S=r(n(440)),x=r(n(441)),E=r(n(442)),O=a(n(1002)),C=n(200),k=n(80),T=r(n(433)),N={children:m.default.any,width:m.default.oneOfType([m.default.string,m.default.number]),height:m.default.oneOfType([m.default.string,m.default.number]),fluid:m.default.bool,muted:m.default.bool,playsInline:m.default.bool,aspectRatio:m.default.string,className:m.default.string,videoId:m.default.string,startTime:m.default.number,loop:m.default.bool,autoPlay:m.default.bool,src:m.default.string,poster:m.default.string,preload:m.default.oneOf(["auto","metadata","none"]),onLoadStart:m.default.func,onWaiting:m.default.func,onCanPlay:m.default.func,onCanPlayThrough:m.default.func,onPlaying:m.default.func,onEnded:m.default.func,onSeeking:m.default.func,onSeeked:m.default.func,onPlay:m.default.func,onPause:m.default.func,onProgress:m.default.func,onDurationChange:m.default.func,onError:m.default.func,onSuspend:m.default.func,onAbort:m.default.func,onEmptied:m.default.func,onStalled:m.default.func,onLoadedMetadata:m.default.func,onLoadedData:m.default.func,onTimeUpdate:m.default.func,onRateChange:m.default.func,onVolumeChange:m.default.func,store:m.default.object},P=function(e){function t(e){var n;return(0,s.default)(this,t),(n=(0,c.default)(this,(0,d.default)(t).call(this,e))).controlsHideTimer=null,n.video=null,n.manager=new b.default(e.store),n.actions=n.manager.getActions(),n.manager.subscribeToPlayerStateChange(n.handleStateChange.bind((0,p.default)(n))),n.getStyle=n.getStyle.bind((0,p.default)(n)),n.handleResize=n.handleResize.bind((0,p.default)(n)),n.getChildren=n.getChildren.bind((0,p.default)(n)),n.handleMouseMove=(0,k.throttle)(n.handleMouseMove.bind((0,p.default)(n)),250),n.handleMouseDown=n.handleMouseDown.bind((0,p.default)(n)),n.startControlsTimer=n.startControlsTimer.bind((0,p.default)(n)),n.handleFullScreenChange=n.handleFullScreenChange.bind((0,p.default)(n)),n.handleKeyDown=n.handleKeyDown.bind((0,p.default)(n)),n.handleFocus=n.handleFocus.bind((0,p.default)(n)),n.handleBlur=n.handleBlur.bind((0,p.default)(n)),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.handleResize(),window.addEventListener("resize",this.handleResize),T.default.addEventListener(this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),T.default.removeEventListener(this.handleFullScreenChange),this.controlsHideTimer&&window.clearTimeout(this.controlsHideTimer)}},{key:"getDefaultChildren",value:function(e){var t=this;return[h.default.createElement(w.default,{ref:function(e){t.video=e,t.manager.video=t.video},key:"video",order:0},e),h.default.createElement(_.default,{key:"poster-image",order:1}),h.default.createElement(y.default,{key:"loading-spinner",order:2}),h.default.createElement(S.default,{key:"bezel",order:3}),h.default.createElement(g.default,{key:"big-play-button",order:4}),h.default.createElement(E.default,{key:"control-bar",order:5}),h.default.createElement(x.default,{key:"shortcut",order:99})]}},{key:"getChildren",value:function(e){e.className;var t=e.children,n=(0,l.default)(e,["className","children"]),a=h.default.Children.toArray(this.props.children).filter((function(e){return!(0,k.isVideoChild)(e)})),r=this.getDefaultChildren(t);return(0,k.mergeAndSortChildren)(r,a,n)}},{key:"setWidthOrHeight",value:function(e,t,n){var a;"string"==typeof n?"auto"===n?a="auto":n.match(/\d+%/)&&(a=n):"number"==typeof n&&(a="".concat(n,"px")),Object.assign(e,(0,o.default)({},t,a))}},{key:"getStyle",value:function(){var e,t,n=this.props,a=n.fluid,r=n.aspectRatio,i=n.height,o=n.width,l=this.manager.getState().player,s={},u=(void 0!==r&&"auto"!==r?r:l.videoWidth?"".concat(l.videoWidth,":").concat(l.videoHeight):"16:9").split(":"),c=u[1]/u[0];return e=void 0!==o?o:void 0!==i?i/c:l.videoWidth||400,t=void 0!==i?i:e*c,a?s.paddingTop="".concat(100*c,"%"):(this.setWidthOrHeight(s,"width",e),this.setWidthOrHeight(s,"height",t)),s}},{key:"getState",value:function(){return this.manager.getState()}},{key:"play",value:function(){this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"load",value:function(){this.video.load()}},{key:"addTextTrack",value:function(){var e;(e=this.video).addTextTrack.apply(e,arguments)}},{key:"canPlayType",value:function(){var e;(e=this.video).canPlayType.apply(e,arguments)}},{key:"seek",value:function(e){this.video.seek(e)}},{key:"forward",value:function(e){this.video.forward(e)}},{key:"replay",value:function(e){this.video.replay(e)}},{key:"toggleFullscreen",value:function(){this.video.toggleFullscreen()}},{key:"subscribeToStateChange",value:function(e){return this.manager.subscribeToPlayerStateChange(e)}},{key:"handleResize",value:function(){}},{key:"handleFullScreenChange",value:function(e){e.target===this.manager.rootElement&&this.actions.handleFullscreenChange(T.default.isFullscreen)}},{key:"handleMouseDown",value:function(){this.startControlsTimer()}},{key:"handleMouseMove",value:function(){this.startControlsTimer()}},{key:"handleKeyDown",value:function(){this.startControlsTimer()}},{key:"startControlsTimer",value:function(){var e=this,t=3e3;h.default.Children.forEach(this.props.children,(function(e){if(h.default.isValidElement(e)&&e.type===E.default){var n=e.props.autoHideTime;"number"==typeof n&&(t=n)}})),this.actions.userActivate(!0),clearTimeout(this.controlsHideTimer),this.controlsHideTimer=setTimeout((function(){e.actions.userActivate(!1)}),t)}},{key:"handleStateChange",value:function(e,t){e.isFullscreen!==t.isFullscreen&&(this.handleResize(),(0,C.focusNode)(this.manager.rootElement)),this.forceUpdate()}},{key:"handleFocus",value:function(){this.actions.activate(!0)}},{key:"handleBlur",value:function(){this.actions.activate(!1)}},{key:"render",value:function(){var e=this,t=this.props.fluid,n=this.manager.getState().player,a=n.paused,r=n.hasStarted,o=n.waiting,l=n.seeking,s=n.isFullscreen,u=n.userActivity,c=(0,i.default)({},this.props,{player:n,actions:this.actions,manager:this.manager,store:this.manager.store,video:this.video?this.video.video:null}),d=this.getChildren(c);return h.default.createElement("div",{className:(0,v.default)({"video-react-controls-enabled":!0,"video-react-has-started":r,"video-react-paused":a,"video-react-playing":!a,"video-react-waiting":o,"video-react-seeking":l,"video-react-fluid":t,"video-react-fullscreen":s,"video-react-user-inactive":!u,"video-react-user-active":u,"video-react-workinghover":!O.IS_IOS},"video-react",this.props.className),style:this.getStyle(),ref:function(t){e.manager.rootElement=t},role:"region",onTouchStart:this.handleMouseDown,onMouseDown:this.handleMouseDown,onTouchMove:this.handleMouseMove,onMouseMove:this.handleMouseMove,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:"-1"},d)}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),t}(h.Component);t.default=P,P.contextTypes={store:m.default.object},P.propTypes=N,P.defaultProps={fluid:!0,muted:!1,playsInline:!1,preload:"auto",aspectRatio:"auto"},P.displayName="Player"},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,a)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(96)),o=r(n(25)),l=r(n(26)),s=n(989),u=r(n(432)),c=a(n(199)),d=a(n(284)),p=function(){function e(t){(0,o.default)(this,e),this.store=t||(0,s.createStore)(u.default),this.video=null,this.rootElement=null}return(0,l.default)(e,[{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=(0,i.default)({},c,d);return Object.keys(n).filter((function(e){return"function"==typeof n[e]})).reduce((function(a,r){var i;return a[r]=(i=n[r],function(){var n=i.apply(e,arguments);void 0!==n&&t(n)}),a}),{})}},{key:"getState",value:function(){return this.store.getState()}},{key:"subscribeToStateChange",value:function(e,t){t||(t=this.getState.bind(this));var n=t();return this.store.subscribe((function(){var a=t();if(a!==n){var r=n;n=a,e(a,r)}}))}},{key:"subscribeToOperationStateChange",value:function(e){var t=this;return this.subscribeToStateChange(e,(function(){return t.getState().operation}))}},{key:"subscribeToPlayerStateChange",value:function(e){var t=this;return this.subscribeToStateChange(e,(function(){return t.getState().player}))}}]),e}();t.default=p},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i})),n.d(t,"applyMiddleware",(function(){return v})),n.d(t,"bindActionCreators",(function(){return d})),n.d(t,"combineReducers",(function(){return u})),n.d(t,"compose",(function(){return h})),n.d(t,"createStore",(function(){return l}));var a=n(303),r=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+r(),REPLACE:"@@redux/REPLACE"+r(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+r()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(l)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,u=t,c=[],d=c,p=!1;function f(){d===c&&(d=c.slice())}function m(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var n=d.indexOf(e);d.splice(n,1),c=null}}}function v(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,u=s(u,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,v({type:i.REPLACE})}function g(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[a.default]=function(){return this},e}return v({type:i.INIT}),(r={dispatch:v,subscribe:h,getState:m,replaceReducer:b})[a.default]=g,r}function s(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){for(var t=Object.keys(e),n={},a=0;a<t.length;a++){var r=t[a];0,"function"==typeof e[r]&&(n[r]=e[r])}var o,l=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var a=!1,r={},i=0;i<l.length;i++){var u=l[i],c=n[u],d=e[u],p=c(d,t);if(void 0===p){var f=s(u,t);throw new Error(f)}r[u]=p,a=a||p!==d}return(a=a||l.length!==Object.keys(e).length)?r:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var a in e){var r=e[a];"function"==typeof r&&(n[a]=c(r,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},i=t.map((function(e){return e(r)}));return m({},n,{dispatch:a=h.apply(void 0,i)(n.dispatch)})}}}},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.USER_ACTIVATE:return(0,r.default)({},e,{userActivity:t.activity});case o.PLAYER_ACTIVATE:return(0,r.default)({},e,{isActive:t.activity});case o.FULLSCREEN_CHANGE:return(0,r.default)({},e,{isFullscreen:!!t.isFullscreen});case i.SEEKING_TIME:return(0,r.default)({},e,{seekingTime:t.time});case i.END_SEEKING:return(0,r.default)({},e,{seekingTime:0});case i.LOAD_START:return(0,r.default)({},e,t.videoProps,{hasStarted:!1,ended:!1});case i.CAN_PLAY:return(0,r.default)({},e,t.videoProps,{waiting:!1});case i.WAITING:return(0,r.default)({},e,t.videoProps,{waiting:!0});case i.CAN_PLAY_THROUGH:case i.PLAYING:return(0,r.default)({},e,t.videoProps,{waiting:!1});case i.PLAY:return(0,r.default)({},e,t.videoProps,{ended:!1,paused:!1,autoPaused:!1,waiting:!1,hasStarted:!0});case i.PAUSE:return(0,r.default)({},e,t.videoProps,{paused:!0});case i.END:return(0,r.default)({},e,t.videoProps,{ended:!0});case i.SEEKING:return(0,r.default)({},e,t.videoProps,{seeking:!0});case i.SEEKED:return(0,r.default)({},e,t.videoProps,{seeking:!1});case i.ERROR:return(0,r.default)({},e,t.videoProps,{error:"UNKNOWN ERROR",ended:!0});case i.DURATION_CHANGE:case i.TIME_UPDATE:case i.VOLUME_CHANGE:case i.PROGRESS_CHANGE:case i.RATE_CHANGE:case i.SUSPEND:case i.ABORT:case i.EMPTIED:case i.STALLED:case i.LOADED_META_DATA:case i.LOADED_DATA:case i.RESIZE:return(0,r.default)({},e,t.videoProps);case i.ACTIVATE_TEXT_TRACK:return(0,r.default)({},e,{activeTextTrack:t.textTrack});default:return e}};var r=a(n(96)),i=n(284),o=n(199),l={currentSrc:null,duration:0,currentTime:0,seekingTime:0,buffered:null,waiting:!1,seeking:!1,paused:!0,autoPaused:!1,ended:!1,playbackRate:1,muted:!1,volume:1,readyState:0,networkState:0,videoWidth:0,videoHeight:0,hasStarted:!1,userActivity:!0,isActive:!1,isFullscreen:!1,activeTextTrack:null}},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.OPERATE:return(0,r.default)({},e,{count:e.count+1,operation:(0,r.default)({},e.operation,t.operation)});default:return e}};var r=a(n(96)),i=n(199),o={count:0,operation:{action:"",source:""}}},function(e,t,n){var a=n(439);e.exports=function(e){if(Array.isArray(e))return a(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var a=n(439);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=a(n(163)),i=a(n(96)),o=a(n(3)),l=a(n(0)),s=a(n(16)),u=a(n(458)),c=a(n(997)),d={inline:o.default.bool,onClick:o.default.func.isRequired,onFocus:o.default.func,onBlur:o.default.func,className:o.default.string};function p(e){var t=e.inline,n=e.className,a=(0,i.default)({},e);return delete a.children,delete a.inline,delete a.className,l.default.createElement(u.default,(0,r.default)({className:(0,s.default)(n,{"video-react-menu-button-inline":!!t,"video-react-menu-button-popup":!t},"video-react-control video-react-button video-react-menu-button")},a),l.default.createElement(c.default,e))}p.propTypes=d,p.defaultProps={inline:!0},p.displayName="PopupButton"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f={player:d.default.object,children:d.default.any},m=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e=this.props.children;return p.default.createElement("div",{className:"video-react-menu",onClick:this.handleClick},p.default.createElement("div",{className:"video-react-menu-content"},e))}}]),t}(p.Component);t.default=m,m.propTypes=f,m.displayName="Popup"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(163)),o=r(n(25)),l=r(n(26)),s=r(n(32)),u=r(n(34)),c=r(n(33)),d=r(n(35)),p=r(n(3)),f=a(n(0)),m=r(n(16)),h=r(n(285)),v=r(n(999)),b={actions:p.default.object,player:p.default.object,className:p.default.string,onFocus:p.default.func,onBlur:p.default.func},g=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,s.default)(this,(0,u.default)(t).call(this,e,n))).state={percentage:"0%"},a.handleMouseMove=a.handleMouseMove.bind((0,c.default)(a)),a.handlePercentageChange=a.handlePercentageChange.bind((0,c.default)(a)),a.checkMuted=a.checkMuted.bind((0,c.default)(a)),a.getPercent=a.getPercent.bind((0,c.default)(a)),a.stepForward=a.stepForward.bind((0,c.default)(a)),a.stepBack=a.stepBack.bind((0,c.default)(a)),a.handleFocus=a.handleFocus.bind((0,c.default)(a)),a.handleBlur=a.handleBlur.bind((0,c.default)(a)),a.handleClick=a.handleClick.bind((0,c.default)(a)),a}return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){}},{key:"getPercent",value:function(){var e=this.props.player;return e.muted?0:e.volume}},{key:"checkMuted",value:function(){var e=this.props,t=e.player,n=e.actions;t.muted&&n.mute(!1)}},{key:"handleMouseMove",value:function(e){var t=this.props.actions;this.checkMuted();var n=this.slider.calculateDistance(e);t.changeVolume(n)}},{key:"stepForward",value:function(){var e=this.props,t=e.player,n=e.actions;this.checkMuted(),n.changeVolume(t.volume+.1)}},{key:"stepBack",value:function(){var e=this.props,t=e.player,n=e.actions;this.checkMuted(),n.changeVolume(t.volume-.1)}},{key:"handleFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e)}},{key:"handlePercentageChange",value:function(e){e!==this.state.percentage&&this.setState({percentage:e})}},{key:"handleClick",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className,r=(100*n.volume).toFixed(2);return f.default.createElement(h.default,(0,i.default)({ref:function(t){e.slider=t},label:"volume level",valuenow:r,valuetext:"".concat(r,"%"),onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,sliderActive:this.handleFocus,sliderInactive:this.handleBlur,getPercent:this.getPercent,onPercentageChange:this.handlePercentageChange,stepForward:this.stepForward,stepBack:this.stepBack},this.props,{className:(0,m.default)(a,"video-react-volume-bar video-react-slider-bar")}),f.default.createElement(v.default,this.props))}}]),t}(f.Component);g.propTypes=b,g.displayName="VolumeBar";var y=g;t.default=y},function(e,t,n){"use strict";var a=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(3)),i=a(n(0)),o=a(n(16)),l={percentage:r.default.string,vertical:r.default.bool,className:r.default.string};function s(e){var t=e.percentage,n=e.vertical,a=e.className,r={};return n?r.height=t:r.width=t,i.default.createElement("div",{className:(0,o.default)(a,"video-react-volume-level"),style:r},i.default.createElement("span",{className:"video-react-control-text"}))}s.propTypes=l,s.defaultProps={percentage:"100%",vertical:!1},s.displayName="VolumeLevel";var u=s;t.default=u},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f={children:d.default.any},m=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){return p.default.createElement("div",{className:"video-react-menu video-react-lock-showing",role:"presentation",onClick:this.handleClick},p.default.createElement("ul",{className:"video-react-menu-content"},this.props.children))}}]),t}(p.Component);t.default=m,m.propTypes=f,m.displayName="Menu"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m={item:d.default.object,index:d.default.number,activateIndex:d.default.number,onSelectItem:d.default.func},h=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,u.default)(a)),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.index;(0,e.onSelectItem)(t)}},{key:"render",value:function(){var e=this.props,t=e.item,n=e.index,a=e.activateIndex;return p.default.createElement("li",{className:(0,f.default)({"video-react-menu-item":!0,"video-react-selected":n===a}),role:"menuitem",onClick:this.handleClick},t.label,p.default.createElement("span",{className:"video-react-control-text"}))}}]),t}(p.Component);t.default=h,h.propTypes=m,h.displayName="MenuItem"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_IOS=t.IS_IPOD=t.IS_IPHONE=t.IS_IPAD=void 0;var a="undefined"!=typeof window&&window.navigator?window.navigator.userAgent:"",r=/iPad/i.test(a);t.IS_IPAD=r;var i=/iPhone/i.test(a)&&!r;t.IS_IPHONE=i;var o=/iPod/i.test(a);t.IS_IPOD=o;var l=i||r||o;t.IS_IOS=l},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(35)),c=a(n(0)),d=r(n(286)),p=n(80),f=function(e){function t(e,n){var a;return(0,i.default)(this,t),a=(0,l.default)(this,(0,s.default)(t).call(this,e,n)),(0,p.deprecatedWarning)("PlaybackRate","PlaybackRateMenuButton"),a}return(0,u.default)(t,e),(0,o.default)(t,[{key:"render",value:function(){return c.default.createElement(d.default,this.props)}}]),t}(c.Component);t.default=f,f.displayName="PlaybackRate"},function(e,t,n){"use strict";var a=n(30),r=n(14);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(25)),o=r(n(26)),l=r(n(32)),s=r(n(34)),u=r(n(33)),c=r(n(35)),d=r(n(3)),p=a(n(0)),f=r(n(16)),m=r(n(287)),h={player:d.default.object,actions:d.default.object,className:d.default.string,offMenuText:d.default.string,showOffMenu:d.default.bool,kinds:d.default.array},v=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,l.default)(this,(0,s.default)(t).call(this,e,n))).getTextTrackItems=a.getTextTrackItems.bind((0,u.default)(a)),a.updateState=a.updateState.bind((0,u.default)(a)),a.handleSelectItem=a.handleSelectItem.bind((0,u.default)(a)),a.state=a.getTextTrackItems(),a}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidUpdate",value:function(){this.updateState()}},{key:"getTextTrackItems",value:function(){var e=this.props,t=e.kinds,n=e.player,a=e.offMenuText,r=e.showOffMenu,i=n.textTracks,o=n.activeTextTrack,l={items:[],selectedIndex:0},s=Array.from(i||[]);return 0===s.length||(r&&l.items.push({label:a||"Off",value:null}),s.forEach((function(e){t.length&&!t.includes(e.kind)||l.items.push({label:e.label,value:e.language})})),l.selectedIndex=l.items.findIndex((function(e){return o&&o.language===e.value})),-1===l.selectedIndex&&(l.selectedIndex=0)),l}},{key:"updateState",value:function(){var e=this.getTextTrackItems();e.selectedIndex===this.state.selectedIndex&&this.textTrackItemsAreEqual(e.items,this.state.items)||this.setState(e)}},{key:"textTrackItemsAreEqual",value:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!t[n]||e[n].label!==t[n].label||e[n].value!==t[n].value)return!1;return!0}},{key:"handleSelectItem",value:function(e){var t=this.props,n=t.player,a=t.actions,r=t.showOffMenu,i=n.textTracks;Array.from(i).forEach((function(t,n){e===(r?n+1:n)?(t.mode="showing",a.activateTextTrack(t)):t.mode="hidden"}))}},{key:"render",value:function(){var e=this.state,t=e.items,n=e.selectedIndex;return p.default.createElement(m.default,{className:(0,f.default)("video-react-closed-caption",this.props.className),onSelectItem:this.handleSelectItem,items:t,selectedIndex:n},p.default.createElement("span",{className:"video-react-control-text"},"Closed Caption"))}}]),t}(p.Component);v.propTypes=h,v.defaultProps={offMenuText:"Off",showOffMenu:!0,kinds:["captions","subtitles"]},v.displayName="ClosedCaptionButton";var b=v;t.default=b},,,function(e,t,n){"use strict";n.r(t);var a=n(168);t.default=a.default},function(e,t,n){"use strict";n.r(t),n.d(t,"warning",(function(){return r})),n.d(t,"note",(function(){return i})),n.d(t,"resetWarned",(function(){return o})),n.d(t,"call",(function(){return l})),n.d(t,"warningOnce",(function(){return s})),n.d(t,"noteOnce",(function(){return u}));var a={};function r(e,t){0}function i(e,t){0}function o(){a={}}function l(e,t,n){t||a[n]||(e(!1,n),a[n]=!0)}function s(e,t){l(r,e,t)}function u(e,t){l(i,e,t)}t.default=s},,function(e,t,n){"use strict";(function(n){function a(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof n&&!0;function i(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,l=Array.prototype.splice,s=Object.prototype.toString;function u(e){return s.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return d(t).forEach((function(n){o.call(t,n)&&(e[n]=t[n])})),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function p(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===u(e)?new Map(e):"Set"===u(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=c({},m),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,a="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(a)||i(!Array.isArray(a),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),i("object"==typeof a&&null!==a,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var r=e;return d(a).forEach((function(t){if(o.call(n.commands,t)){var i=e===r;r=n.commands[t](a[t],r,a,e),i&&n.isEquals(r,e)&&(r=e)}else{var l="Map"===u(e)?n.update(e.get(t),a[t]):n.update(e[t],a[t]),s="Map"===u(r)?r.get(t):r[t];n.isEquals(l,s)&&(void 0!==l||o.call(e,t))||(r===e&&(r=p(e)),"Map"===u(r)?r.set(t,l):r[t]=l)}})),r},e}();t.Context=f;var m={$push:function(e,t,n){return v(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return v(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,r){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+a(e)})),g(t.$splice)}(t,n),e.forEach((function(e){g(e),t===r&&e.length&&(t=p(r)),l.apply(t,e)})),t},$set:function(e,t,n){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){b(e,"$toggle");var n=e.length?p(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,a){return b(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===a&&(t=p(a)),delete t[e])})),t},$add:function(e,t,n,a){return y(t,"$add"),b(e,"$add"),"Map"===u(t)?e.forEach((function(e){var n=e[0],r=e[1];t===a&&t.get(n)!==r&&(t=p(a)),t.set(n,r)})):e.forEach((function(e){t!==a||t.has(e)||(t=p(a)),t.add(e)})),t},$remove:function(e,t,n,a){return y(t,"$remove"),b(e,"$remove"),e.forEach((function(e){t===a&&t.has(e)&&(t=p(a)),t.delete(e)})),t},$merge:function(e,t,n,r){var o,l;return o=t,i((l=e)&&"object"==typeof l,(function(){return"update(): $merge expects a spec of type 'object'; got "+a(l)})),i(o&&"object"==typeof o,(function(){return"update(): $merge expects a target of type 'object'; got "+a(o)})),d(e).forEach((function(n){e[n]!==t[n]&&(t===r&&(t=p(r)),t[n]=e[n])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+a(n)+"."})),e(t)}},h=new f;function v(e,t,n){i(Array.isArray(e),(function(){return"update(): expected target of "+a(n)+" to be an array; got "+a(e)+"."})),b(t[n],n)}function b(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+a(t)+" to be an array; got "+a(e)+". Did you forget to wrap your parameter in an array?"}))}function g(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+a(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var n=u(e);i("Map"===n||"Set"===n,(function(){return"update(): "+a(t)+" expects a target of type Set or Map; got "+a(n)}))}t.isEquals=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=c(t.default,t)}).call(this,n(109))},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"QRCodeCanvas",(function(){return _})),n.d(t,"QRCodeSVG",(function(){return w})),n.d(t,"default",(function(){return S}));var a,r=n(0),i=n.n(r),o=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&c(e,n,t[n]);if(l)for(var n of l(t))u.call(t,n)&&c(e,n,t[n]);return e},p=(e,t)=>{var n={};for(var a in e)s.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&l)for(var a of l(e))t.indexOf(a)<0&&u.call(e,a)&&(n[a]=e[a]);return n};(e=>{const t=class{constructor(e,n,a,r){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version value out of range";if(r<-1||r>7)throw"Mask value out of range";this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(a);if(this.drawCodewords(l),-1==r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}i(0<=r&&r<=7),this.mask=r,this.applyMask(r),this.drawFormatBits(r),this.isFunction=[]}static encodeText(n,a){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,a)}static encodeBinary(n,a){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],a)}static encodeSegments(e,n,r=1,o=40,s=-1,u=!0){if(!(t.MIN_VERSION<=r&&r<=o&&o<=t.MAX_VERSION)||s<-1||s>7)throw"Invalid value";let c,d;for(c=r;;c++){const a=8*t.getNumDataCodewords(c,n),r=l.getTotalBits(e,c);if(r<=a){d=r;break}if(c>=o)throw"Data too long"}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(c,e)&&(n=e);let p=[];for(const t of e){a(t.mode.modeBits,4,p),a(t.numChars,t.mode.numCharCountBits(c),p);for(const e of t.getData())p.push(e)}i(p.length==d);const f=8*t.getNumDataCodewords(c,n);i(p.length<=f),a(0,Math.min(4,f-p.length),p),a(0,(8-p.length%8)%8,p),i(p.length%8==0);for(let e=236;p.length<f;e^=253)a(e,8,p);let m=[];for(;8*m.length<p.length;)m.push(0);return p.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(c,n,m,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let a=0;a<t;a++)0==n&&0==a||0==n&&a==t-1||n==t-1&&0==a||this.drawAlignmentPattern(e[n],e[a]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const a=21522^(t<<10|n);i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),a=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(a,i,n),this.setFunctionModule(i,a,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let a=-4;a<=4;a++){const r=Math.max(Math.abs(a),Math.abs(n)),i=e+a,o=t+n;0<=i&&i<this.size&&0<=o&&o<this.size&&this.setFunctionModule(i,o,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let a=-2;a<=2;a++)this.setFunctionModule(e+a,t+n,1!=Math.max(Math.abs(a),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,a=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,a))throw"Invalid argument";const r=t.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[a.ordinal][n],l=Math.floor(t.getNumRawDataModules(n)/8),s=r-l%r,u=Math.floor(l/r);let c=[];const d=t.reedSolomonComputeDivisor(o);for(let n=0,a=0;n<r;n++){let r=e.slice(a,a+u-o+(n<s?0:1));a+=r.length;const i=t.reedSolomonComputeRemainder(r,d);n<s&&r.push(0),c.push(r.concat(i))}let p=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!=u-o||n>=s)&&p.push(t[e])});return i(p.length==l),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw"Invalid argument";let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let a=0;a<this.size;a++)for(let i=0;i<2;i++){const o=t-i,l=0==(t+1&2)?this.size-1-a:a;!this.isFunction[l][o]&&n<8*e.length&&(this.modules[l][o]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw"Mask value out of range";for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let a;switch(e){case 0:a=(n+t)%2==0;break;case 1:a=t%2==0;break;case 2:a=n%3==0;break;case 3:a=(n+t)%3==0;break;case 4:a=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:a=n*t%2+n*t%3==0;break;case 6:a=(n*t%2+n*t%3)%2==0;break;case 7:a=((n+t)%2+n*t%3)%2==0;break;default:throw"Unreachable"}!this.isFunction[t][n]&&a&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let a=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==a?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),a||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),a=this.modules[n][o],r=1);e+=this.finderPenaltyTerminateAndCount(a,r,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let a=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==a?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),a||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),a=this.modules[o][n],r=1);e+=this.finderPenaltyTerminateAndCount(a,r,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let a=0;a<this.size-1;a++){const r=this.modules[n][a];r==this.modules[n][a+1]&&r==this.modules[n+1][a]&&r==this.modules[n+1][a+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const a=this.size*this.size,r=Math.ceil(Math.abs(20*n-10*a)/a)-1;return i(0<=r&&r<=9),e+=r*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let a=this.size-7;n.length<e;a-=t)n.splice(1,0,a);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw"Version number out of range";let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw"Degree out of range";let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let a=1;for(let r=0;r<e;r++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],a),e+1<n.length&&(n[e]^=n[e+1]);a=t.reedSolomonMultiply(a,2)}return n}static reedSolomonComputeRemainder(e,n){let a=n.map(e=>0);for(const r of e){const e=r^a.shift();a.push(0),n.forEach((n,r)=>a[r]^=t.reedSolomonMultiply(n,e))}return a}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw"Byte out of range";let n=0;for(let a=7;a>=0;a--)n=n<<1^285*(n>>>7),n^=(t>>>a&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function a(e,t,n){if(t<0||t>31||e>>>t!=0)throw"Value out of range";for(let a=t-1;a>=0;a--)n.push(e>>>a&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw"Assertion error"}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const o=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw"Invalid argument";this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)a(n,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw"String contains non-numeric characters";let t=[];for(let n=0;n<e.length;){const r=Math.min(e.length-n,3);a(parseInt(e.substr(n,r),10),3*r+1,t),n+=r}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!o.isAlphanumeric(e))throw"String contains unencodable characters in alphanumeric mode";let t,n=[];for(t=0;t+2<=e.length;t+=2){let r=45*o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));r+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),a(r,11,n)}return t<e.length&&a(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new o(o.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw"ECI assignment value out of range";if(e<128)a(e,8,t);else if(e<16384)a(2,2,t),a(e,14,t);else{if(!(e<1e6))throw"ECI assignment value out of range";a(6,3,t),a(e,21,t)}return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const a of e){const e=a.mode.numCharCountBits(t);if(a.numChars>=1<<e)return 1/0;n+=4+e+a.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let l=o;l.NUMERIC_REGEX=/^[0-9]*$/,l.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,l.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=l})(a||(a={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(a||(a={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(a||(a={}));var f=a,m={L:f.QrCode.Ecc.LOW,M:f.QrCode.Ecc.MEDIUM,Q:f.QrCode.Ecc.QUARTILE,H:f.QrCode.Ecc.HIGH},h={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function v(e,t=0){const n=[];return e.forEach((function(e,a){let r=null;e.forEach((function(i,o){if(!i&&null!==r)return n.push(`M${r+t} ${a+t}h${o-r}v1H${r+t}z`),void(r=null);if(o!==e.length-1)i&&null===r&&(r=o);else{if(!i)return;null===r?n.push(`M${o+t},${a+t} h1v1H${o+t}z`):n.push(`M${r+t},${a+t} h${o+1-r}v1H${r+t}z`)}}))})),n.join("")}function b(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function g(e,t){const{imageSettings:n,size:a,includeMargin:r}=e;if(null==n)return null;const i=r?4:0,o=t.length+2*i,l=Math.floor(.1*a),s=o/a,u=(n.width||l)*s,c=(n.height||l)*s,d=null==n.x?t.length/2-u/2:n.x*s,p=null==n.y?t.length/2-c/2:n.y*s;let f=null;if(n.excavate){let e=Math.floor(d),t=Math.floor(p);f={x:e,y:t,w:Math.ceil(u+d-e),h:Math.ceil(c+p-t)}}return{x:d,y:p,h:c,w:u,excavation:f}}var y=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function _(e){const t=Object(r.useRef)(null),n=Object(r.useRef)(null);function a(){const{value:a,size:r,level:i,bgColor:o,fgColor:l,includeMargin:s}=e;if(null!=t.current){const u=t.current,c=u.getContext("2d");if(!c)return;let d=f.QrCode.encodeText(a,m[i]).getModules();const p=s?4:0,h=d.length+2*p,_=g(e,d),w=n.current,S=null!=_&&null!==w&&w.complete&&0!==w.naturalHeight&&0!==w.naturalWidth;S&&null!=_.excavation&&(d=b(d,_.excavation));const x=window.devicePixelRatio||1;u.height=u.width=r*x;const E=r/h*x;c.scale(E,E),c.fillStyle=o,c.fillRect(0,0,h,h),c.fillStyle=l,y?c.fill(new Path2D(v(d,p))):d.forEach((function(e,t){e.forEach((function(e,n){e&&c.fillRect(n+p,t+p,1,1)}))})),S&&c.drawImage(w,_.x+p,_.y+p,_.w,_.h)}}Object(r.useEffect)(()=>{a()});const o=e,{value:l,size:s,level:u,bgColor:c,fgColor:h,style:_,includeMargin:w,imageSettings:S}=o,x=p(o,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),E=d({height:s,width:s},_);let O=null,C=null==S?void 0:S.src;return null!=C&&(O=i.a.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{a()},ref:n})),i.a.createElement(i.a.Fragment,null,i.a.createElement("canvas",d({style:E,height:s,width:s,ref:t},x)),O)}function w(e){const t=e,{value:n,size:a,level:r,bgColor:o,fgColor:l,includeMargin:s,imageSettings:u}=t,c=p(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let h=f.QrCode.encodeText(n,m[r]).getModules();const y=s?4:0,_=h.length+2*y,w=g(e,h);let S=null;null!=u&&null!=w&&(null!=w.excavation&&(h=b(h,w.excavation)),S=i.a.createElement("image",{xlinkHref:u.src,height:w.h,width:w.w,x:w.x+y,y:w.y+y,preserveAspectRatio:"none"}));const x=v(h,y);return i.a.createElement("svg",d({shapeRendering:"crispEdges",height:a,width:a,viewBox:`0 0 ${_} ${_}`},c),i.a.createElement("path",{fill:o,d:`M0,0 h${_}v${_}H0z`}),i.a.createElement("path",{fill:l,d:x}),S)}_.defaultProps=h,w.defaultProps=h;var S=e=>{const t=e,{renderAs:n}=t,a=p(t,["renderAs"]),r="svg"===n?w:_;return i.a.createElement(r,d({},a))};S.defaultProps=d({renderAs:"canvas"},h)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(e){(function(t,n){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(n);function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function s(e){var t=this,n=!1;return r.default(this).one(u.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||u.triggerTransitionEnd(t)}),e),this}var u={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=r.default(e).css("transition-duration"),n=r.default(e).css("transition-delay"),a=parseFloat(t),i=parseFloat(n);return a||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){r.default(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a)){var r=n[a],i=t[a],o=i&&u.isElement(i)?"element":null==(l=i)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(o))throw new Error(e.toUpperCase()+': Option "'+a+'" provided type "'+o+'" but expected type "'+r+'".')}var l},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=r.default.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),r.default.fn.emulateTransitionEnd=s,r.default.event.special[u.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(r.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var c="alert",d=r.default.fn[c],p=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.default.removeData(this._element,"bs.alert"),this._element=null},t._getRootElement=function(e){var t=u.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=r.default(e).closest(".alert")[0]),n},t._triggerCloseEvent=function(e){var t=r.default.Event("close.bs.alert");return r.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(r.default(e).removeClass("show"),r.default(e).hasClass("fade")){var n=u.getTransitionDurationFromElement(e);r.default(e).one(u.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){r.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),a=n.data("bs.alert");a||(a=new e(this),n.data("bs.alert",a)),"close"===t&&a[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',p._handleDismiss(new p)),r.default.fn[c]=p._jQueryInterface,r.default.fn[c].Constructor=p,r.default.fn[c].noConflict=function(){return r.default.fn[c]=d,p._jQueryInterface};var f=r.default.fn.button,m=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=r.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var a=this._element.querySelector('input:not([type="hidden"])');if(a){if("radio"===a.type)if(a.checked&&this._element.classList.contains("active"))e=!1;else{var i=n.querySelector(".active");i&&r.default(i).removeClass("active")}e&&("checkbox"!==a.type&&"radio"!==a.type||(a.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||r.default(a).trigger("change")),a.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),e&&r.default(this._element).toggleClass("active"))},t.dispose=function(){r.default.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var a=r.default(this),i=a.data("bs.button");i||(i=new e(this),a.data("bs.button",i)),i.shouldAvoidTriggerChange=n,"toggle"===t&&i[t]()}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var t=e.target,n=t;if(r.default(t).hasClass("btn")||(t=r.default(t).closest(".btn")[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var a=t.querySelector('input:not([type="hidden"])');if(a&&(a.hasAttribute("disabled")||a.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||m._jQueryInterface.call(r.default(t),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){var t=r.default(e.target).closest(".btn")[0];r.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),r.default(window).on("load.bs.button.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t<n;t++){var a=e[t],r=a.querySelector('input:not([type="hidden"])');r.checked||r.hasAttribute("checked")?a.classList.add("active"):a.classList.remove("active")}for(var i=0,o=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;i<o;i++){var l=e[i];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),r.default.fn.button=m._jQueryInterface,r.default.fn.button.Constructor=m,r.default.fn.button.noConflict=function(){return r.default.fn.button=f,m._jQueryInterface};var h="carousel",v=".bs.carousel",b=r.default.fn[h],g={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},_={TOUCH:"touch",PEN:"pen"},w=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide("next")},t.nextWhenVisible=function(){var e=r.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide("prev")},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)r.default(this._element).one("slid.bs.carousel",(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var a=e>n?"next":"prev";this._slide(a,this._items[e])}},t.dispose=function(){r.default(this._element).off(v),r.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},g,e),u.typeCheckConfig(h,e,y),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&r.default(this._element).on("keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&r.default(this._element).on("mouseenter.bs.carousel",(function(t){return e.pause(t)})).on("mouseleave.bs.carousel",(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&_[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e._pointerEvent&&_[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};r.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(e){return e.preventDefault()})),this._pointerEvent?(r.default(this._element).on("pointerdown.bs.carousel",(function(e){return t(e)})),r.default(this._element).on("pointerup.bs.carousel",(function(e){return n(e)})),this._element.classList.add("pointer-event")):(r.default(this._element).on("touchstart.bs.carousel",(function(e){return t(e)})),r.default(this._element).on("touchmove.bs.carousel",(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),r.default(this._element).on("touchend.bs.carousel",(function(e){return n(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n="next"===e,a="prev"===e,r=this._getItemIndex(t),i=this._items.length-1;if((a&&0===r||n&&r===i)&&!this._config.wrap)return t;var o=(r+("prev"===e?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),a=this._getItemIndex(this._element.querySelector(".active.carousel-item")),i=r.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:a,to:n});return r.default(this._element).trigger(i),i},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));r.default(t).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&r.default(n).addClass("active")}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(".active.carousel-item");if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,a,i,o=this,l=this._element.querySelector(".active.carousel-item"),s=this._getItemIndex(l),c=t||l&&this._getItemByDirection(e,l),d=this._getItemIndex(c),p=Boolean(this._interval);if("next"===e?(n="carousel-item-left",a="carousel-item-next",i="left"):(n="carousel-item-right",a="carousel-item-prev",i="right"),c&&r.default(c).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(c,i).isDefaultPrevented()&&l&&c){this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var f=r.default.Event("slid.bs.carousel",{relatedTarget:c,direction:i,from:s,to:d});if(r.default(this._element).hasClass("slide")){r.default(c).addClass(a),u.reflow(c),r.default(l).addClass(n),r.default(c).addClass(n);var m=u.getTransitionDurationFromElement(l);r.default(l).one(u.TRANSITION_END,(function(){r.default(c).removeClass(n+" "+a).addClass("active"),r.default(l).removeClass("active "+a+" "+n),o._isSliding=!1,setTimeout((function(){return r.default(o._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else r.default(l).removeClass("active"),r.default(c).addClass("active"),this._isSliding=!1,r.default(this._element).trigger(f);p&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data("bs.carousel"),a=l({},g,r.default(this).data());"object"==typeof t&&(a=l({},a,t));var i="string"==typeof t?t:a.slide;if(n||(n=new e(this,a),r.default(this).data("bs.carousel",n)),"number"==typeof t)n.to(t);else if("string"==typeof i){if(void 0===n[i])throw new TypeError('No method named "'+i+'"');n[i]()}else a.interval&&a.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=u.getSelectorFromElement(this);if(n){var a=r.default(n)[0];if(a&&r.default(a).hasClass("carousel")){var i=l({},r.default(a).data(),r.default(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),e._jQueryInterface.call(r.default(a),i),o&&r.default(a).data("bs.carousel").to(o),t.preventDefault()}}},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return g}}]),e}();r.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler),r.default(window).on("load.bs.carousel.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t<n;t++){var a=r.default(e[t]);w._jQueryInterface.call(a,a.data())}})),r.default.fn[h]=w._jQueryInterface,r.default.fn[h].Constructor=w,r.default.fn[h].noConflict=function(){return r.default.fn[h]=b,w._jQueryInterface};var S="collapse",x=r.default.fn[S],E={toggle:!0,parent:""},O={toggle:"boolean",parent:"(string|element)"},C=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),a=0,r=n.length;a<r;a++){var i=n[a],o=u.getSelectorFromElement(i),l=[].slice.call(document.querySelectorAll(o)).filter((function(t){return t===e}));null!==o&&l.length>0&&(this._selector=o,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){r.default(this._element).hasClass("show")?this.hide():this.show()},t.show=function(){var t,n,a=this;if(!(this._isTransitioning||r.default(this._element).hasClass("show")||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof a._config.parent?e.getAttribute("data-parent")===a._config.parent:e.classList.contains("collapse")}))).length&&(t=null),t&&(n=r.default(t).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var i=r.default.Event("show.bs.collapse");if(r.default(this._element).trigger(i),!i.isDefaultPrevented()){t&&(e._jQueryInterface.call(r.default(t).not(this._selector),"hide"),n||r.default(t).data("bs.collapse",null));var o=this._getDimension();r.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[o]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(o[0].toUpperCase()+o.slice(1)),s=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,(function(){r.default(a._element).removeClass("collapsing").addClass("collapse show"),a._element.style[o]="",a.setTransitioning(!1),r.default(a._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(s),this._element.style[o]=this._element[l]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&r.default(this._element).hasClass("show")){var t=r.default.Event("hide.bs.collapse");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",u.reflow(this._element),r.default(this._element).addClass("collapsing").removeClass("collapse show");var a=this._triggerArray.length;if(a>0)for(var i=0;i<a;i++){var o=this._triggerArray[i],l=u.getSelectorFromElement(o);null!==l&&(r.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||r.default(o).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var s=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,(function(){e.setTransitioning(!1),r.default(e._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(s)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){r.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=l({},E,e)).toggle=Boolean(e.toggle),u.typeCheckConfig(S,e,O),e},t._getDimension=function(){return r.default(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t,n=this;u.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var a='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(a));return r.default(i).each((function(t,a){n._addAriaAndCollapsedClass(e._getTargetFromElement(a),[a])})),t},t._addAriaAndCollapsedClass=function(e,t){var n=r.default(e).hasClass("show");t.length&&r.default(t).toggleClass("collapsed",!n).attr("aria-expanded",n)},e._getTargetFromElement=function(e){var t=u.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),a=n.data("bs.collapse"),i=l({},E,n.data(),"object"==typeof t&&t?t:{});if(!a&&i.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),a||(a=new e(this,i),n.data("bs.collapse",a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return E}}]),e}();r.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=r.default(this),n=u.getSelectorFromElement(this),a=[].slice.call(document.querySelectorAll(n));r.default(a).each((function(){var e=r.default(this),n=e.data("bs.collapse")?"toggle":t.data();C._jQueryInterface.call(e,n)}))})),r.default.fn[S]=C._jQueryInterface,r.default.fn[S].Constructor=C,r.default.fn[S].noConflict=function(){return r.default.fn[S]=x,C._jQueryInterface};var k="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,T=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(k&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),N=k&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),T))}};function P(e){return e&&"[object Function]"==={}.toString.call(e)}function I(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function A(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function j(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=I(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+a)?e:j(A(e))}function M(e){return e&&e.referenceNode?e.referenceNode:e}var D=k&&!(!window.MSInputMethodContext||!document.documentMode),R=k&&/MSIE 10/.test(navigator.userAgent);function F(e){return 11===e?D:10===e?R:D||R}function B(e){if(!e)return document.documentElement;for(var t=F(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===I(n,"position")?B(n):n:e?e.ownerDocument.documentElement:document.documentElement}function L(e){return null!==e.parentNode?L(e.parentNode):e}function $(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,a=n?e:t,r=n?t:e,i=document.createRange();i.setStart(a,0),i.setEnd(r,0);var o,l,s=i.commonAncestorContainer;if(e!==s&&t!==s||a.contains(r))return"BODY"===(l=(o=s).nodeName)||"HTML"!==l&&B(o.firstElementChild)!==o?B(s):s;var u=L(e);return u.host?$(u.host,t):$(e,L(t).host)}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",a=e.nodeName;if("BODY"===a||"HTML"===a){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=V(t,"top"),r=V(t,"left"),i=n?-1:1;return e.top+=a*i,e.bottom+=a*i,e.left+=r*i,e.right+=r*i,e}function U(e,t){var n="x"===t?"Left":"Top",a="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+a+"Width"])}function H(e,t,n,a){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],F(10)?parseInt(n["offset"+e])+parseInt(a["margin"+("Height"===e?"Top":"Left")])+parseInt(a["margin"+("Height"===e?"Bottom":"Right")]):0)}function W(e){var t=e.body,n=e.documentElement,a=F(10)&&getComputedStyle(n);return{height:H("Height",t,n,a),width:H("Width",t,n,a)}}var q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},K=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),G=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function J(e){return Y({},e,{right:e.left+e.width,bottom:e.top+e.height})}function X(e){var t={};try{if(F(10)){t=e.getBoundingClientRect();var n=V(e,"top"),a=V(e,"left");t.top+=n,t.left+=a,t.bottom+=n,t.right+=a}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?W(e.ownerDocument):{},o=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,s=e.offsetWidth-o,u=e.offsetHeight-l;if(s||u){var c=I(e);s-=U(c,"x"),u-=U(c,"y"),r.width-=s,r.height-=u}return J(r)}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=F(10),r="HTML"===t.nodeName,i=X(e),o=X(t),l=j(e),s=I(t),u=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=J({top:i.top-o.top-u,left:i.left-o.left-c,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!a&&r){var p=parseFloat(s.marginTop),f=parseFloat(s.marginLeft);d.top-=u-p,d.bottom-=u-p,d.left-=c-f,d.right-=c-f,d.marginTop=p,d.marginLeft=f}return(a&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=z(d,t)),d}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,a=Q(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:V(n),l=t?0:V(n,"left"),s={top:o-a.top+a.marginTop,left:l-a.left+a.marginLeft,width:r,height:i};return J(s)}function ee(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===I(e,"position"))return!0;var n=A(e);return!!n&&ee(n)}function te(e){if(!e||!e.parentElement||F())return document.documentElement;for(var t=e.parentElement;t&&"none"===I(t,"transform");)t=t.parentElement;return t||document.documentElement}function ne(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=r?te(e):$(e,M(t));if("viewport"===a)i=Z(o,r);else{var l=void 0;"scrollParent"===a?"BODY"===(l=j(A(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===a?e.ownerDocument.documentElement:a;var s=Q(l,o,r);if("HTML"!==l.nodeName||ee(o))i=s;else{var u=W(e.ownerDocument),c=u.height,d=u.width;i.top+=s.top-s.marginTop,i.bottom=c+s.top,i.left+=s.left-s.marginLeft,i.right=d+s.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function ae(e){return e.width*e.height}function re(e,t,n,a,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=ne(n,a,i,r),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map((function(e){return Y({key:e},l[e],{area:ae(l[e])})})).sort((function(e,t){return t.area-e.area})),u=s.filter((function(e){var t=e.width,a=e.height;return t>=n.clientWidth&&a>=n.clientHeight})),c=u.length>0?u[0].key:s[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function ie(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=a?te(t):$(t,M(n));return Q(n,r,a)}function oe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+a,height:e.offsetHeight+n}}function le(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function se(e,t,n){n=n.split("-")[0];var a=oe(e),r={width:a.width,height:a.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",l=i?"left":"top",s=i?"height":"width",u=i?"width":"height";return r[o]=t[o]+t[s]/2-a[s]/2,r[l]=n===l?t[l]-a[u]:t[le(l)],r}function ue(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ce(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var a=ue(e,(function(e){return e[t]===n}));return e.indexOf(a)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&P(n)&&(t.offsets.popper=J(t.offsets.popper),t.offsets.reference=J(t.offsets.reference),t=n(t,e))})),t}function de(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=re(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=se(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ce(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pe(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function fe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),a=0;a<t.length;a++){var r=t[a],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function me(){return this.state.isDestroyed=!0,pe(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[fe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function he(e){var t=e.ownerDocument;return t?t.defaultView:window}function ve(e,t,n,a){n.updateBound=a,he(e).addEventListener("resize",n.updateBound,{passive:!0});var r=j(e);return function e(t,n,a,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(n,a,{passive:!0}),i||e(j(o.parentNode),n,a,r),r.push(o)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function be(){this.state.eventsEnabled||(this.state=ve(this.reference,this.options,this.state,this.scheduleUpdate))}function ge(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,he(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ye(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function _e(e,t){Object.keys(t).forEach((function(n){var a="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ye(t[n])&&(a="px"),e.style[n]=t[n]+a}))}var we=k&&/Firefox/i.test(navigator.userAgent);function Se(e,t,n){var a=ue(e,(function(e){return e.name===t})),r=!!a&&e.some((function(e){return e.name===n&&e.enabled&&e.order<a.order}));if(!r){var i="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var xe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ee=xe.slice(3);function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ee.indexOf(e),a=Ee.slice(n+1).concat(Ee.slice(0,n));return t?a.reverse():a}var Ce="flip",ke="clockwise",Te="counterclockwise";function Ne(e,t,n,a){var r=[0,0],i=-1!==["right","left"].indexOf(a),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=o.indexOf(ue(o,(function(e){return-1!==e.search(/,|\s/)})));o[l]&&-1===o[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==l?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return(u=u.map((function(e,a){var r=(1===a?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,a){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],o=r[2];if(!i)return e;if(0===o.indexOf("%")){var l=void 0;switch(o){case"%p":l=n;break;case"%":case"%r":default:l=a}return J(l)[t]/100*i}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,a){ye(n)&&(r[t]+=n*("-"===e[a-1]?-1:1))}))})),r}var Pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],a=t.split("-")[1];if(a){var r=e.offsets,i=r.reference,o=r.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",u=l?"width":"height",c={start:G({},s,i[s]),end:G({},s,i[s]+i[u]-o[u])};e.offsets.popper=Y({},o,c[a])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,a=e.placement,r=e.offsets,i=r.popper,o=r.reference,l=a.split("-")[0],s=void 0;return s=ye(+n)?[+n,0]:Ne(n,i,o,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||B(e.instance.popper);e.instance.reference===n&&(n=B(n));var a=fe("transform"),r=e.instance.popper.style,i=r.top,o=r.left,l=r[a];r.top="",r.left="",r[a]="";var s=ne(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=o,r[a]=l,t.boundaries=s;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<s[e]&&!t.escapeWithReference&&(n=Math.max(c[e],s[e])),G({},e,n)},secondary:function(e){var n="right"===e?"left":"top",a=c[n];return c[e]>s[e]&&!t.escapeWithReference&&(a=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),G({},n,a)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=Y({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,a=t.reference,r=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(r),l=o?"right":"bottom",s=o?"left":"top",u=o?"width":"height";return n[l]<i(a[s])&&(e.offsets.popper[s]=i(a[s])-n[u]),n[s]>i(a[l])&&(e.offsets.popper[s]=i(a[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Se(e.instance.modifiers,"arrow","keepTogether"))return e;var a=t.element;if("string"==typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,o=i.popper,l=i.reference,s=-1!==["left","right"].indexOf(r),u=s?"height":"width",c=s?"Top":"Left",d=c.toLowerCase(),p=s?"left":"top",f=s?"bottom":"right",m=oe(a)[u];l[f]-m<o[d]&&(e.offsets.popper[d]-=o[d]-(l[f]-m)),l[d]+m>o[f]&&(e.offsets.popper[d]+=l[d]+m-o[f]),e.offsets.popper=J(e.offsets.popper);var h=l[d]+l[u]/2-m/2,v=I(e.instance.popper),b=parseFloat(v["margin"+c]),g=parseFloat(v["border"+c+"Width"]),y=h-e.offsets.popper[d]-b-g;return y=Math.max(Math.min(o[u]-m,y),0),e.arrowElement=a,e.offsets.arrow=(G(n={},d,Math.round(y)),G(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(pe(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ne(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),a=e.placement.split("-")[0],r=le(a),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Ce:o=[a,r];break;case ke:o=Oe(a);break;case Te:o=Oe(a,!0);break;default:o=t.behavior}return o.forEach((function(l,s){if(a!==l||o.length===s+1)return e;a=e.placement.split("-")[0],r=le(a);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,p="left"===a&&d(u.right)>d(c.left)||"right"===a&&d(u.left)<d(c.right)||"top"===a&&d(u.bottom)>d(c.top)||"bottom"===a&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),m=d(u.right)>d(n.right),h=d(u.top)<d(n.top),v=d(u.bottom)>d(n.bottom),b="left"===a&&f||"right"===a&&m||"top"===a&&h||"bottom"===a&&v,g=-1!==["top","bottom"].indexOf(a),y=!!t.flipVariations&&(g&&"start"===i&&f||g&&"end"===i&&m||!g&&"start"===i&&h||!g&&"end"===i&&v),_=!!t.flipVariationsByContent&&(g&&"start"===i&&m||g&&"end"===i&&f||!g&&"start"===i&&v||!g&&"end"===i&&h),w=y||_;(p||b||w)&&(e.flipped=!0,(p||b)&&(a=o[s+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=a+(i?"-"+i:""),e.offsets.popper=Y({},e.offsets.popper,se(e.instance.popper,e.offsets.reference,e.placement)),e=ce(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],a=e.offsets,r=a.popper,i=a.reference,o=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=i[n]-(l?r[o?"width":"height"]:0),e.placement=le(t),e.offsets.popper=J(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Se(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ue(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,a=t.y,r=e.offsets.popper,i=ue(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==i?i:t.gpuAcceleration,l=B(e.instance.popper),s=X(l),u={position:r.position},c=function(e,t){var n=e.offsets,a=n.popper,r=n.reference,i=Math.round,o=Math.floor,l=function(e){return e},s=i(r.width),u=i(a.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?c||d||s%2==u%2?i:o:l,f=t?i:l;return{left:p(s%2==1&&u%2==1&&!d&&t?a.left-1:a.left),top:f(a.top),bottom:f(a.bottom),right:p(a.right)}}(e,window.devicePixelRatio<2||!we),d="bottom"===n?"top":"bottom",p="right"===a?"left":"right",f=fe("transform"),m=void 0,h=void 0;if(h="bottom"===d?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-s.height+c.bottom:c.top,m="right"===p?"HTML"===l.nodeName?-l.clientWidth+c.right:-s.width+c.right:c.left,o&&f)u[f]="translate3d("+m+"px, "+h+"px, 0)",u[d]=0,u[p]=0,u.willChange="transform";else{var v="bottom"===d?-1:1,b="right"===p?-1:1;u[d]=h*v,u[p]=m*b,u.willChange=d+", "+p}var g={"x-placement":e.placement};return e.attributes=Y({},g,e.attributes),e.styles=Y({},u,e.styles),e.arrowStyles=Y({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return _e(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&_e(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,a,r){var i=ie(r,t,e,n.positionFixed),o=re(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),_e(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Ie=function(){function e(t,n){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};q(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=N(this.update.bind(this)),this.options=Y({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Y({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){a.options.modifiers[t]=Y({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Y({name:e},a.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&P(e.onLoad)&&e.onLoad(a.reference,a.popper,a.options,e,a.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return K(e,[{key:"update",value:function(){return de.call(this)}},{key:"destroy",value:function(){return me.call(this)}},{key:"enableEventListeners",value:function(){return be.call(this)}},{key:"disableEventListeners",value:function(){return ge.call(this)}}]),e}();Ie.Utils=("undefined"!=typeof window?window:e).PopperUtils,Ie.placements=xe,Ie.Defaults=Pe;var Ae="dropdown",je=r.default.fn[Ae],Me=new RegExp("38|40|27"),De={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Re={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Fe=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")){var t=r.default(this._menu).hasClass("show");e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||r.default(this._element).hasClass("disabled")||r.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},a=r.default.Event("show.bs.dropdown",n),i=e._getParentFromElement(this._element);if(r.default(i).trigger(a),!a.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===Ie)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=i:u.isElement(this._config.reference)&&(o=this._config.reference,void 0!==this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(i).addClass("position-static"),this._popper=new Ie(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(i).closest(".navbar-nav").length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass("show"),r.default(i).toggleClass("show").trigger(r.default.Event("shown.bs.dropdown",n))}}},t.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")&&r.default(this._menu).hasClass("show")){var t={relatedTarget:this._element},n=r.default.Event("hide.bs.dropdown",t),a=e._getParentFromElement(this._element);r.default(a).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass("show"),r.default(a).toggleClass("show").trigger(r.default.Event("hidden.bs.dropdown",t)))}},t.dispose=function(){r.default.removeData(this._element,"bs.dropdown"),r.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;r.default(this._element).on("click.bs.dropdown",(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=l({},this.constructor.Default,r.default(this._element).data(),e),u.typeCheckConfig(Ae,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(".dropdown-menu"))}return this._menu},t._getPlacement=function(){var e=r.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=r.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":r.default(this._menu).hasClass("dropdown-menu-right")&&(t="bottom-end"),t},t._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data("bs.dropdown");if(n||(n=new e(this,"object"==typeof t?t:null),r.default(this).data("bs.dropdown",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),a=0,i=n.length;a<i;a++){var o=e._getParentFromElement(n[a]),l=r.default(n[a]).data("bs.dropdown"),s={relatedTarget:n[a]};if(t&&"click"===t.type&&(s.clickEvent=t),l){var u=l._menu;if(r.default(o).hasClass("show")&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&r.default.contains(o,t.target))){var c=r.default.Event("hide.bs.dropdown",s);r.default(o).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[a].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),r.default(u).removeClass("show"),r.default(o).removeClass("show").trigger(r.default.Event("hidden.bs.dropdown",s)))}}}},e._getParentFromElement=function(e){var t,n=u.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||r.default(t.target).closest(".dropdown-menu").length):!Me.test(t.which))&&!this.disabled&&!r.default(this).hasClass("disabled")){var n=e._getParentFromElement(this),a=r.default(n).hasClass("show");if(a||27!==t.which){if(t.preventDefault(),t.stopPropagation(),!a||27===t.which||32===t.which)return 27===t.which&&r.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void r.default(this).trigger("click");var i=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(e){return r.default(e).is(":visible")}));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&o>0&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}}},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return De}},{key:"DefaultType",get:function(){return Re}}]),e}();r.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',Fe._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",Fe._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",Fe._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(e){e.preventDefault(),e.stopPropagation(),Fe._jQueryInterface.call(r.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})),r.default.fn[Ae]=Fe._jQueryInterface,r.default.fn[Ae].Constructor=Fe,r.default.fn[Ae].noConflict=function(){return r.default.fn[Ae]=je,Fe._jQueryInterface};var Be=r.default.fn.modal,Le={backdrop:!0,keyboard:!0,focus:!0,show:!0},$e={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Ve=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){r.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=r.default.Event("show.bs.modal",{relatedTarget:e});r.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(e){return t.hide(e)})),r.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){r.default(t._element).one("mouseup.dismiss.bs.modal",(function(e){r.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event("hide.bs.modal");if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var a=r.default(this._element).hasClass("fade");if(a&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off("focusin.bs.modal"),r.default(this._element).removeClass("show"),r.default(this._element).off("click.dismiss.bs.modal"),r.default(this._dialog).off("mousedown.dismiss.bs.modal"),a){var i=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,(function(e){return t._hideModal(e)})).emulateTransitionEnd(i)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return r.default(e).off(".bs.modal")})),r.default(document).off("focusin.bs.modal"),r.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=l({},Le,e),u.typeCheckConfig("modal",e,$e),e},t._triggerBackdropTransition=function(){var e=this,t=r.default.Event("hidePrevented.bs.modal");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var a=u.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(u.TRANSITION_END),r.default(this._element).one(u.TRANSITION_END,(function(){e._element.classList.remove("modal-static"),n||r.default(e._element).one(u.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,a)})).emulateTransitionEnd(a),this._element.focus()}},t._showElement=function(e){var t=this,n=r.default(this._element).hasClass("fade"),a=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass("modal-dialog-scrollable")&&a?a.scrollTop=0:this._element.scrollTop=0,n&&u.reflow(this._element),r.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var i=r.default.Event("shown.bs.modal",{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,r.default(t._element).trigger(i)};if(n){var l=u.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(u.TRANSITION_END,o).emulateTransitionEnd(l)}else o()},t._enforceFocus=function(){var e=this;r.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(t){document!==t.target&&e._element!==t.target&&0===r.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?r.default(this._element).on("keydown.dismiss.bs.modal",(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||r.default(this._element).off("keydown.dismiss.bs.modal")},t._setResizeEvent=function(){var e=this;this._isShown?r.default(window).on("resize.bs.modal",(function(t){return e.handleUpdate(t)})):r.default(window).off("resize.bs.modal")},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass("modal-open"),e._resetAdjustments(),e._resetScrollbar(),r.default(e._element).trigger("hidden.bs.modal")}))},t._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=r.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on("click.dismiss.bs.modal",(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),n&&u.reflow(this._backdrop),r.default(this._backdrop).addClass("show"),!e)return;if(!n)return void e();var a=u.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(a)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass("show");var i=function(){t._removeBackdrop(),e&&e()};if(r.default(this._element).hasClass("fade")){var o=u.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(u.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(t).each((function(t,n){var a=n.style.paddingRight,i=r.default(n).css("padding-right");r.default(n).data("padding-right",a).css("padding-right",parseFloat(i)+e._scrollbarWidth+"px")})),r.default(n).each((function(t,n){var a=n.style.marginRight,i=r.default(n).css("margin-right");r.default(n).data("margin-right",a).css("margin-right",parseFloat(i)-e._scrollbarWidth+"px")}));var a=document.body.style.paddingRight,i=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",a).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}r.default(document.body).addClass("modal-open")},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));r.default(e).each((function(e,t){var n=r.default(t).data("padding-right");r.default(t).removeData("padding-right"),t.style.paddingRight=n||""}));var t=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(t).each((function(e,t){var n=r.default(t).data("margin-right");void 0!==n&&r.default(t).css("margin-right",n).removeData("margin-right")}));var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each((function(){var a=r.default(this).data("bs.modal"),i=l({},Le,r.default(this).data(),"object"==typeof t&&t?t:{});if(a||(a=new e(this,i),r.default(this).data("bs.modal",a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t](n)}else i.show&&a.show(n)}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Le}}]),e}();r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var t,n=this,a=u.getSelectorFromElement(this);a&&(t=document.querySelector(a));var i=r.default(t).data("bs.modal")?"toggle":l({},r.default(t).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=r.default(t).one("show.bs.modal",(function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){r.default(n).is(":visible")&&n.focus()}))}));Ve._jQueryInterface.call(r.default(t),i,this)})),r.default.fn.modal=Ve._jQueryInterface,r.default.fn.modal.Constructor=Ve,r.default.fn.modal.noConflict=function(){return r.default.fn.modal=Be,Ve._jQueryInterface};var ze=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ue={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},He=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,We=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function qe(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var a=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),i=[].slice.call(a.body.querySelectorAll("*")),o=function(e,n){var a=i[e],o=a.nodeName.toLowerCase();if(-1===r.indexOf(a.nodeName.toLowerCase()))return a.parentNode.removeChild(a),"continue";var l=[].slice.call(a.attributes),s=[].concat(t["*"]||[],t[o]||[]);l.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===ze.indexOf(n)||Boolean(e.nodeValue.match(He)||e.nodeValue.match(We));for(var a=t.filter((function(e){return e instanceof RegExp})),r=0,i=a.length;r<i;r++)if(n.match(a[r]))return!0;return!1})(e,s)||a.removeAttribute(e.nodeName)}))},l=0,s=i.length;l<s;l++)o(l);return a.body.innerHTML}var Ke="tooltip",Ge=r.default.fn[Ke],Ye=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Je=["sanitize","whiteList","sanitizeFn"],Xe={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Qe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ze={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Ue,popperConfig:null},et={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},tt=function(){function e(e,t){if(void 0===Ie)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=r.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(t);var n=u.findShadowRoot(this.element),a=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!a)return;var i=this.getTipElement(),o=u.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&r.default(i).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(l);this.addAttachmentClass(s);var c=this._getContainer();r.default(i).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(i).appendTo(c),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ie(this.element,i,this._getPopperConfig(s)),r.default(i).addClass("show"),r.default(i).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(r.default(this.tip).hasClass("fade")){var p=u.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(p)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),a=r.default.Event(this.constructor.Event.HIDE),i=function(){"show"!==t._hoverState&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),r.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(r.default(this.element).trigger(a),!a.isDefaultPrevented()){if(r.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass("fade")){var o=u.getTransitionDurationFromElement(n);r.default(n).one(u.TRANSITION_END,i).emulateTransitionEnd(o)}else i();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(r.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),r.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=qe(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?r.default(t).parent().is(e)||e.empty().append(t):e.text(r.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},t._getAttachment=function(e){return Qe[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)r.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n="hover"===t?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,a="hover"===t?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;r.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(a,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),r.default(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){"show"===t._hoverState&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){"out"===t._hoverState&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=r.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Je.indexOf(e)&&delete t[e]})),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(Ke,e,this.constructor.DefaultType),e.sanitize&&(e.template=qe(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(Ye);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(r.default(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),a=n.data("bs.tooltip"),i="object"==typeof t&&t;if((a||!/dispose|hide/.test(t))&&(a||(a=new e(this,i),n.data("bs.tooltip",a)),"string"==typeof t)){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Ze}},{key:"NAME",get:function(){return Ke}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return et}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Xe}}]),e}();r.default.fn[Ke]=tt._jQueryInterface,r.default.fn[Ke].Constructor=tt,r.default.fn[Ke].noConflict=function(){return r.default.fn[Ke]=Ge,tt._jQueryInterface};var nt="popover",at=r.default.fn[nt],rt=new RegExp("(^|\\s)bs-popover\\S+","g"),it=l({},tt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ot=l({},tt.DefaultType,{content:"(string|element|function)"}),lt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},st=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=a.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass("bs-popover-"+e)},i.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},i.setContent=function(){var e=r.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(rt);null!==t&&t.length>0&&e.removeClass(t.join(""))},a._jQueryInterface=function(e){return this.each((function(){var t=r.default(this).data("bs.popover"),n="object"==typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new a(this,n),r.default(this).data("bs.popover",t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}}))},o(a,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return it}},{key:"NAME",get:function(){return nt}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return lt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return ot}}]),a}(tt);r.default.fn[nt]=st._jQueryInterface,r.default.fn[nt].Constructor=st,r.default.fn[nt].noConflict=function(){return r.default.fn[nt]=at,st._jQueryInterface};var ut="scrollspy",ct=r.default.fn[ut],dt={offset:10,method:"auto",target:""},pt={offset:"number",method:"string",target:"(string|element)"},ft=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on("scroll.bs.scrollspy",(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?t:this._config.method,a="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,i=u.getSelectorFromElement(e);if(i&&(t=document.querySelector(i)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[r.default(t)[n]().top+a,i]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){r.default.removeData(this._element,"bs.scrollspy"),r.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},dt,"object"==typeof e&&e?e:{})).target&&u.isElement(e.target)){var t=r.default(e.target).attr("id");t||(t=u.getUID(ut),r.default(e.target).attr("id",t)),e.target="#"+t}return u.typeCheckConfig(ut,e,pt),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var a=this._targets[this._targets.length-1];this._activeTarget!==a&&this._activate(a)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),n=r.default([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),r.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains("active")})).forEach((function(e){return e.classList.remove("active")}))},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data("bs.scrollspy");if(n||(n=new e(this,"object"==typeof t&&t),r.default(this).data("bs.scrollspy",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return dt}}]),e}();r.default(window).on("load.bs.scrollspy.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var n=r.default(e[t]);ft._jQueryInterface.call(n,n.data())}})),r.default.fn[ut]=ft._jQueryInterface,r.default.fn[ut].Constructor=ft,r.default.fn[ut].noConflict=function(){return r.default.fn[ut]=ct,ft._jQueryInterface};var mt=r.default.fn.tab,ht=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass("active")||r.default(this._element).hasClass("disabled"))){var t,n,a=r.default(this._element).closest(".nav, .list-group")[0],i=u.getSelectorFromElement(this._element);if(a){var o="UL"===a.nodeName||"OL"===a.nodeName?"> li > .active":".active";n=(n=r.default.makeArray(r.default(a).find(o)))[n.length-1]}var l=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),s=r.default.Event("show.bs.tab",{relatedTarget:n});if(n&&r.default(n).trigger(l),r.default(this._element).trigger(s),!s.isDefaultPrevented()&&!l.isDefaultPrevented()){i&&(t=document.querySelector(i)),this._activate(this._element,a);var c=function(){var t=r.default.Event("hidden.bs.tab",{relatedTarget:e._element}),a=r.default.Event("shown.bs.tab",{relatedTarget:n});r.default(n).trigger(t),r.default(e._element).trigger(a)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){r.default.removeData(this._element,"bs.tab"),this._element=null},t._activate=function(e,t,n){var a=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?r.default(t).children(".active"):r.default(t).find("> li > .active"))[0],o=n&&i&&r.default(i).hasClass("fade"),l=function(){return a._transitionComplete(e,i,n)};if(i&&o){var s=u.getTransitionDurationFromElement(i);r.default(i).removeClass("show").one(u.TRANSITION_END,l).emulateTransitionEnd(s)}else l()},t._transitionComplete=function(e,t,n){if(t){r.default(t).removeClass("active");var a=r.default(t.parentNode).find("> .dropdown-menu .active")[0];a&&r.default(a).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(r.default(e).addClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&r.default(e.parentNode).hasClass("dropdown-menu")){var i=r.default(e).closest(".dropdown")[0];if(i){var o=[].slice.call(i.querySelectorAll(".dropdown-toggle"));r.default(o).addClass("active")}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),a=n.data("bs.tab");if(a||(a=new e(this),n.data("bs.tab",a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),ht._jQueryInterface.call(r.default(this),"show")})),r.default.fn.tab=ht._jQueryInterface,r.default.fn.tab.Constructor=ht,r.default.fn.tab.noConflict=function(){return r.default.fn.tab=mt,ht._jQueryInterface};var vt=r.default.fn.toast,bt={animation:"boolean",autohide:"boolean",delay:"number"},gt={animation:!0,autohide:!0,delay:500},yt=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=r.default.Event("show.bs.toast");if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){e._element.classList.remove("showing"),e._element.classList.add("show"),r.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove("hide"),u.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var a=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,n).emulateTransitionEnd(a)}else n()}},t.hide=function(){if(this._element.classList.contains("show")){var e=r.default.Event("hide.bs.toast");r.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),r.default(this._element).off("click.dismiss.bs.toast"),r.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},gt,r.default(this._element).data(),"object"==typeof e&&e?e:{}),u.typeCheckConfig("toast",e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;r.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add("hide"),r.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);r.default(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),a=n.data("bs.toast");if(a||(a=new e(this,"object"==typeof t&&t),n.data("bs.toast",a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method named "'+t+'"');a[t](this)}}))},o(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return bt}},{key:"Default",get:function(){return gt}}]),e}();r.default.fn.toast=yt._jQueryInterface,r.default.fn.toast.Constructor=yt,r.default.fn.toast.noConflict=function(){return r.default.fn.toast=vt,yt._jQueryInterface},t.Alert=p,t.Button=m,t.Carousel=w,t.Collapse=C,t.Dropdown=Fe,t.Modal=Ve,t.Popover=st,t.Scrollspy=ft,t.Tab=ht,t.Toast=yt,t.Tooltip=tt,t.Util=u,Object.defineProperty(t,"__esModule",{value:!0})})(t,n(1062))}).call(this,n(65))},,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(()=>{var e={7528:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a,r=n(6689);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const o=function(e){return r.createElement("svg",i({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},e),a||(a=r.createElement("path",{d:"M810.667 853.333H213.333a42.667 42.667 0 000 85.334h597.334a42.667 42.667 0 000-85.334zm-328.96-97.706a42.667 42.667 0 0014.08 8.96 40.107 40.107 0 0032.426 0 42.667 42.667 0 0014.08-8.96L712.96 584.96a42.667 42.667 0 00-60.587-60.587l-97.706 98.134V128a42.667 42.667 0 00-85.334 0v494.507l-97.706-98.134a42.667 42.667 0 10-60.587 60.587z"})))}},3248:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a,r=n(6689);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const o=function(e){return r.createElement("svg",i({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=r.createElement("path",{d:"M755.627 481.707L584.96 311.04a42.667 42.667 0 10-60.587 60.587l98.134 97.706H128a42.667 42.667 0 000 85.334h494.507l-98.134 97.706a42.667 42.667 0 000 60.587 42.667 42.667 0 0060.587 0l170.667-170.667a42.667 42.667 0 008.96-14.08 42.667 42.667 0 000-32.426 42.667 42.667 0 00-8.96-14.08zM896 170.667a42.667 42.667 0 00-42.667 42.666v597.334a42.667 42.667 0 0085.334 0V213.333A42.667 42.667 0 00896 170.667z"})))}},2078:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a,r=n(6689);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const o=function(e){return r.createElement("svg",i({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},e),a||(a=r.createElement("path",{d:"M896 469.333H401.493l98.134-97.706a42.667 42.667 0 10-60.587-60.587L268.373 481.707a42.667 42.667 0 00-8.96 14.08 42.667 42.667 0 000 32.426 42.667 42.667 0 008.96 14.08L439.04 712.96a42.667 42.667 0 0060.587 0 42.667 42.667 0 000-60.587l-98.134-97.706H896a42.667 42.667 0 000-85.334zM128 128a42.667 42.667 0 00-42.667 42.667v682.666a42.667 42.667 0 0085.334 0V170.667A42.667 42.667 0 00128 128z"})))}},8983:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a,r=n(6689);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const o=function(e){return r.createElement("svg",i({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},e),a||(a=r.createElement("path",{d:"M542.293 268.373a42.667 42.667 0 00-14.08-8.96 42.667 42.667 0 00-32.426 0 42.667 42.667 0 00-14.08 8.96L311.04 439.04a42.667 42.667 0 1060.587 60.587l97.706-98.134V896a42.667 42.667 0 0085.334 0V401.493l97.706 98.134a42.667 42.667 0 0060.587 0 42.667 42.667 0 000-60.587zm268.374-183.04H213.333a42.667 42.667 0 000 85.334h597.334a42.667 42.667 0 000-85.334z"})))}},9672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicEditor=t.RendererEditor=void 0;var a=n(752),r=n(9756),i=n(9933);t.RendererEditor=function(e,t){return function(n){(0,r.registerEditorPlugin)(function(n){function r(a){var r=n.call(this,a)||this;return r.rendererName=e,r.name=r.tipName||t.name,r.description=t.description,r.scaffold=t.scaffold||{type:t.type},r.previewSchema=t.previewSchema||r.scaffold,r.settingsSchema&&(r.panelTitle=r.settingsSchema.title,r.panelControls=r.settingsSchema.body),r}return(0,a.__extends)(r,n),r}(n))}};var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.BasicEditor=o},9797:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailableRenderersPanel=void 0;var a=n(752),r=n(1502),i=n(2062),o=(0,a.__importDefault)(n(6689)),l=(0,a.__importDefault)(n(9003)),s=n(3570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleRegionFilterClick=function(e){var t=e.currentTarget.getAttribute("data-value"),n=this.props,a=n.store,r=n.manager;t=t===a.subRendererRegion?"":t,r.switchToRegion(t)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute("data-id");e.dataTransfer.setData('dnd-dom/[data-id="'+t+'"]',"")},t.prototype.renderThumb=function(e){var t=this.props.manager;return e?(0,r.render)(e,{onAction:s.noop},t.env):o.default.createElement("p",null,"没有预览图")},t.prototype.render=function(){var e=this,t=this.props.store,n=t.groupedSubRenderers,a=Object.keys(n),i=t.getNodeById(t.activeContainerId);return o.default.createElement("div",{className:"ae-RendererList"},o.default.createElement("div",{className:"p-l p-r m-b-xs"},o.default.createElement(r.InputBox,{value:t.subRenderersKeywords,onChange:t.changeSubRenderersKeywords,placeholder:"输入关键字可过滤组件",clearable:!1},t.subRenderersKeywords?o.default.createElement("a",{onClick:t.resetSubRenderersKeywords},o.default.createElement(r.Icon,{icon:"close",className:"icon"})):o.default.createElement(r.Icon,{icon:"search",className:"icon"}))),o.default.createElement("div",{className:"ae-RendererList-tip"},"请选择以下组件拖入「",null==i?void 0:i.label,"」中"),o.default.createElement("div",{className:"ae-RendererList-groupWrap"},a.length?a.map((function(a,i){var s=n[a];return s&&s.length?o.default.createElement("div",{key:a,className:"ae-RendererList-group"},o.default.createElement("div",{className:"ae-RendererList-groupLabel"},a),s.map((function(n){var a=i+"_"+n.id;return o.default.createElement("div",{onDragStart:e.handleDragStart,"data-id":a,"data-dnd-type":"subrenderer","data-dnd-id":n.id,"data-dnd-data":JSON.stringify(n.scaffold||{type:n.type}),key:a,draggable:!0,className:"ae-RendererList-item"},o.default.createElement("i",{className:(0,l.default)("fa-fw",n.icon||"fa fa-circle-thin")}),o.default.createElement("div",{className:"ae-RendererList-itemLabel"},n.name),o.default.createElement("div",{className:"ae-RendererList-itemInfo"},o.default.createElement(r.TooltipWrapper,{tooltipClassName:"ae-RendererThumb",trigger:"click",rootClose:!0,placement:"right",tooltip:{dom:o.default.createElement("div",{className:"ae-RendererInfo"},n.description||n.docLink?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",null,o.default.createElement(r.Html,{html:n.description}),n.docLink?o.default.createElement("a",{target:"_blank",href:t.amisDocHost+n.docLink}," 详情 "):null),o.default.createElement("div",{className:"ae-RendererDiv"})):null,o.default.createElement("div",{className:"ae-RendererPreview"},e.renderThumb(n.previewSchema)))}},o.default.createElement("a",{className:"ae-RendererIcon","data-position":"bottom"},o.default.createElement(r.Icon,{icon:"info",className:"icon"})))))}))):null})):o.default.createElement("span",null,"没有可用组件,也许你该切换容器试试。")))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleRegionFilterClick",null),(0,a.__decorate)([i.observer],t)}(o.default.Component);t.AvailableRenderersPanel=u},3164:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(2062),o=n(3570),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t,n=e.currentTarget,a=n.getAttribute("data-node-id"),r=n.getAttribute("data-node-region"),i=this.props.store,o=this.props.manager,l=i.getNodeById(a);!1!==(null===(t=null==l?void 0:l.info)||void 0===t?void 0:t.editable)&&(r?o.showInsertPanel(r,a):i.setActiveId(a))},t.prototype.handleMouseEnter=function(e){var t=e.currentTarget,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region");this.props.store.setHoverId(n,a)},t.prototype.render=function(){var e=this,t=this.props.store.bcn;return r.default.createElement("div",{className:"ae-Breadcrumb"},r.default.createElement("span",null,"组件路径:"),t.length?r.default.createElement("ul",null,t.map((function(t,n){var a,i=null===(a=t.parent)||void 0===a?void 0:a.uniqueChildren;return r.default.createElement("li",{key:n},r.default.createElement("a",{"data-node-id":t.id,"data-node-region":t.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter},t.label),(null==i?void 0:i.length)>1?r.default.createElement("ul",null,i.map((function(n){return r.default.createElement("li",{key:n.id+"-"+n.region},r.default.createElement("a",{"data-node-id":n.id,"data-node-region":n.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,className:n.id===t.id&&n.region===t.region?"is-active":""},n.label))}))):null)}))):r.default.createElement("span",null,"点选组件开始编辑"))},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),(0,a.__decorate)([i.observer],t)}(r.default.Component);t.default=l},425:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClassNameControl=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(6405),l=[{label:"外边距",children:[{label:"整体",children:[{label:"极小",value:"m-xs"},{label:"小",value:"m-sm"},{label:"正常",value:"m"},{label:"中",value:"m-md"},{label:"大",value:"m-lg"}]},{label:"上边距",children:[{label:"极小",value:"m-t-xs"},{label:"小",value:"m-t-sm"},{label:"正常",value:"m-t"},{label:"中",value:"m-t-md"},{label:"大",value:"m-t-lg"}]},{label:"右边距",children:[{label:"极小",value:"m-r-xs"},{label:"小",value:"m-r-sm"},{label:"正常",value:"m-r"},{label:"中",value:"m-r-md"},{label:"大",value:"m-r-lg"}]},{label:"下边距",children:[{label:"极小",value:"m-b-xs"},{label:"小",value:"m-b-sm"},{label:"正常",value:"m-b"},{label:"中",value:"m-b-md"},{label:"大",value:"m-b-lg"}]},{label:"左边距",children:[{label:"极小",value:"m-l-xs"},{label:"小",value:"m-l-sm"},{label:"正常",value:"m-l"},{label:"中",value:"m-l-md"},{label:"大",value:"m-l-lg"}]},{label:"置无",children:[{label:"全部",value:"m-none"},"|",{label:"上",value:"m-t-none"},{label:"右",value:"m-r-none"},{label:"下",value:"m-b-none"},{label:"左",value:"m-l-none"}]}]},{label:"内边距",children:[{label:"整体",children:[{label:"极小",value:"p-xs"},{label:"小",value:"p-sm"},{label:"正常",value:"p"},{label:"中",value:"p-md"},{label:"大",value:"p-lg"}]},{label:"上边距",children:[{label:"极小",value:"p-t-xs"},{label:"小",value:"p-t-sm"},{label:"正常",value:"p-t"},{label:"中",value:"p-t-md"},{label:"大",value:"p-t-lg"}]},{label:"右边距",children:[{label:"极小",value:"p-r-xs"},{label:"小",value:"p-r-sm"},{label:"正常",value:"p-r"},{label:"中",value:"p-r-md"},{label:"大",value:"p-r-lg"}]},{label:"下边距",children:[{label:"极小",value:"p-b-xs"},{label:"小",value:"p-b-sm"},{label:"正常",value:"p-b"},{label:"中",value:"p-b-md"},{label:"大",value:"p-b-lg"}]},{label:"左边距",children:[{label:"极小",value:"p-l-xs"},{label:"小",value:"p-l-sm"},{label:"正常",value:"p-l"},{label:"中",value:"p-l-md"},{label:"大",value:"p-l-lg"}]},{label:"置无",children:[{label:"全部",value:"p-none"},"|",{label:"上",value:"p-t-none"},{label:"右",value:"p-r-none"},{label:"下",value:"p-b-none"},{label:"左",value:"p-l-none"}]}]},{label:"边框",className:"w2x",children:[{label:"位置",children:[{label:"全部",value:"b-a"},"|",{label:"上",value:"b-t"},{label:"右",value:"b-r"},{label:"下",value:"b-b"},{label:"左",value:"b-l"},"|",{label:"置无",value:"no-border"}]},{label:"大小",children:[{label:"2x",value:"b-2x"},{label:"3x",value:"b-3x"},{label:"4x",value:"b-4x"},{label:"5x",value:"b-5x"}]},{label:"颜色",children:[{label:"主色",value:"b-primary",className:"bg-primary"},{label:"信息",value:"b-info",className:"bg-info"},{label:"警告",value:"b-warning",className:"bg-warning"},{label:"危险",value:"b-danger",className:"bg-danger"},{label:"成功",value:"b-success",className:"bg-success"},{label:"白色",value:"b-white",className:"bg-white"},{label:"暗色",value:"b-dark",className:"bg-dark"},{label:"浅色",value:"b-light",className:"bg-light"}]}]},{label:"其他",className:"w2x",children:[{label:"圆角",children:[{label:"全部",value:"r"},"|",{label:"上",value:"r-t"},{label:"右",value:"r-r"},{label:"下",value:"r-b"},{label:"左",value:"r-l"},"|",{label:"2x",value:"r-2x"},{label:"3x",value:"r-3x"}]},{label:"字体",children:[{label:"正常",value:"font-normal"},{label:"细",value:"font-thin"},{label:"粗",value:"font-bold"},"|",{label:"极小",value:"text-xs"},{label:"小",value:"text-sm"},{label:"正常",value:"text-base"},{label:"中",value:"text-md"},{label:"大",value:"text-lg"}]},{label:"颜色",children:[{label:"主色",value:"text-primary",className:"text-primary"},{label:"信息",value:"text-info",className:"text-info"},{label:"警告",value:"text-warning",className:"text-warning"},{label:"危险",value:"text-danger",className:"text-danger"},{label:"成功",value:"text-success",className:"text-success"},{label:"白色",value:"text-white",className:"text-white bg-dark"},{label:"暗色",value:"text-dark",className:"text-dark"},{label:"淡色",value:"text-muted",className:"text-muted"}]},{label:"背景",children:[{label:"主色",value:"bg-primary",className:"bg-primary"},{label:"信息",value:"bg-info",className:"bg-info"},{label:"警告",value:"bg-warning",className:"bg-warning"},{label:"危险",value:"bg-danger",className:"bg-danger"},{label:"成功",value:"bg-success",className:"bg-success"},{label:"白色",value:"bg-white",className:"bg-white"},{label:"暗色",value:"bg-dark",className:"bg-dark"},{label:"浅色",value:"bg-light",className:"bg-light"},"|",{label:"置无",value:"no-bg"}]},{label:"宽度",children:[{label:"特小",value:"w-xxs"},{label:"极小",value:"w-xs"},{label:"小",value:"w-sm"},{label:"正常",value:"w"},{label:"中",value:"w-md"},{label:"大",value:"w-lg"},{label:"加大",value:"w-xl"},{label:"特大",value:"w-xxl"},{label:"占满",value:"w-full"}]}]}],s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isFocused:!1,isOpened:!1},t.values=[],t}return(0,a.__extends)(t,e),t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.toggle=function(){this.setState({isOpened:!this.state.isOpened})},t.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.handleChange=function(e){(0,this.props.onChange)(e.currentTarget.value)},t.prototype.getParent=function(){return(0,o.findDOMNode)(this)},t.prototype.getTarget=function(){return(0,o.findDOMNode)(this)},t.prototype.handlePopOverChange=function(e){var t=this.props.value||"",n=t.replace(/\s+/g," ").split(/\s+/),a=n.indexOf(e.value),r=this.props.onChange;if(~a)n.splice(a,1),t=n.join(" ");else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test(e.value)){var i=new RegExp("(?:^|\\s)"+RegExp.$1+"\\-"+RegExp.$2+"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))","ig");t=t.replace(i,"")}else/ ( ? :^|\s)(m | p)( ? :\ - (xs | sm | md | lg)) ? ( ? :$ | \s) /.test(e.value)?(i=new RegExp("(?:^|\\s)"+RegExp.$1+"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))","ig"),t=t.replace(i,"")):/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test(e.value)?(i=new RegExp(RegExp.$2?"(?:^|\\s)"+RegExp.$1+"(?:(?:\\-"+RegExp.$2+"(?:\\-(?:xs|sm|md|lg)))|\\-none)?(?=(\\s|$))":"(?:^|\\s)"+RegExp.$1+"(?:[^\\s$]+)?(?=(\\s|$))","ig"),t=t.replace(i,"$1")):/(?:^|\s)w(?:\-\w+)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)w(?:\-\w+)?(?=(\s|$))/g,""):"b-a"===e.value?t=(t=t.replace(/(?:^|\s)b\-(?:t|r|b|l)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)b\-a(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-\dx(?=(\s|$))/g,""):"no-border"===e.value?t=t.replace(/(?:^|\s)b\-(?:\dx|\w+)(?=(\s|$))/g,""):/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):"r"===e.value?t=t.replace(/(?:^|\s)r\-(?:t|r|b|l)(?=(\s|$))/g,""):/(?:^|\s)r\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r(?=(\s|$))/g,""):/(?:^|\s)r\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r\-\dx(?=(\s|$))/g,""):/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?=(\s|$))/g,""):/(?:^|\s)font\-(?:normal|thin|bold)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)font\-(?:normal|thin|bold)(?=(\s|$))/g,""):/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-bg(?=(\s|$))/g,""):"no-bg"===e.value&&(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""));t=t.replace(/\s+/g," ").trim(),t+=(t?" ":"")+e.value}r(t)},t.prototype.renderGroup=function(e,t){var n=this,a=this.props.classnames;return i.default.createElement("div",{key:t,className:a("ae-ClassNameControl-group",e.className)},i.default.createElement("label",{className:a("ae-ClassNameControl-groupLabel",e.labelClassName)},e.label),e.children&&e.children.length?e.children[0].value?this.renderOptions(e.children,t):e.children.map((function(e,t){return n.renderGroup(e,t)})):null)},t.prototype.renderOptions=function(e,t){var n=this,a=this.props.classnames;return function(e){for(var t=[],n=t[0]=[],a=0,r=e.length;a<r;a++){var i=e[a];"|"===i?(n=[],t.push(n)):n.push(i)}return t}(e).map((function(e,t){return i.default.createElement("div",{className:a("ButtonGroup"),key:t},e.map((function(e,t){return i.default.createElement("div",{key:t,onClick:function(){return n.handlePopOverChange(e)},className:a("Button Button--xs",e.className,~n.values.indexOf(e.value)?"Button--primary":"Button--default")},e.label)})))}))},t.prototype.renderPopover=function(){var e=this,t=this.props.value;return this.values=t?t.split(" "):[],i.default.createElement("div",null,l.map((function(t,n){return e.renderGroup(t,n)})))},t.prototype.render=function(){var e,t=this.props,n=t.classnames,a=t.readOnly,o=t.disabled,l=t.value,s=t.className,u=t.name,c=t.popOverContainer;return i.default.createElement("div",{className:n(s,"TextControl",(e={},e["TextControl--withAddOn"]=!0,e["is-focused"]=this.state.isFocused,e["is-disabled"]=o,e))},i.default.createElement("div",{className:n("TextControl-input")},i.default.createElement("input",{name:u,placeholder:"请输入 css 类名",disabled:o,readOnly:a,type:"text",autoComplete:"off",onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,value:null==l?"":"string"==typeof l?l:JSON.stringify(l)})),i.default.createElement("div",{className:n("TextControl-button")},i.default.createElement(r.Button,{onClick:this.toggle},i.default.createElement("i",{className:"fa fa-cog"}))),i.default.createElement(r.Overlay,{placement:"right-bottom-right-top right-top-right-bottom right-bottom-right-top",target:this.getTarget,container:c||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},i.default.createElement(r.PopOver,{className:"ae-ClassNamePicker-popover",onHide:this.close,overlay:!0},this.renderPopover())))},(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"open",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"close",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggle",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFocus",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBlur",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getParent",null),(0,a.__decorate)([r.utils.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getTarget",null),(0,a.__decorate)([(0,r.FormItem)({type:"ae-classname"})],t)}(i.default.Component);t.ClassNameControl=s},498:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(3541)),o=n(3570),l=(0,a.__importDefault)(n(9003)),s=n(1502),u=n(3908),c=n(8425),d=n(5720),p=(0,a.__importDefault)(n(5452)),f=/^\/schemas\/(.*).json$/,m=u((function(e){s.toast.warning("代码有误,错误的地方是\n "+e.toString().split("\n")[1])}),1e3),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={wrongSchema:"",value:t.props.value,contents:t.obj2str(t.props.value,t.props)},t.toDispose=[],t.uri="isuda://schema/"+(0,o.guid)()+".json",t.emitChange=u((function(){var e=t.props,n=e.onChange,a=e.value,r=t.str2obj(t.state.contents);if(r&&(0,p.default)(r)){t.setState({wrongSchema:""}),delete r.$schema,r=(0,o.filterSchemaForConfig)(r,t.props.value);var i=(0,o.diff)(t.lastResult||a,r);t.lastResult=r,n(r,i)}else t.setState({wrongSchema:t.state.contents})}),250,{trailing:!0,leading:!1}),t.editorFactory=function(e,n,r){var i=n.Uri.parse(t.uri);return t.model=n.editor.createModel(t.state.contents,"json",i),n.editor.create(e,(0,a.__assign)((0,a.__assign)({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},r),{model:t.model}))},t.editorDidMount=function(e,n){t.editor=e,t.monaco=n,t.changeJsonOptions(t.props),t.props.onPaste&&t.toDispose.push(t.editor.onDidPaste(t.props.onPaste).dispose)},t.editorWillUnmount=function(e,n){t.toDispose.forEach((function(e){return e()})),t.toDispose=[]},t.handleChange=function(e){t.setState({contents:e},t.emitChange)},t.handleBlur=function(){return(0,a.__awaiter)(t,void 0,void 0,(function(){var e,t,n;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.state,t=e.wrongSchema,n=e.value,t?[4,(0,s.prompt)([{className:"w-full",type:"tpl",label:!1,tpl:"当前有部分已更改数据因为格式不正确尚未保存,您确认要丢弃这部分更改吗?"},{type:"switch",label:!1,option:"查看更改",name:"diff",value:!1},{visibleOn:"this.diff",label:!1,type:"diff-editor",allowFullscreen:!0,disabled:!0,name:"newValue",size:"xxl",language:"json",diffValue:"${oldValue}"}],{oldValue:n,newValue:t},"请确认")]:[2];case 1:return a.sent()?this.setState({wrongSchema:"",contents:JSON.stringify(n)}):this.editor.focus(),[2]}}))}))},t}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),(0,o.isObjectShallowModified)(t.value,e.value)&&(0,o.isObjectShallowModified)(t.value,this.lastResult)&&(this.lastResult=null,this.setState({value:t.value,contents:this.obj2str(t.value,t)}))},t.prototype.obj2str=function(e,t){var n;return e=(0,o.filterSchemaForConfig)(e),!(e=(0,a.__assign)({type:null==e?void 0:e.type},e)).type&&(null===(n=t.$schema)||void 0===n?void 0:n.match(/PageSchema/i))?e.type="page":e.type||delete e.type,delete e.$schema,(0,d.stringify)(e)},t.prototype.str2obj=function(e){try{return""===e?{}:(0,d.parse)(e)}catch(e){return m(e),null}},t.prototype.changeJsonOptions=function(e){var t;void 0===e&&(e=this.props);var n=this.monaco,a=e.$schemaUrl||window.location.protocol+"//"+window.location.host+"/schema.json";0===a.indexOf("/")&&(a=window.location.protocol+"//"+window.location.host+a);var r=function(e,t,n,a){var r=Array.isArray(a)?a.concat():[];if(f.test(t)){var i=RegExp.$1,o=e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,"$1")+"/schemas/"+i+".json",l=c(r,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===n}));~l&&r.splice(l,1),r.push({uri:o,fileMatch:[n],schema:{$schema:"http://json-schema.org/draft-07/schema#",$ref:e+"#/definitions/"+i}})}return r}(a,e.$schema,n.Uri.parse(this.uri).toString(),null===(t=n.languages.json)||void 0===t?void 0:t.jsonDefaults.diagnosticsOptions.schemas);n.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:r,validate:!0,enableSchemaRequest:!0,allowComments:!0})},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.className,a=e.theme;return r.default.createElement(i.default,{className:(0,l.default)("amis-code-editor",n),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:"json",theme:a,editorFactory:this.editorFactory,editorDidMount:this.editorDidMount,editorWillUnmount:this.editorWillUnmount,options:{automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,tabSize:2,wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},readOnly:t}})},t}(r.default.Component);t.default=h},8680:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodeEditorPanel=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(3570),o=(0,a.__importDefault)(n(498)),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleResizeMouseDown=function(e){3==e.nativeEvent.which||(this.codeWrap=e.currentTarget.parentElement,document.addEventListener("mousemove",this.handleResizeMouseMove),document.addEventListener("mouseup",this.handleResizeMouseUp),this.startX=e.clientX,this.startWidth=this.codeWrap.offsetWidth)},t.prototype.handleResizeMouseMove=function(e){var t=e.clientX-this.startX;this.codeWrap.style.cssText+="width: "+Math.max(this.startWidth+t,300)+"px"},t.prototype.handleResizeMouseUp=function(){document.removeEventListener("mousemove",this.handleResizeMouseMove),document.removeEventListener("mouseup",this.handleResizeMouseUp)},t.prototype.handleCodePaste=function(){var e=this;setTimeout((function(){e.props.manager.patchSchema(!0)}),500)},t.prototype.render=function(){var e=this.props,t=(e.value,e.onChange),n=(e.info,e.manager),a=e.store;return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.default,{value:a.valueWithoutHiddenProps,onChange:t,$schema:a.jsonSchemaUri,$schemaUrl:n.config.$schemaUrl,onPaste:this.handleCodePaste}),r.default.createElement("div",{onMouseDown:this.handleResizeMouseDown,className:"ae-Editor-codeResizor"}))},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResizeMouseDown",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResizeMouseMove",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResizeMouseUp",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCodePaste",null),t}(r.default.Component);t.CodeEditorPanel=l},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommonConfigWrapper=void 0;var a=n(752),r=n(6405),i=n(3570),o=(0,a.__importDefault)(n(6689)),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){var e=(0,r.findDOMNode)(this);if(e){var t=this.props.$$editor,n=t.wrapperResolve?t.wrapperResolve(e):e;(Array.isArray(n)?n:n?[n]:[]).forEach((function(e){e.classList.remove("ae-Editor-common-config")}))}},t.prototype.markDom=function(e){var t=(0,r.findDOMNode)(this);if(t&&e){var n=this.props.$$editor,a=n.wrapperResolve?n.wrapperResolve(t):t;this.props.$$commonSchema&&(Array.isArray(a)?a:a?[a]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.classList.add("ae-Editor-common-config")}))}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.$schema,l=(0,a.__rest)(e,["$$editor","$$node","$schema"]),s=t.renderer;return l=(0,i.JSONPipeOut)(l),t.filterProps&&(l=t.filterProps.call(t.plugin,l,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,(0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)({},l),{$schema:r,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):o.default.createElement(s.component,(0,a.__assign)({},l,{$schema:r,$$editor:t},t.wrapperProps,{ref:this.refFn}))},t}(n(1160).NodeWrapper);t.CommonConfigWrapper=l},9305:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerWrapper=void 0;var a=n(752),r=n(1160),i=(0,a.__importDefault)(n(6689)),o=n(2062),l=n(3570),s=(0,a.__importDefault)(n(6918)),u=n(1548),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,n){var a=this.props,r=a.render,o=a.$$editor,l=r(e,t,n),c=(0,s.default)(o.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(c){var d=c.wrapper||u.RegionWrapper;return i.default.createElement(d,{key:null==n?void 0:n.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:o.plugin.manager.store,wrapperResolve:c.wrapperResolve,manager:o.plugin.manager,children:l,rendererName:o.renderer.name})}return l},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,o=(0,a.__rest)(e,["$$editor","$$node"]),l={},s=t.plugin.manager.store;return t.id&&(s.isActive(t.id)||s.dropId===t.id)&&Array.isArray(t.regions)&&t.regions.forEach((function(e){var t=e.key;if(!e.optional&&!(null==n?void 0:n.memberImmutable(t))){var a=Array.isArray(o[t])?o[t].concat():o[t]?[o[t]]:[];a.length||a.push({children:function(){return null}}),l[t]=a}})),i.default.createElement(r.NodeWrapper,(0,a.__assign)({},o,l,{$$editor:t,$$node:n,render:this.renderChild,ref:this.refFn}))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"refFn",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"renderChild",null),(0,a.__decorate)([o.observer],t)}(i.default.Component);t.ContainerWrapper=c},2296:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importStar)(n(6689)),i=(0,a.__importDefault)(n(9003)),o=(0,a.__importDefault)(n(6751)),l=n(3570),s=n(7172),u=n(9756),c=n(8321),d=n(6211),p=n(1952),f=(0,a.__importDefault)(n(3164)),m=n(2717),h=n(8024),v=n(7649),b=function(e){function t(t){var n=e.call(this,t)||this;n.mainRef=r.default.createRef(),n.isInternalChange=!1;var i=t.value,o=t.isSubEditor,l=void 0!==o&&o,c=(t.onChange,(0,a.__rest)(t,["value","isSubEditor","onChange"])),p=(0,a.__assign)({},c);return n.store=s.EditorStore.create({isMobile:t.isMobile,isSubEditor:l,amisDocHost:t.amisDocHost,ctx:t.ctx},p),n.store.setSchema(i),n.manager=new u.EditorManager(p,n.store),window.editorStore=n.store,n.unReaction=(0,d.reaction)((function(){return n.store.schemaRaw}),(function(e){n.lastResult=e,n.isInternalChange||t.onChange(e)})),n}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;t.value!==e.value&&t.value!==this.lastResult&&(this.isInternalChange=!0,this.store.setSchema(t.value),this.isInternalChange=!1),t.isMobile!==e.isMobile&&this.store.setIsMobile(t.isMobile),t.ctx!==e.ctx&&this.store.setCtx(t.ctx)},t.prototype.componentWillUnmount=function(){this.unReaction(),this.manager.dispose(),(0,m.destroy)(this.store)},t.prototype.handleContextMenu=function(e){var t,n,a,r="",i="";if(this.store.activeId?r=null===(t=e.target.closest('[data-editor-id="'+this.store.activeId+'"]'))||void 0===t?void 0:t.getAttribute("data-editor-id"):this.store.selections.length&&(r=null===(n=e.target.closest(this.store.selections.map((function(e){return'[data-editor-id="'+e+'"]'})).join(",")))||void 0===n?void 0:n.getAttribute("data-editor-id")),r||(r=null===(a=e.target.closest("[data-editor-id]"))||void 0===a?void 0:a.getAttribute("data-editor-id")),!r){var o=e.target.closest("[data-node-id]");if(!(r=null==o?void 0:o.getAttribute("data-node-id")))return;i=o.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation(),this.manager.openContextMenu(r,i,{x:window.scrollX+e.clientX,y:window.scrollY+e.clientY})},t.prototype.canUndo=function(){return this.store.canUndo},t.prototype.canRedo=function(){return this.store.canRedo},t.prototype.undo=function(){this.store.undo()},t.prototype.redo=function(){this.store.redo()},t.prototype.getToolbarContainer=function(){return this.mainRef.current},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.isMobile,l=e.className,s=e.theme,u=e.data,d=e.iframeUrl,m=e.previewProps,b=e.autoFocus;return r.default.createElement("div",{ref:this.mainRef,className:(0,i.default)("ae-Editor",{preview:t},l)},r.default.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},t?null:r.default.createElement(c.Panels,{store:this.store,manager:this.manager,isLeftPanel:!0}),r.default.createElement("div",{className:"ae-Main"},t?null:r.default.createElement(f.default,{store:this.store,manager:this.manager}),r.default.createElement(o.default,(0,a.__assign)({},m,{iframeUrl:d,editable:!t,isMobile:n,store:this.store,manager:this.manager,theme:s,data:u,autoFocus:b,toolbarContainer:this.getToolbarContainer}))),t?null:r.default.createElement(c.Panels,{store:this.store,manager:this.manager})),r.default.createElement(p.SubEditor,{store:this.store,manager:this.manager,theme:s}),r.default.createElement(h.ScaffoldModal,{store:this.store,manager:this.manager,theme:s}),r.default.createElement(v.PopOverForm,{store:this.store,manager:this.manager,theme:s}))},t.defaultProps={autoFocus:!0},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleContextMenu",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getToolbarContainer",null),t}(r.Component);t.default=b},3869:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorRenderer=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){return r.default.createElement("div",{className:"ae-ErrorRenderer"},"类型错误,无法渲染")},t}(r.default.Component);t.ErrorRenderer=i},6089:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(9003)),o=n(2062),l=n(3570),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mainRef=r.default.createRef(),t}return(0,a.__extends)(t,e),t.prototype.handleWResizerMouseDown=function(e){return this.startResize(e,"horizontal")},t.prototype.handleHResizerMouseDown=function(e){return this.startResize(e,"vertical")},t.prototype.handleResizerMouseDown=function(e){return this.startResize(e,"both")},t.prototype.startResize=function(e,t){var n,a,r,i=this;if(void 0===t&&(t="horizontal"),(1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented){e.preventDefault();var o=this.props,l=o.manager,s=o.id,u=o.node;if(u){var c=document.querySelector('[data-editor-id="'+s+'"]');if(c){l.disableHover=!0;var d=l["both"===t?"onSizeChangeStart":"vertical"===t?"onHeightChangeStart":"onWidthChangeStart"](e,{dom:c,node:u,resizer:"both"===t?this.resizerDom:"vertical"===t?this.hResizerDom:this.wResizerDom}),p=null===(n=d.data)||void 0===n?void 0:n.onMove,f=null===(a=d.data)||void 0===a?void 0:a.onEnd;if(p||f){null===(r=this.mainRef.current)||void 0===r||r.setAttribute("data-resizing","");var m=function(e){e.preventDefault(),null==p||p(e)},h=function(e){var t;e.preventDefault(),l.disableHover=!1,null===(t=i.mainRef.current)||void 0===t||t.removeAttribute("data-resizing"),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",h),document.body.style.cursor="default";var n=function(e){window.removeEventListener("click",n,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",n,!0),setTimeout((function(){return window.removeEventListener("click",n,!0)}),350),null==f||f(e)};window.addEventListener("mousemove",m),window.addEventListener("mouseup",h),document.body.style.cursor="both"===t?"nwse-resize":"vertical"===t?"ns-resize":"ew-resize"}}}}},t.prototype.wResizerRef=function(e){e?e.addEventListener("mousedown",this.handleWResizerMouseDown):this.wResizerDom.addEventListener("mousedown",this.handleWResizerMouseDown),this.wResizerDom=e},t.prototype.hResizerRef=function(e){e?e.addEventListener("mousedown",this.handleHResizerMouseDown):this.hResizerDom.addEventListener("mousedown",this.handleHResizerMouseDown),this.hResizerDom=e},t.prototype.resizerRef=function(e){e?e.addEventListener("mousedown",this.handleResizerMouseDown):this.resizerDom.addEventListener("mousedown",this.handleResizerMouseDown),this.resizerDom=e},t.prototype.handleMouseEnter=function(){this.props.manager.disableHover||this.props.store.setHoverId(this.props.id)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,a=e.id,o=e.title,l=e.children,s=e.node,u=(e.toolbarContainer,e.onSwitch),c=n.sortedToolbars,d=n.sortedSecondaryToolbars,p=n.sortedSpecialToolbars,f=n.isActive(a),m=n.isHoved(a)||n.dropId===a||n.insertOrigId===a;return r.default.createElement("div",{className:(0,i.default)("ae-Editor-hlbox",{shake:a===n.insertOrigId,selected:f||~n.selections.indexOf(a),hover:m,regionOn:s.childRegions.some((function(e){return n.isRegionHighlighted(e.id,e.region)}))},t),style:{display:s.w&&s.h?"block":"none",top:s.y,left:s.x,width:s.w,height:s.h},ref:this.mainRef,onMouseEnter:this.handleMouseEnter},f?r.default.createElement("div",{className:"ae-Editor-toolbarPopover"},r.default.createElement("div",{className:"ae-Editor-nav"},s.host?r.default.createElement("div",{className:"ae-Editor-tip parent",onClick:function(){return null==u?void 0:u(s.host.id)}},s.host.label):null,r.default.createElement("div",{key:"tip",className:"ae-Editor-tip current"},o),s.firstChild?r.default.createElement("div",{className:"ae-Editor-tip child",onClick:function(){return null==u?void 0:u(s.firstChild.id)}},s.firstChild.label):null),r.default.createElement("div",{className:"ae-Editor-toolbar",key:"toolbar"},c.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",draggable:e.draggable,onDragStart:e.onDragStart,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))})))):null,f&&d.length?r.default.createElement("div",{className:"ae-Editor-toolbar sencondary",key:"sencondary-toolbar"},d.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",className:e.className,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))}))):null,f&&p.length?r.default.createElement("div",{className:"ae-Editor-toolbar special",key:"special-toolbar"},p.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",className:e.className,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))}))):null,l,s.widthMutable?r.default.createElement("span",{className:"ae-WResizer",ref:this.wResizerRef}):null,s.heightMutable?r.default.createElement("span",{className:"ae-HResizer",ref:this.hResizerRef}):null,s.widthMutable&&s.heightMutable?r.default.createElement("span",{className:"ae-Resizer",ref:this.resizerRef}):null)},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleWResizerMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleHResizerMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResizerMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"wResizerRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"hResizerRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"resizerRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),(0,a.__decorate)([o.observer],t)}(r.default.Component);t.default=s},1325:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mountInIframe=void 0;var a=n(752),r=n(2062),i=n(2717),o=(0,a.__importDefault)(n(6689)),l=n(6405),s=n(9756),u=n(3570),c=(0,a.__importDefault)(n(1454)),d=function(e){function t(t){var n=e.call(this,t)||this,a="__amis_editor_bridge_fn_"+(0,u.guid)();return window[a]=function(e){return delete window[a],n.bridge=e,n.update(t),t.manager},n.bridgeFnName=a,n}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(){this.update()},t.prototype.componentWillUnmount=function(){var e=this.props.store;(0,i.isAlive)(e)&&e.setDoc(document)},t.prototype.iframeRef=function(e){var t=this.props.store;(0,i.isAlive)(t)&&t.setIframe(e)},t.prototype.update=function(e){var t;void 0===e&&(e=this.props);var n=e.editable,r=e.store;null===(t=this.bridge)||void 0===t||t.update((0,a.__assign)((0,a.__assign)({},e),{schema:n?r.filteredSchema:r.filteredSchemaForPreview}))},t.prototype.render=function(){var e=this.props,t=e.url,n=e.manager,a=e.className,r=e.editable,i=e.store;return this.schema=r?i.filteredSchema:i.filteredSchemaForPreview,o.default.createElement("iframe",{ref:this.iframeRef,className:a,id:n.id,src:t+"#"+this.bridgeFnName})},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"iframeRef",null),(0,a.__decorate)([r.observer,(0,a.__metadata)("design:paramtypes",[Object])],t)}(o.default.PureComponent);t.default=d;var p=function(e){function t(t){var n=e.call(this,t)||this;n.state={},n.inited=!1;var r=t.bridgeName,i=parent[r];if("function"!=typeof i)throw new Error("调用错误,或者存在跨域。");var o=i({update:function(e){return n.inited?n.setState((0,a.__assign)({},e)):n.state=(0,a.__assign)({},e)}});if(!o)throw new Error("调用错误");o.store.setDoc(document);var l=new s.EditorManager(o.config,o.store,o);return n.manager=l,n.inited=!0,n}return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){var e=this.manager;e.toDispose.forEach((function(e){return e()})),e.toDispose=[],e.listeners.splice(0,e.listeners.length),e.lazyPatchSchema.cancel()},t.prototype.render=function(){return o.default.createElement(c.default,(0,a.__assign)({},this.state,{manager:this.manager,store:this.manager.store,envCreator:this.props.envCreator}))},t}(o.default.Component);t.mountInIframe=function(e,t,n){if(!location.hash||parent===window)throw new Error("只能在 Iframe 里面调用");var a=location.hash.substring(1);t.render(o.default.createElement(p,{bridgeName:a,envCreator:n}),e),window.onunload=function(){(0,l.unmountComponentAtNode)(e)}}},1454:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(3570),l=n(3869),s=(0,a.__importDefault)(n(9003)),u=n(6405),c=n(2717),d=n(3893),p=function(e){function t(){var t,n,r=e.apply(this,arguments)||this;return r.env=(0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)({},r.props.manager.env),{notify:function(e,t){r.props.editable?console.warn("[Notify]",e,t):i.toast[e]?i.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},theme:r.props.theme,session:"preview-"+r.props.manager.id,rendererResolver:r.rendererResolver}),r.props.manager.env),null===(n=(t=r.props).envCreator)||void 0===n?void 0:n.call(t,r.props)),r}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=(0,u.findDOMNode)(this);if(e.addEventListener("mouseleave",this.handleMouseLeave),e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("click",this.handleClick),e.addEventListener("mouseover",this.handeMouseOver),this.props.autoFocus){var t=this.props.manager.store;setTimeout((function(){if((0,c.isAlive)(t)){var e=(0,d.findTree)(t.outline,(function(e){return!e.isRegion&&e.clickable}));e&&t.setActiveId(e.id)}}),350)}},t.prototype.componentWillUnmount=function(){var e=(0,u.findDOMNode)(this);e.removeEventListener("mouseleave",this.handleMouseLeave),e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("click",this.handleClick),e.removeEventListener("mouseover",this.handeMouseOver)},t.prototype.contentsRef=function(e){var t,n=this;this.dom=e,e?(this.syncIframeHeight(),this.unSensor=(0,i.resizeSensor)(e,(function(){n.syncIframeHeight()}))):(null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.syncIframeHeight=function(){var e=this.props.manager;this.dom&&(e.store.getIframe().style.cssText+="height: "+this.dom.offsetHeight+"px")},t.prototype.handleClick=function(e){var t=this.props.store,n=e.target.closest("[data-editor-id]");if(!e.defaultPrevented&&(n&&t.setActiveId(n.getAttribute("data-editor-id")),this.props.editable)){var a=this.props.manager.trigger("prevent-click",{data:e});a.prevented||a.stoped||(e.preventDefault(),e.stopPropagation())}},t.prototype.handleMouseMove=function(e){var t=this.props.store,n=e.target;if(!n.closest(".ae-AddBtn")){var a=n.closest("[data-editor-id]");a&&t.setHoverId(a.getAttribute("data-editor-id"))}},t.prototype.handleMouseLeave=function(){this.props.store.setHoverId("")},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleContextMenu=function(e){var t,n=null===(t=e.target.closest("[data-editor-id]"))||void 0===t?void 0:t.getAttribute("data-editor-id"),a="";if(!n){var r=e.target.closest("[data-node-id]");if(!(n=null==r?void 0:r.getAttribute("data-node-id")))return;a=r.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation();var i=this.props.manager,o=i.store.getIframe().getBoundingClientRect();i.parent.openContextMenu(n,a,{x:window.scrollX+e.clientX+o.left,y:window.scrollY+e.clientY+o.top})},t.prototype.rendererResolver=function(e,t,n){var r=this.props,o=r.editable,s=r.manager,u=(0,i.resolveRenderer)(e,t);if(!1===o)return u;u=u||{name:"error",test:function(){return!0},component:l.ErrorRenderer};var c=s.getEditorInfo(u,e,t);return c&&(u=(0,a.__assign)((0,a.__assign)({},u),{component:s.makeWrapper(c,u)})),u},t.prototype.render=function(){var e=this.props,t=e.store,n=e.editable,o=(e.manager,e.className),l=e.schema,u=e.data,c=(0,a.__rest)(e,["store","editable","manager","className","schema","data"]);return r.default.createElement("div",{ref:this.contentsRef,onContextMenu:this.handleContextMenu,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:(0,s.default)("ae-IFramePreview",o,n?"is-edting":"")},(0,i.render)(l||{type:"tpl",tpl:"渲染中。。。"},(0,a.__assign)((0,a.__assign)({},c),{key:n?"edit-mode":"preview-mode",theme:this.env.theme,data:null!=u?u:t.ctx}),this.env))},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"contentsRef",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseMove",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handeMouseOver",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragEnter",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragLeave",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDrop",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleContextMenu",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"rendererResolver",null),t}(r.default.Component);t.default=p},1089:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertSubRendererPanel=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6918)),o=n(2062),l=(0,a.__importDefault)(n(6689)),s=n(3570),u=n(3879),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleLeftClick=function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertTag(t)},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertSelected(t)},t.prototype.hadnlDBClick=function(e){var t=e.currentTarget.getAttribute("data-value"),n=this.props.store;n.setInsertSelected(t);var a=this.props.manager;"replace"===n.insertMode?a.replace():a.insert()},t.prototype.handleInsert=function(){this.props.manager.insert()},t.prototype.handleReplace=function(){this.props.manager.replace()},t.prototype.handleCancel=function(){this.props.store.closeInsertPanel()},t.prototype.render=function(){var e,t,n=this,a=this.props.store,o=this.props.manager,s=null===(e=a.getNodeById(a.insertId))||void 0===e?void 0:e.info,c=null===(t=(0,i.default)(s.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,d=a.groupedInsertRenderers,p=Object.keys(d),f=a.insertTag||"全部",m=d[f];return l.default.createElement("div",{className:"ae-InsertPanel"},"replace"===a.insertMode?l.default.createElement("div",{className:"ae-InsertPanel-title"},"更改组件类型"):l.default.createElement("div",{className:"ae-InsertPanel-title"},"选中组件插入到 ",l.default.createElement("code",null,s.name," > ",c)),l.default.createElement("div",{className:"m-b-xs"},l.default.createElement(r.InputBox,{value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:"输入关键字可过滤组件",clearable:!1},a.insertRenderersKeywords?l.default.createElement("a",{onClick:a.resetInsertRenderersKeywords},l.default.createElement(r.Icon,{icon:"close",className:"icon"})):l.default.createElement(r.Icon,{icon:"search",className:"icon"}))),l.default.createElement("div",{className:"ae-RenderersPicker-list"},l.default.createElement("ul",null,p.map((function(e){return l.default.createElement("li",{key:e,className:f===e?"is-active":""},l.default.createElement("a",{"data-value":e,onClick:n.handleLeftClick},e))}))),l.default.createElement("div",{className:"ae-RenderersPicker-content"},Array.isArray(m)&&m.length?l.default.createElement("ul",null,m.map((function(e){return l.default.createElement("li",{key:e.id,className:a.insertSelected===e.id?"is-active":"","data-value":e.id,onClick:n.handleClick,onDoubleClick:n.hadnlDBClick},l.default.createElement(u.RendererThumb,{theme:o.env.theme,env:o.env,schema:e.previewSchema||{type:"tpl",tpl:"无法预览"}}),l.default.createElement("div",{className:"ae-RenderersPicker-info"},l.default.createElement("h4",null,e.name),l.default.createElement("div",null,l.default.createElement(r.Html,{html:e.description}),e.docLink?l.default.createElement("a",{target:"_blank",href:a.amisDocHost+e.docLink}," 详情 "):null)))}))):l.default.createElement("div",null,"没有可用组件,也许你该切换容器试试。"))),l.default.createElement("div",{className:"ae-InsertPanel-footer"},"replace"===a.insertMode?l.default.createElement(r.Button,{onClick:this.handleReplace,disabled:!a.insertSelected,level:"primary"},"替换"):l.default.createElement(r.Button,{onClick:this.handleInsert,disabled:!a.insertSelected,level:"primary"},"插入"),l.default.createElement(r.Button,{onClick:this.handleCancel},"取消")))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleLeftClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"hadnlDBClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInsert",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleReplace",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCancel",null),(0,a.__decorate)([o.observer],t)}(l.default.Component);t.InsertSubRendererPanel=c},7279:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(2296)),o=(0,a.__importDefault)(n(9003)),l=(0,a.__importDefault)(n(6751)),s=n(1952),u=n(8024),c=n(3570),d=function(e){function t(t){var n=e.call(this,t)||this;return n.manager.on("build-panels",n.buildPanels),n}return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.manager.off("build-panels",this.buildPanels)},t.prototype.buildPanels=function(e){var t=e.context.data;Array.isArray(t)&&t.splice(0,t.length)},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.className,a=e.theme,i=e.data;return r.default.createElement("div",{className:(0,o.default)("ae-Editor",{preview:t},n)},r.default.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},r.default.createElement("div",{className:"ae-Main"},r.default.createElement(l.default,{editable:!t,store:this.store,manager:this.manager,theme:a,data:i}))),r.default.createElement(s.SubEditor,{store:this.store,manager:this.manager,theme:a}),r.default.createElement(u.ScaffoldModal,{store:this.store,manager:this.manager,theme:a}))},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"buildPanels",null),t}(i.default);t.default=d},1160:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeWrapper=void 0;var a=n(752),r=n(2062),i=(n(2717),(0,a.__importDefault)(n(6689))),o=n(6405),l=n(3570),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame((function(){}))},t.prototype.componentDidUpdate=function(e){this.markDom(this.props.$$editor.id)},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.markDom=function(e){var t,n,a=(0,o.findDOMNode)(this);if(a&&e){var r=this.props.$$editor,i=!1!==this.props.$$visible&&!0!==this.props.$$hidden,l=r.wrapperResolve?r.wrapperResolve(a):a;(Array.isArray(l)?l:l?[l]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.setAttribute("data-visible",i?"":"false")})),null===(n=null===(t=r.plugin)||void 0===t?void 0:t.markDom)||void 0===n||n.call(t,l,this.props)}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=(0,a.__rest)(e,["$$editor","$$node"]),o=t.renderer;return t.filterProps&&(r=t.filterProps.call(t.plugin,r,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,(0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)({},r),null==n?void 0:n.state),{$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):i.default.createElement(o.component,(0,a.__assign)({},r,null==n?void 0:n.state,{$$editor:t},t.wrapperProps,{ref:this.refFn}))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"refFn",null),(0,a.__decorate)([r.observer],t)}(i.default.Component);t.NodeWrapper=s},1703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OutlinePanel=void 0;var a=n(752),r=n(2062),i=(0,a.__importDefault)(n(6689)),o=(0,a.__importDefault)(n(9003)),l=n(3570),s=n(1502),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=e.currentTarget,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region"),r=this.props.store,i=this.props.manager;a?i.showInsertPanel(a,n):r.setActiveId(n)},t.prototype.handleEnter=function(e){var t=e.currentTarget,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region");this.props.store.setHoverId(n,a)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute("data-node-id");t&&this.props.manager.startDrag(t,e)},t.prototype.handleDragOver=function(e){var t=e.target.closest("[data-node-id][data-node-region]");if(t){var n=this.props.manager,a=t.getAttribute("data-node-id"),r=t.getAttribute("data-node-region");e.preventDefault(),a&&r&&n.dnd.switchToRegion(e.nativeEvent,a,r)}},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.renderItem=function(e,t){var n,a=this,r=this.props.store,l=!r.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,u=l.length;return!r.dragging||e.isRegion||e.children.length?i.default.createElement("li",{className:(0,o.default)("ae-Outline-node",{"is-folded":e.folded,"is-active":r.activeId===e.id&&!e.region||e.isRegion&&r.dropId===e.id&&r.dropRegion===e.region,"is-region":e.isRegion,"is-hover":!e.isRegion&&(r.isHoved(e.id)||r.isContextOn(e.id)),"has-children":u,"is-dragging":r.dragId===e.id&&"schema"===r.dragType}),key:t},i.default.createElement("a",{onClick:this.handleClick,onMouseEnter:this.handleEnter,"data-node-id":e.id,"data-node-region":e.region,"data-node-common-config":null===(n=e.schema)||void 0===n?void 0:n.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},u?i.default.createElement("span",{onClick:e.toggleFold,className:(0,o.default)("ae-Outline-expander",{"is-folded":e.folded}),"data-node-id":e.id,"data-node-region":e.region},i.default.createElement(s.Icon,{icon:"right-arrow-bold"})):null,e.isCommonConfig?e.label+"-[公共配置]":e.label),u?i.default.createElement("ul",{className:"ae-Outline-sublist"},l.map((function(e,t){return a.renderItem(e,t)}))):null):null},t.prototype.render=function(){var e=this,t=this.props.store,n=t.outline;return i.default.createElement("div",{className:(0,o.default)("ae-Outline",{"ae-Outline--draging":t.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop,title:"可点击右键进行操作"},t.dragging?i.default.createElement("div",{className:"ae-Outline-tip"},"将目标拖入导航中的节点可以切换容器"):null,n.length?i.default.createElement("ul",{className:"ae-Outline-list"},n.map((function(t,n){return e.renderItem(t,n)}))):i.default.createElement("div",null,"计算中,请稍等。。"))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEnter",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragStart",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDrop",null),(0,a.__decorate)([r.observer],t)}(i.default.Component);t.OutlinePanel=u},8321:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Panels=void 0;var a=n(752),r=n(2062),i=(0,a.__importDefault)(n(6689)),o=(0,a.__importDefault)(n(9003)),l=n(1502),s=n(3570),u=n(6405),c=(0,a.__importDefault)(n(6918)),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleSelect=function(e){var t=this.props.store;this.isLeftPanel?t.changeLeftPanelKey(e):t.changePanelKey(e)},t.prototype.getPopOverContainer=function(){return(0,u.findDOMNode)(this)},t.prototype.tabsRef=function(e){if(e){var t=(0,u.findDOMNode)(e).parentElement;t.parentElement.style.cssText+="width: "+t.firstChild.offsetWidth+"px;",this.resizeSensor=(0,l.resizeSensor)(t.firstChild,(function(){t.parentElement.style.cssText+="width: "+t.firstChild.offsetWidth+"px;"}))}else this.resizeSensor&&(this.resizeSensor(),delete this.resizeSensor)},t.prototype.render=function(){var e=this,t=this.props.store,n=this.props.manager;this.isLeftPanel=this.props.isLeftPanel||!1;var a=this.isLeftPanel?t.getLeftPanels():t.getPanels(),r=this.props.manager.env.theme,s=t.activeId,u=t.getNodeById(s),d=this.isLeftPanel?t.getLeftPanelKey():t.getPanelKey(),p=t.insertId&&t.insertRegion&&(0,c.default)(a,(function(e){return"insert"===e.key})),f=function(a){return a.render?a.render({id:s,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:e.getPopOverContainer}):a.component?i.default.createElement(a.component,{key:a.key,id:s,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:e.getPopOverContainer}):null};return i.default.createElement("div",{className:(0,o.default)("ae-Settings","none"!==d?"is-active":"",this.isLeftPanel?"is-left":"")},i.default.createElement("div",{className:"ae-Settings-inner"},this.isLeftPanel||1!==a.length?i.default.createElement(l.Tabs,{ref:this.tabsRef,theme:r,className:(0,o.default)("ae-Settings-tabs",{"ae-LeftSettings-tabs":this.isLeftPanel}),contentClassName:(0,o.default)("ae-Settings-tabs-content"),activeKey:d,onSelect:this.handleSelect},a.map((function(e){return"insert"!==e.key?i.default.createElement(l.Tab,{key:e.key,eventKey:e.key,title:e.title,icon:e.icon,className:"ae-Editor-"+e.key+"Pane",mountOnEnter:!0,unmountOnExit:!0},f(e)):null}))):i.default.createElement("div",{ref:this.tabsRef,className:(0,o.default)("ae-Settings-main")},f(a[0]))),i.default.createElement(l.Drawer,{position:"left",size:"md",show:!!p,theme:r,onHide:t.closeInsertPanel},p&&p.component?i.default.createElement(p.component,{key:p.key,id:s,info:null==u?void 0:u.info,path:null==u?void 0:u.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSelect",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"tabsRef",null),(0,a.__decorate)([r.observer],t)}(i.default.Component);t.Panels=d},7649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopOverForm=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(2062),l=n(3570),s=n(3893),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlay=r.default.createRef(),t}return(0,a.__extends)(t,e),t.prototype.buildSchema=function(){var e=this,t=this.props.store.popOverForm;return{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",body:t.body,submitOnChange:!0,autoFocus:!0,onFinished:function(n){var a;null===(a=t.callback)||void 0===a||a.call(t,n,(0,l.diff)(t.value,n)),setTimeout((function(){var t;return null===(t=e.overlay.current)||void 0===t?void 0:t.updatePosition()}),200)}}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,o=e.manager,l=t.popOverForm;return r.default.createElement(i.Overlay,{target:null==l?void 0:l.target,placement:"left-bottom-left-top left-top-left-bottom right-bottom-right-top right-top-right-bottom center",show:!!l,ref:this.overlay},r.default.createElement(i.PopOver,{overlay:!0,className:"ae-Editor-popOverForm",onHide:t.closePopOverForm},l?(0,i.render)(this.buildSchema(),{data:(0,s.createObject)(t.ctx,null==l?void 0:l.value)},(0,a.__assign)((0,a.__assign)({},o.env),{seesion:"popover-form",theme:n})):r.default.createElement("p",null,"Loading...")))},(0,a.__decorate)([o.observer],t)}(r.default.Component);t.PopOverForm=u},6751:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=n(1502),i=(0,a.__importStar)(n(6689)),o=(0,a.__importDefault)(n(9003)),l=n(3570),s=n(361),u=n(2062),c=n(6405),d=(0,a.__importDefault)(n(6089)),p=(0,a.__importDefault)(n(248)),f=n(3869),m=(0,a.__importDefault)(n(1325)),h=n(2717),v=n(3893),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.env=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},t.props.manager.env),{notify:function(e,n){t.props.editable?console.warn("[Notify]",e,n):r.toast[e]?r.toast[e](n,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,n)},theme:t.props.theme,session:"preview-"+t.props.manager.id,rendererResolver:t.rendererResolver.bind(t)}),t.props.amisEnv),t.doingSelection=!1,t.unReaction=(0,l.reactionWithOldValue)((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,n){var a=e[0],r=t.props.store;setTimeout((function(){t.calculateHighlightBox(a)}),50);var i=null==n?void 0:n[0];Array.isArray(i)&&(i=i.filter((function(e){return!~a.indexOf(e)})),r.resetHighlightBox(i))})),t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=(0,c.findDOMNode)(this);e.addEventListener("mouseleave",this.handleMouseLeave),e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("click",this.handleClick),e.addEventListener("mouseover",this.handeMouseOver),e.addEventListener("mousedown",this.handeMouseDown),this.props.manager.on("after-update",this.handlePanelChange)},t.prototype.componentWillUnmount=function(){var e=this,t=(0,c.findDOMNode)(this);t.removeEventListener("mouseleave",this.handleMouseLeave),t.removeEventListener("mousemove",this.handleMouseMove),t.removeEventListener("click",this.handleClick),t.removeEventListener("mouseover",this.handeMouseOver),t.removeEventListener("mousedown",this.handeMouseDown),this.props.manager.off("after-update",this.handlePanelChange),setTimeout((function(){return(0,s.clearStoresCache)([e.env.session])}),500)},t.prototype.contentsRef=function(e){var t,n=this;e?(this.layer=e.querySelector(".ae-Preview-widgets"),this.props.store.setLayer(this.layer),this.unSensor=(0,r.resizeSensor)(e,(function(){return n.calculateHighlightBox(n.getHighlightNodes())}))):(delete this.layer,null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.handlePanelChange=function(){var e=this;setTimeout((function(){return e.calculateHighlightBox(e.getHighlightNodes())}),50)},t.prototype.getHighlightNodes=function(){return this.props.store.highlightNodes.map((function(e){return e.id}))},t.prototype.calculateHighlightBox=function(e){var t=this.props.store;this.layer&&t.calculateHighlightBox(e)},t.prototype.handeMouseDown=function(e){var t,n=this,a=1===e.button&&null!==window.event||0===e.button;if(this.props.editable&&a&&!e.defaultPrevented&&!e.defaultPrevented&&!(null===(t=e.target)||void 0===t?void 0:t.closest("[draggable]"))){var r=this.layer;if(r){var i=null,o=r.getBoundingClientRect(),l=e.pageX,s=e.pageY,u=l-o.left,c=s-o.top,d=function(e){i||((i=document.createElement("div")).classList.add("ae-Editor-selectionCursor"),r.appendChild(i)),n.doingSelection=!0;var t=e.pageX-l,a=e.pageY-s;i.style.cssText="left: "+(u+Math.min(t,0))+"px; top: "+(c+Math.min(a,0))+"px; width: "+Math.abs(t)+"px; height: "+Math.abs(a)+"px;"},p=function(e){n.doingSelection=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),i&&r.removeChild(i);var t=e.pageX-l,a=e.pageY-s,o={x:u+Math.min(t,0),y:c+Math.min(a,0),w:Math.abs(t),h:Math.abs(a)};if(!(o.w<10&&o.h<10)){var f=function(e){window.removeEventListener("click",f,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",f,!0),setTimeout((function(){return window.removeEventListener("click",f,!0)}),350),n.doSelection(o)}};window.addEventListener("mousemove",d),window.addEventListener("mouseup",p)}}},t.prototype.doSelection=function(e){var t=this.layer,n=(0,c.findDOMNode)(this);if(t&&n){var a=[],r=t.getBoundingClientRect(),i=e.x+r.left,o=e.y+r.top,l=(e.w,e.h,e.x+r.left+e.w),s=e.y+r.top+e.h,u=n.querySelectorAll("[data-editor-id]");[].slice.apply(u).forEach((function(e){if(!a.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();i<=t.left&&o<=t.top&&l>=t.right&&s>=t.bottom&&(~a.indexOf(e)||a.push(e))}}));var d=a.map((function(e){return e.getAttribute("data-editor-id")})).filter((function(e,t,n){return n.indexOf(e)===t}));d.length&&this.props.manager.setSelection(d)}},t.prototype.handleClick=function(e){var t,n=this.props.store,a=e.target.closest("[data-editor-id]");if(e.defaultPrevented)e.stopPropagation();else if(a&&(e.metaKey?this.props.manager.toggleSelection(a.getAttribute("data-editor-id")):n.setActiveId(a.getAttribute("data-editor-id"))),!(null===(t=this.layer)||void 0===t?void 0:t.contains(e.target))&&this.props.editable){var r=this.props.manager.trigger("prevent-click",{data:e});r.prevented||r.stoped||(e.preventDefault(),e.stopPropagation())}},t.prototype.handleNavSwitch=function(e){this.props.store.setActiveId(e)},t.prototype.handleMouseMove=function(e){var t;if(!this.doingSelection&&!this.props.manager.disableHover){var n=this.props.store,a=e.target;if(a.closest(".ae-InsertBefore,.ae-InsertAfter"))n.setHoverId("");else if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(a))&&!a.closest(".ae-AddBtn")){var r=a.closest("[data-editor-id]");r&&n.setHoverId(r.getAttribute("data-editor-id"))}}},t.prototype.handleMouseLeave=function(){this.props.store.setHoverId("")},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.rendererResolver=function(e,t,n){var i=this.props,o=i.editable,l=i.manager,s=(0,r.resolveRenderer)(e,t);if(!1===o)return s;s=s||{name:"error",test:function(){return!0},component:f.ErrorRenderer};var u=l.getEditorInfo(s,e,t);return u&&(s=(0,a.__assign)((0,a.__assign)({},s),{component:l.makeWrapper(u,s)})),s},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.editable,l=t.store,s=t.manager,u=(t.amisEnv,t.theme),c=t.isMobile,f=t.iframeUrl,h=t.autoFocus,v=t.toolbarContainer,b=(0,a.__rest)(t,["className","editable","store","manager","amisEnv","theme","isMobile","iframeUrl","autoFocus","toolbarContainer"]);return i.default.createElement("div",{onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:(0,o.default)("ae-Preview",n,r?"is-edting":"",c?"is-mobile":"is-pc")},i.default.createElement("div",{className:"ae-Preview-inner",ref:this.contentsRef},f&&c?i.default.createElement(m.default,(0,a.__assign)({},b,{key:"mobile",className:"ae-PreviewFrame",editable:r,isMobile:c,store:l,env:this.env,manager:s,url:f,theme:u,autoFocus:h})):i.default.createElement(g,(0,a.__assign)({},b,{editable:r,autoFocus:h,store:l,env:this.env,key:"pc"})),f&&c&&l.contextId?i.default.createElement("span",{className:"ae-IframeMask"}):null,i.default.createElement("div",{className:"ae-Preview-widgets"},l.highlightNodes.map((function(t){return i.default.createElement(d.default,{node:t,key:t.id,store:l,id:t.id,title:t.label,toolbarContainer:v,onSwitch:e.handleNavSwitch,manager:s},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&l.isRegionActive(e.id,e.region)?i.default.createElement(p.default,{manager:s,key:e.region,store:l,node:e,id:e.id,name:e.region,title:e.label,preferTag:e.preferTag}):null})))})))))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"contentsRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handlePanelChange",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Array]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"calculateHighlightBox",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handeMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleNavSwitch",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseMove",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handeMouseOver",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragEnter",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragLeave",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDrop",null),(0,a.__decorate)([u.observer],t)}(i.Component);t.default=b;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props.store;this.props.autoFocus&&setTimeout((function(){if((0,h.isAlive)(e)){var t=(0,v.findTree)(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&(0,h.isAlive)(e)&&e.setActiveId(t.id)}}),350)},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,i=(e.autoFocus,e.env),o=e.data,l=(0,a.__rest)(e,["editable","store","autoFocus","env","data"]);return(0,r.render)(t?n.filteredSchema:n.filteredSchemaForPreview,(0,a.__assign)((0,a.__assign)({},l),{key:t?"edit-mode":"preview-mode",theme:i.theme,data:null!=o?o:n.ctx}),i)},(0,a.__decorate)([u.observer],t)}(i.default.Component)},248:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddBTNSvg=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(9003)),o=n(2062),l=n(3570);t.AddBTNSvg='<svg viewBox="0 0 12 12">\n<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="plus" fill="currentColor" fill-rule="nonzero">\n <polygon points="6.6 6.6 6.6 12 5.4 12 5.4 6.6 0 6.6 0 5.4 5.4 5.4 5.4 0 6.6 0 6.6 5.4 12 5.4 12 6.6"></polygon>\n </g>\n</g>\n</svg>';var s=function(e){function n(n){var a=e.call(this,n)||this,r=a.addBtn=document.createElement("a");return r.className="ae-AddBtn",r.innerHTML=t.AddBTNSvg,r.addEventListener("click",a.handleClick),r.addEventListener("mouseenter",a.handleMouseEnter),r.addEventListener("mouseleave",a.handleMouseLeave),a}return(0,a.__extends)(n,e),n.prototype.componentDidMount=function(){this.attachAddBtn()},n.prototype.componentDidUpdate=function(){this.attachAddBtn()},n.prototype.componentWillUnmount=function(){var e;null===(e=this.addBtn.parentNode)||void 0===e||e.removeChild(this.addBtn),this.addBtn.removeEventListener("click",this.handleClick),this.addBtn.removeEventListener("mouseenter",this.handleMouseEnter),this.addBtn.removeEventListener("mouseleave",this.handleMouseLeave)},n.prototype.attachAddBtn=function(){var e=this.props,t=e.name,n=e.id,a=e.store,r=a.getDoc().querySelector('[data-region="'+t+'"][data-region-host="'+n+'"]');if(r){var i=a.getNodeById(n);if(i&&(a.isActive(n)||a.dropId===n)&&a.panels.some((function(e){return"renderers"===e.key}))&&!i.memberImmutable(t)){var o=[].slice.call(r.children),l=o.indexOf(this.addBtn);~l&&l===o.length-1||r.appendChild(this.addBtn)}else this.addBtn.parentElement===r&&r.removeChild(this.addBtn)}},n.prototype.handleClick=function(){var e=this.props,t=e.store,n=e.manager,a=e.id,r=e.name,i=e.preferTag,o=t.getNodeById(a);o&&t.isActive(a)&&t.panels.some((function(e){return"renderers"===e.key}))&&!o.memberImmutable(r)&&n.showInsertPanel(r,a,i)},n.prototype.handleMouseEnter=function(){this.props.manager.disableHover||this.props.store.setHoverId(this.props.id,this.props.name)},n.prototype.handleMouseLeave=function(){this.props.store.setHoverId(this.props.id,"")},n.prototype.render=function(){var e=this.props,t=e.store,n=e.id,a=e.name,o=e.title,l=e.node,s=t.isRegionHighlighted(n,a),u=t.isRegionDragEnter(n,a),c=t.getNodeById(n),d=l.x-c.x,p=l.y-c.y;return r.default.createElement("div",{"data-renderer":l.host.info.renderer.name,"data-region":a,className:(0,i.default)("ae-Editor-rhlbox",u?"is-dragenter":"",s?"is-highlight":""),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,style:{width:l.w,height:l.h,borderWidth:Math.max(0,p)+"px "+Math.max(0,c.w-d-l.w)+"px "+Math.max(0,c.h-p-l.h)+"px "+Math.max(0,d)+"px"}},r.default.createElement("div",{onClick:this.handleClick,"data-node-id":n,"data-node-region":a,className:"region-tip"},o))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"attachAddBtn",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"handleClick",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"handleMouseEnter",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"handleMouseLeave",null),(0,a.__decorate)([o.observer,(0,a.__metadata)("design:paramtypes",[Object])],n)}(r.default.Component);t.default=s},1548:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RegionWrapper=void 0;var a=n(752),r=n(2717),i=(0,a.__importDefault)(n(6689)),o=n(6405),l=n(2406),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentWillMount=function(){var e=this.context;e&&(this.editorNode=e.addChild({id:e.id,label:this.props.label,path:e.path+"/"+this.props.name,region:this.props.name,regionInfo:this.props.regionConfig,preferTag:this.props.preferTag}))},t.prototype.componentDidMount=function(){this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentDidUpdate=function(e){this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentWillUnmount=function(){this.editorNode&&(0,r.isAlive)(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e,t,n){var a=(0,o.findDOMNode)(this);if(a){var r=this.props.wrapperResolve,i=r?r(a):a.parentElement;i.setAttribute("data-region",t),i.setAttribute("data-region-host",e),i.setAttribute("data-region-placeholder",this.props.placeholder||this.props.label),n&&i.setAttribute("data-renderer",n)}},t.prototype.render=function(){return i.default.createElement(l.EditorNodeContext.Provider,{value:this.editorNode},this.props.children,i.default.createElement("span",{className:"ae-Region-placeholder"}))},t.contextType=l.EditorNodeContext,t}(i.default.Component);t.RegionWrapper=s},3879:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RendererThumb=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(1502),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={scale:!0},t.env=(0,a.__assign)({session:"preview"},t.props.env),t}return(0,a.__extends)(t,e),t.prototype.componentWillMount=function(){this.rootRef=this.rootRef.bind(this),this.syncHeight=this.syncHeight.bind(this),this.handleClick=this.handleClick.bind(this)},t.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},t.prototype.rootRef=function(e){var t;this.ref=e,e&&(this.syncHeight(),this.unSensor=(0,o.resizeSensor)(null===(t=e.firstChild)||void 0===t?void 0:t.firstChild,this.syncHeight))},t.prototype.syncHeight=function(){if(this.ref){var e=this.state.scale,t=this.ref.firstChild;this.ref.style.cssText="height: "+t.scrollHeight/(e?2:1)+"px;"}},t.prototype.handleClick=function(e){e.preventDefault(),this.setState({scale:!this.state.scale})},t.prototype.render=function(){var e=this,t=this.props,n=t.schema,l=t.theme;return i.default.createElement(r.LazyComponent,{unMountOnHidden:!1,schema:n,component:function(t){var n=t.schema;return i.default.createElement("div",{className:"ae-RenderersPicker-thumb "+(e.state.scale?"is-scaled":"")},i.default.createElement("div",{className:"ae-Editor-rendererThumbWrap"},i.default.createElement("div",{className:"ae-Editor-rendererThumbIcon",onClick:e.handleClick},i.default.createElement(r.Icon,{icon:e.state.scale?"zoom-in":"zoom-out"})),i.default.createElement("div",{ref:e.rootRef,className:"ae-Editor-rendererThumb"},i.default.createElement("div",{className:"ae-Editor-rendererThumbInner"},(0,o.render)((0,a.__assign)((0,a.__assign)({},n),{mode:"horizontal"===n.mode?"normal":n.mode}),{theme:l},e.env)))))}})},t}(i.default.Component);t.RendererThumb=l},8024:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScaffoldModal=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(2062),l=n(3570),s=n(3893),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleConfirm=function(e){var t,n,r,i=e[0],o=this.props.store;if(i=(0,a.__assign)((0,a.__assign)({},null===(t=o.scaffoldForm)||void 0===t?void 0:t.value),i),null===(n=o.scaffoldForm)||void 0===n?void 0:n.pipeOut){var l=o.scaffoldForm.pipeOut(i);i=(0,a.__assign)({},l)}null===(r=o.scaffoldForm)||void 0===r||r.callback(i),o.closeScaffoldForm()},t.prototype.buildSchema=function(){var e,t,n=this.props.store.scaffoldForm;return(e={type:"form",wrapWithPanel:!1,initApi:n.initApi,api:n.api,mode:n.mode||"normal",wrapperComponent:"div"})[n.controls?"controls":"body"]=null!==(t=n.controls)&&void 0!==t?t:n.body,e},t.prototype.scopeRef=function(e){this.amisScope=e},t.prototype.handleConfirmClick=function(){var e;return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(!(t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0]))return[2];n=this.props.store,a.label=1;case 1:return a.trys.push([1,3,4,5]),n.setScaffoldBuzy(!0),[4,t.doAction({type:"submit"},t.props.data,!0)];case 2:return r=a.sent(),this.handleConfirm([r]),[3,5];case 3:return i=a.sent(),console.log(i.stack),n.setScaffoldError(i.message),[3,5];case 4:return n.setScaffoldBuzy(!1),[7];case 5:return[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,o=e.manager,l=t.scaffoldForm,u=(0,i.getTheme)(n||"cxd").classnames;return r.default.createElement(i.Modal,{theme:n,size:(null==l?void 0:l.size)||"md",show:!!l,onHide:t.closeScaffoldForm,closeOnEsc:!t.scaffoldFormBuzy},r.default.createElement("div",{className:u("Modal-header")},t.scaffoldFormBuzy?null:r.default.createElement("a",{"data-position":"left",onClick:t.closeScaffoldForm,className:u("Modal-close")},r.default.createElement(i.Icon,{icon:"close",className:"icon"})),r.default.createElement("div",{className:u("Modal-title")},null==l?void 0:l.title)),r.default.createElement("div",{className:u("Modal-body")},l?(0,i.render)(this.buildSchema(),{data:(0,s.createObject)(t.ctx,null==l?void 0:l.value),onValidate:l.validate,scopeRef:this.scopeRef},(0,a.__assign)((0,a.__assign)({},o.env),{seesion:"scaffold-dialog",theme:n})):r.default.createElement("p",null,"Loading...")),r.default.createElement("div",{className:u("Modal-footer")},t.scaffoldFormBuzy||t.scaffoldError?r.default.createElement("div",{className:u("Dialog-info"),key:"info"},r.default.createElement(i.Spinner,{size:"sm",key:"info",show:t.scaffoldFormBuzy}),t.scaffoldError?r.default.createElement("span",{className:u("Dialog-error")},t.scaffoldError):null):null,r.default.createElement(i.Button,{level:"primary",onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},"确认"),r.default.createElement(i.Button,{onClick:t.closeScaffoldForm},"取消")))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleConfirm",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"scopeRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleConfirmClick",null),(0,a.__decorate)([o.observer],t)}(r.default.Component);t.ScaffoldModal=u},1952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubEditor=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(2062),l=(0,a.__importDefault)(n(2296)),s=n(3570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.afterResolveEditorInfo=function(e){var t,n,a,r,i,o,l=this.props.store,s=e.context;if(null===(t=l.subEditorContext)||void 0===t?void 0:t.slot){var u=l.subEditorSlotPath;!~s.schemaPath.indexOf(u)&&s.data?(s.data.editable=!1,s.data.memberImmutable=!Array.isArray(null===(r=l.subEditorContext)||void 0===r?void 0:r.value),s.data.memberImmutable||(s.data.name="容器")):s.schemaPath===u&&s.data&&(Array.isArray(null===(i=l.subEditorContext)||void 0===i?void 0:i.value)||(s.data.movable=!1,s.data.removable=!1),s.data.typeMutable=null===(o=l.subEditorContext)||void 0===o?void 0:o.typeMutable)}else s.data&&!s.schemaPath&&(null===(n=l.subEditorContext)||void 0===n?void 0:n.memberImmutable)&&(s.data.memberImmutable=null===(a=l.subEditorContext)||void 0===a?void 0:a.memberImmutable)},t.prototype.handleBuildPanels=function(e){var t,n=this.props.store;if(null===(t=n.subEditorContext)||void 0===t?void 0:t.slot){var a=n.subEditorSlotPath,r=e.context;if(!~r.schemaPath.indexOf(a)){var i=r.data.concat();if(r.data.splice(0,r.data.length),!r.info.memberImmutable){var o=i.find((function(e){return"renderers"===e.key}));o&&r.data.push(o)}}}},t.prototype.buildSchema=function(){var e,t=this,n=this.props,i=n.store,o=n.manager,s=i.subEditorContext,u=o.config;return{size:"full",title:null===(e=i.subEditorContext)||void 0===e?void 0:e.title,onClose:i.closeSubEditor,onConfirm:i.confirmSubEditor,body:i.subEditorContext?{type:"form",mode:"normal",wrapperComponent:"div",onValidate:function(e){return(0,a.__awaiter)(t,void 0,void 0,(function(){var t,n,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return[4,null===(r=null===(n=i.subEditorContext)||void 0===n?void 0:n.validate)||void 0===r?void 0:r.call(n,e)];case 1:return(t=a.sent())?[2,{schema:t}]:[2]}}))}))},onChange:i.subEditorOnChange,body:[{name:"schema",asFormItem:!0,children:function(e){var n,a=e.value,s=e.onChange;return r.default.createElement(l.default,{autoFocus:!0,value:a,ref:i.subEditorRef,onChange:s,data:null===(n=i.subEditorContext)||void 0===n?void 0:n.data,schemaFilter:o.config.schemaFilter,theme:o.env.theme,afterResolveEditorInfo:t.afterResolveEditorInfo,onBuildPanels:t.handleBuildPanels,isMobile:i.isMobile,isSubEditor:!0,iframeUrl:u.iframeUrl,ctx:i.ctx,amisEnv:u.amisEnv,plugins:u.plugins,isHiddenProps:u.isHiddenProps,$schemaUrl:u.$schemaUrl})}}]}:{type:"tpl",tpl:"Loading..."},actions:[[{children:s?r.default.createElement("div",{className:"ae-DialogToolbar"},r.default.createElement("button",{type:"button","data-tooltip":"撤销",disabled:!s.canUndo,onClick:i.undoSubEditor},r.default.createElement("i",{className:"fa fa-undo"})),r.default.createElement("button",{type:"button","data-tooltip":"重做",disabled:!s.canRedo,onClick:i.redoSubEditor},r.default.createElement("i",{className:"fa fa-rotate-right"}))):null},{type:"submit",label:"确认",level:"primary"},{type:"button",label:"取消",actionType:"close"}]],closeOnEsc:!1,bodyClassName:"ae-dialog"}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager;return(0,i.render)((0,a.__assign)({type:"dialog"},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},(0,a.__assign)((0,a.__assign)({},r.env),{seesion:"editor-dialog",theme:n}))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"afterResolveEditorInfo",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBuildPanels",null),(0,a.__decorate)([o.observer],t)}(r.default.Component);t.SubEditor=u},1578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewEditor=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(113)),o=n(1502),l=n(3570);function s(e){for(var t=0,n=0,a=0;a<e.length;a++){var r=(e[a].tds||[]).length;r>t&&(n=a,t=r)}return n}var u=function(e){function t(t){var n=e.call(this,t)||this;n.preventTableClick=!1,n.tableViewWrapperRef=r.default.createRef(),n.store=n.props.manager.store;var a=n.props.schema.trs||[];if(a.length){var i=a.map((function(e){return e.$$id})),o=s(a);n.maxChildTrIndex=o;var l=(a[o].tds||[]).map((function(e){return e.$$id}));n.state={trIds:i,tdIds:l,displayMergeCell:!1}}else n.state={trIds:[],tdIds:[],displayMergeCell:!1};return n.listenTdSelection(),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.syncLinePos(),this.listenTdSelection()},t.prototype.componentWillUnmount=function(){this.removeListenTdSelection()},t.prototype.syncLineState=function(){var e=this,t=this.props.schema.trs||[];if(t.length){var n=t.map((function(e){return e.$$id})),a=s(t);this.maxChildTrIndex=a;var r=(t[a].tds||[]).map((function(e){return e.$$id}));this.setState({trIds:n,tdIds:r},(function(){e.syncLinePos()}))}},t.prototype.removeListenTdSelection=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("tbody");t.removeEventListener("mousedown",this.handleCellMouseDown),t.removeEventListener("mousemove",this.handleCellMouseMove),t.removeEventListener("mouseup",this.handleCellMouseUp),t.removeEventListener("click",this.handleCellMouseClick)}},t.prototype.listenTdSelection=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("tbody");t.addEventListener("mousedown",this.handleCellMouseDown),t.addEventListener("mousemove",this.handleCellMouseMove),t.addEventListener("mouseup",this.handleCellMouseUp),t.addEventListener("click",this.handleCellMouseClick)}},t.prototype.handleCellMouseDown=function(e){var t,n=e.target;if(!n||"TD"===n.tagName){this.removeAllSelectionMark(),this.setState({displayMergeCell:!1});var a=n.getAttribute("data-editor-id");this.isSelectionCell=!0,this.selectedCell=((t={})[a]=(0,l.JSONGetById)(this.props.schema,a),t)}},t.prototype.handleCellMouseMove=function(e){if(this.isSelectionCell){this.preventTableClick=!0;var t=e.target;if(t&&"TD"!==t.tagName)return;var n=t.getAttribute("data-editor-id");n in this.selectedCell||(this.selectedCell[n]=(0,l.JSONGetById)(this.props.schema,n),this.markSelectingCell(),this.setState({displayMergeCell:!0}))}},t.prototype.findFirstAndLastCell=function(){var e=[];for(var t in this.selectedCell)e.push(this.selectedCell[t]);e.length||console.warn("必须有 td");for(var n=e[0].$$col,a=e[0].$$row,r=0,i=0,o=null,l=0,s=e;l<s.length;l++){var u=s[l],c=u.$$col+(u.colspan||1)-1,d=u.$$row+(u.rowspan||1)-1;c>=r&&(r=c),d>=i&&(i=d),u.$$col<=n&&(n=u.$$col),u.$$row<=a&&(a=u.$$row),u.$$col===n&&u.$$row===a&&(o=u)}return{minRow:a,minCol:n,maxRow:i,maxCol:r,firstCell:o,lastCell:null}},t.prototype.markSelectingCell=function(){for(var e=this,t=this.findFirstAndLastCell(),n=t.minRow,a=t.minCol,r=t.maxRow,i=t.maxCol,o=0,l=this.props.schema.trs;o<l.length;o++)for(var s=0,u=l[o].tds;s<u.length;s++){var c=u[s],d=c;d.$$col>=a&&d.$$col<=i&&d.$$row>=n&&d.$$row<=r&&(d.$$id in this.selectedCell||(this.selectedCell[d.$$id]=c))}var p=this.tableViewWrapperRef.current;p&&p.querySelectorAll("td").forEach((function(t){t.getAttribute("data-editor-id")in e.selectedCell&&t.setAttribute("data-selected","1")}))},t.prototype.removeAllSelectionMark=function(){var e=this.tableViewWrapperRef.current;e&&e.querySelectorAll("td").forEach((function(e){e.removeAttribute("data-selected")}))},t.prototype.handleCellMouseUp=function(e){this.isSelectionCell=!1},t.prototype.handleCellMouseClick=function(e){this.preventTableClick&&(e.stopPropagation(),e.preventDefault(),this.preventTableClick=!1)},t.prototype.handleMergeCell=function(){var e=this.findFirstAndLastCell(),t=e.firstCell,n=e.minRow,a=e.minCol,r=e.maxRow,i=e.maxCol;if(t){var o=t.$$id,l=i-a+1,s=r-n+1;t.colspan=l,t.rowspan=s;var u=[];for(var c in this.selectedCell)u.push(this.selectedCell[c]);for(var d=u.filter((function(e){return e.$$id!==o})).map((function(e){return e.$$id})),p=this.props.schema.trs,f=p.length;f--;){var m=p[f];m.tds=m.tds.filter((function(e){return!d.includes(e.$$id)})),m.tds.length||p.splice(f,1)}var h=this.props.schema.$$id;this.store.changeValueById(h,this.props.schema),this.setState({displayMergeCell:!1})}else console.warn("找不到第一个 cell")},t.prototype.syncLinePos=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("table").getBoundingClientRect(),n=e.querySelectorAll("tr");if(!n.length||void 0===this.maxChildTrIndex)return;for(var a=Array.from(e.querySelectorAll(".ae-TableViewEditor-rowLine")),r=0;r<n.length;r++)if(n[r]){var i=n[r].getBoundingClientRect();a[r]?a[r].style.top=i.top+i.height-t.top-3.5+"px":console.warn("行线数量不对")}for(var o=n[this.maxChildTrIndex].querySelectorAll("td"),l=Array.from(e.querySelectorAll(".ae-TableViewEditor-colLine")),s=0;s<o.length;s++){var u=o[s];if(u){var c=u.getBoundingClientRect();l[s]?l[s].style.left=c.left+c.width-t.left-3.5+"px":console.warn("列线数量不对")}}}},t.prototype.componentDidUpdate=function(e){var t=e.schema,n=this.props.schema;(0,i.default)(t,n)||this.syncLineState()},t.prototype.lineMouseDownCommon=function(e){this.startY=e.clientY,this.startX=e.clientX;var t=e.currentTarget;this.draggingElement=t,this.draggingElementTop=parseInt(this.draggingElement.style.top,10),this.draggingElementLeft=parseInt(this.draggingElement.style.left,10),t.style.background="#4285f4",this.draggingId=t.getAttribute("data-id"),t.addEventListener("click",this.handleLineClick,{once:!0})},t.prototype.handleRowMouseDown=function(e){this.lineMouseDownCommon(e),document.addEventListener("mousemove",this.handleRowMouseMove),document.addEventListener("mouseup",this.handleRowMouseUp)},t.prototype.handleRowMouseMove=function(e){var t=e.clientY-this.startY;this.draggingElement.style.top=this.draggingElementTop+t+"px"},t.prototype.handleRowMouseUp=function(e){document.removeEventListener("mousemove",this.handleRowMouseMove),document.removeEventListener("mouseup",this.handleRowMouseUp);var t=e.clientY-this.startY,n=this.store,r=this.draggingId,i=n.getValueOf(r),l=this.tableViewWrapperRef.current.querySelector('tr[data-editor-id="'+r+'"]');if(this.draggingElement.style.background="none",i&&l){var s=l.getBoundingClientRect().height+t;n.changeValueById(r,(0,a.__assign)((0,a.__assign)({},i),{height:s})),42-s>20&&o.toast.warning("由于内边距限制,太小的高度设置会不生效,可以调小默认内边距")}else console.warn("找不到对应的 id",r)},t.prototype.handleColMouseDown=function(e){this.lineMouseDownCommon(e),document.addEventListener("mousemove",this.handleColMouseMove),document.addEventListener("mouseup",this.handleColMouseUp)},t.prototype.handleColMouseMove=function(e){var t=e.clientX-this.startX;this.draggingElement.style.left=this.draggingElementLeft+t+"px"},t.prototype.handleColMouseUp=function(e){document.removeEventListener("mousemove",this.handleColMouseMove),document.removeEventListener("mouseup",this.handleColMouseUp);var t=e.clientX-this.startX,n=this.store,r=this.draggingId,i=n.getValueOf(r),o=this.tableViewWrapperRef.current.querySelector('td[data-editor-id="'+r+'"]');if(this.draggingElement.style.background="none",i&&o){var l=o.getBoundingClientRect().width+t;n.changeValueById(r,(0,a.__assign)((0,a.__assign)({},i),{width:l}))}else console.warn("找不到对应的 id",r)},t.prototype.handleLineClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.renderMergeIcon=function(){return this.state.displayMergeCell?r.default.createElement("div",{className:"ae-TableViewEditor-mergeIcon",onMouseDown:this.handleMergeCell},"合并单元格"):null},t.prototype.render=function(){var e=this,t=this.state.trIds.map((function(t){return r.default.createElement("div",{className:"ae-TableViewEditor-rowLine",key:"row-"+t,"data-id":t,onMouseDown:e.handleRowMouseDown})})),n=this.state.tdIds.map((function(t){return r.default.createElement("div",{className:"ae-TableViewEditor-colLine",key:"row-"+t,"data-id":t,onMouseDown:e.handleColMouseDown})}));return r.default.createElement("div",{className:"ae-TableViewEditor",ref:this.tableViewWrapperRef},this.props.children,this.renderMergeIcon(),t,n)},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"removeListenTdSelection",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"listenTdSelection",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCellMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCellMouseMove",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCellMouseUp",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCellMouseClick",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMergeCell",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleRowMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleRowMouseMove",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleRowMouseUp",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColMouseMove",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColMouseUp",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[MouseEvent]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleLineClick",null),t}(r.default.Component);t.TableViewEditor=u},325:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TargetNamePanel=void 0;var a=n(752),r=n(2062),i=(0,a.__importDefault)(n(9003)),o=(0,a.__importDefault)(n(6689)),l=n(3570),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.store,a=(t.manager,e.currentTarget.getAttribute("data-targetname-id"));n.setActiveId(a)},t.prototype.handleEnter=function(e){var t=this.props,n=t.store,a=(t.manager,e.currentTarget.getAttribute("data-targetname-id"));n.setHoverId(a)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=(t.manager,this.props.store.targetNames);return o.default.createElement("div",{className:"ae-TargetName"},o.default.createElement("span",null,"当表单、列表等组件有名字时会出现在这里方便选择"),o.default.createElement("ul",{className:"ae-TargetName-list"},a.map((function(t){var a=t.editorId;return o.default.createElement("li",{className:(0,i.default)("ae-TargetName-node",{"is-active":n.activeId===a,"is-hover":n.isHoved(a)}),"data-targetname-id":a,onMouseEnter:e.handleEnter,onClick:e.handleClick,key:a},o.default.createElement("span",{className:"label label-info pull-right"},t.type),o.default.createElement("a",null,t.name))}))))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEnter",null),(0,a.__decorate)([r.observer],t)}(o.default.Component);t.TargetNamePanel=s},5863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VRenderer=void 0;var a=n(752),r=n(2717),i=(0,a.__importDefault)(n(6689)),o=n(6405),l=n(2406),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props,n=(t.data,t.path,t.widthMutable),r=(0,a.__rest)(t,["data","path","widthMutable"]),i=this.context;this.editorNode=i.addChild({id:r.id,label:r.name,path:this.props.path,schemaPath:r.schemaPath,info:r,getData:function(){return e.props.data},widthMutable:n,memberIndex:r.memberIndex})},t.prototype.componentDidMount=function(){this.markDom(this.editorNode.id)},t.prototype.componentDidUpdate=function(){this.markDom(this.editorNode.id)},t.prototype.componentWillUnmount=function(){(0,r.isAlive)(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e){var t=(0,o.findDOMNode)(this);if(t){var n=this.editorNode.info,a=n.wrapperResolve?n.wrapperResolve(t):t;(Array.isArray(a)?a:a?[a]:[]).forEach((function(t){return t.setAttribute("data-editor-id",e)}))}},t.prototype.render=function(){return i.default.createElement(l.EditorNodeContext.Provider,{value:this.editorNode},this.props.children)},t.contextType=l.EditorNodeContext,t}(i.default.Component);t.VRenderer=s},9703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderThumbToGhost=t.mapReactElement=t.hackIn=t.makeSchemaFormRender=t.makeWrapper=void 0;var a=n(752),r=n(361),i=n(2717),o=(0,a.__importDefault)(n(6689)),l=n(1160),s=(0,a.__importDefault)(n(9003)),u=(0,a.__importDefault)(n(8492)),c=n(1548),d=(0,a.__importDefault)(n(6918)),p=n(9305),f=n(2062),m=n(2406),h=(0,a.__importDefault)(n(8579)),v=n(6405),b=n(3570),g=n(3893),y=n(3190);function _(e){var t,n,i=e.body,o=e.definitions,l=e.controls,u=e.onChange,c=e.value,d=e.env,p=e.api,f=e.popOverContainer,m=e.submitOnChange,h="body";Array.isArray(l)&&(i=l,h="controls"),i=Array.isArray(i)?i.concat():[],!1===m&&i.push({type:"submit",label:"保存",level:"primary",block:!0,className:"ae-Settings-actions"});var v=((t={definitions:o})[h]=i,t.className=(0,s.default)("ae-Settings-content",Array.isArray(i)&&i.length&&"tabs"===(null===(n=i[0])||void 0===n?void 0:n.type)?"only-tabs":"",!1===m?"with-actions":""),t.wrapperComponent="div",t.type="form",t.title="",t.mode="normal",t.api=p,t.wrapWithPanel=!1,t.submitOnChange=!1!==m,t.messages={validateFailed:""},t);return(0,r.render)(v,{onFinished:function(e){return u(e,(0,b.diff)(c,e))},data:c,popOverContainer:f},(0,a.__assign)({},d))}function w(e,t,n,a,r){var i=(0,d.default)(n,(function(e){return!e.matchRegion}));if(i){var l=i.wrapper||c.RegionWrapper;return"inner"===i.insertPosition&&o.default.isValidElement(t)?o.default.cloneElement(t,{children:o.default.createElement(l,{key:i.key,preferTag:i.preferTag,name:i.key,label:i.label,placeholder:i.placeholder,regionConfig:i,editorStore:r.store,manager:r,children:t.props.children,wrapperResolve:i.wrapperResolve,rendererName:a.renderer.name})}):o.default.createElement(l,{key:i.key,preferTag:i.preferTag,name:i.key,label:i.label,placeholder:i.placeholder,regionConfig:i,editorStore:r.store,manager:r,children:t,wrapperResolve:i.wrapperResolve,rendererName:a.renderer.name})}if(n.length){var s=function(e,t,n){var a=-1,r=void 0;return n.some((function(n,i){return!!n.matchRegion(t,e)&&(a=i,r=n,!0)})),[r,a]}(e,t,n),u=s[0],p=s[1];if(u){if(l=u.wrapper||c.RegionWrapper,n.splice(p,1),"outter"===u.insertPosition)return o.default.createElement(l,{key:u.key,preferTag:u.preferTag,name:u.key,label:u.label,placeholder:u.placeholder,regionConfig:u,editorStore:r.store,manager:r,children:t,wrapperResolve:u.wrapperResolve});if(o.default.isValidElement(t)){var f=t.props.children;return o.default.cloneElement(t,{children:o.default.createElement(l,{key:u.key,preferTag:u.preferTag,name:u.key,label:u.label,placeholder:u.placeholder,regionConfig:u,editorStore:r.store,manager:r,children:f,wrapperResolve:u.wrapperResolve})})}}else if(o.default.isValidElement(t)&&t.props.children)return f=t.props.children,f=Array.isArray(f)?f.map((function(t){return w(e,t,n,a,r)})):w(e,f,n,a,r),o.default.cloneElement(t,{children:f})}return t}t.makeWrapper=function(e,t,n){var r=e.store,s=n.component;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(n,e),n.prototype.componentWillMount=function(){var e=this,n=this.context||r.root;this.editorNode=t.id?n.addChild({id:t.id,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,info:t,getData:function(){return e.props.data}}):void 0},n.prototype.componentDidUpdate=function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)},n.prototype.componentWillUnmount=function(){this.editorNode&&(0,i.isAlive)(this.editorNode)&&(this.context||r.root).removeChild(this.editorNode)},n.prototype.wrapperRef=function(e){for(;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&(0,i.isAlive)(this.editorNode)&&this.editorNode.setComponent(e)},n.prototype.renderChild=function(e,n,r){return(0,this.props.render)(e,n,(0,a.__assign)((0,a.__assign)({},r),{$$editor:t}))},n.prototype.render=function(){var e=this.props,n=(e.$$id,(0,a.__rest)(e,["$$id"])),r=this.props.$$commonSchema?y.CommonConfigWrapper:t.regions?p.ContainerWrapper:l.NodeWrapper;return o.default.createElement(m.EditorNodeContext.Provider,{value:this.editorNode||this.context},o.default.createElement(r,(0,a.__assign)({},n,{render:this.renderChild,$$editor:t,$$node:this.editorNode,ref:this.wrapperRef})))},n.displayName=s.displayName,n.propsList=(s&&s.propsList||[]).concat(["$$id"]),n.contextType=m.EditorNodeContext,(0,a.__decorate)([b.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"wrapperRef",null),(0,a.__decorate)([b.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object,Object]),(0,a.__metadata)("design:returntype",void 0)],n.prototype,"renderChild",null),(0,a.__decorate)([f.observer],n)}(o.default.Component)},t.makeSchemaFormRender=function(e,t){var n=(0,a.__assign)((0,a.__assign)({},e.env),{session:"schema-form"});return function(r){var i=r.value,l=r.onChange,s=r.popOverContainer,u=r.id,c=r.store,d=(0,a.__assign)({},e.store.ctx);return u&&Object.defineProperty(d,"__props__",{get:function(){var e,t=c.getNodeById(u);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}}),o.default.createElement(_,{key:""+u,api:t.api,definitions:t.definitions,body:t.body?(0,h.default)(Array.isArray(t.body)?t.body:[t.body]):void 0,controls:t.controls?(0,h.default)(Array.isArray(t.controls)?t.controls:[t.controls]):void 0,value:(0,g.createObject)(d,i),submitOnChange:t.submitOnChange,onChange:l,env:n,popOverContainer:s})}},t.hackIn=function(e,t,n){for(var r=e.Renderer;r.ComposedComponent;)r=r.ComposedComponent;var i=r.prototype;if(Array.isArray(t)){var o=(0,u.default)(t,(function(e){return e.renderMethod}));Object.keys(o).forEach((function(e){var t;if(!i["__"+e]&&i[e]){var n,r,l=o[e],s=null===(t=l[0])||void 0===t?void 0:t.renderMethodOverride;i["__"+e]=i[e],i[e]=(n=i["__"+e],r=(null==s?void 0:s(l.concat(),w))||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.props.$$editor,r=this.super.apply(this,e);if(n&&!this.props.$$commonSchema&&Array.isArray(n.regions)&&l.every((function(e){return(0,d.default)(n.regions,(function(t){return t.key===e.key}))}))){var i=l.map((function(e){var t=(0,d.default)(n.regions,(function(t){return t.key===e.key&&(!e.rendererName||e.rendererName===t.rendererName)}));return t?(0,a.__assign)((0,a.__assign)({},e),{label:t.label,preferTag:t.preferTag}):e}));return w(this,r,i,n,n.plugin.manager)}return r},"function"!=typeof n?n:function(){var e=this.super;this.super=n.bind(this);var t=r.apply(this,arguments);return this.super=e,t})}}))}else n&&Object.keys(n).forEach((function(e){var t,a;i["__"+e]||"function"!=typeof i[e]||(i["__"+e]=i[e],i[e]=(t=i["__"+e],a=n[e],"function"!=typeof t?t:function(){var e=this.super;this.super=t.bind(this);var n=a.apply(this,arguments);return this.super=e,n}))}))},t.mapReactElement=function e(t,n,a){if(!o.default.isValidElement(t))return t;var r=n(t,a);if(r===t&&t.props.children){var i=t.props.children;if(Array.isArray(i)){var l=[],s=!1;i.forEach((function(t,a){var r=e(t,n,a);r!==t&&(s=!0,o.default.isValidElement(r)&&!r.key&&(r=o.default.cloneElement(r,{key:a}))),l.push(r)})),s&&(r=o.default.cloneElement(r,{children:l}))}else{var u=e(i,n,a);u!==i&&(r=o.default.cloneElement(r,{children:u}))}}return r};var S=document.createElement("div");t.renderThumbToGhost=function(e,t,n,i){e.innerHTML="";var o=t.host.getComponent(),l=(null==o?void 0:o.renderControl)&&"body"===t.region;try{(0,v.render)((0,r.render)({children:function(e){var a=e.render;return l?a("",{type:"form",wrapWithPanel:!1,mode:o.props.mode,body:[n]}):a(t.region,n)}},{},(0,a.__assign)((0,a.__assign)({},i.env),{theme:(null==o?void 0:o.props.theme)||i.env.theme,session:"ghost-thumb"}),""),S)}catch(e){}var s=S.innerHTML||'<div class="wrapper-sm b-a b-light m-b-sm">拖入占位</div>';e.innerHTML=s,(0,v.unmountComponentAtNode)(S),S.innerHTML=""}},9547:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultValue=t.valuePipeOut=t.setSchemaTpl=t.getSchemaTpl=t.styleTpl=void 0;var a,r,i=n(752),o=n(3570),l=n(6918),s=n(1502),u=(0,i.__importDefault)(n(8579)),c=n(6689),d={formItemName:{label:"字段名",name:"name",type:"input-text"},formItemMode:{label:"表单项展示模式",name:"mode",type:"button-group-select",size:"sm",option:"继承",pipeIn:f(""),options:[{label:"继承",value:""},{label:"正常",value:"normal"},{label:"内联",value:"inline"},{label:"水平",value:"horizontal"}]},formItemInline:{label:"表单项内联",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:f(!1)},formItemSize:{name:"size",label:"控件尺寸",type:"button-group-select",size:"sm",pipeIn:f("full"),options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"默认",value:""}]},minLength:{name:"minLength",type:"input-number",label:"限制最小数量"},maxLength:{name:"maxLength",type:"input-number",label:"限制最大数量"},label:[{label:"Label",name:"label",type:"input-text",hiddenOn:"data.label === false"},{name:"label",label:"隐藏 Label",type:"switch",mode:"inline",className:"w-full",pipeIn:function(e){return!1===e},pipeOut:function(e){return!0!==e&&""},visibleOn:'__props__.formMode === "horizontal" || data.mode === "horizontal" || data.label ===false',description:"当 form 为水平布局时有用,可以用来去掉间隔。"}],placeholder:{label:"占位符",name:"placeholder",type:"input-text",placeholder:"占位符"},tabs:function(e){return{type:"tabs",tabsMode:"line",contentClassName:"no-border",tabs:e.filter((function(e){return e})).map((function(e){return(0,i.__assign)((0,i.__assign)({},e),{body:(0,u.default)(e.body)})}))}},fieldSet:function(e){return(0,i.__assign)((0,i.__assign)({collapsable:!0,collapsed:!1},e),{type:"fieldset",title:e.title,body:(0,u.default)(e.body.filter((function(e){return e})))})},clearable:{type:"switch",name:"clearable",mode:"inline",className:"w-full",label:"启用清除按钮"},hint:{label:"输入提示",type:"input-text",name:"hint",description:"当输入框获得焦点的时候显示,用来提示用户输入内容。"},remark:[{label:"启用信息提示",type:"switch",name:"remark",mode:"inline",className:"w-full",description:"在输入控件旁边展示一个 icon,当鼠标放上去时展示详细描述,注意启动后请将控件宽度设置成非占满,否则 icon 显示位置会换行",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{icon:"fa fa-question-circle",trigger:["hover","focus"],className:"Remark--warning"}:null}},{type:"combo",name:"remark",className:"no-padder",visibleOn:"this.remark",multiLine:!0,items:[{name:"title",type:"input-text",label:"标题"},{name:"content",type:"textarea",label:"内容"},{name:"placement",type:"button-group-select",size:"xs",label:"弹出位置",options:[{label:"左",value:"left"},{label:"上",value:"top"},{label:"右",value:"right"},{label:"底",value:"bottom"}]},{name:"icon",label:"图标",type:"icon-picker"},{name:"className",label:"CSS 类名",type:"input-text",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'有哪些辅助类 CSS 类名?请前往 <a href="http://amis.baidu.com/v2/docs/style" target="_blank">样式说明</a>,除此之外你可以添加自定义类名,然后在系统配置中添加自定义样式。',placement:"left"}},{name:"trigger",type:"select",label:"触发方式",multiple:!0,pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){return e&&e.length?e.split(","):void 0},options:[{label:"鼠标悬停",value:"hover"},{label:"点击",value:"click"}]},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:"点击空白关闭",type:"switch"}]}],labelRemark:[{label:"启用 Label 信息提示",type:"switch",name:"labelRemark",mode:"inline",className:"w-full",description:"在 Label 旁边展示一个 icon,当鼠标放上去时展示详细描述",visibleOn:"this.label",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{icon:"fa fa-question-circle",trigger:["hover","focus"],className:"Remark--warning"}:null}},{type:"combo",name:"labelRemark",className:"no-padder",visibleOn:"this.labelRemark",multiLine:!0,items:[{name:"title",type:"input-text",label:"标题"},{name:"content",type:"textarea",label:"内容"},{name:"placement",type:"button-group-select",size:"xs",label:"弹出位置",options:[{label:"左",value:"left"},{label:"上",value:"top"},{label:"右",value:"right"},{label:"底",value:"bottom"}]},{name:"icon",label:"图标",type:"icon-picker"},{name:"className",label:"CSS 类名",type:"input-text"},{name:"trigger",type:"select",label:"触发方式",multiple:!0,pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){return e&&e.length?e.split(","):void 0},options:[{label:"鼠标悬停",value:"hover"},{label:"点击",value:"click"}]},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:"点击空白关闭",type:"switch"}]}],expression:{type:"input-text",description:"支持 JS 表达式,如:`this.xxx == 1`"},icon:{label:"图标",type:"icon-picker",name:"icon",placeholder:"点击选择图标",clearable:!0,description:""},size:{label:"控件尺寸",type:"button-group-select",name:"size",size:"sm",clearable:!0,options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"}]},name:{label:"名字",name:"name",type:"input-text",description:"需要联动时才需要,其他组件可以通过这个名字跟当前组件联动",placeholder:"请输入字母或者数字"},reload:{label:"刷新目标组件",name:"reload",type:"input-text",description:"可以指定操作完成后刷新目标组件,请填写目标组件的 <code>name</code> 属性,多个组件请用<code>,</code>隔开,如果目标组件为表单项,请先填写表单的名字,再用<code>.</code>连接表单项的名字如:<code>xxForm.xxControl</code>。另外如果刷新目标对象设置为 <code>window</code>,则会刷新整个页面。",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"设置名字后,当前组件操作完成会触发目标组件(根据设置的名字)的刷新。",placement:"left"}},className:{label:"CSS 类名",type:"ae-classname",name:"className",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'有哪些辅助类 CSS 类名?请前往 <a href="https://baidu.github.io/amis/docs/concepts/style" target="_blank">样式说明</a>,除此之外你可以添加自定义类名,然后在系统配置中添加自定义样式。',placement:"left"}},api:function(e){void 0===e&&(e={});var t=e.name,n=e.label,a=e.value,r=e.description,l=e.sampleBuilder,u=(0,i.__rest)(e,["name","label","value","description","sampleBuilder"]);return(0,i.__assign)({type:"container",body:[{type:"checkbox",label:n||"API",labelRemark:l?{icon:"",label:"示例",title:"接口返回示例",tooltipClassName:"ae-ApiSample-tooltip",render:function(e){return c.createElement(s.Html,{className:"ae-ApiSample",inline:!1,html:"\n <pre><code>"+l(e)+"</code></pre>\n "})},trigger:"click",className:"m-l-xs",rootClose:!0,placement:"left"}:void 0,option:"高级配置",name:t||"api",mode:"inline",className:"w-full m-b-sm",inputClassName:"pull-right text-sm m-t-sm p-t-none",onChange:function(){document.getElementsByClassName("ae-Settings-content")[0].scrollTop=0},pipeIn:function(e){return e&&"string"!=typeof e},pipeOut:function(e,t){var n=(0,s.buildApi)(t);return e?{method:n.method,url:n.url}:n.url?(n.method?n.method+":":"")+n.url:""}},{name:t||"api",type:"input-text",value:a,placeholder:"",description:r,visibleOn:"!this."+(t||"api")+" || typeof this."+(t||"api")+" === 'string'",className:"m-b-none",labelRemark:{}},{type:"combo",name:t||"api",description:r,syncDefaultValue:!1,multiLine:!0,visibleOn:"this."+(t||"api")+" && typeof this."+(t||"api")+" !== 'string'",className:"m-b-none",messages:{validateFailed:"接口配置中存在错误,请仔细检查"},pipeIn:function(e){if("string"==typeof e){var t=e,n="get",a=/^(raw:|external:)?(get|post|put|patch|delete):(.*)$/.exec(t);return a&&(t=a[1]+a[3],n=a[2]),{method:n,url:t}}return e},items:[{label:"发送方式",name:"method",value:"get",type:"select",mode:"horizontal",horizontal:{leftFixed:"sm"},options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"}]},{label:"接口地址",type:"input-text",name:"url",placeholder:"",required:!0},{type:"switch",label:"数据映射",name:"data",mode:"inline",className:"w-full m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.data",inline:!1,className:"text-sm text-muted m-b",tpl:"当没开启数据映射时,发送 API 的时候会发送尽可能多的数据,如果你想自己控制发送的数据,或者需要额外的数据处理,请开启此选项"},{type:"combo",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'<p>当没开启数据映射时,发送数据自动切成白名单模式,配置啥发送啥,请绑定数据。如:<code>{"a": "\\${a}", "b": 2}</code></p><p>如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。</p><div>当值为 <code>__undefined</code>时,表示删除对应的字段,可以结合<code>{"&": "\\$$"}</code>来达到黑名单效果。</div>',multiple:!0,pipeIn:function(e){if(!(0,o.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:"Value",type:"input-text",name:"value"}]},{label:"发送条件",type:"input-text",name:"sendOn",placeholder:'如:this.type == "123"',description:"用表达式来设置该请求的发送条件"},{type:"switch",label:"是否设置缓存",name:"cache",mode:"inline",className:"w-full m-b-xs",description:"设置该请求缓存的有效时间",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0}},{type:"input-number",name:"cache",mode:"inline",min:0,step:500,visibleOn:"this.cache",pipeIn:function(e){return"number"==typeof e?e:0}},{label:"文件下载",type:"switch",name:"responseType",mode:"inline",className:"block",pipeIn:function(e){return"blob"===e},pipeOut:function(e){return e?"blob":void 0},description:"当接口为二进制文件下载时请勾选,否则会文件乱码。"},{label:"数据格式",type:"button-group-select",name:"dataType",description:'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',size:"sm",className:"block",mode:"inline",options:[{label:"JSON",value:"json"},{label:"FormData",value:"form-data"},{label:"Form",value:"form"}]},{type:"switch",label:"数据替换",name:"replaceData",mode:"inline",className:"w-full",description:"默认数据都是追加方式,开启这个后是完全替换"},{type:"switch",label:"返回结果映射",name:"responseData",mode:"inline",className:"w-full m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.responseData",inline:!1,className:"text-sm text-muted m-b",tpl:"如果需要对返回结果做额外的数据处理,请开启此选项"},{type:"combo",syncDefaultValue:!1,name:"responseData",visibleOn:"this.responseData",descriptionClassName:"help-block text-xs m-b-none",multiple:!0,pipeIn:function(e){if(!(0,o.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:"Value",type:"input-text",name:"value"}]},{title:"自定义适配器",type:"fieldSet",className:"m-b-none",size:"sm",collapsable:!0,collapsedOn:"!this.onPreRequest && !this.onSuccess && !this.onFakeRequest",controls:[{name:"onPreRequest",type:"js-editor",label:"发送适配器",allowFullscreen:!0,placeholder:"可用于自定义请求参数",description:"函数签名:onPreRequest(options) => options, 数据在 options.data 中,修改后返回 options 对象。"},{name:"onFakeRequest",type:"js-editor",label:"伪装请求",allowFullscreen:!0,placeholder:"伪装请求将返回值作为请求结果(配置后将不会请求接口)",description:"函数签名:onFakeRequest(options) => source"},{name:"onSuccess",type:"js-editor",allowFullscreen:!0,label:"接收适配器",description:"函数签名: onSuccess(source, options, resoponse) => source"}]}]}]},u)},source:function(e){return void 0===e&&(e={}),p("api",(0,i.__assign)({name:"source",label:"获取选项接口",description:"可以通过接口获取动态选项,一次拉取全部。",sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a"},{label:"选项B",value:"b"}]}},null,2)}},e))},autoFill:{type:"combo",name:"autoFill",label:"自动填充",descriptionClassName:"help-block text-xs m-b-none",description:"将当前已选中的选项的某个字段的值,自动填充到表单中某个表单项中,支持数据映射",multiple:!0,pipeIn:function(e){if(!(0,o.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),console.log("obj",t),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:"Value",type:"input-text",name:"value"}]},apiString:{name:"api",type:"input-text",placeholder:""},required:{name:"required",type:"switch",mode:"inline",className:"w-full",label:"是否必填"},description:{name:"description",type:"textarea",label:"描述",pipeIn:function(e,t){return e||t.desc||""}},options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"select",name:"value",pipeIn:function(e){return"string"==typeof e?"text":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"text"},pipeOut:function(e,t){if("text"===e)return String(t);if("number"===e){var n=Number(t);return isNaN(n)?0:n}return"boolean"===e?Boolean(t):""},options:[{label:"文本",value:"text"},{label:"数字",value:"number"},{label:"布尔",value:"boolean"}]},{type:"input-number",name:"value",placeholder:"值",visibleOn:'typeof data.value === "number"',unique:!0},{type:"switch",name:"value",placeholder:"值",visibleOn:'typeof data.value === "boolean"',unique:!0},{type:"input-text",name:"value",placeholder:"值",visibleOn:'typeof data.value === "undefined" || typeof data.value === "string"',unique:!0}]},tree:{label:"选项 Options",name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增选项",description:"静态数据暂不支持多级,请切换到代码模式,或者采用 source 接口获取。",scaffold:{label:"",value:""},items:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},horizontalMode:{label:"表单项左右占比设置",name:"horizontal",type:"switch",onText:"继承",offText:"自定义",mode:"inline",className:"w-full",inputClassName:"text-sm",visibleOn:'this.mode == "horizontal" && this.label !== false',pipeIn:function(e){return!e},pipeOut:function(e,t,n){return e?null:n.formHorizontal||{leftFixed:"normal"}}},horizontal:{type:"combo",syncDefaultValue:!1,name:"horizontal",multiLine:!0,visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal',pipeIn:function(e){return{leftRate:e&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}},pipeOut:function(e){var t=Math.min(11,Math.max(1,e.leftRate||2));return{leftFixed:e.leftFixed||"",left:t,right:12-t}},inputClassName:"no-padder",items:[{name:"leftFixed",type:"button-group-select",label:"左侧宽度",size:"xs",options:[{label:"比率",value:""},{label:"小宽度",value:"sm",visibleOn:"this.leftFixed"},{label:"固定宽度",value:"normal"},{label:"大宽度",value:"lg",visibleOn:"this.leftFixed"}]},{name:"leftRate",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:11,step:1,label:"左右分布调整(n/12)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"一共 12 等份,这里可以设置左侧宽度占比 n/12。",placement:"left"}}]},subFormItemMode:{label:"子表单展示模式",name:"subFormMode",type:"button-group-select",size:"sm",option:"继承",pipeIn:f(""),options:[{label:"继承",value:""},{label:"正常",value:"normal"},{label:"内联",value:"inline"},{label:"水平",value:"horizontal"}]},subFormHorizontalMode:{label:"子表单水平占比设置",name:"subFormHorizontal",type:"switch",onText:"继承",offText:"自定义",mode:"inline",className:"w-full",inputClassName:"text-sm",visibleOn:'this.subFormMode == "horizontal"',pipeIn:function(e){return!e},pipeOut:function(e,t,n){return e?null:n.formHorizontal||{leftFixed:"normal"}}},subFormHorizontal:{type:"combo",syncDefaultValue:!1,visibleOn:'data.subFormMode == "horizontal" && data.subFormHorizontal',name:"subFormHorizontal",multiLine:!0,pipeIn:function(e){return{leftRate:e&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}},pipeOut:function(e){var t=Math.min(11,Math.max(1,e.leftRate||2));return{leftFixed:e.leftFixed||"",left:t,right:12-t}},inputClassName:"no-padder",items:[{name:"leftFixed",type:"button-group-select",label:"左侧宽度",size:"xs",options:[{label:"比率",value:""},{label:"小宽度",value:"sm",visibleOn:"this.leftFixed"},{label:"固定宽度",value:"normal"},{label:"大宽度",value:"lg",visibleOn:"this.leftFixed"}]},{name:"leftRate",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:11,step:1,label:"左右分布调整(n/12)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"一共 12 等份,这里可以设置左侧宽度占比 n/12。",placement:"left"}}]},validations:(a=[{label:"邮箱格式",value:"isEmail"},{label:"Url格式",value:"isUrl"},{label:"数字",value:"isNumeric"},{label:"字母",value:"isAlpha"},{label:"字母和数字",value:"isAlphanumeric"},{label:"整型数字",value:"isInt"},{label:"浮点型数字",value:"isFloat"},{label:"固定长度",value:"isLength"},{label:"最大长度",value:"maxLength"},{label:"最小长度",value:"minLength"},{label:"最大值",value:"maximum"},{label:"最小值",value:"minimum"},{label:"手机号码",value:"isPhoneNumber"},{label:"电话号码",value:"isTelNumber"},{label:"邮编号码",value:"isZipcode"},{label:"身份证号码",value:"isId"},{label:"JSON格式",value:"isJson"},{label:"与指定值相同",value:"equals"},{label:"与指定字段值相同",value:"equalsField"},{label:"自定义正则",value:"matchRegexp"},{label:"自定义正则2",value:"matchRegexp1"},{label:"自定义正则3",value:"matchRegexp2"},{label:"自定义正则4",value:"matchRegexp3"},{label:"自定义正则5",value:"matchRegexp4"}],r=["isEmail","isUrl","isNumeric","isAlpha","isAlphanumeric","isInt","isFloat","isJson","isPhoneNumber","isTelNumber","isZipcode","isId"],{type:"combo",syncDefaultValue:!1,name:"validations",label:"验证规则",addButtonText:"新增规则",multiple:!0,pipeIn:function(e){if("string"==typeof e&&e&&(e=(0,s.str2rules)(e)),!(0,o.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){var a;/^\$\$/.test(n)||t.push(((a={type:n})[n]=Array.isArray(e[n])?e[n][0]:e[n],a))})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n,i=e.type||((n=l(a,(function(e){return!t[e.value]})))?n.value:"")||a[0].value;t[i]=e[i]||!!~r.indexOf(i)||""})),t},items:[{type:"select",unique:!0,name:"type",options:a,columnClassName:"w-sm"},{type:"input-number",name:"isLength",visibleOn:'data.type == "isLength"',placeholder:"设置长度",value:"1"},{type:"input-number",name:"maximum",visibleOn:'data.type == "maximum"',placeholder:"设置最大值"},{type:"input-number",name:"minimum",visibleOn:'data.type == "minimum"',placeholder:"设置最小值"},{type:"input-number",name:"maxLength",visibleOn:'data.type == "maxLength"',placeholder:"设置最大长度值"},{type:"input-number",name:"minLength",visibleOn:'data.type == "minLength"',placeholder:"设置最小长度值"},{type:"input-text",name:"equals",visibleOn:'data.type == "equals"',placeholder:"设置值",value:""},{type:"input-text",name:"equalsField",visibleOn:'data.type == "equalsField"',placeholder:"设置字段名",value:""},{type:"input-text",name:"matchRegexp",visibleOn:'data.type == "matchRegexp"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp1",visibleOn:'data.type == "matchRegexp1"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp2",visibleOn:'data.type == "matchRegexp2"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp3",visibleOn:'data.type == "matchRegexp3"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp4",visibleOn:'data.type == "matchRegexp4"',placeholder:"设置正则规则"}]}),validationErrors:function(){var e=[{label:"邮箱格式",value:"isEmail"},{label:"Url格式",value:"isUrl"},{label:"数字",value:"isNumeric"},{label:"字母",value:"isAlpha"},{label:"字母和数字",value:"isAlphanumeric"},{label:"整型数字",value:"isInt"},{label:"浮点型数字",value:"isFloat"},{label:"固定长度",value:"isLength"},{label:"最大长度",value:"maxLength"},{label:"最小长度",value:"minLength"},{label:"最大值",value:"maximum"},{label:"最小值",value:"minimum"},{label:"JSON格式",value:"isJson"},{label:"手机号码",value:"isPhoneNumber"},{label:"电话号码",value:"isTelNumber"},{label:"邮编号码",value:"isZipcode"},{label:"身份证号码",value:"isId"},{label:"与指定值相同",value:"equals"},{label:"与指定字段值相同",value:"equalsField"},{label:"自定义正则",value:"matchRegexp"},{label:"自定义正则2",value:"matchRegexp1"},{label:"自定义正则3",value:"matchRegexp2"},{label:"自定义正则4",value:"matchRegexp3"},{label:"自定义正则5",value:"matchRegexp4"}],t={isEmail:"Email 格式不正确",isRequired:"这是必填项",isUrl:"Url 格式不正确",isInt:"请输入整形数字",isAlpha:"请输入字母",isNumeric:"请输入数字",isAlphanumeric:"请输入字母或者数字",isFloat:"请输入浮点型数值",isWords:"请输入字母",isUrlPath:"只能输入字母、数字、`-` 和 `_`.",matchRegexp:"格式不正确, 请输入符合规则为 `$1` 的内容。",minLength:"请输入更多的内容,至少输入 $1 个字符。",maxLength:"请控制内容长度, 请不要输入 $1 个字符以上",maximum:"当前输入值超出最大值 $1,请检查",minimum:"当前输入值低于最小值 $1,请检查",isJson:"请检查 Json 格式。",isPhoneNumber:"请输入合法的手机号码",isTelNumber:"请输入合法的电话号码",isZipcode:"请输入合法的邮编地址",isId:"请输入合法的身份证号",isLength:"请输入长度为 $1 的内容",notEmptyString:"请不要全输入空白字符",equalsField:"输入的数据与 $1 值不一致",equals:"输入的数据与 $1 不一致"};return{type:"combo",syncDefaultValue:!1,name:"validationErrors",label:"自定义验证提示",description:"自带提示不满足时,可以自定义。",addButtonText:"新增提示",multiple:!0,pipeIn:function(e){if(!(0,o.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){/ ^\$\$ /.test(n)||t.push({type:n,msg:e[n]})})),t},pipeOut:function(n){if(!Array.isArray(n))return n;var a={};return n.forEach((function(n){var r,i=n.type||((r=l(e,(function(e){return!a[e.value]})))?r.value:"")||e[0].value;a[i]=n.msg||t[i]||""})),a},items:[{type:"select",unique:!0,name:"type",options:e,columnClassName:"w-sm"},{type:"input-text",name:"msg",placeholder:"提示信息"},{type:"formula",name:"msg",initSet:!1,formula:"({\n isEmail: 'Email 格式不正确',\n isRequired: '这是必填项',\n isUrl: 'Url 格式不正确',\n isInt: '请输入整形数字',\n isAlpha: '请输入字母',\n isNumeric: '请输入数字',\n isAlphanumeric: '请输入字母或者数字',\n isFloat: '请输入浮点型数值',\n isWords: '请输入字母',\n isUrlPath: '只能输入字母、数字、`-` 和 `_`.',\n matchRegexp: '格式不正确, 请输入符合规则为 `$1` 的内容。',\n minLength: '请输入更多的内容,至少输入 $1 个字符。',\n maxLength: '请控制内容长度, 请不要输入 $1 个字符以上',\n maximum: '当前输入值超出最大值 $1,请检查',\n minimum: '当前输入值低于最小值 $1,请检查',\n isJson: '请检查 Json 格式。',\n isLength: '请输入长度为 $1 的内容',\n notEmptyString: '请不要全输入空白字符',\n equalsField: '输入的数据与 $1 值不一致',\n equals: '输入的数据与 $1 不一致',\n isPhoneNumber: '请输入合法的手机号码',\n isTelNumber: '请输入合法的电话号码',\n isZipcode: '请输入合法的邮编地址',\n isId: '请输入合法的身份证号',\n })[data.type] || ''"}]}}(),submitOnChange:{label:"修改即提交",type:"switch",name:"submitOnChange",mode:"inline",className:"w-full",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"设置后,表单中每次有修改都会触发提交",placement:"left"}},validateOnChange:{type:"button-group-select",name:"validateOnChange",label:"修改即触发表单验证",description:"默认为当表单提交过则每次修改都触发验证。",size:"xs",mode:"inline",className:"w-full",options:[{label:"默认",value:""},{label:"开启",value:!0},{label:"关闭",value:!1}],pipeIn:f(""),pipeOut:function(e){return""===e?void 0:!!e}},visible:{type:"fieldSet",title:"显隐配置",collapsable:!0,body:[{label:"设置方式",name:"visible",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"静态设置",value:1},{label:"表达式",value:2}],pipeIn:function(e){return"boolean"==typeof e?1:2},pipeOut:function(e){return 1===e||""},onChange:function(e,t,n,a){e?a.setValues({__visibleOn:a.data.visibleOn,visibleOn:"",clearValueOnHidden:!1}):a.setValueByName("visibleOn",a.data.__visibleOn)}},{type:"switch",label:"可见(visible)",name:"visible",visibleOn:'typeof this.visible === "boolean"',pipeIn:function(e,t){return!1!==e&&!t.hidden},mode:"inline",className:"w-full m-b-none",onChange:function(e,t,n,a){return a.setValueByName("visibleOn","")}},{name:"visibleOn",label:"可见表达式(visibleOn)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'纯粹的 JS 语法,this 指向当前数据层。文档:<a href="https://baidu.github.io/amis/docs/concepts/expression">表达式语法</a>',placement:"left"},placeholder:"如:this.type === 1",type:"input-text",visibleOn:'typeof this.visible !== "boolean"',autoComplete:!1,pipeIn:function(e,t){return e||t.hiddenOn&&"!("+t.hiddenOn+")"||""},className:"m-b-none"}]},initFetch:{type:"group",label:"是否初始加载",visibleOn:"this.initApi",direction:"vertical",className:"m-b-none",labelRemark:{trigger:"click",rootClose:!0,className:"m-l-xs",content:"当配置初始化接口后,组件初始就会拉取接口数据,可以通过以下配置修改。",placement:"left"},body:[{name:"initFetch",type:"radios",inline:!0,onChange:function(){document.getElementsByClassName("ae-Settings-content")[0].scrollTop=0},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetchOn",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"如:this.id 表示有 id 值时初始加载",className:"m-t-n-sm"}]},disabled:function(e){return void 0===e&&(e=[]),{type:"fieldSet",title:"禁用配置",collapsable:!0,body:(0,i.__spreadArray)((0,i.__spreadArray)([],e,!0),[{label:"设置方式",name:"disabled",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"静态设置",value:1},{label:"表达式",value:2}],pipeIn:function(e){return"boolean"==typeof e?1:2},pipeOut:function(e){return 1!==e&&""}},{type:"switch",label:"禁用(disabled)",name:"disabled",visibleOn:'typeof this.disabled === "boolean"',pipeIn:function(e,t){return!1!==e&&!t.hidden},mode:"inline",className:"w-full m-b-none",onChange:function(e,t,n,a){return a.setValueByName("disabledOn","")}},{name:"disabledOn",label:"禁用表达式(disabledOn)",placeholder:"如:this.type === 1",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'纯粹的 JS 语法,this 指向当前数据层。文档:<a href="https://baidu.github.io/amis/docs/concepts/expression">表达式语法</a>',placement:"left"},type:"input-text",visibleOn:'typeof this.disabled !== "boolean"',className:"m-b-none"}],!1)}},switchDefaultValue:{type:"switch",name:"value",label:"设置默认值",mode:"inline",className:"w-full",pipeIn:function(e){return void 0!==e},pipeOut:function(e,t,n){return e?"":void 0},remark:"不设置时根据 name 获取"},multiple:{label:"多选模式",name:"multiple",type:"switch",mode:"inline",className:"w-full"},joinValues:{type:"switch",name:"joinValues",mode:"inline",className:"w-full",visibleOn:"data.multiple",label:"是否拼接值",value:!0,description:"开启后将选中的选项 value 的值用连接符拼接起来,作为当前表单项的值。"},delimiter:{type:"input-text",name:"delimiter",label:"连接符",visibleOn:"data.multiple && data.joinValues",pipeIn:f(",")},extractValue:{type:"switch",name:"extractValue",mode:"inline",className:"w-full",label:"是否抽取value值",visibleOn:"data.joinValues === false",pipeIn:f(!1),description:"开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。"},creatable:{label:"可创建选项",name:"creatable",type:"switch",mode:"inline",className:"w-full"},createBtnLabel:{label:"创建按钮文字",name:"createBtnLabel",type:"input-text",mode:"inline",placeholder:"新增选项",className:"w-full"},editable:{label:"可编辑选项",name:"editable",type:"switch",mode:"inline",className:"w-full"},removable:{label:"可删除选项",name:"removable",type:"switch",mode:"inline",className:"w-full"},ref:function(){return null},imageUrl:{type:"input-text",label:"图片"},markdownBody:{name:"value",type:"textarea",label:"Markdown 内容"},richText:{label:"富文本",type:"input-rich-text",buttons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertTable","|","undo","redo","fullscreen"],name:"html",description:'支持使用 <code>\\${xxx}</code> 来获取变量,或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="https://baidu.gitee.io/amis/zh-CN/docs/concepts/template">详情</a>',size:"lg"},showCounter:{label:"是否显示计数器",name:"showCounter",type:"switch",mode:"inline",className:"w-full"},borderMode:{type:"select",name:"borderMode",label:"边框模式",options:[{label:"全边框",value:"full"},{label:"半边框",value:"half"},{label:"无边框",value:"none"}]}};function p(e,t){var n=d[e];return"function"==typeof n?n(t):n?t?(0,i.__assign)((0,i.__assign)({},n),t):n:null}function f(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}t.styleTpl={name:"style",type:"combo",label:"",noBorder:!0,multiLine:!0,items:[{type:"fieldSet",title:"文字",body:[{type:"group",body:[{label:"文字大小",type:"input-text",name:"fontSize"},{label:"文字粗细",name:"fontWeight",type:"select",options:["normal","bold","lighter","bolder"]}]},{type:"group",body:[{label:"文字颜色",type:"input-color",name:"color"},,{label:"对齐方式",name:"textAlign",type:"select",options:["left","right","center","justify","justify-all","start","end","match-parent"]}]}]},{type:"fieldSet",title:"背景",body:[{label:"颜色",name:"backgroundColor",type:"input-color"},p("imageUrl",{name:"backgroundImage"})]},{type:"fieldSet",title:"边距",body:[{type:"group",label:"外边距",body:[{label:"上",name:"marginTop",type:"input-text"},{label:"右",name:"marginRight",type:"input-text"},{label:"下",name:"marginBottom",type:"input-text"},{label:"左",name:"marginLeft",type:"input-text"}]},{type:"group",label:"内边距",body:[{label:"上",name:"paddingTop",type:"input-text"},{label:"右",name:"paddingRight",type:"input-text"},{label:"下",name:"paddingBottom",type:"input-text"},{label:"左",name:"paddingLeft",type:"input-text"}]}]},{type:"fieldSet",title:"边框",body:[{type:"group",body:[{label:"样式",name:"borderStyle",type:"select",options:["none","solid","dotted","dashed"]},{label:"颜色",name:"borderColor",type:"input-color"}]},{type:"group",body:[{label:"宽度",name:"borderWidth",type:"input-text"},{label:"圆角宽度",name:"borderRadius",type:"input-text"}]}]},{type:"fieldSet",title:"特效",body:[{label:"透明度",name:"opacity",min:0,max:1,step:.05,type:"input-range",pipeIn:f(1)},{label:"阴影",name:"boxShadow",type:"input-text"}]}]},d.style=t.styleTpl,t.getSchemaTpl=p,t.setSchemaTpl=function(e,t){d[e]=t},t.valuePipeOut=function(e){try{if("undefined"===e)return;return JSON.parse(e)}catch(t){return e}},t.defaultValue=f},5610:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDNDMode=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(8425)),o=n(9703),l=function(){function e(e,t){this.dnd=e,this.region=t,this.exchangeX=0,this.exchangeY=0,this.constainer=this.dnd.store.getDoc().querySelector('[data-region="'+t.region+'"][data-region-host="'+t.id+'"]')}return e.prototype.enter=function(e,t){var n=this.dnd.dragElement,a=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest("[data-region]")===this.constainer){var r=this.getChild(this.constainer,n),l=n.getAttribute("data-editor-id"),s=(0,i.default)(a,(function(e){return e.$$id===l}));~s&&a[s+1]&&(this.dropBeforeId=a[s+1].$$id),this.constainer.insertBefore(t,r);var u=n.outerHTML.replace("ae-is-draging","").replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,"");t.innerHTML=u}else{var c=this.dnd.manager,d=c.store;(0,o.renderThumbToGhost)(t,this.region,d.dragSchema,c),this.constainer.appendChild(t)}},e.prototype.leave=function(e,t){this.constainer.removeChild(t)},e.prototype.over=function(e,t){var n,a,o=this.getTarget(e),l=this.constainer,s=Array.isArray(this.region.schema)?this.region.schema:[],u=e.clientX-this.exchangeX,c=e.clientY-this.exchangeY;if(Math.abs(c),Math.abs(u),o&&!r.animation.animating){var d=o.getAttribute("data-editor-id"),p=this.getChild(l,o),f=(0,i.default)(s,(function(e){return e.$$id===d})),m=Array.prototype.indexOf.call(l.children,t),h=Array.prototype.indexOf.call(l.children,p);~m&&m>h&&(!this.exchangeY||c<0||u<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(n=s[f])||void 0===n?void 0:n.$$id,m!==h-1&&(r.animation.capture(l),l.insertBefore(t,p),r.animation.animateAll())):~m&&m<h&&(!this.exchangeY||c>0||u>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,s[f+1]?this.dropBeforeId=null===(a=s[f+1])||void 0===a?void 0:a.$$id:delete this.dropBeforeId,m!==h+1&&(r.animation.capture(l),l.insertBefore(t,p.nextSibling),r.animation.animateAll()))}t.parentNode!==l&&(delete this.dropBeforeId,r.animation.capture(l),l.appendChild(t),r.animation.animateAll())},e.prototype.getDropBeforeId=function(){return this.dropBeforeId},e.prototype.getTarget=function(e){for(var t,n,a=e.target.closest("[data-editor-id]");a;){if((null===(t=a.parentElement)||void 0===t?void 0:t.closest("[data-region]"))===this.constainer)return"grid"===a.getAttribute("data-renderer")?a.parentElement:a;a=(null===(n=a.parentElement)||void 0===n?void 0:n.closest("[data-editor-id]"))||null}return null},e.prototype.getChild=function(e,t){for(var n=t;n&&n.parentElement!==e;)n=n.parentElement;return n},e.prototype.dispose=function(){},e}();t.DefaultDNDMode=l},6162:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDNDManager=void 0;var a=n(752),r=(0,a.__importDefault)(n(6918)),i=n(3570),o=n(5610),l=n(8772),s=function(){function e(e,t){this.manager=e,this.store=t,this.toDispose=[],this.dragEnterCount=0,this.lastX=0,this.lastY=0,this.lastMoveAt=0,this.toDispose.push((0,i.reactionWithOldValue)((function(){return"schema"===t.dragType?t.dragId:""}),this.updateDragElements),(0,i.reactionWithOldValue)((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),(0,i.reactionWithOldValue)((function(){return{id:t.planDropId,region:t.planDropRegion}}),this.updatePlanDropRegion)),this.dragGhost=document.createElement("div"),this.dragGhost.classList.add("ae-DragGhost"),this.dragGhost.classList.add("is-ghost")}return e.prototype.createDragImage=function(e,t){var n=document.createElement("div");return n.classList.add("ae-DragImage"),n.innerHTML="<span>"+t.label+"</span>",document.body.appendChild(n),n.style.cssText+="width: "+t.w+"px; height: "+t.h+"px;",this.dragImage=n,n},e.prototype.disposeDragImage=function(){var e,t=this.dragImage;null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),delete this.dragImage},e.prototype.switchToRegion=function(e,t,n){var a,r,i,o=this.store;if(!t||!n||o.dropId===t&&o.dropRegion===n)return!1;var l=o.getNodeById(t,n),s=l.regionInfo,u=o.dragSchema;if(!1===(null===(a=null==s?void 0:s.accept)||void 0===a?void 0:a.call(s,u)))return!1;var c={mode:o.dragMode,sourceType:o.dragType,sourceId:o.dragId,data:o.dragSchema,targetId:t,targetRegion:n};return!this.manager.trigger("dnd-accept",c).prevented&&(null===(r=this.dndMode)||void 0===r||r.leave(e,this.dragGhost),null===(i=this.dndMode)||void 0===i||i.dispose(),o.setDropId(t,n),this.makeDNDModeInstance(l),this.dndMode.enter(e,this.dragGhost),!0)},e.prototype.makeDNDModeInstance=function(e){var t,n=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,a=o.DefaultDNDMode;"position-h"===n&&(a=l.PositionHDNDMode),this.dndMode=new a(this,e)},e.prototype.startDrag=function(e,t){var n,a=this,r=this.store.getNodeById(e),i=this.store.getDoc().querySelector('[data-editor-id="'+e+'"]');r&&i?(this.dragElement=i,t.dataTransfer.effectAllowed="move",t.dataTransfer.setDragImage(this.createDragImage(e,r),0,0),t.dataTransfer.setData(("dnd/ae-node-"+e).toLowerCase(),""),null===(n=t.target)||void 0===n||n.addEventListener("dragend",this.dragEnd),setTimeout((function(){a.store.setDragId(e);var n=r.parent;a.switchToRegion(t,n.id,n.region)}),4)):t.preventDefault()},e.prototype.dragEnter=function(e){var t=this.store;if(this.dragEnterCount++,!t.dragId&&1===this.dragEnterCount)for(var n=e.dataTransfer.types,a=n.length-1;a>=0;a--)if(/^dnd-dom\/(.*)$/.test(n[a])){var r=RegExp.$1,i=document.querySelector(r);if(i){i.addEventListener("dragend",this.dragEnd);var o=i.getAttribute("data-dnd-id"),l=i.getAttribute("data-dnd-type"),s=i.getAttribute("data-dnd-data"),u=s?JSON.parse(s):{type:"tpl",tpl:"Unknown"};t.setDragId(o,"copy",l,u);var c=t.activeContainerId;if(c){var d=t.getNodeById(c);(null==d?void 0:d.childRegions.length)&&this.switchToRegion(e,d.id,d.childRegions[0].region)}break}}},e.prototype.dragOver=function(e){var t=this.store,n=e.target;if(t.dropId&&n){e.preventDefault();var a=e.clientX-this.lastX,r=e.clientY-this.lastY,i=Math.max(Math.abs(a),Math.abs(r)),o=Date.now();if(i<5){var l=n.closest("[data-region][data-region-host]"),s=null==l?void 0:l.getAttribute("data-region-host"),u=null==l?void 0:l.getAttribute("data-region");if(!l||s===t.dropId)return;0===this.lastMoveAt||(o-this.lastMoveAt>3e3?this.switchToRegion(e,s,u):o-this.lastMoveAt>1e3&&u&&s&&t.setPlanDropId(s,u))}else{t.setPlanDropId("",""),this.lastMoveAt=o,this.lastX=e.clientX,this.lastY=e.clientY;var c=n.closest('[data-region][data-region-host="'+t.dropId+'"]'),d=null==c?void 0:c.getAttribute("data-region");d&&d!==t.dropRegion&&this.switchToRegion(e,t.dropId,d),this.dndMode.over(e,this.dragGhost)}}},e.prototype.drop=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,i,o,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.store,t=this.dndMode.getDropBeforeId(),"move"!==e.dragMode?[3,1]:(this.manager.move(e.dropId,e.dropRegion,e.dragId,t),[3,4]);case 1:return"copy"!==e.dragMode?[3,4]:(n=e.dragSchema,i=e.dropId,o=e.dropRegion,l=void 0,"subrenderer"!==e.dragType?[3,3]:(null==(l=(0,r.default)(e.subRenderers,(function(t){return t.id===e.dragId})))?void 0:l.scaffoldForm)?[4,this.manager.scaffold(l.scaffoldForm,n)]:[3,3]);case 2:n=a.sent(),a.label=3;case 3:this.manager.addChild(i,o,n,t,l,{id:e.dragId,type:e.dragType,data:e.dragSchema}),a.label=4;case 4:return[2]}}))}))},e.prototype.dragLeave=function(e){this.dragEnterCount--},e.prototype.dragEnd=function(e){var t,n;null===(t=e.target)||void 0===t||t.removeEventListener("dragend",this.dragEnd),null===(n=this.dndMode)||void 0===n||n.leave(e,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML="",this.store.setDragId(""),this.store.setDropId(""),this.disposeDragImage(),this.dragEnterCount=0},e.prototype.updateDragElements=function(e){e?[].slice.call(this.store.getDoc().querySelectorAll('[data-editor-id="'+e+'"]')).forEach((function(e){return e.classList.add("ae-is-draging")})):[].slice.call(this.store.getDoc().querySelectorAll(".ae-is-draging")).forEach((function(e){return e.classList.remove("ae-is-draging")}))},e.prototype.updateDropRegion=function(e,t){var n,a;(null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'+t.region+'"][data-region-host="'+t.id+'"]'))||void 0===n||n.classList.remove("is-dragenter")),e.id&&e.region&&(null===(a=this.store.getDoc().querySelector('[data-region="'+e.region+'"][data-region-host="'+e.id+'"]'))||void 0===a||a.classList.add("is-dragenter"))},e.prototype.updatePlanDropRegion=function(e,t){var n,a;(null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'+t.region+'"][data-region-host="'+t.id+'"]'))||void 0===n||n.classList.remove("is-entering")),e.id&&e.region&&(null===(a=this.store.getDoc().querySelector('[data-region="'+e.region+'"][data-region-host="'+e.id+'"]'))||void 0===a||a.classList.add("is-entering"))},e.prototype.dispose=function(){this.disposeDragImage(),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[DragEvent]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"dragEnter",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[DragEvent]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"dragOver",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[DragEvent]),(0,a.__metadata)("design:returntype",Promise)],e.prototype,"drop",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[DragEvent]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"dragLeave",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[DragEvent]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"dragEnd",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"updateDragElements",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"updateDropRegion",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"updatePlanDropRegion",null),e}();t.EditorDNDManager=s},8772:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PositionHDNDMode=void 0;var a=n(752),r=(0,a.__importDefault)(n(8425)),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.enter=function(e,t){t.innerHTML="",t.classList.add("use-position"),t.classList.add("is-horizontal");var n=this.dnd.dragElement,a=this.constainer.getBoundingClientRect(),i=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest("[data-region]")===this.constainer){var o=n.getAttribute("data-editor-id"),l=(0,r.default)(i,(function(e){return e.$$id===o}));if(~l&&i[l+1]&&(this.dropBeforeId=i[l+1].$$id),n.nextElementSibling){var s=n.nextElementSibling.getBoundingClientRect();t.style.cssText+="top: 0; left: "+(s.x-a.x)+"px;"}else t.style.cssText+="top: 0; left: 100%;"}else t.style.cssText+="top: 0; left: -999999%;";this.constainer.appendChild(t)},t.prototype.leave=function(e,t){t.classList.remove("use-position"),t.classList.remove("is-horizontal")},t.prototype.over=function(e,t){var n,a,r=this.getTarget(e);if(r){if("table"===(null===(n=this.constainer)||void 0===n?void 0:n.getAttribute("data-renderer"))){var i=null===(a=r.parentElement)||void 0===a?void 0:a.closest("th[data-editor-id], td[data-editor-id]");i&&this.constainer.contains(i)&&(r=i)}var o=this.constainer.getBoundingClientRect(),l=(Array.isArray(this.region.schema)&&this.region.schema,r.getBoundingClientRect());r.nextElementSibling&&r.nextElementSibling.hasAttribute("data-editor-id")?(t.style.cssText+="left: "+(l.x-o.x)+"px;",this.dropBeforeId=r.getAttribute("data-editor-id")):e.clientX>l.x+l.width/2?(t.style.cssText+="top: 0; left: "+(l.right-o.x)+"px;",delete this.dropBeforeId):(t.style.cssText+="left: "+(l.x-o.x)+"px;",this.dropBeforeId=r.getAttribute("data-editor-id"))}},t}(n(5610).DefaultDNDMode);t.PositionHDNDMode=i},5951:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;(0,n(752).__importDefault)(n(2167));var a=n(1502);t.env={updateLocation:function(){},jumpTo:function(){a.toast.info("温馨提示:预览模式下禁止跳转")}}},9942:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var a=n(752),r=n(1502);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return r.Icon}});var i=(0,a.__importDefault)(n(3248)),o=(0,a.__importDefault)(n(2078)),l=(0,a.__importDefault)(n(8983)),s=(0,a.__importDefault)(n(7528));(0,r.registerIcon)("arrow-to-right",i.default),(0,r.registerIcon)("left-arrow-to-left",o.default),(0,r.registerIcon)("top-arrow-to-top",l.default),(0,r.registerIcon)("arrow-to-bottom",s.default)},9756:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorManager=t.unRegisterEditorPlugin=t.getEditorPlugins=t.registerEditorPlugin=void 0;var a=n(752),r=n(361),i=n(9933),o=n(3570),l=n(6211),s=n(9703),u=n(5951),c=(0,a.__importDefault)(n(3908)),d=n(1502),p=n(5720),f=(0,a.__importDefault)(n(8425)),m=n(6162),h=[];t.registerEditorPlugin=function(e){h.push(e)},t.getEditorPlugins=function(){return h.concat()},t.unRegisterEditorPlugin=function(e){var t=(0,f.default)(h,(function(t){return t.id===e}));~t&&h.splice(t,1)};var v=function(){function e(e,t,n){var r=this;this.config=e,this.store=t,this.parent=n,this.toDispose=[],this.id=(0,o.guid)(),this.disableHover=!1,this.listeners=[],this.lazyPatchSchema=(0,c.default)(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1;var i=!!n;this.env=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},u.env),e.amisEnv),{theme:e.theme}),this.hackIn=(null==n?void 0:n.hackIn)||s.hackIn,this.plugins=(null==n?void 0:n.plugins)||(e.disableBultinPlugin?[]:h).concat(e.plugins||[]).map((function(e){var t,n=new e(r);return n.order=null!==(t=n.order)&&void 0!==t?t:0,n})).sort((function(e,t){return e.order-t.order})),this.dnd=(null==n?void 0:n.dnd)||new m.EditorDNDManager(this,t),this.hackRenderers(),i||this.toDispose.push((0,l.reaction)((function(){var e;return[t.activeContainerId,t.activeContainerId?null===(e=t.getNodeById(t.activeContainerId))||void 0===e?void 0:e.childRegions.map((function(e){return e.key})):[]]}),(function(e){var t=e[0],n=e[1];t&&(null==n?void 0:n.length)&&r.buildRenderers()})),(0,o.reactionWithOldValue)((function(){return t.activeId}),(function(e,t){r.store.insertId&&r.store.closeInsertPanel(),r.buildJSONSchemaUri(),r.buildRenderers(),r.buildToolbars(),r.buildPanels(),r.trigger("active",e?(0,a.__assign)((0,a.__assign)({},r.buildEventContext(e)),{active:!0}):{id:t,active:!1})})),(0,l.reaction)((function(){return t.selections.join(",")}),(function(){r.buildPanels()})),(0,l.reaction)((function(){return t.needPatch}),(function(e){e&&r.lazyPatchSchema()})),(0,o.reactionWithOldValue)((function(){return{id:t.hoverId,region:t.hoverRegion}}),(function(e,n){var a,r,i=t.getDoc();e.id&&e.region?null===(a=i.querySelector('[data-region="'+e.region+'"][data-region-host="'+e.id+'"]'))||void 0===a||a.classList.add("is-region-active"):(null==n?void 0:n.id)&&(null==n?void 0:n.region)&&(null===(r=i.querySelector('[data-region="'+n.region+'"][data-region-host="'+n.id+'"]'))||void 0===r||r.classList.remove("is-region-active"))})))}return e.prototype.buildEventContext=function(e){var t="string"==typeof e?this.store.getNodeById(e):e,n=this.store.getSchema(t.id);return{node:t,id:t.id,info:t.info,path:t.path,schemaPath:t.schemaPath,schema:n,data:""}},e.prototype.buildJSONSchemaUri=function(){var e=this.store.activeId,t="";if(e){var n=this.buildEventContext(e),a=this.trigger("before-resolve-json-schema",n);if(t=a.context.data,!a.prevented){this.plugins.forEach((function(e){var a;if(!t){var r=null===(a=e.buildJSONSchema)||void 0===a?void 0:a.call(e,n);r&&(t=r)}})),n.data=t;var r=this.trigger("after-resolve-json-schema",n);t=r.data}}this.store.setJSONSchemaUri(t)},e.prototype.buildToolbars=function(){var e=this.store.activeId,t=[];if(e){var n=this.buildEventContext(e);this.plugins.forEach((function(e){var r,i=(0,a.__assign)({},n);null===(r=e.buildEditorToolbar)||void 0===r||r.call(e,i,t)}))}this.store.setActiveToolbars(t.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),{order:e.order||0,id:(0,o.guid)()})})))},e.prototype.collectPanels=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var i=[];if(e){var o=(0,a.__assign)((0,a.__assign)({},this.buildEventContext(e)),{secondFactor:n,data:i,selections:this.store.selections.map((function(e){return r.buildEventContext(e)}))});this.plugins.forEach((function(e){var t;null===(t=e.buildEditorPanel)||void 0===t||t.call(e,o,i)})),t&&this.trigger("build-panels",o),i=o.data||i}return i},e.prototype.buildPanels=function(){var e=this.store.activeId,t=[];if(e||this.store.selections.length){e=e||this.store.selections[0];var n=this.store.getNodeById(e);t=n?this.collectPanels(n,!0):t}this.store.setPanels(t.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),{order:e.order||0})})))},e.prototype.collectRenderers=function(e,t){void 0===t&&(t=this.store.activeContainerId);var n=[];if(!t)return n;var i=this.store.getNodeById(t);if(!i)return n;var l=this.store.getSchema(t),s={node:i,id:i.id,info:i.info,path:i.path,schemaPath:i.schemaPath,schema:l,region:e};return this.plugins.forEach((function(e){var t,l=null===(t=e.buildSubRenderers)||void 0===t?void 0:t.call(e,s,n,(0,r.getRenderers)());l&&(Array.isArray(l)?l:[l]).forEach((function(t){return n.push((0,a.__assign)((0,a.__assign)({},t),{id:(0,o.guid)(),plugin:e,parent:i.info,order:t.order||0}))}))})),n},e.prototype.buildRenderers=function(e){this.store.setSubRenderers(this.collectRenderers(e)),this.store.changeSubRendererRegion(e||"")},e.prototype.rebuild=function(){this.buildRenderers(),this.buildToolbars(),this.buildPanels()},e.prototype.switchToRegion=function(e){this.store.activeId&&this.buildRenderers(e)},e.prototype.showInsertPanel=function(e,t,n,a,r,i){var o,l,s;if(void 0===t&&(t=this.store.activeId),void 0===a&&(a="insert"),void 0===r&&(r=""),void 0===n&&t){var u=this.store.getNodeById(t);n=null===(s=null===(l=null===(o=null==u?void 0:u.info)||void 0===o?void 0:o.regions)||void 0===l?void 0:l.find((function(t){return t.key===e})))||void 0===s?void 0:s.preferTag}this.store.setInsertRenderers(this.collectRenderers(e,t)),this.store.setInsertRegion(e,t,n,a,r,i)},e.prototype.showReplacePanel=function(e,t){var n=this.store.getNodeById(e),a=null==n?void 0:n.parent;if(n&&a&&a.isRegion&&a.parent){var r=a.parent;this.showInsertPanel(a.region,r.id,t,"replace",n.id)}},e.prototype.on=function(e,t){this.listeners.push({type:e,fn:t})},e.prototype.off=function(e,t){var n=(0,f.default)(this.listeners,(function(n){return n.type===e&&n.fn===t}));~n&&this.listeners.splice(n,1)},e.prototype.trigger=function(e,t){var n,a,r=(0,i.createEvent)(e,t),l=(0,o.camelize)(/^(?:before|after)/.test(e)?e:"on-"+e),s=this.listeners.filter((function(t){return t.type===e}));return this.plugins.forEach((function(t){return t[l]&&s.push({type:e,fn:t[l].bind(t)})})),s.some((function(e){var t=e.fn.call(null,r);return!1===t?(r.preventDefault(),r.stopPropagation()):void 0!==t&&r.setData(t),r.stoped})),r.stoped||!1!==(null===(a=(n=this.config)[l])||void 0===a?void 0:a.call(n,r))||(r.preventDefault(),r.stopPropagation()),r},e.prototype.insert=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,o,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertId,r=e.insertRegion,i=e.insertBeforeId,o=t.scaffold||{type:t.type},t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,o)]:[3,2]):[2];case 1:o=a.sent(),a.label=2;case 2:return(l=this.addChild(n,r,o,i,t))&&(e.closeInsertPanel(),setTimeout((function(){e.setActiveId(l.$$id)}),100)),[2]}}))}))},e.prototype.replace=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,o=this;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.store,(t=e.selectedInsertRendererInfo)?(n=e.insertOrigId,r=t.scaffold||{type:t.type},i=e.insertRegion,t.scaffoldForm?[4,this.scaffold(t.scaffoldForm,r)]:[3,2]):[2];case 1:r=a.sent(),a.label=2;case 2:return this.replaceChild(n,r,t,i)&&(e.closeInsertPanel(),setTimeout((function(){o.rebuild()}),4)),[2]}}))}))},e.prototype.getEditorInfo=function(e,t,n){var r=null,i=n.$$id?this.store.getSchemaPath(n.$$id):"",o={renderer:e,path:t,schemaPath:i,schema:n},l=this.trigger("before-resolve-editor-info",o);return l.prevented?l.context.data:(this.plugins.some((function(t){var l,s=null===(l=t.getRendererInfo)||void 0===l?void 0:l.call(t,o);return!!s&&(r=(0,a.__assign)((0,a.__assign)({id:n.$$id},s),{plugin:t,renderer:e,schemaPath:i}),!0)})),this.trigger("after-resolve-editor-info",(0,a.__assign)((0,a.__assign)({},o),{data:r})).context.data)},e.prototype.panelChangeValue=function(e,t){var n=this.store,r=(0,a.__assign)((0,a.__assign)({},this.buildEventContext(n.activeId)),{value:e,diff:t});this.trigger("before-update",r).prevented||(n.changeValue(e,t),this.trigger("after-update",r))},e.prototype.openSubEditor=function(e){this.store.openSubEditor(e)},e.prototype.openContextMenu=function(e,t,n){var r=this,i=[],o=this.buildEventContext(e),l=(0,a.__assign)((0,a.__assign)({},o),{selections:this.store.selections.map((function(e){return r.buildEventContext(e)})),region:t,data:i});(i=this.buildContextMenus(l)).length&&(this.store.setContextId(e),(0,d.openContextMenus)({x:n.x,y:n.y},i,(function(){return r.store.setContextId("")})))},e.prototype.buildContextMenus=function(e){return this.plugins.forEach((function(t){var n;null===(n=t.buildEditorContextMenu)||void 0===n||n.call(t,e,e.data)})),this.trigger("build-context-menus",e),e.data},e.prototype.closeContextMenu=function(){},e.prototype.moveUp=function(){var e,t=this.store;if(t.activeId){var n=t.getNodeById(t.activeId),r=n.parent,i=n.host,o=this.buildEventContext(i),l=(0,a.__assign)((0,a.__assign)({},o),{sourceId:n.id,direction:"up",beforeId:null===(e=n.prevSibling)||void 0===e?void 0:e.id,region:r.region});this.trigger("before-move",l).prevented||(t.moveUp(n.id),this.buildToolbars(),this.trigger("after-move",l))}},e.prototype.moveDown=function(){var e,t,n=this.store;if(n.activeId){var r=n.getNodeById(n.activeId),i=r.parent,o=r.host,l=this.buildEventContext(o),s=(0,a.__assign)((0,a.__assign)({},l),{sourceId:r.id,direction:"up",beforeId:null===(t=null===(e=r.nextSibling)||void 0===e?void 0:e.nextSibling)||void 0===t?void 0:t.id,region:i.region});this.trigger("before-move",s).prevented||(n.moveDown(r.id),this.buildToolbars(),this.trigger("after-move",s))}},e.prototype.del=function(e){if(e&&e.length){var t=Array.isArray(e)?e[0]:e,n=(0,a.__assign)((0,a.__assign)({},this.buildEventContext(t)),{data:Array.isArray(e)?e.concat():[]});this.trigger("before-delete",n).prevented||(Array.isArray(n.data)&&n.data.length?this.store.delMulti(n.data):this.store.del(t),this.trigger("after-delete",n))}},e.prototype.duplicate=function(e){this.store.duplicate(e)},e.prototype.copy=function(e){var t=this.store.getValueOf(e);this.clipboardData=(0,p.stringify)(t),d.toast.info("配置项已复制")},e.prototype.cut=function(e){this.copy(e),this.del(e)},e.prototype.paste=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n;return(0,a.__generator)(this,(function(a){return this.clipboardData?(n=(0,p.parse)(this.clipboardData),t?this.addChild(e,t,n):this.replaceChild(e,n),[2]):((0,d.alert)("剪切板内容为空"),[2])}))}))},e.prototype.emptyRegion=function(e,t){this.store.emptyRegion(e,t)},e.prototype.addChild=function(e,t,n,r,i,o){var l=this.store,s=-1,u=this.buildEventContext(e);if(r){var c=u.schema[t];Array.isArray(c)&&(s=(0,f.default)(c,(function(e){return(null==e?void 0:e.$$id)===r})))}var d=(0,a.__assign)((0,a.__assign)({},u),{beforeId:r,index:s,region:t,data:n,subRenderer:i,dragInfo:o}),p=this.trigger("before-insert",d);if(!p.prevented){var m=l.insertSchema(p);return this.trigger("after-insert",d),m}return null},e.prototype.move=function(e,t,n,r){var i=this.store,o=(0,a.__assign)((0,a.__assign)({},this.buildEventContext(e)),{beforeId:r,region:t,sourceId:n}),l=this.trigger("before-move",o);return!l.prevented&&(i.moveSchema(l),this.trigger("after-move",o),!0)},e.prototype.replaceChild=function(e,t,n,r){var i=(0,a.__assign)((0,a.__assign)({},this.buildEventContext(e)),{data:t,subRenderer:n,region:r}),o=this.trigger("before-replace",i);return!(o.prevented||!o.context.data||(this.store.replaceChild(e,o.context.data),this.trigger("after-replace",i),0))},e.prototype.setActiveId=function(e){this.store.setActiveId(e)},e.prototype.openConfigPanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey("config",!0)},e.prototype.openCodePanel=function(e){var t=this.store;t.activeId!==e&&t.setActiveId(e),t.changePanelKey("code",!0)},e.prototype.toggleSelection=function(e){var t=this.store,n=t.selections.concat();!n.length&&t.activeId&&n.push(t.activeId);var a=n.indexOf(e);~a?n.splice(a,1):n.push(e),this.setSelection(n,e)},e.prototype.setSelection=function(e,t){var n=this;void 0===t&&(t=e[0]);var r=this.store,i=this.buildEventContext(t),o=(0,a.__assign)((0,a.__assign)({},i),{selections:e.map((function(e){return n.buildEventContext(e)})),data:e});this.trigger("selection-change",o).prevented||(1===(e=o.data).length?r.setActiveId(e[0]):r.setActiveId("",e))},e.prototype.startDrag=function(e,t){t.persist(),this.dnd.startDrag(e,t.nativeEvent)},e.prototype.scaffold=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n=this;return(0,a.__generator)(this,(function(r){return[2,new Promise((function(r){n.store.openScaffoldForm((0,a.__assign)((0,a.__assign)({},e),{value:e.pipeIn?e.pipeIn(t):t,callback:r}))}))]}))}))},e.prototype.reScaffold=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return[4,this.scaffold(t,n)];case 1:return r=a.sent(),this.replaceChild(e,r),[2]}}))}))},e.prototype.patchSchema=function(e){var t=this;if(void 0===e&&(e=!1),!this.patching){this.patching=!0;var n=function(a){a.forEach((function(a){a.uniqueChildren&&a.uniqueChildren.length&&n(a.uniqueChildren),a.isRegion||a.patch(t.store,e)}))};n(this.store.root.children),this.patching=!1}},e.prototype.hackRenderers=function(e){var t=this;void 0===e&&(e=(0,r.getRenderers)());var n=[];e.forEach((function(e){t.plugins.filter((function(t){var n;return Array.isArray(null==t?void 0:t.regions)&&t.regions.some((function(n){var a;return n.renderMethod&&(null!==(a=n.rendererName)&&void 0!==a?a:t.rendererName)===e.name}))||t.overrides&&(null!==(n=t.overrideTargetRendererName)&&void 0!==n?n:t.rendererName)===e.name})).forEach((function(t){var a,r,i=null===(a=t.regions)||void 0===a?void 0:a.filter((function(n){var a;return n.renderMethod&&(null!==(a=n.rendererName)&&void 0!==a?a:t.rendererName)===e.name}));(null==i?void 0:i.length)&&n.push({renderer:e,regions:i}),t.overrides&&(null!==(r=t.overrideTargetRendererName)&&void 0!==r?r:t.rendererName)===e.name&&n.push({renderer:e,overrides:t.overrides})}))})),n.forEach((function(e){var n=e.regions,a=e.renderer,r=e.overrides;return t.hackIn(a,n,r)}))},e.prototype.makeWrapper=function(e,t){var n;return(null===(n=this.parent)||void 0===n?void 0:n.makeWrapper)?this.parent.makeWrapper(e,t):(0,s.makeWrapper)(this,e,t)},e.prototype.makeSchemaFormRender=function(e){return(0,s.makeSchemaFormRender)(this,e)},e.prototype.onWidthChangeStart=function(e,t){return this.trigger("width-change-start",(0,a.__assign)((0,a.__assign)({},t),{nativeEvent:e}))},e.prototype.onHeightChangeStart=function(e,t){return this.trigger("height-change-start",(0,a.__assign)((0,a.__assign)({},t),{nativeEvent:e}))},e.prototype.onSizeChangeStart=function(e,t){return this.trigger("size-change-start",(0,a.__assign)((0,a.__assign)({},t),{nativeEvent:e}))},e.prototype.openNodePopOverForm=function(e){var t,n,a,r,i="string"==typeof e?this.store.getNodeById(e):e;if(i&&((null===(n=null===(t=i.info)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)||(null===(r=null===(a=i.info)||void 0===a?void 0:a.plugin)||void 0===r?void 0:r.popOverBodyCreator))){var o=i.info.plugin,l=this.store,s={body:o.popOverBodyCreator?o.popOverBodyCreator(this.buildEventContext(i)):o.popOverBody,value:l.getValueOf(i.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-editor-id="'+i.id+'"]')}};l.openPopOverForm(s)}},e.prototype.dispose=function(){this.toDispose.forEach((function(e){return e()})),this.toDispose=[],this.listeners.splice(0,this.listeners.length),this.lazyPatchSchema.cancel(),this.dnd.dispose()},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object]),(0,a.__metadata)("design:returntype",void 0)],e.prototype,"panelChangeValue",null),e}();t.EditorManager=v},6374:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mockValue=void 0;var a=(0,n(752).__importDefault)(n(2245));t.mockValue=function(e){var t="data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg t='1631083237695' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2420' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024'%3E%3Cdefs%3E%3Cstyle type='text/css'%3E%3C/style%3E%3C/defs%3E%3Cpath d='M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z' p-id='2421' fill='%23bfbfbf'%3E%3C/path%3E%3Cpath d='M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z' p-id='2422' fill='%23bfbfbf'%3E%3C/path%3E%3C/svg%3E";return"date"===e.type||"datetime"===e.type||"time"===e.type||"month"===e.type||"static-date"===e.type||"static-datetime"===e.type||"static-time"===e.type||"static-month"===e.type?(0,a.default)().format("X"):"image"===e.type||"static-image"===e.type?t:"images"===e.type||"static-images"===e.type?[t]:"假数据"}},9933:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasePlugin=t.createEvent=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=(0,a.__importDefault)(n(6918));t.createEvent=function(e,t){var n={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){n.prevented=!0},stopPropagation:function(){n.stoped=!0},get data(){return n.context.data},setData:function(e){n.context.data=e}};return n};var o=function(){function e(e){this.manager=e}return e.prototype.getRendererInfo=function(e){var t=e.renderer,n=this;if(e.schema.$$id&&n.name&&n.rendererName&&n.rendererName===t.name)return{name:n.name,regions:n.regions,patchContainers:n.patchContainers,vRendererConfig:n.vRendererConfig,wrapperProps:n.wrapperProps,wrapperResolve:n.wrapperResolve,filterProps:n.filterProps,$schema:n.$schema,renderRenderer:n.renderRenderer,multifactor:n.multifactor,scaffoldForm:n.scaffoldForm}},e.prototype.buildEditorPanel=function(e,t){var n,r,i,o,l=this;if(!e.selections.length&&(!e.info.hostId&&(l.panelControls||l.panelControlsCreator||l.panelBody||l.panelBodyCreator)&&e.info.plugin===this?t.push({key:"config",icon:l.panelIcon||l.icon||"fa fa-cog",title:l.panelTitle||"设置",render:this.manager.makeSchemaFormRender({definitions:l.panelDefinitions,submitOnChange:l.panelSubmitOnChange,api:l.panelApi,body:l.panelBodyCreator?l.panelBodyCreator(e):l.panelBody,controls:l.panelControlsCreator?l.panelControlsCreator(e):l.panelControls})}):e.info.plugin===this&&e.info.hostId&&((null===(n=l.vRendererConfig)||void 0===n?void 0:n.panelControls)||(null===(r=l.vRendererConfig)||void 0===r?void 0:r.panelControlsCreator)||(null===(i=l.vRendererConfig)||void 0===i?void 0:i.panelBody)||(null===(o=l.vRendererConfig)||void 0===o?void 0:o.panelBodyCreator))&&t.push({key:e.info.multifactor?"vconfig":"config",icon:l.vRendererConfig.panelIcon||"fa fa-cog",title:l.vRendererConfig.panelTitle||"设置",render:this.manager.makeSchemaFormRender({submitOnChange:l.panelSubmitOnChange,api:l.panelApi,definitions:l.vRendererConfig.panelDefinitions,controls:l.vRendererConfig.panelControlsCreator?l.vRendererConfig.panelControlsCreator(e):l.vRendererConfig.panelControls,body:l.vRendererConfig.panelBodyCreator?l.vRendererConfig.panelBodyCreator(e):l.vRendererConfig.panelBody})}),e.info.plugin===this&&e.info.multifactor)){var s=e.node.sameIdChild;s&&this.manager.collectPanels(s,!1,!0).forEach((function(e){var n,r;if("code"===e.key){var i=t.some((function(e){return"code"===e.key}));i||t.push(e)}else"renderers"===e.key?(i=t.some((function(e){return"renderers"===e.key})))||t.push(e):"commonConfig"===e.key||"name-list"===e.key||t.push((0,a.__assign)((0,a.__assign)({},e),{key:"sub-"+e.key,icon:(null===(r=null===(n=s.info)||void 0===n?void 0:n.plugin)||void 0===r?void 0:r.icon)||e.icon}))}))}},e.prototype.buildSubRenderers=function(e,t,n){var a=this;return Array.isArray(a.scaffolds)?a.scaffolds.map((function(e){var t,n,r,i,o,l,s,u;return{name:null!==(t=e.name)&&void 0!==t?t:a.name,icon:null!==(n=e.icon)&&void 0!==n?n:a.icon,description:null!==(r=e.description)&&void 0!==r?r:a.description,previewSchema:null!==(i=e.previewSchema)&&void 0!==i?i:a.previewSchema,tags:null!==(o=e.tags)&&void 0!==o?o:a.tags,docLink:null!==(l=e.docLink)&&void 0!==l?l:a.docLink,type:null!==(s=e.type)&&void 0!==s?s:a.type,scaffold:null!==(u=e.scaffold)&&void 0!==u?u:a.scaffold,scaffoldForm:a.scaffoldForm}})):a.name&&a.description?{name:a.name,icon:a.icon,description:a.description,previewSchema:a.previewSchema,tags:a.tags,docLink:a.docLink,type:a.type,scaffold:a.scaffold,scaffoldForm:a.scaffoldForm}:void 0},e.prototype.buildEditorContextMenu=function(e,t){var n,a,r=this,i=e.id,o=e.schema,l=(e.region,e.info),s=this;l.plugin===s&&((null===(n=s.scaffoldForm)||void 0===n?void 0:n.canRebuild)||(null===(a=l.scaffoldForm)||void 0===a?void 0:a.canRebuild))&&t.push({label:"快速构建「"+l.plugin.name+"」",disabled:o.$$commonSchema,onSelect:function(){return r.manager.reScaffold(i,l.scaffoldForm||s.scaffoldForm,o)}})},e.prototype.renderPlaceholder=function(e,t){return r.default.createElement("div",{key:t,className:"wrapper-sm b-a b-light m-b-sm",children:r.default.createElement("span",{className:"text-muted",children:e})})},e.prototype.getPlugin=function(e){return(0,i.default)(this.manager.plugins,(function(t){return"string"==typeof e?t.rendererName===e:t instanceof e}))},e}();t.BasePlugin=o},6348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ActionPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="按钮",t.panelBodyCreator=function(e){var n=/(?:\/|^)dialog\/.+$/.test(e.path);return/(?:\/|^)dropdown-button\/.+$/.test(e.path),[{label:"按钮行为",type:"select",name:"actionType",pipeIn:(0,s.defaultValue)(""),options:[{label:"默认",value:""},{label:"弹框",value:"dialog"},{label:"抽出式弹框(Drawer)",value:"drawer"},{label:"发送请求",value:"ajax"},{label:"下载文件",value:"download"},{label:"页面跳转(单页模式)",value:"link"},{label:"页面跳转",value:"url"},{label:"刷新目标",value:"reload"},{label:"复制内容",value:"copy"},{label:"提交",value:"submit"},{label:"重置",value:"reset"},{label:"重置并提交",value:"reset-and-submit"},{label:"确认",value:"confirm"},{label:"取消",value:"cancel"},{label:"跳转下一条",value:"next"},{label:"跳转上一条",value:"prev"}]},{type:"input-text",name:"content",visibleOn:'data.actionType == "copy"',label:"复制内容模板"},{type:"select",name:"copyFormat",options:[{label:"纯文本",value:"text/plain"},{label:"富文本",value:"text/html"}],visibleOn:'data.actionType == "copy"',label:"复制格式"},{type:"input-text",name:"target",visibleOn:'data.actionType == "reload"',label:"指定刷新目标",required:!0},{name:"dialog",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"<p>对,你刚刚点击了</p>"}),asFormItem:!0,children:function(e){var n=e.value,o=e.onChange;return"dialog"===e.data.actionType?i.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){return t.manager.openSubEditor({title:"配置弹框内容",value:(0,a.__assign)({type:"dialog"},n),onChange:function(e){return o(e)}})},block:!0},"配置弹框内容"):null}},{visibleOn:'data.actionType == "drawer"',name:"drawer",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"<p>对,你刚刚点击了</p>"}),asFormItem:!0,children:function(e){var n=e.value,o=e.onChange;return"drawer"==e.data.actionType?i.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){return t.manager.openSubEditor({title:"配置抽出式弹框内容",value:(0,a.__assign)({type:"drawer"},n),onChange:function(e){return o(e)}})},block:!0},"配置抽出式弹框内容"):null}},(0,s.getSchemaTpl)("api",{label:"目标API",visibleOn:'data.actionType == "ajax"'}),{name:"feedback",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"<p>内容</p>"}),asFormItem:!0,children:function(e){var n=e.onChange,o=e.value;return"ajax"==e.data.actionType?i.default.createElement("div",{className:"m-b"},i.default.createElement(r.Button,{size:"sm",level:o?"danger":"info",onClick:function(){return t.manager.openSubEditor({title:"配置反馈弹框详情",value:(0,a.__assign)({type:"dialog"},o),onChange:function(e){return n(e)}})}},"配置反馈弹框内容"),o?i.default.createElement(r.Button,{size:"sm",level:"link",className:"m-l",onClick:function(){return n("")}},"清空设置"):null):null}},{name:"feedback.visibleOn",label:"是否弹出表达式",type:"input-text",visibleOn:"this.feedback",autoComplete:!1,description:"请使用 JS 表达式如:`this.xxx == 1`"},{name:"feedback.skipRestOnCancel",label:"弹框取消是否中断后续操作",type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{name:"feedback.skipRestOnConfirm",label:"弹框确认是否中断后续操作",type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{type:"input-text",label:"目标地址",name:"link",visibleOn:'data.actionType == "link"'},{type:"input-text",label:"目标地址",name:"url",visibleOn:'data.actionType == "url"',placeholder:""},{type:"switch",name:"blank",visibleOn:'data.actionType == "url"',mode:"inline",className:"w-full",label:"是否用新窗口打开",pipeIn:(0,s.defaultValue)(!0)},n?{visibleOn:'data.actionType == "submit" || data.type == "submit"',name:"close",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,s.defaultValue)(!0),label:"是否关闭当前弹框"}:null,{name:"confirmText",type:"textarea",label:"确认文案",description:"点击后会弹出此内容,等用户确认后才进行相应的操作。"},{type:"input-text",name:"reload",label:"刷新目标组件",visibleOn:'data.actionType != "link" && data.actionType != "url"',description:"当前动作完成后,指定目标组件刷新。支持传递数据如:<code>xxx?a=\\${a}&b=\\${b}</code>,多个目标请用英文逗号隔开。"},{type:"input-text",name:"target",visibleOn:'data.actionType != "reload"',label:"指定响应组件",description:"指定动作执行者,默认为当前组件所在的功能性性组件,如果指定则转交给目标组件来处理。"},{type:"js-editor",allowFullscreen:!0,name:"onClick",label:"自定义点击事件",description:"将会传递 event 和 props 两个参数"},{type:"input-text",name:"hotKey",label:"键盘快捷键"}]},t}return(0,a.__extends)(t,e),t.prototype.buildEditorPanel=function(t,n){if(!t.selections.length)if(~["action","button","submit","reset","sparkline"].indexOf(t.info.renderer.name)){var a=this.panelBodyCreator(t);"sparkline"===t.info.renderer.name&&(a={name:"clickAction",type:"combo",label:"",noBorder:!0,multiLine:!0,body:a}),n.push({key:"action",icon:"fa fa-gavel",title:"动作",render:this.manager.makeSchemaFormRender({body:a}),order:100})}else e.prototype.buildEditorPanel.call(this,t,n)},t}(l.BasePlugin);t.ActionPlugin=u,(0,o.registerEditorPlugin)(u)},2821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="alert",t.$schema="/schemas/AlertSchema.json",t.name="提示",t.description="用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。可结合 <code>visibleOn</code> 用来做错误信息提示。",t.docLink="/amis/zh-CN/components/alert",t.icon="fa fa-exclamation-circle",t.scaffold={type:"alert",body:{type:"tpl",tpl:"提示内容",inline:!1},level:"info"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{className:"text-left",showCloseButton:!0}),t.regions=[{key:"body",label:"内容区",placeholder:"提示内容"}],t.panelTitle="提示",t.panelBody=(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"switch",name:"showCloseButton",mode:"inline",className:"w-full",label:"显示关闭按钮"}]},{title:"外观",body:[{label:"样式",name:"level",type:"select",options:[{label:"提示",value:"info"},{label:"成功",value:"success"},{label:"警告",value:"warning"},{label:"严重",value:"danger"}]},(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}]),t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.PagePlugin=l,(0,r.registerEditorPlugin)(l)},1509:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnchorNavPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=n(9547),l=n(9933),s=n(5863),u=n(9703),c=(0,a.__importDefault)(n(8425)),d=n(1548),p=n(3437),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="anchor-nav",t.$schema="/schemas/AnchorNavSchema.json",t.name="锚点导航",t.description="锚点导航,在多行内容展示时,可以将内容用锚点导航分组的形式展示,点击导航菜单可以定位到对应内容区域。",t.docLink="/amis/zh-CN/components/anchor-nav",t.tags=["容器"],t.icon="fa fa-link",t.scaffold={type:"anchor-nav",links:[{title:"用户信息",body:"用户信息"},{title:"系统配置信息",body:[{type:"form",body:[{type:"fieldSet",title:"系统配置信息",body:[{type:"input-email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"}]}]}]},{title:"权限管理",body:[{type:"form",body:[{type:"fieldSet",title:"权限管理",body:[{type:"input-email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"}]}]}]},{title:"角色管理",body:"角色管理"},{title:"网络配置信息",body:"网络配置信息"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="锚点导航",t.panelBody=[(0,o.getSchemaTpl)("fieldSet",{title:"常规",body:[{name:"links",type:"combo",label:"锚点管理",multiple:!0,draggable:!0,minLength:1,items:[{type:"input-text",name:"title",required:!0}],scaffold:{title:"锚点内容",body:{type:"tpl",tpl:"内容",inline:!1}},addButtonText:"新增锚点",draggableTip:""}]}),(0,o.getSchemaTpl)("fieldSet",{title:"外观",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{name:"linkClassName",label:"导航 CSS 类名"}),(0,o.getSchemaTpl)("className",{name:"sectionClassName",label:"区域内容 CSS 类名"})]})],t.patchContainers=["anchor-nav.body"],t.vRendererConfig={regions:{body:{key:"body",label:"内容区"}},panelTitle:"内容区域",panelBody:[(0,o.getSchemaTpl)("fieldSet",{title:"常规",body:[{name:"title",label:"标题",type:"input-text",required:!0}]}),(0,o.getSchemaTpl)("fieldSet",{title:"外观",body:[(0,o.getSchemaTpl)("className")]})]},t.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},t.sectionWrapperResolve=function(e){return e.parentElement},t.overrides={render:function(){var e=this,t=this.super();if(!this.renderSection&&this.props.$$editor&&t){var n=this.props.links;return(0,u.mapReactElement)(t,(function(t){var a,i;if(t.type===p.AnchorNavSection&&t.props.$$id){var o=t.props.$$id,l=(0,c.default)(n,(function(e){return e.$$id===o})),u=e.props.$$editor,f=u.plugin;if(~l){var m=null===(i=null===(a=f.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===i?void 0:i.body;return m?r.default.cloneElement(t,{children:r.default.createElement(s.VRenderer,{key:o,plugin:u.plugin,renderer:u.renderer,$schema:"/schemas/SectionSchema.json",hostId:u.id,memberIndex:l,name:""+(t.props.title||"锚点内容"+(l+1)),id:o,draggable:!1,wrapperResolve:f.sectionWrapperResolve,schemaPath:u.schemaPath+"/anchor-nav/"+l,path:e.props.$path+"/"+l,data:e.props.data},r.default.createElement(d.RegionWrapper,{key:m.key,preferTag:m.preferTag,name:m.key,label:m.label,regionConfig:m,placeholder:m.placeholder,editorStore:f.manager.store,manager:f.manager,children:t.props.children,wrapperResolve:m.wrapperResolve,rendererName:u.renderer.name}))}):t}}return t}))}return t}},t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.AnchorNavPlugin=f,(0,i.registerEditorPlugin)(f)},1596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AudioPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="audio",t.$schema="/schemas/AudioSchema.json",t.name="音频",t.description="音频控件,可以用来播放各种音频文件。",t.tags=["功能"],t.icon="fa fa-music",t.scaffold={type:"audio",autoPlay:!1,src:""},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="音频",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{name:"src",type:"input-text",label:"音频地址",description:"支持获取变量如:<code>\\${audioSrc}</code>"},{type:"select",name:"rates",label:"音频倍速",description:"加速范围在0.1到16之间",multiple:!0,pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){if(e&&e.length){var t=e.split(",");return t=t.filter((function(e){return Number(e)&&Number(e)>0&&Number(e)<=16})).map((function(e){return Number(Number(e).toFixed(1))})),Array.from(new Set(t))}return[]},options:["0.5","1","1.5","2","2.5","3","3.5","4"]},{name:"controls",type:"select",label:"内部控件",multiple:!0,extractValue:!0,joinValues:!1,options:[{label:"倍速",value:"rates"},{label:"播放",value:"play"},{label:"时间",value:"time"},{label:"进度",value:"process"},{label:"音量",value:"volume"}],pipeIn:(0,o.defaultValue)(["rates","play","time","process","volume"]),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"选择倍速后,还需要在常规选择栏中配置倍速",placement:"left"}},{name:"autoPlay",type:"switch",mode:"inline",className:"w-full",label:"自动播放"},{name:"loop",type:"switch",mode:"inline",className:"w-full",label:"循环播放"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className"),{name:"inline",type:"switch",mode:"inline",className:"w-full",label:"内联模式",pipeIn:(0,o.defaultValue)(!0)}]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.AudioPlugin=l,(0,r.registerEditorPlugin)(l)},7916:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailableRenderersPlugin=void 0;var a=n(752),r=n(9797),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return(0,a.__extends)(t,e),t.prototype.buildEditorPanel=function(e,t){e.node,e.info;var n=this.manager.store;e.selections.length||n.activeContainerId&&n.subRenderers.length&&t.push({key:"renderers",icon:"fa fa-cube",title:"组件",component:r.AvailableRenderersPanel,position:"left",order:4e3})},t}(n(9933).BasePlugin);t.AvailableRenderersPlugin=o,(0,i.registerEditorPlugin)(o)},7717:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvatarPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="avatar",t.$schema="/schemas/AvatarSchema.json",t.name="头像",t.icon="fa fa-user",t.description="用户头像",t.docLink="/amis/zh-CN/components/avatar",t.tags=["其他"],t.scaffold={type:"avatar",icon:"fa fa-user"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="面包屑",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",label:"文字",name:"text"},{type:"select",label:"图片拉伸方式",options:["cover","fill","contain","none","scale-down"]},{type:"radios",name:"shape",inline:!0,value:"circle",label:"形状",options:["circle","square"]},{name:"icon",label:"图标",type:"icon-picker"},{name:"size",label:"大小",value:40,type:"input-number"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("style")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.AvatarPlugin=l,(0,r.registerEditorPlugin)(l)},9347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicToolbarPlugin=void 0;var a=n(752),r=n(9933),i=n(9756),o=n(248),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){var n,a=this,r=e.id,i=e.schema,l=this.manager.store,s=l.getNodeById(r),u=l.getSchemaParentById(r),c=s.parent;if(Array.isArray(u)&&(null==c?void 0:c.isRegion)){var d=s.host;s.draggable&&t.push({icon:"fa fa-arrows",tooltip:"按住拖动调整位置",placement:"bottom",draggable:!0,onDragStart:this.manager.startDrag.bind(this.manager,r)});var p=u.indexOf(i);if(!(null==d?void 0:d.memberImmutable(c.region))&&l.panels.some((function(e){return"renderers"===e.key}))){var f=null===(n=u[p+1])||void 0===n?void 0:n.$$id;t.push({icon:o.AddBTNSvg,tooltip:"前面插入节点",level:"special",placement:"bottom",className:"ae-InsertBefore is-vertical",onClick:function(){return a.manager.showInsertPanel(c.region,c.id,c.preferTag,"insert",void 0,r)}},{icon:o.AddBTNSvg,tooltip:"后面插入节点",level:"special",placement:"top",className:"ae-InsertAfter is-vertical",onClick:function(){return a.manager.showInsertPanel(c.region,c.id,c.preferTag,"insert",void 0,f)}})}}s.isVitualRenderer||!s.info.plugin.popOverBody&&!s.info.plugin.popOverBodyCreator||t.push({icon:"fa fa-pencil",tooltip:"编辑",placement:"bottom",onClick:function(e){return a.manager.openNodePopOverForm(s.id)}}),t.push({icon:"fa fa-cog",tooltip:"更多",placement:"right",order:999,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect();a.manager.openContextMenu(r,"",{x:window.scrollX+t.left+t.width-130,y:window.scrollY+t.top+t.height})}}})},t.prototype.buildEditorContextMenu=function(e,t){var n,a,r=this,i=e.id,o=e.schema,l=e.region,s=e.selections,u=this.manager,c=u.store,d=c.getSchemaParentById(i),p=c.getNodeById(i),f=c.getNodePathById(i),m=f.pop(),h=p.host,v=p.parent;if(s.length)t.push({label:"重复一份",disabled:s.some((function(e){return!e.node.duplicatable})),onSelect:function(){return u.duplicate(s.map((function(e){return e.id})))}}),t.push({label:"取消多选",onSelect:function(){return c.setActiveId(i)}}),t.push({label:"删除",disabled:s.some((function(e){return!e.node.removable})),className:"text-danger",onSelect:function(){return u.del(s.map((function(e){return e.id})))}});else if(l)(y=c.panels.find((function(e){return"renderers"===e.key})))&&(t.push({label:"插入组件",onHighlight:function(e){return e&&c.setHoverId(i,l)},onSelect:function(){return u.showInsertPanel(l,i)}}),t.push({label:"清空",onSelect:function(){return u.emptyRegion(i,l)}}),t.push({label:"粘贴",onSelect:function(){return u.paste(i,l)}}));else{if(t.push({label:"选中"+m.label,disabled:c.activeId===m.id,data:i,onSelect:function(e){return c.setActiveId(e)},onHighlight:function(e,t){return e&&c.setHoverId(t)}}),f.length){var b=f.filter((function(e){var t;return!e.isRegion&&!1!==(null===(t=e.info)||void 0===t?void 0:t.editable)})).reverse().map((function(e){return{label:e.label,data:e.id,onSelect:function(e){return c.setActiveId(e)},onHighlight:function(e,t){return e&&c.setHoverId(t)}}}));b.length&&t.push({label:"选中层级",children:b})}t.push({label:"取消选中",disabled:!c.activeId||c.activeId!==i,onSelect:function(){return c.setActiveId("")}}),t.push("|"),t.push({label:"重复一份",disabled:!p.duplicatable,onSelect:function(){return u.duplicate(i)}}),t.push({label:"复制配置",onSelect:function(){return u.copy(i)}}),t.push({label:"剪切配置",disabled:!p.removable,onSelect:function(){return u.cut(i)}}),t.push({label:"粘贴配置",disabled:!Array.isArray(d)||!p.parent||!1===(null===(n=p.info)||void 0===n?void 0:n.typeMutable)||!p.replaceable,onSelect:function(){return u.paste(i)}}),t.push({label:"删除",disabled:!p.removable,className:"text-danger",onSelect:function(){return u.del(i)}}),t.push("|");var g=Array.isArray(d)?d.indexOf(o):-1;t.push({label:"向前移动",disabled:!(Array.isArray(d)&&g>0&&p.moveable&&p.prevSibling),onSelect:function(){return u.moveUp()}}),t.push({label:"向后移动",disabled:!(Array.isArray(d)&&g<d.length-1&&p.moveable&&p.nextSibling),onSelect:function(){return u.moveDown()}}),t.push({label:"前面插入节点",disabled:!Array.isArray(d)||!v||!v.isRegion||!h||h.memberImmutable(v.region)||!c.panels.some((function(e){return"renderers"===e.key})),onSelect:function(){return r.manager.showInsertPanel(v.region,v.id,v.preferTag,"insert",void 0,i)}}),t.push({label:"后面插入节点",disabled:!Array.isArray(d)||!v||!v.isRegion||!h||h.memberImmutable(v.region)||!c.panels.some((function(e){return"renderers"===e.key})),onSelect:function(){var e;return r.manager.showInsertPanel(v.region,v.id,v.preferTag,"insert",void 0,null===(e=d[g+1])||void 0===e?void 0:e.$$id)}}),t.push("|"),t.push({label:"撤销(Undo)",disabled:!c.canUndo,onSelect:function(){return c.undo()}}),t.push({label:"重做(Redo)",disabled:!c.canRedo,onSelect:function(){return c.redo()}}),t.push("|");var y=c.panels.find((function(e){return"renderers"===e.key}));m.childRegions.length&&y&&(m.childRegions.length>1?t.push({label:"插入组件",children:m.childRegions.map((function(e){return{label:""+e.label,data:e.region,onHighlight:function(e,t){return e?c.setHoverId(i,t):c.setHoverId("")},onSelect:function(e){return u.showInsertPanel(e,i)}}}))}):t.push({label:"插入组件",data:m.childRegions[0].region,onHighlight:function(e,t){return e?c.setHoverId(i,t):c.setHoverId("")},onSelect:function(e){return u.showInsertPanel(e,i)}})),t.push({label:"更改类型",disabled:!(p.host&&!1!==(null===(a=p.info)||void 0===a?void 0:a.typeMutable)&&p.parent.isRegion&&c.panels.some((function(e){return"renderers"===e.key}))&&p.replaceable),onSelect:function(){return u.showReplacePanel(i)}})}},t.prototype.buildEditorPanel=function(e,t){if(e.selections.length){var n=[],r=(0,a.__assign)((0,a.__assign)({},e),{data:n,region:""});(n=this.manager.buildContextMenus(r)).length&&t.push({key:"contextmenu",icon:"fa fa-cog",title:"操作",render:this.manager.makeSchemaFormRender({body:[{type:"button-group",block:!0,buttons:n.filter((function(e){return"|"!==e})).map((function(e){return(0,a.__assign)((0,a.__assign)({},e),{type:"button",onClick:e.onSelect})}))}]})})}},t.prototype.afterInsert=function(e){var t,n,a=this,r=e.context;if(r.node&&(null===(n=null===(t=r.subRenderer)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)){var i=r.data.$$id;i&&setTimeout((function(){a.manager.setActiveId(i),requestAnimationFrame((function(){a.manager.openNodePopOverForm(i)}))}),200)}},t}(r.BasePlugin);t.BasicToolbarPlugin=l,(0,i.registerEditorPlugin)(l)},2029:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BreadcrumbPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="breadcrumb",t.$schema="/schemas/BreadcrumbSchema.json",t.name="面包屑",t.icon="fa fa-list",t.description="面包屑导航",t.docLink="/amis/zh-CN/components/breadcrumb",t.tags=["其他"],t.scaffold={type:"breadcrumb",items:[{label:"首页",href:"/",icon:"fa fa-home"},{label:"上级页面"},{label:"<b>当前页面</b>"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="面包屑",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"分隔符",type:"input-text",name:"separator"},(0,o.getSchemaTpl)("api",{label:"动态数据",name:"source"}),{label:"面包屑",name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增",items:[{type:"input-text",placeholder:"文本",name:"label"},{type:"input-text",name:"href",placeholder:"链接"},{name:"icon",label:"图标",type:"icon-picker"}]}]},{title:"外观",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{name:"itemClassName",label:"面包屑的 CSS 类名"}),,(0,o.getSchemaTpl)("className",{name:"separatorClassName",label:"分隔符的 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.BreadcrumbPlugin=l,(0,r.registerEditorPlugin)(l)},6460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button",t.$schema="/schemas/ActionSchema.json",t.name="按钮",t.description="用来展示一个按钮,你可以配置不同的展示样式,配置不同的点击行为。",t.docLink="/amis/zh-CN/components/action",t.tags=["按钮"],t.icon="fa fa-square",t.scaffold={type:"button",label:"按钮",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},t.previewSchema={type:"button",label:"按钮"},t.panelTitle="按钮",t.panelBodyCreator=function(e){/(?:\/|^)dialog\/.+$/.test(e.path);var t=/(?:\/|^)dropdown-button\/.+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"名称",type:"input-text",name:"label"},{label:"类型",type:"button-group-select",name:"type",size:"sm",options:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}]},{type:"input-text",name:"tooltip",hidden:t,label:"提示文案",description:"鼠标停留时弹出该内容"},{type:"button-group-select",name:"tooltipPlacement",visibleOn:"data.tooltip || data.disabledTip",label:"提示信息位置",size:"sm",mode:"inline",className:"w-full",value:"bottom",options:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]},(0,o.getSchemaTpl)("icon"),{type:"button-group-select",label:"图标位置",clearable:!0,visibleOn:"this.icon",name:"iconClassName",size:"sm",pipeIn:function(e){return"string"==typeof e&&/\bpull\-(left|right)\b/.test(e)?RegExp.$1:""},pipeOut:function(e,t){return(t||"").replace(/\bpull\-(left|right)\b/,"").trim()+e?"pull-"+e:""},options:[{label:"居左",value:"left"},{label:"居右",value:"right"}]},(0,o.getSchemaTpl)("size",{label:"尺寸"}),{label:"样式",type:"select",name:"level",hidden:t,clearable:!1,btnActiveLevel:"",options:[{label:"默认",value:"default",level:"default"},{label:"链接",value:"link",level:"link"},{label:"主色",value:"primary",level:"primary"},{label:"淡色",value:"light",level:"light"},{label:"深色",value:"dark",level:"dark"},{label:"提示",value:"info",level:"info"},{label:"成功",value:"success",level:"success"},{label:"警告",value:"warning",level:"warning"},{label:"严重",value:"danger",level:"danger"}]},{name:"block",type:"switch",label:"块状显示",mode:"inline"},(0,o.getSchemaTpl)("className",{label:"按钮 CSS 类名"}),(0,o.getSchemaTpl)("className",{name:"iconClassName",label:"图标 CSS 类名",visibleOn:"this.icon"})]},{title:"其他",body:[(0,o.getSchemaTpl)("disabled",[{type:"input-text",name:"disabledTip",label:"禁用提示信息",hidden:t,description:"按钮被禁用时,鼠标停留弹出该段文字"}]),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return e.disabled=!1,e},t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,a=this;if(n.$$id&&a.name&&a.rendererName&&a.rendererName===t.name)return{name:n.label?n.label:a.name,regions:a.regions,patchContainers:a.patchContainers,vRendererConfig:a.vRendererConfig,wrapperProps:a.wrapperProps,wrapperResolve:a.wrapperResolve,filterProps:a.filterProps,$schema:a.$schema,renderRenderer:a.renderRenderer}},t}(i.BasePlugin);t.ButtonPlugin=l,(0,r.registerEditorPlugin)(l)},4930:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-group",t.$schema="/schemas/ButtonGroupSchema.json",t.name="按钮组",t.description="用来展示多个按钮,视觉上会作为一个整体呈现。",t.tags=["按钮"],t.icon="fa fa-object-group",t.docLink="/amis/zh-CN/components/button-group",t.scaffold={type:"button-group",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="按钮组",t.panelBody=[{name:"buttons",type:"combo",label:"按钮管理",multiple:!0,addable:!0,minLength:1,draggable:!0,draggableTip:"",editable:!1,visibleOn:"this.buttons && this.buttons.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<span class="label label-default"><% if (data.type === "button-group") { %> 按钮组 <% } else { %><%= data.label %><% if (data.icon) { %><i class="<%= data.icon %>"/><% }%><% } %></span>'}],addButtonText:"新增按钮",scaffold:{type:"button",label:"按钮"}}],t.regions=[{key:"buttons",label:"子按钮",renderMethod:"render",preferTag:"按钮",insertPosition:"inner"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ButtonGroupPlugin=i,(0,r.registerEditorPlugin)(i)},1838:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonToolbarPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-toolbar",t.$schema="/schemas/ButtonToolbarSchema.json",t.name="按钮工具栏",t.description="可以用来放置多个按钮或者按钮组,按钮之间会存在一定的间隔",t.tags=["按钮"],t.icon="fa fa-ellipsis-h",t.scaffold={type:"button-toolbar",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="按钮工具栏",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"buttons",type:"combo",label:"按钮管理",multiple:!0,addable:!0,draggable:!0,draggableTip:"可排序、可移除、如要编辑请在预览区选中编辑",editable:!1,visibleOn:"this.buttons && this.buttons.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<span class="label label-default"><% if (data.type === "button-group") { %> 按钮组 <% } else { %><%= data.label %><% if (data.icon) { %><i class="<%= data.icon %>"/><% }%><% } %></span>'}],addButtonText:"新增按钮",scaffold:{type:"button",label:"按钮"}}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ButtonToolbarPlugin=l,(0,r.registerEditorPlugin)(l)},6062:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CRUDPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(1712)),o=(0,a.__importDefault)(n(9591)),l=(0,a.__importDefault)(n(6689)),s=n(9756),u=n(9933),c=n(9547),d=n(3570),p=n(3893),f=n(2717),m=function(e){return"tpl"===e?"input-text":"status"===e||"mapping"===e?"select":"input-"+e},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="crud",t.$schema="/schemas/CRUDSchema.json",t.order=-1e3,t.name="增删改查(API)",t.description="用来实现对数据的增删改查,支持三种模式展示:table、cards和list. 负责数据的拉取,分页,单条操作,批量操作,排序,快速编辑等等功能。集成查询条件。",t.docLink="/amis/zh-CN/components/crud",t.tags=["功能","容器"],t.icon="fa fa-table",t.scaffold={type:"crud",api:"",columns:[{name:"id",label:"ID",type:"text"},{name:"engine",label:"渲染引擎",type:"text"}],bulkActions:[],itemActions:[]},t.sampleBuilder=function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)},t.btnSchemas={create:{label:"新增",type:"button",actionType:"dialog",level:"primary",dialog:{title:"新增",body:{type:"form",api:"xxx/create",body:[]}}},update:{label:"编辑",type:"button",actionType:"dialog",level:"link",dialog:{title:"编辑",body:{type:"form",api:"xxx/update",body:[]}}},view:{label:"查看",type:"button",actionType:"dialog",level:"link",dialog:{title:"查看详情",body:{type:"form",api:"xxx/update",body:[]}}},delete:{type:"button",label:"删除",actionType:"ajax",level:"link",className:"text-danger",confirmText:"确定要删除?",api:"delete:/xxx/delete"},bulkDelete:{type:"button",level:"danger",label:"批量删除",actionType:"ajax",confirmText:"确定要删除?",api:"/xxx/batch-delete"},bulkUpdate:{type:"button",label:"批量编辑",actionType:"dialog",dialog:{title:"批量编辑",size:"md",body:{type:"form",api:"/xxx/bacth-edit",body:[{label:"字段1",text:"字段1",type:"input-text"}]}}},filter:{title:"查询条件",body:[{type:"input-text",name:"keywords",label:"关键字"}]}},t.scaffoldForm={title:"增删改查快速开始-CRUD",body:[(0,c.getSchemaTpl)("api",{label:"接口地址",sampleBuilder:function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)}}),{type:"button",label:"格式校验并自动生成列配置",className:"m-t-xs m-b-xs",onClick:function(e,n){var i=n.store,o=n.data,l=(0,f.getEnv)(window.editorStore).schemaFilter,s="${api | raw}";l&&(s=l({api:o.api}).api);var u={actionType:"ajax",api:s};i.setCurrentAction(u),i.saveRemote(u.api,n.data).then((function(e){return(0,a.__awaiter)(t,void 0,void 0,(function(){var t,i;return(0,a.__generator)(this,(function(a){return t=[],(null==(i=e.rows||e.items)?void 0:i.length)?(Object.keys(i[0]).forEach((function(e){i[0][e],t.push({label:e,type:"text",name:e})})),n.formStore.setValues({columns:t}),n.formStore.setValues({filterSettingSource:t.map((function(e){return e.name}))})):r.toast.warning('API返回格式不正确,请查看上方API示例右侧问号核对。您还可以参照<code><a target="_blank" href="//baidu.gitee.io/amis/zh-CN/docs/types/api">API配置</a>或者<a href="https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample" target="_blank">样例API</a>修改。</code>'),[2]}))}))})).catch((function(e){n.formStore.setValues({errorMsg:e})}))}},{name:"features",label:"启用功能",type:"checkboxes",joinValues:!1,extractValue:!0,itemClassName:"max-w-lg",options:[{label:"新增",value:"create"},{label:"查询",value:"filter"},{label:"批量删除",value:"bulkDelete"},{label:"批量修改",value:"bulkUpdate"},{label:"操作栏-编辑",value:"update"},{label:"操作栏-查看详情",value:"view"},{label:"操作栏-删除",value:"delete"}]},{type:"divider",visibleOn:'data.features && data.features.includes("filter")'},{type:"checkboxes",label:"启用的查询字段",name:"filterEnabledList",joinValues:!1,source:"${filterSettingSource}",visibleOn:'data.features && data.features.includes("filter")'},{type:"divider",visibleOn:'data.features && data.features.includes("filter")'},{name:"columns",type:"input-table",label:!1,addable:!0,editable:!0,removable:!0,columns:[{type:"input-text",name:"label",label:"标题"},{type:"input-text",name:"name",label:"绑定字段名"},{type:"select",name:"type",label:"类型",value:"text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],pipeOut:function(e){var n=(0,o.default)(e),r=n.features,l={type:"operation",label:"操作",buttons:[]},s=["update","view","delete"],u=(0,i.default)(r,"length");n.bulkActions=[],u&&r.forEach((function(r){if(s.includes(r)){var i=void 0;"update"===r?(i=(0,o.default)(t.btnSchemas.update)).dialog.body.body=e.columns.filter((function(e){var t=e.type;return"progress"!==t&&"operation"!==t})).map((function(e){var t=e.type,n=(0,a.__rest)(e,["type"]);return(0,a.__assign)((0,a.__assign)({},n),{type:m(t)})})):"view"===r?(i=(0,o.default)(t.btnSchemas.view)).dialog.body.body=e.columns.map((function(e){e.type;var t=(0,a.__rest)(e,["type"]);return(0,a.__assign)((0,a.__assign)({},t),{type:"static"})})):"delete"===r&&((i=(0,o.default)(t.btnSchemas.delete)).api="POST:"+n.api),t.addItem(l.buttons,i)}else{if("bulkUpdate"===r&&t.addItem(n.bulkActions,(0,o.default)(t.btnSchemas.bulkUpdate)),"bulkDelete"===r&&t.addItem(n.bulkActions,(0,o.default)(t.btnSchemas.bulkDelete)),"create"===r){var u=t.btnSchemas.create;u.dialog.body={type:"form",api:"POST:"+n.api,body:n.columns.map((function(e){var t=e.type;return{type:m(t),name:e.name,label:e.label}}))},n.headerToolbar=[u,"bulkActions","pagination"]}var c=Object.keys(n.filter||{});"filter"!==r||c.length||n.filterEnabledList&&(n.filter={title:"查询条件"},n.filter.body=n.filterEnabledList.map((function(e){return{type:"input-text",label:e.label,name:e.value}})))}}));var c=n.columns.find((function(e){return"operation"===e.type}));return u&&!c&&n.columns.push(l),n},canRebuild:!0},t.multifactor=!0,t.previewSchema={syncLocation:!1,type:"crud",className:"text-left",bodyClassName:"m-b-none",affixHeader:!1,data:{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]},source:"${items}",columns:[{label:"A",name:"a"},{label:"B",name:"b"},{type:"operation",label:"操作",buttons:[{icon:"fa fa-eye",type:"button"},{icon:"fa fa-edit",type:"button"}]}]},t.panelTitle="增删改查",t.panelBodyCreator=function(e){t.manager.store;var n=e.id;return(0,c.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"filter",type:"switch",mode:"inline",className:"block",label:"启用查询条件",pipeIn:function(e){return!!e},pipeOut:function(e,n){return e?t.oldFilter||(0,d.JSONPipeIn)({title:"查询条件",body:[{type:"input-text",name:"keywords",label:"关键字"}]}):(t.oldFilter=n,null)}},{type:"divider"},{label:"批量操作",name:"bulkActions",type:"combo",hiddenOn:"data.pickerMode && data.multiple",inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,draggableTip:"",scaffold:{label:"按钮",type:"button"},labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"通过此可以管理批量操作按钮,只有设置了批量操作按钮才会出现选择框,可在外观中配置批量操作按钮位置。",placement:"left"},items:[{type:"tpl",tpl:'<span class="label label-success">${label}</span>',columnClassName:"p-t-xs"},{columnClassName:"p-t-xs col-edit",children:function(e){var a=e.index;return l.default.createElement("button",{onClick:t.handleBulkActionEdit.bind(t,n,a),"data-tooltip":"修改","data-position":"bottom",className:"text-muted"},l.default.createElement("i",{className:"fa fa-pencil"}))}}]},{type:"divider"},{label:"单条操作",name:"itemActions",type:"combo",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置后,当鼠标悬停行数据上,会出现该操作按钮,同时顶部操作栏也会显示该按钮,勾选成员时与批量按钮智能切换。",placement:"left"},hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode',inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,scaffold:{label:"按钮",type:"button"},items:[{type:"tpl",tpl:'<span class="label label-success">${label}</span>',columnClassName:"p-t-xs"},{type:"checkbox",className:"text-xs",option:"悬停隐藏",name:"hiddenOnHover"},{columnClassName:"p-t-xs col-edit",children:function(e){var a=e.index;return l.default.createElement("button",{onClick:t.handleItemActionEdit.bind(t,n,a),"data-tooltip":"修改","data-position":"bottom",className:"text-muted"},l.default.createElement("i",{className:"fa fa-pencil"}))}}]},{type:"divider",hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode'},{name:"syncLocation",label:"同步地址栏",type:"switch",mode:"inline",className:"block",pipeIn:(0,c.defaultValue)(!0),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后会把查询条件数据和分页信息同步到地址栏中,页面中出现多个时,建议只保留一个同步地址栏,否则会相互影响。",placement:"left"}},{label:"默认参数",type:"combo",name:"defaultParams",multiple:!0,labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"可以用来设置默认参数,比如 <code>perPage:20</code>",placement:"left"},pipeIn:function(e){if(!(0,d.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){"$$id"!=n&&t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0},{placeholder:"Value",type:"input-text",name:"value"}]},{type:"divider"},{name:"keepItemSelectionOnPageChange",label:"保留条目选择",type:"switch",mode:"inline",className:"block",visbileOn:"this.bulkActions && this.bulkActions.length || this.itemActions && this.itemActions.length",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"默认分页、搜索后,用户选择条目会被清空,开启此选项后会保留用户选择,可以实现跨页面批量操作。",placement:"left"}},{name:"labelTpl",type:"input-text",label:"单条描述模板",visibleOn:"this.keepItemSelectionOnPageChange",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启【保留条目选择】后会把所有已选择条目列出来,此选项可以用来定制条目展示文案。",placement:"left"}},{name:"primaryField",label:"指定主键",type:"input-text",pipeIn:(0,c.defaultValue)("id"),description:"默认<code>id</code>,用于批量操作获取行级数据"}]},{title:"接口",body:[(0,c.getSchemaTpl)("api",{label:"数据拉取接口",sampleBuilder:function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)}}),{name:"initFetch",type:"radios",label:"是否初始拉取",pipeIn:function(e){return"boolean"==typeof e&&e||"boolean"!=typeof e&&""},inline:!0,onChange:function(){document.getElementsByClassName("ae-Settings-content")[0].scrollTop=0},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetch",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"用 JS 表达式来决定",className:"m-t-n-sm"},{name:"loadDataOnce",label:"一次性拉取",type:"switch",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,数据只会在初始的时候拉取,后续分页、排序不再请求接口,都由前端直接完成。",placement:"left"}},{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.api",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline",className:"block"},{name:"interval",type:"input-number",visibleOn:'typeof data.interval === "number"',step:500,className:"m-t-n-sm",description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{name:"stopAutoRefreshWhenModalIsOpen",label:"当有弹框时关闭自动刷新",type:"switch",visibleOn:"!!data.interval",mode:"inline",className:"block",description:"弹框打开关闭自动刷新,关闭弹框又恢复"},{type:"divider"},{name:"draggable",label:"是否可拖拽排序",type:"switch",mode:"inline",className:"block"},(0,c.getSchemaTpl)("api",{label:"顺序保存接口",name:"saveOrderApi",visibleOn:"data.draggable"}),{type:"divider"},(0,c.getSchemaTpl)("api",{label:"快速保存接口",name:"quickSaveApi",description:"当 column 中设置了快速编辑后将使用此接口批量保存数据。"}),{type:"divider"},(0,c.getSchemaTpl)("api",{label:"快速保存单条接口",name:"quickSaveItemApi",description:"当 column 中设置了快速编辑且设置了立即保存,将使用此接口保存数据。"}),{type:"divider"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"覆盖消息提示,如果不指定,将采用 api 返回的 message",items:[{label:"获取成功提示",type:"input-text",name:"fetchSuccess"},{label:"获取失败提示",type:"input-text",name:"fetchFailed"},{label:"保存顺序成功提示",type:"input-text",name:"saveOrderSuccess"},{label:"保存顺序失败提示",type:"input-text",name:"saveOrderFailed"},{label:"快速保存成功提示",type:"input-text",name:"quickSaveSuccess"},{label:"快速保存失败提示",type:"input-text",name:"quickSaveFailed"}]}]},{title:"外观",body:[{label:"内容展示模式",name:"mode",type:"button-group-select",size:"xs",pipeIn:function(e,t){var n;return null!==(n="grid"===e?"cards":e)&&void 0!==n?n:"table"},onChange:function(e,t,n,a){var r,i,l,s,u,c,d=null===(i=null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.headerToolbar)||void 0===i?void 0:i.some((function(e){return"columns-toggler"===e.type})),p=(0,o.default)(null===(l=null==a?void 0:a.data)||void 0===l?void 0:l.headerToolbar);"table"!==e&&"table"===t&&(c=(null==p?void 0:p.find((function(e){return"columns-toggler"===e.type})))||{type:"columns-toggler",align:"right"},a.setValues({__headerHasColumnsToggler:d})),p="table"===e?p:null==p?void 0:p.filter((function(e){return"columns-toggler"!==e.type})),"table"===e?((null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.__headerHasColumnsToggler)&&!d&&(null==p||p.push((null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.__cacheColumnsToggler)||{type:"columns-toggler",align:"right"})),a.setValues({headerToolbar:p,columns:a.data.__columns||[{label:"ID",name:"id"},{label:"列信息",name:"name"}],__headerHasColumnsToggler:d,__card:a.data.card||a.data.__card,__listItem:a.data.listItem||a.data.__listItem}),a.deleteValueByName("card"),a.deleteValueByName("listItem")):"cards"===e?("table"===t&&a.setValues({__cacheColumnsToggler:c}),a.setValues({headerToolbar:p,card:a.data.__card||{type:"card",header:{title:"标题",subTitle:"副标题"},body:[{name:"a",label:"A"},{name:"b",label:"B"}],actions:[{label:"详情",type:"button"}]},__columns:a.data.columns||a.data.__columns,__listItem:a.data.listItem||a.data.__listItem}),a.deleteValueByName("columns"),a.deleteValueByName("listItem")):("table"===t&&a.setValues({__cacheColumnsToggler:c}),a.setValues({headerToolbar:p,listItem:a.data.__listItem||{body:[{type:"tpl",tpl:"简单的展示数据:$a $b"}],actions:[{icon:"fa fa-eye",type:"button"}]},__columns:a.data.columns||a.data.__columns,__card:a.data.card||a.data.__card}),a.deleteValueByName("columns"),a.deleteValueByName("card"))},options:[{value:"table",label:"表格"},{value:"cards",label:"卡片"},{value:"list",label:"列表"}]},{name:"headerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:"非内建内容请在预览区选中后编辑",label:"顶部工具栏配置",pipeIn:function(e){return Array.isArray(e)||(e=e?[e]:["bulkActions","pagination"]),e.map((function(e){var t=e.type;return"string"==typeof e&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(e)?e={type:t="bulkActions"===e?"bulk-actions":e}:"string"==typeof e&&(t="tpl",e="string"==typeof e?{type:"tpl",tpl:e}:e),(0,a.__assign)({type:t},e)}))},pipeOut:function(e){return Array.isArray(e)?e.map((function(e){return"button"===e.type?(0,d.JSONPipeIn)((0,a.__assign)({label:"按钮",type:"button"},e)):"tpl"===e.type?(0,d.JSONPipeIn)((0,a.__assign)({type:"tpl",tpl:"内容"},e)):e})):[]},scaffold:{type:"tpl",tpl:"内容"},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",options:[{value:"bulk-actions",label:"操作栏"},{value:"pagination",label:"分页"},{value:"statistics",label:"统计数据"},{value:"switch-per-page",label:"切换页码"},{value:"load-more",label:"加载更多"},{value:"export-csv",label:"导出 CSV"},{value:"export-excel",label:"导出 Excel"},{value:"columns-toggler",label:"列选择器",visibleOn:'!this.mode || this.mode === "table"'},{value:"filter-toggler",label:"查询条件切换"},{value:"drag-toggler",label:"拖拽切换"},{value:"check-all",label:"全选",hiddenOn:'!this.mode || this.mode === "table"'},{value:"tpl",label:"文本"},{value:"button",label:"按钮"}]},{name:"align",placeholder:"对齐方式",type:"select",size:"xs",options:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}]},{name:"footerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:"非内建内容请在预览区选中后编辑",label:"底部工具栏配置",pipeIn:function(e){return Array.isArray(e)||(e=e?[e]:["bulkActions","pagination"]),e.map((function(e){var t=e.type;return"string"==typeof e&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(e)?e={type:t="bulkActions"===e?"bulk-actions":e}:"string"==typeof e&&(t="tpl",e="string"==typeof e?{type:"tpl",tpl:e}:e),(0,a.__assign)({type:t},e)}))},pipeOut:function(e){return Array.isArray(e)?e.map((function(e){return"button"===e.type?(0,d.JSONPipeIn)((0,a.__assign)({label:"按钮",type:"button"},e)):"tpl"===e.type?(0,d.JSONPipeIn)((0,a.__assign)({type:"tpl",tpl:"内容"},e)):e})):[]},scaffold:{type:"tpl",tpl:"内容"},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",options:[{value:"bulk-actions",label:"操作栏"},{value:"pagination",label:"分页"},{value:"statistics",label:"统计数据"},{value:"switch-per-page",label:"切换页码"},{value:"load-more",label:"加载更多"},{value:"export-csv",label:"导出 CSV"},{value:"export-excel",label:"导出 Excel"},{value:"columns-toggler",label:"列选择器",hiddenOn:'["grid", "cards", "list"].indexOf(this.mode)'},{value:"filter-toggler",label:"查询条件切换"},{value:"drag-toggler",label:"拖拽切换"},{value:"check-all",label:"全选",hiddenOn:'!this.mode || this.mode === "table"'},{value:"tpl",label:"文本"},{value:"button",label:"按钮"}]},{name:"align",placeholder:"对齐方式",size:"xs",type:"select",options:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]},{type:"remark",content:"详情请在预览区域选中后进行编辑。",trigger:["click"],rootClose:!0,placement:"left",visibleOn:'!~["bulkActions", "drag-toggler", "check-all", "bulk-actions", "pagination", "statistics", "switch-per-page", "filter-toggler", "load-more", "export-csv", "export-excel"].indexOf(this.type)',columnClassName:"no-grow w-3x p-t-xs",className:"m-l-none"}]},{name:"filterTogglable",type:"switch",label:"是否可显隐查询条件",mode:"inline",className:"block",visibleOn:"data.filter"},{name:"filterDefaultVisible",type:"switch",label:"查询条件默认是否可见",pipeIn:(0,c.defaultValue)(!0),mode:"inline",className:"block",visibleOn:"data.filter && data.filterTogglable"},{name:"hideQuickSaveBtn",label:"隐藏顶部快速保存提示",type:"switch",mode:"inline",className:"block"},{name:"alwaysShowPagination",label:"是否总是显示分页",type:"switch",mode:"inline",className:"block"},{name:"hideCheckToggler",type:"switch",label:"隐藏选择按钮",mode:"inline",className:"block",visibleOn:"data.checkOnItemClick"},(0,c.getSchemaTpl)("className"),(0,c.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]},{title:"其他",body:[(0,c.getSchemaTpl)("ref"),{name:"source",label:"数据源",type:"input-text",description:"不填写,默认读取接口返回的 items 或者 rows 属性,如果是别的,请在此设置,如: <code>\\${xxxx}</code>"},{name:"perPage",label:"每页数量",type:"input-number"},{name:"keepItemSelectionOnPageChange",label:"翻页时保留选择",type:"switch",mode:"inline",className:"block"},{name:"maxKeepItemSelectionLength",label:"最大选择数量",type:"input-number",mode:"inline",className:"block"},{name:"pageField",label:"页码字段名",type:"input-text",pipeIn:(0,c.defaultValue)("page")},{name:"perPageField",label:"分页步长字段名",type:"input-text",pipeIn:(0,c.defaultValue)("perPage")},{name:"orderField",label:"排序权重字段",type:"input-text",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。",placement:"left"}},{name:"perPageAvailable",label:"切换每页数",type:"input-array",hiddenOn:"data.loadDataOnce",items:{type:"input-number",required:!0},value:[10]},(0,c.getSchemaTpl)("name"),{name:"itemCheckableOn",type:"input-text",label:"配置单条可选中的表达式",description:"请使用 js 表达式,不设置的话每条都可选中。",visibleOn:"data.bulkActions && data.bulkActions.length || data.pickerMode"},{name:"checkOnItemClick",type:"switch",label:"开启单条点击整个区域选中",mode:"inline",className:"block",visibleOn:"data.bulkActions && data.bulkActions.length || data.pickerMode"},{name:"autoJumpToTopOnPagerChange",type:"switch",label:"自动跳顶部",mode:"inline",className:"block",description:"当切分页的时候,是否自动跳顶部"},{name:"syncResponse2Query",type:"switch",label:"同步查询条件",mode:"inline",className:"block",description:"查询后将返回的数据同步到查询条件上"}]}])},t.wrapperProps={affixHeader:!1},t}return(0,a.__extends)(t,e),t.prototype.addItem=function(e,t){e.find((function(e){return e.label===t.label}))||e.push(t)},t.prototype.handleBulkActionEdit=function(e,t){var n=this.manager.store,a=n.getSchema(e),r=null==a?void 0:a.bulkActions[t];r&&r.$$id&&n.setActiveId(r.$$id)},t.prototype.handleItemActionEdit=function(e,t){var n=this.manager.store,a=n.getSchema(e),r=null==a?void 0:a.itemActions[t];r&&r.$$id&&n.setActiveId(r.$$id)},t.prototype.buildSubRenderers=function(e,t){var n=this;if(n.name&&n.description)return{name:n.name,icon:n.icon,description:n.description,previewSchema:n.previewSchema,tags:n.tags,docLink:n.docLink,type:n.type,scaffold:n.scaffold,scaffoldForm:this.scaffoldForm}},t.prototype.getRendererInfo=function(t){var n=e.prototype.getRendererInfo.call(this,t);return n&&(n.scaffoldForm=this.scaffoldForm),n},t.prototype.renderEditableComponents=function(e){var t=e.render,n=e.bulkActions,r=e.itemActions,i=[];return Array.isArray(n)&&n.length&&i.push(l.default.createElement("div",{key:"bulkActions",className:"ae-EditableRender"},l.default.createElement("div",{className:"ae-EditableRender-title"},"批量操作"),l.default.createElement("div",{className:"ae-EditableRender-body"},n.map((function(e){return t("bulk-action",(0,a.__assign)({type:"button",size:"sm"},e),{key:e.$$id})}))))),Array.isArray(r)&&r.length&&i.push(l.default.createElement("div",{key:"itemActions",className:"ae-EditableRender"},l.default.createElement("div",{className:"ae-EditableRender-title"},"单条操作"),l.default.createElement("div",{className:"ae-EditableRender-body"},r.map((function(e){return t("bulk-action",(0,a.__assign)({type:"button",size:"sm"},e),{key:e.$$id})}))))),i.length?l.default.createElement("div",{className:"ae-EditableRenderers"},l.default.createElement("div",{className:"ae-EditableRenderers-tip"},"「增删改查」编辑辅助区"),i):null},t.prototype.renderRenderer=function(e){var t=e.$$editor.renderer;return l.default.createElement("div",{className:"ae-CRUDEditor"},this.renderEditableComponents(e),l.default.createElement(t.component,(0,a.__assign)({},e)))},t.prototype.filterProps=function(e){return e.pickerMode&&(e.options=e.data.options),e},t.prototype.afterUpdate=function(e){var t,n=this,a=e.context;a.info.plugin===this&&(null===(t=a.diff)||void 0===t?void 0:t.some((function(e){var t;return"mode"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})))&&setTimeout((function(){n.manager.buildPanels(),n.manager.buildToolbars()}),20)},t}(u.BasePlugin);t.CRUDPlugin=h,(0,s.registerEditorPlugin)(h)},1663:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=(0,a.__importDefault)(n(8579)),c=n(5863),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="card",t.$schema="/schemas/CardSchema.json",t.name="卡片",t.description="展示单个卡片。",t.tags=["展示"],t.icon="",t.scaffold={type:"card",header:{title:"标题",subTitle:"副标题"},body:"内容",actions:[{type:"button",label:"按钮",actionType:"dialog",dialog:{title:"标题",body:"内容"}}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",preferTag:"展示"},{key:"actions",label:"按钮组",renderMethod:"renderActions",wrapperResolve:function(e){return e},preferTag:"按钮"}],t.panelTitle="卡片",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:(0,u.default)([{children:i.default.createElement(r.Button,{size:"sm",className:"m-b-sm",level:"info",block:!0,onClick:function(){return t.manager.showInsertPanel("actions",e.id)}},"新增按钮")},{children:i.default.createElement("div",null,i.default.createElement(r.Button,{block:!0,level:"primary",size:"sm",onClick:function(){return t.manager.showInsertPanel("body",e.id)}},"新增内容"))},{type:"divider"},{name:"header.title",type:"input-text",label:"标题",description:"支持模板语法如: <code>\\${xxx}</code>"},{name:"header.subTitle",type:"input-text",label:"副标题",description:"支持模板语法如: <code>\\${xxx}</code>"},{name:"header.avatar",type:"input-text",label:"图片地址",description:"支持模板语法如: <code>\\${xxx}</code>"},{name:"header.desc",type:"textarea",label:"描述",description:"支持模板语法如: <code>\\${xxx}</code>"},{name:"header.highlight",type:"input-text",label:"是否高亮表达式",description:"如: <code>this.isOwner</code>"}])},{title:"外观",body:[{type:"input-range",name:"actionsCount",pipeIn:(0,s.defaultValue)(4),min:1,max:10,step:1,label:"卡片一行最多能放按钮个数"},(0,s.getSchemaTpl)("className",{name:"titleClassName",label:"标题 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"highlightClassName",label:"高亮 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"subTitleClassName",label:"副标题 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"descClassName",label:"描述 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"avatarClassName",label:"图片外层 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"imageClassName",label:"图片 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"bodyClassName",label:"内容区 CSS 类名"}),(0,s.getSchemaTpl)("className")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])]},t.fieldWrapperResolve=function(e){return e},t.overrides={renderFeild:function(e,t,n,a){var r=this.super(e,t,n,a),o=this.props.$$editor;if(!o||!t.$$id)return r;var l=o.plugin,s=t.$$id;return i.default.createElement(c.VRenderer,{plugin:o.plugin,renderer:o.renderer,multifactor:!0,key:s,$schema:"/schemas/CardBodyField.json",hostId:o.id,memberIndex:n,name:"字段"+(n+1),id:s,draggable:!1,wrapperResolve:l.fieldWrapperResolve,schemaPath:o.schemaPath+"/body/"+n,path:this.props.$path+"/"+n,data:this.props.data},r)}},t.vRendererConfig={panelTitle:"字段",panelBodyCreator:function(e){return[(0,s.getSchemaTpl)("label"),(0,s.getSchemaTpl)("className",{name:"labelClassName",label:"Label CSS 类名",visibleOn:"this.label"}),{children:i.default.createElement(r.Button,{size:"sm",level:"info",className:"m-b",block:!0,onClick:t.exchangeRenderer.bind(t,e.id)},"更改渲染器类型")}]}},t}return(0,a.__extends)(t,e),t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e,"展示")},t.prototype.beforeInsert=function(e){var t,n,r,i,o=e.context;o.info.plugin!==this&&(null===(t=o.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"body"!==o.region||(o.data=(0,a.__assign)((0,a.__assign)({},o.data),{label:null!==(i=null!==(n=o.data.label)&&void 0!==n?n:null===(r=o.subRenderer)||void 0===r?void 0:r.name)&&void 0!==i?i:"列名称"}))},t}(l.BasePlugin);t.CardPlugin=d,(0,o.registerEditorPlugin)(d)},8863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardsPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="cards",t.$schema="/schemas/CardsSchema.json",t.name="卡片列表",t.description="功能类似于表格,但是用一个个小卡片来展示数据。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.tags=["展示"],t.icon="fa fa-window-maximize",t.scaffold={type:"cards",data:{items:[{a:1,b:2},{a:3,b:4}]},columnsCount:2,card:{type:"card",className:"m-b-none",header:{title:"标题",subTitle:"副标题"},body:[{name:"a",label:"A"},{name:"b",label:"B"}],actions:[{label:"详情",type:"button"}]}},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{className:"text-left "}),t.panelTitle="卡片集",t.panelBodyCreator=function(e){var n="crud"===e.schema.type;return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement("div",{className:"m-b"},i.default.createElement(r.Button,{level:"success",size:"sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置单项信息"))},{type:"divider"},{name:"title",type:"input-text",label:"标题"},{name:"href",type:"input-text",label:"打开外部链接"},n?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,s.defaultValue)("${items}"),description:"绑定当前环境变量",test:!n},{name:"placeholder",value:"暂无数据",type:"input-text",label:"无数据提示"}]},{title:"外观",body:[{name:"showHeader",type:"switch",mode:"inline",className:"block",label:"是否显示头部",pipeIn:(0,s.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"block",label:"是否显示底部",pipeIn:(0,s.defaultValue)(!0)},(0,s.getSchemaTpl)("className",{label:"CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"headerClassName",label:"头部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"footerClassName",label:"底部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"itemsClassName",label:"内容 CSS 类名"}),(0,s.getSchemaTpl)("className",{pipeIn:(0,s.defaultValue)("Grid-col--sm6 Grid-col--md4 Grid-col--lg3"),name:"itemClassName",label:"卡片 CSS 类名"}),{name:"columnsCount",type:"input-range",visibleOn:"!this.leftFixed",min:0,max:12,step:1,label:"每行显示个数",description:"不设置时,由卡片 CSS 类名决定"},{name:"masonryLayout",type:"switch",mode:"inline",label:"启用瀑布流"}]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置成员渲染器",value:(0,a.__assign)({type:"card"},i.card),slot:{type:"container",body:"$$"},typeMutable:!1,onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{card:e}),t.panelChangeValue(e,(0,u.diff)(i,e))},data:{item:"mocked data",index:0}})},t.prototype.buildEditorToolbar=function(e,t){var n=e.id,a=e.info,r=e.schema;("cards"===a.renderer.name||"crud"===a.renderer.name&&"cards"===r.mode)&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=e.schema,r=(e.region,e.info);("cards"===r.renderer.name||"crud"===r.renderer.name&&"cards"===a.mode)&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.filterProps=function(e){var t=(0,a.__assign)((0,a.__assign)({},e.defaultData),e.data),n=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,t):(0,r.resolveVariable)("${items}",t);Array.isArray(n)&&n.length||(e.value=(0,u.repeatArray)({id:666,title:"假数据",description:"假数据",a:"假数据",b:"假数据"},1).map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{id:t+1})})));var i=e.$schema,o=(0,a.__rest)(e,["$schema"]);return(0,a.__assign)((0,a.__assign)({},(0,u.JSONPipeOut)(o)),{$schema:i})},t.prototype.getRendererInfo=function(t){var n,r=this,i=t.renderer,o=t.schema;return o.$$id||"crud"!==(null===(n=o.$$editor)||void 0===n?void 0:n.renderer.name)||"cards"!==i.name?e.prototype.getRendererInfo.call(this,t):(0,a.__assign)((0,a.__assign)({},{id:o.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t}(l.BasePlugin);t.CardsPlugin=c,(0,o.registerEditorPlugin)(c)},8395:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CarouselPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="carousel",t.$schema="/schemas/CarouselSchema.json",t.name="轮播图",t.description="用来渲染轮播图,可以配置每一页的内容(不只是图片),可以配置过渡动画。",t.tags=["展示"],t.icon="fa fa-images",t.scaffold={type:"carousel",options:[{image:(0,l.mockValue)({type:"image"})},{html:'<div style="width: 100%; height: 300px; background: #e3e3e3; text-align: center; line-height: 300px;">carousel data</div>'},{image:(0,l.mockValue)({type:"image"})}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="轮播图",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:"数据源",name:"__mode",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"关联字段",value:1},{label:"静态设置",value:2}]},{label:"字段名",name:"name",type:"input-text",description:"设置字段名,关联当前数据作用域中的数据。",visibleOn:"this.__mode == 1"},{type:"combo",name:"options",visibleOn:"this.__mode == 2",label:"轮播选项内容",multiple:!0,multiLine:!0,addable:!0,removable:!0,typeSwitchable:!1,conditions:[{label:"图片",test:'this.type === "image"',items:[(0,o.getSchemaTpl)("imageUrl",{name:"content"}),{type:"input-text",label:"图片标题",name:"title",visibleOn:'this.type == "image"'},(0,o.getSchemaTpl)("className",{label:"图片标题类名",name:"titleClassName",visibleOn:'this.type == "image"'}),{type:"textarea",label:"图片描述",name:"description",visibleOn:'this.type == "image"'},(0,o.getSchemaTpl)("className",{label:"图片描述类名",name:"descriptionClassName",visibleOn:'this.type == "image"'}),{type:"input-text",label:"打开外部链接",name:"href",visibleOn:'this.type == "image"'}],scaffold:{type:"input-image",image:""}},{label:"HTML",test:'this.type === "html"',items:[(0,o.getSchemaTpl)("richText",{label:"内容",name:"content"})],scaffold:{type:"html",content:"<p>html 片段</p>"}}],pipeIn:function(e){return Array.isArray(e)&&e.length?e.map((function(e){return e&&e.hasOwnProperty("html")?{type:"html",content:e.html}:{type:"image",content:e.image,title:e.title,titleClassName:e.titleClassName,description:e.description,descriptionClassName:e.descriptionClassName}})):[]},pipeOut:function(e,t,n){return Array.isArray(e)&&e.length?e.map((function(e){return"html"===e.type?{html:e.content}:{image:e.content,title:e.title,titleClassName:e.titleClassName,description:e.description,descriptionClassName:e.descriptionClassName}})):[]}}]},{title:"外观",body:[{name:"auto",type:"switch",mode:"inline",className:"w-full",label:"自动轮播",pipeIn:(0,o.defaultValue)(!0)},{name:"interval",type:"input-range",label:"动画间隔",min:1,max:100,step:1,unit:"s",pipeIn:function(e){return(null!=e?e:3e3)/1e3},pipeOut:function(e,t,n){return 1e3*e}},{name:"duration",type:"input-range",label:"动画时长",min:100,max:2e3,step:10,pipeIn:(0,o.defaultValue)(500),unit:"ms"},{name:"animation",label:"动画效果",type:"button-group-select",mode:"inline",className:"w-full",size:"sm",pipeIn:(0,o.defaultValue)("fade"),options:[{label:"fade",value:"fade"},{label:"slide",value:"slide"}]},{name:"controlsTheme",label:"控制按钮主题",type:"button-group-select",size:"sm",pipeIn:(0,o.defaultValue)("light"),mode:"inline",className:"w-full",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},{name:"controls",label:"控制显示",type:"button-group-select",size:"sm",mode:"inline",className:"w-full",pipeIn:(0,o.defaultValue)("dots,arrows"),multiple:!0,options:[{label:"底部圆点",value:"dots"},{label:"左右箭头",value:"arrows"}]},{name:"width",type:"input-text",label:"宽度",validations:"isNumeric",addOn:{type:"button",label:"px"}},{name:"height",type:"input-text",label:"高度",validations:"isNumeric",addOn:{type:"button",label:"px"}},(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return e.auto=!1,e},t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&"carousel"===e.info.renderer.name&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个卡片",onClick:function(){var e,t=n.getComponent();null===(e=null==t?void 0:t.prev)||void 0===e||e.call(t)}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个卡片",onClick:function(){var e,t=n.getComponent();null===(e=null==t?void 0:t.next)||void 0===e||e.call(t)}})}},t}(i.BasePlugin);t.CarouselPlugin=s,(0,r.registerEditorPlugin)(s)},9065:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChartPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=(0,a.__importDefault)(n(498)),d=function(e){var t=e.value,n=e.onChange;return i.default.createElement("div",{className:"ae-JsonEditor"},i.default.createElement(c.default,{value:t,onChange:n}))},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="chart",t.$schema="/schemas/ChartSchema.json",t.name="图表",t.description="用来渲染图表,基于 echarts 图表库,理论上 echarts 所有图表类型都支持。",t.tags=["展示"],t.icon="fa fa-pie-chart",t.scaffold={type:"chart",config:{xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]},replaceChartOption:!0},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="图表",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("api",{label:"接口拉取",description:"接口可以返回配置,或者数据,建议返回数据可映射到 Echarts 配置中"}),{label:"初始是否拉取",type:"switch",name:"initFetch",visibleOn:"data.api",pipeIn:(0,s.defaultValue)(!0),mode:"inline",className:"block"},{name:"interval",label:"定时刷新间隔",type:"input-number",step:500,visibleOn:"data.api",description:"设置后将自动定时刷新,最小3000, 单位 ms"},{name:"config",asFormItem:!0,component:d,label:"Echarts 配置",description:"支持数据映射,可将接口返回的数据填充进来"},{name:"clickAction",asFormItem:!0,children:function(n){var a=n.onChange,o=n.value;return i.default.createElement("div",{className:"m-b"},i.default.createElement(r.Button,{size:"sm",level:o?"danger":"info",onClick:t.editDrillDown.bind(t,e.id)},"配置 DrillDown"),o?i.default.createElement(r.Button,{size:"sm",level:"link",className:"m-l",onClick:function(){return a("")}},"删除 DrillDown"):null)}},{name:"dataFilter",type:"js-editor",allowFullscreen:!0,label:"数据加工",size:"lg",description:"\n 如果后端没有直接返回 Echart 配置,可以自己写一段函数来包装。\n <p>签名:(config, echarts, data) => config</p>\n <p>参数说明</p>\n <ul>\n <li><code>config</code> 原始数据</li>\n <li><code>echarts</code> echarts 对象</li>\n <li><code>data</code> 如果配置了数据接口,接口返回的数据通过此变量传入</li>\n </ul>\n <p>示例</p>\n <pre>debugger; // 可以浏览器中断点调试\n\n// 查看原始数据\nconsole.log(config)\n\n// 返回新的结果 \nreturn {}</pre>\n "},{label:"Chart 配置完全替换?",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"默认为追加模式,新的配置会跟旧的配置合并,如果勾选将直接完全覆盖。",placement:"left"},name:"replaceChartOption",type:"switch",mode:"inline",className:"block"}]},{title:"外观",body:[(0,s.getSchemaTpl)("className")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("name"),(0,s.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.editDrillDown=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e),o=i.clickAction&&i.clickAction.dialog||{title:"标题",body:["<p>内容 <code>${value|json}</code></p>"]};r&&i&&this.manager.openSubEditor({title:"配置 DrillDown 详情",value:(0,a.__assign)({type:"container"},o),slot:{type:"container",body:"$$"},typeMutable:!1,onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{clickAction:{actionType:"dialog",dialog:e}}),t.panelChangeValue(e,(0,u.diff)(i,e))}})},t}(l.BasePlugin);t.ChartPlugin=p,(0,o.registerEditorPlugin)(p)},5215:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodePlugin=void 0;var a=n(752),r=n(8680),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return(0,a.__extends)(t,e),t.prototype.buildJSONSchema=function(e){return e.info.$schema},t.prototype.buildEditorPanel=function(e,t){e.info;var n=e.selections;this.manager.store.jsonSchemaUri&&!n.length&&t.push({key:"code",icon:"fa fa-code",title:"代码",position:"left",component:r.CodeEditorPanel,order:5e3})},t}(n(9933).BasePlugin);t.CodePlugin=o,(0,i.registerEditorPlugin)(o)},7991:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodeViewPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="code",t.$schema="/schemas/CodeSchema.json",t.name="代码高亮",t.icon="fa fa-code",t.description="代码高亮",t.docLink="/amis/zh-CN/components/code",t.tags=["展示"],t.scaffold={type:"code",language:"html",value:"<div>html</div>"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="代码高亮",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",label:"名称",name:"name"},{type:"editor",label:"固定值",allowFullscreen:!0,name:"value"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.CodeViewPlugin=l,(0,r.registerEditorPlugin)(l)},6469:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="collapse",t.$schema="/schemas/CollapseSchema.json",t.name="折叠器",t.description="折叠器,用户可以觉得是否将内容区展开或者收缩。",t.tags=["展示"],t.icon="fa fa-window-minimize",t.scaffold={type:"collapse",body:"内容",title:"标题"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="折叠器",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",label:"标题",type:"input-text",required:!0},{name:"collapsable",type:"switch",mode:"inline",className:"w-full",label:"是否可折叠",pipeIn:(0,o.defaultValue)(!0)},{name:"collapsed",type:"switch",mode:"inline",className:"w-full",label:"默认折叠?"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className",{pipeIn:(0,o.defaultValue)("bg-white wrapper")}),(0,o.getSchemaTpl)("className",{name:"headingClassName",label:"标题 CSS 类名",pipeIn:(0,o.defaultValue)("font-thin b-b b-light text-lg p-b-xs")}),(0,o.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.CollapsePlugin=l,(0,r.registerEditorPlugin)(l)},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="container",t.$schema="/schemas/ContainerSchema.json",t.name="容器",t.description="一个简单的容器,可以将多个渲染器放置在一起。",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"container",body:"内容"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.regions=[{key:"body",label:"内容区"}],t.panelTitle="容器",t.panelBodyCreator=function(e){return[(0,o.getSchemaTpl)("tabs",[{title:"外观",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("style")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ContainerPlugin=l,(0,r.registerEditorPlugin)(l)},6760:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="custom",t.$schema="/schemas/CustomSchema.json",t.name="自定义代码",t.description="通过内嵌代码来实现功能",t.tags=["功能","表单项"],t.icon="fa fa-gears",t.scaffold={type:"custom",onMount:"\n const button = document.createElement('button');\n button.innerText = '点击修改姓名';\n button.onclick = event => {\n event.preventDefault();\n };\n dom.appendChild(button);"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="自定义代码",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"onMount",body:[{name:"onMount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onMount 代码",options:{lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}}]},{title:"onUpdate",body:[{name:"onUpdate",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUpdate 代码"}]},{title:"onUnmount",body:[{name:"onUnmount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUnmount 代码"}]}])],t}return(0,a.__extends)(t,e),t.prototype.buildSubRenderers=function(t,n){var a=e.prototype.buildSubRenderers.apply(this,arguments);return a.scaffold.onMount="\n const button = document.createElement('button');\n button.innerText = '点击修改姓名ddd';\n button.onclick = event => {\n onChange('new name');\n event.preventDefault();\n };\n dom.appendChild(button);",a},t}(i.BasePlugin);t.CustomPlugin=l,(0,r.registerEditorPlugin)(l)},62:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataDebugPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=(0,a.__importDefault)(n(6689)),l=(0,a.__importDefault)(n(3001)),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dataViewer={type:"json",name:"ctx",asFormItem:!0,className:"m-b-none",component:function(e){for(var t=e.value,n=e.onChange,a=e.readOnly,r=o.default.useState(0),i=r[0],s=r[1],u=t||{},c=[u];Object.getPrototypeOf(u)!==Object.prototype;){var d=Object.getPrototypeOf(u);if("[object Object]"!==Object.prototype.toString.call(d))break;c.push(d),u=d}function p(e){var t=Object.create(c[1]||Object.prototype);Object.keys(e.updated_src).forEach((function(n){return t[n]=e.updated_src[n]})),n(t)}return o.default.createElement("div",{className:"aeDataChain"},o.default.createElement("div",{className:"aeDataChain-aside"},o.default.createElement("ul",null,c.map((function(e,t){return o.default.createElement("li",{className:t===i?"is-active":"",key:t,onClick:function(){return s(t)}},0===t?"当前":1===t?"上层":"上"+t+"层")})))),o.default.createElement("div",{className:"aeDataChain-main"},o.default.createElement(l.default,{name:!1,src:c[i],enableClipboard:!1,iconStyle:"square",onAdd:0===i&&!a&&p,onEdit:0===i&&!a&&p,onDelete:0===i&&!a&&p,collapsed:2})))}},t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=this,a=(e.id,e.schema,e.node.getComponent());if(a&&a.props.data&&a.props.store){var r=a.props.store;t.push({icon:"fa fa-bug",placement:"bottom",tooltip:"上下文数据",onClick:function(){return n.openDebugForm(a.props.data,r.updateData&&r.data===a.props.data?function(e){return r.updateData(e)}:void 0)}})}},t.prototype.openDebugForm=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.manager.scaffold({title:"上下文数据",body:[(0,a.__assign)((0,a.__assign)({},this.dataViewer),{readOnly:!t})]},{ctx:e})];case 1:return n=r.sent(),null==t||t(n.ctx),[2]}}))}))},t}(i.BasePlugin);t.DataDebugPlugin=s,(0,r.registerEditorPlugin)(s)},2585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="date",t.$schema="/schemas/DateSchema.json",t.name="日期展示",t.description="主要用来关联字段名做日期展示,支持各种格式如:X(时间戳),YYYY-MM-DD HH:mm:ss。",t.tags=["展示"],t.icon="fa fa-calendar",t.scaffold={type:"date"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{format:"YYYY-MM-DD",value:Math.round(Date.now()/1e3)}),t.panelTitle="日期展示",t.panelBodyCreator=function(e){return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",name:"format",label:"显示日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("YYYY-MM-DD")},{type:"input-text",name:"valueFormat",label:"数据日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("X")},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.DatePlugin=l,(0,r.registerEditorPlugin)(l)},6721:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatetimePlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="datetime",t.scaffold={type:"datetime"},t.name="日期时间展示",t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{format:"YYYY-MM-DD HH:mm:ss",value:Math.round(Date.now()/1e3)}),t}return(0,a.__extends)(t,e),t}(n(2585).DatePlugin);t.DatetimePlugin=i,(0,r.registerEditorPlugin)(i)},9475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineModal=t.DialogPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=n(9933),l=n(9547),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="dialog",t.$schema="/schemas/DialogSchema.json",t.name="弹框",t.wrapperProps={wrapperComponent:c,onClose:s.noop,show:!0},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var r=this.props.$$editor,i=this.super.apply(this,n);return r&&"body"===n[1]?t(this,i,e,r,r.plugin.manager):i}}},{key:"actions",label:"按钮组",renderMethod:"renderFooter",wrapperResolve:function(e){return e}}],t.panelTitle="弹框",t.panelBody=[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"标题",type:"input-text",name:"title"},{type:"switch",label:"数据映射",name:"data",mode:"inline",className:"block m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.data",tpl:'<p class="text-sm text-muted">当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。</p>'},{type:"combo",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'<p>当开启数据映射时,弹框中的数据只会包含设置的部分,请绑定数据。如:<code>{"a": "\\${a}", "b": 2}</code></p><p>如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。</p><div>当值为 <code>__undefined</code>时,表示删除对应的字段,可以结合<code>{"&": "\\$$"}</code>来达到黑名单效果。</div>',multiple:!0,messages:{validateFailed:"数据映射中存在错误,请仔细检查"},pipeIn:function(e){if(!(0,s.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0},{placeholder:"Value",type:"input-text",name:"value"}]},{label:"按 Esc 关闭弹框",type:"switch",name:"closeOnEsc",mode:"inline",className:"block",value:!1},{label:"点击弹框外区域关闭弹框",type:"switch",name:"closeOnOutside",mode:"inline",className:"block",value:!1}]},{title:"外观",body:[{label:"尺寸",type:"button-group-select",name:"size",size:"sm",className:"block",pipeIn:(0,l.defaultValue)(""),options:[{label:"小",value:"sm"},{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"超大",value:"xl"}]},{label:"是否显示关闭按钮",type:"switch",name:"showCloseButton",mode:"inline",className:"block",value:!0},(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"顶部 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]}])],t}return(0,a.__extends)(t,e),t.prototype.buildSubRenderers=function(){},t}(o.BasePlugin);t.DialogPlugin=u,(0,i.registerEditorPlugin)(u);var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this.props.children;return r.default.createElement("div",{className:"ae-InlineModel"},e)},t}(r.default.Component);t.InlineModal=c},8835:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DividerPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="divider",t.$schema="/schemas/DividerSchema.json",t.name="分隔线",t.icon="fa fa-minus",t.description="用来展示一个分割线,可用来做视觉上的隔离。",t.scaffold={type:"divider"},t.previewSchema={type:"divider",className:"m-t-none m-b-none"},t.panelTitle="分隔线",t.panelBody=(0,o.getSchemaTpl)("tabs",[{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}]),t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.DividerPlugin=l,(0,r.registerEditorPlugin)(l)},4093:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(3570),s=n(9475),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="drawer",t.$schema="/schemas/DrawerSchema.json",t.name="抽出式弹框",t.wrapperProps={wrapperComponent:s.InlineModal,onClose:l.noop,resizable:!1,show:!0},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var r=this.props.$$editor,i=this.super.apply(this,n);return r&&"body"===n[1]?t(this,i,e,r,r.plugin.manager):i}}},{key:"actions",label:"按钮组",renderMethod:"renderFooter",wrapperResolve:function(e){return e}}],t.panelTitle="弹框",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"标题",type:"input-text",name:"title"},{type:"divider"},{label:"位置",type:"button-group-select",name:"position",value:"right",size:"sm",mode:"inline",className:"block",options:[{label:"左",value:"left"},{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"}],description:"定义弹框从什么位置呼出"},{type:"switch",label:"数据映射",name:"data",mode:"inline",className:"w-full m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.data",tpl:'<p class="text-sm text-muted">当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。</p>'},{type:"combo",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'<p>当开启数据映射时,弹框中的数据只会包含设置的部分,请绑定数据。如:<code>{"a": "\\${a}", "b": 2}</code></p><p>如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。</p><div>当值为 <code>__undefined</code>时,表示删除对应的字段,可以结合<code>{"&": "\\$$"}</code>来达到黑名单效果。</div>',multiple:!0,pipeIn:function(e){if(!(0,l.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key"},{placeholder:"Value",type:"input-text",name:"value"}]},{type:"switch",name:"closeOnOutside",label:"点击外部关闭弹框",mode:"inline",className:"block"},{label:"按 Esc 可关闭?",type:"switch",name:"closeOnEsc",mode:"inline",className:"block"}]},{title:"外观",body:[{label:"尺寸",type:"button-group-select",name:"size",size:"sm",mode:"inline",className:"block",options:[{label:"超小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"超大",value:"xl"}]},{type:"switch",name:"overlay",label:"是否显示蒙层",mode:"inline",className:"block",pipeIn:(0,o.defaultValue)(!0)},{type:"switch",name:"resizable",label:"可拉拽",mode:"inline",className:"block",pipeIn:(0,o.defaultValue)(!1),description:"定义弹框是否可拉拽调整大小"},(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{label:"bodyClassName 类名",name:"bodyClassName"})]}])],t}return(0,a.__extends)(t,e),t.prototype.buildSubRenderers=function(){},t}(i.BasePlugin);t.DrawerPlugin=u,(0,r.registerEditorPlugin)(u)},9691:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownButtonPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="dropdown-button",t.$schema="/schemas/DropdownButtonSchema.json",t.name="下拉按钮",t.description="下拉按钮,更多的按钮通过点击后展示开来。",t.tags=["按钮"],t.icon="fa fa-chevron-down",t.docLink="/amis/zh-CN/components/dropdown-button",t.scaffold={type:"dropdown-button",label:"下拉按钮",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="下拉按钮",t.panelBodyCreator=function(e){return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置下拉按钮集合")},{label:"名称",type:"input-text",name:"label"},{name:"trigger",label:"触发方式",type:"button-group-select",pipeIn:(0,s.defaultValue)("click"),options:[{label:"点击",value:"click"},{label:"鼠标经过",value:"hover"}]},{name:"closeOnOutside",label:"点击外部关闭",type:"switch",mode:"inline",className:"block",pipeIn:(0,s.defaultValue)(!0)},{name:"closeOnClick",label:"点击内容关闭",type:"switch",mode:"inline",className:"block"}]},{title:"外观",body:[(0,s.getSchemaTpl)("size"),{label:"展示样式",type:"button-group-select",size:"xs",name:"level",btnActiveClassName:"active",clearable:!1,options:[{label:"默认",value:"default",level:"default"},{label:"无",value:"link",level:"link"},{label:"主色",value:"primary",level:"primary"},{label:"提示",value:"info",level:"info"},{label:"成功",value:"success",level:"success"},{label:"警告",value:"warning",level:"warning"},{label:"严重",value:"danger",level:"danger"}]},(0,s.getSchemaTpl)("className")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("disabled"),(0,s.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"dropdown-button"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置下拉按钮集合",onClick:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置下拉按钮集合",value:i.buttons,slot:{type:"button-group",buttons:"$$",block:!0},onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{buttons:e}),t.panelChangeValue(e,(0,u.diff)(i,e))}})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"dropdown-button"===e.info.renderer.name&&t.push("|",{label:"配置下拉按钮集合",onSelect:this.editDetail.bind(this,n)})},t}(l.BasePlugin);t.DropDownButtonPlugin=c,(0,o.registerEditorPlugin)(c)},9596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EachPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="each",t.$schema="/schemas/EachSchema.json",t.name="循环 Each",t.description="功能渲染器,可以基于现有变量循环输出渲染器。",t.tags=["功能"],t.icon="fa fa-repeat",t.scaffold={type:"each",name:"arr",items:{type:"tpl",tpl:"<%= data.index + 1 %>. 内容:<%= data.item %>",inline:!1}},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:["a","b","c"]}),t.panelTitle="循环",t.panelBodyCreator=function(e){return[{type:"input-text",name:"name",label:"关联字段",placeholder:"varname",description:"如果所在容器有下发 value 则不需要配置,如果没有请配置变量名,支持多层级如:a.b,表示关联a对象下的b属性。目标变量可以是数组,也可以是对象。"},{children:i.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员渲染器")},{name:"placeholder",type:"input-text",label:"占位符",pipeIn:(0,s.defaultValue)("暂无内容"),description:"当没有关联变量,或者目标变量不是数组或者对象时显示此占位信息"},(0,s.getSchemaTpl)("className")]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return(e=(0,u.JSONPipeOut)(e)).value||(e.value=[{item:"mocked data"}]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"each"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"each"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置成员渲染器",value:i.items,slot:{type:"container",body:"$$"},typeMutable:!0,onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{items:e}),t.panelChangeValue(e,(0,u.diff)(i,e))},data:{item:"mocked data",index:0}})},t}(l.BasePlugin);t.EachPlugin=c,(0,o.registerEditorPlugin)(c)},5707:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorRendererPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t.rendererName="error",t.name="Error",t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ErrorRendererPlugin=i,(0,r.registerEditorPlugin)(i)},6397:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlexPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="flex",t.$schema="/schemas/FlexSchema.json",t.name="Flex 布局",t.icon="fa fa-columns",t.description="flex 布局",t.tags=["容器"],t.scaffold={type:"flex",items:[{type:"wrapper",body:"第一列"},{type:"wrapper",body:"第二列"},{type:"wrapper",body:"第三列"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="Flex",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"items",label:"内容集合",type:"combo",scaffold:{type:"wrapper",body:"子节点内容"},minLength:2,multiple:!0,draggableTip:"",items:[{type:"tpl",tpl:'<span class="label label-default">子节点${index | plus}</span>'}]},{name:"justify",type:"select",value:"center",label:"子节点水平分布方式",options:["start","flex-start","center","end","flex-end","space-around","space-between","space-evenly"]},{name:"alignItems",type:"select",value:"center",label:"子节点垂直方向位置",options:["stretch","start","flex-start","flex-end","end","center","baseline"]},{name:"direction",type:"radios",label:"布局方向",value:"column",inline:!0,options:[{label:"水平",value:"row"},{label:"垂直",value:"column"}]},(0,o.getSchemaTpl)("visible")]},{title:"样式",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("style")]}])],t.regions=[{key:"items",label:"子节点集合",renderMethod:"render",dndMode:"position-h"}],t}return(0,a.__extends)(t,e),t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e)},t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/FlexColumn.json")},t}(i.BasePlugin);t.FlexPlugin=l,(0,r.registerEditorPlugin)(l)},4891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupControlPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-group-select",t.$schema="/schemas/ButtonGroupControlSchema.json",t.name="按钮点选",t.icon="fa fa-object-group",t.description="用来展示多个按钮,视觉上会作为一个整体呈现,同时可以作为表单项选项选择器来用。",t.docLink="/amis/zh-CN/components/form/button-group",t.tags=["表单项","按钮"],t.scaffold={type:"button-group-select",name:"a",options:[{label:"选项1",value:"a"},{label:"选项2",value:"b"}]},t.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"a",label:"按钮组",description:"按钮组可以当选项用。"})},t.panelTitle="按钮组",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"button-group-select",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},(0,o.getSchemaTpl)("options"),(0,o.getSchemaTpl)("source"),(0,o.getSchemaTpl)("multiple"),(0,o.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,o.getSchemaTpl)("delimiter",{hiddenOn:"this.joinValues === false"}),(0,o.getSchemaTpl)("extractValue"),(0,o.getSchemaTpl)("autoFill")],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ButtonGroupControlPlugin=l,(0,r.registerEditorPlugin)(l)},2165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonToolbarControlPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-toolbar",t.$schema="/schemas/ButtonToolbarControlSchema.json",t.name="按钮工具栏",t.icon="fa fa-ellipsis-h",t.description="多个按钮的集合",t.docLink="/amis/zh-CN/components/form/group",t.tags=["表单项"],t.scaffold={type:"button-toolbar",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:(0,a.__assign)((0,a.__assign)({},t.scaffold),{label:"按钮工具栏"})},t.regions=[{key:"buttons",label:"按钮集合",preferTag:"按钮",renderMethod:"renderButtons"}],t.panelTitle="工具栏",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[(0,o.getSchemaTpl)("label"),(0,o.getSchemaTpl)("description"),(0,o.getSchemaTpl)("remark"),(0,o.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,o.getSchemaTpl)("formItemMode"),(0,o.getSchemaTpl)("horizontalMode"),(0,o.getSchemaTpl)("horizontal",{label:"",visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal'}),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,o.getSchemaTpl)("className",{label:"Input CSS 类名",name:"inputClassName"}),(0,o.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ButtonToolbarControlPlugin=l,(0,r.registerEditorPlugin)(l)},6982:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChainedSelectControlPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="chained-select",t.$schema="/schemas/ChainedSelectControlSchema.json",t.name="级联下拉框",t.icon="fa fa-th-list",t.description="通过<code>source</code>拉取选项,只要有返回结果,就可以无限级别增加",t.docLink="/amis/zh-CN/components/form/chained-select",t.tags=["表单项"],t.scaffold={type:"chained-select",label:"级联选择",name:"chained-select"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:(0,a.__assign)({},t.scaffold)},t.panelTitle="级联选择",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',description:"请填入选项 Options 中 value 值"},(0,o.getSchemaTpl)("api",{name:"source",label:"获取选项接口",description:"<div>可用变量说明</div><ul>\n <li><code>value</code>当前值</li>\n <li><code>level</code>拉取级别,从 <code>1</code>开始。</li>\n <li><code>parentId</code>上一层选中的 <code>value</code> 值</li>\n <li><code>parent</code>上一层选中选项,包含 <code>label</code> 和 <code>value</code> 的值。</li>\n </ul>"}),(0,o.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,o.getSchemaTpl)("delimiter",{visibleOn:"data.joinValues"}),(0,o.getSchemaTpl)("extractValue")],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ChainedSelectControlPlugin=l,(0,r.registerEditorPlugin)(l)},7131:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="checkbox",t.$schema="/schemas/CheckboxControlSchema.json",t.name="勾选框",t.icon="fa fa-check-square-o",t.description="勾选框",t.docLink="/amis/zh-CN/components/form/text",t.tags=["表单项"],t.scaffold={type:"checkbox",option:"勾选框",name:"checkbox"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)((0,a.__assign)({value:!0},t.scaffold),{label:"勾选表单"})]},t.panelTitle="勾选框",t.panelBody=[{name:"option",type:"input-text",label:"选项说明"},(0,r.getSchemaTpl)("switchDefaultValue",{name:"value",pipeOut:function(e,t,n){var a;return e?null===(a=n.trueValue)||void 0===a||a:void 0}}),{type:"switch",name:"value",label:"默认勾选",mode:"inline",className:"w-full",visibleOn:'typeof this.value !== "undefined"',pipeOut:function(e,t,n){var a,r;return e?null===(a=n.trueValue)||void 0===a||a:null!==(r=n.falseValue)&&void 0!==r&&r}},{type:"input-text",label:"勾选后的值",name:"trueValue",pipeIn:(0,r.defaultValue)(!0),pipeOut:r.valuePipeOut},{type:"input-text",label:"未勾选的值",name:"falseValue",pipeIn:(0,r.defaultValue)(!1),pipeOut:r.valuePipeOut}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.CheckboxControlPlugin=o,(0,i.registerEditorPlugin)(o)},4894:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="checkboxes",t.$schema="/schemas/CheckboxesControlSchema.json",t.order=-470,t.name="复选框",t.icon="fa fa-check-square",t.description="通过<code>options</code>配置多个勾选框,也可以通过<code>source</code>拉取选项",t.docLink="/amis/zh-CN/components/form/checkboxes",t.tags=["表单项"],t.scaffold={type:"checkboxes",label:"复选框",name:"checkboxes",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({value:"A"},t.scaffold)]},t.panelTitle="复选框",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"checkboxes",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source"),{name:"checkAll",label:"是否开启全选功能",type:"switch",mode:"inline",className:"w-full"},{name:"defaultCheckAll",label:"是否默认全选",type:"switch",mode:"inline",className:"w-full",description:"勾选后,默认值的配置将无效。",onChange:function(e,t,n,a){return e&&a.setValueByName("value",void 0)}},(0,r.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,r.getSchemaTpl)("delimiter",{hiddenOn:"data.joinValues === false"}),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill"),(0,r.getSchemaTpl)("creatable"),(0,r.getSchemaTpl)("createBtnLabel"),(0,r.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi"}),(0,r.getSchemaTpl)("editable"),(0,r.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,r.getSchemaTpl)("removable"),(0,r.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]}),(0,r.getSchemaTpl)("fieldSet",{title:"外观",body:[{label:"选项在一行显示",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"每行显示多少列",name:"columnsCount",hiddenOn:'typeof data.inline === "undefined" || data.inline === true',type:"input-range",min:1,max:6,pipeIn:(0,r.defaultValue)(1)},(0,r.getSchemaTpl)("className",{label:"单个 Checkbox 的 CSS 类名",name:"itemClassName"})]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.CheckboxesControlPlugin=o,(0,i.registerEditorPlugin)(o)},7452:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComboControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9756),o=n(9933),l=n(9547),s=(0,a.__importDefault)(n(6689)),u=n(3570),c=n(3570),d=n(6374),p=n(3893),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="combo",t.$schema="/schemas/ComboControlSchema.json",t.name="组合输入",t.icon="fa fa-group",t.description="多个表单项的组合,可配置是否增加和删除初始设定的模板",t.docLink="/amis/zh-CN/components/form/combo",t.tags=["表单项"],t.scaffold={type:"combo",label:"组合输入",name:"combo",multiple:!0,items:[{type:"input-text",name:"input-text",placeholder:"文本"},{type:"select",name:"select",placeholder:"选项",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:[{text:"Row 1",select:"a"},{}]})]},t.panelTitle="组合输入",t.panelBodyCreator=function(e){return[{name:"conditions",type:"button-group-select",size:"sm",mode:"inline",className:"block",options:[{label:"固定成员类型",value:"1"},{label:"多分支",value:"2"}],pipeIn:function(e){return e?"2":"1"},pipeOut:function(e){return 2==e?[{label:"类型名称",test:"",items:[{type:"input-text",label:"文本",name:"text"}],scaffold:{}}]:void 0}},{name:"conditions",visibleOn:"this.conditions",type:"combo",label:"分支管理",multiple:!0,multiLine:!0,minLength:1,items:[{label:"名称",name:"label",type:"input-text",required:!0},{label:"命中条件",name:"test",required:!0,type:"input-text",placeholder:'比如: this.type === "text"',description:"根据成员数据判断是否使用此分支"},{children:function(n){return n.value,n.onChange,s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置子表单集合")}},{type:"textarea",name:"scaffold",required:!0,label:"新增初始值",pipeOut:l.valuePipeOut}],scaffold:{label:"类型名称",test:"",items:[{type:"input-text",label:"文本",name:"text"}],scaffold:{}}},{name:"typeSwitchable",visibleOn:"this.conditions",label:"是否可切换类型",type:"switch",mode:"inline",className:"block",pipeIn:(0,l.defaultValue)(!0)},{name:"items",visibleOn:"!this.conditions",asFormItem:!0,children:function(e){var n=e.value,a=e.onChange;return s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置子表单集合",value:n,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){return a(e)}})}},"配置子表单集合")}},(0,l.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"textarea",name:"value",label:"默认值",pipeOut:l.valuePipeOut,visibleOn:'typeof this.value !== "undefined"'},{label:"多行模式",name:"multiLine",type:"switch",mode:"inline",className:"w-full",value:!1,option:"即是否要换行"},(0,l.getSchemaTpl)("multiple"),(0,l.getSchemaTpl)("joinValues"),(0,l.getSchemaTpl)("delimiter"),{type:"switch",name:"flat",mode:"inline",className:"w-full",label:"是否将值打平",visibleOn:"Array.isArray(data.items) && data.items.length === 1 && data.multiple",description:"默认数组内的数据结构为对象,如果只有一个表单项,可以配置将值打平,那么数组内放置的就是那个表单项的值"},{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full",visibleOn:"this.multiple",pipeIn:(0,l.defaultValue)(!0)},{type:"textarea",name:"scaffold",label:"新增初始值",visibleOn:"this.multiple && this.addable !== false",pipeOut:l.valuePipeOut,pipeIn:(0,l.defaultValue)({})},{label:"新增按钮文字",name:"addButtonText",type:"input-text",visibleOn:"data.addable",pipeIn:(0,l.defaultValue)("新增")},{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full",visibleOn:"this.multiple",pipeIn:(0,l.defaultValue)(!0)},(0,l.getSchemaTpl)("api",{name:"deleteApi",label:"删除前的请求",hiddenOn:"!data.removable"}),{label:"删除确认提示",name:"deleteConfirmText",type:"input-text",visibleOn:"data.deleteApi",pipeIn:(0,l.defaultValue)("确认要删除")},{name:"draggable",label:"是否可拖拽排序",type:"switch",visibleOn:"this.multiple",mode:"inline",className:"w-full"},{label:"拖拽排序的提示文字",name:"draggableTip",type:"input-text",visibleOn:"data.draggable",pipeIn:(0,l.defaultValue)("可通过拖动每行中的【交换】按钮进行顺序调整")},{name:"noBorder",label:"去掉边框",type:"switch",visibleOn:"this.multiLine",mode:"inline",className:"w-full"},{name:"minLength",type:"input-number",label:"限制最小数量"},{name:"maxLength",type:"input-number",label:"限制最大数量"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"",items:[{label:"有子表单项限制失败时提示",type:"input-text",name:"validateFailed"},{label:"最小长度验证失败时提示",type:"input-text",name:"minLengthValidateFailed"},{label:"最大长度验证失败时提示",type:"input-text",name:"maxLengthValidateFailed"}]},{name:"canAccessSuperData",label:"是否自动填充父级同名变量",type:"switch",pipeIn:(0,l.defaultValue)(!1),mode:"inline",className:"w-full"},{name:"tabsMode",label:"采用 Tabs 展示方式",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1)},{name:"tabsStyle",label:"Tabs 的展示模式",visibleOn:"data.tabsMode",type:"list-select",options:[{label:"正常",value:"normal"},{label:"水平",value:"horizontal"},{label:"内联",value:"inline"}],mode:"inline",className:"w-full"},{name:"tabsLabelTpl",label:"选项卡标题的生成模板",visibleOn:"data.tabsMode",type:"input-text",mode:"inline",className:"w-full"},{name:"lazyLoad",label:"懒加载",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1),description:"如果数据比较多,比较卡顿时,可开启此配置项"},{name:"strictMode",label:"严格模式",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0),description:"如果你希望环境变量的值实时透传到 Combo 中,请关闭此选项。"},{name:"syncFields",visibleOn:"!data.strictMode",label:"配置同步字段",type:"input-text",multiple:!0,joinValues:!1,extractValue:!0,description:"如果 Combo 层级比较深,底层的获取外层的数据可能不同步。但是给 combo 配置这个属性就能同步下来。"},{name:"nullable",label:"允许为空",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1),description:"如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。"},{name:"items",label:"各列 CSS 配置",hiddenOn:"this.multiLine",type:"combo",addable:!1,removable:!1,multiple:!0,items:[{name:"columnClassName",placeholder:"CSS 类名",type:"input-text"}]},(0,l.getSchemaTpl)("subFormItemMode",{visibleOn:"this.multiLine"}),(0,l.getSchemaTpl)("subFormHorizontalMode"),(0,l.getSchemaTpl)("subFormHorizontal")]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){if((e=(0,c.JSONPipeOut)(e)).multiple&&!e.value&&!e.$ref){var t={};Array.isArray(e.items)&&e.items.forEach((function(e){e.name&&(0,p.setVariable)(t,e.name,(0,d.mockValue)(e))})),e.value=[t]}return e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"combo"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置子表单项",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"combo"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置子表单项",value:i.items,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{items:e}),t.panelChangeValue(e,(0,u.diff)(i,e))}})},t}(o.BasePlugin);t.ComboControlPlugin=f,(0,i.registerEditorPlugin)(f)},2888:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionBilderPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=(0,a.__importStar)(n(6372)),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="condition-builder",t.$schema="/schemas/ConditionBuilderControlSchema.json",t.name="条件组件",t.icon="fa fa-group",t.description="用于设置复杂组合条件,支持添加条件,添加分组,设置组合方式,拖拽排序等功能。",t.docLink="/amis/zh-CN/components/form/condition-builder",t.tags=["表单项"],t.scaffold={type:"condition-builder",label:"条件组件",name:"conditions",description:"适合让用户自己拼查询条件,然后后端根据数据生成 query where",fields:[{label:"文本",type:"text",name:"text"},{label:"数字",type:"number",name:"number"},{label:"布尔",type:"boolean",name:"boolean"},{label:"选项",type:"select",name:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"},{label:"E",value:"e"}]},{label:"日期",type:"date",name:"date"},{label:"时间",type:"time",name:"time"},{label:"日期时间",type:"datetime",name:"datetime"}]},t.scaffoldForm={title:"快速开始-条件组合",body:[{type:"combo",name:"fields",multiple:!0,draggable:!0,multiLine:!0,items:[{type:"group",body:[{type:"select",name:"type",placeholder:"条件类型",options:[{label:"文本",value:"text"},{label:"数字",value:"number"},{label:"布尔",value:"boolean"},{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"时间",value:"time"},{label:"选项",value:"select"}]},{type:"input-text",name:"name",placeholder:"字段名"},{type:"input-text",placeholder:"字段名称",name:"label"}]},{type:"group",visibleOn:'data.type === "number"',body:[{type:"input-number",name:"minimum",placeholder:"最小值"},{type:"input-number",name:"maximum",placeholder:"最大值"},{type:"input-number",name:"step",min:0,placeholder:"步长"}]},{type:"group",visibleOn:'!!~["date", "datetime", "time"].indexOf(data.type)',body:[{type:"input-text",name:"format",placeholder:"值格式"},{type:"input-text",name:"inputFormat",placeholder:"日期显示格式"},{type:"input-text",name:"timeFormat",placeholder:"时间显示格式",visibleOn:'data.type === "datetime"'}]},{type:"group",visibleOn:'data.type === "select"',body:[{type:"input-text",name:"source",placeholder:"字段选项远程拉取,支持接口或数据映射"}]},{type:"group",body:[{type:"input-text",placeholder:"占位符",name:"placeholder"},{name:"operators",placeholder:"操作符",asFormItem:!0,children:function(e){var t,n,a=e.data,r=e.render,i=e.onChange;return r("operations",{type:"select",name:"operators",multiple:!0,value:a.value||(null===(t=l.default.types[a.type])||void 0===t?void 0:t.operators)||[],joinValues:!1,extractValue:!0,options:(null===(n=l.default.types[a.type])||void 0===n?void 0:n.operators.map((function(e){return{label:l.OperationMap[e],value:e}})))||[]},{onChange:function(e){return i(e)}})}}]}]}],canRebuild:!0},t.previewSchema={type:"form",mode:"horizontal",wrapWithPanel:!1,body:[t.scaffold]},t.panelTitle="条件组件",t.panelBodyCreator=function(e){return[(0,o.getSchemaTpl)("source")]},t}return(0,a.__extends)(t,e),t.prototype.buildSubRenderers=function(e,t){var n=this;if(n.name&&n.description)return{name:n.name,icon:n.icon,description:n.description,previewSchema:n.previewSchema,tags:n.tags,docLink:n.docLink,type:n.type,scaffold:n.scaffold,scaffoldForm:this.scaffoldForm}},t}(i.BasePlugin);t.ConditionBilderPlugin=s,(0,r.registerEditorPlugin)(s)},8322:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="control",t.$schema="/schemas/FormControlSchema.json",t.name="表单项容器",t.icon="fa fa-object-group",t.description="表单项容器",t.tags=["容器"],t.scaffold={type:"control",label:"表单项容器",body:[{type:"tpl",tpl:"a"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.regions=[{key:"body",label:"元素集合",preferTag:"展示"}],t.panelTitle="表单项容器",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{children:r.default.createElement(i.Button,{className:"m-b",onClick:function(){return t.manager.showInsertPanel("body")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,o.getSchemaTpl)("description"),(0,o.getSchemaTpl)("placeholder"),(0,o.getSchemaTpl)("remark"),(0,o.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,o.getSchemaTpl)("formItemMode"),(0,o.getSchemaTpl)("horizontalMode"),(0,o.getSchemaTpl)("horizontal",{label:"",visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal'}),(0,o.getSchemaTpl)("formItemInline"),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,o.getSchemaTpl)("className",{label:"控件 CSS 类名",name:"inputClassName"}),(0,o.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"this.description"})]},{title:"显隐",body:[(0,o.getSchemaTpl)("disabled"),(0,o.getSchemaTpl)("visible"),{type:"switch",name:"clearValueOnHidden",label:"隐藏时删除表单项值",mode:"inline",className:"w-full"}]},{title:"验证",body:[(0,o.getSchemaTpl)("validations"),(0,o.getSchemaTpl)("validationErrors"),(0,o.getSchemaTpl)("validateOnChange"),(0,o.getSchemaTpl)("submitOnChange")]}])],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ControlPlugin=s,(0,l.registerEditorPlugin)(s)},5561:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiffEditorControlPlugin=void 0;var a=n(752),r=n(5322),i=n(9547),o=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="diff-editor",t.$schema="/schemas/DiffEditorControlSchema.json",t.name="Diff编辑器",t.icon="fa fa-columns",t.description="左右两边的代码做对比,支持的语言包括:"+r.availableLanguages.slice(0,10).join(",")+"等等",t.docLink="/amis/zh-CN/components/form/diff-editor",t.tags=["表单项"],t.scaffold={type:"diff-editor",label:"diff编辑器",name:"diff"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"Hello World\nLine 1\nNew line\nBla Bla",diffValue:"Hello World\nLine 2"})]},t.panelTitle="Diff编辑器",t.panelBody=[{type:"textarea",name:"diffValue",label:"左侧值",pipeOut:i.valuePipeOut,description:"支持使用 <code>\\${xxx}</code> 来获取变量"},(0,i.getSchemaTpl)("switchDefaultValue",{label:"设置右侧默认值"}),{type:"textarea",name:"value",label:"右侧默认值",pipeOut:i.valuePipeOut,visibleOn:'typeof this.value !== "undefined"'},{label:"语言",name:"language",type:"select",value:"javascript",searchable:!0,options:r.availableLanguages.concat()},{name:"size",type:"button-group-select",size:"sm",pipeIn:(0,i.defaultValue)(""),className:"w-full",label:"控件尺寸",options:[{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"加大",value:"xl"},{label:"再加大",value:"xxl"}]}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.DiffEditorControlPlugin=l,(0,o.registerEditorPlugin)(l)},5108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorControlPlugin=void 0;var a=n(752),r=n(5322),i=n(9547),o=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="editor",t.$schema="/schemas/EditorControlSchema.json",t.name="代码编辑器",t.icon="fa fa-code",t.description="代码编辑器,采用 monaco-editor 支持:"+r.availableLanguages.slice(0,10).join(",")+"等等",t.docLink="/amis/zh-CN/components/form/editor",t.tags=["表单项"],t.scaffold={type:"editor",label:"代码编辑器",name:"editor"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:'console.log("Hello world.");'})]},t.panelTitle="Editor",t.panelBody=[{label:"语言",name:"language",type:"select",value:"javascript",searchable:!0,options:r.availableLanguages.concat()},{name:"size",type:"button-group-select",size:"xs",pipeIn:(0,i.defaultValue)(""),label:"控件大小",options:[{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"加大",value:"xl"},{label:"加加大",value:"xxl"}]}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.EditorControlPlugin=l,(0,o.registerEditorPlugin)(l)},4624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSetControlPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="fieldset",t.$schema="/schemas/FieldSetControlSchema.json",t.name="字段集",t.icon="fa fa-toggle-down",t.description="多个表单项的组合,可配置是否折叠",t.docLink="/amis/zh-CN/components/form/fieldset",t.tags=["表单项"],t.scaffold={type:"fieldset",title:"标题",collapsable:!0,body:[{type:"input-text",label:"文本1",name:"text"},{type:"input-text",label:"文本2",name:"text"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.regions=[{key:"body",label:"子表单项",renderMethod:"renderBody",insertPosition:"inner",preferTag:"表单项"}],t.panelTitle="字段集",t.panelBodyCreator=function(e){return[{label:"标题",name:"title",type:"input-text"},{name:"collapsable",label:"是否可折叠",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,o.defaultValue)(!1)},{name:"collapsed",label:"默认是否折叠",type:"switch",mode:"inline",visibleOn:"this.collapsable",className:"w-full"},{name:"className",type:"button-group-select",clearable:!0,size:"sm",label:"控件样式",className:"w-full",pipeIn:(0,o.defaultValue)(""),options:[{label:"默认",value:""},{value:"Collapse--xs",label:"极小"},{value:"Collapse--sm",label:"小"},{value:"Collapse--base",label:"正常"},{value:"Collapse--md",label:"大"},{value:"Collapse--lg",label:"超大"}]},(0,o.getSchemaTpl)("className",{name:"headingClassName",label:"标题 CSS 类名"}),(0,o.getSchemaTpl)("className",{name:"bodyClassName",label:"内容区域 CSS 类名"}),{children:i.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showInsertPanel("body",e.id)}},"添加子表单项")},(0,o.getSchemaTpl)("subFormItemMode"),(0,o.getSchemaTpl)("subFormHorizontalMode"),(0,o.getSchemaTpl)("subFormHorizontal")]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return e.collapsed=!1,e},t}(n(9933).BasePlugin);t.FieldSetControlPlugin=s,(0,l.registerEditorPlugin)(s)},1506:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FormPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(3893),s=[{name:"type",label:"控件类型",type:"select",options:[{label:"单行文本框",value:"input-text"},{label:"多行文本",value:"textarea"},{label:"分组",value:"group"},{label:"数字输入",value:"input-number"},{label:"单选框",value:"radios"},{label:"勾选框",value:"checkbox"},{label:"复选框",value:"checkboxes"},{label:"下拉框",value:"select"},{label:"开关",value:"switch"},{label:"日期",value:"input-date"},{label:"表格",value:"input-table"},{label:"文件上传",value:"input-file"},{label:"图片上传",value:"input-image"},{label:"富文本编辑器",value:"input-rich-text"}]},{name:"label",label:"显示名称",type:"input-text",hiddenOn:'data.type === "group"'},{name:"name",label:"提交字段名",type:"input-text",hiddenOn:'data.type === "group"'}],u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="form",t.$schema="/schemas/FormSchema.json",t.order=-999,t.name="表单(API)",t.description="可用于新建、编辑或者展示数据,配置初始化接口可从远端加载数据,配置提交接口可将数据发送远端。另外也可以将数据提交给其他组件,与其他组件通信。",t.docLink="/amis/zh-CN/components/form/index",t.tags=["功能"],t.icon="fa fa-list-alt",t.scaffold={type:"form",title:"表单",body:[{label:"文本框",type:"input-text",name:"text"}]},t.previewSchema={type:"form",panelClassName:"Panel--default text-left m-b-none",mode:"horizontal",body:[{label:"文本",name:"a",type:"input-text"}]},t.scaffoldForm={title:"快速创建表单",body:[(0,o.getSchemaTpl)("api",{label:"提交地址"}),{name:"mode",label:"文字与输入框展示模式",type:"button-group-select",pipeIn:(0,o.defaultValue)("normal",!1),options:[{label:"上下",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},{label:"表单控件",type:"combo",name:"body",multiple:!0,draggable:!0,multiLine:!1,items:(0,a.__spreadArray)((0,a.__spreadArray)([],s,!0),[{visibleOn:'data.type === "group"',type:"combo",name:"body",label:"分组内的控件",multiple:!0,draggable:!0,multiLine:!0,items:(0,a.__spreadArray)([],s,!0)}],!1)}]},t.regions=[{key:"body",label:"表单集合",matchRegion:function(e){return!!(null==e?void 0:e.props.noValidate)},renderMethod:"renderBody",preferTag:"表单项"},{label:"按钮组",key:"actions",preferTag:"按钮"}],t.panelTitle="表单",t.panelBodyCreator=function(e){var t=/\/crud\/filter\/form$/.test(e.path),n=/(?:\/|^)dialog\/.+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题",visibleOn:"this.wrapWithPanel !== false"},{name:"submitText",type:"input-text",label:"提交按钮名称",pipeIn:(0,o.defaultValue)("提交"),visibleOn:"this.wrapWithPanel !== false && !this.actions && (!Array.isArray(this.body) || !this.body.some(function(item) {return !!~['submit','button','reset','button-group'].indexOf(item.type);}))",description:"当没有自定义按钮时有效。"},{name:"autoFocus",type:"switch",label:"自动聚焦",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置后将让表单的第一个可输入的表单项获得焦点",placement:"left"}},(0,o.getSchemaTpl)("submitOnChange"),{label:"提交完后重置表单",type:"switch",name:"resetAfterSubmit",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"即表单提交完后,让所有表单项的值还原成初始值",placement:"left"}},t?null:{label:"初始化后提交一次",type:"switch",name:"submitOnInit",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,表单初始完成便会触发一次提交。",placement:"left"}},n?{label:"提交后是否关闭对话框",type:"switch",name:"closeDialogOnSubmit",mode:"inline",className:"block",pipeIn:function(e){return!1!==e}}:null,t?null:{label:"提交给其他组件",name:"target",type:"input-text",description:"可以通过设置此属性,把当前表单的值提交给目标组件,而不是自己来通过接口保存,请填写目标组件的 <code>name</code> 属性,多个组件请用逗号隔开。当 <code>target</code> 为 <code>window</code> 时,则把表单数据附属到地址栏。"},(0,o.getSchemaTpl)("reload",{test:!t}),t?null:{label:"跳转",name:"redirect",type:"input-text",description:"当设置此值后,表单提交完后跳转到目标地址。"},{name:"canAccessSuperData",label:"是否自动填充父级同名变量",type:"switch",pipeIn:(0,o.defaultValue)(!0),mode:"inline",className:"block"},{name:"persistData",label:"是否开启本地缓存",type:"switch",pipeIn:(0,o.defaultValue)(!1),mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,表单的数据会缓存在浏览器中,切换页面或关闭弹框不会清空当前表单内的数据",placement:"left"}},{name:"clearPersistDataAfterSubmit",label:"提交成功后清空本地缓存",type:"switch",pipeIn:(0,o.defaultValue)(!1),mode:"inline",className:"block",visibleOn:"data.persistData",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启本地缓存并开启本配置项后,表单提交成功后,会自动清除浏览器中当前表单的缓存数据",placement:"left"}},{name:"rules",label:"表单组合校验",type:"combo",multiple:!0,multiLine:!0,items:[{name:"rule",label:"校验规则",type:"input-text"},{name:"message",label:"报错提示",type:"input-text"}]}]},t?null:{title:"接口",body:[(0,o.getSchemaTpl)("api",{label:"保存接口",description:"用来保存表单数据",sampleBuilder:function(e){return'{\n "status": 0,\n "msg": "",\n\n // 可以不返回,如果返回了数据将被 merge 进来。\n data: {}\n }'}}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,o.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,o.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据",sampleBuilder:function(e){var t={};return Array.isArray(e.body)&&e.body.forEach((function(e){e.name&&!~["combo","input-array","form"].indexOf(e.type)&&(0,l.setVariable)(t,e.name,"sample")})),JSON.stringify({status:0,msg:"",data:t},null,2)}}),{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.initApi",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline"},{name:"interval",type:"input-number",visibleOn:"data.interval",step:500,className:"m-t-n-sm",description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,o.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},t?{name:"messages",pipeIn:(0,o.defaultValue)({fetchFailed:"初始化失败"}),label:"默认消息信息",type:"combo",multiLine:!0,description:"可以不设置,接口返回的 msg 字段,优先级更高",items:[{label:"获取成功提示",name:"fetchSuccess",type:"input-text"},{label:"获取失败提示",name:"fetchFailed",type:"input-text"}]}:{name:"messages",pipeIn:(0,o.defaultValue)({fetchFailed:"初始化失败",saveSuccess:"保存成功",saveFailed:"保存失败"}),label:"默认消息提示",type:"combo",multiLine:!0,description:"可以不设置,接口返回的 msg 字段,优先级更高",items:[{label:"获取成功提示",name:"fetchSuccess",type:"input-text"},{label:"获取失败提示",name:"fetchFailed",type:"input-text"},{label:"保存成功提示",name:"saveSuccess",type:"input-text"},{label:"保存失败提示",name:"saveFailed",type:"input-text"},{label:"验证失败提示",name:"validateFailed",type:"input-text"}]}]},{title:"外观",body:[{name:"wrapWithPanel",type:"switch",mode:"inline",className:"block",label:"用 Panel 包裹",pipeIn:(0,o.defaultValue)(!0),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"关闭后,表单只会展示表单项,标题和操作栏将不会显示。",placement:"left"}},{name:"mode",label:"展示模式",type:"button-group-select",size:"sm",pipeIn:(0,o.defaultValue)("normal",!1),options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,o.getSchemaTpl)("horizontal",{visibleOn:'this.mode == "horizontal"'}),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{name:"panelClassName",visibleOn:"this.wrapWithPanel !== false",label:"Panel 的 CSS 类名",description:"可以设置 Panel--info 之类的"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("name",{test:!t}),{name:"debug",label:"开启调试",type:"switch",mode:"inline",labelRemark:"显示当前表单的数据在表单顶部"},(0,o.getSchemaTpl)("disabled"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.afterUpdate=function(e){var t,n=e.context;("form"===n.info.renderer.name||n.node.childRegions.some((function(e){return"body"===e.region}))&&(null===(t=n.diff)||void 0===t?void 0:t.some((function(e){var t;return"wrapWithPanel"===(null===(t=e.path)||void 0===t?void 0:t.join("."))}))))&&this.manager.buildPanels()},t}(i.BasePlugin);t.FormPlugin=u,(0,r.registerEditorPlugin)(u)},1808:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FormulaControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="formula",t.$schema="/schemas/FormulaControlSchema.json",t.name="公式",t.icon="fa fa-calculator",t.description="通过公式计算指定的变量值,并将其结果作用到指定的变量中",t.docLink="/amis/zh-CN/components/form/formula",t.tags=["表单项","功能"],t.scaffold={type:"formula",name:"formula"},t.previewSchema={type:"tpl",tpl:"计算公式"},t.panelTitle="公式",t.panelBody=[{label:"字段名",name:"name",type:"input-text",description:"公式计算结果会作用到此字段名对应的变量中。"},{type:"input-text",name:"value",label:"默认值"},{type:"input-text",name:"formula",label:"公式",description:"支持 JS 表达式,如: <code>data.var_a + 2</code>,即当表单项 <code>var_a</code> 变化的时候,会自动给当前表单项设置为 <code>var_a + 2</code> 的值。若设置为字符串,则需要加引号"},{type:"input-text",name:"condition",label:"作用条件",description:'支持如:<code>\\${xxx}</code>或者<code>data.xxx == "a"</code> 表达式来配置作用条件,当满足该作用条件时,会将计算结果设置到目标变量上。'},{name:"initSet",type:"switch",label:"是否初始应用",pipeIn:(0,r.defaultValue)(!0),description:"是否初始化的时候运行公式结果,并设置到目标变量上。",mode:"inline",className:"block"},{name:"autoSet",type:"switch",label:"是否自动应用",pipeIn:(0,r.defaultValue)(!0),mode:"inline",className:"block",description:"是否自动计算公式结果,有变化时自动设置到目标变量上。<br />关闭后,通过按钮也能触发运算。"}],t}return(0,a.__extends)(t,e),t.prototype.renderRenderer=function(e){return this.renderPlaceholder("功能组件(公式)",e.key)},t}(n(9933).BasePlugin);t.FormulaControlPlugin=o,(0,i.registerEditorPlugin)(o)},770:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GroupControlPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="group",t.$schema="/schemas/GroupControlSchema.json",t.name="表单组",t.icon="fa fa-id-card-o",t.description="水平展示多个表单项",t.docLink="/amis/zh-CN/components/form/group",t.tags=["表单项"],t.scaffold={type:"group",body:[{type:"input-text",label:"文本",name:"var1"},{type:"input-text",label:"文本",name:"var2"}],label:!1},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{mode:"normal"})]},t.regions=[{key:"body",label:"子表单",renderMethod:"renderInput",preferTag:"表单项",wrapperResolve:function(e){return e}}],t.panelTitle="表单组",t.panelBody=[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("label"),(0,s.getSchemaTpl)("description",{visible:"this.label"}),{children:i.default.createElement(r.Button,{className:"m-b",onClick:function(){return t.manager.showInsertPanel("body")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,s.getSchemaTpl)("remark"),(0,s.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,s.getSchemaTpl)("formItemMode"),(0,s.getSchemaTpl)("horizontalMode"),(0,s.getSchemaTpl)("horizontal",{visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal',pipeIn:function(e,t){return{leftRate:(e=e||t.formHorizontal&&(0,u.makeHorizontalDeeper)(t.formHorizontal,t.body.length))&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}}}),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal"),{name:"body",type:"combo",label:"列宽度配置",multiple:!0,removable:!1,addable:!1,multiLine:!0,visibleOn:'data.$$formMode != "inline"',items:[{type:"button-group-select",name:"columnRatio",label:"宽度设置",tiled:!0,pipeIn:function(e,t){return"number"==typeof e||t.columnClassName&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(t.columnClassName)?"custom":e||""},pipeOut:function(e){return"custom"===e?2:e},options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"custom",label:"自定义"}]},{label:"宽度占比",type:"input-range",name:"columnRatio",visibleOn:'typeof this.columnRatio === "number" || this.columnClassName && /\\bcol\\-(?:xs|sm|md|lg)\\-(\\d+)\\b/.test(this.columnClassName)',pipeIn:function(e,t){return"number"==typeof e?e:t.columnClassName&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(t.columnClassName)&&parseInt(RegExp.$1,10)||2},min:1,max:12,step:1}]},{type:"button-group-select",name:"gap",label:"间隔大小",pipeIn:(0,s.defaultValue)(""),size:"sm",tiled:!0,clearable:!0,options:[{value:"xs",label:"极小"},{value:"sm",label:"小"},{value:"md",label:"中"},{value:"lg",label:"大"}]},(0,s.getSchemaTpl)("className"),{name:"body",type:"combo",label:"列 CSS 类名配置",multiple:!0,removable:!1,addable:!1,items:[{type:"input-text",name:"columnClassName"}]}]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t.prototype.buildEditorContextMenu=function(e,t){var n=this,a=e.id,r=e.schema,i=(e.region,e.selections),o=e.info;i.length||o.plugin!==this||!Array.isArray(r.body)||r.body.length<2||t.push({label:"变成多行",onSelect:function(){var e=n.manager.store,t=e.schema;t=(0,u.JSONUpdate)(t,a,(0,u.JSONPipeIn)(r.body),!0),e.traceableSetSchema(t)}})},t}(l.BasePlugin);t.GroupControlPlugin=c,(0,o.registerEditorPlugin)(c)},3274:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="hidden",t.$schema="/schemas/HiddenControlSchema.json",t.name="隐藏域",t.icon="fa fa-eye-slash",t.description="隐藏表单项",t.docLink="/amis/zh-CN/components/form/hidden",t.tags=["表单项","功能"],t.scaffold={type:"hidden",name:"var1"},t.previewSchema={type:"tpl",tpl:"隐藏域"},t.panelTitle="隐藏域",t.panelBody=[{type:"input-text",name:"value",label:"默认值"}],t}return(0,a.__extends)(t,e),t.prototype.renderRenderer=function(e){return r.default.createElement("div",{key:e.key,className:"wrapper-sm b-a b-light m-b-sm"},r.default.createElement("span",{className:"text-muted"},"功能组件(隐藏字段)"))},t}(n(9933).BasePlugin);t.HiddenControlPlugin=o,(0,i.registerEditorPlugin)(o)},7589:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9756),o=n(9933),l=n(9547),s=(0,a.__importDefault)(n(6689)),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-array",t.$schema="/schemas/ArrayControlSchema.json",t.name="数组输入框",t.icon="fa fa-bars",t.description="Array 数组输入框,可自定义成员输入形式。其实是 Combo 的 flat 值打平的一种用法,可直接用 combo 代替。",t.docLink="/amis/zh-CN/components/form/array",t.tags=["表单项"],t.scaffold={type:"input-array",label:"数组输入框",name:"array",items:{type:"input-text",placeholder:"请输入"}},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:["row1",""],draggable:!0})]},t.panelTitle="数组框",t.panelBodyCreator=function(e){return[(0,l.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',pipeOut:l.valuePipeOut},{children:s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置子表单项")},{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},{label:"新增按钮文字",name:"addButtonText",type:"input-text",visibleOn:"data.addable",pipeIn:(0,l.defaultValue)("新增")},{type:"textarea",name:"scaffold",label:"新增初始值",visibleOn:"this.addable !== false",pipeOut:l.valuePipeOut,pipeIn:(0,l.defaultValue)("")},{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},(0,l.getSchemaTpl)("api",{name:"deleteApi",label:"删除前的请求",visibleOn:"data.removable"}),{label:"删除确认提示",name:"deleteConfirmText",type:"input-text",visibleOn:"data.deleteApi",pipeIn:(0,l.defaultValue)("确认要删除")},{name:"draggable",label:"启用拖拽排序",type:"switch",mode:"inline",className:"w-full"},{name:"draggableTip",visibleOn:"data.draggable",type:"input-text",label:"可拖拽排序提示文字",pipeIn:(0,l.defaultValue)("可通过拖动每行中的【交换】按钮进行顺序调整")},{name:"addButtonText",type:"input-text",label:"新增按钮文字",pipeIn:(0,l.defaultValue)("新增")},(0,l.getSchemaTpl)("minLength"),(0,l.getSchemaTpl)("maxLength")]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return(e=(0,u.JSONPipeOut)(e)).value||(e.value=[""]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"input-array"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置子表单项",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"input-array"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置子表单项",value:i.items,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{items:e}),t.panelChangeValue(e,(0,u.diff)(i,e))}})},t}(o.BasePlugin);t.ArrayControlPlugin=c,(0,i.registerEditorPlugin)(c)},7706:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CityControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-city",t.$schema="/schemas/CityControlSchema.json",t.name="城市选择",t.icon="fa fa-building-o",t.description="可配置是否选择区域或者城市",t.docLink="/amis/zh-CN/components/form/city",t.tags=["表单项"],t.scaffold={type:"input-city",label:"城市选择",name:"city"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="城市选择",t.panelBody=[{type:"switch",name:"allowDistrict",label:"允许选择区域",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{type:"switch",name:"allowCity",label:"允许选择城市",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},(0,r.getSchemaTpl)("switchDefaultValue"),{name:"value",type:"input-city",label:"默认值",visibleOn:'typeof data.value !== "undefined"',validations:"isNumeric",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"城市编码",placement:"left"}},{type:"switch",name:"searchable",label:"是否出搜索框",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!1)},(0,r.getSchemaTpl)("extractValue")],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.CityControlPlugin=o,(0,i.registerEditorPlugin)(o)},6956:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-color",t.$schema="/schemas/ColorControlSchema.json",t.name="颜色框",t.icon="fa fa-eyedropper",t.description="支持<code>hex、hls、rgb、rgba</code>格式,默认为<code>hex</code>格式",t.docLink="/amis/zh-CN/components/form/input-color",t.tags=["表单项"],t.scaffold={type:"input-color",label:"颜色",name:"color"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="颜色框",t.panelBody=[{label:"格式",name:"format",type:"button-group-select",size:"sm",value:"hex",options:["hex","hsl","rgb","rgba"],onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("presetColors","")}},(0,r.getSchemaTpl)("switchDefaultValue"),t.getConditionalColorPanel("hex"),t.getConditionalColorPanel("hsl"),t.getConditionalColorPanel("rgb"),t.getConditionalColorPanel("rgba"),(0,r.getSchemaTpl)("switchDefaultValue",{name:"presetColors",label:"设置选择器中颜色默认值",description:"为空时不显示选择器中的默认值"}),t.getConditionalColorArray("hex"),t.getConditionalColorArray("hsl"),t.getConditionalColorArray("rgb"),t.getConditionalColorArray("rgba"),(0,r.getSchemaTpl)("clearable",{label:"显示清除按钮",pipeIn:(0,r.defaultValue)(!0)})],t}return(0,a.__extends)(t,e),t.prototype.getConditionalColorPanel=function(e){return{type:"input-color",name:"value",format:e,visibleOn:'typeof this.value !== "undefined" && this.format==="'+e+'"',label:"默认值"}},t.prototype.getConditionalColorArray=function(e){return{type:"input-array",name:"presetColors",label:"选择器中颜色默认值",addable:!0,removable:!0,visibleOn:'typeof this.presetColors !== "undefined" && this.format === "'+e+'"',items:{type:"input-color",format:e},value:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]}},t}(n(9933).BasePlugin);t.ColorControlPlugin=o,(0,i.registerEditorPlugin)(o)},4189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=n(9933),s=(0,a.__importDefault)(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-date",t.$schema="/schemas/DateControlSchema.json",t.order=-450,t.icon="fa fa-calendar",t.name="日期框",t.description="年月日选择,支持相对值设定,如<code>+2days</code>两天后",t.docLink="/amis/zh-CN/components/form/date",t.tags=["表单项"],t.scaffold={type:"input-date",label:"日期",name:"date"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="日期配置",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择日期")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-date",name:"value",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]}],t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.DateControlPlugin=u,(0,o.registerEditorPlugin)(u)},3751:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangeControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=n(9933),s=(0,a.__importDefault)(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-date-range",t.$schema="/schemas/DateRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="日期范围",t.description="日期范围选择,可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/date-range",t.tags=["表单项"],t.scaffold={type:"input-date-range",label:"日期范围",name:"date-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="日期范围",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择日期范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")})):""},pipeOut:function(e,t,n){var a=n.format;if(a){var r=e.split(",");e=r.map((function(e){return(0,s.default)(parseInt(e,10),"X").format(a)})).join(",")}return e}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"ranges",label:"日期范围快捷键",description:"比如 today, yesterday, 1dayago, 7daysago, 90daysago, prevweek, thismonth, prevmonth, prevquarter, thisquarter"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.DateRangeControlPlugin=u,(0,o.registerEditorPlugin)(u)},8107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=n(9933),s=(0,a.__importDefault)(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-datetime",t.$schema="/schemas/DateTimeControlSchema.json",t.icon="fa fa-calendar",t.name="日期时间",t.description="年月日时分选择",t.docLink="/amis/zh-CN/components/form/datetime",t.tags=["表单项"],t.scaffold={type:"input-datetime",label:"日期时间",name:"datetime"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="日期时间",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择日期时间")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-datetime",name:"value",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"inputFormat",label:"显示格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("YYYY-MM-DD HH:mm")},{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]}],t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.DateTimeControlPlugin=u,(0,o.registerEditorPlugin)(u)},6083:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeRangeControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=n(9933),s=(0,a.__importDefault)(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-datetime-range",t.$schema="/schemas/DateTimeRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="日期时间范围",t.description="日期时间范围选择,可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/input-datetime-range",t.tags=["表单项"],t.scaffold={type:"input-datetime-range",label:"日期时间范围",name:"input-datetime-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="日期时间范围",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择日期时间范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")})):""},pipeOut:function(e,t,n){var a=n.format;if(a){var r=e.split(",");e=r.map((function(e){return(0,s.default)(parseInt(e,10),"X").format(a)})).join(",")}return e}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期时间",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期时间",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"ranges",label:"日期范围快捷键",description:"比如 today, yesterday, 1dayago, 7daysago, 90daysago, prevweek, thismonth, prevmonth, prevquarter, thisquarter"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.DateTimeRangeControlPlugin=u,(0,o.registerEditorPlugin)(u)},5225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EmailControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-email",t.$schema="/schemas/TextControlSchema.json",t.name="邮箱框",t.icon="fa fa-envelope-o",t.description="验证输入是否符合邮箱的格式",t.scaffold={type:"input-email",label:"邮箱",name:"email"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle=t.name,t}return(0,a.__extends)(t,e),t}(n(9890).TextControlPlugin);t.EmailControlPlugin=i,(0,r.registerEditorPlugin)(i)},377:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-excel",t.$schema="/schemas/ExcelControlSchema.json",t.name="上传 Excel",t.icon="fa fa-eyedropper",t.description="自动解析 Excel",t.docLink="/amis/zh-CN/components/form/input-excel",t.tags=["表单项"],t.scaffold={type:"input-excel",label:"Excel",name:"excel"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="上传 Excel",t.panelBody=[{label:"解析模式",name:"parseMode",type:"select",options:[{label:"对象",value:"object"},{label:"数组",value:"array"}]},{type:"switch",name:"allSheets",label:"是否解析所有 Sheet",mode:"inline",className:"w-full"},{type:"switch",name:"plainText",label:"是否解析为纯文本",pipeIn:(0,r.defaultValue)(!0),mode:"inline",className:"w-full"},{type:"switch",name:"includeEmpty",label:"是否包含空内容",mode:"inline",visibleOn:'data.parseMode === "array"',className:"w-full"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ExcelControlPlugin=o,(0,i.registerEditorPlugin)(o)},6253:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-file",t.$schema="/schemas/FileControlSchema.json",t.name="文件上传",t.icon="fa fa-upload",t.description="可上传多个文件,可配置是否自动上传以及大文件分片上传",t.docLink="/amis/zh-CN/components/form/file",t.tags=["表单项"],t.scaffold={type:"input-file",label:"文件上传",name:"file"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="文件域",t.panelBody=[(0,r.getSchemaTpl)("fieldSet",{title:"常规",body:[{type:"input-text",name:"btnLabel",label:"上传按钮名称",value:"请选择文件"},(0,r.getSchemaTpl)("api",{label:"文件接收器",name:"receiver",description:"默认不填写将上传到 bos,可以在系统配置中设置为自己的 bos 地址。",value:"/api/upload/file",__isUpload:!0}),(0,r.getSchemaTpl)("autoFill"),{type:"fieldSet",title:"分块上传相关",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"button-group-select",name:"useChunk",label:"启用分块",size:"xs",pipeOut:r.valuePipeOut,value:"auto",options:[{label:"自动",value:"auto"},{label:"启用",value:!0},{label:"关闭",value:!1}]},{name:"chunkSize",type:"input-number",label:"分块大小",visibleOn:"data.useChunk != false",value:5242880},(0,r.getSchemaTpl)("api",{name:"startChunkApi",label:"startChunkApi",value:"/api/upload/startChunk"}),(0,r.getSchemaTpl)("api",{name:"chunkApi",label:"chunkApi",value:"/api/upload/chunk"}),(0,r.getSchemaTpl)("api",{name:"finishChunkApi",label:"finishChunkApi",value:"/api/upload/finishChunk"})]},{type:"input-text",name:"accept",label:"文件类型",value:"",description:"请填写文件的 <code>mime-types</code>,参考 <code>input[type=file]</code> 的 <code>accept</code> 说明"},(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("multiple",{pipeIn:(0,r.defaultValue)(!1)}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue")]}),(0,r.getSchemaTpl)("fieldSet",{title:"样式",collapsed:!0,body:[(0,r.getSchemaTpl)("className",{name:"btnClassName",label:"按钮 CSS 类名",pipeIn:(0,r.defaultValue)("btn-sm btn-info")}),(0,r.getSchemaTpl)("className",{name:"btnUploadClassName",label:"上传按钮 CSS 类名",pipeIn:(0,r.defaultValue)("btn-sm btn-success")})]}),(0,r.getSchemaTpl)("fieldSet",{title:"其他",collapsed:!0,body:[{name:"maxSize",type:"input-number",label:"文件最大体积",description:"超出大小不允许上传,单位字节"},{name:"maxLength",type:"input-number",label:"文件最大数量",description:"超出数量不允许上传",visibleOn:"data.multiple != false"},{name:"fileField",type:"input-text",label:"文件域名称",value:"file"},{name:"asBase64",type:"switch",mode:"inline",className:"block",label:"作为 Base64 提交",hiddenOn:"data.asBlob",description:"小文件时可以使用,默认给 Form 提交的是文件下载地址,设置后给 Form 提交文件内容的 base64 格式字符串。"},{name:"asBlob",type:"switch",mode:"inline",className:"block",label:"作为二进制提交",hiddenOn:"data.asBase64",description:"File 控件不接管文件上传,直接由表单的保存接口完成。和 Base64 选项二选一。"},{name:"autoUpload",type:"switch",mode:"inline",className:"block",label:"是否自动上传",value:!0},{name:"hideUploadButton",type:"switch",mode:"inline",className:"block",label:"是否隐藏上传按钮",value:!1}]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.FileControlPlugin=o,(0,i.registerEditorPlugin)(o)},2053:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputGroupControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-group",t.$schema="/schemas/InputGroupControlSchema.json",t.name="输入组合",t.icon="fa fa-object-group",t.description="输入组合,支持多种类型的控件组合",t.docLink="/amis/zh-CN/components/form/input-group",t.tags=["表单项"],t.scaffold={type:"input-group",name:"input-group",label:"input 组合",body:[{type:"input-text",placeholder:"搜索作业ID/名称",inputClassName:"b-r-none p-r-none",name:"input-group"},{type:"submit",label:"提交",level:"primary"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="Input 组合",t.panelBody=[[{name:"body",type:"combo",multiple:!0,addable:!1,draggable:!0,draggableTip:"可排序、可移除、如要编辑请在预览区选中编辑",editable:!1,visibleOn:"this.body && this.body.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<%= data.label %><% if (data.icon) { %><i class="<%= data.icon %>"/><% }%>'}]},{children:r.default.createElement(i.Button,{className:"m-b",onClick:function(){return t.manager.showInsertPanel("body")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,o.getSchemaTpl)("formItemName",{required:!0})]],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.InputGroupControlPlugin=s,(0,l.registerEditorPlugin)(s)},200:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-image",t.$schema="/schemas/ImageControlSchema.json",t.name="图片上传",t.description="可以对图片实现裁剪,限制图片的宽高以及大小,支持自动上传及上传多张图片",t.docLink="/amis/zh-CN/components/form/image",t.tags=["表单项"],t.icon="fa fa-crop",t.scaffold={type:"input-image",label:"图片上传",name:"image",imageClassName:"r w-full"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="图片上传",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("multiple",{value:!1,visibleOn:"!data.crop",description:"开启后,不能同时开启裁剪功能"}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),{name:"maxSize",type:"input-number",label:"图片最大体积",description:"超出大小不允许上传,单位字节"},{name:"maxLength",type:"input-number",label:"图片最大数量",visibleOn:"data.multiple",description:"超出数量不允许上传"},(0,r.getSchemaTpl)("api",{label:"文件接收接口",name:"receiver",description:"文件接收接口,默认不填则上传到 hiphoto",value:"/api/upload",__isUpload:!0}),(0,r.getSchemaTpl)("autoFill"),{type:"input-text",value:".jpeg, .jpg, .png, .gif",name:"accept",label:"图片类型",description:"请填入图片的后缀或 <code>MimeType</code>,多个类型用<code>,</code>隔开"},{type:"input-text",name:"defaultImage",label:"占位图片地址"},{type:"switch",name:"fixedSize",value:!1,label:"是否开启固定尺寸",mode:"inline",className:"w-full"},{type:"switch",name:"hideUploadButton",value:!1,label:"隐藏上传按钮",mode:"inline",className:"w-full"},{type:"switch",name:"autoUpload",value:!1,label:"自动上传",mode:"inline",className:"w-full"},{name:"compress",type:"switch",label:"开启压缩",value:!0,mode:"inline",className:"w-full",description:"由 hiphoto 实现,自定义接口将无效"},{type:"combo",name:"compressOptions",multiLine:!0,label:"压缩配置",visibleOn:"data.compress",items:[{type:"input-number",label:"最大宽度",name:"maxWidth"},{type:"input-number",label:"最大高度",name:"maxHeight"}]},{name:"showCompressOptions",type:"switch",label:"是否显示压缩选项",mode:"inline",className:"w-full"},{name:"crop",type:"switch",label:"是否开启裁剪",mode:"inline",visibleOn:"!data.multiple",className:"w-full",description:"开启后,不能同时开启多选模式",pipeIn:function(e){return!!e}},{name:"crop.aspectRatio",type:"input-text",label:"裁剪比率",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.rotatable",type:"switch",label:"裁剪时是否可旋转",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.scalable",type:"switch",label:"裁剪时否可缩放",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.viewMode",type:"select",label:"裁剪区域限制",value:1,options:[{label:"无限制",value:0},{label:"绘图区域",value:1}],visibleOn:"data.crop",pipeOut:r.valuePipeOut},{type:"fieldSet",title:"图片限制",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-number",name:"limit.width",label:"限制宽度"},{type:"input-number",name:"limit.height",label:"限制高度"},{type:"input-number",name:"limit.maxWidth",label:"限制最大宽度"},{type:"input-number",name:"limit.maxHeight",label:"限制最大高度"},{type:"input-number",name:"limit.minWidth",label:"限制最小宽度"},{type:"input-number",name:"limit.minHeight",label:"限制最小高度"},{type:"input-number",name:"limit.aspectRatio",label:"限制宽高比率"},{type:"input-text",name:"limit.限制最小高度",label:"宽高比描述",description:"当宽高比没有满足条件时,此描述将作为提示信息显示"}]}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ImageControlPlugin=o,(0,i.registerEditorPlugin)(o)},4659:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KVControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-kv",t.$schema="/schemas/KVControlSchema.json",t.name="KV 键值对",t.icon="fa fa-eyedropper",t.description="用于编辑键值对类型的数据",t.docLink="/amis/zh-CN/components/form/input-kv",t.tags=["表单项"],t.scaffold={type:"input-kv",label:"KV",name:"kv"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="KV 键值对",t.panelBody=[{type:"input-text",name:"valueType",label:"值类型",pipeIn:(0,r.defaultValue)("input-text")},{type:"input-text",name:"keyPlaceholder",label:"key 的提示信息"},{type:"input-text",name:"valuePlaceholder",label:"value 的提示信息"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.KVControlPlugin=o,(0,i.registerEditorPlugin)(o)},8803:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonthControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-month",t.$schema="/schemas/MonthControlSchema.json",t.name="Month",t.icon="fa fa-calendar",t.description="月份选择",t.docLink="/amis/zh-CN/components/form/month",t.tags=["表单项"],t.scaffold={type:"input-month",name:"month"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="Month",t}return(0,a.__extends)(t,e),t}(n(4189).DateControlPlugin);t.MonthControlPlugin=i,(0,r.registerEditorPlugin)(i)},3428:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonthRangeControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-month-range",t.$schema="/schemas/MonthRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="月份范围",t.description="月份范围选择,可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/month-range",t.tags=["表单项"],t.scaffold={type:"input-month-range",label:"月份范围",name:"month-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="月份范围",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择月份范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X")},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-month-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e})):""}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.MonthRangeControlPlugin=l,(0,o.registerEditorPlugin)(l)},1143:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberControlPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-number",t.$schema="/schemas/NumberControlSchema.json",t.order=-410,t.name="数字框",t.icon="fa fa-sort-numeric-asc",t.description="支持设定最大值和最小值,以及步长与精度",t.docLink="/amis/zh-CN/components/form/number",t.tags=["表单项"],t.scaffold={type:"input-number",label:"数字",name:"number-text"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:88})]},t.panelTitle="数字框",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{type:"input-text",name:"min",label:"最小值",description:"请输入数字或使用 <code>\\${xxx}</code> 来获取变量,否则该配置不生效"},{type:"input-text",name:"max",label:"最大值",description:"请输入数字或使用 <code>\\${xxx}</code> 来获取变量,否则该配置不生效"},{type:"input-number",name:"step",label:"步长"},{type:"input-number",name:"precision",label:"小数点精度",min:0,max:100},{type:"input-array",name:"unitOptions",label:"单位选项",items:{type:"input-text"}}],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.NumberControlPlugin=l,(0,r.registerEditorPlugin)(l)},812:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-password",t.$schema="/schemas/TextControlSchema.json",t.name="密码框",t.icon="fa fa-asterisk",t.description="验证输入是否符合邮箱的格式",t.scaffold={type:"input-password",label:"密码",name:"password"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle=t.name,t}return(0,a.__extends)(t,e),t}(n(9890).TextControlPlugin);t.PasswordControlPlugin=i,(0,r.registerEditorPlugin)(i)},5922:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputQuarterPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-quarter",t.$schema="/schemas/QuarterControlSchema.json",t.name="Quarter",t.icon="fa fa-calendar",t.description="季度选择",t.docLink="/amis/zh-CN/components/form/month",t.tags=["表单项"],t.scaffold={type:"input-quarter",name:"month"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="Quarter",t}return(0,a.__extends)(t,e),t}(n(4189).DateControlPlugin);t.InputQuarterPlugin=i,(0,r.registerEditorPlugin)(i)},8859:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QuarterRangePlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-quarter-range",t.$schema="/schemas/MonthRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="季度范围",t.description="月份范围选择,可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/quarter-range",t.tags=["表单项"],t.scaffold={type:"input-quarter-range",label:"季度范围",name:"quarter-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="季度范围",t.panelBody=[(0,i.getSchemaTpl)("placeholder",{pipeIn:(0,i.defaultValue)("请选择月份范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("X")},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-quarter-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e})):""}}]},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法,同时支持变量如<code>\\${start_date}</code>"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.QuarterRangePlugin=l,(0,o.registerEditorPlugin)(l)},6772:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RangeControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-range",t.$schema="/schemas/RangeControlSchema.json",t.name="滑块",t.icon="fa fa-sliders",t.description="选择某个值或者某个范围",t.docLink="/amis/zh-CN/components/form/range",t.tags=["表单项"],t.scaffold={type:"input-range",label:"滑块",name:"range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="滑块",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",validations:"isNumeric",visibleOn:'typeof data.value !== "undefined" && !data.multiple',pipeIn:function(e){return"number"==typeof e?e:0},pipeOut:function(e,t,n){return e<n.min&&n.min||e>n.max&&n.max||e}},{type:"combo",name:"value",visibleOn:'typeof data.value !== "undefined" && this.multiple',items:[{type:"input-number",validations:"isNumeric",name:"min",label:"小值"},{type:"input-number",validations:"isNumeric",name:"max",label:"大值"}]},{label:"最小值",name:"min",type:"input-number",value:0},{label:"最大值",name:"max",type:"input-number",value:100},{label:"步长",name:"step",type:"input-number",value:1},{type:"input-text",name:"unit",label:"单位",value:""},{type:"switch",name:"showInput",mode:"inline",label:"是否显示输入框",value:!1},(0,r.getSchemaTpl)("clearable"),(0,r.getSchemaTpl)("multiple",{pipeIn:(0,r.defaultValue)(!1)}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter")],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.RangeControlPlugin=o,(0,i.registerEditorPlugin)(o)},5489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RangeControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-rating",t.$schema="/schemas/RatingControlSchema.json",t.name="评分",t.icon="fa fa-star-o",t.description="支持只读、半星选择",t.docLink="/amis/zh-CN/components/form/range",t.tags=["表单项"],t.scaffold={type:"input-rating",label:"评分",name:"rating"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:3})]},t.panelTitle="评分",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{label:"最大值",name:"count",type:"input-number",value:5},{type:"switch",name:"half",mode:"inline",className:"w-full",label:"允许半星",value:!1},{type:"switch",name:"allowClear",mode:"inline",className:"w-full",label:"可清除",description:"是否允许再次点击后清除",value:!1},(0,r.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.RangeControlPlugin=o,(0,i.registerEditorPlugin)(o)},8087:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-repeat",t.$schema="/schemas/RepeatControlSchema.json",t.name="重复周期选择",t.icon="fa fa-repeat",t.description="选择重复的频率,如每时、每天、每周等",t.docLink="/amis/zh-CN/components/form/repeat",t.tags=["表单项"],t.scaffold={type:"input-repeat",label:"周期",name:"repeat"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="周期",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{name:"options",type:"select",label:"启用单位",options:"secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly".split(","),value:"hourly,daily,weekly,monthly",multiple:!0}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.RepeatControlPlugin=o,(0,i.registerEditorPlugin)(o)},8987:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-rich-text",t.$schema="/schemas/RichTextControlSchema.json",t.name="富文本编辑器",t.icon="fa fa-newspaper-o",t.description="可自定义富文本的配置栏",t.docLink="/amis/zh-CN/components/form/rich-text",t.tags=["表单项"],t.scaffold={type:"input-rich-text",label:"富文本",name:"rich-text"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="富文本",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("api",{name:"receiver",label:"文件接收接口",value:"/api/upload/image",__isUpload:!0}),{type:"select",name:"vendor",label:"编辑器类型",value:"tinymce",options:["tinymce","froala"]},(0,r.getSchemaTpl)("fieldSet",{title:"froala 设置项",visibleOn:'data.vendor === "froala"',body:[{type:"combo",name:"options",noBorder:!0,multiLine:!0,items:[{type:"select",name:"language",label:"语言",labelRemark:"鼠标覆盖配置栏中配置时显示的提示语言",defaultValue:"zh_cn",options:[{label:"中文",value:"zh_cn"},{label:"英文",value:"en_us"}]},{type:"textarea",name:"toolbarButtons",label:"大屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 1200px",description:'使用空格分开配置,使用<code>|</code>可将配置栏分组,<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options">参考文档</a>',minRows:5,value:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}},{type:"textarea",name:"toolbarButtonsMD",label:"中屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 992px",description:'使用空格分开配置,使用<code>|</code>可将配置栏分组,<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options">参考文档</a>',minRows:5,pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}},{type:"textarea",name:"toolbarButtonsSM",label:"小屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 768px",description:'使用空格分开配置,使用<code>|</code>可将配置栏分组,<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options">参考文档</a>',minRows:5,pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}}]}]}),(0,r.getSchemaTpl)("fieldSet",{title:"tinymce 设置项",visibleOn:'data.vendor === "tinymce"',body:[{type:"combo",name:"options",noBorder:!0,multiLine:!0,items:[{type:"switch",label:"是否显示菜单栏",value:"true",name:"menubar"},{type:"input-number",label:"高度",min:0,value:400,name:"height"},{type:"textarea",name:"plugins",label:"启用的插件",description:'使用空格分开配置,<a target="_blank" href="https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/">参考文档</a>',value:"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking table emoticons template paste help"},{type:"textarea",name:"toolbar",label:"工具栏",value:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | help"}]}]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.RichTextControlPlugin=o,(0,i.registerEditorPlugin)(o)},4560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubFormControlPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-sub-form",t.$schema="/schemas/SubFormControlSchema.json",t.name="子表单项",t.icon="fa fa-window-restore",t.description="SubForm, 配置一个子<code>form</code>作为当前的表单项",t.docLink="/amis/zh-CN/components/form/subform",t.tags=["表单项"],t.scaffold={type:"input-sub-form",name:"subform",label:"子表单",form:{title:"标题",body:[{type:"input-text",label:"文本",name:"text"}]}},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="子表单项",t.panelBodyCreator=function(e){return[{children:function(n){return n.value,n.onChange,i.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员渲染器")}},{name:"labelField",type:"input-text",value:"label",label:"名称字段名",description:"当值中存在这个字段,则按钮名称将使用此字段的值来展示。"},{name:"btnLabel",label:"按钮标签名",value:"设置",type:"input-text"},{name:"minLength",visibleOn:"data.multiple",label:"允许最少个数",type:"input-number"},{name:"maxLength",visibleOn:"data.multiple",label:"允许最多个数",type:"input-number"}]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return(e=(0,s.JSONPipeOut)(e)).value||(e.value=[""]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"input-sub-form"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"input-sub-form"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);if(r&&i){var o=i.form,l=o.title,u=o.actions,c=o.name,d=o.size,p=o.closeOnEsc,f=o.showCloseButton,m=o.bodyClassName,h=(o.type,(0,a.__rest)(o,["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"])),v={title:l,actions:u,name:c,size:d,closeOnEsc:p,showCloseButton:f,bodyClassName:m,type:"dialog",body:(0,a.__assign)({type:"form"},h)};this.manager.openSubEditor({title:"配置子表单项",value:v,memberImmutable:["body"],onChange:function(e){var n=e.body[0];delete(e=(0,a.__assign)((0,a.__assign)({},i),{form:n})).form.type,t.panelChangeValue(e,(0,s.diff)(i,e))}})}},t}(l.BasePlugin);t.SubFormControlPlugin=u,(0,o.registerEditorPlugin)(u)},8332:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableControlPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(8579)),o=n(9547),l=n(9756),s=n(9933),u=n(3893),c=n(3570),d=n(6374),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-table",t.$schema="/schemas/TableControlSchema.json",t.name="表格编辑框",t.icon="fa fa-table",t.description="可以用来展现数据的,可以用来展示数组类型的数据,比如 <code>multiple</code> 的子 <code>form</code>",t.docLink="/amis/zh-CN/components/form/table",t.tags=["表单项"],t.scaffold={type:"input-table",name:"table",label:"表格表单",columns:[{label:"color",name:"color",quickEdit:{type:"input-color"}},{label:"说明文字",name:"name",quickEdit:{type:"input-text",mode:"inline"}}],strictMode:!0},t.regions=[{key:"columns",label:"列集合",renderMethod:"renderTableContent",preferTag:"展示",dndMode:"position-h"}],t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:[{color:"green",name:"绿色"}]})},t.scaffoldForm={title:"快速构建表格",body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:"新增一列",draggable:!0,items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"input-text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],canRebuild:!0},t.panelTitle="表格编辑",t.panelBodyCreator=function(e){return e.schema.type,(0,o.getSchemaTpl)("tabs",[{title:"常规",body:(0,i.default)([(0,o.getSchemaTpl)("formItemName",{required:!0}),(0,o.getSchemaTpl)("label"),(0,o.getSchemaTpl)("description"),{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full"},{type:"input-text",name:"addBtnLabel",label:"增加按钮名称",visibleOn:"data.addable",pipeIn:(0,o.defaultValue)("")},{name:"addBtnIcon",label:"增加按钮图标",type:"icon-picker",visibleOn:"data.addable"},(0,o.getSchemaTpl)("api",{name:"addApi",label:"新增时提交的 API",visibleOn:"data.addable"}),{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full"},{type:"input-text",name:"deleteBtnLabel",label:"删除按钮名称",visibleOn:"data.removable",pipeIn:(0,o.defaultValue)("")},{name:"deleteBtnIcon",label:"删除按钮图标",type:"icon-picker",visibleOn:"data.removable"},(0,o.getSchemaTpl)("api",{name:"deleteApi",label:"删除时提交的 API",visibleOn:"data.removable"}),{label:"是否可编辑",type:"switch",name:"editable",mode:"inline",className:"w-full"},{type:"input-text",name:"editBtnLabel",label:"编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,o.defaultValue)("")},{name:"editBtnIcon",label:"编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{label:"是否可复制",type:"switch",name:"copyable",mode:"inline",className:"w-full"},{type:"input-text",name:"copyBtnLabel",label:"复制按钮名称",visibleOn:"data.copyable",pipeIn:(0,o.defaultValue)("")},{name:"copyBtnIcon",label:"复制按钮图标",type:"icon-picker",visibleOn:"data.copyable"},(0,o.getSchemaTpl)("api",{name:"updateApi",label:"修改时提交的 API",visibleOn:"data.editable"}),{type:"input-text",name:"confirmBtnLabel",label:"确认编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,o.defaultValue)("")},{name:"confirmBtnIcon",label:"确认编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{type:"input-text",name:"cancelBtnLabel",label:"取消编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,o.defaultValue)("")},{name:"cancelBtnIcon",label:"取消编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{label:"是否可拖拽排序",type:"switch",name:"draggable",mode:"inline",className:"w-full"},{label:"确认模式",type:"switch",name:"needConfirm",mode:"inline",className:"w-full"},{label:"严格模式",type:"switch",name:"strictMode",value:!0,mode:"inline",className:"w-full"},{label:"获取父级数据",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'配置"canAccessSuperData": true 同时配置 "strictMode": false 开启此特性,初始会自动映射父级数据域的同名变量。需要注意的是,这里只会初始会映射,一旦修改过就是当前行数据为主了。也就是说,表单项类型的,只会起到初始值的作用',placement:"left"},type:"switch",onChange:function(e,t,n,a){e&&!t?a.setValues({strictMode:!1}):a.setValues({strictMode:!0})},name:"canAccessSuperData",mode:"inline",className:"w-full"}])},{title:"外观",body:[(0,o.getSchemaTpl)("formItemMode"),(0,o.getSchemaTpl)("horizontalMode"),(0,o.getSchemaTpl)("horizontal",{label:"",visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal'}),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,o.getSchemaTpl)("className",{label:"Input CSS 类名",name:"inputClassName"}),(0,o.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("required"),(0,o.getSchemaTpl)("validateOnChange"),(0,o.getSchemaTpl)("submitOnChange"),(0,o.getSchemaTpl)("disabled"),(0,o.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){var t=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,e.data):(0,r.resolveVariable)("${items}",e.data);if(Array.isArray(t)&&t.length)e.value=t.slice(0,10);else{var n={};Array.isArray(e.columns)&&e.columns.forEach((function(e){e.name&&(0,u.setVariable)(n,e.name,(0,d.mockValue)(e))})),e.value=(0,c.repeatArray)(n,1).map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{id:t+1})}))}return e},t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e,"展示")},t.prototype.beforeInsert=function(e){var t,n,r,i,o=e.context;o.info.plugin!==this&&(null===(t=o.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"columns"!==o.region||(o.data=(0,a.__assign)((0,a.__assign)({},o.data),{label:null!==(i=null!==(n=o.data.label)&&void 0!==n?n:null===(r=o.subRenderer)||void 0===r?void 0:r.name)&&void 0!==i?i:"列名称"}))},t}(s.BasePlugin);t.TableControlPlugin=p,(0,l.registerEditorPlugin)(p)},9114:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TagControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-tag",t.$schema="/schemas/TagControlSchema.json",t.order=-420,t.name="标签",t.icon="fa fa-tag",t.description="配置<code>options</code>可以实现选择选项",t.docLink="/amis/zh-CN/components/form/tag",t.tags=["表单项"],t.scaffold={type:"input-tag",label:"标签",name:"tag",options:["红色","绿色","蓝色"]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"红色"})},t.panelTitle="标签",t.panelBody=[{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options",{visibleOn:"data.autoComplete !== false",description:"设置选项后,输入时会下拉这些选项供用户参考。"}),(0,r.getSchemaTpl)("source",{visibleOn:"data.autoComplete !== false"}),{type:"input-text",name:"optionsTip",label:"选项提示",value:"最近您使用的标签"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TagControlPlugin=o,(0,i.registerEditorPlugin)(o)},9890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControlPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-text",t.$schema="/schemas/TextControlSchema.json",t.order=-500,t.name="文本框",t.icon="fa fa-terminal",t.description="配置<code>options</code>可以实现选择选项,效果同<code>select</code>",t.docLink="/amis/zh-CN/components/form/text",t.tags=["表单项"],t.scaffold={type:"input-text",label:"文本",name:"text"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="文本框",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,o.getSchemaTpl)("hint"),(0,o.getSchemaTpl)("showCounter"),{name:"addOn",label:"启用 addOn",type:"switch",mode:"inline",className:"w-full",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{label:"按钮",type:"button"}:null}},{type:"combo",multiLine:!0,name:"addOn",visibleOn:"data.addOn",items:[{name:"type",label:"类型",type:"button-group-select",size:"xs",options:[{label:"文本",value:"text"},{label:"按钮",value:"button"},{label:"提交",value:"submit"}]},{name:"label",label:"文字",type:"input-text",visibleOn:'this.type === "text"'},{name:"icon",label:"Icon",type:"icon-picker",visibleOn:'this.type === "text"'},(0,o.getSchemaTpl)("className",{visibleOn:'this.type === "text"'}),{name:"position",label:"位置",type:"button-group-select",size:"xs",pipeIn:(0,o.defaultValue)("right"),options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}]},{name:"autoComplete",label:"自动补全",mode:"inline",className:"w-full",type:"switch",pipeIn:function(e){return!1!==e},pipeOut:function(e){return!!e&&""},onChange:function(e,t,n,a){""===t||t?a.setValues({__options:a.data.options,options:[]}):a.setValues({options:a.data.__options})}},(0,o.getSchemaTpl)("options",{visibleOn:"data.autoComplete !== false",description:"设置选项后,输入时会下拉这些选项供用户参考。"}),(0,o.getSchemaTpl)("source",{visibleOn:"data.autoComplete !== false"}),(0,o.getSchemaTpl)("api",{name:"autoComplete",label:"自动补全接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 `\\${term}` 中。",visibleOn:"data.autoComplete !== false"}),(0,o.getSchemaTpl)("multiple",{visibleOn:"data.options || data.source || data.autoComplete"}),(0,o.getSchemaTpl)("joinValues"),(0,o.getSchemaTpl)("delimiter"),(0,o.getSchemaTpl)("extractValue"),(0,o.getSchemaTpl)("autoFill")],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.TextControlPlugin=l,(0,r.registerEditorPlugin)(l)},1533:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeControlPlugin=void 0;var a=n(752),r=n(1502),i=n(9547),o=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-time",t.$schema="/schemas/TimeControlSchema.json",t.name="时间框",t.icon="fa fa-clock-o",t.description="时分秒输入",t.docLink="/amis/zh-CN/components/form/time",t.tags=["表单项"],t.scaffold={type:"input-time",label:"时间",name:"time"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle="时间框",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 <code>now、+1day、-2weeks</code>这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-time",name:"value",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"timeFormat",label:"值格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("HH:mm")},(0,i.getSchemaTpl)("clearable",{pipeIn:(0,i.defaultValue)(!0)}),{type:"input-text",name:"inputFormat",label:"显示格式",description:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',pipeIn:(0,i.defaultValue)("HH:mm")}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TimeControlPlugin=l,(0,o.registerEditorPlugin)(l)},8936:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-tree",t.$schema="/schemas/TreeControlSchema.json",t.name="树选择框",t.icon="fa fa-list-alt",t.description="树型结构来选择,可通过<code>options</code>来配置选项,也可通过<code>source</code>拉取选项",t.docLink="/amis/zh-CN/components/form/tree",t.tags=["表单项"],t.scaffold={type:"input-tree",label:"树",name:"tree",options:[{label:"选项A",value:"A",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle="树选择",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source",{sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a",children:[{label:"子选项",value:"c"}]},{label:"选项B",value:"b"}]}},null,2)}}),{label:"隐藏顶级",name:"hideRoot",type:"switch",mode:"inline",className:"w-full"},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",type:"switch",description:"选中父级时,孩子节点是否自动选中",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",disabledOn:"data.onlyChildren",mode:"inline",className:"w-full"},{name:"onlyChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否只包含子节点",disabledOn:"data.withChildren",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]}),(0,r.getSchemaTpl)("fieldSet",{title:"外观",body:[{label:"顶级文字",name:"rootLabel",type:"input-text",pipeIn:(0,r.defaultValue)("顶级"),visibleOn:"data.hideRoot !== true"},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"是否显示单选按钮",name:"showRadio",type:"switch",mode:"inline",className:"w-full",visibleOn:"!data.multiple"}]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TreeControlPlugin=o,(0,i.registerEditorPlugin)(o)},3581:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.URLControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-url",t.$schema="/schemas/TextControlSchema.json",t.name="URL输入框",t.icon="fa fa-link",t.description="验证输入是否为合法的 URL",t.scaffold={type:"input-url",label:"链接",name:"url"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle="URL",t}return(0,a.__extends)(t,e),t}(n(9890).TextControlPlugin);t.URLControlPlugin=i,(0,r.registerEditorPlugin)(i)},4950:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YearControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-year",t.$schema="/schemas/YearControlSchema.json",t.name="Year",t.icon="fa fa-calendar",t.description="年选择",t.docLink="/amis/zh-CN/components/form/year",t.tags=["表单项"],t.scaffold={type:"input-year",name:"year"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="Year",t}return(0,a.__extends)(t,e),t}(n(4189).DateControlPlugin);t.YearControlPlugin=i,(0,r.registerEditorPlugin)(i)},3482:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ItemPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=(0,a.__importDefault)(n(6918)),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="表单项",t.panelBodyCreator=function(e){var t=~["button","submit","reset"].indexOf(e.schema.type),n=~["button-toobar","container","fieldSet","group","grid","hbox","input-group","panel","service","tabs","table","elevator"].indexOf(e.schema.type),a=~["switch","wizard","diff-editor","editor","input-rating","input-text","textarea"].indexOf(e.schema.type),r=e.info.renderer;return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[t?null:(0,o.getSchemaTpl)("formItemName",{required:!n}),!1!==r.renderLabel?(0,o.getSchemaTpl)("label"):null,a?{type:"switch",name:"readOnly",label:"只读模式",mode:"inline",className:"w-full"}:null,{type:"switch",name:"disabled",label:"禁用",mode:"inline",className:"w-full"},(0,o.getSchemaTpl)("required"),(0,o.getSchemaTpl)("description"),(0,o.getSchemaTpl)("placeholder"),(0,o.getSchemaTpl)("remark"),!1!==r.renderLabel?(0,o.getSchemaTpl)("labelRemark"):null]},{title:"外观",body:[(0,o.getSchemaTpl)("formItemMode"),(0,o.getSchemaTpl)("horizontalMode"),(0,o.getSchemaTpl)("horizontal",{label:"",visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal'}),!1!==r.sizeMutable?(0,o.getSchemaTpl)("formItemSize"):null,(0,o.getSchemaTpl)("formItemInline"),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,o.getSchemaTpl)("className",{label:"控件 CSS 类名",name:"inputClassName"}),(0,o.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"this.description"})]},{title:"显隐",body:[(0,o.getSchemaTpl)("disabled"),(0,o.getSchemaTpl)("visible"),{type:"switch",name:"clearValueOnHidden",label:"隐藏时删除表单项值",mode:"inline",className:"w-full",disabledOn:'typeof this.visible === "boolean"'}]},{title:"验证",body:[(0,o.getSchemaTpl)("validations"),(0,o.getSchemaTpl)("validationErrors"),(0,o.getSchemaTpl)("validateOnChange"),(0,o.getSchemaTpl)("submitOnChange"),(0,o.getSchemaTpl)("api",{name:"validateApi",label:"校验接口",description:"单独校验这个表单项的接口"})]}])]},t}return(0,a.__extends)(t,e),t.prototype.buildEditorPanel=function(e,t){var n=e.info.renderer;e.selections.length||!e.info.hostId&&(null==n?void 0:n.isFormItem)&&t.push({key:"form-item",icon:"fa fa-desktop",title:this.panelTitle,render:this.manager.makeSchemaFormRender({body:this.panelBodyCreator(e)}),order:-200})},t.prototype.onDndAccept=function(e){var t=e.context,n=this.manager.store;if("schema"===t.sourceType){var a=n.getNodeById(t.sourceId);"body"!==(null==a?void 0:a.parentRegion)||"body"===t.targetRegion||~["button","reset","submit"].indexOf(t.data.type)||e.preventDefault()}},t.prototype.afterUpdate=function(e){var t,n,a=e.context;if(/\$/.test(a.info.renderer.name)&&(null===(t=a.diff)||void 0===t?void 0:t.some((function(e){var t;return"value"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})))){var r=(0,l.default)(a.diff,(function(e){var t;return"value"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})),i=null===(n=this.manager.store.getNodeById(a.id))||void 0===n?void 0:n.getComponent();null==i||i.props.onChange(null==r?void 0:r.rhs)}},t.prototype.beforeReplace=function(e){var t=e.context;t.info.renderer.isFormItem&&t.data&&t.subRenderer&&!~t.subRenderer.tags.indexOf("表单项")&&~t.subRenderer.tags.indexOf("展示")&&(t.data=(0,a.__assign)((0,a.__assign)({},t.data),{type:"static-"+t.data.type,label:t.data.label||t.schema.label,name:t.data.name||t.schema.name})),t.schema&&(t.data.name=t.schema.name||t.data.name)},t.prototype.buildEditorContextMenu=function(e,t){var n,r=this,i=(e.id,e.schema,e.region,e.selections);if(i.length&&!(i.length>3)){var o=i.concat(),l=o.shift(),u=l.node.parent;(null===(n=l.info.renderer)||void 0===n?void 0:n.isFormItem)&&!o.some((function(e){return e.node.parent!==u}))&&t.unshift({label:"合成一行",onSelect:function(){var e=r.manager.store,t=i.concat(),n=t.shift(),o=e.schema,l=[(0,a.__assign)({},n.schema)];delete l[0].$$id,t.forEach((function(e){l.push(e.node.schema),o=(0,s.JSONDelete)(o,e.id)})),o=(0,s.JSONUpdate)(o,n.id,(0,s.JSONPipeIn)({type:"group",body:l}),!0),e.traceableSetSchema(o)}},"|")}},t}(i.BasePlugin);t.ItemPlugin=u,(0,r.registerEditorPlugin)(u)},8952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list-select",t.$schema="/schemas/ListControlSchema.json",t.order=-430,t.name="列表选择",t.icon="fa fa-ellipsis-h",t.description="单选或者多选,支持<code>source</code>拉取选项,选项可配置图片,也可以自定义<code>HTML</code>配置",t.docLink="/amis/zh-CN/components/form/list",t.tags=["表单项"],t.scaffold={type:"list-select",label:"列表",name:"list",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"A"})]},t.panelTitle="列表选择",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"list-select",name:"value",label:"默认值",description:"请填入选项 Options 中 value 值",source:"${options}",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("multiple"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source")]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.ListControlPlugin=o,(0,i.registerEditorPlugin)(o)},1803:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocationControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="location-picker",t.$schema="/schemas/LocationControlSchema.json",t.name="地理位置选择",t.icon="fa fa-location-arrow",t.description="地理位置选择",t.docLink="/amis/zh-CN/components/form/location",t.tags=["表单项","功能"],t.scaffold={type:"location-picker",name:"location"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="地理位置选择",t.panelBody=[{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{type:"input-text",name:"ak",label:"百度地图的 AK",description:'请从<a href="http://lbsyun.baidu.com/" target="_blank">百度地图开放平台</a>获取'},{type:"select",name:"coordinatesType",label:"坐标格式",value:"bd09",options:[{label:"百度坐标",value:"bd09"},{label:"国测局坐标",value:"gcj02"}]}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.LocationControlPlugin=i,(0,r.registerEditorPlugin)(i)},6489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="matrix-checkboxes",t.$schema="/schemas/MatrixControlSchema.json",t.name="矩阵开关",t.icon="fa fa-th-large",t.description="可配置行单选,列单选,以及全部选项只能单选或者全部选项多选",t.docLink="/amis/zh-CN/components/form/matrrix",t.tags=["表单项"],t.scaffold={type:"matrix-checkboxes",name:"matrix",label:"矩阵开关",rowLabel:"行标题说明",columns:[{label:"列1"},{label:"列2"}],rows:[{label:"行1"},{label:"行2"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="矩阵开关",t.panelBody=[(0,r.getSchemaTpl)("api",{name:"source",label:"获取矩阵数据接口"}),(0,r.getSchemaTpl)("multiple",{value:!0}),{type:"button-group-select",name:"singleSelectMode",label:"单选模式",description:"行级、列级或者单个单元单选",size:"xs",mode:"inline",className:"w-full",visibleOn:"!this.multiple",options:[{label:"行级",value:"row"},{label:"列级",value:"column"},{label:"单个单元",value:"cell"}],pipeIn:(0,r.defaultValue)("column")},(0,r.getSchemaTpl)("fieldSet",{title:"矩阵配置",body:[{label:"列配置",name:"columns",type:"combo",multiple:!0,addButtonText:"添加一列",scaffold:{label:"列说明"},items:[{type:"input-text",name:"label",placeholder:"列说明"}]},{name:"rowLabel",label:"行标题文字",type:"input-text"},{label:"行配置",name:"rows",type:"combo",multiple:!0,scaffold:{label:"行说明"},addButtonText:"添加一行",items:[{type:"input-text",name:"label",placeholder:"行说明"}]}]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.MatrixControlPlugin=o,(0,i.registerEditorPlugin)(o)},7798:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NestedSelectControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="nested-select",t.$schema="/schemas/NestedSelectControlSchema.json",t.name="嵌套下拉框",t.icon="fa fa-indent",t.description="适用于选项中含有子项,可通过<code>source</code>拉取选项,支持多选",t.docLink="/amis/zh-CN/components/form/nested-select",t.tags=["表单项"],t.scaffold={type:"nested-select",label:"嵌套下拉框",name:"nestedSelect",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="嵌套下拉",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),{type:"switch",name:"searchable",label:"可否检索",mode:"inline",className:"w-full"},{type:"input-text",name:"searchPromptText",label:"搜索框占位文本"},{type:"input-text",name:"noResultsText",label:"无结果时的文本"},{type:"switch",name:"hideNodePathLabel",label:"隐藏选中节点的祖先节点文本信息",mode:"inline",className:"w-full"},{type:"switch",name:"enableNodePath",label:"节点路径模式",mode:"inline",className:"w-full"},{type:"switch",name:"onlyChildren",label:"选中父节点时只使用子节点的值",mode:"inline",className:"w-full"},{type:"input-text",name:"pathSeparator",visibleOn:"this.enableNodePath",label:"节点路径的分隔符"},(0,r.getSchemaTpl)("borderMode"),(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("api",{name:"source",label:"获取选项接口"}),(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",description:"选中父级时,孩子节点是否自动选中",type:"switch",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]}),(0,r.getSchemaTpl)("fieldSet",{title:"外观",body:[(0,r.getSchemaTpl)("className",{label:"菜单类名",name:"menuClassName"})]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.NestedSelectControlPlugin=o,(0,i.registerEditorPlugin)(o)},2125:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PickerControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(9547),l=n(9756),s=n(9933),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="picker",t.$schema="/schemas/PickerControlSchema.json",t.name="列表选取",t.icon="fa fa-window-restore",t.description="通过<code>pickerSchema</code>配置可供选取的数据源进行选择需要的数据,支持多选",t.docLink="/amis/zh-CN/components/form/picker",t.tags=["表单项"],t.scaffold={type:"picker",label:"列表选取",name:"picker",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="列表选取",t.panelBodyCreator=function(e){return[{type:"switch",name:"embed",mode:"inline",className:"w-full",label:"开启内嵌模式"},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,o.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,o.getSchemaTpl)("options"),(0,o.getSchemaTpl)("api",{name:"source",label:"获取选项接口"}),{children:r.default.createElement(i.Button,{size:"sm",level:"danger",className:"m-b",onClick:t.editDetail.bind(t,e.id),block:!0},"配置选框详情")},{label:"labelTpl",type:"textarea",name:"labelTpl",labelRemark:"已选定数据的展示样式",description:'支持使用 <code>\\${xxx}</code> 来获取变量,或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>'},{type:"button-group-select",name:"modalMode",label:"选框类型",value:"dialog",size:"xs",options:[{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},(0,o.getSchemaTpl)("multiple"),(0,o.getSchemaTpl)("joinValues"),(0,o.getSchemaTpl)("delimiter"),(0,o.getSchemaTpl)("extractValue"),(0,o.getSchemaTpl)("autoFill")]})]},t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=e.id;e.info.renderer.name===this.rendererName&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置选框详情",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,e.info.renderer.name===this.rendererName&&t.push("|",{label:"配置选框详情",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);if(r&&i){var o=r.getComponent(),l=(0,a.__assign)((0,a.__assign)({type:"crud",mode:"list"},i.pickerSchema||{listItem:{title:"${label}"}}),{api:i.source,pickerMode:!0,multiple:i.multiple});this.manager.openSubEditor({title:"配置选框详情",value:l,data:{options:o.props.options},onChange:function(e){delete(e=(0,a.__assign)((0,a.__assign)({},i),{pickerSchema:(0,a.__assign)({},e),source:e.api})).pickerSchema.api,delete e.pickerSchema.type,delete e.pickerSchema.pickerMode,delete e.pickerSchema.multiple,t.panelChangeValue(e,(0,u.diff)(i,e))}})}},t}(s.BasePlugin);t.PickerControlPlugin=c,(0,l.registerEditorPlugin)(c)},4715:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RadiosControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="radios",t.$schema="/schemas/RadiosControlSchema.json",t.order=-460,t.name="单选框",t.icon="fa fa-dot-circle-o",t.description="通过<code>options</code>配置选项,可通过<code>source</code>拉取选项",t.docLink="/amis/zh-CN/components/form/radios",t.tags=["表单项"],t.scaffold={type:"radios",label:"单选框",name:"radios",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"A"})]},t.panelTitle="单选框",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"radios",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]}),(0,r.getSchemaTpl)("fieldSet",{title:"外观",body:[{label:"选项在一行显示",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"每行显示多少列",name:"columnsCount",hiddenOn:'typeof data.inline === "undefined" || data.inline === true',type:"input-range",min:1,max:6,pipeIn:(0,r.defaultValue)(1)},(0,r.getSchemaTpl)("className",{label:"单个 Radio 的 CSS 类名",name:"itemClassName"})]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.RadiosControlPlugin=o,(0,i.registerEditorPlugin)(o)},8070:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResetControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="reset",t.name="重置",t.icon="fa fa-eraser",t.panelTitle="重置",t}return(0,a.__extends)(t,e),t}(n(6460).ButtonPlugin);t.ResetControlPlugin=i,(0,r.registerEditorPlugin)(i)},6311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="select",t.$schema="/schemas/SelectControlSchema.json",t.order=-480,t.name="下拉框",t.icon="fa fa-th-list",t.description="支持多选,输入提示,可使用<code>source</code>获取选项",t.docLink="/amis/zh-CN/components/form/select",t.tags=["表单项"],t.scaffold={type:"select",label:"选项",name:"select",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="下拉框",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",visibleOn:'!data.multiple && typeof this.value !== "undefined"'},{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:' data.multiple && typeof this.value !== "undefined"'},(0,o.getSchemaTpl)("clearable"),{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},{label:"是否默认选择第一个",name:"selectFirst",type:"switch",mode:"inline",className:"w-full"},(0,o.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,o.getSchemaTpl)("multiple"),{label:"选中内容以单行模式显示",name:"valuesNoWrap",type:"switch",mode:"inline",className:"w-full",visibleOn:"this.multiple"},{label:"可全选",name:"checkAll",type:"switch",mode:"inline",value:!1,className:"w-full",onChange:function(e,t,n,a){e&&a.setValueByName("multiple",!0)}},{label:"自定义菜单模板",name:"menuTpl",type:"input-text"},{label:"默认全选",name:"defaultCheckAll",type:"switch",value:!1,visibleOn:"this.checkAll",mode:"inline",className:"w-full"},{type:"input-text",name:"checkAllLabel",label:'默认为 "全选" 的文字',visibleOn:"this.checkAll",value:"全选"},(0,o.getSchemaTpl)("options"),(0,o.getSchemaTpl)("source"),(0,o.getSchemaTpl)("api",{name:"autoComplete",label:"自动完成接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 <code>\\${term}</code> 中。"}),(0,o.getSchemaTpl)("joinValues"),(0,o.getSchemaTpl)("delimiter"),(0,o.getSchemaTpl)("extractValue"),(0,o.getSchemaTpl)("autoFill"),(0,o.getSchemaTpl)("creatable"),(0,o.getSchemaTpl)("createBtnLabel",{visibleOn:"data.creatable"}),(0,o.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi",visibleOn:"data.creatable"}),{name:"addControls",visibleOn:"data.creatable",pipeIn:(0,o.defaultValue)([{type:"input-text",name:"label",label:!1,placeholder:"请输入名称"}]),asFormItem:!0,children:function(e){var n=e.value,a=e.onChange;return e.data,r.default.createElement(i.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){t.manager.openSubEditor({title:"配置新建选项表单项",value:{type:"dialog",body:n||[{type:"input-text",name:"label",label:!1,placeholder:"请输入名称"}]},onChange:function(e){return a(e,"addControls")}})},block:!0},"配置新建选项表单项")}},(0,o.getSchemaTpl)("editable"),(0,o.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,o.getSchemaTpl)("removable"),(0,o.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.SelectControlPlugin=s,(0,l.registerEditorPlugin)(s)},7681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StaticControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(1502),o=n(9547),l=n(9756),s=n(9933),u=n(6374),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="static",t.$schema="/schemas/StaticControlSchema.json",t.order=-390,t.name="静态展示框",t.icon="fa fa-info",t.description="纯用来展示数据,可用来展示<code>json、date、image、progress</code>等数据",t.docLink="/amis/zh-CN/components/form/static",t.tags=["表单项"],t.scaffold={type:"static",label:"描述"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{value:"静态值"})]},t.multifactor=!0,t.panelTitle="静态展示",t.panelBodyCreator=function(e){return[{children:r.default.createElement(i.Button,{size:"sm",level:"info",className:"m-b",block:!0,onClick:t.exchangeRenderer.bind(t,e.id)},"更改渲染器类型")},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{name:"quickEdit",label:"启用快速编辑",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.quickEdit",name:"quickEdit.mode",type:"button-group-select",value:"popOver",label:"快速编辑模式",size:"xs",mode:"inline",className:"w-full",options:[{label:"下拉",value:"popOver"},{label:"内嵌",value:"inline"}]},{visibleOn:"data.quickEdit",name:"quickEdit.saveImmediately",label:"是否立即保存",type:"switch",mode:"inline",className:"w-full",description:"开启后修改即提交,而不是标记修改批量提交。",descriptionClassName:"help-block m-b-none",pipeIn:function(e){return!!e}},(0,o.getSchemaTpl)("api",{label:"立即保存接口",description:"是否单独给立即保存配置接口,如果不配置,则默认使用quickSaveItemApi。",name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{visibleOn:"data.quickEdit",name:"quickEdit",asFormItem:!0,children:function(e){var n=e.value,o=e.onChange,l=e.data;!0===n&&(n={});var s=n.mode;return delete(n=(0,a.__assign)({type:"input-text",name:l.name},n)).mode,r.default.createElement(i.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置快速编辑类型",value:n,slot:{type:"form",mode:"normal",body:["$$"],wrapWithPanel:!1},onChange:function(e){return o((0,a.__assign)((0,a.__assign)({},e),{mode:s}),"quickEdit")}})}},"配置快速编辑")}},{name:"popOver",label:"启用查看更多展示",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{name:"popOver.mode",label:"查看更多弹出模式",type:"select",visibleOn:"data.popOver",pipeIn:(0,o.defaultValue)("popOver"),options:[{label:"默认",value:"popOver"},{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},{name:"popOver.position",label:"查看更多弹出模式",type:"select",visibleOn:'data.popOver && data.popOver.mode === "popOver"',pipeIn:(0,o.defaultValue)("center"),options:[{label:"目标中部",value:"center"},{label:"目标左上角",value:"left-top"},{label:"目标右上角",value:"right-top"},{label:"目标左下角",value:"left-bottom"},{label:"目标右下角",value:"right-bottom"},{label:"页面左上角",value:"fixed-left-top"},{label:"页面右上角",value:"fixed-right-top"},{label:"页面左下角",value:"fixed-left-bottom"},{label:"页面右下角",value:"fixed-right-bottom"}]},{visibleOn:"data.popOver",name:"popOver",asFormItem:!0,children:function(e){var n=e.value,o=e.onChange;return n=(0,a.__assign)({type:"panel",title:"查看详情",body:"内容详情"},n),r.default.createElement(i.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置查看更多展示内容",value:n,onChange:function(e){return o(e,"quickEdit")}})}},"查看更多内容配置")}},(0,o.getSchemaTpl)("borderMode"),{name:"copyable",label:"启用内容复制功能",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.copyable",name:"copyable.content",type:"textarea",label:"复制内容模板",description:"默认为当前字段值,可定制。"}]},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e,t){return e.$$id=t.id,void 0===e.value&&(e.value=(0,u.mockValue)(e)),e},t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e,"展示")},t}(s.BasePlugin);t.StaticControlPlugin=c,(0,l.registerEditorPlugin)(c)},7878:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitControlPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="submit",t.name="提交",t.panelTitle="提交",t}return(0,a.__extends)(t,e),t}(n(6460).ButtonPlugin);t.SubmitControlPlugin=i,(0,r.registerEditorPlugin)(i)},9940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="switch",t.$schema="/schemas/SwitchControlSchema.json",t.order=-400,t.name="开关",t.icon="fa fa-toggle-on",t.description="开关控件",t.docLink="/amis/zh-CN/components/form/switch",t.tags=["表单项"],t.scaffold={type:"switch",option:"开关",name:"switch"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)((0,a.__assign)({},t.scaffold),{label:"开关表单"})]},t.panelTitle="开关",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue",{pipeOut:function(e,t,n){return e?n.trueValue:void 0}}),{type:"switch",name:"value",label:"默认勾选",mode:"inline",className:"w-full",visibleOn:'typeof this.value !== "undefined"',pipeOut:function(e,t,n){return e?n.trueValue:n.falseValue}},{name:"option",type:"input-text",label:"选项说明"},{label:"选项位置",name:"optionAtLeft",type:"button-group-select",size:"sm",value:!1,options:[{label:"左",value:!0},{label:"右",value:!1}]},{type:"input-text",label:"勾选后的值",name:"trueValue",value:!0,pipeOut:r.valuePipeOut},{type:"input-text",label:"未勾选的值",name:"falseValue",value:!1,pipeOut:r.valuePipeOut},{name:"onText",type:"input-text",label:"开启时的文本"},{name:"offText",type:"input-text",label:"关闭时的文本"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.SwitchControlPlugin=o,(0,i.registerEditorPlugin)(o)},9352:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabsTransferPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tabs-transfer",t.$schema="/schemas/TransferControlSchema.json",t.name="组合穿梭器",t.icon="fa fa-th-list",t.description="组合穿梭器组件",t.docLink="/amis/zh-CN/components/form/transfer",t.tags=["表单项"],t.scaffold={label:"组合穿梭器",type:"tabs-transfer",name:"a",sortable:!0,searchable:!0,options:[{label:"成员",selectMode:"tree",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"用户",selectMode:"chained",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang2"}]},{label:"战士",children:[{label:"曹操",value:"caocao2"},{label:"钟无艳",value:"zhongwuyan2"}]},{label:"打野",children:[{label:"李白",value:"libai2"},{label:"韩信",value:"hanxin2"},{label:"云中君",value:"yunzhongjun2"}]}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="组合穿梭器",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:'typeof this.value !== "undefined"'},{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("api",{label:"检索接口",name:"searchApi"}),{label:"查询时勾选展示模式",name:"searchResultMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"}]},{label:"可排序",name:"sortable",type:"switch",mode:"inline",className:"w-full"},{label:"左侧的标题文字",name:"selectTitle",type:"input-text"},{label:"右侧结果的标题文字",name:"resultTitle",type:"input-text"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TabsTransferPlugin=o,(0,i.registerEditorPlugin)(o)},9351:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="textarea",t.$schema="/schemas/TextareaControlSchema.json",t.order=-490,t.name="多行文本框",t.icon="fa fa-paragraph",t.description="支持换行输入",t.docLink="/amis/zh-CN/components/form/textarea",t.tags=["表单项"],t.scaffold={type:"textarea",label:"多行文本",name:"textarea"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:(0,a.__assign)({},t.scaffold)},t.panelTitle="多行文本",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{type:"input-number",name:"minRows",value:3,label:"最小行数"},{type:"input-number",name:"maxRows",value:20,label:"最大行数"},(0,r.getSchemaTpl)("showCounter"),{type:"switch",name:"readOnly",label:"是否只读"},{type:"switch",name:"trimContents",label:"去除首尾空白",mode:"inline",className:"w-full",description:"开启后,将不允许用户输入前后空格"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TextareaControlPlugin=o,(0,i.registerEditorPlugin)(o)},6682:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransferPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="transfer",t.$schema="/schemas/TransferControlSchema.json",t.name="穿梭器",t.icon="fa fa-th-list",t.description="穿梭器组件",t.docLink="/amis/zh-CN/components/form/transfer",t.tags=["表单项"],t.scaffold={label:"分组",type:"transfer",name:"transfer",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="穿梭器",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",visibleOn:'!data.multiple && typeof this.value !== "undefined"'},{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:' data.multiple && typeof this.value !== "undefined"'},{label:"勾选展示模式",name:"selectMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"},{label:"关联选择形式",value:"associated"}]},{name:"columns",type:"combo",multiple:!0,label:!1,strictMode:!1,addButtonText:"新增一列",draggable:!1,visibleOn:'data.selectMode === "table"',items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"input-text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]},{$ref:"options",label:"左边的选项集",name:"leftOptions",visibleOn:'data.selectMode === "associated"'},{label:"左侧选择形式",name:"leftMode",type:"select",mode:"inline",className:"w-full",visibleOn:'data.selectMode === "associated"',options:[{label:"列表形式",value:"list"},{label:"树形选择形式",value:"tree"}]},{label:"右侧选择形式",name:"rightMode",type:"select",mode:"inline",className:"w-full",visibleOn:'data.selectMode === "associated"',options:[{label:"列表形式",value:"list"},{label:"树形选择形式",value:"tree"}]},{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("api",{label:"检索接口",name:"searchApi"}),{label:"查询时勾选展示模式",name:"searchResultMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"}]},{label:"可排序",name:"sortable",type:"switch",mode:"inline",className:"w-full"},{label:"是否默认选择第一个",name:"selectFirst",type:"switch",mode:"inline",className:"w-full"},{label:"是否显示统计数据",name:"statistics",type:"switch",mode:"inline",className:"w-full"},{label:"左侧的标题文字",name:"selectTitle",type:"input-text"},{label:"右侧结果的标题文字",name:"resultTitle",type:"input-text"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TransferPlugin=o,(0,i.registerEditorPlugin)(o)},3914:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeSelectControlPlugin=void 0;var a=n(752),r=n(9547),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tree-select",t.$schema="/schemas/TreeSelectControlSchema.json",t.name="树下拉框",t.icon="fa fa-chevron-down",t.description="点击输入框,弹出树型选择框进行选择",t.docLink="/amis/zh-CN/components/form/tree-select",t.tags=["表单项"],t.scaffold={type:"tree-select",label:"树下拉框",name:"tree-select",options:[{label:"选项A",value:"A",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:(0,a.__assign)({},t.scaffold)},t.panelTitle="树下拉",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),{type:"switch",name:"hideNodePathLabel",label:"隐藏选中节点的祖先节点文本信息",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source",{sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a",children:[{label:"子选项",value:"c"}]},{label:"选项B",value:"b"}]}},null,2)}}),(0,r.getSchemaTpl)("api",{name:"autoComplete",label:"自动完成接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 `\\${term}` 中。<code>请不要与获取选项接口同时设置。</code>"}),{name:"initiallyOpen",label:"是否默认展开子选项",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{type:"input-text",name:"unfoldedLevel",label:"选项默认展开级数",visibleOn:'typeof this.initiallyOpen !== "undefined" || !this.initiallyOpen'},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"可搜索?",name:"searchable",type:"switch",mode:"inline",className:"w-full"},{label:"是否显示单选按钮",name:"showRadio",type:"switch",mode:"inline",className:"w-full",visibleOn:"!data.multiple"},(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",description:"选中父级时,孩子节点是否自动选中",type:"switch",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",mode:"inline",className:"w-full"},{name:"onlyChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否只包含子节点",disabledOn:"data.withChildren",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill"),(0,r.getSchemaTpl)("creatable"),(0,r.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi"}),(0,r.getSchemaTpl)("editable"),(0,r.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,r.getSchemaTpl)("removable"),(0,r.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]})],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.TreeSelectControlPlugin=o,(0,i.registerEditorPlugin)(o)},8746:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDControlPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="uuid",t.$schema="/schemas/UUIDControlSchema.json",t.name="UUID",t.icon="fa fa-eye-slash",t.description="自动生成的 UUID",t.docLink="/amis/zh-CN/components/form/uuid",t.tags=["表单项","功能"],t.scaffold={type:"uuid",name:"uuid"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[(0,a.__assign)({},t.scaffold)]},t.panelTitle="UUID",t.panelBody=[{type:"static",value:"自动按 UUID v4 格式生成,无需配置"}],t}return(0,a.__extends)(t,e),t.prototype.renderRenderer=function(e){return r.default.createElement("div",{key:e.key,className:"wrapper-sm b-a b-light m-b-sm"},r.default.createElement("span",{className:"text-muted"},"UUID(展现将隐藏)"))},t}(n(9933).BasePlugin);t.UUIDControlPlugin=o,(0,i.registerEditorPlugin)(o)},4887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(5863),c=n(1548),d=n(9942),p=n(3570),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="grid",t.$schema="/schemas/GridSchema.json",t.name="分栏",t.tags=["容器"],t.icon="fa fa-th",t.scaffolds=[{name:"两栏",description:"bla bla",scaffold:{type:"grid",columns:[{body:[]},{body:[]}]},previewSchema:{type:"grid",columns:[{body:[{type:"tpl",tpl:"栏",inline:!1,className:"bg-light wrapper"}]},{body:[{type:"tpl",tpl:"栏",className:"bg-light wrapper",inline:!1}]}]}},{name:"三栏",description:"bla bla",scaffold:{type:"grid",columns:[{body:[]},{body:[]},{body:[]}]},previewSchema:{type:"grid",columns:[{body:[{type:"tpl",tpl:"栏",inline:!1,className:"bg-light wrapper"}]},{body:[{type:"tpl",tpl:"栏",className:"bg-light wrapper",inline:!1}]},{body:[{type:"tpl",tpl:"栏",className:"bg-light wrapper",inline:!1}]}]}}],t.panelTitle="分栏布局",t.panelWithOutOthers=!1,t.vRendererConfig={regions:{body:{key:"body",label:"内容区",placeholder:"栏",wrapperResolve:function(e){return e}}},panelTitle:"栏",panelBodyCreator:function(e){var n=e.node.host;return[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[n.isSecondFactor?null:{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node.host)}},i.default.createElement(d.Icon,{className:"icon",icon:"arrow-to-bottom"}),i.default.createElement("span",null,"下方插入新行"))},n.isSecondFactor?null:{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node.host)}},i.default.createElement(d.Icon,{className:"icon",icon:"top-arrow-to-top"}),i.default.createElement("span",null,"上方插入新行"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnBefore(e)}},i.default.createElement(d.Icon,{className:"icon",icon:"left-arrow-to-left"}),i.default.createElement("span",null,"左侧插入新列"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnAfter(e)}},i.default.createElement(d.Icon,{className:"icon",icon:"arrow-to-right"}),i.default.createElement("span",null,"右侧插入新列"))}].filter((function(e){return e}))}]}),(0,s.getSchemaTpl)("fieldSet",{title:"宽度设置",collapsable:!1,body:[{type:"button-group-select",name:"md",size:"sm",label:!1,pipeIn:function(e){return"number"==typeof e?"manual":e||""},pipeOut:function(e){return"manual"===e?1:e},tiled:!0,options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"manual",label:"手动"}]},{visibleOn:'typeof this.md === "number"',label:"宽度占比",type:"input-range",name:"md",min:1,max:12,step:1}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]}),t.panelWithOutOthers?null:(0,s.getSchemaTpl)("fieldSet",{title:"CSS 设置",body:[(0,s.getSchemaTpl)("className",{label:"栏 CSS 类名",name:"columnClassName"})]})].filter((function(e){return e}))}},t.vWrapperResolve=function(e){return e},t.overrides={renderColumn:function(e,t,n){var a,r,o=this.super(e,t,n),l=this.props.$$editor;if(l&&e.$$id){var s=l.plugin,d=null===(r=null===(a=s.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===r?void 0:r.body;return d?i.default.createElement(u.VRenderer,{key:e.$$id+"-"+t,plugin:l.plugin,renderer:l.renderer,$schema:"/schemas/GridColumn.json",hostId:l.id,memberIndex:t,name:"第"+(t+1)+"栏",id:e.$$id,draggable:!1,schemaPath:l.schemaPath+"/grid/"+t,wrapperResolve:s.vWrapperResolve,path:this.props.$path+"/"+t,data:this.props.data,widthMutable:!0},d?i.default.createElement(c.RegionWrapper,{key:d.key,preferTag:d.preferTag,name:d.key,label:d.label,regionConfig:d,placeholder:d.placeholder,editorStore:s.manager.store,manager:s.manager,children:o,wrapperResolve:d.wrapperResolve,rendererName:l.renderer.name}):o):o}return o}},t}return(0,a.__extends)(t,e),t.prototype.panelBodyCreator=function(e){var t=this,n=e.secondFactor;return[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[n?null:{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node)}},i.default.createElement(d.Icon,{className:"icon",icon:"arrow-to-bottom"}),i.default.createElement("span",null,"下方插入新行"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node)}},i.default.createElement(d.Icon,{className:"icon",icon:"top-arrow-to-top"}),i.default.createElement("span",null,"上方插入新行"))}]},{label:"列数",name:"columns",type:"select",pipeIn:function(e){return Array.isArray(e)?e.length:void 0},pipeOut:function(e,t){return Array.isArray(t)&&(t.length>e?(t=t.concat()).splice(e-1,t.length-e):t=t.concat((0,p.repeatArray)({body:[]},e-t.length))),t},options:(0,p.repeatArray)(null,12).map((function(e,t){return{label:""+(t+1),value:t+1}}))},{type:"button-group-select",name:"gap",label:"列间距",size:"sm",clearable:!0,tiled:!0,options:[{label:"无",value:"none"},{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"正常",value:"base"},{label:"中",value:"md"},{label:"大",value:"lg"}]}].filter((function(e){return e}))}),(0,s.getSchemaTpl)("fieldSet",{title:"对齐",collapsable:!1,body:[{type:"button-group-select",name:"align",size:"sm",label:"水平对齐",tiled:!0,pipeIn:(0,s.defaultValue)("left"),options:[{value:"left",label:"左对齐"},{value:"center",label:"中间对齐"},{value:"right",label:"右对齐"},{value:"between",label:"两端对齐"}]},{type:"button-group-select",name:"valign",size:"sm",label:"垂直对齐",tiled:!0,pipeIn:(0,s.defaultValue)("top"),options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]}),this.panelWithOutOthers?null:(0,s.getSchemaTpl)("fieldSet",{title:"其他",collapsable:!0,body:[(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal")]})].filter((function(e){return e}))},t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/GridColumn.json")},t.prototype.buildEditorContextMenu=function(e,t){var n,a=this;e.selections.length||(null===(n=e.info)||void 0===n?void 0:n.plugin)!==this||(e.node.isVitualRenderer?(t.push("|"),t.push({label:"左侧插入一栏",onSelect:function(){return a.insertColumnBefore(e)}}),t.push({label:"右侧插入一栏",onSelect:function(){return a.insertColumnAfter(e)}}),t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node.host)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node.host)}})):(t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node)}})))},t.prototype.onWidthChangeStart=function(e){var t,n,r=e.context,i=r.node;if((null===(t=i.info)||void 0===t?void 0:t.plugin)===this){var o=i.host;if(o&&(null===(n=o.info)||void 0===n?void 0:n.plugin)===this){var l=r.dom,s=l.parentElement;if(s){var u=r.resizer,c=s.getBoundingClientRect(),d=o.schema.columns,p=i.index,f=d[p].md,m=l.getBoundingClientRect();e.setData({onMove:function(e){var t=e.pageX-m.left,n=f=Math.max(1,Math.min(12,Math.round(12*t/c.width)));(d=d.concat())[p]=(0,a.__assign)((0,a.__assign)({},d[p]),{md:n}),u.setAttribute("data-value",""+n),o.updateState({columns:d}),requestAnimationFrame((function(){i.calculateHighlightBox()}))},onEnd:function(){o.updateState({},!0),u.removeAttribute("data-value"),i.updateSchema({md:f}),requestAnimationFrame((function(){i.calculateHighlightBox()}))}})}}}},t.prototype.insertRowAfter=function(e){var t,n=this;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var a=this.manager.store,r=a.schema,i=e.id;a.traceableSetSchema((0,p.JSONChangeInArray)(r,i,(function(e,t,a){e.splice(a+1,0,(0,p.JSONPipeIn)({type:n.rendererName||"grid",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],md:null==e?void 0:e.md}}))}))})))}},t.prototype.insertRowBefore=function(e){var t,n=this;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var a=this.manager.store,r=a.schema,i=e.id;a.traceableSetSchema((0,p.JSONChangeInArray)(r,i,(function(e,t,a){e.splice(a,0,(0,p.JSONPipeIn)({type:n.rendererName||"grid",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],md:null==e?void 0:e.md}}))}))})))}},t.prototype.insertColumnBefore=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=e.id,r=n.schema;n.traceableSetSchema((0,p.JSONChangeInArray)(r,a,(function(e,t,n){e.splice(n,0,(0,p.JSONPipeIn)({body:[]}))})))}},t.prototype.insertColumnAfter=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,p.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n+1,0,(0,p.JSONPipeIn)({body:[]}))})))}},t}(l.BasePlugin);t.GridPlugin=f,(0,o.registerEditorPlugin)(f)},2629:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HBoxPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(5863),c=n(1548),d=n(3570),p=n(9942),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="hbox",t.$schema="/schemas/HBoxSchema.json",t.name="HBox",t.icon="fa fa-columns",t.description="用来实现左右排版布局,默认平均分配,可以通过 columnClassName 配置某列的宽度。",t.tags=["容器"],t.scaffold={type:"hbox",gap:"base",columns:[{body:[]},{body:[]}]},t.previewSchema={type:"hbox",columns:[{type:"tpl",tpl:"固定宽度<br />w-xs",columnClassName:"bg-primary w-xs"},{type:"tpl",tpl:"自动填满",columnClassName:"bg-success"}]},t.panelTitle="HBox",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node)}},i.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-bottom"}),i.default.createElement("span",null,"下方插入新行"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node)}},i.default.createElement(p.Icon,{className:"icon",icon:"top-arrow-to-top"}),i.default.createElement("span",null,"上方插入新行"))}]},{label:"列数",name:"columns",type:"select",pipeIn:function(e){return Array.isArray(e)?e.length:void 0},pipeOut:function(e,t){return Array.isArray(t)&&(t.length>e?(t=t.concat()).splice(e-1,t.length-e):t=t.concat((0,d.repeatArray)({body:[]},e-t.length))),t},options:(0,d.repeatArray)(null,12).map((function(e,t){return{label:""+(t+1),value:t+1}}))}]}),{type:"list-select",name:"gap",label:"列间距",size:"sm",clearable:!0,tiled:!0,options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"正常",value:"base"},{label:"中",value:"md"},{label:"大",value:"lg"}]},{name:"columns",label:"列集合",type:"combo",scaffold:{body:[]},minLength:1,multiple:!0,draggableTip:"",items:[{type:"tpl",tpl:'<span class="label label-default">列${index | plus}</span>',columnClassName:"no-grow v-middle"},(0,s.getSchemaTpl)("className",{name:"columnClassName",labelRemark:"",label:""})]},(0,s.getSchemaTpl)("fieldSet",{title:"水平对齐",collapsable:!1,body:[{type:"button-group-select",name:"align",size:"sm",label:!1,tiled:!0,pipeIn:(0,s.defaultValue)("left"),options:[{value:"left",label:"左对齐"},{value:"center",label:"中间对齐"},{value:"right",label:"右对齐"},{value:"between",label:"两端对齐"}]}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,pipeIn:(0,s.defaultValue)("top"),options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]}),(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal"),(0,s.getSchemaTpl)("visible")]},t.vRendererConfig={regions:{body:{key:"body",label:"内容区",placeholder:"列",wrapperResolve:function(e){return e}}},panelTitle:"列",panelBodyCreator:function(e){return[(0,s.getSchemaTpl)("className",{name:"columnClassName",label:"列 CSS 类名",description:"可以添加宽度类样式调整宽度,默认宽度为平均分配。"}),(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node.host)}},i.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-bottom"}),i.default.createElement("span",null,"下方插入新行"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node.host)}},i.default.createElement(p.Icon,{className:"icon",icon:"top-arrow-to-top"}),i.default.createElement("span",null,"上方插入新行"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnBefore(e)}},i.default.createElement(p.Icon,{className:"icon",icon:"left-arrow-to-left"}),i.default.createElement("span",null,"左侧插入新列"))},{children:i.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnAfter(e)}},i.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-right"}),i.default.createElement("span",null,"右侧插入新列"))}]}]}),(0,s.getSchemaTpl)("fieldSet",{title:"宽度设置",collapsable:!1,body:[{type:"button-group-select",name:"width",size:"sm",label:!1,pipeIn:function(e){return e&&"auto"!==e?"manual":e||""},pipeOut:function(e){return"manual"===e?"20%":e},options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"manual",label:"手动"}],description:'<% if (this.width && this.width !== "auto") {%>请按住高亮框右侧方块拖动调整宽度<%}%>'}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]})]}},t.vWrapperResolve=function(e){return e},t.overrides={renderColumn:function(e,t){var n,a,r=this.super(e,t),o=this.props.$$editor;if(o&&e.$$id){var l=o.plugin,s=null===(a=null===(n=l.vRendererConfig)||void 0===n?void 0:n.regions)||void 0===a?void 0:a.body;return s?i.default.createElement(u.VRenderer,{key:e.$$id,plugin:o.plugin,renderer:o.renderer,$schema:"",hostId:o.id,memberIndex:t,name:"第"+(t+1)+"列",id:e.$$id,draggable:!1,schemaPath:o.schemaPath+"/hbox/"+t,wrapperResolve:l.vWrapperResolve,path:this.props.$path+"/"+t,data:this.props.data,widthMutable:!0},s?i.default.createElement(c.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:l.manager.store,manager:l.manager,children:r,wrapperResolve:s.wrapperResolve,rendererName:o.renderer.name}):r):r}return r}},t}return(0,a.__extends)(t,e),t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e)},t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/HBoxColumn.json")},t.prototype.buildEditorContextMenu=function(e,t){var n,a=this;e.selections.length||(null===(n=e.info)||void 0===n?void 0:n.plugin)!==this||(e.node.isVitualRenderer?(t.push("|"),t.push({label:"左侧插入一列",onSelect:function(){return a.insertColumnBefore(e)}}),t.push({label:"右侧插入一列",onSelect:function(){return a.insertColumnAfter(e)}}),t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node.host)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node.host)}})):(t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node)}})))},t.prototype.onWidthChangeStart=function(e){var t,n,r=e.context,i=r.node;if((null===(t=i.info)||void 0===t?void 0:t.plugin)===this){var o=i.host;if(o&&(null===(n=o.info)||void 0===n?void 0:n.plugin)===this){var l=r.dom,s=l.parentElement;if(s){var u=r.resizer,c=s.getBoundingClientRect(),d=o.schema.columns,p=i.index,f=d[p].width,m=l.getBoundingClientRect();e.setData({onMove:function(e){var t=e.pageX-m.left,n=f=Math.max(1,Math.min(99,Math.round(100*t/c.width)))+"%";(d=d.concat())[p]=(0,a.__assign)((0,a.__assign)({},d[p]),{width:n}),u.setAttribute("data-value",n),o.updateState({columns:d}),requestAnimationFrame((function(){i.calculateHighlightBox()}))},onEnd:function(){o.updateState({},!0),u.removeAttribute("data-value"),i.updateSchema({width:f}),requestAnimationFrame((function(){i.calculateHighlightBox()}))}})}}}},t.prototype.insertRowAfter=function(e){var t;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,d.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n+1,0,(0,d.JSONPipeIn)({type:"hbox",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],width:null==e?void 0:e.width}}))}))})))}},t.prototype.insertRowBefore=function(e){var t;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=e.id,r=n.schema;n.traceableSetSchema((0,d.JSONChangeInArray)(r,a,(function(e,t,n){e.splice(n,0,(0,d.JSONPipeIn)({type:"hbox",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],width:null==e?void 0:e.width}}))}))})))}},t.prototype.insertColumnBefore=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,d.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n,0,(0,d.JSONPipeIn)({body:[]}))})))}},t.prototype.insertColumnAfter=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=e.id,a=this.manager.store,r=a.schema;a.traceableSetSchema((0,d.JSONChangeInArray)(r,n,(function(e,t,n){e.splice(n+1,0,(0,d.JSONPipeIn)({body:[]}))})))}},t}(l.BasePlugin);t.HBoxPlugin=f,(0,o.registerEditorPlugin)(f)},7863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IFramePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="iframe",t.$schema="/schemas/IFrameSchema.json",t.name="iFrame",t.description="可以用来嵌入现有页面。",t.tags=["容器"],t.icon="fa fa-window-maximize",t.scaffold={type:"iframe",src:"//www.baidu.com"},t.previewSchema={type:"tpl",tpl:"iFrame"},t.panelTitle="iFrame",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"src",label:"页面地址",type:"input-text",description:""}]},{title:"外观",body:[{name:"width",label:"iFrame 宽度",type:"input-text",pipeIn:(0,o.defaultValue)("100%"),pipeOut:o.valuePipeOut},{name:"height",label:"iFrame 高度",type:"input-text",pipeOut:o.valuePipeOut},(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t.prototype.renderRenderer=function(e){return this.renderPlaceholder("IFrame 页面("+e.src+")")},t}(i.BasePlugin);t.IFramePlugin=l,(0,r.registerEditorPlugin)(l)},8969:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImagePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="image",t.$schema="/schemas/ImageSchema.json",t.name="图片展示",t.description="可以用来展示一张图片,支持静态设置图片地址,也可以配置 <code>name</code> 与变量关联。",t.tags=["展示"],t.icon="fa fa-photo",t.scaffold={type:"image"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{thumbMode:"cover",value:(0,l.mockValue)({type:"image"})}),t.panelTitle="图片",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"imageMode",label:"展示模式",type:"select",pipeIn:(0,o.defaultValue)("thumb"),options:[{label:"缩率图",value:"thumb"},{label:"原图",value:"original"}]},{name:"title",type:"input-text",label:"图片标题"},{name:"imageCaption",type:"input-text",label:"图片描述"},(0,o.getSchemaTpl)("imageUrl",{name:"defaultImage",label:"默认图片地址"}),{name:"width",label:"宽度",type:"input-number"},{name:"height",label:"高度",type:"input-number"},t?null:(0,o.getSchemaTpl)("imageUrl",{name:"src",type:"input-text",label:"缩略图地址",description:"如果已绑定字段名,可以不用设置,支持用变量。"}),{type:"input-text",label:"打开外部链接",name:"href"}]},{title:"外观",body:[{type:"switch",name:"enlargeAble",label:"开启图片放大功能",mode:"inline",className:"w-full"},(0,o.getSchemaTpl)("imageUrl",{name:"originalSrc",visibleOn:"this.enlargeAble",label:"原图地址",description:"如果不配置将默认使用缩略图地址。"}),{type:"switch",name:"showDimensions",label:"是否显示图片尺寸",mode:"inline",className:"w-full"},{name:"thumbMode",type:"button-group-select",label:"缩略图展示模式",size:"sm",pipeIn:(0,o.defaultValue)("contain"),options:[{label:"宽度占满",value:"w-full"},{label:"高度占满",value:"h-full"},{label:"包含",value:"contain"},{label:"铺满",value:"cover"}]},{name:"thumbRatio",type:"button-group-select",label:"缩略图比率",size:"sm",pipeIn:(0,o.defaultValue)("1:1"),options:[{label:"1:1",value:"1:1"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},(0,o.getSchemaTpl)("className",{autoComplete:!1}),(0,o.getSchemaTpl)("className",{name:"imageClassName",label:"图片 CSS 类名"}),(0,o.getSchemaTpl)("className",{name:"thumbClassName",label:"缩略图 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.onActive=function(e){var t,n=e.context;if((null===(t=n.info)||void 0===t?void 0:t.plugin)===this&&n.node){var a=n.node;a.setHeightMutable(!0),a.setWidthMutable(!0)}},t.prototype.onWidthChangeStart=function(e){return this.onSizeChangeStart(e,"horizontal")},t.prototype.onHeightChangeStart=function(e){return this.onSizeChangeStart(e,"vertical")},t.prototype.onSizeChangeStart=function(e,t){var n;void 0===t&&(t="both");var a=e.context,r=a.node;if((null===(n=r.info)||void 0===n?void 0:n.plugin)===this){var i=a.resizer,o=a.dom,l=o.parentElement.getBoundingClientRect(),s=o.getBoundingClientRect(),u=a.nativeEvent.pageX,c=a.nativeEvent.pageY;e.setData({onMove:function(e){var n=e.pageY-c,a=e.pageX-u,o=Math.max(50,s.height+n),d=Math.max(100,Math.min(s.width+a,l.width)),p={width:d,height:o};"both"===t?i.setAttribute("data-value",d+"px x "+o+"px"):"vertical"===t?(i.setAttribute("data-value",o+"px"),delete p.width):(i.setAttribute("data-value",d+"px"),delete p.height),r.updateState(p),requestAnimationFrame((function(){r.calculateHighlightBox()}))},onEnd:function(e){var n=e.pageY-c,a=e.pageX-u,o=Math.max(50,s.height+n),d={width:Math.max(100,Math.min(s.width+a,l.width)),height:o};"vertical"===t?delete d.width:"horizontal"===t&&delete d.height,i.removeAttribute("data-value"),r.updateSchema(d),requestAnimationFrame((function(){r.calculateHighlightBox()}))}})}},t}(i.BasePlugin);t.ImagePlugin=s,(0,r.registerEditorPlugin)(s)},4610:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImagesPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="images",t.$schema="/schemas/ImagesSchema.json",t.name="图片集",t.description="展示多张图片",t.tags=["展示"],t.icon="fa fa-clone",t.scaffold={type:"images"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{listClassName:"nowrap",thumbMode:"cover",value:[{title:"图片1",image:(0,l.mockValue)({type:"image"}),src:(0,l.mockValue)({type:"image"})},{title:"图片2",image:(0,l.mockValue)({type:"image"}),src:(0,l.mockValue)({type:"image"})}]}),t.panelTitle="图片集",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[(0,o.getSchemaTpl)("imageUrl",{name:"defaultImage",label:"默认图片地址"})].concat(t?[]:[{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:"数据源",name:"__mode",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"关联字段",value:1},{label:"静态设置",value:2}],onChange:function(e,t,n,a){e!==t&&1==e&&a.deleteValueByName("options")}},{name:"source",type:"input-text",label:"关联数据",description:"比如:\\${listVar},用来关联作用域中的已有数据。",visibleOn:"this.__mode == 1"},{type:"combo",name:"options",visibleOn:"this.__mode == 2",minLength:1,label:"图片集数据",multiple:!0,multiLine:!0,addable:!0,removable:!0,items:[(0,o.getSchemaTpl)("imageUrl",{name:"image",label:"缩略图"}),(0,o.getSchemaTpl)("imageUrl",{name:"src",label:"原图"}),{type:"input-text",label:"图片标题",name:"title"},{type:"textarea",label:"图片描述",name:"caption"}]}])},{title:"外观",body:[{type:"switch",name:"enlargeAble",label:"开启图片放大功能",mode:"inline",className:"w-full"},{name:"originalSrc",visibleOn:"this.enlargeAble",type:"input-text",label:"原图地址",description:"如果不配置将默认使用缩略图地址。"},{type:"switch",name:"showDimensions",label:"是否显示图片尺寸",mode:"inline",className:"w-full"},{name:"thumbMode",type:"button-group-select",label:"缩略图展示模式",size:"sm",pipeIn:(0,o.defaultValue)("contain"),options:[{label:"宽度占满",value:"w-full"},{label:"高度占满",value:"h-full"},{label:"包含",value:"contain"},{label:"铺满",value:"cover"}]},{name:"thumbRatio",type:"button-group-select",label:"缩略图比率",size:"sm",pipeIn:(0,o.defaultValue)("1:1"),options:[{label:"1:1",value:"1:1"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},(0,o.getSchemaTpl)("className",{autoComplete:!1}),(0,o.getSchemaTpl)("className",{name:"listClassName",label:"图片列表 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ImagesPlugin=s,(0,r.registerEditorPlugin)(s)},7197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(8579),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="json",t.$schema="/schemas/JsonSchema.json",t.name="JSON展示",t.description="用来展示 JSON 数据。",t.tags=["展示"],t.icon="fa fa-code",t.scaffold={type:"json"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{name:"json",value:{a:1,b:{c:2}}}),t.panelTitle="JSON",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:l([t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{name:"levelExpand",type:"input-number",label:"默认展开级别",pipeIn:(0,o.defaultValue)(1)}])},{title:"外观",body:l([(0,o.getSchemaTpl)("className")])},{title:"其他",body:l([(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")])}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.JsonPlugin=s,(0,r.registerEditorPlugin)(s)},419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="link",t.$schema="/schemas/LinkSchema.json",t.name="链接",t.description="用来展示文字链接",t.tags=["展示"],t.icon="fa fa-link",t.scaffold={type:"link",value:"http://www.baidu.com/"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{label:t.name}),t.panelTitle="链接",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"href",type:"input-text",label:"目标地址, 支持取变量。",description:"如果已绑定字段名,可以不用设置"},{name:"body",type:"input-text",label:"内容",description:"不填写时,自动使用目标地址值"},{name:"blank",type:"switch",label:"是否新窗口打开",mode:"inline",className:"w-full"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className",{autoComplete:!1})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.LinkPlugin=l,(0,r.registerEditorPlugin)(l)},1897:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list",t.$schema="/schemas/ListSchema.json",t.name="列表",t.description="展示一个列表,可以自定标题、副标题,内容及按钮组部分。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.tags=["展示"],t.icon="fa fa-list",t.scaffold={type:"list",listItem:{body:[{type:"tpl",tpl:"简单的展示数据:$a $b"}],actions:[{icon:"fa fa-eye",type:"button"}]}},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]}),t.panelTitle="列表",t.panelBodyCreator=function(e){var n="crud"===e.schema.type;return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement(r.Button,{level:"danger",size:"sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员详情")},{type:"divider"},{name:"title",type:"input-text",label:"标题"},n?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,s.defaultValue)("${items}"),description:"绑定当前环境变量"},{name:"placeholder",pipeIn:(0,s.defaultValue)("没有数据"),type:"input-text",label:"无数据提示"}]},{title:"外观",body:[{name:"showHeader",type:"switch",mode:"inline",className:"block",label:"是否显示头部",pipeIn:(0,s.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"block",label:"是否显示底部",pipeIn:(0,s.defaultValue)(!0)},(0,s.getSchemaTpl)("className",{label:"CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"listClassName",label:"List div CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"headerClassName",label:"头部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"footerClassName",label:"底部 CSS 类名"})]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){if(e.isSlot)return e.value=[e.data],e;var t=(0,a.__assign)((0,a.__assign)({},e.defaultData),e.data),n=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,t):(0,r.resolveVariable)("${items}",t);if(!Array.isArray(n)||!n.length){var i=this.buildMockData();e.value=(0,u.repeatArray)(i,1).map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{id:t+1})}))}var o=e.$schema,l=(0,a.__rest)(e,["$schema"]);return(0,a.__assign)((0,a.__assign)({},(0,u.JSONPipeOut)(l)),{$schema:o})},t.prototype.buildMockData=function(){return{id:666,title:"假数据",description:"假数据",a:"假数据",b:"假数据"}},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),i=n.getValueOf(e);r&&i&&this.manager.openSubEditor({title:"配置成员详情",value:(0,a.__assign)({},i.listItem),slot:{type:"list",listItem:"$$"},onChange:function(e){e=(0,a.__assign)((0,a.__assign)({},i),{listItem:e}),t.panelChangeValue(e,(0,u.diff)(i,e))},data:{items:[this.buildMockData()]}})},t.prototype.buildEditorToolbar=function(e,t){var n=e.id,a=e.info,r=e.schema;("list"===a.renderer.name||"crud"===a.renderer.name&&"list"===r.mode)&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=e.schema,r=(e.region,e.info);("list"===r.renderer.name||"crud"===r.renderer.name&&"list"===a.mode)&&t.push("|",{label:"配置成员详情",onSelect:this.editDetail.bind(this,n)})},t.prototype.getRendererInfo=function(t){var n,r=this,i=t.renderer,o=t.schema;return o.$$id||"crud"!==(null===(n=o.$$editor)||void 0===n?void 0:n.renderer.name)||"list"!==i.name?e.prototype.getRendererInfo.call(this,t):(0,a.__assign)((0,a.__assign)({},{id:o.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t}(l.BasePlugin);t.ListPlugin=c,(0,o.registerEditorPlugin)(c)},821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItemPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(5863),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list-item",t.$schema="/schemas/ListItemSchema.json",t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",preferTag:"展示"},{key:"actions",label:"按钮集合",preferTag:"按钮",renderMethod:"renderRight",insertPosition:"inner"}],t.panelTitle="列表项",t.panelBody=(0,s.getSchemaTpl)("tabs",[{title:"基本",body:[{name:"title",type:"input-text",label:"标题",descrition:"支持模板语法如: ${xxx}"},{name:"subTitle",type:"input-text",label:"副标题",descrition:"支持模板语法如: ${xxx}"},{name:"avatar",type:"input-text",label:"图片地址",descrition:"支持模板语法如: ${xxx}"},{name:"desc",type:"textarea",label:"描述",descrition:"支持模板语法如: ${xxx}"}]},{title:"外观",body:[(0,s.getSchemaTpl)("className",{name:"avatarClassName",label:"图片 CSS 类名",pipeIn:(0,s.defaultValue)("thumb-sm avatar m-r")}),(0,s.getSchemaTpl)("className",{name:"titleClassName",label:"标题 CSS 类名"})]}]),t.fieldWrapperResolve=function(e){return e},t.overrides={renderFeild:function(e,t,n,a){var r=this.super(e,t,n,a),o=this.props.$$editor;if(!o||!t.$$id)return r;var l=o.plugin,s=t.$$id;return i.default.createElement(u.VRenderer,{plugin:o.plugin,renderer:o.renderer,multifactor:!0,key:s,$schema:"/schemas/ListBodyField.json",hostId:o.id,memberIndex:n,name:"字段"+(n+1),id:s,draggable:!1,wrapperResolve:l.fieldWrapperResolve,schemaPath:o.schemaPath+"/body/"+n,path:this.props.$path+"/"+n,data:this.props.data},r)}},t.vRendererConfig={panelTitle:"字段",panelBodyCreator:function(e){return[(0,s.getSchemaTpl)("label"),(0,s.getSchemaTpl)("className",{name:"labelClassName",label:"Label CSS 类名",visibleOn:"this.label"}),{children:i.default.createElement(r.Button,{size:"sm",level:"info",className:"m-b",block:!0,onClick:t.exchangeRenderer.bind(t,e.id)},"更改渲染器类型")}]}},t}return(0,a.__extends)(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer;if(e.schema.$$id&&this.rendererName===t.name)return{name:this.panelTitle,regions:this.regions,$schema:this.$schema}},t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e,"展示")},t.prototype.beforeInsert=function(e){var t,n,r,i,o=e.context;o.info.plugin!==this&&(null===(t=o.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"body"!==o.region||(o.data=(0,a.__assign)((0,a.__assign)({},o.data),{label:null!==(i=null!==(n=o.data.label)&&void 0!==n?n:null===(r=o.subRenderer)||void 0===r?void 0:r.name)&&void 0!==i?i:"列名称"}))},t}(l.BasePlugin);t.ListItemPlugin=c,(0,o.registerEditorPlugin)(c)},135:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LogPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="log",t.$schema="/schemas/LogSchema.json",t.name="日志",t.icon="fa fa-file-text-o",t.description="用来实时显示日志",t.docLink="/amis/zh-CN/components/log",t.tags=["展示"],t.previewSchema={type:"log"},t.scaffold={type:"log"},t.panelTitle="日志",t.panelBodyCreator=function(e){return(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[(0,o.getSchemaTpl)("api",{label:"日志数据源",name:"source"})]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.LogPlugin=l,(0,r.registerEditorPlugin)(l)},5218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MappingPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(3570),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="mapping",t.$schema="/schemas/MappingSchema.json",t.name="映射",t.description="对现有值做映射展示,比如原始值是:1、2、3...,需要展示成:下线、上线、过期等等。",t.tags=["展示"],t.icon="fa fa-exchange",t.scaffold={type:"mapping",value:2,map:{0:'<span class="label label-info">一</span>',1:'<span class="label label-success">二</span>',2:'<span class="label label-danger">三</span>',3:'<span class="label label-warning">四</span>',4:'<span class="label label-primary">五</span>',"*":'<span class="label label-default">-</span>'}},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="映射",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{label:"映射表",type:"combo",scaffold:{key:"key-{index}",value:"value-{index}"},required:!0,name:"map",descriptionClassName:"help-block text-xs m-b-none",description:"<p>当值命中左侧 Key 时,展示右侧内容,当没有命中时,默认实现 Key 为 <code>*</code>的内容</div>(请确保key值唯一)",multiple:!0,pipeIn:function(e){if(!(0,l.isObject)(e))return[{key:"*",value:"通配值"}];var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e,n){var a=e.key||"",r=e.value;"key-{index}"===a&&"value-{index}"===r&&(a=a.replace("-{index}",""+n),r=r.replace("-{index}",""+n));try{r=JSON.parse(r)}catch(e){}t[a]=r})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:"内容",type:"input-text",name:"value"}]},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.MappingPlugin=s,(0,r.registerEditorPlugin)(s)},2460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="markdown",t.$schema="/schemas/MarkdownSchema.json",t.name="Markdown",t.description="展示 markdown 内容",t.tags=["展示"],t.icon="fa fa-file-text",t.scaffold={type:"markdown",value:"## 这是标题"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="MD",t.panelBodyCreator=function(e){return/\/field\/\w+$/.test(e.path),[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[(0,o.getSchemaTpl)("markdownBody")]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.MarkdownPlugin=l,(0,r.registerEditorPlugin)(l)},1237:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamePlugin=void 0;var a=n(752),r=n(325),i=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return(0,a.__extends)(t,e),t.prototype.buildEditorPanel=function(e,t){e.info,e.selections,t.push({position:"left",key:"name-list",icon:"fa fa-list",title:"名字",component:r.TargetNamePanel,order:4e3})},t}(n(9933).BasePlugin);t.NamePlugin=o,(0,i.registerEditorPlugin)(o)},5678:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NavPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="nav",t.$schema="/schemas/NavSchema.json",t.name="导航",t.description="用来渲染导航菜单,支持横排和竖排。",t.tags=["功能"],t.icon="fa fa-map-signs",t.scaffold={type:"nav",stacked:!0,links:[{label:"页面1",to:"?id=1"},{label:"页面2",to:"?id=2"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="导航",t.panelDefinitions={links:{label:"菜单管理",name:"links",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增菜单",multiLine:!0,messages:{validateFailed:"菜单中存在配置错误,请仔细检查"},scaffold:{label:"",to:""},items:[{type:"input-text",name:"label",label:"名称",required:!0},{type:"input-text",name:"to",label:"跳转地址",required:!0},{type:"icon-picker",name:"icon",label:"图标"},{type:"group",label:"是否高亮",direction:"vertical",className:"m-b-none",labelRemark:{trigger:"click",rootClose:!0,className:"m-l-xs",content:"可以配置该菜单是否要高亮",placement:"left"},body:[{name:"active",type:"radios",inline:!0,options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"activeOn",autoComplete:!1,visibleOn:'typeof this.active !== "boolean"',type:"input-text",placeholder:"留空将自动分析菜单地址",className:"m-t-n-sm"}]},{type:"switch",label:"包含子菜单",name:"children",mode:"inline",className:"block",pipeIn:function(e){return!!e},pipeOut:function(e){return e?[{label:"",to:""}]:void 0},messages:{validateFailed:"子菜单中存在配置错误,请仔细检查"}},{name:"children",$ref:"links",visibleOn:'this.hasOwnProperty("children") && this.children',label:"子菜单管理",addButtonText:"新增子菜单"}]}},t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{$ref:"links",name:"links"},{type:"divider"},(0,o.getSchemaTpl)("api",{name:"source",label:"获取菜单接口",description:"如果菜单地址希望可以动态设置,请在此填入接口地址"})]},{title:"外观",body:[{name:"stacked",type:"switch",mode:"inline",className:"block",label:"是否竖着摆放"},(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.NavPlugin=l,(0,r.registerEditorPlugin)(l)},3345:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperationPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="operation",t.$schema="/schemas/OperationSchema.json",t.name="操作栏",t.description="操作栏,用于表格。",t.tags=["展示"],t.icon="",t.scaffold={type:"operation",label:"操作",buttons:[{label:"按钮",type:"button"}]},t.previewSchema={type:"tpl",tpl:"操作栏"},t.regions=[{key:"buttons",label:"按钮集",renderMethod:"render",insertPosition:"inner",preferTag:"按钮"}],t.panelTitle="操作栏",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("className",{name:"innerClassName"}),{children:i.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showInsertPanel("buttons",e.id,"按钮")}},"添加按钮")}]},t}return(0,a.__extends)(t,e),t.prototype.buildSubRenderers=function(t,n){if("table"===t.info.renderer.name||"crud"===t.info.renderer.name)return e.prototype.buildSubRenderers.apply(this,arguments)},t}(l.BasePlugin);t.OperationPlugin=u,(0,o.registerEditorPlugin)(u)},410:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagePlugin=void 0;var a=n(752),r=n(9305),i=n(9756),o=n(9933),l=n(9547),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="page",t.$schema="/schemas/PageSchema.json",t.name="页面",t.docLink="/amis/zh-CN/components/page",t.tags="容器",t.icon="fa fa-desktop",t.scaffold={type:"page",body:[{type:"tpl",tpl:"内容"}]},t.previewSchema={type:"page",className:"text-left b-a",asideClassName:"w-xs",title:"标题",subTitle:"副标题",aside:"边栏",body:"内容"},t.regions=[{key:"toolbar",label:"工具栏",preferTag:"工具栏内容"},{key:"aside",label:"边栏",placeholder:"边栏内容"},{key:"body",label:"内容区",placeholder:"页面内容"}],t.wrapper=r.ContainerWrapper,t.panelTitle="页面",t.panelBody=[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"checkboxes",name:"regions",label:"区域展示",pipeIn:function(e){return Array.isArray(e)?e:["auto","body","toolbar","aside","header"]},pipeOut:function(e){return Array.isArray(e)&&~e.indexOf("auto")?void 0:e.length?e:["auto","body","toolbar","aside","header"]},joinValues:!1,extractValue:!0,inline:!1,options:[{label:"自动",value:"auto"},{label:"内容区",value:"body",disabledOn:'!Array.isArray(this.regions) || ~this.regions.indexOf("auto")'},{label:"边栏",value:"aside",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'},{label:"工具栏",value:"toolbar",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'},{label:"顶部",value:"header",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'}]},{label:"标题",name:"title",type:"input-text"},{label:"副标题",name:"subTitle",type:"input-text"},{label:"提示",name:"remark",type:"textarea",visibleOn:"data.title",description:"标题附近会出现一个提示图标,鼠标放上去会提示该内容。"}]},{title:"接口",body:[(0,l.getSchemaTpl)("api",{label:"数据初始化接口",name:"initApi",sampleBuilder:function(e){return'{\n "status": 0,\n "msg": "",\n\n data: {\n // 示例数据\n "id": 1,\n "a": "sample"\n }\n}'}}),(0,l.getSchemaTpl)("initFetch"),{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.initApi",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline"},{name:"interval",type:"input-number",visibleOn:'typeof this.interval === "number"',step:500},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"设置 ajax 默认提示信息,当 ajax 没有返回 msg 信息时有用,如果 ajax 返回携带了 msg 值,则还是以 ajax 返回为主",items:[{label:"获取成功提示",type:"input-text",name:"fetchSuccess"},{label:"获取失败提示",type:"input-text",name:"fetchFailed"},{label:"保存成功提示",type:"input-text",name:"saveSuccess"},{label:"保存失败提示",type:"input-text",name:"saveFailed"}]}]},{title:"外观",body:[(0,l.getSchemaTpl)("className"),(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"头部CSS类名"}),(0,l.getSchemaTpl)("className",{name:"bodyClassName",label:"内容CSS类名"}),(0,l.getSchemaTpl)("className",{name:"asideClassName",label:"边栏CSS类名"}),(0,l.getSchemaTpl)("className",{name:"toolbarClassName",label:"工具栏CSS类名"}),(0,l.getSchemaTpl)("style")]},{title:"其他",body:[(0,l.getSchemaTpl)("name")]}])],t}return(0,a.__extends)(t,e),t}(o.BasePlugin);t.PagePlugin=s,(0,i.registerEditorPlugin)(s)},2398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PanelPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="panel",t.$schema="/schemas/PanelSchema.json",t.name="面板",t.icon="fa fa-window-maximize",t.description="展示一个面板,可以配置标题,内容区。",t.docLink="/amis/zh-CN/components/panel",t.tags="容器",t.scaffold={type:"panel",title:"标题",body:"内容"},t.previewSchema={type:"panel",title:"这是一个面板",body:"这是内容区",className:"Panel--default text-left m-b-none",actions:[{label:"按钮1",type:"button"},{label:"按钮2",type:"button"}]},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var r=this.props.$$editor,i=this.super.apply(this,n);return r&&!this.props.children?t(this,i,e,r,r.plugin.manager):i}}},{key:"actions",label:"按钮组",renderMethod:"renderActions",preferTag:"按钮"}],t.panelTitle="面板",t.panelBodyCreator=function(e){var n=/(?:^|\/)form$/.test(e.path);return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"标题",name:"title",type:"input-text"},n?null:{children:i.default.createElement(r.Button,{size:"sm",level:"info",className:"m-b",onClick:function(){return t.manager.showInsertPanel("body")},block:!0},"内容区新增内容")}]},{title:"外观",body:[{name:"affixFooter",label:"固定底部",type:"switch",value:!1,mode:"inline",className:"block"},(0,s.getSchemaTpl)("horizontal",{visibleOn:'(data.mode || data.$$formMode) == "horizontal" && data.$$mode == "form"'}),{name:n?"panelClassName":"className",label:"样式",type:"button-group-select",size:"sm",pipeIn:function(e){return"string"==typeof e&&/(?:^|\s)(Panel\-\-(\w+))(?:$|\s)/.test(e)?RegExp.$1:""},pipeOut:function(e,t){return t?(t.replace(/(?:^|\s)(Panel\-\-(\w+))(?=($|\s))/g,"")+" "+e).replace(/\s+/g," ").trim():e},options:[{label:"默认",value:"Panel--default"},{label:"主色",value:"Panel--primary"},{label:"提示",value:"Panel--info"},{label:"成功",value:"Panel--success"},{label:"警告",value:"Panel--warning"},{label:"危险",value:"Panel--danger"}]},(0,s.getSchemaTpl)("className",{name:n?"panelClassName":"className",pipeIn:(0,s.defaultValue)("Panel--default")}),(0,s.getSchemaTpl)("className",{name:"headerClassName",label:"头部区域 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"bodyClassName",label:"内容区域 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"footerClassName",label:"底部区域 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"actionsClassName",label:"按钮外层 CSS 类名"}),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t.prototype.buildEditorPanel=function(t,n){t.path;var a=t.schema;"form"!==t.info.renderer.name||!1===a.wrapWithPanel||t.selections.length?e.prototype.buildEditorPanel.call(this,t,n):n.push({key:"panel",icon:"fa fa-list-alt",title:this.panelTitle,render:this.manager.makeSchemaFormRender({body:this.panelBodyCreator(t)})})},t}(l.BasePlugin);t.PanelPlugin=u,(0,o.registerEditorPlugin)(u)},9227:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlainPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="plain",t.$schema="/schemas/PlainSchema.json",t.name="纯文本",t.icon="fa fa-file-text-o",t.description="用来展示纯文字,html 标签会被转义。",t.docLink="/amis/zh-CN/components/plain",t.tags=["展示"],t.previewSchema={type:"plain",text:"这是纯文本",className:"text-center",inline:!1},t.scaffold={type:"plain",tpl:"内容",inline:!1},t.panelTitle="纯文本",t.panelBodyCreator=function(e){var t="table-cell"===e.info.renderer.name;return(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"内容",type:"textarea",pipeIn:function(e,t){return e||t&&t.text},name:"tpl",description:'如果当前字段有值,请不要设置,否则覆盖。支持使用 <code>\\${xxx}</code> 来获取变量,或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>'},{name:"placeholder",label:"占位符",type:"input-text",pipeIn:(0,o.defaultValue)("-")}]},t?null:{title:"外观",body:[{label:"内联模式",type:"switch",name:"inline",mode:"inline",className:"w-full",value:!0},(0,o.getSchemaTpl)("className")]},t?null:{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.PlainPlugin=l,(0,r.registerEditorPlugin)(l)},6218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="progress",t.$schema="/schemas/ProgressSchema.json",t.name="进度展示",t.description="用来展示进度。可配置各个进度段用不同的颜色展示。",t.tags=["展示"],t.icon="fa fa-angle-double-right",t.scaffold={type:"progress",value:66.66},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="进度",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{name:"showLabel",type:"switch",mode:"inline",pipeIn:(0,o.defaultValue)(!0),label:"是否显示文字"},{name:"stripe",type:"switch",mode:"inline",label:"是否显示条纹"},{name:"animate",type:"switch",mode:"inline",label:"是否显示动画"},{name:"map",label:"等级配置",type:"input-array",items:{type:"input-text"},descrition:"配置不通的值段,用不通的样式提示用户",pipeIn:(0,o.defaultValue)(["bg-danger","bg-warning","bg-info","bg-success","bg-success"])},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",validations:"isNumeric",visibleOn:'typeof this.value !== "undefined"'},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{name:"progressClassName",label:"进度外层 CSS 类名",pipeIn:(0,o.defaultValue)("progress-xs progress-striped active m-t-xs m-b-none")}),(0,o.getSchemaTpl)("className",{name:"progressBarClassName",label:"进度条 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.ProgressPlugin=l,(0,r.registerEditorPlugin)(l)},3470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="property",t.$schema="/schemas/PropertySchema.json",t.name="属性表",t.icon="fa fa-list",t.description="属性表",t.docLink="/amis/zh-CN/components/property",t.tags=["其他"],t.scaffold={type:"property",title:"机器配置",items:[{label:"cpu",content:"1 core"},{label:"memory",content:"4G"},{label:"disk",content:"80G"},{label:"network",content:"4M",span:2},{label:"IDC",content:"beijing"},{label:"Note",content:"其它说明",span:3}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="属性表",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"标题",type:"input-text",name:"title"},{label:"每行显示几列",type:"input-number",value:3,name:"column"},{type:"radios",name:"mode",inline:!0,value:"table",label:"显示模式",options:["table","simple"]},{label:"分隔符",type:"input-text",name:"separator",visibleOn:'data.mode === "simple"'},{label:"属性取自变量",type:"input-text",name:"source"},{label:"属性列表",name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增",items:[{type:"input-text",mode:"inline",size:"sm",label:"属性名",name:"label"},{type:"input-text",mode:"inline",size:"sm",label:"属性值",name:"content"},{type:"input-number",mode:"inline",size:"sm",label:"跨几列",value:1,name:"span"}]}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.PropertyPlugin=l,(0,r.registerEditorPlugin)(l)},2500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodePlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="qrcode",t.$schema="/schemas/QRCodeSchema.json",t.name="二维码",t.description="可以用来生成二维码",t.tags=["功能"],t.icon="fa fa-qrcode",t.scaffold={type:"qrcode",value:"https://amis.baidu.com"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="二维码",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"value",type:"input-text",label:"二维码值",pipeIn:(0,o.defaultValue)("https://www.baidu.com"),description:"支持使用 <code>\\${xxx}</code> 来获取变量"},{name:"level",type:"select",label:"复杂度",pipeIn:(0,o.defaultValue)("L"),options:[{label:"L",value:"L"},{label:"M",value:"M"},{label:"Q",value:"Q"},{label:"H",value:"H"}]}]},{title:"外观",body:[{name:"codeSize",type:"input-number",label:"宽高值",pipeIn:(0,o.defaultValue)(128)},{name:"backgroundColor",type:"input-color",label:"背景色",pipeIn:(0,o.defaultValue)("#fff")},{name:"foregroundColor",type:"input-color",label:"前景色",pipeIn:(0,o.defaultValue)("#000")},(0,o.getSchemaTpl)("className")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.QRCodePlugin=l,(0,r.registerEditorPlugin)(l)},7328:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResetPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="reset",t.name="重置",t.icon="fa fa-eraser",t.description="一般用来重置表单数据到初始值。",t.docLink="",t.panelTitle="按钮",t.scaffold={type:"reset",label:"重置"},t.previewSchema=(0,a.__assign)({},t.scaffold),t}return(0,a.__extends)(t,e),t}(n(6460).ButtonPlugin);t.ResetPlugin=i,(0,r.registerEditorPlugin)(i)},946:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ServicePlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="service",t.$schema="/schemas/ServiceSchema.json",t.name="服务(Service)",t.description="功能性容器,可以用来加载数据或者加载渲染器配置。加载到的数据在容器可以使用。",t.tags=["功能"],t.icon="fa fa-server",t.scaffold={type:"service",body:[{type:"tpl",tpl:"内容",inline:!1}]},t.previewSchema={type:"tpl",tpl:"功能性组件,用于数据拉取。"},t.regions=[{key:"body",label:"内容区"}],t.panelTitle="服务",t.panelBodyCreator=function(e){return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showInsertPanel("body",e.id)}},"添加内容")},{type:"divider"},(0,s.getSchemaTpl)("api",{label:"数据接口"}),{name:"ws",type:"input-text",label:"WebSocket 实时更新接口"},(0,s.getSchemaTpl)("initFetch"),{name:"interval",label:"定时刷新间隔",visibleOn:"this.api",type:"input-number",step:500,description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默加载",mode:"inline",className:"block",type:"switch",visibleOn:"!!data.interval",description:"设置自动定时刷新是否显示加载动画"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{type:"divider"},(0,s.getSchemaTpl)("api",{name:"schemaApi",label:"内容 Schema 接口"}),{type:"divider"},(0,s.getSchemaTpl)("initFetch",{name:"initFetchSchema",visibleOn:"data.schemaApi",label:"初始是否拉取内容 Schema 接口"}),{type:"js-editor",allowFullscreen:!0,name:"dataProvider",label:"自定义函数获取数据",description:"将会传递 data 和 setData 两个参数"},{label:"默认消息信息",type:"combo",name:"messages",multiLine:!0,description:"设置 service 默认提示信息,当 service 没有返回 msg 信息时有用,如果 service 返回携带了 msg 值,则还是以 service 返回为主",items:[{label:"获取成功",type:"input-text",name:"fetchSuccess"},{label:"获取失败",type:"input-text",name:"fetchFailed"}]}]},{title:"外观",body:[(0,s.getSchemaTpl)("className")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("name"),(0,s.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.ServicePlugin=u,(0,o.registerEditorPlugin)(u)},1886:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparklinePlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="sparkline",t.$schema="/schemas/SparklineSchema.json",t.name="走势图",t.description="用于内嵌展示简单图表",t.tags=["展示"],t.icon="fa fa-area-chart",t.scaffold={type:"sparkline",height:30,value:[3,5,2,4,1,8,3,7]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="走势图",t.panelBody=[{name:"height",type:"input-number",label:"高度"}],t}return(0,a.__extends)(t,e),t}(n(9933).BasePlugin);t.SparklinePlugin=i,(0,r.registerEditorPlugin)(i)},8979:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatusPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="status",t.$schema="/schemas/StatusSchema.json",t.name="状态显示",t.description="用图标更具关联字段来展示状态,比如 1 展示 √、0 展示 x。这块可以自定义配置",t.tags=["展示"],t.icon="fa fa-check-square-o",t.scaffold={type:"status",value:1},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="状态",t.panelBodyCreator=function(e){return[/\/field\/\w+$/.test(e.path)?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"<p>当前为字段内容节点配置,选择上层还有更多的配置。</p>"}:null,{name:"map",label:"图标配置",type:"input-array",items:{type:"input-text"},descrition:"配置不通的值段,用不通的样式提示用户",pipeIn:(0,o.defaultValue)(["fa fa-times text-danger","fa fa-check text-success"])},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"},(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]},t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.StatusPlugin=l,(0,r.registerEditorPlugin)(l)},46:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StepsPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="steps",t.$schema="/schemas/StepsSchema.json",t.name="Steps 步骤条",t.icon="fa fa-forward",t.description="Steps 步骤条",t.tags=["展示"],t.scaffold={type:"steps",value:1,steps:[{title:"第一步",subTitle:"副标题",description:"描述"},{title:"第二步"},{title:"第三步"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="Steps",t.panelBody=[{type:"tabs",tabs:[{title:"基础",body:[{name:"steps",label:"步骤列表",type:"combo",scaffold:{type:"wrapper",body:"子节点内容"},minLength:2,multiple:!0,draggable:!0,items:[{type:"input-text",name:"title",label:!1,placeholder:"标题"},{type:"input-text",name:"subTitle",label:!1,placeholder:"副标题"},{type:"input-text",name:"description",label:!1,placeholder:"描述"}]},{name:"value",type:"input-text",label:"当前步骤",description:"以零为起点"},{name:"status",type:"select",label:"当前状态",creatable:!0,value:"finish",options:[{label:"进行中",value:"process"},{label:"等待",value:"wait"},{label:"完成",value:"finish"},{label:"出错",value:"error"}]},(0,o.getSchemaTpl)("api",{name:"source",label:"获取步骤接口"})]},{title:"样式",body:[(0,o.getSchemaTpl)("className")]},{title:"显隐",body:[(0,o.getSchemaTpl)("visible")]}]}],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.StepsPlugin=l,(0,r.registerEditorPlugin)(l)},9268:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="submit",t.name="提交",t.description="用来提交表单,要求表单验证,如果在弹窗中会自动关闭弹窗。",t.docLink="",t.panelTitle="按钮",t.scaffold={type:"submit",label:"提交",level:"primary"},t.previewSchema=(0,a.__assign)({},t.scaffold),t}return(0,a.__extends)(t,e),t}(n(6460).ButtonPlugin);t.SubmitPlugin=i,(0,r.registerEditorPlugin)(i)},7599:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TablePlugin=void 0;var a=n(752),r=n(1502),i=n(9756),o=n(9933),l=n(9547),s=n(3570),u=n(3893),c=n(6374),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="table",t.$schema="/schemas/TableSchema.json",t.name="表格",t.description="用来展示表格数据,可以配置列信息,然后关联数据便能完成展示。支持嵌套、超级表头、列固定、表头固顶、合并单元格等等。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.docLink="/amis/zh-CN/components/table",t.icon="fa fa-table",t.scaffold={type:"table",columns:[{label:"列信息",name:"a"}]},t.regions=[{key:"columns",label:"列集合",renderMethod:"renderTableContent",preferTag:"展示",dndMode:"position-h"}],t.previewSchema={type:"table",className:"text-left m-b-none",affixHeader:!1,items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}],columns:[{label:"A",name:"a"},{label:"B",name:"b"}]},t.scaffoldForm={title:"快速构建表格",body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:"新增一列",draggable:!0,items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],canRebuild:!0},t.panelTitle="表格",t.panelBodyCreator=function(e){var t="crud"===e.schema.type;return(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题"},t?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,l.defaultValue)("${items}"),description:"绑定当前环境变量"},{name:"combineNum",label:"自动合并单元格",type:"input-number",placeholder:"设置列数",description:"设置从左到右多少列内启用自动合并单元格,根据字段值是否相同来决定是否合并。"}]},{title:"外观",body:[{name:"columnsTogglable",label:"展示列显示开关",type:"button-group-select",pipeIn:(0,l.defaultValue)("auto"),mode:"inline",className:"w-full",size:"xs",options:[{label:"自动",value:"auto"},{label:"开启",value:!0},{label:"关闭",value:!1}],description:"自动即列数量大于5个时自动开启"},{name:"affixHeader",type:"switch",label:"是否固顶表头",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},{name:"showHeader",type:"switch",mode:"inline",className:"w-full",label:"是否显示头部",pipeIn:(0,l.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"w-full",label:"是否显示底部",pipeIn:(0,l.defaultValue)(!0)},{name:"footable",type:"switch",mode:"inline",className:"w-full",label:"是否开启单条底部展示",description:"如果列太多显示会很臃肿,可以考虑把部分列放在当前行的底部展示",pipeIn:function(e){return!!e}},{name:"footable.expand",type:"button-group-select",size:"xs",visibleOn:"data.footable",label:"底部默认展开",pipeIn:(0,l.defaultValue)("none"),mode:"inline",className:"w-full",options:[{label:"第一条",value:"first"},{label:"所有",value:"all"},{label:"不展开",value:"none"}]},{name:"placeholder",pipeIn:(0,l.defaultValue)("暂无数据"),type:"input-text",label:"无数据提示"},{name:"rowClassNameExpr",type:"input-text",label:"行高亮规则",placeholder:"支持模板语法,如 <%= data.id % 2 ? 'bg-success' : '' %>"},(0,l.getSchemaTpl)("className",{label:"外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"tableClassName",label:"表格 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"顶部外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"footerClassName",label:"底部外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"toolbarClassName",label:"工具栏 CSS 类名"})]},{title:"其他",body:[(0,l.getSchemaTpl)("ref"),(0,l.getSchemaTpl)("visible")]}])},t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){var t=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,e.data):(0,r.resolveVariable)("${items}",e.data);if(Array.isArray(t)&&t.length)e.value=t.slice(0,10);else{var n={};Array.isArray(e.columns)&&e.columns.forEach((function(e){e.name&&(0,u.setVariable)(n,e.name,(0,c.mockValue)(e))})),e.value=(0,s.repeatArray)(n,1).map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{id:t+1})}))}return e},t.prototype.getRendererInfo=function(t){var n,r=this,i=t.schema,o=t.renderer;return i.$$id||"crud"!==(null===(n=i.$$editor)||void 0===n?void 0:n.renderer.name)||"table"!==o.name?e.prototype.getRendererInfo.call(this,t):(0,a.__assign)((0,a.__assign)({},{id:i.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t.prototype.beforeInsert=function(e){var t,n,r,i,o=e.context;o.info.plugin!==this&&(null===(t=o.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"columns"!==o.region||(o.data=(0,a.__assign)((0,a.__assign)({},o.data),{label:null!==(i=null!==(n=o.data.label)&&void 0!==n?n:null===(r=o.subRenderer)||void 0===r?void 0:r.name)&&void 0!==i?i:"列名称"}))},t}(o.BasePlugin);t.TablePlugin=d,(0,i.registerEditorPlugin)(d)},9700:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=n(3893),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="列配置",t.panelIcon="fa fa-columns",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement(r.Button,{size:"sm",level:"info",className:"m-b",block:!0,onClick:t.exchangeRenderer.bind(t,e.id)},"更改渲染器类型")},{name:"label",label:"列名称",type:"input-text"},{name:"name",type:"input-text",label:"绑定字段名"},{name:"remark",label:"提示",type:"input-text",description:"显示一个提示图标,鼠标放上去会提示该内容。"},{name:"placeholder",type:"input-text",label:"占位符",value:"-",description:"当没有值时用这个来替代展示"},{name:"sortable",type:"switch",label:"是否可排序",mode:"inline",className:"w-full",description:"开启后可以根据当前列排序(后端排序)。"}]},{title:"高级",body:[{name:"groupName",label:"列分组名称",type:"input-text",description:'当多列的分组名称设置一致时,表格会在显示表头的上层显示超级表头,<a href="https://baidu.github.io/amis/crud/header-group" target="_blank">示例</a>'},{name:"quickEdit",label:"启用快速编辑",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.quickEdit",name:"quickEdit.mode",type:"button-group-select",value:"popOver",label:"快速编辑模式",size:"xs",mode:"inline",className:"w-full",options:[{label:"下拉",value:"popOver"},{label:"内嵌",value:"inline"}]},{visibleOn:"data.quickEdit",name:"quickEdit.saveImmediately",label:"是否立即保存",type:"switch",mode:"inline",className:"w-full",description:"开启后修改即提交,而不是标记修改批量提交。",descriptionClassName:"help-block m-b-none",pipeIn:function(e){return!!e}},(0,s.getSchemaTpl)("api",{label:"立即保存接口",description:"是否单独给立即保存配置接口,如果不配置,则默认使用quickSaveItemApi。",name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{visibleOn:"data.quickEdit",name:"quickEdit",asFormItem:!0,children:function(e){var n=e.value,o=e.onChange,l=e.data;!0===n?n={}:void 0===n&&(n=(0,u.getVariable)(l,"quickEdit"));var s=n.mode;return delete(n=(0,a.__assign)({type:"input-text",name:l.name},n)).mode,i.default.createElement(r.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置快速编辑类型",value:n,slot:{type:"form",mode:"normal",body:["$$"],wrapWithPanel:!1},onChange:function(e){return o((0,a.__assign)((0,a.__assign)({},e),{mode:s}),"quickEdit")}})}},"配置快速编辑")}},{name:"popOver",label:"启用查看更多展示",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{name:"popOver.mode",label:"查看更多弹出模式",type:"select",visibleOn:"data.popOver",pipeIn:(0,s.defaultValue)("popOver"),options:[{label:"默认",value:"popOver"},{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},{name:"popOver.position",label:"查看更多弹出模式",type:"select",visibleOn:'data.popOver && data.popOver.mode === "popOver"',pipeIn:(0,s.defaultValue)("center"),options:[{label:"目标中部",value:"center"},{label:"目标左上角",value:"left-top"},{label:"目标右上角",value:"right-top"},{label:"目标左下角",value:"left-bottom"},{label:"目标右下角",value:"right-bottom"},{label:"页面左上角",value:"fixed-left-top"},{label:"页面右上角",value:"fixed-right-top"},{label:"页面左下角",value:"fixed-left-bottom"},{label:"页面右下角",value:"fixed-right-bottom"}]},{visibleOn:"data.popOver",name:"popOver",asFormItem:!0,children:function(e){var n=e.value,o=e.onChange;return n=(0,a.__assign)({type:"panel",title:"查看详情",body:"内容详情"},n),i.default.createElement(r.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置查看更多展示内容",value:n,onChange:function(e){return o(e,"popOver")}})}},"查看更多内容配置")}},{name:"copyable",label:"启用内容复制功能",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.copyable",name:"copyable.content",type:"textarea",label:"复制内容模板",description:"默认为当前字段值,可定制。"}]},{title:"外观",body:[{name:"fixed",type:"button-group-select",label:"固定位置",pipeIn:(0,s.defaultValue)(""),size:"xs",mode:"inline",className:"w-full",options:[{value:"",label:"不固定"},{value:"left",label:"左侧"},{value:"right",label:"右侧"}]},{name:"toggled",type:"switch",label:"默认展示",mode:"inline",className:"w-full",pipeIn:(0,s.defaultValue)(!0)},{name:"breakpoint",type:"button-group-select",label:"触发底部显示条件",visibleOn:"data.tableFootableEnabled",size:"xs",multiple:!0,options:[{label:"总是",value:"*"},{label:"手机端",value:"xs"},{label:"平板",value:"sm"},{label:"PC小屏",value:"md"},{label:"PC大屏",value:"lg"}],pipeIn:function(e){return e?"string"==typeof e?e:"*":""},pipeOut:function(e){return"string"==typeof e&&~e.indexOf("*")&&/xs|sm|md|lg/.test(e)?e.replace(/\*\s*,\s*|\s*,\s*\*/g,""):e}},{type:"switch",name:"className",label:"内容强制换行",mode:"inline",className:"w-full",pipeIn:function(e){return"string"==typeof e&&/\word\-break\b/.test(e)},pipeOut:function(e,t){return(e?"word-break ":"")+(t||"").replace(/\bword\-break\b/g,"").trim()}},(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("className",{name:"innerClassName",label:"内部 CSS 类名"}),{name:"width",type:"input-number",label:"列宽",description:"固定列的宽度,不推荐设置。"}]}])]},t}return(0,a.__extends)(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema;if("table-cell"===t.name)return{name:n.label?"<"+n.label+">列":"匿名列",$schema:"/schemas/TableColumn.json",multifactor:!0,wrapperResolve:function(e){var t=[].slice.call(e.parentElement.children).indexOf(e)+1,a=e.closest("table");return[].slice.call(a.querySelectorAll("th:nth-child("+t+'):not([data-editor-id="'+n.id+'"]),\n td:nth-child('+t+'):not([data-editor-id="'+n.id+'"])'))}}},t.prototype.exchangeRenderer=function(e){this.manager.showReplacePanel(e,"展示")},t.prototype.beforeReplace=function(e){var t=e.context;t.info.plugin===this&&t.data&&(t.data.label=t.data.label||t.schema.label,t.data.name=t.data.name||t.schema.name)},t}(l.BasePlugin);t.TableCellPlugin=c,(0,o.registerEditorPlugin)(c)},2156:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=n(9933),l=n(9547),s=n(5863),u=n(1578),c=n(3570),d={body:{type:"tpl",tpl:"---"}};function p(e){if(!e)return{trs:[]};for(var t=[],n=0,a=0,r=e.trs||[];a<r.length;a++){for(var i=0,o=0,l=r[a].tds||[];o<l.length;o++){for(var s=l[o];t[n]&&t[n][i];)i+=1;var u=s.rowspan||1,c=s.colspan||1;if(u>1||c>1)for(var d=0;d<u;d++){var p=n+d;t[p]||(t[p]=[]);for(var f=0;f<c;f++){var m=i+f;t[p][m]=!0}}s.$$row=n,s.$$col=i,i+=1}n+=1}return e}var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="table-view",t.$schema="/schemas/TableViewSchema.json",t.name="表格视图",t.icon="fa fa-columns",t.description="表格类型的展现",t.tags=["容器"],t.scaffold={type:"table-view",trs:[{background:"#F7F7F7",tds:[{body:{type:"tpl",tpl:"地区"}},{body:{type:"tpl",tpl:"城市"}},{body:{type:"tpl",tpl:"销量"}}]},{tds:[{rowspan:2,body:{type:"tpl",tpl:"华北"}},{body:{type:"tpl",tpl:"北京"}},{body:{type:"tpl",tpl:"${beijing}"}}]},{tds:[{body:{type:"tpl",tpl:"天津"}},{body:{type:"tpl",tpl:"${tianjing}"}}]}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.regions=[{key:"body",label:"内容区",renderMethod:"renderTdBody",preferTag:"展示"}],t.panelTitle="表格视图",t.panelBody=[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",label:"宽度",name:"width",clearable:!0},{type:"input-text",label:"默认内边距",name:"padding",clearable:!0},{type:"switch",name:"border",mode:"inline",className:"w-full",label:"是否显示边框"},{label:"边框颜色",type:"input-color",name:"borderColor"},(0,l.getSchemaTpl)("visible")]},{title:"样式",body:[(0,l.getSchemaTpl)("className"),(0,l.getSchemaTpl)("style")]}])],t.fieldWrapperResolve=function(e){return e},t.overrides={renderTd:function(e,t,n){var a=this.super(e,t,n),i=this.props.$$editor;if(!i||!e.$$id)return a;var o=i.plugin,l=e.$$id;return r.default.createElement(s.VRenderer,{plugin:i.plugin,renderer:i.renderer,key:l,$schema:"/schemas/TdObject.json",hostId:i.id,memberIndex:t,name:"单元格 "+(n+1)+","+(t+1),id:l,draggable:!1,wrapperResolve:o.fieldWrapperResolve,schemaPath:i.schemaPath+"/td",path:this.props.$path+"/tr/"+n+"/td/"+t,data:this.props.data,children:a})},renderTr:function(e,t){var n=this.super(e,t),a=this.props.$$editor;if(!a||!e.$$id)return n;var i=a.plugin,o=e.$$id;return r.default.createElement(s.VRenderer,{plugin:a.plugin,renderer:a.renderer,key:o,$schema:"/schemas/TrObject.json",hostId:a.id,memberIndex:t,name:"行 "+(t+1),id:o,draggable:!1,wrapperResolve:i.fieldWrapperResolve,schemaPath:a.schemaPath+"/tr",path:this.props.$path+"/tr/"+t,data:this.props.data,children:n})}},t.tdVRendererConfig={panelTitle:"单元格",panelBodyCreator:function(e){return[{label:"单元格背景色",type:"input-color",name:"background"},{label:"文字颜色",type:"input-color",name:"color"},{type:"switch",name:"bold",mode:"inline",className:"w-full",label:"文字加粗"},{type:"input-number",name:"padding",label:"内边距"},{type:"select",name:"align",label:"水平对齐",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]},{type:"select",name:"valign",label:"垂直对齐",options:[{label:"顶",value:"top"},{label:"中",value:"middle"},{label:"底",value:"bottom"}]},{type:"input-number",name:"rowspan",label:"跨几行"},{type:"input-number",name:"colspan",label:"跨几列"},(0,l.getSchemaTpl)("style")]}},t.trVRendererConfig={panelTitle:" 行",panelBodyCreator:function(e){return[{label:"行背景色",type:"input-color",name:"background"},{label:"行高度",type:"input-number",name:"height"}]}},t}return(0,a.__extends)(t,e),t.prototype.renderRenderer=function(e){var t=e.$$editor.renderer,n=e.$schema;return p(n),r.default.createElement(u.TableViewEditor,{schema:n,manager:this.manager},r.default.createElement(t.component,(0,a.__assign)({},e)))},t.prototype.buildEditorPanel=function(t,n){e.prototype.buildEditorPanel.call(this,t,n),t.info.schemaPath.endsWith("/td")?n.push({key:"td",order:100,icon:this.tdVRendererConfig.panelIcon||"fa fa-tablet",title:this.tdVRendererConfig.panelTitle||"格子",render:this.manager.makeSchemaFormRender({controls:this.tdVRendererConfig.panelControlsCreator?this.tdVRendererConfig.panelControlsCreator(t):this.tdVRendererConfig.panelControls,body:this.tdVRendererConfig.panelBodyCreator?this.tdVRendererConfig.panelBodyCreator(t):this.tdVRendererConfig.panelBody})}):t.info.schemaPath.endsWith("/tr")&&n.push({key:"tr",order:100,icon:this.trVRendererConfig.panelIcon||"fa fa-tablet",title:this.trVRendererConfig.panelTitle||"格子",render:this.manager.makeSchemaFormRender({controls:this.trVRendererConfig.panelControlsCreator?this.trVRendererConfig.panelControlsCreator(t):this.trVRendererConfig.panelControls,body:this.trVRendererConfig.panelBodyCreator?this.trVRendererConfig.panelBodyCreator(t):this.trVRendererConfig.panelBody})})},t.prototype.insertRow=function(e,t){var n=this.manager.store,a=n.getNodePathById(e),r=a[a.length-3].id,i=n.getSchema(r);p(i);var o=(0,c.JSONGetById)(i,e);if(o){var l=o.$$row;"below"===t&&(l+=1);var s=i.trs[0],u=s.tds[s.tds.length-1];if(u){for(var f=u.$$col+(u.colspan||1),m=i.trs.length,h=0;h<i.trs.length;h++)for(var v=0,b=i.trs[h].tds||[];v<b.length;v++){var g=b[v],y=g.$$row,_=g.rowspan||1,w=g.colspan||1;if(_>1&&y+_>l&&(g.rowspan=_+1,f-=w),y===l){m=h;break}}for(var S=[],x=0;x<f;x++)S.push(d);i.trs.splice(m,0,{tds:S}),this.manager.store.changeValueById(r,i)}else console.warn("第一列没内容")}else console.warn("找不到对应的 td id")},t.prototype.insertCol=function(e,t){var n=this.manager.store,a=n.getNodePathById(e),r=a[a.length-3].id,i=n.getSchema(r);p(i);var o=(0,c.JSONGetById)(i,e);if(o){var l=o.$$col;"right"===t&&(l+=1);for(var s=0,u=i.trs||[];s<u.length;s++){for(var f=u[s].tds||[],m=!1,h=0;h<f.length;h++){var v=f[h],b=v.colspan||1,g=v.$$col;if(b>1&&g+b>l){v.colspan=b+1,m=!0;break}if(l<=g){f.splice(h,0,d),m=!0;break}}m||f.push(d)}this.manager.store.changeValueById(r,i)}else console.warn("找不到对应的 td id")},t.prototype.splitCell=function(e){var t=this.manager.store,n=t.getNodePathById(e),a=n[n.length-3].id,r=t.getSchema(a);p(r);var i=(0,c.JSONGetById)(r,e);if(i){var o=i.rowspan||1,l=i.colspan||1;i.colspan=1,i.rowspan=1;for(var s=i.$$row,u=i.$$col,f=[],m=0;m<o;m++)for(var h=0;h<l;h++)0===m&&0===h||f.push({row:s+m,col:u+h});f.sort((function(e,t){return t.col-e.col}));for(var v=0,b=r.trs;v<b.length;v++)for(var g=b[v],y=0;y<g.tds.length;y++)for(var _=g.tds[y],w=_.$$row,S=_.$$col,x=f.length;x--;){var E=f[x];w===E.row&&(E.col<=S?g.tds.splice(y,0,d):g.tds.push(d),f.splice(x,1))}if(f.length){var O=[];for(m=0;m<f.length;m++)O.push(d);r.trs.push({tds:O})}this.manager.store.changeValueById(a,r)}else console.warn("找不到对应的 td id")},t.prototype.buildEditorToolbar=function(e,t){var n=this,a=e.schema;if(e.info.schemaPath.endsWith("/td")){var r=a.$$id;t.push({icon:"fa fa-chevron-left",order:100,tooltip:"左侧新增列",onClick:function(){n.insertCol(r,"left")}}),t.push({icon:"fa fa-chevron-down",order:100,tooltip:"下方新增行",onClick:function(){n.insertRow(r,"below")}}),t.push({icon:"fa fa-chevron-up",order:100,tooltip:"上方新增行",onClick:function(){n.insertRow(r,"above")}}),t.push({icon:"fa fa-chevron-right",order:100,tooltip:"右侧新增列",onClick:function(){n.insertCol(r,"right")}});var i=a.colspan||1,o=a.rowspan||1;(i>1||o>1)&&t.push({icon:"fa fa-columns",order:100,tooltip:"拆分单元格",onClick:function(){n.splitCell(r)}})}},t}(o.BasePlugin);t.TableViewPlugin=f,(0,i.registerEditorPlugin)(f)},4300:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabsPlugin=void 0;var a=n(752),r=(0,a.__importDefault)(n(6689)),i=n(9756),o=n(9933),l=n(9547),s=n(9703),u=n(5863),c=(0,a.__importDefault)(n(8425)),d=n(1548),p=n(1502),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tabs",t.$schema="/schemas/TabsSchema.json",t.name="选项卡",t.description="选项卡,可以将内容分组用选项卡的形式展示,降低用户使用成本。",t.docLink="/amis/zh-CN/components/tabs",t.tags=["容器"],t.icon="fa fa-folder-o",t.scaffold={type:"tabs",tabs:[{title:"选项卡1",body:"内容1"},{title:"选项卡2",body:"内容2"}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="选项卡",t.panelBody=[(0,l.getSchemaTpl)("fieldSet",{title:"常规",body:[{name:"tabs",type:"combo",label:"选项卡管理",multiple:!0,draggable:!0,minLength:1,items:[{type:"input-text",name:"title",required:!0}],scaffold:{title:"选项卡",body:{type:"tpl",tpl:"内容",inline:!1}},addButtonText:"新增选项卡",draggableTip:""}]}),(0,l.getSchemaTpl)("fieldSet",{title:"外观",body:[{name:"tabsMode",label:"样式",type:"select",className:"block",pipeIn:(0,l.defaultValue)(""),options:[{label:"默认",value:""},{label:"线型",value:"line"},{label:"卡片",value:"card"},{label:"仿 Chrome",value:"chrome"},{label:"水平铺满",value:"tiled"},{label:"选择器",value:"radio"},{label:"垂直",value:"vertical"}]},(0,l.getSchemaTpl)("className"),(0,l.getSchemaTpl)("className",{name:"contentClassName",label:"选项卡成员 CSS 类名"}),(0,l.getSchemaTpl)("subFormItemMode"),(0,l.getSchemaTpl)("subFormHorizontalMode"),(0,l.getSchemaTpl)("subFormHorizontal")]}),(0,l.getSchemaTpl)("fieldSet",{title:"其他",body:[{type:"switch",name:"mountOnEnter",label:"激活时才渲染",mode:"inline",className:"block",description:"设置后选项卡的内容只有点开才会渲染,如果有选项卡放的可拉取接口的组件,那么这个接口只有在点开的时候才会拉取。"},{type:"switch",name:"unmountOnExit",label:"隐藏即销毁",mode:"inline",className:"block",description:"设置后,如果选项卡内容关闭则销毁,配置「激活时才渲染」选项可以做到卡片内容每次点开都重新加载的效果。"},(0,l.getSchemaTpl)("visible")]})],t.patchContainers=["tabs.body"],t.vRendererConfig={regions:{body:{key:"body",label:"内容区"}},panelTitle:"卡片",panelBody:[(0,l.getSchemaTpl)("fieldSet",{title:"常规",body:[{name:"title",label:"标题",type:"input-text",required:!0},(0,l.getSchemaTpl)("icon"),{label:"Hash",name:"hash",type:"input-text",description:"设置后,会同步更新地址栏的 Hash。"}]}),(0,l.getSchemaTpl)("fieldSet",{title:"外观",body:[(0,l.getSchemaTpl)("className")],collapsed:!0}),(0,l.getSchemaTpl)("fieldSet",{title:"其他",body:[{type:"switch",name:"reload",label:"内容刷新",mode:"inline",className:"block",description:"配置后,每次点开内容都会重新刷新,如果配置了,下面两个选项就不用配置了。"},{type:"switch",name:"mountOnEnter",visibleOn:"!this.reload",label:"激活时才渲染",mode:"inline",className:"block",description:"设置后选项卡的内容只有点开才会渲染,如果有选项卡放的可拉取接口的组件,那么这个接口只有在点开的时候才会拉取。"},{visibleOn:"!this.reload",type:"switch",name:"unmountOnExit",label:"隐藏即销毁",mode:"inline",className:"block",description:"设置后,如果选项卡内容关闭则销毁,配置「激活时才渲染」选项可以做到卡片内容每次点开都重新加载的效果。"},(0,l.getSchemaTpl)("visible"),(0,l.getSchemaTpl)("disabled")]})]},t.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},t.tabWrapperResolve=function(e){return e.parentElement},t.overrides={renderTabs:function(){var e=this,t=this.super();if(!this.renderTab&&this.props.$$editor&&t){var n=this.props.tabs;return(0,s.mapReactElement)(t,(function(t){var a,i;if(t.type===p.Tab&&t.props.$$id){var o=t.props.$$id,l=(0,c.default)(n,(function(e){return e.$$id===o})),s=e.props.$$editor,f=s.plugin;if(~l){var m=null===(i=null===(a=f.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===i?void 0:i.body;return m?r.default.cloneElement(t,{children:r.default.createElement(u.VRenderer,{key:o,plugin:s.plugin,renderer:s.renderer,$schema:"/schemas/TabSchema.json",hostId:s.id,memberIndex:l,name:""+(t.props.title||"卡片"+(l+1)),id:o,draggable:!1,wrapperResolve:f.tabWrapperResolve,schemaPath:s.schemaPath+"/tabs/"+l,path:e.props.$path+"/"+l,data:e.props.data},r.default.createElement(d.RegionWrapper,{key:m.key,preferTag:m.preferTag,name:m.key,label:m.label,regionConfig:m,placeholder:m.placeholder,editorStore:f.manager.store,manager:f.manager,children:t.props.children,wrapperResolve:m.wrapperResolve,rendererName:s.renderer.name}))}):t}}return t}))}return t}},t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&"tabs"===e.info.renderer.name&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个卡片",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.switchTo){var t=e.currentIndex();e.switchTo(t-1)}}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个卡片",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.switchTo){var t=e.currentIndex();e.switchTo(t+1)}}})}},t.prototype.onPreventClick=function(e){var t=e.context.data;return!t.defaultPrevented&&!t.target.closest("[role=tablist]>li")&&void 0},t}(o.BasePlugin);t.TabsPlugin=f,(0,i.registerEditorPlugin)(f)},2022:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TasksPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tasks",t.$schema="/schemas/TasksSchema.json",t.name="异步任务",t.description="用来做异步任务呈现或者操作。",t.tags=["功能"],t.icon="",t.scaffold={type:"tasks",name:"tasks",items:[{label:"hive 任务",key:"hive",status:4,remark:'查看详情<a target="_blank" href="http://www.baidu.com">日志</a>。'},{label:"小流量",key:"partial",status:4},{label:"全量",key:"full",status:4}]},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="异步任务",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"items",label:"初始任务信息",type:"combo",multiple:!0,multiLine:!0,items:[{name:"label",type:"input-text",label:"任务名称"},{name:"key",type:"input-text",label:"任务ID"},{name:"status",type:"input-number",label:"任务状态"},{name:"remark",type:"textarea",label:"任务说明"}],addButtonText:"新增任务信息",scaffold:{label:"名称",key:"key",status:0,remark:"说明"},description:"可以不设置,如果检测接口返回这些信息的话。"},(0,o.getSchemaTpl)("api",{name:"checkApi",label:"状态检测接口"}),{name:"interval",type:"input-number",min:3e3,step:500,visibleOn:"data.checkApi",pipeIn:(0,o.defaultValue)(3e3),label:"定时检测间隔"},(0,o.getSchemaTpl)("api",{name:"submitApi",label:"提交接口"}),(0,o.getSchemaTpl)("api",{name:"reSubmitApi",label:"重试接口"}),{name:"taskNameLabel",type:"input-text",pipeIn:(0,o.defaultValue)("任务名称"),label:"任务名称栏标题"},{name:"operationLabel",type:"input-text",pipeIn:(0,o.defaultValue)("操作"),label:"操作栏标题"},{name:"statusLabel",type:"input-text",pipeIn:(0,o.defaultValue)("状态"),label:"状态栏标题"},{name:"remarkLabel",type:"input-text",pipeIn:(0,o.defaultValue)("备注说明"),label:"备注栏标题"},{name:"btnText",label:"按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("上线")},{name:"retryBtnText",label:"重试按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("重试")},{name:"statusTextMap",pipeIn:(0,o.defaultValue)(["未开始","就绪","进行中","出错","已完成","出错"]),type:"input-array",label:"状态标签文字配置",multiple:!0,addable:!1,removable:!1,items:{type:"input-text",placeholder:"名称"}},{name:"initialStatusCode",label:"初始状态码",pipeIn:(0,o.defaultValue)(0),type:"input-number"},{name:"readyStatusCode",label:"就绪状态码",pipeIn:(0,o.defaultValue)(1),type:"input-number"},{name:"loadingStatusCode",label:"进行中状态码",pipeIn:(0,o.defaultValue)(2),type:"input-number"},{name:"errorStatusCode",label:"错误状态码",pipeIn:(0,o.defaultValue)(3),type:"input-number"},{name:"finishStatusCode",label:"完成状态码",pipeIn:(0,o.defaultValue)(4),type:"input-number"},{name:"canRetryStatusCode",label:"出错但可重试状态码",pipeIn:(0,o.defaultValue)(5),type:"input-number"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className",{pipeIn:(0,o.defaultValue)("b-a bg-white table-responsive")}),(0,o.getSchemaTpl)("className",{name:"tableClassName",label:"表格 CSS 类名",pipeIn:(0,o.defaultValue)("table table-striped m-b-none")}),(0,o.getSchemaTpl)("className",{name:"btnClassName",label:"按钮 CSS 类名",pipeIn:(0,o.defaultValue)("btn-sm btn-default")}),(0,o.getSchemaTpl)("className",{name:"retryBtnClassName",label:"重试按钮 CSS 类名",pipeIn:(0,o.defaultValue)("btn-sm btn-danger")}),{name:"statusLabelMap",pipeIn:(0,o.defaultValue)(["label-warning","label-info","label-info","label-danger","label-success","label-danger"]),type:"input-array",label:"状态标签 CSS 类名配置",multiple:!0,addable:!1,removable:!1,items:{type:"input-text",placeholder:"CSS 类名"}}]},{title:"显隐",body:[(0,o.getSchemaTpl)("visible")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref")]}])],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.TasksPlugin=l,(0,r.registerEditorPlugin)(l)},4799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimePlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="time",t.name="时间展示",t.scaffold={type:"time"},t.previewSchema=(0,a.__assign)((0,a.__assign)({},t.scaffold),{format:"HH:mm:ss",value:Math.round(Date.now()/1e3)}),t}return(0,a.__extends)(t,e),t}(n(2585).DatePlugin);t.TimePlugin=i,(0,r.registerEditorPlugin)(i)},4870:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TplPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547);(0,o.setSchemaTpl)("tpl:content",{label:"内容",type:"textarea",required:!0,minRows:5,language:"html",pipeIn:function(e,t){return e||t&&t.html},name:"tpl",description:'支持使用 <code>\\${xxx}</code> 来获取变量,或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>'}),(0,o.setSchemaTpl)("tpl:wrapperComponent",{name:"wrapperComponent",type:"select",pipeIn:(0,o.defaultValue)("div"),label:"格式",options:[{label:"普通文字",value:"div"},{label:"段落",value:"p"},{label:"一级标题",value:"h1"},{label:"二级标题",value:"h2"},{label:"三级标题",value:"h3"},{label:"四级标题",value:"h4"},{label:"五级标题",value:"h5"},{label:"六级标题",value:"h6"}]}),(0,o.setSchemaTpl)("tpl:inline",{label:"内联模式",type:"switch",name:"inline",mode:"inline",className:"w-full",pipeIn:(0,o.defaultValue)(!0),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"内联模式采用 <code>span</code> 标签、非内联将采用 <code>div</code> 标签作为容器。",placement:"left"}});var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tpl",t.$schema="/schemas/TplSchema.json",t.name="文字",t.icon="fa fa-file-o",t.description="用来展示文字或者段落,支持模板语法可用来关联动态数据。",t.docLink="/amis/zh-CN/components/tpl",t.tags=["展示"],t.previewSchema={type:"tpl",tpl:"这是模板内容当前时间<%- new Date() %>"},t.scaffold={type:"tpl",tpl:"请编辑内容",inline:!1},t.panelTitle="文字",t.panelBodyCreator=function(e){var t=/\/cell\/field\/tpl$/.test(e.path);return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[(0,o.getSchemaTpl)("tpl:content"),t?null:(0,o.getSchemaTpl)("tpl:wrapperComponent")]},{title:"外观",body:[(0,o.getSchemaTpl)("tpl:inline"),(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("style")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t.popOverBody=[(0,o.getSchemaTpl)("tpl:content"),(0,o.getSchemaTpl)("tpl:wrapperComponent")],t}return(0,a.__extends)(t,e),t}(i.BasePlugin);t.TplPlugin=l,(0,r.registerEditorPlugin)(l)},4763:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnkownRendererPlugin=void 0;var a=n(752),r=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=9999,t}return(0,a.__extends)(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,a=e.path;if(n.$$id&&t){if(/(^|\/)static\-field/.test(a))return;if("card-item"===t.name||"list-item-field"===t.name)return;return{name:"Unkown",$schema:"/schemas/UnkownSchema.json"}}},t}(n(9933).BasePlugin);t.UnkownRendererPlugin=i,(0,r.registerEditorPlugin)(i)},2766:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VideoPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=n(3570),s=n(6374),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="video",t.$schema="/schemas/VideoSchema.json",t.name="视频",t.description="视频控件,可以用来播放各种视频文件,包括 flv 和 hls 格式。",t.tags=["功能"],t.icon="fa fa-video-camera",t.scaffold={type:"video",autoPlay:!1,src:"https://media.w3.org/2010/05/sintel/trailer_hd.mp4",poster:(0,s.mockValue)({type:"image"})},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="视频",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"src",type:"input-text",label:"视频地址",description:"可以写静态值,也可以用变量取比如:<code>\\${videoSrc}</code>"},{name:"poster",type:"input-text",label:"视频封面图片地址",description:"可以写静态值,也可以用变量取比如:<code>\\${videoPoster}</code>"},{name:"autoPlay",type:"switch",mode:"inline",className:"block",label:"自动播放"},{name:"muted",type:"switch",mode:"inline",className:"block",label:"静音"},{name:"isLive",type:"switch",mode:"inline",className:"block",label:"直播流",description:"如果是直播流,请勾选,否则有可能不能正常播放。"}]},{title:"外观",body:[{name:"aspectRatio",label:"视频比例",type:"button-group-select",size:"sm",mode:"inline",className:"block",value:"auto",options:[{label:"自动",value:"auto"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},{name:"splitPoster",type:"switch",mode:"inline",className:"block",label:"分开显示封面"},(0,o.getSchemaTpl)("className")]},{title:"显隐",body:[(0,o.getSchemaTpl)("visible")]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),{type:"input-text",name:"rates",label:"视频速率",multiple:!0,joinValues:!1,extractValue:!0,options:[.5,1,1.25,1.5,2,2.5,3,3.5,4,4.5,5].map((function(e){return{label:e,value:e}}))},{name:"frames",type:"input-text",label:"视频帧信息",description:"比如填写:<code>\\${videoFrames}</code>会在当前作用域中查找 videoFrames 变量,如果是对象,将生成视频截图列表,点击后可跳转到对应的帧。"}]}])],t}return(0,a.__extends)(t,e),t.prototype.filterProps=function(e){return e.frames=(0,l.JSONPipeOut)(e.frames),e},t}(i.BasePlugin);t.VideoPlugin=u,(0,r.registerEditorPlugin)(u)},9963:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebComponentPlugin=void 0;var a=n(752),r=n(1502),i=n(9756),o=n(9933);n(1779);var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.connectedCallback=function(){this.attachShadow({mode:"open"}).textContent="web-component-demo"},t}(HTMLElement);customElements.define("web-component-demo",l);var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="web-component",t.$schema="/schemas/WebComponentSchema.json",t.name="Web Component",t.description="用于渲染 Web Component 组件",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"web-component",tag:"web-component-demo"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.panelTitle="包裹",t.panelBody=[{type:"input-text",label:"标签",name:"tag"},{type:"combo",label:"属性",name:"props",multiple:!0,pipeIn:function(e){if(!r.utils.isObject(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t},controls:[{placeholder:"Key",type:"text",unique:!0,name:"key",columnClassName:"w-xs"},{placeholder:"Value",type:"text",name:"value"}]}],t}return(0,a.__extends)(t,e),t}(o.BasePlugin);t.WebComponentPlugin=s,(0,i.registerEditorPlugin)(s)},3306:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPlugin=void 0;var a=n(752),r=n(9756),i=n(9933),o=n(9547),l=(0,a.__importDefault)(n(6689)),s=n(5863),u=n(9703),c=n(1548),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="wizard",t.$schema="/schemas/WizardSchema.json",t.name="向导",t.description="表单向导,可以将复杂的多个表单项拆分成多个步骤,一步一步指引用户完成填写。",t.docLink="/amis/zh-CN/components/form/wizard",t.tags=["功能"],t.icon="fa fa-list-ol",t.scaffold={type:"wizard",steps:[{title:"第一步",body:[{type:"input-text",label:"文本",name:"var1"}]},{title:"第二步",body:[{type:"input-text",label:"文本2",name:"var2"}]}]},t.previewSchema={type:"wizard",className:"text-left m-b-none",steps:[{title:"第一步",body:[{type:"input-text",label:"文本",name:"var1"}]},{title:"第二步",body:[]}]},t.panelTitle="向导",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"steps",label:"步骤设置",type:"combo",multiple:!0,multiLine:!0,addButtonText:"新增一步",scaffold:{title:"标题",items:[{type:"input-text",name:"var1",label:"文本"}]},items:[{name:"title",type:"input-text",label:"标题",pipeIn:function(e,t){return e||t.label}},{type:"fieldSet",title:"其他设置",collapsed:!0,collapsable:!0,className:"fieldset m-b-none",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,o.getSchemaTpl)("horizontal",{visibleOn:'data.mode == "horizontal"'}),(0,o.getSchemaTpl)("api",{label:"保存接口",description:"如果接口返回了 <code>step</code> 变量,且数值是数字类型,比如 <code>3</code>,提交完后回跳到第 3 步"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,o.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,o.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,o.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),(0,o.getSchemaTpl)("initFetch"),{label:"是否可被点开",type:"input-text",name:"jumpableOn",description:"用表达式来决定,当前步骤是否可被点开。额外可用变量:currentStep 表示当前步骤。"}]}]},{type:"input-text",name:"startStep",label:"起始默认值",description:"从第几步开始。可支持模版,但是只有在组件创建时渲染模版并设置当前步数,在之后组件被刷新时,当前step不会根据startStep改变"}]},{title:"接口",body:[(0,o.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化向导数据,当接口中返回 <code>step</code> 字段时,可以控制默认跳转到第几步,注意数值一定得是数字类型。当返回 <code>submiting</code> 并且当前步骤中存在异步保存接口时,可以让 wizard 初始进入异步提交状态。"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,o.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{name:"initFetch",type:"radios",label:"是否初始拉取",inline:!0,onChange:function(){document.getElementsByClassName("ae-Settings-content")[0].scrollTop=0},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetch",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"",className:"m-t-n-sm"},{type:"divider"},(0,o.getSchemaTpl)("api",{label:"保存接口",description:"用来保存表单数据, 最后一步点击完成触发,<code>如果最后一步中已经设置保存接口,则此处设置无效。</code>"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,o.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"})]},{title:"外观",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"sm",mode:"inline",className:"w-full",value:"horizontal",options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},{name:"actionPrevLabel",label:"上一步按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("上一步")},{name:"actionNextLabel",label:"下一步按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("下一步")},{name:"actionNextSaveLabel",label:"保存并下一步按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("保存并下一步")},{name:"actionFinishLabel",label:"完成按钮名称",type:"input-text",pipeIn:(0,o.defaultValue)("完成")},(0,o.getSchemaTpl)("className"),(0,o.getSchemaTpl)("className",{name:"actionClassName",label:"按钮 CSS 类名"})]},{title:"其他",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("name"),(0,o.getSchemaTpl)("reload"),{label:"跳转",name:"redirect",type:"input-text",description:"当设置此值后,表单提交完后跳转到目标地址。"},(0,o.getSchemaTpl)("visible")]}])],t.patchContainers=["steps.body"],t.vRendererConfig={regions:{body:{key:"body",label:"表单集合",wrapperResolve:function(e){return e}},actions:{label:"按钮组",key:"actions",preferTag:"按钮",wrapperResolve:function(e){return e}}},panelTitle:"步骤",panelBodyCreator:function(e){return(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题",pipeIn:function(e,t){return e||t.label}},(0,o.getSchemaTpl)("api",{label:"保存接口",description:"如果接口返回了 <code>step</code> 变量,且数值是数字类型,比如 <code>3</code>,提交完后回跳到第 3 步"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,o.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,o.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,o.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),(0,o.getSchemaTpl)("initFetch")]},{title:"外观",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,o.getSchemaTpl)("horizontal",{visibleOn:'data.mode == "horizontal"'})]},{title:"其他",body:[{label:"是否可被点开",type:"input-text",name:"jumpableOn",description:"用表达式来决定,当前步骤是否可被点开。额外可用变量:currentStep 表示当前步骤。"}]}])}},t.wizardWrapperResolve=function(e){return[].slice.call(e.querySelectorAll('[role="wizard-body"],[role="wizard-footer"]'))},t.overrides={renderWizard:function(){var e=this,t=this.props.$$editor,n=this.props.steps,r=this.state.currentStep,i=this.super();if(!t||!(null==n?void 0:n[r-1]))return i;var o=r-1,d=n[o],p=d.$$id,f=t.plugin;return(0,u.mapReactElement)(i,(function(n){return/Wizard-step\b/.test(n.props.className)?l.default.createElement(s.VRenderer,{key:p,plugin:t.plugin,renderer:t.renderer,$schema:"/schemas/WizardStepSchema.json",hostId:t.id,memberIndex:o,name:d.title||"步骤"+(o+1),id:p,draggable:!1,wrapperResolve:f.wizardWrapperResolve,schemaPath:t.schemaPath+"/steps/"+o,path:e.props.$path+"/"+o,data:e.props.data},(0,u.mapReactElement)(n,(function(e,n){var r,i,o;if((null===(r=e.props.schema)||void 0===r?void 0:r.body)&&e.props.schema.$$id){var s=null===(o=null===(i=f.vRendererConfig)||void 0===i?void 0:i.regions)||void 0===o?void 0:o.body;if(!s)return e;var u=(0,a.__assign)({},e.props.schema);return delete u.$$id,l.default.createElement(c.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:f.manager.store,manager:f.manager,children:l.default.cloneElement(e,{schema:u}),wrapperResolve:s.wrapperResolve,rendererName:t.renderer.name})}return e}))):n}))},renderFooter:function(){var e,t,n=this.props.$$editor,a=this.props.steps,r=this.state.currentStep,i=this.super();if(!n||!(null==a?void 0:a[r-1]))return i;var o=n.plugin,s=null===(t=null===(e=o.vRendererConfig)||void 0===e?void 0:e.regions)||void 0===t?void 0:t.actions;return s?l.default.createElement(c.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:o.manager.store,manager:o.manager,children:i,wrapperResolve:s.wrapperResolve,rendererName:n.renderer.name}):i}},t}return(0,a.__extends)(t,e),t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&e.info.renderer.name===this.rendererName&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个步骤",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.gotoStep){var t=e.state.currentStep;e.gotoStep(t-1)}}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个步骤",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.gotoStep){var t=e.state.currentStep;e.gotoStep(t+1)}}})}},t.prototype.filterProps=function(e){return e.affixFooter=!1,e},t}(i.BasePlugin);t.WizardPlugin=d,(0,r.registerEditorPlugin)(d)},1800:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperPlugin=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(6689)),o=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="wrapper",t.$schema="/schemas/WrapperSchema.json",t.name="包裹",t.description="类似于容器,唯一的区别在于会默认会有一层内边距。",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"wrapper",body:"内容"},t.previewSchema=(0,a.__assign)({},t.scaffold),t.regions=[{key:"body",label:"内容区"}],t.panelTitle="包裹",t.panelBody=[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:i.default.createElement(r.Button,{size:"sm",className:"m-b-sm",level:"info",block:!0,onClick:function(){t.manager.showInsertPanel("body")}},"新增内容")},(0,s.getSchemaTpl)("size",{label:"内间距大小",options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"无",value:"none"}],pipeIn:(0,s.defaultValue)("")})]},{title:"样式",body:[(0,s.getSchemaTpl)("className",{description:"设置样式后,大小设置将无效。",pipeIn:(0,s.defaultValue)("bg-white")}),(0,s.getSchemaTpl)("style")]}])],t}return(0,a.__extends)(t,e),t}(l.BasePlugin);t.WrapperPlugin=u,(0,o.registerEditorPlugin)(u)},7172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorStore=void 0;var a=n(752),r=n(3893),i=n(2717),o=n(3570),l=n(3570),s=n(1703),u=n(1502),c=(0,a.__importDefault)(n(6918)),d=n(1089),p=(0,a.__importDefault)(n(5452)),f=n(2406),m=(0,a.__importDefault)(n(8425));t.EditorStore=i.types.model("EditorRoot",{isMobile:!1,isSubEditor:!1,amisDocHost:i.types.optional(i.types.string,"https://baidu.gitee.io"),root:i.types.optional(f.EditorNode,{id:"root",label:"Root"}),hoverId:"",hoverRegion:"",activeId:"",selections:i.types.optional(i.types.frozen(),[]),contextId:"",dragMode:"move",dragId:"",dragType:"",dragSchema:i.types.frozen(),dropId:"",dropRegion:"",planDropId:"",planDropRegion:"",insertId:"",insertRegion:"",insertRenderers:i.types.optional(i.types.frozen(),[]),insertRenderersKeywords:"",insertTag:"全部",insertSelected:"",insertMode:"insert",insertOrigId:"",insertBeforeId:"",schema:i.types.frozen(),versionId:0,schemaHistory:i.types.optional(i.types.array(i.types.frozen()),[]),toolbars:i.types.optional(i.types.frozen(),[]),panels:i.types.optional(i.types.frozen(),[]),subRenderersKeywords:"",subRendererRegion:"",subRenderers:i.types.optional(i.types.frozen(),[]),panelKey:"",leftPanelKey:"",jsonSchemaUri:"",scaffoldForm:i.types.maybe(i.types.frozen()),scaffoldFormBuzy:!1,scaffoldError:"",popOverForm:i.types.maybe(i.types.frozen()),subEditorContext:i.types.maybe(i.types.frozen()),calculateStarted:!1,targetNames:i.types.optional(i.types.array(i.types.frozen()),[]),ctx:i.types.frozen()}).views((function(e){return{get filteredSchema(){var t,n,a;return(0,o.filterSchemaForEditor)(null!==(a=null===(n=(t=(0,i.getEnv)(e)).schemaFilter)||void 0===n?void 0:n.call(t,e.schema))&&void 0!==a?a:e.schema)},get filteredSchemaForPreview(){var t,n,a,r=(0,l.JSONPipeOut)(e.schema);return null!==(a=null===(n=(t=(0,i.getEnv)(e)).schemaFilter)||void 0===n?void 0:n.call(t,r))&&void 0!==a?a:r},isHoved:function(t){return t&&e.hoverId===t},isActive:function(t){return t&&!this.dragging&&!e.insertOrigId&&e.insertBeforeId!==t&&e.activeId===t},isContextOn:function(t){return t&&e.contextId===t},get activeContainerId(){var t;if(!e.activeId)return"";for(var n=this.getNodeById(e.activeId);n;){if(n.childRegions.length||(null===(t=n.info)||void 0===t?void 0:t.regions))return n.id;n=n.host}return""},isRegionHighlighted:function(t,n){return!e.insertOrigId&&t===e.hoverId&&n===e.hoverRegion||t===e.dropId&&e.dropRegion===n||!e.insertOrigId&&t===e.insertId&&e.insertRegion===n},isRegionActive:function(t,n){return this.isActive(t)||t===e.dropId||this.isRegionHighlighted(t,n)},isRegionDragEnter:function(t,n){return this.isRegionActive(t,n)&&n===e.dropRegion},get highlightNodes(){var t=this,n=[];return!e.hoverId||e.dragId||e.contextId||e.activeId===e.hoverId&&!e.hoverRegion||e.selections.includes(e.hoverId)||n.push(e.hoverId),e.contextId&&n.push(e.contextId),!e.activeId&&!e.selections.length||e.dragId||e.insertOrigId||e.insertId||e.hoverId&&e.hoverRegion||(e.activeId?n.push(e.activeId):n.push.apply(n,e.selections)),"insert"===e.insertMode&&e.insertId&&n.push(e.insertId),e.insertOrigId&&n.push(e.insertOrigId),e.dropId&&n.push(e.dropId),e.insertBeforeId&&n.push(e.insertBeforeId),n.filter((function(e,t,n){return e&&t===n.indexOf(e)})).map((function(e){return t.getNodeById(e)})).filter((function(e){return e}))},getNodeById:function(t,n){for(var a=e.root.children.concat();a.length;){var r=a.shift();if(r.id===t&&(!n||r.region===n))return r;r.children.length&&a.push.apply(a,r.children)}},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t){return t?(0,o.JSONGetById)(e.schema,t):e.schema},getSchemaParentById:function(t){return(0,l.JSONGetParentById)(e.schema,t)},getSchemaPath:function(t){var n=(0,l.JSONGetPathById)(e.schema,t);return Array.isArray(n)?n.join("/"):""},getPanelKey:function(){var t,n=e.panelKey;if("none"===n)return n;var a=this.getPanels();return(0,c.default)(a,(function(e){return n&&e.key===n}))?n:(null===(t=a[0])||void 0===t?void 0:t.key)||"none"},getLeftPanelKey:function(){var t=e.leftPanelKey;if(this.dragging)return"outline";if("none"===t)return t;var n=this.getLeftPanels();return(0,c.default)(n,(function(e){return t&&e.key===t}))?t:"outline"},get leftPanels(){return e.panels.filter((function(e){return"left"===e.position}))},get rightPanels(){return e.panels.filter((function(e){return"left"!==e.position}))},getPanels:function(){return[].concat(this.rightPanels||[]).sort((function(e,t){return e.order-t.order}))},getLeftPanels:function(){var t=[{key:"outline",icon:"fa fa-navicon",title:"大纲",component:s.OutlinePanel,order:-9999}].concat(this.leftPanels||[]);return e.insertId&&e.insertRegion&&t.push({key:"insert",icon:"fa fa-bolt",position:"left",title:"replace"===e.insertMode?"变更":"插入",component:d.InsertSubRendererPanel,order:9999}),t.sort((function(e,t){return e.order-t.order}))},get sortedToolbars(){return e.toolbars.filter((function(e){return"secondary"!==e.level&&"special"!==e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSecondaryToolbars(){return e.toolbars.filter((function(e){return"secondary"===e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSpecialToolbars(){return e.toolbars.filter((function(e){return"special"===e.level})).sort((function(e,t){return e.order-t.order}))},get value(){if(e.activeId)return this.getValueOf(e.activeId)},getValueOf:function(t){return(0,l.JSONPipeOut)((0,o.JSONGetById)(e.schema,t))},get valueWithoutHiddenProps(){if(e.activeId)return(0,l.JSONPipeOut)((0,o.JSONGetById)(e.schema,e.activeId),(0,i.getEnv)(e).isHiddenProps||function(e){return"$$"===e.substring(0,2)&&"$$comments"!==e&&"$$commonSchema"!==e||"__"===e.substring(0,2)})},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&(0,r.findTree)(e.root.children,(function(n,a,r,i){return n.id===e.activeId&&(t=i.concat(n),!0)})),t},get activePath(){return this.getNodePathById(e.activeId)},getNodePathById:function(t){var n=[];if(!t)return n;var a=function(e,r){return void 0===r&&(r=[]),e.every((function(e){return e.id===t?(n=r.concat(e),!1):!e.children||!e.children.length||a(e.children,r.concat(e))}))};return a(e.root.children),n},get dragging(){return!(!e.dragId&&!e.dropId)},get needPatch(){var t=function(e){return e.some((function(e){return!e.patched&&!e.isRegion||!!e.children.length&&t(e.children)}))};return t(e.root.children)},get schemaRaw(){return(0,l.JSONPipeOut)(e.schema)},get groupedSubRenderers(){var t={},n=e.subRenderersKeywords,a=new RegExp(n,"i");return e.subRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){n&&!["name","description","scaffold.type"].some((function(t){return(0,u.resolveVariable)(t,e)&&a.test((0,u.resolveVariable)(t,e))}))||(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:["其他"]).forEach((function(n){t[n]=t[n]||[],t[n].push(e)}))})),t},getSubRendererById:function(t){return(0,c.default)(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t={"全部":[]},n=e.insertRenderersKeywords,a=new RegExp(n,"i");return e.insertRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){n&&!["name","description","scaffold.type"].some((function(t){return(0,u.resolveVariable)(t,e)&&a.test((0,u.resolveVariable)(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:["其他"]).forEach((function(n){t[n]=t[n]||[],t[n].push(e)})),t["全部"].push(e))})),t},get selectedInsertRendererInfo(){return(0,c.default)(e.insertRenderers,(function(t){return t.id===e.insertSelected}))},get subEditorSlotPath(){var t,n=null===(t=e.subEditorContext)||void 0===t?void 0:t.slot;if(!n)return"";var a=[],r=function(e,t){return void 0===t&&(t=[]),!(!Array.isArray(e)||!e.some((function(e,n){return r(e,t.concat(""+n))})))||((0,p.default)(e)?Object.keys(e).some((function(n){return r(e[n],t.concat(n))})):"$$"===e&&(a=t.concat(),!0))};return r(n),a.length?a.join("/"):""},get subEditorValue(){if(e.subEditorContext)return e.subEditorContext.slot?(0,a.__assign)((0,a.__assign)({},(0,r.mapObject)(e.subEditorContext.slot,(function(t){return"$$"===t?e.subEditorContext.value:t}))),{isSlot:!0}):e.subEditorContext.value},get canUndo(){return 0!==e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))},get canRedo(){return e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))<e.schemaHistory.length-1}}})).actions((function(e){(0,i.getEnv)(e);var t=0,n=null,s=void 0,u=document,c=void 0;return{setLayer:function(e){s=e},getLayer:function(){return s},setDoc:function(e){u=e},getDoc:function(){return u},setIframe:function(e){c=e},getIframe:function(){return c},setIsMobile:function(t){e.isMobile=!!t},setCtx:function(t){e.ctx=t},setIsSubEditor:function(t){e.isSubEditor=t},setSchema:function(t){var n=(0,l.JSONPipeIn)(t||{});if(e.schema){var a=(0,o.diff)(e.schema,n,(function(e,t){return"$$id"===t}));e.schema=(0,o.patchDiff)(e.schema,a)}else e.schema=n;this.resetHistory(),this.updateTargetName()},insertSchema:function(t){var n,a=t.context.id,r=t.context.region,i=(0,o.JSONGetById)(e.schema,a);if(i){var s=(0,l.JSONPipeIn)(t.context.data),u=Array.isArray(i[r])?i[r].concat():i[r]?[i[r]]:[];if(t.context.beforeId){var c=(0,m.default)(u,(function(e){return e.$$id===t.context.beforeId}));~c?u.splice(c,0,s):u.push(s)}else u.push(s);return this.traceableSetSchema((0,l.JSONUpdate)(e.schema,a,((n={})[r]=u,n))),t.context.data=s,s}},moveSchema:function(t){var n,a=t.context,r=e.schema;if(a.sourceId!==a.beforeId){var i=(0,o.JSONGetById)(r,a.sourceId);r=(0,o.JSONDelete)(r,a.sourceId,void 0,!0);var s=a.region,u=(0,o.JSONGetById)(r,a.id)[s];if(u=Array.isArray(u)?u.concat():u?[u]:[],a.beforeId){var c=(0,m.default)(u,(function(e){return e.$$id===a.beforeId}));if(!~c)throw new Error("位置错误,目标位置没有找到");u.splice(c,0,i)}else u.push(i);this.traceableSetSchema((0,l.JSONUpdate)(r,a.id,((n={})[s]=u,n)))}},setActiveId:function(t,n){void 0===n&&(n=[]);var a=t?e.getNodeById(t):void 0;!1===(null==a?void 0:a.clickable)||t&&!a||(e.activeId=t,e.selections=n)},setSelections:function(t){e.selections=t?t.concat():[]},clearSelection:function(){e.selections=[]},setHoverId:function(t,n){var a=t?e.getNodeById(t):void 0;!1!==(null==a?void 0:a.clickable)&&(e.hoverId=t,e.hoverRegion=n||"")},setInsertId:function(t){e.insertId=t},setContextId:function(t){e.contextId=t},setDragId:function(t,n,a,r){void 0===n&&(n="move"),void 0===a&&(a="schema"),e.dragId=t,e.dragMode=n,e.dragType=a,e.dragSchema=r||(t?e.getSchema(t):null)},setDropId:function(t,n){void 0===n&&(n=""),e.dropId=t,e.dropRegion=n,e.planDropId="",e.planDropRegion=""},setPlanDropId:function(t,n){e.planDropId=t,e.planDropRegion=n},setActiveToolbars:function(t){e.toolbars=t},setPanels:function(t){e.panels=t},setSubRenderers:function(t){e.subRenderers=t},changeSubRenderersKeywords:function(t){e.subRenderersKeywords=t},resetSubRenderersKeywords:function(){e.subRenderersKeywords=""},changeSubRendererRegion:function(t){e.subRendererRegion=t},changePanelKey:function(t,n){void 0===n&&(n=!1),t!==e.getPanelKey()||n?e.panelKey=t:e.panelKey="none"},changeLeftPanelKey:function(t,n){void 0===n&&(n=!1),"insert"!==t&&"insert"!==e.panelKey&&(t!==e.getLeftPanelKey()||n?e.leftPanelKey=t:e.leftPanelKey="none")},changeValue:function(t,n){e.activeId&&this.changeValueById(e.activeId,t,n)},changeValueById:function(t,n,a,r,i){var s=(0,o.JSONGetById)(e.schema,t);if(s)if(a){var u=(0,o.patchDiff)(s,a);this.traceableSetSchema((0,l.JSONUpdate)(e.schema,t,(0,l.JSONPipeIn)(u),!0),i)}else this.traceableSetSchema((0,l.JSONUpdate)(e.schema,t,(0,l.JSONPipeIn)(n),r),i)},moveUp:function(t){t&&this.traceableSetSchema((0,l.JSONMoveUpById)(e.schema,t))},moveDown:function(t){t&&this.traceableSetSchema((0,l.JSONMoveDownById)(e.schema,t))},del:function(t){var n,a;if(t===e.activeId){var r=null===(n=e.getNodeById(t))||void 0===n?void 0:n.host;this.setActiveId(r?r.id:"")}else if(e.activeId){var i=(0,o.JSONGetById)(e.schema,t);(0,o.JSONGetById)(i,e.activeId)&&(r=null===(a=e.getNodeById(t))||void 0===a?void 0:a.host,this.setActiveId(r?r.id:""))}this.traceableSetSchema((0,o.JSONDelete)(e.schema,t))},delMulti:function(t){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var a,r;if(t===e.activeId){var i=null===(a=e.getNodeById(t))||void 0===a?void 0:a.host;n.setActiveId(i?i.id:"")}else if(e.activeId){var l=(0,o.JSONGetById)(e.schema,t);(0,o.JSONGetById)(l,e.activeId)&&(i=null===(r=e.getNodeById(t))||void 0===r?void 0:r.host,n.setActiveId(i?i.id:""))}})),this.traceableSetSchema(t.reduce((function(e,t){return(0,o.JSONDelete)(e,t)}),e.schema))},duplicate:function(t){this.traceableSetSchema((Array.isArray(t)?t:[t]).reduce((function(e,t){return(0,l.JSONDuplicate)(e,t)}),e.schema))},emptyRegion:function(t,n){var a;this.traceableSetSchema((0,l.JSONUpdate)(e.schema,t,((a={})[n]=void 0,a)))},replaceChild:function(t,n){this.traceableSetSchema((0,l.JSONUpdate)(e.schema,t,(0,l.JSONPipeIn)(n),!0))},setInsertRegion:function(t,n,a,r,i,o){void 0===n&&(n=""),void 0===a&&(a="全部"),void 0===r&&(r="insert"),void 0===i&&(i=""),e.insertId=n,e.insertRegion=t,e.insertTag=a,e.insertMode=r,e.insertOrigId=i,e.insertBeforeId=o||""},closeInsertPanel:function(){e.insertOrigId="",e.insertId="",e.insertRegion="",e.insertSelected="",e.insertRenderersKeywords="",e.insertBeforeId=""},setInsertRenderers:function(t){e.insertRenderers=t},changeInsertRenderersKeywords:function(t){e.insertRenderersKeywords=t},resetInsertRenderersKeywords:function(){e.insertRenderersKeywords=""},setInsertTag:function(t){e.insertTag=t},setInsertSelected:function(t){e.insertSelected=t},setJSONSchemaUri:function(t){e.jsonSchemaUri=t},openSubEditor:function(t){e.activeId&&(e.subEditorContext=(0,a.__assign)((0,a.__assign)({},t),{data:t.data||{}}))},confirmSubEditor:function(t){var n,a=t[0],i=e.subEditorContext,l=i.onChange,s=i.slot,u=a.schema,c=(null===(n=a.__pristine)||void 0===n?void 0:n.schema)||u;if(s){var d=e.subEditorSlotPath.replace(/(?:\/)/g,".");u=(0,r.getVariable)(u,d),c=(0,r.getVariable)(c,d),Array.isArray(u)&&1===u.length&&!Array.isArray(c)&&(u=u[0])}l(u,l.length>1?(0,o.diff)(c,u):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){n&&(e.subEditorContext=(0,a.__assign)((0,a.__assign)({},e.subEditorContext),{canUndo:n.canUndo(),canRedo:n.canRedo()}))},undoSubEditor:function(){n&&n.undo()},redoSubEditor:function(){n&&n.redo()},subEditorRef:function(e){n=e},openScaffoldForm:function(t){e.scaffoldForm=t},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldError:function(t){void 0===t&&(t=""),e.scaffoldError=t},openPopOverForm:function(t){e.popOverForm=t},closePopOverForm:function(){e.popOverForm=void 0},calculateHighlightBox:function(t){e.calculateStarted=!0,t.forEach((function(t){var n=e.getNodeById(t);null==n||n.calculateHighlightBox(e)}))},resetHighlightBox:function(t){t.forEach((function(t){var n=e.getNodeById(t);null==n||n.resetHighlightBox(e)}))},updateTargetName:function(){var t=[];(0,o.JSONTraverse)(e.schema,(function(e,n,a){return"name"===n&&e&&a&&("crud"===a.type||"form"===a.type||"page"===a.type||"service"===a.type||"chart"===a.type||"wizard"===a.type)&&t.push({type:a.type,name:e,editorId:a.$$id}),e})),e.targetNames=(0,i.cast)(t)},traceableSetSchema:function(n,a){var r=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));~r&&e.schemaHistory.splice(r+1,e.schemaHistory.length-r-1),a&&e.schemaHistory.pop(),e.schemaHistory.push({versionId:e.versionId=t++,schema:n}),e.schema=n,this.updateTargetName()},undo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t>0){var n=e.schemaHistory[t-1];e.versionId=n.versionId,e.schema=n.schema,this.updateTargetName()}},redo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t<e.schemaHistory.length-1){var n=e.schemaHistory[t+1];e.versionId=n.versionId,e.schema=n.schema,this.updateTargetName()}},resetHistory:function(){t=0,e.versionId=t++,e.schemaHistory.replace([{versionId:e.versionId,schema:e.schema}])},applyPatches:function(t){var n=e.schema;t.forEach((function(e){var t,r;if("update"===e.op)n=(0,l.JSONUpdate)(n,e.target,e.value);else if("replace"===e.op)n=(0,l.JSONUpdate)(n,e.target,e.value,!0);else if("delete"===e.op)n=(0,o.JSONDelete)(n,e.target);else if("push"===e.op){var i=(s=(0,o.JSONGetById)(n,e.target))[e.key];(i=Array.isArray(i)?i.concat():i?[i]:[]).push(e.value),s=(0,a.__assign)((0,a.__assign)({},s),((t={})[e.key]=i,t)),n=(0,l.JSONUpdate)(n,e.target,s)}else if("splice"===e.op){var s;i=(s=(0,o.JSONGetById)(n,e.target))[e.key],(i=Array.isArray(i)?i.concat():i?[i]:[]).splice.apply(i,e.args),s=(0,a.__assign)((0,a.__assign)({},s),((r={})[e.key]=i,r)),n=(0,l.JSONUpdate)(n,e.target,s)}})),this.traceableSetSchema(n)}}}))},2406:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorNodeContext=t.EditorNode=void 0;var a=n(752),r=n(2717),i=n(3570),o=n(1502),l=(0,a.__importDefault)(n(6689)),s=n(8425);t.EditorNode=r.types.model("EditorNode",{parentId:"",parentRegion:"",isCommonConfig:!1,id:"",label:"",regionInfo:r.types.maybe(r.types.frozen()),path:"",schemaPath:"",region:"",preferTag:"",state:r.types.optional(r.types.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,children:r.types.optional(r.types.array(r.types.late((function(){return t.EditorNode}))),[])}).volatile((function(){return{getData:r.types.frozen()}})).views((function(e){var t;return{get info(){return t},setInfo:function(e){t=e},get isVitualRenderer(){return!!~e.memberIndex},get clickable(){var e,t;return!1!==(null===(e=this.info)||void 0===e?void 0:e.editable)||!(null===(t=this.info)||void 0===t?void 0:t.hostId)},get draggable(){var e;return!(!this.moveable||!1===(null===(e=this.info)||void 0===e?void 0:e.draggable))},get moveable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.movable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get removable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.removable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get duplicatable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.duplicatable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get replaceable(){var e;return!this.isRegion&&!1!==(null===(e=this.info)||void 0===e?void 0:e.replaceable)},memberImmutable:function(e){var t,n;return!!(!0===(null===(t=this.info)||void 0===t?void 0:t.memberImmutable)||Array.isArray(null===(n=this.info)||void 0===n?void 0:n.memberImmutable)&&~this.info.memberImmutable.indexOf(e))},get isRegion(){return!!e.region},get childRegions(){var e,t,n=this.uniqueChildren.filter((function(e,t,n){return e.isRegion}));if(null===(e=this.info)||void 0===e?void 0:e.multifactor){var a=this.sameIdChild;null===(t=null==a?void 0:a.childRegions)||void 0===t||t.forEach((function(e){return n.push(e)}))}return n},get uniqueChildren(){var t=e.children.filter((function(e,t,n){return n.findIndex((function(t){return e.isRegion?t.id===e.id&&t.region===e.region:t.id===e.id}))===t}));if(Array.isArray(this.schema)){var n=this.schema;t=t.sort((function(e,t){return s(n,(function(t){return(null==t?void 0:t.$$id)===e.id}))-s(n,(function(e){return(null==e?void 0:e.$$id)===t.id}))}))}return t},get sameIdChild(){var t;return null===(t=this.uniqueChildren)||void 0===t?void 0:t.find((function(t){return!t.isRegion&&t.id===e.id}))},get singleRegion(){return!(1!==this.uniqueChildren.length||!this.uniqueChildren[0].isRegion)},isExists:function(t){return e.children.some((function(e){return e.id===t}))},getChildById:function(t){return e.children.find((function(e){return e.id===t}))},get parent(){var t=(0,r.getParent)(e,2);return"root"!==(null==t?void 0:t.id)?t:null},get host(){var t=e.parent;return(null==t?void 0:t.isRegion)&&(t=t.parent),t},get firstChild(){var t=e;if(!t.children.length)return null;for(var n=t.children[0];n;){if(!n.isRegion&&n.id!==t.id)return n;n=n.children[0]}return null},get index(){return this.parent.uniqueChildren.indexOf(e)},get prevSibling(){for(var t=this.parent.uniqueChildren,n=t.indexOf(e)-1;n>=0&&t[n];){if(t[n].id!==e.id)return t[n];n--}return null},get nextSibling(){for(var t=this.parent.uniqueChildren,n=t.length,a=t.indexOf(e)+1;a<n&&t[a];){if(t[a].id!==e.id)return t[a];a++}return null},get schema(){var t=(0,r.getRoot)(e).getSchema(e.id);return this.isRegion&&t&&(t=t[e.region]),t},get schemaParent(){var t=(0,r.getRoot)(e);return this.isRegion?t.getSchema(e.id):t.getSchemaParentById(e.id)},get isSecondFactor(){var t;return(null===(t=this.parent)||void 0===t?void 0:t.id)===e.id}}})).actions((function(e){function t(e,n){var r=!1,o={};if(e)return n.forEach((function(n){var a=n.split(".");n=a.shift();var l=e[n];if("string"==typeof l)return r=!0,void(o[n]=[(0,i.JSONPipeIn)({type:"tpl",tpl:l,inline:!1})]);if(Array.isArray(l)){var s=!1,u=l.map((function(e){if("string"==typeof e&&e)return s=!0,(0,i.JSONPipeIn)({type:"tpl",tpl:e,inline:!1});if(a.length){var n=t(e,[a.join(".")]);n!==e&&(s=!0,e=n)}return e}));s&&(r=!0,o[n]=u)}else l&&(o[n]=[(0,i.JSONPipeIn)(l)],r=!0)})),r&&(e=(0,a.__assign)((0,a.__assign)({},e),o)),e}function n(t){var n=Array.isArray(t)?t:t?[t]:[];if(n.length){var a=(0,r.getRoot)(e).getIframe(),i=(0,r.getRoot)(e).getLayer().getBoundingClientRect(),o=function(e){for(var t=e.concat(),n=t.shift(),a=n.getBoundingClientRect(),r={left:a.left,top:a.top,width:a.width,height:a.height,right:a.right,bottom:a.bottom},i=n.parentElement.closest(".ae-Preview-inner,[data-region]");t.length;){var o=t.shift(),l=o.getBoundingClientRect(),s=o.parentElement.closest(".ae-Preview-inner,[data-region],[data-editor-id]");if(!i&&s)i=s;else if(s&&i&&s!==i)continue;r.left=Math.min(r.left,l.left),r.top=Math.min(r.top,l.top),r.right=Math.max(r.right,l.right),r.bottom=Math.max(r.bottom,l.bottom),r.width=r.right-r.left,r.height=r.bottom-r.top}return r}(n),l={left:o.left-i.left,top:o.top-i.top};if(a){var s=a.getBoundingClientRect();l.left+=s.left,l.top+=s.top}var u=o.height;u&&(e.x=l.left+0,e.y=l.top+0,e.w=o.width,e.h=u)}}var l;return{updateIsCommonConfig:function(t){e.isCommonConfig=!!t},addChild:function(t){e.children.push((0,a.__assign)((0,a.__assign)({},t),{parentId:e.id,parentRegion:e.region}));var n=e.children[e.children.length-1];return n.setInfo(t.info),n},removeChild:function(t){var n=e.children.findIndex((function(e){return e===t}));e.children.splice(n,1)},toggleFold:function(t){t.stopPropagation(),t.preventDefault(),e.folded=!e.folded},patch:function(n,a){if(void 0===a&&(a=!1),!e.patched||a){e.patched=!0;var r=n,l=e.info;if(!1!==l.editable){var s=r.getSchema(l.id),u=s;(Array.isArray(l.regions)&&l.regions.length||Array.isArray(l.patchContainers))&&(u=t(u,l.patchContainers||l.regions.map((function(e){return e.key})))),u=(0,o.filterSchema)(u,{component:l.renderer.component}),(u=(0,i.JSONPipeIn)(u))!==s&&r.changeValueById(l.id,u,void 0,!0,!0)}}},updateSchema:function(t){var n=e.info;if(!1!==n.editable){var i=(0,r.getRoot)(e),o=i.getSchema(n.id);o=(0,a.__assign)((0,a.__assign)({},o),t),i.changeValueById(n.id,o)}},setComponent:function(e){l=e},getComponent:function(){return l},calculateHighlightBox:function(t){var a;if(void 0===t&&(t=(0,r.getRoot)(e)),t.calculateStarted){var i=(0,r.getRoot)(e).getDoc();if(e.isRegion)n(o=i.querySelector('[data-region="'+e.region+'"][data-region-host="'+e.id+'"]'));else{var o=[].slice.call(i.querySelectorAll('[data-editor-id="'+e.id+'"]'));n("button"===(null===(a=e.info)||void 0===a?void 0:a.renderer.name)?null==o?void 0:o[0]:o),e.childRegions.forEach((function(e){return e.calculateHighlightBox(t)}))}}},resetHighlightBox:function(t){e.x=0,e.y=0,e.w=0,e.h=0,e.childRegions.forEach((function(e){return e.resetHighlightBox(t)}))},updateState:function(t,n){void 0===n&&(n=!1),e.state=(0,a.__assign)((0,a.__assign)({},n?null:e.state),t)},setWidthMutable:function(t){e.widthMutable=!!t},setHeightMutable:function(t){e.heightMutable=!!t}}})),t.EditorNodeContext=l.default.createContext(null)},3570:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSONTraverse=t.patchDiff=t.diff=t.repeatArray=t.reactionWithOldValue=t.camelize=t.removeDragingClass=t.addDragingClass=t.autobind=t.normalizeId=t.persistSet=t.persistGet=t.sortByList=t.blackList=t.filterSchemaForEditor=t.filterSchemaForConfig=t.deepFind=t.createElementFromHTML=t.JSONDuplicate=t.JSONMoveDownById=t.JSONCanMoveDown=t.JSONMoveUpById=t.JSONCanMoveUp=t.JSONChangeInArray=t.JSONMerge=t.JSONDelete=t.JSONUpdate=t.JSONGetParentById=t.JSONGetById=t.JSONGetPathById=t.JSONGetByPath=t.JSONPipeOut=t.JSONPipeIn=t.cleanUndefined=t.__uri=t.omitControls=t.makeHorizontalDeeper=t.noop=t.anyChanged=t.isObject=t.isObjectShallowModified=t.guid=void 0;var a=n(752),r=n(1502),i=(0,a.__importDefault)(n(113)),o=n(6211),l=(0,a.__importDefault)(n(6410)),s=(0,a.__importDefault)(n(5452)),u=r.utils.guid,c=r.utils.omitControls,d=r.utils.isObjectShallowModified,p=r.utils.isObject,f=r.utils.anyChanged,m=r.utils.noop,h=r.utils.makeHorizontalDeeper,v=r.utils.findIndex;function b(e){return p(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}function g(e){if(!p(e)||e.$$typeof)return e;if(Array.isArray(e))return e.map(g);var t={},n=!1;return e.$$id||(n=!0,t.$$id=u()),Object.keys(e).forEach((function(a){var r=e[a];if(Array.isArray(r)){var i=!1,o=r.map((function(e){var t=g(e);return t!==e&&(i=!0),t}));i&&(n=!0,t[a]=o)}else(o=g(r))!==r&&(n=!0,t[a]=o)})),n&&(e=b((0,a.__assign)((0,a.__assign)({},e),t))),e}function y(e,t){if(Array.isArray(e)){var n=!1,r=e.map((function(e){var a=y(e,t);return a!==e&&(n=!0),a}));return n?r:e}if(!p(e)||(0,o.isObservable)(e))return e;var i=!1,l={};return e.$$id&&(i=!0,l.$$id=void 0),Object.keys(e).forEach((function(n){var a=e[n];if("function"==typeof t?t(n,a):t&&"__"===n.substring(0,2))return l[n]=void 0,void(i=!0);var r=y(a,t);r!==a&&(i=!0,l[n]=r)})),i&&(e=b((0,a.__assign)((0,a.__assign)({},e),l))),e}function _(e,t,n){var a=e;return n&&n.push(e),t.forEach((function(e){a=a[e],n&&n.push(a)})),a}function w(e,t){for(var n=[],a=!1,r=[{path:".",data:e}],i=function(){var e=r.shift(),i=e.data,o=e.path;if(i.$$id===t)return a=!0,n=o.split(".").filter((function(e){return e})),"break";Object.keys(i).forEach((function(e){var t=i[e];Array.isArray(t)?t.forEach((function(t,n){p(t)&&r.push({data:t,path:o+"."+e+"."+n})})):p(t)&&r.push({data:t,path:o+"."+e})}))};r.length&&"break"!==i(););return a?n:null}function S(e,t,n){void 0===n&&(n=!1);var a=w(e,t);if(null===a||!a.length)return null;var r=e,i=[r];for(a.pop(),a.forEach((function(e){r=r[e],i.unshift(r)}));n&&Array.isArray(i[0]);)i.shift();return i[0]}function x(e,t,n){var r=w(e,t);if(null===r)return e;var i=parseInt(r.pop(),10),o=[],l=_(e,r,o);if(!Array.isArray(l))return e;for(o[o.length-1]=l=l.concat(),n(l,l[i],i);o.length>1;){var s=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=(0,a.__assign)({},o[o.length-1]),o[o.length-1][r[o.length-1]]=s}return o[0]}function E(e,t,n){return void 0===n&&(n={}),(null==e?void 0:e.$$commonSchema)===t?n[t]=e:(0,s.default)(e)?Object.keys(e).forEach((function(a){E(e[a],t,n)})):Array.isArray(e)&&e.map((function(e){return E(e,t,n)})),n}t.guid=u,t.omitControls=c,t.isObjectShallowModified=d,t.isObject=p,t.anyChanged=f,t.noop=m,t.makeHorizontalDeeper=h,t.__uri=function(e){return e},t.cleanUndefined=b,t.JSONPipeIn=g,t.JSONPipeOut=y,t.JSONGetByPath=_,t.JSONGetPathById=w,t.JSONGetById=function(e,t){var n=w(e,t);return null===n?null:_(e,n)},t.JSONGetParentById=S,t.JSONUpdate=function(e,t,n,r){void 0===r&&(r=!1);var i=w(e,t);if(null===i)return e;var o=[],l=_(e,i,o);if(Array.isArray(n)&&o[o.length-2]&&Array.isArray(o[o.length-2])){var s=o[o.length-2].indexOf(o[o.length-1]);o[o.length-2]=o[o.length-2].concat(),o[o.length-2].splice.apply(o[o.length-2],[s,1].concat(n)),o.pop()}else o[o.length-1]=l=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},r?null:l),n),{$$id:t});for(;o.length>1;){var u=o.pop();Array.isArray(o[o.length-1])?o[o.length-1]=o[o.length-1].concat():o[o.length-1]=(0,a.__assign)({},o[o.length-1]),o[o.length-1][i[o.length-1]]=u}return o[0]},t.JSONDelete=function(e,t,n,r){var i=w(e,t);if(null===i)return e;Array.isArray(n)&&n.push.apply(n,i);var o=i.pop(),l=[],s=_(e,i,l);for(Array.isArray(s)?(l[l.length-1]=s=s.concat(),s.splice(o,1),r&&!s.length&&(l[l.length-1]=void 0)):(l[l.length-1]=s=(0,a.__assign)({},s),delete s[o]);l.length>1;){var u=l.pop();Array.isArray(l[l.length-1])?l[l.length-1]=l[l.length-1].concat():l[l.length-1]=(0,a.__assign)({},l[l.length-1]),void 0===u?delete l[l.length-1][i[l.length-1]]:l[l.length-1][i[l.length-1]]=u}return l[0]},t.JSONMerge=function e(t,n){if(!p(t)||!p(n))return n;if(!d(t,n))return t;var a={};return t.$$id&&(a.$$id=t.$$id),Object.keys(n).forEach((function(r){Array.isArray(n[r])&&Array.isArray(t[r])&&n[r]!==t[r]?a[r]=n[r].map((function(n,a){return t[r][a]?e(t[r][a],n):n})):void 0===t[r]?a[r]=n[r]:a[r]=e(t[r],n[r])})),a},t.JSONChangeInArray=x,t.JSONCanMoveUp=function(e,t){var n=S(e,t);return!(!n||!Array.isArray(n))&&v(n,(function(e){return e.$$id===t}))>0},t.JSONMoveUpById=function(e,t){return x(e,t,(function(e,t,n){0!==n&&(e.splice(n,1),e.splice(n-1,0,t))}))},t.JSONCanMoveDown=function(e,t){var n=S(e,t);if(!n||!Array.isArray(n))return!1;var a=v(n,(function(e){return e.$$id===t}));return~a&&a<n.length-1},t.JSONMoveDownById=function(e,t){return x(e,t,(function(e,t,n){n!==e.length-1&&(e.splice(n,1),e.splice(n+1,0,t))}))},t.JSONDuplicate=function(e,t){return x(e,t,(function(e,t,n){var a=g(y(t));e.splice(n+1,0,a)}))},t.createElementFromHTML=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild},t.deepFind=E,t.filterSchemaForConfig=function e(t,n){if(Array.isArray(t))return t.map((function(t){return e(t,n)}));if((0,s.default)(t)){var r={},i=!1;return Object.keys(t).forEach((function(o){var l=t[o],s=e(l,n);if(t.$$commonSchema?r[o]&&(r[o]=s):r[o]=s,s!==l&&(i=!0),"$$commonSchema"!==o||n){if("$$commonSchema"===o&&n){var u=E(n,l);u[l]&&(t=r=(0,a.__assign)({},u[l]))}}else t=r={$$commonSchema:l}})),i?r:t}return t},t.filterSchemaForEditor=function e(t){if(Array.isArray(t))return t.map((function(t){return e(t)}));if((0,s.default)(t)){var n={},a=!1;return Object.keys(t).forEach((function(r){var i=t[r];~["visible","visibleOn","hidden","hiddenOn","toggled"].indexOf(r)&&(r="$$"+r,a=!0);var o=e(i);n[r]=o,o!==i&&(a=!0)})),a?n:t}return t},t.blackList=function(e){return function(t){return!~e.indexOf(t)}},t.sortByList=function(e,t){var n=t?"function"==typeof t?t:function(e){return e[t]}:function(e){return e};return function(t,a){var r=e.indexOf(n(t)),i=e.indexOf(n(a));return(r=~r?r:999999)>(i=~i?i:999999)?1:r===i?0:-1}},t.persistGet=function(e,t){var n=localStorage.getItem("amis-editor-"+e);return n&&(n=JSON.parse(n)),n||t},t.persistSet=function(e,t){t=JSON.stringify(t),localStorage.setItem("amis-editor-"+e,t)},t.normalizeId=function(e){return e.replace(/\-[a-z0-9]+$/g,"")},t.autobind=r.utils.autobind,t.addDragingClass=function(e){for(;e&&(e.classList.add("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););},t.removeDragingClass=function(e){for(;e&&(e.classList.remove("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););},t.camelize=function(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))},t.reactionWithOldValue=function(e,t){var n;return(0,o.reaction)(e,(function(e){(0,i.default)(e,n)||(t(e,n),n=e)}))},t.repeatArray=function(e,t){void 0===t&&(t=1);for(var n=[];t-- >0;)n.push(e);return n},t.diff=function(e,t,n){return l.default.diff(e,t,n)},t.patchDiff=function(e,t){return t?t.reduce((function(t,n){return function(e,t,n){if(e&&Array.isArray(null==n?void 0:n.path)){e=e===t?(0,a.__assign)({},e):e;var r=n.path.concat();"A"!==n.kind&&r.pop(),r.reduce((function(e,t){var n=e.target,r=e.source[t],i=n[t];return r===i&&(i=Array.isArray(i)?i.concat():(0,a.__assign)({},i),n[t]=i),{source:r,target:i}}),{target:e,source:t}),l.default.applyChange(e,t,n)}return e}(t,e,n)}),e):e},t.JSONTraverse=function e(t,n){Object.keys(t).forEach((function(a){var r=t[a];(0,s.default)(r)||Array.isArray(r)?e(r,n):n(r,a,t)}))}},1779:e=>{e.exports=n(1073)},1502:e=>{e.exports=n(314)},3437:e=>{e.exports=n(265)},3541:e=>{e.exports=n(193)},6372:e=>{e.exports=n(281)},361:e=>{e.exports=n(7)},5322:e=>{e.exports=n(424)},3893:e=>{e.exports=n(2)},2167:e=>{},9003:e=>{e.exports=n(16)},6410:e=>{e.exports=n(1074)},5720:e=>{e.exports=n(1075)},9591:e=>{e.exports=n(135)},3908:e=>{e.exports=n(48)},6918:e=>{e.exports=n(19)},8425:e=>{e.exports=n(68)},8579:e=>{e.exports=n(147)},1712:e=>{e.exports=n(339)},8492:e=>{e.exports=n(236)},113:e=>{e.exports=n(52)},5452:e=>{e.exports=n(41)},6211:e=>{e.exports=n(6)},2062:e=>{e.exports=n(55)},2717:e=>{e.exports=n(18)},2245:e=>{e.exports=n(46)},6689:e=>{e.exports=n(0)},6405:e=>{e.exports=n(11)},3001:e=>{e.exports=n(243)},752:e=>{e.exports=n(59)}},a={};function r(t){var n=a[t];if(void 0!==n)return n.exports;var i=a[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.GridPlugin=e.BasicToolbarPlugin=e.AvailableRenderersPlugin=e.IFrameEditor=e.mountInIframe=e.RegionWrapper=e.VRenderer=e.CodeEditor=e.BasicEditor=e.RendererEditor=e.mapReactElement=e.registerEditorPlugin=e.defaultValue=e.setSchemaTpl=e.getSchemaTpl=e.BasePlugin=e.utils=e.MiniEditor=e.Editor=void 0;var t=r(752),n=(0,t.__importDefault)(r(2296));e.Editor=n.default,r(425),r(7916),r(5215),r(1237),r(5707),r(9347),r(4763),r(7589),r(4891),r(2165),r(6982),r(7131),r(4894),r(7706),r(6956),r(7452),r(2888),r(8322),r(4189),r(3751),r(8107),r(6083),r(5561),r(5108),r(5225),r(4624),r(6253),r(1506),r(1808),r(770),r(3274),r(200),r(2053),r(3482),r(8952),r(1803),r(8746),r(6489),r(8803),r(3428),r(7798),r(1143),r(812),r(5922),r(8859),r(2125),r(4715),r(6772),r(5489),r(8087),r(8070),r(8987),r(6311),r(7681),r(4560),r(7878),r(9940),r(8332),r(9114),r(9890),r(9352),r(9351),r(6682),r(1533),r(8936),r(3914),r(3581),r(4950),r(377),r(4659),r(6348),r(2821),r(1596),r(7717),r(6460),r(4930),r(1838),r(2029),r(1663),r(8863),r(8395),r(9065),r(6469),r(9344),r(6062),r(6760),r(2585),r(6721),r(9475),r(8835),r(4093),r(9691),r(9596),r(6397),r(4887),r(2629),r(7863),r(8969),r(4610),r(7197),r(419),r(1897),r(821),r(135),r(5218),r(2460),r(5678),r(3345),r(410),r(2398),r(9227),r(6218),r(3470),r(2500),r(7328),r(946),r(8979),r(46),r(1886),r(9268),r(7599),r(9700),r(4300),r(2022),r(4799),r(4870),r(1509),r(2766),r(3306),r(1800),r(2156),r(7991),r(9963),r(62);var a=(0,t.__importStar)(r(3570));e.utils=a;var o=r(9547);Object.defineProperty(e,"getSchemaTpl",{enumerable:!0,get:function(){return o.getSchemaTpl}}),Object.defineProperty(e,"defaultValue",{enumerable:!0,get:function(){return o.defaultValue}}),Object.defineProperty(e,"setSchemaTpl",{enumerable:!0,get:function(){return o.setSchemaTpl}});var l=r(9756);Object.defineProperty(e,"registerEditorPlugin",{enumerable:!0,get:function(){return l.registerEditorPlugin}});var s=r(9933);Object.defineProperty(e,"BasePlugin",{enumerable:!0,get:function(){return s.BasePlugin}});var u=r(9672);Object.defineProperty(e,"BasicEditor",{enumerable:!0,get:function(){return u.BasicEditor}}),Object.defineProperty(e,"RendererEditor",{enumerable:!0,get:function(){return u.RendererEditor}});var c=(0,t.__importDefault)(r(7279));e.MiniEditor=c.default;var d=(0,t.__importDefault)(r(498));e.CodeEditor=d.default;var p=(0,t.__importDefault)(r(1454));e.IFrameEditor=p.default;var f=r(1325);Object.defineProperty(e,"mountInIframe",{enumerable:!0,get:function(){return f.mountInIframe}});var m=r(7916);Object.defineProperty(e,"AvailableRenderersPlugin",{enumerable:!0,get:function(){return m.AvailableRenderersPlugin}});var h=r(9347);Object.defineProperty(e,"BasicToolbarPlugin",{enumerable:!0,get:function(){return h.BasicToolbarPlugin}});var v=r(5863);Object.defineProperty(e,"VRenderer",{enumerable:!0,get:function(){return v.VRenderer}});var b=r(1548);Object.defineProperty(e,"RegionWrapper",{enumerable:!0,get:function(){return b.RegionWrapper}});var g=r(4887);Object.defineProperty(e,"GridPlugin",{enumerable:!0,get:function(){return g.GridPlugin}});var y=r(9703);Object.defineProperty(e,"mapReactElement",{enumerable:!0,get:function(){return y.mapReactElement}})})();var o=t;for(var l in i)o[l]=i[l];i.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})()},function(e,t){!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()}()},function(e,t,n){var a,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function a(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function o(e,t){o.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function l(e,t,n){l.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function s(e,t,n){var a=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,a),e}function u(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function c(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function d(e){var t=0,n=u(e);if("array"===n)return e.forEach((function(e){t+=d(e)})),t+c("[type: array, hash: "+t+"]");if("object"===n){for(var a in e)if(e.hasOwnProperty(a)){var r="[ type: object, key: "+a+", value hash: "+d(e[a])+"]";t+=c(r)}return t}return t+c("[ type: "+n+" ; value: "+e+"]")}function p(e,t,n,a,s,c,f,m){n=n||[],f=f||[];var h=(s=s||[]).slice(0);if(null!=c){if(a){if("function"==typeof a&&a(h,c))return;if("object"==typeof a){if(a.prefilter&&a.prefilter(h,c))return;if(a.normalize){var v=a.normalize(h,c,e,t);v&&(e=v[0],t=v[1])}}}h.push(c)}"regexp"===u(e)&&"regexp"===u(t)&&(e=e.toString(),t=t.toString());var b,g,y,_,w=typeof e,S=typeof t,x="undefined"!==w||f&&f.length>0&&f[f.length-1].lhs&&Object.getOwnPropertyDescriptor(f[f.length-1].lhs,c),E="undefined"!==S||f&&f.length>0&&f[f.length-1].rhs&&Object.getOwnPropertyDescriptor(f[f.length-1].rhs,c);if(!x&&E)n.push(new i(h,t));else if(!E&&x)n.push(new o(h,e));else if(u(e)!==u(t))n.push(new r(h,e,t));else if("date"===u(e)&&e-t!=0)n.push(new r(h,e,t));else if("object"===w&&null!==e&&null!==t){for(b=f.length-1;b>-1;--b)if(f[b].lhs===e){_=!0;break}if(_)e!==t&&n.push(new r(h,e,t));else{if(f.push({lhs:e,rhs:t}),Array.isArray(e)){for(m&&(e.sort((function(e,t){return d(e)-d(t)})),t.sort((function(e,t){return d(e)-d(t)}))),b=t.length-1,g=e.length-1;b>g;)n.push(new l(h,b,new i(void 0,t[b--])));for(;g>b;)n.push(new l(h,g,new o(void 0,e[g--])));for(;b>=0;--b)p(e[b],t[b],n,a,h,b,f,m)}else{var O=Object.keys(e),C=Object.keys(t);for(b=0;b<O.length;++b)y=O[b],(_=C.indexOf(y))>=0?(p(e[y],t[y],n,a,h,y,f,m),C[_]=null):p(e[y],void 0,n,a,h,y,f,m);for(b=0;b<C.length;++b)(y=C[b])&&p(void 0,t[y],n,a,h,y,f,m)}f.length=f.length-1}}else e!==t&&("number"===w&&isNaN(e)&&isNaN(t)||n.push(new r(h,e,t)))}function f(e,t,n,a,r){var i=[];if(p(e,t,i,a,null,null,null,r),n)for(var o=0;o<i.length;++o)n(i[o]);return i}function m(e,t,n,a){var r=f(e,t,a?function(e){e&&a.push(e)}:void 0,n);return a||(r.length?r:void 0)}function h(e,n,a){if(void 0===a&&n&&~t.indexOf(n.kind)&&(a=n),e&&a&&a.kind){for(var r=e,i=-1,o=a.path?a.path.length-1:0;++i<o;)void 0===r[a.path[i]]&&(r[a.path[i]]=void 0!==a.path[i+1]&&"number"==typeof a.path[i+1]?[]:{}),r=r[a.path[i]];switch(a.kind){case"A":a.path&&void 0===r[a.path[i]]&&(r[a.path[i]]=[]),function e(t,n,a){if(a.path&&a.path.length){var r,i=t[n],o=a.path.length-1;for(r=0;r<o;r++)i=i[a.path[r]];switch(a.kind){case"A":e(i[a.path[r]],a.index,a.item);break;case"D":delete i[a.path[r]];break;case"E":case"N":i[a.path[r]]=a.rhs}}else switch(a.kind){case"A":e(t[n],a.index,a.item);break;case"D":t=s(t,n);break;case"E":case"N":t[n]=a.rhs}return t}(a.path?r[a.path[i]]:r,a.index,a.item);break;case"D":delete r[a.path[i]];break;case"E":case"N":r[a.path[i]]=a.rhs}}}return n(r,a),n(i,a),n(o,a),n(l,a),Object.defineProperties(m,{diff:{value:m,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,a){var r=a?function(e){e&&a.push(e)}:void 0,i=f(e,t,r,n,!0);return a||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:f,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,a,r,i,o){return p(e,t,n,a,r,i,o,!0)},enumerable:!0},orderIndepHash:{value:d,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&f(e,t,(function(a){n&&!n(e,t,a)||h(e,t,a)}))},enumerable:!0},applyChange:{value:h,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var a,r,i=e;for(r=n.path.length-1,a=0;a<r;a++)void 0===i[n.path[a]]&&(i[n.path[a]]={}),i=i[n.path[a]];switch(n.kind){case"A":!function e(t,n,a){if(a.path&&a.path.length){var r,i=t[n],o=a.path.length-1;for(r=0;r<o;r++)i=i[a.path[r]];switch(a.kind){case"A":e(i[a.path[r]],a.index,a.item);break;case"D":case"E":i[a.path[r]]=a.lhs;break;case"N":delete i[a.path[r]]}}else switch(a.kind){case"A":e(t[n],a.index,a.item);break;case"D":case"E":t[n]=a.lhs;break;case"N":t=s(t,n)}return t}(i[n.path[a]],n.index,n.item);break;case"D":case"E":i[n.path[a]]=n.lhs;break;case"N":delete i[n.path[a]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),m.DeepDiff=m,e&&(e.DeepDiff=m),m}(this),void 0===(a=function(){return r}.call(t,n,t,e))||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=t.parser=void 0;var a=n(1076);function r(e){var t={};t.$$comments=t.$$comments||{};var n=[];return e.members.forEach((function(a,r){var o,l,s;if("comment"!==a.type){var u=r>0?e.members[r-1]:null,c=null===(o=u)||void 0===o?void 0:o.key.filter((function(e){return"comment"!==e.type}))[0],d=c?i(c):"",p=null===(l=u)||void 0===l?void 0:l.value.filter((function(e){return"comment"!==e.type}))[0],f=[],m=[],h=[],v=[],b=null,g=null;a.key.forEach((function(e){"comment"!==e.type?b=e:b?m.push(i(e)):p&&(null==e?void 0:e.range.start.line)===(null==p?void 0:p.range.end.line)?(t.$$comments[d][4]=t.$$comments[d][4]||[],t.$$comments[d][4].push(i(e))):f.push(i(e))})),a.value.forEach((function(e){"comment"!==e.type?g=e:g?v.push(i(e)):h.push(i(e))}));var y=i(b);"array"===(null===(s=g)||void 0===s?void 0:s.type)?(t.$$comments["$"+y]={},t[y]=i(g,t.$$comments["$"+y])):t[y]=i(g),t.$$comments[y]=[f.length?f:0,m.length?m:0,h.length?h:0,v.length?v:0]}else n.push(i(a))})),n.length&&(t.$$comments=t.$$comments||{},t.$$comments.$$=n),function(e){if(!e.$$comments)return;Object.keys(e.$$comments).forEach((function(t){var n=e.$$comments[t];if("$"===t[0]&&l(n)){var a=Object.keys(n);a.length&&a.forEach((function(e){if("$$"!==e){for(var t=n[e],a=t.length;a-- >0&&!t[a];)t.splice(a,1);t.length||delete n[e]}})),Object.keys(n).length||delete e.$$comments[t]}else if(Array.isArray(n)){for(var r=n.length;r-- >0&&!n[r];)n.splice(r,1);n.length||delete e.$$comments[t]}})),Object.keys(e.$$comments).length||delete e.$$comments}(t),t}function i(e,t){if("document"===e.type)return function(e){for(var t=e.body.length,n=0;n<t;){var a=e.body[n];if("comment"!==a.type)return i(a);n++}throw new Error("Json 格式错误,数值为空")}(e);if("comment"===e.type)return e.value;if("string"===e.type)return function(e){return e.value}(e);if("null"===e.type)return function(e){return e.value}(e);if("boolean"===e.type)return function(e){return e.value}(e);if("number"===e.type)return function(e){return e.value}(e);if("array"===e.type)return function(e,t){var n=[],a=[];return e.members.forEach((function(r,o){for(var l=null,s=o-1;s>=0&&"comment"===(l=e.members[s]).type;)s--;"comment"!==r.type?(t&&(t[n.length]=[a.length?a:0]),n.push(i(r)),a=[]):t&&"comment"!==(null==l?void 0:l.type)&&(null==l?void 0:l.range.end.line)===r.range.start.line?(t[n.length-1][1]=t[n.length-1][1]||[],t[n.length-1][1].push(i(r))):a.push(i(r))})),a.length&&t&&(t.$$=a),n}(e,t);if("object"===e.type)return r(e);throw new Error("Unknown ast type: "+e.type)}t.parser=a,t.parse=function(e){return i(a.parse(e))},t.stringify=function(e){return function e(t,n,a){void 0===n&&(n=0);if(l(t)){var r=t.$$comments,i=Object.keys(t),s=i.indexOf("$$comments");~s&&i.splice(s,1);var u=i.length,c=["{"];if(i.forEach((function(a,i){var l=null==r?void 0:r[a],s=t[a],d="",p="";l?(d=(l[0]?l[0].join(""):"")+'"'+a+'"',p=(l[1]?l[1].join(""):"")+":"+(l[2]?l[2].join(""):" ")+e(s,n+4,null==r?void 0:r["$"+a])+(l[3]?l[3].join("").replace(/\n *$/,""):"")+(u-1===i?"":",")+(l[4]?l[4].join("").replace(/\n *$/,""):""),d=d.replace(/^\n/,"").replace(/(\n|^) *?([^\s])/g,(function(e,t,a){return""+t+o(n+4)+("*"===a?" *":a)}))):(d=o(n+4)+'"'+a+'"',p=": "+e(s,n+4,null==r?void 0:r["$"+a])+(u-1===i?"":",")),c.push(d+p)})),Array.isArray(null==r?void 0:r.$$)){var d=(""+r.$$.join("")).trim().replace(/(\n|^) *?([^\s])/g,(function(e,t,a){return""+t+o(n+4)+("*"===a?" *":a)}));c.push(d)}return c.push(o(n)+"}"),c.join("\n")}if(Array.isArray(t)){var p=["["],f=t.length;return t.forEach((function(t,r){var i=null==a?void 0:a[r];if(Array.isArray(i)){var l=""+(i[0]?i[0].join("").replace(/^\n/,""):""),s=e(t,n+4)+(f-1===r?"":",")+(i[1]?i[1].join(""):"");l=(l+s.substring(0,1)).replace(/^\n/,"").replace(/(\n|^) *?([^\s])/g,(function(e,t,a){return""+t+o(n+4)+("*"===a?" *":a)})),p.push(l+s.substring(1))}else p.push(o(n+4)+e(t,n+4)+(f-1===r?"":","))})),Array.isArray(null==a?void 0:a.$$)&&p.push(a.$$.join("").replace(/^\n|\n$/g,"").replace(/(\n|^) *?([^\s])/g,(function(e,t,a){return""+t+o(n+4)+("*"===a?" *":a)}))),p.push(o(n)+"]"),p.join("\n")}return JSON.stringify(t,null,4)}(e)};function o(e){for(var t="";e-- >0;)t+=" ";return t}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,n){var a=function(){var e=function(e,t,n,a){for(n=n||{},a=e.length;a--;n[e[a]]=t);return n},t=[1,13],n=[1,14],a=[1,15],r=[1,16],i=[1,17],o=[1,18],l=[1,19],s=[1,20],u=[5,17,21,26],c=[5,17,21,26,30],d=[5,7,9,10,12,14,16,17,21,22,25,26,30],p=[17,21],f=[21,26],m={trace:function(){},yy:{},symbols_:{error:2,json_document:3,json_document_body:4,EOF:5,json_null_literal:6,NULLTOKEN:7,json_boolean_literal:8,TRUETOKEN:9,FALSETOKEN:10,json_string:11,STRING_LITERAL:12,json_number:13,NUMBER_LITERAL:14,json_object:15,"{":16,"}":17,json_comments:18,json_member_list:19,json_member:20,",":21,":":22,json_with_comments_value:23,json_array:24,"[":25,"]":26,json_element_list:27,json_value:28,json_comment:29,COMMENTS:30,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:"NULLTOKEN",9:"TRUETOKEN",10:"FALSETOKEN",12:"STRING_LITERAL",14:"NUMBER_LITERAL",16:"{",17:"}",21:",",22:":",25:"[",26:"]",30:"COMMENTS"},productions_:[0,[3,2],[6,1],[8,1],[8,1],[11,1],[13,1],[15,2],[15,3],[15,3],[19,1],[19,3],[20,3],[20,4],[20,4],[20,5],[24,2],[24,3],[24,3],[27,1],[27,3],[28,1],[28,1],[28,1],[28,1],[28,1],[28,1],[29,1],[18,1],[18,2],[23,1],[23,2],[23,2],[23,3],[4,1]],performAction:function(e,t,n,a,r,i,o){var l,s,u,c=i.length-1;switch(r){case 1:return{type:"document",body:i[c-1],range:h(n,e)};case 2:this.$={type:"null",value:null,range:h(n,e)};break;case 3:this.$={type:"boolean",value:!0,range:h(n,e)};break;case 4:this.$={type:"boolean",value:!1,range:h(n,e)};break;case 5:this.$={type:"string",value:(l=i[c].substring(1,i[c].length-1),s=i[c].substring(0,1),u="`"===s?/\\([\\bfnrtv`\$])/g:'"'===s?/\\([\"\\bfnrtv])/g:/\\([\'\\bfnrtv])/g,l.replace(u,(function(e,t){return"b"===t?"\b":"f"===t?"\f":"n"===t?"\n":"r"===t?"\r":"t"===t?"\t":"v"===t?"\v":t}))),range:h(n,e)};break;case 6:this.$={type:"number",value:/\./.test(i[c])?parseFloat(i[c]):parseInt(i[c],10),raw:i[c],range:h(n,e)};break;case 7:this.$={type:"object",members:[],range:h(n,e)};break;case 8:case 9:this.$={type:"object",members:i[c-1],range:h(n,e)};break;case 10:this.$=[i[c]];break;case 11:case 20:this.$=i[c-2].concat(i[c]);break;case 12:this.$={type:"property",key:[i[c-2]],value:i[c],range:h(n,e)};break;case 13:this.$={type:"property",key:i[c-3].concat(i[c-2]),value:i[c],range:h(n,e)};break;case 14:this.$={type:"property",key:[i[c-3]].concat(i[c-2]),value:i[c],range:h(n,e)};break;case 15:this.$={type:"property",key:i[c-4].concat(i[c-3]).concat(i[c-2]),value:i[c],range:h(n,e)};break;case 16:this.$={type:"array",members:[],range:h(n,e)};break;case 17:case 18:this.$={type:"array",members:i[c-1],range:h(n,e)};break;case 19:this.$=i[c];break;case 27:this.$={type:"comment",value:i[c],range:h(n,e)};break;case 28:case 30:this.$=[i[c]];break;case 29:case 31:this.$=i[c-1].concat(i[c]);break;case 32:this.$=[i[c-1]].concat(i[c]);break;case 33:this.$=i[c-2].concat(i[c-1]).concat(i[c]);break;case 34:this.$=i[c]}},table:[{3:1,4:2,6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:3,24:11,25:l,28:4,29:12,30:s},{1:[3]},{5:[1,21]},{5:[2,34]},e(u,[2,30],{29:12,18:22,30:s}),{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,24:11,25:l,28:23,29:24,30:s},e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),e(d,[2,28]),e(c,[2,2]),e(c,[2,3]),e(c,[2,4]),e([5,17,21,22,26,30],[2,5]),e(c,[2,6]),{11:29,12:r,17:[1,25],18:26,19:27,20:28,29:12,30:s},{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:32,23:33,24:11,25:l,26:[1,30],27:31,28:4,29:12,30:s},e(d,[2,27]),{1:[2,1]},e(u,[2,32],{29:24,30:s}),e(u,[2,31],{29:12,18:34,30:s}),e(d,[2,29]),e(c,[2,7]),{11:36,12:r,17:[1,35],29:24,30:s},{17:[1,37],21:[1,38]},e(p,[2,10]),{18:40,22:[1,39],29:12,30:s},e(c,[2,16]),{21:[1,42],26:[1,41]},{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,24:11,25:l,26:[1,43],28:23,29:24,30:s},e(f,[2,19]),e(u,[2,33],{29:24,30:s}),e(c,[2,8]),{18:45,22:[1,44],29:12,30:s},e(c,[2,9]),{11:29,12:r,18:47,20:46,29:12,30:s},{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:48,24:11,25:l,28:4,29:12,30:s},{22:[1,49],29:24,30:s},e(c,[2,17]),{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:50,24:11,25:l,28:4,29:12,30:s},e(c,[2,18]),{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:51,24:11,25:l,28:4,29:12,30:s},{22:[1,52],29:24,30:s},e(p,[2,11]),{11:36,12:r,29:24,30:s},e(p,[2,12]),{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:53,24:11,25:l,28:4,29:12,30:s},e(f,[2,20]),e(p,[2,13]),{6:6,7:t,8:7,9:n,10:a,11:8,12:r,13:9,14:i,15:10,16:o,18:5,23:54,24:11,25:l,28:4,29:12,30:s},e(p,[2,14]),e(p,[2,15])],defaultActions:{3:[2,34],21:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],a=[null],r=[],i=this.table,o="",l=0,s=0,u=0,c=2,d=1,p=r.slice.call(arguments,1),f=Object.create(this.lexer),m={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(m.yy[h]=this.yy[h]);f.setInput(e,m.yy),m.yy.lexer=f,m.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var v=f.yylloc;r.push(v);var b=f.options&&f.options.ranges;"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,_,w,S,x,E,O,C,k=function(){var e;return"number"!=typeof(e=f.lex()||d)&&(e=t.symbols_[e]||e),e},T={};;){if(_=n[n.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==g&&(g=k()),w=i[_]&&i[_][g]),void 0===w||!w.length||!w[0]){var N="";for(x in C=[],i[_])this.terminals_[x]&&x>c&&C.push("'"+this.terminals_[x]+"'");N=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(l+1)+": Unexpected "+(g==d?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(N,{text:f.match,token:this.terminals_[g]||g,line:f.yylineno,loc:v,expected:C})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+g);switch(w[0]){case 1:n.push(g),a.push(f.yytext),r.push(f.yylloc),n.push(w[1]),g=null,y?(g=y,y=null):(s=f.yyleng,o=f.yytext,l=f.yylineno,v=f.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[w[1]][1],T.$=a[a.length-E],T._$={first_line:r[r.length-(E||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(E||1)].first_column,last_column:r[r.length-1].last_column},b&&(T._$.range=[r[r.length-(E||1)].range[0],r[r.length-1].range[1]]),void 0!==(S=this.performAction.apply(T,[o,s,l,m.yy,w[1],a,r].concat(p))))return S;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),r=r.slice(0,-1*E)),n.push(this.productions_[w[1]][0]),a.push(T.$),r.push(T._$),O=i[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0}};function h(e,t){return{start:{line:e-t.replace(/^\s+/,"").split(/(?:\r\n|\n|\r)/).length+1},end:{line:e}}}var v={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,a,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(a=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if((n=this._input.match(this.rules[r[i]]))&&(!t||n[0].length>t[0].length)){if(t=n,a=i,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[i])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[a]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function(e,t,n,a){switch(n){case 0:break;case 1:return 12;case 2:return 7;case 3:return 9;case 4:return 10;case 5:return 14;case 6:return"/";case 7:return"*";case 8:return 22;case 9:return 25;case 10:return 26;case 11:return 16;case 12:return 17;case 13:return";";case 14:return 21;case 15:case 16:return 30;case 17:return 5;case 18:return"INVALID";case 19:console.log(t.yytext)}},rules:[/^(?:\s+)/,/^(?:(('((\\([\'\"\\bfnrtv]))|([^\'\\\n]+))*')|("((\\([\'\"\\bfnrtv]))|([^\"\\\n]+))*")))/,/^(?:null)/,/^(?:true)/,/^(?:false)/,/^(?:((([-+]?([0]|(([1-9])([0-9])*))\.([0-9])*(([eE])([-+]?([0-9])))?)|([-+]?\.([0-9])(([eE])([-+]?([0-9])))?)|([-+]?([0]|(([1-9])([0-9])*))(([eE])([-+]?([0-9])))?))))/,/^(?:\/)/,/^(?:\*)/,/^(?::)/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:;)/,/^(?:,)/,/^(?:\s*\/\/.*\s*)/,/^(?:\s*[/][*][^*]*[*]+([^/*][^*]*[*]+)*[/]\s*)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],inclusive:!0}}};function b(){this.yy={}}return m.lexer=v,b.prototype=m,m.Parser=b,new b}();t.parser=a,t.Parser=a.Parser,t.parse=function(){return a.parse.apply(a,arguments)}},function(e,t,n){}]);