%PDF- %PDF-
Direktori : /home/opti/www/ezone-inventory.optisoft.com.ng/static/js/ |
Current File : /home/opti/www/ezone-inventory.optisoft.com.ng/static/js/2.d50255c4.chunk.js |
/*! For license information please see 2.d50255c4.chunk.js.LICENSE.txt */ (this["webpackJsonpinventory-module"]=this["webpackJsonpinventory-module"]||[]).push([[2],[function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n.n(r),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.a.createContext&&o.a.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function l(e){return e&&e.map((function(e,t){return o.a.createElement(e.tag,s({key:t},e.attr),l(e.child))}))}function u(e){return function(t){return o.a.createElement(d,s({attr:s({},e.attr)},t),l(e.child))}}function d(e){var t=function(t){var n,r=e.attr,i=e.size,a=e.title,l=c(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.a.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),a&&o.a.createElement("title",null,a),e.children)};return void 0!==a?o.a.createElement(a.Consumer,null,(function(e){return t(e)})):t(i)}},function(e,t,n){"use strict";e.exports=n(286)},function(e,t,n){"use strict";e.exports=n(381)},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(207);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(170);var o=n(128),i=n(171);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(56);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(147);var o=n(173),i=n(128);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(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(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r={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>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return M})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return I})),n.d(t,"i",(function(){return D}));var r=n(63),o=n(1),i=n.n(o),a=n(14),s=n.n(a),c=n(78),l=n(83),u=n(3),d=n(218),f=n.n(d),h=(n(383),n(56)),p=(n(86),1073741823),m="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};var g=i.a.createContext||function(e,t){var n,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",c=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(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,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}Object(r.a)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(i.a.Component);c.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(r.a)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},o.getValue=function(){return this.context[a]?this.context[a].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.a.Component);return l.contextTypes=((o={})[a]=s.a.object,o),{Provider:c,Consumer:l}},b=function(e){var t=g();return t.displayName=e,t},v=b("Router-History"),y=b("Router"),w=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._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;i.a.Component;var k={},_=1e4,O=0;function x(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return O<_&&(r[e]=i,O++),i}(n,{end:i,strict:s,sensitive:l}),o=r.regexp,a=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),h=e===u;return i&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(y.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?x(n.pathname,e.props):t.match,o=Object(u.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.a.Children.count(e)}(s)&&(s=null),i.a.createElement(y.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:c?i.a.createElement(c,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.a.Component);function E(e){return"/"===e.charAt(0)?e:"/"+e}function j(e,t){if(!e)return t;var n=E(e);return 0!==t.pathname.indexOf(n)?t:Object(u.a)({},t,{pathname:t.pathname.substr(n.length)})}function S(e){return"string"===typeof e?e:Object(c.e)(e)}function P(e){return function(){Object(l.a)(!1)}}function T(){}i.a.Component;var N=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(y.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?x(o.pathname,Object(u.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);var A=i.a.useContext;function M(){return A(v)}function R(){return A(y).location}function I(){var e=A(y).match;return e?e.params:{}}function D(e){var t=R(),n=A(y).match;return e?x(t.pathname,e):n}}).call(this,n(144))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(385)()},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.a=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return w}));var r=n(1),o=n.n(r),i=o.a.createContext(null);var a=function(e){e()},s=function(){return a};var c={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=c;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=c)},getListeners:function(){return r}};return a}var u="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var d=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);u((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,c]);var d=n||i;return o.a.createElement(d.Provider,{value:s},a)};n(3),n(56),n(86),n(109);function f(){return Object(r.useContext)(i)}function h(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(r.useContext)(e)};return function(){return t().store}}var p=h();function m(e){void 0===e&&(e=i);var t=e===i?p:h(e);return function(){return t().dispatch}}var g=m(),b=function(e,t){return e===t};function v(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=b);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return l(n,o)}),[n,o]),c=Object(r.useRef)(),d=Object(r.useRef)(),f=Object(r.useRef)(),h=Object(r.useRef)(),p=n.getState();try{if(e!==d.current||p!==f.current||c.current){var m=e(p);i=void 0!==h.current&&t(m,h.current)?h.current:m}else i=h.current}catch(g){throw c.current&&(g.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),g}return u((function(){d.current=e,f.current=p,h.current=i,c.current=void 0})),u((function(){function e(){try{var e=n.getState();if(e===f.current)return;var r=d.current(e);if(t(r,h.current))return;h.current=r,f.current=e}catch(g){c.current=g}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var y,w=v(),k=n(22);y=k.unstable_batchedUpdates,a=y},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l}));var r={},o=[];function i(e,t){}function a(e,t){}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){s(i,e,t)}function l(e,t){s(a,e,t)}c.preMessage=function(e){o.push(e)},c.resetWarned=function(){r={}},c.noteOnce=l,t.a=c},function(e,t,n){"use strict";var r=n(5),o=n(6),i=n(4),a=n(8),s=n(1),c=n.n(s),l=n(7),u=n.n(l),d=n(132),f=n(10),h=n(150),p=n(17),m=n(98),g=n(256),b=n.n(g);function v(e){return"object"===Object(f.a)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Object(f.a)(e.icon)||"function"===typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[b()(n)]=r;return t}),{})}function w(e,t,n){return n?c.a.createElement(e.tag,Object(r.a)(Object(r.a)({key:t},y(e.attrs)),n),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.a.createElement(e.tag,Object(r.a)({key:t},y(e.attrs)),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function k(e){return Object(h.a)(e)[0]}function _(e){return e?Array.isArray(e)?e:[e]:[]}var O=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,o=e.icon,i=e.className,c=e.onClick,l=e.style,u=e.primaryColor,f=e.secondaryColor,h=Object(a.a)(e,O),g=x;if(u&&(g={primaryColor:u,secondaryColor:f||k(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t=Object(s.useContext)(d.a).csp;Object(s.useEffect)((function(){Object(m.b)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=v(o),n="icon should be icon definiton, but got ".concat(o),Object(p.a)(t,"[@ant-design/icons] ".concat(n)),!v(o))return null;var b=o;return b&&"function"===typeof b.icon&&(b=Object(r.a)(Object(r.a)({},b),{},{icon:b.icon(g.primaryColor,g.secondaryColor)})),w(b.icon,"svg-".concat(b.name),Object(r.a)({className:i,onClick:c,style:l,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h))};C.displayName="IconReact",C.getTwoToneColors=function(){return Object(r.a)({},x)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||k(t),x.calculated=!!n};var E=C;function j(e){var t=_(e),n=Object(o.a)(t,2),r=n[0],i=n[1];return E.setTwoToneColors({primaryColor:r,secondaryColor:i})}var S=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];j("#1890ff");var P=s.forwardRef((function(e,t){var n,c=e.className,l=e.icon,f=e.spin,h=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,b=Object(a.a)(e,S),v=s.useContext(d.a),y=v.prefixCls,w=void 0===y?"anticon":y,k=v.rootClassName,O=u()(k,w,(n={},Object(i.a)(n,"".concat(w,"-").concat(l.name),!!l.name),Object(i.a)(n,"".concat(w,"-spin"),!!f||"loading"===l.name),n),c),x=p;void 0===x&&m&&(x=-1);var C=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,j=_(g),P=Object(o.a)(j,2),T=P[0],N=P[1];return s.createElement("span",Object(r.a)(Object(r.a)({role:"img","aria-label":l.name},b),{},{ref:t,tabIndex:x,onClick:m,className:O}),s.createElement(E,{icon:l,primaryColor:T,secondaryColor:N,style:C}))}));P.displayName="AntdIcon",P.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},P.setTwoToneColor=j;t.a=P},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n.n(i),s=n(86),c=n.n(s),l=n(416),u=n(451),d=n(222),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,s=t.withTheme,f=void 0!==s&&s,h=t.name,p=Object(o.a)(t,["defaultTheme","withTheme","name"]);var m=h,g=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:h||n.displayName,classNamePrefix:m},p)),b=a.a.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),p=g(Object(r.a)({},n.defaultProps,e)),m=l;return("string"===typeof h||f)&&(s=Object(d.a)()||i,h&&(m=Object(u.a)({theme:s,name:h,props:l})),f&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:c||t,classes:p},m))}));return c()(b,n),b}},h=n(111);t.a=function(e,t){return f(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return pe}));var r=n(3),o=n(132),i=n(84),a=n(1),s=n(74),c=n(188),l=n(120),u=n(149),d=function(e){var t=e.locale,n=void 0===t?{}:t,o=e.children;e._ANT_MARK__;a.useEffect((function(){return Object(l.a)(n&&n.Modal),function(){Object(l.a)()}}),[n]);var i=a.useMemo((function(){return Object(r.a)(Object(r.a)({},n),{exist:!0})}),[n]);return a.createElement(u.a.Provider,{value:i},o)},f=n(67),h=n(81),p=n(4),m=n(202),g=n(77),b=n(203),v=n(5),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},w=n(18),k=function(e,t){return a.createElement(w.a,Object(v.a)(Object(v.a)({},e),{},{ref:t,icon:y}))};k.displayName="InfoCircleFilled";var _,O=a.forwardRef(k),x=n(92),C=n(7),E=n.n(C),j=n(201),S=n(6),P=n(134),T=n(66);var N,A,M,R=3,I=1,D="",L="move-up",z=!1,F=!1;function V(){return I++}function B(e,t){var n=e.prefixCls,r=e.getPopupContainer,o=pe(),i=o.getPrefixCls,a=o.getRootPrefixCls,s=o.getIconPrefixCls,c=i("message",n||D),l=a(e.rootPrefixCls,c),u=s();if(_)t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:_});else{var d={prefixCls:c,transitionName:z?L:"".concat(l,"-").concat(L),style:{top:N},getContainer:A||r,maxCount:M};j.a.newInstance(d,(function(e){_?t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:_}):(_=e,t({prefixCls:c,rootPrefixCls:l,iconPrefixCls:u,instance:e}))}))}}var H={info:O,success:m.a,error:g.a,warning:b.a,loading:x.a},W=Object.keys(H);function U(e,t,n){var r=void 0!==e.duration?e.duration:R,o=H[e.type],i=E()("".concat(t,"-custom-content"),Object(p.a)(Object(p.a)({},"".concat(t,"-").concat(e.type),e.type),"".concat(t,"-rtl"),!0===F));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:a.createElement(be,{iconPrefixCls:n},a.createElement("div",{className:i},e.icon||o&&a.createElement(o,null),a.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}var K,Y,q={open:function(e){var t=e.key||V(),n=new Promise((function(n){var o=function(){return"function"===typeof e.onClose&&e.onClose(),n(!0)};B(e,(function(n){var i=n.prefixCls,a=n.iconPrefixCls;n.instance.notice(U(Object(r.a)(Object(r.a)({},e),{key:t,onClose:o}),i,a))}))})),o=function(){var n;_&&(_.removeNotice(t),null===(n=e.onClose)||void 0===n||n.call(e))};return o.then=function(e,t){return n.then(e,t)},o.promise=n,o},config:function(e){void 0!==e.top&&(N=e.top,_=null),void 0!==e.duration&&(R=e.duration),void 0!==e.prefixCls&&(D=e.prefixCls),void 0!==e.getContainer&&(A=e.getContainer,_=null),void 0!==e.transitionName&&(L=e.transitionName,_=null,z=!0),void 0!==e.maxCount&&(M=e.maxCount,_=null),void 0!==e.rtl&&(F=e.rtl)},destroy:function(e){if(_)if(e){(0,_.removeNotice)(e)}else{var t=_.destroy;t(),_=null}}};function $(e,t){e[t]=function(n,o,i){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(Object(r.a)(Object(r.a)({},n),{type:t})):("function"===typeof o&&(i=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:i}))}}W.forEach((function(e){return $(q,e)})),q.warn=q.warning,q.useMessage=(K=B,Y=U,function(){var e,t,n=null,o={add:function(e,t){null===n||void 0===n||n.component.add(e,t)}},i=Object(P.a)(o),s=Object(S.a)(i,2),c=s[0],l=s[1],u=a.useRef({});return u.current.open=function(o){var i=o.prefixCls,a=e("message",i),s=e(),l=o.key||V(),u=new Promise((function(e){var i=function(){return"function"===typeof o.onClose&&o.onClose(),e(!0)};K(Object(r.a)(Object(r.a)({},o),{prefixCls:a,rootPrefixCls:s,getPopupContainer:t}),(function(e){var t=e.prefixCls,a=e.instance;n=a,c(Y(Object(r.a)(Object(r.a)({},o),{key:l,onClose:i}),t))}))})),d=function(){n&&n.removeNotice(l)};return d.then=function(e,t){return u.then(e,t)},d.promise=u,d},W.forEach((function(e){return $(u.current,e)})),[u.current,a.createElement(T.a,{key:"holder"},(function(n){return e=n.getPrefixCls,t=n.getPopupContainer,l}))]});var G=q,Q=n(274),X=n(150),J=n(45),Z=n(151),ee=n(123),te=n(34),ne=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=Object(J.d)(t)),this.originalInput=t;var o=Object(ee.a)(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Object(te.b)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Object(J.h)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Object(J.h)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Object(J.g)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Object(J.g)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Object(J.f)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),Object(J.j)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Object(te.a)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Object(te.a)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Object(J.f)(this.r,this.g,this.b,!1),t=0,n=Object.entries(Z.a);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Object(te.c)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Object(te.c)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Object(te.c)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Object(te.c)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var re=n(47),oe=n(98),ie="-ant-".concat(Date.now(),"-").concat(Math.random());function ae(e,t){var n=function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},o=function(e,t){var o=new ne(e),i=Object(X.a)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[0],n["".concat(t,"-color-deprecated-border")]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");var i=new ne(t.primaryColor),a=Object(X.a)(i.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(i,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(i,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(i,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(i,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(i,(function(e){return e.setAlpha(.12*e.getAlpha())}));var s=new ne(a[0]);n["primary-color-active-deprecated-f-30"]=r(s,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(s,(function(e){return e.darken(2)}))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");var c=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));return"\n :root {\n ".concat(c.join("\n"),"\n }\n ").trim()}(e,t);Object(re.a)()&&Object(oe.b)(n,"".concat(ie,"-dynamic-theme"))}var se,ce,le=n(58),ue=n(49),de=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];function fe(){return se||"ant"}function he(){return ce||"anticon"}var pe=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(fe(),"-").concat(e):fe())},getIconPrefixCls:he,getRootPrefixCls:function(e,t){return e||(se||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):fe()))}}},me=function(e){var t=e.children,n=e.csp,l=e.autoInsertSpaceInButton,u=e.form,f=e.locale,p=e.componentSize,m=e.direction,g=e.space,b=e.virtual,v=e.dropdownMatchSelectWidth,y=e.legacyLocale,w=e.parentContext,k=e.iconPrefixCls,_=e.componentDisabled,O=a.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||w.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[w.getPrefixCls,e.prefixCls]),x=Object(r.a)(Object(r.a)({},w),{csp:n,autoInsertSpaceInButton:l,locale:f||y,direction:m,space:g,virtual:b,dropdownMatchSelectWidth:v,getPrefixCls:O});de.forEach((function(t){var n=e[t];n&&(x[t]=n)}));var C=Object(i.a)((function(){return x}),x,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),E=a.useMemo((function(){return{prefixCls:k,csp:n}}),[k,n]),j=t,S=a.useMemo((function(){var e,t,n,r;return Object(s.b)((null===(e=h.a.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=C.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=C.form)||void 0===r?void 0:r.validateMessages)||{},(null===u||void 0===u?void 0:u.validateMessages)||{})}),[C,null===u||void 0===u?void 0:u.validateMessages]);return Object.keys(S).length>0&&(j=a.createElement(c.a.Provider,{value:S},t)),f&&(j=a.createElement(d,{locale:f,_ANT_MARK__:"internalMark"},j)),(k||n)&&(j=a.createElement(o.a.Provider,{value:E},j)),p&&(j=a.createElement(ue.a,{size:p},j)),void 0!==_&&(j=a.createElement(le.a,{disabled:_},j)),a.createElement(T.b.Provider,{value:C},j)},ge=function(e){return a.useEffect((function(){e.direction&&(G.config({rtl:"rtl"===e.direction}),Q.a.config({rtl:"rtl"===e.direction}))}),[e.direction]),a.createElement(f.a,null,(function(t,n,o){return a.createElement(T.a,null,(function(t){return a.createElement(me,Object(r.a)({parentContext:t,legacyLocale:o},e))}))}))};ge.ConfigContext=T.b,ge.SizeContext=ue.b,ge.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(se=t),void 0!==n&&(ce=n),r&&ae(fe(),r)};var be=t.a=ge},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Te})),n.d(t,"b",(function(){return Ie}));var r=n(109),o=n(1),i=n.n(o),a=n(110),s=n.n(a),c=n(253),l=n(254),u=n(221),d=n(86),f=n.n(d);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),b=Object.freeze({});function v(e){return"function"==typeof e}function y(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var k="undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_ATTR)||"data-styled",_="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})&&(void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY:void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY))),x={};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),j=new Map,S=new Map,P=1,T=function(e){if(j.has(e))return j.get(e);for(;S.has(P);)P++;var t=P++;return j.set(e,t),S.set(t,e),t},N=function(e){return S.get(e)},A=function(e,t){t>=P&&(P=t+1),j.set(e,t),S.set(t,e)},M="style["+k+'][data-styled-version="5.3.11"]',R=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},D=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(A(l,c),I(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},L=function(){return n.nc},z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.3.11");var a=L();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},F=function(){function e(e){var t=this.element=z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),V=function(){function e(e){var t=this.element=z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=_,W={isServer:!_,useCSSOMInjection:!O},U=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=h({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&_&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(k)&&(D(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new B(o):r?new F(o):new V(o),new E(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=N(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=k+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),K=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(K,"$1-$2")}var $=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return $(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!w(n))return!1}return!0}var X=G("5.3.11"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=$(X,t),this.baseStyle=n,U.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=q($(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=$(this.baseHash,n.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=ge(f,e,t,n),p=Array.isArray(h)?h.join(""):h;l=$(l,p+d),u+=p}}if(u){var m=q(l>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,i=void 0===e?b:e,a=i.options,s=void 0===a?b:a,l=i.plugins,u=void 0===l?g:l,d=new c.a(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,i){return 0===r&&-1!==ee.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Z,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||C(15),$(e,t.name)}),5381).toString():"",m}var ne=i.a.createContext(),re=(ne.Consumer,i.a.createContext()),oe=(re.Consumer,new U),ie=te();function ae(){return Object(o.useContext)(ne)||oe}function se(){return Object(o.useContext)(re)||ie}function ce(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ae(),c=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(ne.Provider,{value:c},i.a.createElement(re.Provider,{value:l},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(de,he).replace(fe,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return me(e)?"":w(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||v(t[a])?i.push(pe(a)+":",t[a],";"):m(t[a])?i.push.apply(i,e(t[a],a)):i.push(pe(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in l.a||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?be(ge(p(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ge(p(e,n)))}new Set;var ye=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function _e(e){return e.replace(we,"-").replace(ke,"")}var Oe=function(e){return q(G(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function je(e,t,n){var r=e[n];Ce(t)&&Ce(r)?Se(r,t):e[n]=t}function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Ce(a))for(var s in a)Ee(s)&&je(e,a[s],s)}return e}var Pe=i.a.createContext();Pe.Consumer;function Te(e){var t=Object(o.useContext)(Pe),n=Object(o.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.a.createElement(Pe.Provider,{value:n},e.children):null}var Ne={};function Ae(e,t,n){var r=w(e),a=!xe(e),s=t.attrs,c=void 0===s?g:s,l=t.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ne[n]=(Ne[n]||0)+1;var r=n+"-"+Oe("5.3.11"+n+Ne[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,p=t.displayName,m=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+y(e)+")"}(e):p,k=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||d,_=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var x,C=new J(n,k,r?e.componentStyle:void 0),E=C.isStatic&&0===c.length,j=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=b);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in v(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(ye(t,Object(o.useContext)(Pe),s)||b,t,i),m=p[0],g=p[1],y=function(e,t,n,r){var o=ae(),i=se();return t?e.generateAndInjectStyles(b,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),w=n,k=g.$as||t.$as||g.as||t.as||f,_=xe(k),O=g!==t?h({},t,{},g):t,x={};for(var C in O)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?x.as=O[C]:(l?l(C,u.a,k):!_||Object(u.a)(C))&&(x[C]=O[C]));return t.style&&g.style!==t.style&&(x.style=h({},t.style,{},g.style)),x.className=Array.prototype.concat(c,d,y!==d?y:null,t.className,g.className).filter(Boolean).join(" "),x.ref=w,Object(o.createElement)(k,x)}(x,e,t,E)};return j.displayName=m,(x=i.a.forwardRef(j)).attrs=_,x.componentStyle=C,x.displayName=m,x.shouldForwardProp=O,x.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,x.styledComponentId=k,x.target=r?e.target:e,x.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(xe(e)?e:_e(y(e)));return Ae(e,h({},o,{attrs:_,componentId:i}),n)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Se({},e.defaultProps,t):t}}),Object.defineProperty(x,"toString",{value:function(){return"."+x.styledComponentId}}),a&&f()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Me=function(e){return function e(t,n,o){if(void 0===o&&(o=b),!Object(r.isValidElementType)(n))return C(1,String(n));var i=function(){return t(n,o,ve.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Me[e]=Me(e)}));var Re=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),U.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ve.apply(void 0,[e].concat(n)),s="sc-global-"+Oe(JSON.stringify(a)),c=new Re(a,s);function l(e){var t=ae(),n=se(),r=Object(o.useContext)(Pe),i=Object(o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,r,n),Object(o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,r,n),function(){return c.removeStyles(i,t)}}),[i,e,t,r,n]),null}function u(e,t,n,r,o){if(c.isStatic)c.renderStyles(e,x,n,o);else{var i=h({},t,{theme:ye(t,r,l.defaultProps)});c.renderStyles(e,i,n,o)}}return i.a.memo(l)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=L();return"<style "+[n&&'nonce="'+n+'"',k+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[k]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=L();return r&&(n.nonce=r),[i.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?C(2):i.a.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)}}();t.c=Me}).call(this,n(159))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(287)},function(e,t,n){"use strict";var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function s(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(o){if(0===o)s(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return s(e),o(t)},t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f}));var r=n(3),o=n(76),i=n(32),a=n(1),s=a.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),c=a.createContext(null),l=function(e){var t=Object(i.a)(e,["prefixCls"]);return a.createElement(o.c,Object(r.a)({},t))},u=a.createContext({prefixCls:""}),d=a.createContext({}),f=function(e){var t=e.children,n=e.status,o=e.override,i=Object(a.useContext)(d),s=Object(a.useMemo)((function(){var e=Object(r.a)({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return a.createElement(d.Provider,{value:s},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(207);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Object(r.a)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n(1),o=r.isValidElement;function i(e){return e&&o(e)&&e.type===r.Fragment}function a(e,t){return function(e,t,n){return o(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}(e,e,t)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(10),o=(n(1),n(148)),i=n(84);function a(e,t){"function"===typeof e?e(t):"object"===Object(r.a)(e)&&e&&"current"in e&&(e.current=t)}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){a(t,e)}))}}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(i.a)((function(){return s.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function l(e){var t,n,r=Object(o.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"a",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"b",(function(){return y}));var r=n(10),o=n(9),i=n(5),a=n(8),s=n(51),c=n(32),l=n(17),u=n(65),d=["children"];function f(e,t){return"".concat(e,"-").concat(t)}function h(e,t){return null!==e&&void 0!==e?e:t}function p(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function m(e){return function e(t){return Object(s.a)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return Object(l.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,s=Object(a.a)(r,d),c=Object(i.a)({key:n},s),u=e(o);return u.length&&(c.children=u),c})).filter((function(e){return e}))}(e)}function g(e,t,n){var r=p(n),a=r._title,s=r.key,l=r.children,u=new Set(!0===t?[]:t),d=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(p,m){for(var g,b=f(r?r.pos:"0",m),v=h(p[s],b),y=0;y<a.length;y+=1){var w=a[y];if(void 0!==p[w]){g=p[w];break}}var k=Object(i.a)(Object(i.a)({},Object(c.a)(p,[].concat(Object(o.a)(a),[s,l]))),{},{title:g,key:v,parent:r,pos:b,children:null,data:p,isStart:[].concat(Object(o.a)(r?r.isStart:[]),[0===m]),isEnd:[].concat(Object(o.a)(r?r.isEnd:[]),[m===n.length-1])});return d.push(k),!0===t||u.has(v)?k.children=e(p[l]||[],k):k.children=[],k}))}(e),d}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,i=t.processEntity,a=t.onProcessFinished,s=t.externalGetKey,c=t.childrenPropName,l=t.fieldNames,u=s||(arguments.length>2?arguments[2]:void 0),d={},m={},g={posEntities:d,keyEntities:m};return n&&(g=n(g)||g),function(e,t,n){var i,a=("object"===Object(r.a)(n)?n:{externalGetKey:n})||{},s=a.childrenPropName,c=a.externalGetKey,l=p(a.fieldNames),u=l.key,d=l.children,m=s||d;c?"string"===typeof c?i=function(e){return e[c]}:"function"===typeof c&&(i=function(e){return c(e)}):i=function(e,t){return h(e[u],t)},function n(r,a,s,c){var l=r?r[m]:e,u=r?f(s.pos,a):"0",d=r?[].concat(Object(o.a)(c),[r]):[];if(r){var h=i(r,u),p={node:r,index:a,pos:u,key:h,parentPos:s.node?s.pos:null,level:s.level+1,nodes:d};t(p)}l&&l.forEach((function(e,t){n(e,t,{node:r,pos:u,level:s?s.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,a=e.parentPos,s=e.level,c={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:s},l=h(o,r);d[r]=c,m[l]=c,c.parent=d[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),i&&i(c,g)}),{externalGetKey:u,childrenPropName:c,fieldNames:l}),a&&a(g),g}function v(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,l=t.dropPosition,d=t.keyEntities,f=Object(u.a)(d,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(f?f.pos:""),dragOver:c===e&&0===l,dragOverGapTop:c===e&&-1===l,dragOverGapBottom:c===e&&1===l}}function y(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,s=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,h=e.pos,p=e.active,m=e.eventKey,g=Object(i.a)(Object(i.a)({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:s,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:f,pos:h,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);function o(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6),o=n(80),i=n(39),a=n(70);function s(e){return void 0!==e}function c(e,t){var n=t||{},c=n.defaultValue,l=n.value,u=n.onChange,d=n.postState,f=Object(a.a)((function(){return s(l)?l:s(c)?"function"===typeof c?c():c:"function"===typeof e?e():e})),h=Object(r.a)(f,2),p=h[0],m=h[1],g=void 0!==l?l:p,b=d?d(g):g,v=Object(o.a)(u),y=Object(a.a)([g]),w=Object(r.a)(y,2),k=w[0],_=w[1];return Object(i.b)((function(){var e=k[0];p!==e&&v(p,e)}),[k]),Object(i.b)((function(){s(l)||m(l)}),[l]),[b,Object(o.a)((function(e,t){m(e,t),_([g],t)}))]}},function(e,t,n){"use strict";function r(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s}))},function(e,t,n){e.exports=n(387)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(276);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(175);function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,"a",(function(){return s}));var i=n(10),a=n(13);function s(e){var t=o();return function(){var n,o=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===Object(i.a)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(a.a)(e)}(this,n)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(1),o=n(47),i=Object(o.a)()?r.useLayoutEffect:r.useEffect,a=function(e,t){var n=r.useRef(!0);i((function(){return e(n.current)}),t),i((function(){return n.current=!1,function(){n.current=!0}}),[])},s=function(e,t){a((function(t){if(!t)return e()}),t)};t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=n(99);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}},{tag:"circle",attr:{cx:"12",cy:"13",r:"4"}}]})(e)}function i(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}},{tag:"polyline",attr:{points:"22,6 12,13 2,6"}}]})(e)}function a(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"12",cy:"5",r:"1"}},{tag:"circle",attr:{cx:"12",cy:"19",r:"1"}}]})(e)}function s(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"}},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}}]})(e)}function c(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"}},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"}},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"}}]})(e)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"e",(function(){return m}));var r=n(9),o=n(10),i=(n(3),n(8),n(17)),a=(n(1),n(104),n(65));n(29);function s(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function c(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function u(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(Object(a.a)(t,e).children),n}function d(e){if(e.parent){var t=l(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function f(e,t,n,r,o,i,s,c,u,f){var h,p=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),b=g.top,v=g.height,y=(("rtl"===f?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-p)-12)/r,w=Object(a.a)(c,n.props.eventKey);if(m<b+v/2){var k=s.findIndex((function(e){return e.key===w.key})),_=s[k<=0?0:k-1].key;w=Object(a.a)(c,_)}var O=w.key,x=w,C=w.key,E=0,j=0;if(!u.includes(O))for(var S=0;S<y&&d(w);S+=1)w=w.parent,j+=1;var P=t.props.data,T=w.node,N=!0;return function(e){var t=l(e.pos);return 0===Number(t[t.length-1])}(w)&&0===w.level&&m<b+v/2&&i({dragNode:P,dropNode:T,dropPosition:-1})&&w.key===n.props.eventKey?E=-1:(x.children||[]).length&&u.includes(C)?i({dragNode:P,dropNode:T,dropPosition:0})?E=0:N=!1:0===j?y>-1.5?i({dragNode:P,dropNode:T,dropPosition:1})?E=1:N=!1:i({dragNode:P,dropNode:T,dropPosition:0})?E=0:i({dragNode:P,dropNode:T,dropPosition:1})?E=1:N=!1:i({dragNode:P,dropNode:T,dropPosition:1})?E=1:N=!1,{dropPosition:E,dropLevelOffset:j,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:C,dropContainerKey:0===E?null:(null===(h=w.parent)||void 0===h?void 0:h.key)||null,dropAllowed:N}}function h(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(o.a)(e))return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function m(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=Object(a.a)(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),Object(r.a)(n)}},function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n(34);function o(e,t,n){return{r:255*Object(r.a)(e,255),g:255*Object(r.a)(t,255),b:255*Object(r.a)(n,255)}}function i(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,c=(o+i)/2;if(o===i)s=0,a=0;else{var l=o-i;switch(s=c>.5?l/(2-o-i):l/(o+i),o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:s,l:c}}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var o,i,s;if(e=Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100),0===t)i=n,s=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;o=a(l,c,e+1/3),i=a(l,c,e),s=a(l,c,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function c(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,c=o-i,l=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4}a/=6}return{h:a,s:l,v:s}}function l(e,t,n){e=6*Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),c=n*(1-(1-i)*t),l=o%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l]}}function u(e,t,n,o){var i=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,n,o,i){var a=[Object(r.e)(Math.round(e).toString(16)),Object(r.e)(Math.round(t).toString(16)),Object(r.e)(Math.round(n).toString(16)),Object(r.e)(f(o))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function f(e){return Math.round(255*parseFloat(e)).toString(16)}function h(e){return p(e)/255}function p(e){return parseInt(e,16)}function m(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f}));var r=n(276);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),a({type:l,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?d(e,t):f(e,t)}function u(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=r.createContext(void 0),i=function(e){var t=e.children,n=e.size;return r.createElement(o.Consumer,null,(function(e){return r.createElement(o.Provider,{value:n||e},t)}))};t.b=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r),i=n(148);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):Object(i.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return de}));var r=n(4),o=n(5),i=n(6),a=n(10),s=n(7),c=n.n(s),l=n(97),u=n(28),d=n(1),f=n(8),h=d.createContext({});var p=n(27),m=n(25),g=n(37),b=n(38),v=function(e){Object(g.a)(n,e);var t=Object(b.a)(n);function n(){return Object(p.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),y=v,w=n(70),k="none",_="appear",O="enter",x="leave",C="none",E="prepare",j="start",S="active",P="end",T="prepared",N=n(47);function A(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var M=function(e,t){var n={animationend:A("Animation","AnimationEnd"),transitionend:A("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Object(N.a)(),"undefined"!==typeof window?window:{}),R={};if(Object(N.a)()){var I=document.createElement("div");R=I.style}var D={};function L(e){if(D[e])return D[e];var t=M[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in R)return D[e]=t[i],D[e]}return""}var z=L("animationend"),F=L("transitionend"),V=!(!z||!F),B=z||"animationend",H=F||"transitionend";function W(e,t){return e?"object"===Object(a.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var U=function(e){var t=Object(d.useRef)(),n=Object(d.useRef)(e);n.current=e;var r=d.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(H,r),e.removeEventListener(B,r))}return d.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(H,r),e.addEventListener(B,r),t.current=e)},o]},K=Object(N.a)()?d.useLayoutEffect:d.useEffect,Y=n(23),q=[E,j,S,P],$=[E,T],G=!1,Q=!0;function X(e){return e===S||e===P}var J=function(e,t,n){var r=Object(w.a)(C),o=Object(i.a)(r,2),a=o[0],s=o[1],c=function(){var e=d.useRef(null);function t(){Y.a.cancel(e.current)}return d.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Object(Y.a)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=Object(i.a)(c,2),u=l[0],f=l[1];var h=t?$:q;return K((function(){if(a!==C&&a!==P){var e=h.indexOf(a),t=h[e+1],r=n(a);r===G?s(t,!0):t&&u((function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){s(E,!0)},a]};var Z=function(e){var t=e;"object"===Object(a.a)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,s=void 0===a||a,f=e.removeOnLeave,p=void 0===f||f,m=e.forceRender,g=e.children,b=e.motionName,v=e.leavedClassName,C=e.eventProps,P=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(h).motion),N=Object(d.useRef)(),A=Object(d.useRef)();var M=function(e,t,n,a){var s=a.motionEnter,c=void 0===s||s,l=a.motionAppear,u=void 0===l||l,f=a.motionLeave,h=void 0===f||f,p=a.motionDeadline,m=a.motionLeaveImmediately,g=a.onAppearPrepare,b=a.onEnterPrepare,v=a.onLeavePrepare,y=a.onAppearStart,C=a.onEnterStart,P=a.onLeaveStart,N=a.onAppearActive,A=a.onEnterActive,M=a.onLeaveActive,R=a.onAppearEnd,I=a.onEnterEnd,D=a.onLeaveEnd,L=a.onVisibleChanged,z=Object(w.a)(),F=Object(i.a)(z,2),V=F[0],B=F[1],H=Object(w.a)(k),W=Object(i.a)(H,2),Y=W[0],q=W[1],$=Object(w.a)(null),Z=Object(i.a)($,2),ee=Z[0],te=Z[1],ne=Object(d.useRef)(!1),re=Object(d.useRef)(null);function oe(){return n()}var ie=Object(d.useRef)(!1);function ae(){q(k,!0),te(null,!0)}function se(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;Y===_&&r?n=null===R||void 0===R?void 0:R(t,e):Y===O&&r?n=null===I||void 0===I?void 0:I(t,e):Y===x&&r&&(n=null===D||void 0===D?void 0:D(t,e)),Y!==k&&r&&!1!==n&&ae()}}var ce=U(se),le=Object(i.a)(ce,1)[0],ue=function(e){var t,n,o;switch(e){case _:return t={},Object(r.a)(t,E,g),Object(r.a)(t,j,y),Object(r.a)(t,S,N),t;case O:return n={},Object(r.a)(n,E,b),Object(r.a)(n,j,C),Object(r.a)(n,S,A),n;case x:return o={},Object(r.a)(o,E,v),Object(r.a)(o,j,P),Object(r.a)(o,S,M),o;default:return{}}},de=d.useMemo((function(){return ue(Y)}),[Y]),fe=J(Y,!e,(function(e){if(e===E){var t=de[E];return t?t(oe()):G}var n;return me in de&&te((null===(n=de[me])||void 0===n?void 0:n.call(de,oe(),null))||null),me===S&&(le(oe()),p>0&&(clearTimeout(re.current),re.current=setTimeout((function(){se({deadline:!0})}),p))),me===T&&ae(),Q})),he=Object(i.a)(fe,2),pe=he[0],me=he[1],ge=X(me);ie.current=ge,K((function(){B(t);var n,r=ne.current;ne.current=!0,!r&&t&&u&&(n=_),r&&t&&c&&(n=O),(r&&!t&&h||!r&&m&&!t&&h)&&(n=x);var o=ue(n);n&&(e||o[E])?(q(n),pe()):q(k)}),[t]),Object(d.useEffect)((function(){(Y===_&&!u||Y===O&&!c||Y===x&&!h)&&q(k)}),[u,c,h]),Object(d.useEffect)((function(){return function(){ne.current=!1,clearTimeout(re.current)}}),[]);var be=d.useRef(!1);Object(d.useEffect)((function(){V&&(be.current=!0),void 0!==V&&Y===k&&((be.current||V)&&(null===L||void 0===L||L(V)),be.current=!0)}),[V,Y]);var ve=ee;return de[E]&&me===j&&(ve=Object(o.a)({transition:"none"},ve)),[Y,me,ve,null!==V&&void 0!==V?V:t]}(P,s,(function(){try{return N.current instanceof HTMLElement?N.current:Object(l.a)(A.current)}catch(e){return null}}),e),R=Object(i.a)(M,4),I=R[0],D=R[1],L=R[2],z=R[3],F=d.useRef(z);z&&(F.current=!0);var V,B=d.useCallback((function(e){N.current=e,Object(u.b)(n,e)}),[n]),H=Object(o.a)(Object(o.a)({},C),{},{visible:s});if(g)if(I===k)V=z?g(Object(o.a)({},H),B):!p&&F.current&&v?g(Object(o.a)(Object(o.a)({},H),{},{className:v}),B):m||!p&&!v?g(Object(o.a)(Object(o.a)({},H),{},{style:{display:"none"}}),B):null;else{var Y,q;D===E?q="prepare":X(D)?q="active":D===j&&(q="start");var $=W(b,"".concat(I,"-").concat(q));V=g(Object(o.a)(Object(o.a)({},H),{},{className:c()(W(b,I),(Y={},Object(r.a)(Y,$,$&&q),Object(r.a)(Y,b,"string"===typeof b),Y)),style:L}),B)}else V=null;d.isValidElement(V)&&Object(u.c)(V)&&(V.ref||(V=d.cloneElement(V,{ref:B})));return d.createElement(y,{ref:A},V)}));return n.displayName="CSSMotion",n}(V),ee=n(3),te=n(13),ne="add",re="keep",oe="remove",ie="removed";function ae(e){var t;return t=e&&"object"===Object(a.a)(e)&&"key"in e?e:{key:e},Object(o.a)(Object(o.a)({},t),{},{key:String(t.key)})}function se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ae)}var ce=["component","children","onVisibleChanged","onAllRemoved"],le=["status"],ue=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,n=function(e){Object(g.a)(i,e);var n=Object(b.a)(i);function i(){var e;Object(p.a)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=n.call.apply(n,[this].concat(a)),Object(r.a)(Object(te.a)(e),"state",{keyEntities:[]}),Object(r.a)(Object(te.a)(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Object(o.a)(Object(o.a)({},e),{},{status:ie})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ie})).length})),e}return Object(m.a)(i,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,c=r.onAllRemoved,l=Object(f.a)(r,ce),u=i||d.Fragment,h={};return ue.forEach((function(e){h[e]=l[e],delete l[e]})),delete l.keys,d.createElement(u,l,n.map((function(n,r){var i=n.status,l=Object(f.a)(n,le),u=i===ne||i===re;return d.createElement(t,Object(ee.a)({},h,{key:l.key,visible:u,eventProps:l,onVisibleChanged:function(t){(null===s||void 0===s||s(t,{key:l.key}),t)||0===e.removeKey(l.key)&&c&&c()}}),(function(e,t){return a(Object(o.a)(Object(o.a)({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=se(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=se(e),s=se(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var c=s[a];if(c.key===e.key){r<a&&(n=n.concat(s.slice(r,a).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:ne})}))),r=a),n.push(Object(o.a)(Object(o.a)({},c),{},{status:re})),r+=1,t=!0;break}}t||n.push(Object(o.a)(Object(o.a)({},e),{},{status:oe}))})),r<i&&(n=n.concat(s.slice(r).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:ne})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==oe}))).forEach((function(t){t.key===e&&(t.status=re)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ie||e.status!==oe}))}}}]),i}(d.Component);return Object(r.a)(n,"defaultProps",{component:"div"}),n}(V);t.b=Z},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new A(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",m="suspendedYield",g="executing",b="completed",v={};function y(){}function w(){}function k(){}var _={};d(_,c,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(M([])));x&&x!==n&&i.call(x,c)&&(_=x);var C=k.prototype=y.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,s,c){var l=h(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Object(r.a)(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(t,n,r){var o=p;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=P(s,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?b:m,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Object(r.a)(t)+" is not iterable")}return w.prototype=k,a(C,"constructor",{value:k,configurable:!0}),a(k,"constructor",{value:w,configurable:!0}),w.displayName=d(k,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,d(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},E(j.prototype),d(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(C),d(C,u,"Generator"),d(C,c,(function(){return this})),d(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return T}));var o=n(57),i=(n(169),n(100)),a=n(219),s=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},u=Object.defineProperty,d=Object.defineProperties,f=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=function(e,t,n){return t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},b=function(e,t){for(var n in t||(t={}))p.call(t,n)&&g(e,n,t[n]);if(h)for(var r=0,o=h(t);r<o.length;r++){n=o[r];m.call(t,n)&&g(e,n,t[n])}return e},v=function(e,t){return d(e,f(t))},y=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{s(n.next(e))}catch(t){o(t)}},a=function(e){try{s(n.throw(e))}catch(t){o(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())}))},w="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.c:i.c.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function k(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function _(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return b(b({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var O=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return s(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array),x=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return s(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array);function C(e){return Object(o.e)(e)?Object(o.b)(e,(function(){})):e}function E(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new O);n&&("boolean"===typeof n?r.push(a.a):r.push(a.a.withExtraArgument(n.extraArgument)));0;return r}(e)}}var j=!0;function S(e){var t,n=E(),r=e||{},o=r.reducer,a=void 0===o?void 0:o,s=r.middleware,c=void 0===s?n():s,u=r.devTools,d=void 0===u||u,f=r.preloadedState,h=void 0===f?void 0:f,p=r.enhancers,m=void 0===p?void 0:p;if("function"===typeof a)t=a;else{if(!k(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(i.b)(a)}var g=c;if("function"===typeof g&&(g=g(n),!j&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!j&&g.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var v=i.a.apply(void 0,g),y=i.c;d&&(y=w(b({trace:!j},"object"===typeof d&&d)));var _=new x(v),O=_;Array.isArray(m)?O=l([v],m):"function"===typeof m&&(O=m(_));var C=y.apply(void 0,O);return Object(i.d)(t,h,C)}function P(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function T(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:C(e.initialState),i=e.reducers||{},a=Object.keys(i),s={},c={},u={};function d(){var t="function"===typeof e.extraReducers?P(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,a=t[1],s=void 0===a?[]:a,u=t[2],d=void 0===u?void 0:u,f=b(b({},i),c);return function(e,t,n,r){void 0===n&&(n=[]);var i,a="function"===typeof t?P(t):[t,n,r],s=a[0],c=a[1],u=a[2];if("function"===typeof e)i=function(){return C(e())};else{var d=C(e);i=function(){return d}}function f(e,t){void 0===e&&(e=i());var n=l([s[t.type]],c.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(Object(o.d)(e))return void 0===(r=n(e,t))?e:r;if(Object(o.e)(e))return Object(o.b)(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return f.getInitialState=i,f}(r,(function(e){for(var t in f)e.addCase(t,f[t]);for(var n=0,r=s;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}d&&e.addDefaultCase(d)}))}return a.forEach((function(e){var n,r,o=i[e],a=t+"/"+e;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,s[e]=n,c[a]=n,u[e]=r?_(a,r):_(a)})),{name:t,reducer:function(e,t){return n||(n=d()),n(e,t)},actions:u,caseReducers:s,getInitialState:function(){return n||(n=d()),n.getInitialState()}}}var N=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},A=["name","message","stack","code"],M=function(e,t){this.payload=e,this.meta=t},R=function(e,t){this.payload=e,this.meta=t},I=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=A;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=_(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:v(b({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=_(e+"/pending",(function(e,t,n){return{payload:void 0,meta:v(b({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=_(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||I)(e||"Rejected"),meta:v(b({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,u){var d,f=(null==n?void 0:n.idGenerator)?n.idGenerator(e):N(),h=new a;function p(e){d=e,h.abort()}var m=function(){return y(this,null,(function(){var a,m,g,b,v,y;return c(this,(function(c){switch(c.label){case 0:return c.trys.push([0,4,,5]),b=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:u}),null===(w=b)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,b];case 1:b=c.sent(),c.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,v=new Promise((function(e,t){return h.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:d||"Aborted"})}))})),s(o(f,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:f,arg:e},{getState:l,extra:u}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(e,t){return new M(e,t)},fulfillWithValue:function(e,t){return new R(e,t)}})).then((function(t){if(t instanceof M)throw t;return t instanceof R?r(t.payload,f,e,t.meta):r(t,f,e)}))])];case 3:return g=c.sent(),[3,5];case 4:return y=c.sent(),g=y instanceof M?i(null,f,e,y.payload,y.meta):i(y,f,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(g)&&g.meta.condition||s(g),[2,g]}var w}))}))}();return Object.assign(m,{abort:p,requestId:f,arg:e,unwrap:function(){return m.then(D)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function D(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var L="listenerMiddleware";_(L+"/add"),_(L+"/removeAll"),_(L+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof r?r:globalThis);var z,F=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:F(10);Object(o.c)()}).call(this,n(159),n(144))},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return h}));var r=n(3),o=n(4),i=n(7),a=n.n(i),s=n(51),c=n(1),l=n(66),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=c.createContext(null),f=function(e,t){var n=c.useContext(d),r=c.useMemo((function(){if(!n)return"";var r=n.compactDirection,i=n.isFirstItem,s=n.isLastItem,c="vertical"===r?"-vertical-":"-";return a()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(e,"-compact").concat(c,"item"),!0),"".concat(e,"-compact").concat(c,"first-item"),i),"".concat(e,"-compact").concat(c,"last-item"),s),"".concat(e,"-compact").concat(c,"item-rtl"),"rtl"===t))}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},h=function(e){var t=e.children;return c.createElement(d.Provider,{value:null},t)},p=function(e){var t=e.children,n=u(e,["children"]);return c.createElement(d.Provider,{value:n},t)};t.b=function(e){var t=c.useContext(l.b),n=t.getPrefixCls,i=t.direction,f=e.size,h=void 0===f?"middle":f,m=e.direction,g=e.block,b=e.prefixCls,v=e.className,y=e.children,w=u(e,["size","direction","block","prefixCls","className","children"]),k=n("space-compact",b),_=a()(k,Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(k,"-rtl"),"rtl"===i),"".concat(k,"-block"),g),"".concat(k,"-vertical"),"vertical"===m),v),O=c.useContext(d),x=Object(s.a)(y),C=c.useMemo((function(){return x.map((function(e,t){var n=e&&e.key||"".concat(k,"-item-").concat(t);return c.createElement(p,{key:n,compactSize:h,compactDirection:m,isFirstItem:0===t&&(!O||(null===O||void 0===O?void 0:O.isFirstItem)),isLastItem:t===x.length-1&&(!O||(null===O||void 0===O?void 0:O.isLastItem))},e)}))}),[h,x,O]);return 0===x.length?null:c.createElement("div",Object(r.a)({className:_},w),C)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[q]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[Y]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Y])||f(e)||h(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:G)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:h(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return H&&e instanceof Map}function h(e){return W&&e instanceof Set}function p(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[q];for(var n=G(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),v(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function b(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=X[e];return t||r(18,e),t}function w(e,t){X[e]||(X[e]=t)}function k(){return V}function _(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function O(e){x(e),e.p.forEach(E),e.p=null}function x(e){e===V&&(V=e.l)}function C(e){return V={p:[],l:V,h:e,m:!0,_:0}}function E(e){var t=e[q];0===t.i||1===t.i?t.j():t.g=!0}function j(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||y("ES5").S(t,e,o),o?(n[q].P&&(O(t),r(4)),i(e)&&(e=S(t,e),t.l||T(t,e)),t.u&&y("Patches").M(n[q].t,e,t.u,t.s)):e=S(t,n,[]),O(t),t.u&&t.v(t.u,t.s),e!==K?e:void 0}function S(e,t,n){if(v(t))return t;var r=t[q];if(!r)return a(t,(function(o,i){return P(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=m(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(t,i){return P(e,r,o,t,i,n,s)})),T(e,o,!1),n&&e.u&&y("Patches").N(r,n,e.u,e.s)}return r.o}function P(e,t,n,r,a,s,l){if(o(a)){var d=S(e,a,s&&t&&3!==t.i&&!c(t.R,r)?s.concat(r):void 0);if(u(n,r,d),!o(d))return;e.m=!1}else l&&n.add(a);if(i(a)&&!v(a)){if(!e.h.D&&e._<1)return;S(e,a),t&&t.A.l||T(e,a)}}function T(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&g(t,n)}function N(e,t){var n=e[q];return(n?p(n):e)[t]}function A(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function R(e){e.o||(e.o=m(e.t))}function I(e,t,n){var r=f(t)?y("MapSet").F(t,n):h(t)?y("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:k(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Z);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(t,n):y("ES5").J(t,n);return(n?n.A:k()).p.push(r),r}function D(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[q],o=s(t);if(r){if(!r.P&&(r.i<4||!y("ES5").K(r)))return r.t;r.I=!0,n=L(t,o),r.I=!1}else n=L(t,o);return a(n,(function(t,o){r&&l(r.t,t)===o||u(n,t,e(o))})),3===o?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function z(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[q];return J.get(t,e)},set:function(t){var n=this[q];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][q];if(!o.P)switch(o.i){case 5:r(o)&&M(o);break;case 4:n(o)&&M(o)}}}function n(e){for(var t=e.t,n=e.k,r=G(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==q){var a=t[i];if(void 0===a&&!c(t,i))return!0;var s=n[i],l=s&&s[q];if(l?l.t!==a:!d(s,a))return!0}}var u=!!t[q];return r.length!==G(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};w("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=Q(n);delete i[q];for(var a=G(i),s=0;s<a.length;s++){var c=a[s];i[c]=e(c,t||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:k(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,q,{value:i,writable:!0}),o},S:function(e,n,i){i?o(n)&&n[q].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[q];if(n){var o=n.t,i=n.k,s=n.R,l=n.i;if(4===l)a(i,(function(t){t!==q&&(void 0!==o[t]||c(o,t)?s[t]||e(i[t]):(s[t]=!0,M(n)))})),a(o,(function(e){void 0!==i[e]||c(i,e)||(s[e]=!1,M(n))}));else if(5===l){if(r(n)&&(M(n),s.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)s[u]=!1;else for(var d=o.length;d<i.length;d++)s[d]=!0;for(var f=Math.min(i.length,o.length),h=0;h<f;h++)i.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&e(i[h])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return D})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i}));var F,V,B="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,W="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,K=B?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),Y=B?Symbol.for("immer-draftable"):"__$immer_draftable",q=B?Symbol.for("immer-state"):"__$immer_state",$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q=Object.getOwnPropertyDescriptors||function(e){var t={};return G(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},J={get:function(e,t){if(t===q)return e;var n=p(e);if(!c(n,t))return function(e,t,n){var r,o=A(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===N(e.t,t)?(R(e),e.o[t]=I(e.A.h,r,e)):r},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=A(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=N(p(e),t),i=null==o?void 0:o[q];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(d(n,o)&&(void 0!==n||c(e.t,t)))return!0;R(e),M(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==N(e.t,t)||t in e.t?(e.R[t]=!1,R(e),M(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};a(J,(function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(e,t){return Z.set.call(this,e,t,void 0)},Z.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=U,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var c;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var l=C(t),u=I(t,e,void 0),d=!0;try{c=n(u),d=!1}finally{d?O(l):x(l)}return"undefined"!=typeof Promise&&c instanceof Promise?c.then((function(e){return _(l,o),j(e,l)}),(function(e){throw O(l),e})):(_(l,o),j(c,l))}if(!e||"object"!=typeof e){if(void 0===(c=n(e))&&(c=e),c===K&&(c=void 0),t.D&&g(c,!0),o){var f=[],h=[];y("Patches").M(e,c,f,h),o(f,h)}return c}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=D(e));var t=C(this),n=I(this,e,void 0);return n[q].C=!0,x(t),n},t.finishDraft=function(e,t){var n=(e&&e[q]).A;return _(n,t),j(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!U&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=y("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);t.b=ne},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=r.createContext(!1),i=function(e){var t=e.children,n=e.disabled,i=r.useContext(o);return r.createElement(o.Provider,{value:null!==n&&void 0!==n?n:i},t)};t.b=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(4),o=n(7),i=n.n(o),a=n(50);Object(a.a)("warning","error","");function s(e,t,n){return i()(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(e,"-status-success"),"success"===t),"".concat(e,"-status-warning"),"warning"===t),"".concat(e,"-status-error"),"error"===t),"".concat(e,"-status-validating"),"validating"===t),"".concat(e,"-has-feedback"),n))}var c=function(e,t){return t||e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(50),o=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},a=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},s={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:o,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500},c=(Object(r.a)("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),l=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.a=s},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return $n(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function b(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=p(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],w=!1;function k(e,t){var n,r,o,i=y.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)l(o=t[r=y[n]])||(e[r]=o);return e}function _(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function O(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,a,c=[],l=arguments.length;for(i=0;i<l;i++){if(o="","object"===typeof arguments[i]){for(a in o+="\n["+i+"] ",arguments[0])s(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];c.push(o)}x(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,j={};function S(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(x(t),j[e]=!0)}function P(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)s(e,n)&&(P(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var M={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r}function I(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},F={};function V(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(D);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=B(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=P(r[o])?r[o].call(t,e):r[o];return i}}function W(e,t){return e.isValid()?(t=U(t,e.localeData()),z[t]=z[t]||H(t),z[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var K={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function $(){return this._invalidDate}var G="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Z(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ie(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var ae,se=/\d/,ce=/\d\d/,le=/\d{3}/,ue=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,he=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,be=/[+-]?\d{1,6}/,ve=/\d+/,ye=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,_e=/[+-]?\d+(\.\d{1,3})?/,Oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xe=/^[1-9]\d?/,Ce=/^([1-9]\d|\d)/;function Ee(e,t,n){ae[e]=P(t)?t:function(e,r){return e&&n?n:t}}function je(e,t){return s(ae,e)?ae[e](t._strict,t._locale):new RegExp(Se(e))}function Se(e){return Pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Te(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ne(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Te(t)),n}ae={};var Ae={};function Me(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),u(t)&&(o=function(e,n){n[t]=Ne(e)}),r=e.length,n=0;n<r;n++)Ae[e[n]]=o}function Re(e,t){Me(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Ie(e,t,n){null!=t&&s(Ae,e)&&Ae[e](t,n._a,n,e)}function De(e){return e%4===0&&e%100!==0||e%400===0}var Le=0,ze=1,Fe=2,Ve=3,Be=4,He=5,We=6,Ue=7,Ke=8;function Ye(e){return De(e)?366:365}V("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),Ee("Y",ye),Ee("YY",fe,ce),Ee("YYYY",ge,ue),Ee("YYYYY",be,de),Ee("YYYYYY",be,de),Me(["YYYYY","YYYYYY"],Le),Me("YYYY",(function(e,t){t[Le]=2===e.length?r.parseTwoDigitYear(e):Ne(e)})),Me("YY",(function(e,t){t[Le]=r.parseTwoDigitYear(e)})),Me("Y",(function(e,t){t[Le]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ne(e)+(Ne(e)>68?1900:2e3)};var qe,$e=Qe("FullYear",!0);function Ge(){return De(this.year())}function Qe(e,t){return function(n){return null!=n?(Je(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Je(e,t,n){var r,o,i,a,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=29!==(s=e.date())||1!==a||De(i)?s:28,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function Ze(e){return P(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"===typeof e){var n,r=ie(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(P(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?De(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),V("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ee("M",fe,xe),Ee("MM",fe,ce),Ee("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ee("MMMM",(function(e,t){return t.monthsRegex(e)})),Me(["M","MM"],(function(e,t){t[ze]=Ne(e)-1})),Me(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ze]=o:g(n).invalidMonth=e}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Oe,st=Oe;function ct(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function lt(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))||-1!==(o=qe.call(this._longMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))||-1!==(o=qe.call(this._shortMonthsParse,a))?o:null}function dt(e,t,n){var r,o,i;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=Ne(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function ht(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function pt(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,r,o,i=[],a=[],s=[];for(t=0;t<12;t++)n=p([2e3,t]),r=Pe(this.monthsShort(n,"")),o=Pe(this.months(n,"")),i.push(r),a.push(o),s.push(o),s.push(r);i.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function vt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function yt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+yt(e,0,r).getUTCDay()-t)%7+r-1}function kt(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?a=Ye(i=e-1)+s:s>Ye(e)?(i=e+1,a=s-Ye(e)):(i=e,a=s),{year:i,dayOfYear:a}}function _t(e,t,n){var r,o,i=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ot(o=e.year()-1,t,n):a>Ot(e.year(),t,n)?(r=a-Ot(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ot(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(Ye(e)-r+o)/7}function xt(e){return _t(e,this._week.dow,this._week.doy).week}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,xe),Ee("ww",fe,ce),Ee("W",fe,xe),Ee("WW",fe,ce),Re(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ne(e)}));var Ct={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function St(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pt(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Nt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("d",0,"do","day"),V("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),V("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),V("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ee("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ee("dddd",(function(e,t){return t.weekdaysRegex(e)})),Re(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e})),Re(["d","e","E"],(function(e,t,n,r){t[r]=Ne(e)}));var Mt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dt=Oe,Lt=Oe,zt=Oe;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?At(n,this._week.dow):e?n[e.day()]:n}function Vt(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null}function Wt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Kt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Nt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Dt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Pe(this.weekdaysMin(n,"")),o=Pe(this.weekdaysShort(n,"")),i=Pe(this.weekdays(n,"")),a.push(r),s.push(o),c.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Zt(e,t){V(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Xt),V("k",["kk",2],0,Jt),V("hmm",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Zt("a",!0),Zt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,Ce),Ee("h",fe,xe),Ee("k",fe,xe),Ee("HH",fe,ce),Ee("hh",fe,ce),Ee("kk",fe,ce),Ee("hmm",he),Ee("hmmss",pe),Ee("Hmm",he),Ee("Hmmss",pe),Me(["H","HH"],Ve),Me(["k","kk"],(function(e,t,n){var r=Ne(e);t[Ve]=24===r?0:r})),Me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Me(["h","hh"],(function(e,t,n){t[Ve]=Ne(e),g(n).bigHour=!0})),Me("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=Ne(e.substr(0,r)),t[Be]=Ne(e.substr(r)),g(n).bigHour=!0})),Me("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ve]=Ne(e.substr(0,r)),t[Be]=Ne(e.substr(r,2)),t[He]=Ne(e.substr(o)),g(n).bigHour=!0})),Me("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=Ne(e.substr(0,r)),t[Be]=Ne(e.substr(r))})),Me("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ve]=Ne(e.substr(0,r)),t[Be]=Ne(e.substr(r,2)),t[He]=Ne(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:M,longDateFormat:K,invalidDate:q,ordinal:G,dayOfMonthOrdinalParse:Q,relativeTime:J,months:rt,monthsShort:ot,week:Ct,weekdays:Mt,weekdaysMin:It,weekdaysShort:Rt,meridiemParse:nn},cn={},ln={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=pn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(o,n)>=t-1)break;t--}i++}return an}function hn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function pn(t){var n=null;if(void 0===cn[t]&&"undefined"!==typeof e&&e&&e.exports&&hn(t))try{n=an._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),mn(n)}catch(r){cn[t]=null}return cn[t]}function mn(e,t){var n;return e&&((n=l(t)?vn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=cn[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new A(N(r,t)),ln[e]&&ln[e].forEach((function(e){gn(e.name,e.config)})),mn(e),cn[e]}return delete cn[e],null}function bn(e,t){if(null!=t){var n,r,o=sn;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(N(cn[e]._config,t)):(null!=(r=pn(e))&&(o=r._config),t=N(o,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=cn[e],cn[e]=n),mn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===mn()&&mn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=pn(e))return t;e=[e]}return fn(e)}function yn(){return E(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[ze]<0||n[ze]>11?ze:n[Fe]<1||n[Fe]>nt(n[Le],n[ze])?Fe:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Be]||0!==n[He]||0!==n[We])?Ve:n[Be]<0||n[Be]>59?Be:n[He]<0||n[He]>59?He:n[We]<0||n[We]>999?We:-1,g(e)._overflowDayOfYear&&(t<Le||t>Fe)&&(t=Fe),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Cn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(e){var t,n,r,o,i,a,s=e._i,c=kn.exec(s)||_n.exec(s),l=xn.length,u=Cn.length;if(c){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(xn[t][1].exec(c[1])){o=xn[t][0],r=!1!==xn[t][2];break}if(null==o)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(Cn[t][1].exec(c[3])){i=(c[2]||" ")+Cn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(c[4]){if(!On.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Bn(e)}else e._isValid=!1}function Tn(e,t,n,r,o,i){var a=[Nn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Nn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mn(e,t,n){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(e,t,n){if(e)return Sn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function In(e){var t,n=jn.exec(An(e._i));if(n){if(t=Tn(n[4],n[3],n[2],n[5],n[6],n[7]),!Mn(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Dn(e){var t=En.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ln(e,t,n){return null!=e?e:null!=t?t:n}function zn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,o,i,a=[];if(!e._d){for(r=zn(e),e._w&&null==e._a[Fe]&&null==e._a[ze]&&Vn(e),null!=e._dayOfYear&&(i=Ln(e._a[Le],r[Le]),(e._dayOfYear>Ye(i)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=yt(i,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[Be]&&0===e._a[He]&&0===e._a[We]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?yt:vt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function Vn(e){var t,n,r,o,i,a,s,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Ln(t.GG,e._a[Le],_t(Gn(),1,4).year),r=Ln(t.W,1),((o=Ln(t.E,1))<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=_t(Gn(),i,a),n=Ln(t.gg,e._a[Le],l.year),r=Ln(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(c=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>Ot(n,i,a)?g(e)._overflowWeeks=!0:null!=c?g(e)._overflowWeekday=!0:(s=kt(n,r,o,i,a),e._a[Le]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,i,a,s,c,l=""+e._i,u=l.length,d=0;for(c=(o=U(e._f,e._locale).match(D)||[]).length,t=0;t<c;t++)i=o[t],(n=(l.match(je(i,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&g(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),F[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),Ie(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=u-d,l.length>0&&g(e).unusedInput.push(l),e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Ve]=Hn(e._locale,e._a[Ve],e._meridiem),null!==(s=g(e).era)&&(e._a[Le]=e._locale.erasConvertYear(s,e._a[Le])),Fn(e),wn(e)}else In(e);else Pn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,o,i,a,s=!1,c=e._f.length;if(0===c)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<c;o++)i=0,a=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Bn(t),b(t)&&(a=!0),i+=g(t).charsLeftOver,i+=10*g(t).unusedTokens.length,g(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));h(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Kn(e){var t=new _(wn(Yn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),O(t)?new _(wn(t)):(d(t)?e._d=t:i(n)?Wn(e):n?Bn(e):qn(e),b(e)||(e._d=null),e))}function qn(e){var t=e._i;l(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Dn(e):i(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):a(t)?Un(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function $n(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&c(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Kn(s)}function Gn(e,t,n,r){return $n(e,t,n,r,!1)}r.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Xn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Jn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Zn(){return Jn("isBefore",[].slice.call(arguments,0))}function er(){return Jn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Ne(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ir(){return Sr(NaN)}function ar(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ar}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function lr(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Ne(e[r])!==Ne(t[r]))&&a++;return a+i}function ur(e,t){V(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Ee("Z",ke),Ee("ZZ",ke),Me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(ke,e)}));var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Ne(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(O(e)||d(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Gn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=pr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Mr(this,Sr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:pr(this)}function gr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=Yn(t))._a?(e=t._isUTC?p(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Or(){return!!this.isValid()&&!this._isUTC}function xr(){return!!this.isValid()&&this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sr(e,t){var n,r,o,i=e,a=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Er.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:Ne(a[Fe])*n,h:Ne(a[Ve])*n,m:Ne(a[Be])*n,s:Ne(a[He])*n,ms:Ne(cr(1e3*a[We]))*n}):(a=jr.exec(e))?(n="-"===a[1]?-1:1,i={y:Pr(a[2],n),M:Pr(a[3],n),w:Pr(a[4],n),d:Pr(a[5],n),h:Pr(a[6],n),m:Pr(a[7],n),s:Pr(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Nr(Gn(i.from),Gn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ar(i),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Tr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Nr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Tr(e,t):((n=Tr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Mr(this,Sr(n,r),e),this}}function Mr(e,t,n,o){var i=t._milliseconds,a=cr(t._days),s=cr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Xe(e,"Month")+s*n),a&&Je(e,"Date",Xe(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}Sr.fn=ar.prototype,Sr.invalid=ir;var Rr=Ar(1,"add"),Ir=Ar(-1,"subtract");function Dr(e){return"string"===typeof e||e instanceof String}function Lr(e){return O(e)||d(e)||Dr(e)||u(e)||Fr(e)||zr(e)||null===e||void 0===e}function zr(e){var t,n,r=a(e)&&!c(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=i.length;for(t=0;t<l;t+=1)n=i[t],o=o||s(e,n);return r&&o}function Fr(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Dr(e)})).length),t&&n}function Vr(e){var t,n,r=a(e)&&!c(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],o=o||s(e,n);return r&&o}function Br(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Lr(arguments[0])?(e=arguments[0],t=void 0):Vr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),o=hr(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Gn(n)))}function Wr(){return new _(this)}function Ur(e,t){var n=O(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Kr(e,t){var n=O(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Yr(e,t,n,r){var o=O(e)?e:Gn(e),i=O(t)?t:Gn(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function qr(e,t){var n,r=O(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function $r(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":i=Xr(this,r)/12;break;case"month":i=Xr(this,r);break;case"quarter":i=Xr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Te(i)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(O(e)&&e.isValid()||Gn(e).isValid())?Sr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Gn(),e)}function oo(e,t){return this.isValid()&&(O(e)&&e.isValid()||Gn(e).isValid())?Sr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function io(e){return this.to(Gn(),e)}function ao(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function co(){return this._locale}var lo=1e3,uo=60*lo,fo=60*uo,ho=3506328*fo;function po(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ho:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ho:Date.UTC(e,t,n)}function bo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=po(t+(this._isUTC?0:this.utcOffset()*uo),fo);break;case"minute":t=this._d.valueOf(),t-=po(t,uo);break;case"second":t=this._d.valueOf(),t-=po(t,lo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-po(t+(this._isUTC?0:this.utcOffset()*uo),fo)-1;break;case"minute":t=this._d.valueOf(),t+=uo-po(t,uo)-1;break;case"second":t=this._d.valueOf(),t+=lo-po(t,lo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function ko(){return new Date(this.valueOf())}function _o(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Oo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xo(){return this.isValid()?this.toISOString():null}function Co(){return b(this)}function Eo(){return h({},g(this))}function jo(){return g(this).overflow}function So(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Po(e,t){var n,o,i,a=this._eras||vn("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"===typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a}function To(e,t,n){var r,o,i,a,s,c=this.eras();for(e=e.toUpperCase(),r=0,o=c.length;r<o;++r)if(i=c[r].name.toUpperCase(),a=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return c[r];break;case"NNNN":if(i===e)return c[r];break;case"NNNNN":if(s===e)return c[r]}else if([i,a,s].indexOf(e)>=0)return c[r]}function No(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ao(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ro(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Io(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function Do(e){return s(this,"_erasNameRegex")||Wo.call(this),e?this._erasNameRegex:this._erasRegex}function Lo(e){return s(this,"_erasAbbrRegex")||Wo.call(this),e?this._erasAbbrRegex:this._erasRegex}function zo(e){return s(this,"_erasNarrowRegex")||Wo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fo(e,t){return t.erasAbbrRegex(e)}function Vo(e,t){return t.erasNameRegex(e)}function Bo(e,t){return t.erasNarrowRegex(e)}function Ho(e,t){return t._eraYearOrdinalRegex||ve}function Wo(){var e,t,n,r,o,i=[],a=[],s=[],c=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=Pe(l[e].name),r=Pe(l[e].abbr),o=Pe(l[e].narrow),a.push(n),i.push(r),s.push(o),c.push(n),c.push(r),c.push(o);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){V(0,[e,e.length],0,t)}function Ko(e){return Xo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return Ot(this.year(),1,4)}function $o(){return Ot(this.isoWeekYear(),1,4)}function Go(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return Ot(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var i;return null==e?_t(this,r,o).year:(t>(i=Ot(e,r,o))&&(t=i),Jo.call(this,e,t,n,r,o))}function Jo(e,t,n,r,o){var i=kt(e,t,n,r,o),a=yt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}V("N",0,0,"eraAbbr"),V("NN",0,0,"eraAbbr"),V("NNN",0,0,"eraAbbr"),V("NNNN",0,0,"eraName"),V("NNNNN",0,0,"eraNarrow"),V("y",["y",1],"yo","eraYear"),V("y",["yy",2],0,"eraYear"),V("y",["yyy",3],0,"eraYear"),V("y",["yyyy",4],0,"eraYear"),Ee("N",Fo),Ee("NN",Fo),Ee("NNN",Fo),Ee("NNNN",Vo),Ee("NNNNN",Bo),Me(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e})),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Ho),Me(["y","yy","yyy","yyyy"],Le),Me(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Le]=n._locale.eraYearOrdinalParse(e,o):t[Le]=parseInt(e,10)})),V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",ye),Ee("g",ye),Ee("GG",fe,ce),Ee("gg",fe,ce),Ee("GGGG",ge,ue),Ee("gggg",ge,ue),Ee("GGGGG",be,de),Ee("ggggg",be,de),Re(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ne(e)})),Re(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),Ee("Q",se),Me("Q",(function(e,t){t[ze]=3*(Ne(e)-1)})),V("D",["DD",2],"Do","date"),Ee("D",fe,xe),Ee("DD",fe,ce),Ee("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Me(["D","DD"],Fe),Me("Do",(function(e,t){t[Fe]=Ne(e.match(fe)[0])}));var ei=Qe("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}V("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",le),Me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ne(e)})),V("m",["mm",2],0,"minute"),Ee("m",fe,Ce),Ee("mm",fe,ce),Me(["m","mm"],Be);var ni=Qe("Minutes",!1);V("s",["ss",2],0,"second"),Ee("s",fe,Ce),Ee("ss",fe,ce),Me(["s","ss"],He);var ri,oi,ii=Qe("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ee("S",me,se),Ee("SS",me,ce),Ee("SSS",me,le),ri="SSSS";ri.length<=9;ri+="S")Ee(ri,ve);function ai(e,t){t[We]=Ne(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Me(ri,ai);function si(){return this._isUTC?"UTC":""}function ci(){return this._isUTC?"Coordinated Universal Time":""}oi=Qe("Milliseconds",!1),V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var li=_.prototype;function ui(e){return Gn(1e3*e)}function di(){return Gn.apply(null,arguments).parseZone()}function fi(e){return e}li.add=Rr,li.calendar=Hr,li.clone=Wr,li.diff=Qr,li.endOf=vo,li.format=to,li.from=no,li.fromNow=ro,li.to=oo,li.toNow=io,li.get=Ze,li.invalidAt=jo,li.isAfter=Ur,li.isBefore=Kr,li.isBetween=Yr,li.isSame=qr,li.isSameOrAfter=$r,li.isSameOrBefore=Gr,li.isValid=Co,li.lang=so,li.locale=ao,li.localeData=co,li.max=Xn,li.min=Qn,li.parsingFlags=Eo,li.set=et,li.startOf=bo,li.subtract=Ir,li.toArray=_o,li.toObject=Oo,li.toDate=ko,li.toISOString=Zr,li.inspect=eo,"undefined"!==typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=xo,li.toString=Jr,li.unix=wo,li.valueOf=yo,li.creationData=So,li.eraName=Ao,li.eraNarrow=Mo,li.eraAbbr=Ro,li.eraYear=Io,li.year=$e,li.isLeapYear=Ge,li.weekYear=Ko,li.isoWeekYear=Yo,li.quarter=li.quarters=Zo,li.month=ht,li.daysInMonth=pt,li.week=li.weeks=St,li.isoWeek=li.isoWeeks=Pt,li.weeksInYear=Go,li.weeksInWeekYear=Qo,li.isoWeeksInYear=qo,li.isoWeeksInISOWeekYear=$o,li.date=ei,li.day=li.days=Ut,li.weekday=Kt,li.isoWeekday=Yt,li.dayOfYear=ti,li.hour=li.hours=rn,li.minute=li.minutes=ni,li.second=li.seconds=ii,li.millisecond=li.milliseconds=oi,li.utcOffset=mr,li.utc=br,li.local=vr,li.parseZone=yr,li.hasAlignedHourOffset=wr,li.isDST=kr,li.isLocal=Or,li.isUtcOffset=xr,li.isUtc=Cr,li.isUTC=Cr,li.zoneAbbr=si,li.zoneName=ci,li.dates=C("dates accessor is deprecated. Use date instead.",ei),li.months=C("months accessor is deprecated. Use month instead",ht),li.years=C("years accessor is deprecated. Use year instead",$e),li.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),li.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var hi=A.prototype;function pi(e,t,n,r){var o=vn(),i=p().set(r,t);return o[n](i,e)}function mi(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=pi(e,r,n,"month");return o}function gi(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=vn(),a=e?i._week.dow:0,s=[];if(null!=n)return pi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=pi(t,(o+a)%7,r,"day");return s}function bi(e,t){return mi(e,t,"months")}function vi(e,t){return mi(e,t,"monthsShort")}function yi(e,t,n){return gi(e,t,n,"weekdays")}function wi(e,t,n){return gi(e,t,n,"weekdaysShort")}function ki(e,t,n){return gi(e,t,n,"weekdaysMin")}hi.calendar=R,hi.longDateFormat=Y,hi.invalidDate=$,hi.ordinal=X,hi.preparse=fi,hi.postformat=fi,hi.relativeTime=Z,hi.pastFuture=ee,hi.set=T,hi.eras=Po,hi.erasParse=To,hi.erasConvertYear=No,hi.erasAbbrRegex=Lo,hi.erasNameRegex=Do,hi.erasNarrowRegex=zo,hi.months=ct,hi.monthsShort=lt,hi.monthsParse=dt,hi.monthsRegex=gt,hi.monthsShortRegex=mt,hi.week=xt,hi.firstDayOfYear=jt,hi.firstDayOfWeek=Et,hi.weekdays=Ft,hi.weekdaysMin=Bt,hi.weekdaysShort=Vt,hi.weekdaysParse=Wt,hi.weekdaysRegex=qt,hi.weekdaysShortRegex=$t,hi.weekdaysMinRegex=Gt,hi.isPM=tn,hi.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ne(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",vn);var _i=Math.abs;function Oi(){var e=this._data;return this._milliseconds=_i(this._milliseconds),this._days=_i(this._days),this._months=_i(this._months),e.milliseconds=_i(e.milliseconds),e.seconds=_i(e.seconds),e.minutes=_i(e.minutes),e.hours=_i(e.hours),e.months=_i(e.months),e.years=_i(e.years),this}function xi(e,t,n,r){var o=Sr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Ci(e,t){return xi(this,e,t,1)}function Ei(e,t){return xi(this,e,t,-1)}function ji(e){return e<0?Math.floor(e):Math.ceil(e)}function Si(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,c=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*ji(Ti(s)+a),a=0,s=0),c.milliseconds=i%1e3,e=Te(i/1e3),c.seconds=e%60,t=Te(e/60),c.minutes=t%60,n=Te(t/60),c.hours=n%24,a+=Te(n/24),s+=o=Te(Pi(a)),a-=ji(Ti(o)),r=Te(s/12),s%=12,c.days=a,c.months=s,c.years=r,this}function Pi(e){return 4800*e/146097}function Ti(e){return 146097*e/4800}function Ni(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ti(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ai(e){return function(){return this.as(e)}}var Mi=Ai("ms"),Ri=Ai("s"),Ii=Ai("m"),Di=Ai("h"),Li=Ai("d"),zi=Ai("w"),Fi=Ai("M"),Vi=Ai("Q"),Bi=Ai("y"),Hi=Mi;function Wi(){return Sr(this)}function Ui(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Ki(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yi=Ki("milliseconds"),qi=Ki("seconds"),$i=Ki("minutes"),Gi=Ki("hours"),Qi=Ki("days"),Xi=Ki("months"),Ji=Ki("years");function Zi(){return Te(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var o=Sr(e).abs(),i=ea(o.as("s")),a=ea(o.as("m")),s=ea(o.as("h")),c=ea(o.as("d")),l=ea(o.as("M")),u=ea(o.as("w")),d=ea(o.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function oa(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function ia(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ra(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function ca(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,c=sa(this._milliseconds)/1e3,l=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=Te(c/60),t=Te(e/60),c%=60,e%=60,n=Te(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=ca(this._months)!==ca(d)?"-":"",a=ca(this._days)!==ca(d)?"-":"",s=ca(this._milliseconds)!==ca(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?a+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=or,ua.abs=Oi,ua.add=Ci,ua.subtract=Ei,ua.as=Ni,ua.asMilliseconds=Mi,ua.asSeconds=Ri,ua.asMinutes=Ii,ua.asHours=Di,ua.asDays=Li,ua.asWeeks=zi,ua.asMonths=Fi,ua.asQuarters=Vi,ua.asYears=Bi,ua.valueOf=Hi,ua._bubble=Si,ua.clone=Wi,ua.get=Ui,ua.milliseconds=Yi,ua.seconds=qi,ua.minutes=$i,ua.hours=Gi,ua.days=Qi,ua.weeks=Zi,ua.months=Xi,ua.years=Ji,ua.humanize=aa,ua.toISOString=la,ua.toString=la,ua.toJSON=la,ua.locale=ao,ua.localeData=co,ua.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),ua.lang=so,V("X",0,0,"unix"),V("x",0,0,"valueOf"),Ee("x",ye),Ee("X",_e),Me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Me("x",(function(e,t,n){n._d=new Date(Ne(e))})),r.version="2.30.1",o(Gn),r.fn=li,r.min=Zn,r.max=er,r.now=tr,r.utc=p,r.unix=ui,r.months=bi,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Sr,r.isMoment=O,r.weekdays=yi,r.parseZone=di,r.localeData=vn,r.isDuration=sr,r.monthsShort=vi,r.weekdaysMin=ki,r.defineLocale=gn,r.updateLocale=bn,r.locales=yn,r.weekdaysShort=wi,r.normalizeUnits=ne,r.relativeTimeRounding=oa,r.relativeTimeThreshold=ia,r.calendarFormat=Br,r.prototype=li,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(212)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(175);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(3),o=n(1),i=n(51),a=(n(17),n(5)),s=n(10),c=n(97),l=n(28),u=o.createContext(null);var d=n(178),f=new Map;var h=new d.a((function(e){e.forEach((function(e){var t,n=e.target;null===(t=f.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(27),m=n(25),g=n(37),b=n(38),v=function(e){Object(g.a)(n,e);var t=Object(b.a)(n);function n(){return Object(p.a)(this,n),t.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function y(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),p=o.useContext(u),m="function"===typeof n,g=m?n(i):n,b=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&o.isValidElement(g)&&Object(l.c)(g),w=y?g.ref:null,k=Object(l.d)(w,i),_=function(){var e;return Object(c.a)(i.current)||(i.current&&"object"===Object(s.a)(i.current)?Object(c.a)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Object(c.a)(d.current)};o.useImperativeHandle(t,(function(){return _()}));var O=o.useRef(e);O.current=e;var x=o.useCallback((function(e){var t=O.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,c=e.offsetWidth,l=e.offsetHeight,u=Math.floor(i),d=Math.floor(s);if(b.current.width!==u||b.current.height!==d||b.current.offsetWidth!==c||b.current.offsetHeight!==l){var f={width:u,height:d,offsetWidth:c,offsetHeight:l};b.current=f;var h=c===Math.round(i)?i:c,m=l===Math.round(s)?s:l,g=Object(a.a)(Object(a.a)({},f),{},{offsetWidth:h,offsetHeight:m});null===p||void 0===p||p(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o.useEffect((function(){var e,t,n=_();return n&&!r&&(e=n,t=x,f.has(e)||(f.set(e,new Set),h.observe(e)),f.get(e).add(t)),function(){return function(e,t){f.has(e)&&(f.get(e).delete(t),f.get(e).size||(h.unobserve(e),f.delete(e)))}(n,x)}}),[i.current,r]),o.createElement(v,{ref:d},y?o.cloneElement(g,{ref:k}):g)}var w=o.forwardRef(y);function k(e,t){var n=e.children;return("function"===typeof n?[n]:Object(i.a)(n)).map((function(n,i){var a=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(w,Object(r.a)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var _=o.forwardRef(k);_.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:s},t)};t.a=_},function(e,t,n){"use strict";function r(e,t){return e[t]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(3),o=n(1),i=o.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}}),a=i.Consumer;function s(e){return function(t){var n=t.constructor;n&&n.displayName||t.name;return function(n){return o.createElement(a,null,(function(i){var a=e.prefixCls,s=(0,i.getPrefixCls)(a,n.prefixCls);return o.createElement(t,Object(r.a)({},i,n,{prefixCls:s}))}))}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(3),o=n(1),i=n(149),a=n(81).a,s=(t.a=function(e){var t=e.componentName,n=void 0===t?"global":t,s=e.defaultLocale,c=e.children,l=o.useContext(i.a);return c(o.useMemo((function(){var e,t=s||a[n],o=null!==(e=null===l||void 0===l?void 0:l[n])&&void 0!==e?e:{};return Object(r.a)(Object(r.a)({},t instanceof Function?t():t),o||{})}),[n,s,l]),o.useMemo((function(){var e=l&&l.locale;return l&&l.exist&&!e?a.locale:e}),[l]),l)},function(e,t){var n=o.useContext(i.a);return[o.useMemo((function(){var o,i=t||a[e],s=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:{};return Object(r.a)(Object(r.a)({},"function"===typeof i?i():i),s||{})}),[e,t,n])]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return $})),n.d(t,"b",(function(){return ge})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return ve})),n.d(t,"e",(function(){return be})),n.d(t,"f",(function(){return h}));var r=n(3),o=n(122),i=(n(108),n(25)),a=n(63),s=n(13),c=n(56),l={}.constructor;function u(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(u);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=u(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=u(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},h=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=f(e[n]," ");else t=f(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function p(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function m(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function g(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=p(n),c=s.linebreak,l=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var g=d[f];null!=g&&(r&&(r+=c),r+=m(f+":"+l+h(g)+";",i))}}else for(var b in a){var v=a[b];null!=v&&(r&&(r+=c),r+=m(b+":"+l+h(v)+";",i))}for(var y in t){var w=t[y];null!=w&&"fallbacks"!==y&&(r&&(r+=c),r+=m(y+":"+l+h(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+c+r+c),m(""+e+l+"{"+r,--i)+m("}",i)):r}var b=/([[\].#*$><+~=|^:(),"'`\s])/g,v="undefined"!==typeof CSS&&CSS.escape,y=function(e){return v?v(e):e.replace(b,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var c=this.options.sheet;return c&&c.attached,this},e}(),k=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,c=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Object(s.a)(Object(s.a)(o)),c),o.selectorText="."+y(o.id)),o}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=h(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},Object(i.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(w),_={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new k(e,t,n)}},O={indent:1,children:!0},x=/@([\w-]+)/,C=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(x);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $(Object(r.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=O);var t=p(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),E=/@container|@media|@supports\s+/,j={onCreateRule:function(e,t,n){return E.test(e)?new C(e,t,n):null}},S={indent:1,children:!0},P=/@keyframes\s+([\w-]+)/,T=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(P);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===i?this.name:y(s(this,a)),this.rules=new $(Object(r.a)({},n,{parent:this})),t)this.rules.add(c,t[c],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=S);var t=p(e).linebreak;if(null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),N=/@keyframes\s+/,A=/\$([\w-]+)/g,M=function(e,t){return"string"===typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},R=function(e,t,n){var r=e[t],o=M(r,n);o!==r&&(e[t]=o)},I={onCreateRule:function(e,t,n){return"string"===typeof e&&N.test(e)?new T(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&R(e,"animation-name",n.keyframes),"animation"in e&&R(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return M(e,r.keyframes);default:return e}}},D=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return g(this.key,this.style,n)},t}(w),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new D(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=p(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=g(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return g(this.at,this.style,e)},e}(),F=/@font-face/,V={onCreateRule:function(e,t,n){return F.test(e)?new z(e,t,n):null}},B=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return g(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new B(e,t,n):null}},W=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),U={"@charset":!0,"@import":!0,"@namespace":!0},K=[_,j,I,L,V,H,{onCreateRule:function(e,t,n){return e in U?new W(e,t,n):null}}],Y={process:!0},q={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,c=o.Renderer,l=o.generateId,u=o.scoped,f=Object(r.a)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:c,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),h=e;e in this.raw&&(h=e+"-d"+this.counter++),this.raw[h]=t,h in this.classes&&(f.selector="."+y(this.classes[h]));var p=d(h,t,f);if(!p)return null;this.register(p);var m=void 0===f.index?this.index.length:f.index;return this.index.splice(m,0,p),p},t.replace=function(e,t,n){var o=this.get(e),i=this.index.indexOf(o);o&&this.remove(o);var a=n;return-1!==i&&(a=Object(r.a)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof k?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof T&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof k?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof T&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Y);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var c in i.onProcessStyle(t.style,t,a),t.style){var l=t.style[c];l!==s[c]&&t.prop(c,l,q)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=p(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),G=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(r.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Q=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),X=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(c.a)(t,["attached"]),o=p(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Object(i.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),J=new X,Z="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==Z[ee]&&(Z[ee]=0);var te=Z[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+te+o+t:i+n.key+"-"+te+(o?"-"+o:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=h(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ce=re((function(){return document.querySelector("head")}));function le(e){var t=J.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var ue=re((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),de=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},fe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},he=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&J.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=ue();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=le(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=fe(n,t);if(!1===(o=de(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=fe(n,t),c=de(n,a,s);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof G&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,me=function(){function e(e){this.id=pe++,this.version="10.10.0",this.plugins=new Q,this.options={id:{minify:!1},createGenerateId:ne,Renderer:o.a?he:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<K.length;t++)this.plugins.use(K[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(r.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===J.index?0:J.index+1);var o=new G(e,Object(r.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),J.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var o=Object(r.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=d(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),ge=function(e){return new me(e)},be="object"===typeof CSS&&null!=CSS&&"number"in CSS;function ve(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=ve(r);i&&(t||(t={}),t[n]=i)}}return t}ge()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(5),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),i="aria-",a="data-";function s(e,t){return 0===e.indexOf(t)}function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var c={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||s(n,i))||t.data&&s(n,a)||t.attr&&o.includes(n))&&(c[n]=e[n])})),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(6),o=n(1);function i(e){var t=o.useRef(!1),n=o.useState(e),i=Object(r.a)(n,2),a=i[0],s=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||s(e)}]}},function(e,t,n){"use strict";var r=n(138);t.a=r.b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(10),o=n(5),i=n(9),a=n(131),s=n(103);function c(e,t,n,r){if(!t.length)return n;var s,l=Object(a.a)(t),u=l[0],d=l.slice(1);return s=e||"number"!==typeof u?Array.isArray(e)?Object(i.a)(e):Object(o.a)({},e):[],r&&void 0===n&&1===d.length?delete s[u][d[0]]:s[u]=c(s[u],d,n,r),s}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Object(s.a)(e,t.slice(0,-1))?e:c(e,t,n,r)}function u(e){return Array.isArray(e)?[]:{}}var d="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=u(t[0]);return t.forEach((function(e){!function t(n,a){var c,f=new Set(a),h=Object(s.a)(e,n),p=Array.isArray(h);if(p||(c=h,"object"===Object(r.a)(c)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype)){if(!f.has(h)){f.add(h);var m=Object(s.a)(o,n);p?o=l(o,n,[]):m&&"object"===Object(r.a)(m)||(o=l(o,n,u(h))),d(h).forEach((function(e){t([].concat(Object(i.a)(n),[e]),f)}))}}else o=l(o,n,h)}([])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(222),o=(n(1),n(111));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return $})),n.d(t,"d",(function(){return G})),n.d(t,"g",(function(){return ne})),n.d(t,"c",(function(){return oe})),n.d(t,"b",(function(){return k})),n.d(t,"e",(function(){return _})),n.d(t,"h",(function(){return ue}));var r=n(1),o=n(3),i=n(8),a=n(53),s=n(88),c=n(5),l=n(9),u=n(27),d=n(25),f=n(13),h=n(37),p=n(38),m=n(4),g=n(51),b=n(91),v=n(17),y="RC_FORM_INTERNAL_HOOKS",w=function(){Object(v.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},k=r.createContext({getFieldValue:w,getFieldsValue:w,getFieldError:w,getFieldWarning:w,getFieldsError:w,isFieldsTouched:w,isFieldTouched:w,isFieldValidating:w,isFieldsValidating:w,resetFields:w,setFields:w,setFieldValue:w,setFieldsValue:w,validateFields:w,submit:w,getInternalHooks:function(){return w(),{dispatch:w,initEntityValue:w,registerField:w,useSubscribe:w,setInitialValues:w,destroyForm:w,setCallbacks:w,registerWatch:w,getFields:w,setValidateMessages:w,setPreserve:w,getInitialValue:w}}}),_=r.createContext(null);function O(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}var x=n(255),C="'${name}' is not a valid ${type}",E={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},j=n(74),S=x.a;function P(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var T="CODE_LOGIC_ERROR";function N(e,t,n,r,o){return A.apply(this,arguments)}function A(){return A=Object(s.a)(Object(a.a)().mark((function e(t,n,o,i,s){var u,d,f,h,p,g,b,v,y;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(u=Object(c.a)({},o)).ruleIndex,S.warning=function(){},u.validator&&(d=u.validator,u.validator=function(){try{return d.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(T)}}),f=null,u&&"array"===u.type&&u.defaultField&&(f=u.defaultField,delete u.defaultField),h=new S(Object(m.a)({},t,[u])),p=Object(j.b)(E,i.validateMessages),h.messages(p),g=[],e.prev=10,e.next=13,Promise.resolve(h.validate(Object(m.a)({},t,n),Object(c.a)({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(g=e.t0.errors.map((function(e,t){var n=e.message,o=n===T?p.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(g.length||!f){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return N("".concat(t,".").concat(n),e,f,i,s)})));case 21:return b=e.sent,e.abrupt("return",b.reduce((function(e,t){return[].concat(Object(l.a)(e),Object(l.a)(t))}),[]));case 23:return v=Object(c.a)(Object(c.a)({},o),{},{name:t,enum:(o.enum||[]).join(", ")},s),y=g.map((function(e){return"string"===typeof e?P(e,v):e})),e.abrupt("return",y);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),A.apply(this,arguments)}function M(e,t,n,r,o,i){var l,u=e.join("."),d=n.map((function(e,t){var n=e.validator,r=Object(c.a)(Object(c.a)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Object(v.a)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"===typeof i.then&&"function"===typeof i.catch,Object(v.a)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n===!!o?r-i:n?1:-1}));if(!0===o)l=new Promise(function(){var e=Object(s.a)(Object(a.a)().mark((function e(n,o){var s,c,l;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=0;case 1:if(!(s<d.length)){e.next=12;break}return c=d[s],e.next=5,N(u,t,c,r,i);case 5:if(!(l=e.sent).length){e.next=9;break}return o([{errors:l,rule:c}]),e.abrupt("return");case 9:s+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var f=d.map((function(e){return N(u,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));l=(o?function(e){return I.apply(this,arguments)}(f):function(e){return R.apply(this,arguments)}(f)).then((function(e){return Promise.reject(e)}))}return l.catch((function(e){return e})),l}function R(){return(R=Object(s.a)(Object(a.a)().mark((function e(t){return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Object(l.a)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return(I=Object(s.a)(Object(a.a)().mark((function e(t){var n;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var D=n(10),L=n(103);function z(e){return O(e)}function F(e,t){var n={};return t.forEach((function(t){var r=Object(L.a)(e,t);n=Object(j.a)(n,t,r)})),n}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return B(t,e,n)}))}function B(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function H(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Object(D.a)(t.target)&&e in t.target?t.target[e]:t}function W(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Object(l.a)(e.slice(0,n)),[o],Object(l.a)(e.slice(n,t)),Object(l.a)(e.slice(t+1,r))):i<0?[].concat(Object(l.a)(e.slice(0,t)),Object(l.a)(e.slice(t+1,n+1)),[o],Object(l.a)(e.slice(n+1,r))):e}var U=["name"],K=[];function Y(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var q=function(e){Object(h.a)(n,e);var t=Object(p.a)(n);function n(e){var o;(Object(u.a)(this,n),o=t.call(this,e),Object(m.a)(Object(f.a)(o),"state",{resetCount:0}),Object(m.a)(Object(f.a)(o),"cancelRegisterFunc",null),Object(m.a)(Object(f.a)(o),"mounted",!1),Object(m.a)(Object(f.a)(o),"touched",!1),Object(m.a)(Object(f.a)(o),"dirty",!1),Object(m.a)(Object(f.a)(o),"validatePromise",void 0),Object(m.a)(Object(f.a)(o),"prevValidating",void 0),Object(m.a)(Object(f.a)(o),"errors",K),Object(m.a)(Object(f.a)(o),"warnings",K),Object(m.a)(Object(f.a)(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,z(r)),o.cancelRegisterFunc=null})),Object(m.a)(Object(f.a)(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat(Object(l.a)(r),Object(l.a)(t)):[]})),Object(m.a)(Object(f.a)(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(r):e}))})),Object(m.a)(Object(f.a)(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),Object(m.a)(Object(f.a)(o),"metaCache",null),Object(m.a)(Object(f.a)(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Object(c.a)(Object(c.a)({},o.getMeta()),{},{destroy:e});Object(b.a)(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),Object(m.a)(Object(f.a)(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,c=r.onReset,l=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(l),h=t&&V(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=K,o.warnings=K,o.triggerMetaEvent()),n.type){case"reset":if(!t||h)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=K,o.warnings=K,o.triggerMetaEvent(),null===c||void 0===c||c(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(o.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(o.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(o.errors=p.errors||K),"warnings"in p&&(o.warnings=p.warnings||K),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in p&&V(t,u,!0))return void o.reRender();if(i&&!u.length&&Y(i,e,l,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(z).some((function(e){return V(n.relatedFields,e)})))return void o.reRender();break;default:if(h||(!s.length||u.length||i)&&Y(i,e,l,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),Object(m.a)(Object(f.a)(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,c=r.validateOnly,u=void 0!==c&&c,d=Promise.resolve().then(Object(s.a)(Object(a.a)().mark((function r(){var s,c,u,f,h,p,m;return Object(a.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(s=o.props,c=s.validateFirst,u=void 0!==c&&c,f=s.messageVariables,h=s.validateDebounce,p=o.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||O(t).includes(i)}))),!h||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,h)}));case 8:if(o.validatePromise===d){r.next=10;break}return r.abrupt("return",[]);case 10:return(m=M(t,n,p,e,u,f)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K;if(o.validatePromise===d){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?K:o;t?r.push.apply(r,Object(l.a)(i)):n.push.apply(n,Object(l.a)(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",m);case 13:case"end":return r.stop()}}),r)}))));return u||(o.validatePromise=d,o.dirty=!0,o.errors=K,o.warnings=K,o.triggerMetaEvent(),o.reRender()),d})),Object(m.a)(Object(f.a)(o),"isFieldValidating",(function(){return!!o.validatePromise})),Object(m.a)(Object(f.a)(o),"isFieldTouched",(function(){return o.touched})),Object(m.a)(Object(f.a)(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(y).getInitialValue)(o.getNamePath())})),Object(m.a)(Object(f.a)(o),"getErrors",(function(){return o.errors})),Object(m.a)(Object(f.a)(o),"getWarnings",(function(){return o.warnings})),Object(m.a)(Object(f.a)(o),"isListField",(function(){return o.props.isListField})),Object(m.a)(Object(f.a)(o),"isList",(function(){return o.props.isList})),Object(m.a)(Object(f.a)(o),"isPreserve",(function(){return o.props.preserve})),Object(m.a)(Object(f.a)(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),Object(m.a)(Object(f.a)(o),"getOnlyChild",(function(e){if("function"===typeof e){var t=o.getMeta();return Object(c.a)(Object(c.a)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=Object(g.a)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Object(m.a)(Object(f.a)(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Object(L.a)(e||t(!0),n)})),Object(m.a)(Object(f.a)(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=void 0!==r?r:u.validateTrigger,f=o.getNamePath(),h=u.getInternalHooks,p=u.getFieldsValue,g=h(y).dispatch,b=o.getValue(),v=l||function(e){return Object(m.a)({},s,e)},w=e[n],k=Object(c.a)(Object(c.a)({},e),v(b));return k[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=i?i.apply(void 0,n):H.apply(void 0,[s].concat(n)),a&&(e=a(e,b,p(!0))),g({type:"updateValue",namePath:f,value:e}),w&&w.apply(void 0,n)},O(d||[]).forEach((function(e){var t=k[e];k[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),k})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(y).initEntityValue)(Object(f.a)(o));return o}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(y).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(Object(v.a)(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);Object(m.a)(q,"contextType",k),Object(m.a)(q,"defaultProps",{trigger:"onChange",valuePropName:"value"});var $=function(e){var t=e.name,n=Object(i.a)(e,U),a=r.useContext(k),s=r.useContext(_),c=void 0!==t?z(t):void 0,l="keep";return n.isListField||(l="_".concat((c||[]).join("_"))),r.createElement(q,Object(o.a)({key:l,name:c,isListField:!!s},n,{fieldContext:a}))};var G=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,u=r.useContext(k),d=r.useContext(_),f=r.useRef({keys:[],id:0}).current,h=r.useMemo((function(){var e=z(u.prefixName)||[];return[].concat(Object(l.a)(e),Object(l.a)(z(t)))}),[u.prefixName,t]),p=r.useMemo((function(){return Object(c.a)(Object(c.a)({},u),{},{prefixName:h})}),[u,h]),m=r.useMemo((function(){return{getKey:function(e){var t=h.length,n=e[t];return[f.keys[n],e.slice(t+1)]}}}),[h]);return"function"!==typeof o?(Object(v.a)(!1,"Form.List only accepts function as children."),null):r.createElement(_.Provider,{value:m},r.createElement(k.Provider,{value:p},r.createElement($,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!==s&&void 0!==s?s:!!d},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=u.getFieldValue,s=function(){return a(h||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(f.keys=[].concat(Object(l.a)(f.keys.slice(0,t)),[f.id],Object(l.a)(f.keys.slice(t))),i([].concat(Object(l.a)(n.slice(0,t)),[e],Object(l.a)(n.slice(t))))):(f.keys=[].concat(Object(l.a)(f.keys),[f.id]),i([].concat(Object(l.a)(n),[e]))),f.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(f.keys=f.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(f.keys=W(f.keys,e,t),i(W(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(e,t){var n=f.keys[t];return void 0===n&&(f.keys[t]=f.id,n=f.keys[t],f.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Q=n(6);var X="__@field_split__";function J(e){return e.map((function(e){return"".concat(Object(D.a)(e),":").concat(e)})).join(X)}var Z=function(){function e(){Object(u.a)(this,e),Object(m.a)(this,"kvs",new Map)}return Object(d.a)(e,[{key:"set",value:function(e,t){this.kvs.set(J(e),t)}},{key:"get",value:function(e){return this.kvs.get(J(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(J(e))}},{key:"map",value:function(e){return Object(l.a)(this.kvs.entries()).map((function(t){var n=Object(Q.a)(t,2),r=n[0],o=n[1],i=r.split(X);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=Object(Q.a)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),ee=["name"],te=Object(d.a)((function e(t){var n=this;Object(u.a)(this,e),Object(m.a)(this,"formHooked",!1),Object(m.a)(this,"forceRootUpdate",void 0),Object(m.a)(this,"subscribable",!0),Object(m.a)(this,"store",{}),Object(m.a)(this,"fieldEntities",[]),Object(m.a)(this,"initialValues",{}),Object(m.a)(this,"callbacks",{}),Object(m.a)(this,"validateMessages",null),Object(m.a)(this,"preserve",null),Object(m.a)(this,"lastValidatePromise",null),Object(m.a)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Object(m.a)(this,"getInternalHooks",(function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(v.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Object(m.a)(this,"useSubscribe",(function(e){n.subscribable=e})),Object(m.a)(this,"prevWithoutPreserves",null),Object(m.a)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Object(j.b)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Object(j.a)(o,n,Object(L.a)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Object(m.a)(this,"destroyForm",(function(){var e=new Z;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Object(m.a)(this,"getInitialValue",(function(e){var t=Object(L.a)(n.initialValues,e);return e.length?Object(j.b)(t):t})),Object(m.a)(this,"setCallbacks",(function(e){n.callbacks=e})),Object(m.a)(this,"setValidateMessages",(function(e){n.validateMessages=e})),Object(m.a)(this,"setPreserve",(function(e){n.preserve=e})),Object(m.a)(this,"watchList",[]),Object(m.a)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Object(m.a)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Object(m.a)(this,"timeoutId",null),Object(m.a)(this,"warningUnhooked",(function(){0})),Object(m.a)(this,"updateStore",(function(e){n.store=e})),Object(m.a)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Object(m.a)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Z;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Object(m.a)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=z(e);return t.get(n)||{INVALIDATE_NAME_PATH:z(e)}}))})),Object(m.a)(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Object(D.a)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,c,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(l)}else s.push(l)})),F(n.store,s.map(z))})),Object(m.a)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=z(e);return Object(L.a)(n.store,t)})),Object(m.a)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:z(e[n]),errors:[],warnings:[]}}))})),Object(m.a)(this,"getFieldError",(function(e){n.warningUnhooked();var t=z(e);return n.getFieldsError([t])[0].errors})),Object(m.a)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=z(e);return n.getFieldsError([t])[0].warnings})),Object(m.a)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(z),s=!1):(o=null,s=i):(o=i.map(z),s=a);var c=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!o)return s?c.every(u):c.some(u);var d=new Z;o.forEach((function(e){d.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&d.update(n,(function(t){return[].concat(Object(l.a)(t),[e])}))}))}));var f=function(e){return e.some(u)},h=d.map((function(e){return e.value}));return s?h.every(f):h.some(f)})),Object(m.a)(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Object(m.a)(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(z);return t.some((function(e){var t=e.getNamePath();return V(r,t)&&e.isFieldValidating()}))})),Object(m.a)(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Object(m.a)(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Z,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Object(l.a)(Object(l.a)(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Object(v.a)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Object(v.a)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.skipExist&&void 0!==a||n.updateStore(Object(j.a)(n.store,o,Object(l.a)(i)[0].value))}}}}))})),Object(m.a)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Object(j.b)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(z);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Object(j.a)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Object(m.a)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=Object(i.a)(e,ee),s=z(o);r.push(s),"value"in a&&n.updateStore(Object(j.a)(n.store,s,a.value)),n.notifyObservers(t,[s],{type:"setField",data:e})})),n.notifyWatch(r)})),Object(m.a)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=Object(c.a)(Object(c.a)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Object(m.a)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Object(L.a)(n.store,r)&&n.updateStore(Object(j.a)(n.store,r,t))}})),Object(m.a)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),Object(m.a)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!B(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Object(j.a)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Object(m.a)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Object(m.a)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Object(c.a)(Object(c.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Object(m.a)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Object(l.a)(r))}),r})),Object(m.a)(this,"updateValue",(function(e,t){var r=z(e),o=n.store;n.updateStore(Object(j.a)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(F(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(l.a)(i)))})),Object(m.a)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Object(j.b)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Object(m.a)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Object(m.a)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Z;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=z(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Object(m.a)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Z;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return V(e,n)}));a.length&&r(a,o)}})),Object(m.a)(this,"validateFields",(function(e,t){var r,o,i;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(o=e,i=t):i=e;var a=!!o,s=a?o.map(z):[],u=[],d=String(Date.now()),f=new Set,h=null===(r=i)||void 0===r?void 0:r.recursive;n.getFieldEntities(!0).forEach((function(e){if(a||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length){var t=e.getNamePath();if(f.add(t.join(d)),!a||V(s,t,h)){var r=e.validateRules(Object(c.a)({validateMessages:Object(c.a)(Object(c.a)({},E),n.validateMessages)},i));u.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Object(l.a)(n)):r.push.apply(r,Object(l.a)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(u);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=s.filter((function(e){return f.has(e.join(d))}));return n.triggerOnFieldsChange(g),m})),Object(m.a)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));var ne=function(e){var t=r.useRef(),n=r.useState({}),o=Object(Q.a)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new te((function(){o({})}));t.current=i.getForm()}return[t.current]},re=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oe=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(re),s=r.useRef({});return r.createElement(re.Provider,{value:Object(c.a)(Object(c.a)({},a),{},{validateMessages:Object(c.a)(Object(c.a)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=Object(c.a)(Object(c.a)({},s.current),{},Object(m.a)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Object(c.a)({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},ie=re,ae=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],se=function(e,t){var n=e.name,a=e.initialValues,s=e.fields,u=e.form,d=e.preserve,f=e.children,h=e.component,p=void 0===h?"form":h,m=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,v=e.onValuesChange,w=e.onFieldsChange,O=e.onFinish,x=e.onFinishFailed,C=Object(i.a)(e,ae),E=r.useContext(ie),j=ne(u),S=Object(Q.a)(j,1)[0],P=S.getInternalHooks(y),T=P.useSubscribe,N=P.setInitialValues,A=P.setCallbacks,M=P.setValidateMessages,R=P.setPreserve,I=P.destroyForm;r.useImperativeHandle(t,(function(){return S})),r.useEffect((function(){return E.registerForm(n,S),function(){E.unregisterForm(n)}}),[E,S,n]),M(Object(c.a)(Object(c.a)({},E.validateMessages),m)),A({onValuesChange:v,onFieldsChange:function(e){if(E.triggerFormChange(n,e),w){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];w.apply(void 0,[e].concat(r))}},onFinish:function(e){E.triggerFormFinish(n,e),O&&O(e)},onFinishFailed:x}),R(d);var L,z=r.useRef(null);N(a,!z.current),z.current||(z.current=!0),r.useEffect((function(){return I}),[]);var F="function"===typeof f;F?L=f(S.getFieldsValue(!0),S):L=f;T(!F);var V=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Object(D.a)(e)||"object"!==Object(D.a)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Object(l.a)(o).every((function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o}))})(V.current||[],s||[])||S.setFields(s||[]),V.current=s}),[s,S]);var B=r.useMemo((function(){return Object(c.a)(Object(c.a)({},S),{},{validateTrigger:b})}),[S,b]),H=r.createElement(_.Provider,{value:null},r.createElement(k.Provider,{value:B},L));return!1===p?H:r.createElement(p,Object(o.a)({},C,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()},onReset:function(e){var t;e.preventDefault(),S.resetFields(),null===(t=C.onReset)||void 0===t||t.call(C,e)}}),H)};function ce(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var le=function(){};var ue=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=void 0===o?[]:o,a=t[1],s=void 0===a?{}:a,c=function(e){return e&&!!e._init}(s)?{form:s}:s,l=c.form,u=Object(r.useState)(),d=Object(Q.a)(u,2),f=d[0],h=d[1],p=Object(r.useMemo)((function(){return ce(f)}),[f]),m=Object(r.useRef)(p);m.current=p;var g=Object(r.useContext)(k),b=l||g,v=b&&b._init,w=z(i),_=Object(r.useRef)(w);return _.current=w,le(w),Object(r.useEffect)((function(){if(v){var e=b.getFieldsValue,t=(0,(0,b.getInternalHooks)(y).registerWatch)((function(e,t){var n=Object(L.a)(c.preserve?t:e,_.current),r=ce(n);m.current!==r&&(m.current=r,h(n))})),n=Object(L.a)(c.preserve?e(!0):e(),_.current);return f!==n&&h(n),t}}),[v]),f},de=r.forwardRef(se);de.FormProvider=oe,de.Field=$,de.List=G,de.useForm=ne,de.useWatch=ue;t.f=de},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="CloseCircleFilled";t.a=o.forwardRef(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return N})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return p}));var r=n(3);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),c=t&&o(t),l=s||c;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var h=a[f];"."===h?i(a,f):".."===h?(i(a,f),d++):d&&(i(a,f),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&o(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=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,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(83);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(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 h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"===typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}var w="popstate",k="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&(e={}),v||Object(l.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,c=i.getUserConfirmation,d=void 0===c?y:c,g=i.keyLength,O=void 0===g?6:g,x=e.basename?h(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return x&&(i=f(i,x)),m(i,r,n)}function E(){return Math.random().toString(36).substr(2,O)}var j=b();function S(e){Object(r.a)(V,e),V.length=t.length,j.notifyListeners(V.location,V.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(C(e.state))}function T(){A(C(_()))}var N=!1;function A(e){if(N)N=!1,S();else{j.confirmTransitionTo(e,"POP",d,(function(t){t?S({action:"POP",location:e}):function(e){var t=V.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(N=!0,D(o))}(e)}))}}var M=C(_()),R=[M.key];function I(e){return x+p(e)}function D(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,P),o&&window.addEventListener(k,T)):0===L&&(window.removeEventListener(w,P),o&&window.removeEventListener(k,T))}var F=!1;var V={length:t.length,action:"POP",location:M,createHref:I,push:function(e,r){var o="PUSH",i=m(e,r,E(),V.location);j.confirmTransitionTo(i,o,d,(function(e){if(e){var r=I(i),a=i.key,c=i.state;if(n)if(t.pushState({key:a,state:c},null,r),s)window.location.href=r;else{var l=R.indexOf(V.location.key),u=R.slice(0,l+1);u.push(i.key),R=u,S({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,E(),V.location);j.confirmTransitionTo(i,o,d,(function(e){if(e){var r=I(i),a=i.key,c=i.state;if(n)if(t.replaceState({key:a,state:c},null,r),s)window.location.replace(r);else{var l=R.indexOf(V.location.key);-1!==l&&(R[l]=i.key),S({action:o,location:i})}else window.location.replace(r)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=j.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=j.appendListener(e);return z(1),function(){z(-1),t()}}};return V}var x="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function S(e){window.location.replace(E(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),v||Object(l.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?y:o,a=n.hashType,s=void 0===a?"slash":a,c=e.basename?h(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function k(){var e=w(j());return c&&(e=f(e,c)),m(e)}var _=b();function O(e){Object(r.a)(V,e),V.length=t.length,_.notifyListeners(V.location,V.action)}var P=!1,T=null;function N(){var e,t,n=j(),r=g(n);if(n!==r)S(r);else{var o=k(),a=V.location;if(!P&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(T===p(o))return;T=null,function(e){if(P)P=!1,O();else{var t="POP";_.confirmTransitionTo(e,t,i,(function(n){n?O({action:t,location:e}):function(e){var t=V.location,n=I.lastIndexOf(p(t));-1===n&&(n=0);var r=I.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(P=!0,D(o))}(e)}))}}(o)}}var A=j(),M=g(A);A!==M&&S(M);var R=k(),I=[p(R)];function D(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(x,N):0===L&&window.removeEventListener(x,N)}var F=!1;var V={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+g(c+p(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,V.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=p(r),o=g(c+t);if(j()!==o){T=t,function(e){window.location.hash=e}(o);var i=I.lastIndexOf(p(V.location)),a=I.slice(0,i+1);a.push(t),I=a,O({action:n,location:r})}else O()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,V.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=p(r),o=g(c+t);j()!==o&&(T=t,S(o));var i=I.indexOf(p(V.location));-1!==i&&(I[i]=t),O({action:n,location:r})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return V}function T(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,c=t.keyLength,l=void 0===c?6:c,u=b();function d(e){Object(r.a)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,l)}var h=T(s,0,i.length-1),g=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),v=p;function y(e){var t=T(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[h],index:h,entries:g,createHref:v,push:function(e,t){var r="PUSH",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},function(e,t,n){"use strict";var r=n(243),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}},function(e,t,n){"use strict";var r=n(179),o=n(115),i=o.a,a=n(180),s="${label} is not a valid ${type}",c={locale:"en",Pagination:r.a,DatePicker:o.a,TimePicker:a.a,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.a=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(8),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,c=t.easing,l=void 0===c?o.easeInOut:c,u=t.delay,d=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(3),o=n(1),i=n.n(o),a=n(8),s=n(15),c=n(19),l=n(36),u=o.forwardRef((function(e,t){var n=e.children,i=e.classes,c=e.className,u=e.color,d=void 0===u?"inherit":u,f=e.component,h=void 0===f?"svg":f,p=e.fontSize,m=void 0===p?"medium":p,g=e.htmlColor,b=e.titleAccess,v=e.viewBox,y=void 0===v?"0 0 24 24":v,w=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(h,Object(r.a)({className:Object(s.a)(i.root,c,"inherit"!==d&&i["color".concat(Object(l.a)(d))],"default"!==m&&"medium"!==m&&i["fontSize".concat(Object(l.a)(m))]),focusable:"false",viewBox:y,color:g,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},w),n,b?o.createElement("title",null,b):null)}));u.muiName="SvgIcon";var d=Object(c.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function f(e,t){var n=function(t,n){return i.a.createElement(d,Object(r.a)({ref:n},t),e)};return n.muiName=d.muiName,i.a.memo(i.a.forwardRef(n))}},function(e,t,n){"use strict";var r=n(292),o={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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g<a.length;++g){var b=a[g];if(!i[b]&&(!r||!r[b])&&(!m||!m[b])&&(!s||!s[b])){var v=f(n,b);try{l(t,b,v)}catch(y){}}}}return t}},function(e,t,n){"use strict";n.d(t,"f",(function(){return Fe})),n.d(t,"b",(function(){return ge})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return Ye})),n.d(t,"c",(function(){return Ye})),n.d(t,"a",(function(){return qe})),n.d(t,"h",(function(){return S}));var r=n(3),o=n(4),i=n(5),a=n(9),s=n(6),c=n(8),l=n(7),u=n.n(l),d=n(101),f=n(33),h=n(17),p=n(1),m=n(22),g=n(91),b=p.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(p.useContext(b),e)}var w=n(84),k=["children","locked"],_=p.createContext(null);function O(e){var t=e.children,n=e.locked,r=Object(c.a)(e,k),o=p.useContext(_),a=Object(w.a)((function(){return function(e,t){var n=Object(i.a)({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(o,r)}),[o,r],(function(e,t){return!n&&(e[0]!==t[0]||!Object(g.a)(e[1],t[1],!0))}));return p.createElement(_.Provider,{value:a},t)}var x=[],C=p.createContext(null);function E(){return p.useContext(C)}var j=p.createContext(x);function S(e){var t=p.useContext(j);return p.useMemo((function(){return void 0!==e?[].concat(Object(a.a)(t),[e]):t}),[t,e])}var P=p.createContext(null),T=p.createContext({}),N=n(11),A=n(23),M=n(181),R=N.a.LEFT,I=N.a.RIGHT,D=N.a.UP,L=N.a.DOWN,z=N.a.ENTER,F=N.a.ESC,V=N.a.HOME,B=N.a.END,H=[D,L,R,I];function W(e,t){return Object(M.a)(e,!0).filter((function(e){return t.has(e)}))}function U(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=W(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function K(e,t,n,r,i,a,s,c,l,u){var d=p.useRef(),f=p.useRef();f.current=t;var h=function(){A.a.cancel(d.current)};return p.useEffect((function(){return function(){h()}}),[]),function(p){var m=p.which;if([].concat(H,[z,F,V,B]).includes(m)){var g,b,y,w=function(){return g=new Set,b=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(v(r,e),"']"));t&&(g.add(t),y.set(t,e),b.set(e,t))})),g};w();var k=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),g),_=y.get(k),O=function(e,t,n,r){var i,a,s,c,l="prev",u="next",d="children",f="parent";if("inline"===e&&r===z)return{inlineTrigger:!0};var h=(i={},Object(o.a)(i,D,l),Object(o.a)(i,L,u),i),p=(a={},Object(o.a)(a,R,n?u:l),Object(o.a)(a,I,n?l:u),Object(o.a)(a,L,d),Object(o.a)(a,z,d),a),m=(s={},Object(o.a)(s,D,l),Object(o.a)(s,L,u),Object(o.a)(s,z,d),Object(o.a)(s,F,f),Object(o.a)(s,R,n?d:f),Object(o.a)(s,I,n?f:d),s);switch(null===(c={inline:h,horizontal:p,vertical:m,inlineSub:h,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r]){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(e,1===s(_,!0).length,n,m);if(!O&&m!==V&&m!==B)return;(H.includes(m)||[V,B].includes(m))&&p.preventDefault();var x=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=y.get(e);c(r),h(),d.current=Object(A.a)((function(){f.current===r&&t.focus()}))}};if([V,B].includes(m)||O.sibling||!k){var C,E,j=W(C=k&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(k):i.current,g);E=m===V?j[0]:m===B?j[j.length-1]:U(C,g,k,O.offset),x(E)}else if(O.inlineTrigger)l(_);else if(O.offset>0)l(_,!0),h(),d.current=Object(A.a)((function(){w();var e=k.getAttribute("aria-controls"),t=U(document.getElementById(e),g);x(t)}),5);else if(O.offset<0){var S=s(_,!0),P=S[S.length-2],T=b.get(P);l(P,!1),x(T)}}null===u||void 0===u||u(p)}}var Y="__RC_UTIL_PATH_SPLIT__",q=function(e){return e.join(Y)},$="rc-menu-more";function G(){var e=p.useState({}),t=Object(s.a)(e,2)[1],n=Object(p.useRef)(new Map),r=Object(p.useRef)(new Map),o=p.useState([]),i=Object(s.a)(o,2),c=i[0],l=i[1],u=Object(p.useRef)(0),d=Object(p.useRef)(!1),f=Object(p.useCallback)((function(e,o){var i=q(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,s=u.current;a=function(){s===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),h=Object(p.useCallback)((function(e,t){var o=q(t);r.current.delete(o),n.current.delete(e)}),[]),m=Object(p.useCallback)((function(e){l(e)}),[]),g=Object(p.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Y);return t&&c.includes(o[0])&&o.unshift($),o}),[c]),b=Object(p.useCallback)((function(e,t){return e.some((function(e){return g(e,!0).includes(t)}))}),[g]),v=Object(p.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Y),o=new Set;return Object(a.a)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return p.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:m,isSubPathKey:b,getKeyPath:g,getKeys:function(){var e=Object(a.a)(n.current.keys());return c.length&&e.push($),e},getSubPathKeys:v}}function Q(e){var t=p.useRef(e);t.current=e;var n=p.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var X=Math.random().toFixed(5).toString().slice(2),J=0;var Z=n(27),ee=n(25),te=n(37),ne=n(38),re=n(32),oe=n(28);function ie(e,t,n,r){var o=p.useContext(_),i=o.activeKey,a=o.onActive,s=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},c.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),s(e)}),c}function ae(e){var t=p.useContext(_),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function se(e){var t=e.icon,n=e.props,r=e.children;return("function"===typeof t?p.createElement(t,Object(i.a)({},n)):t)||r||null}var ce=["item"];function le(e){var t=e.item,n=Object(c.a)(e,ce);return Object.defineProperty(n,"item",{get:function(){return Object(h.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ue=["title","attribute","elementRef"],de=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fe=["active"],he=function(e){Object(te.a)(n,e);var t=Object(ne.a)(n);function n(){return Object(Z.a)(this,n),t.apply(this,arguments)}return Object(ee.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Object(c.a)(e,ue),a=Object(re.a)(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Object(h.a)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),p.createElement(d.a.Item,Object(r.a)({},n,{title:"string"===typeof t?t:void 0},a,{ref:o}))}}]),n}(p.Component),pe=p.forwardRef((function(e,t){var n,s=e.style,l=e.className,d=e.eventKey,f=(e.warnKey,e.disabled),h=e.itemIcon,m=e.children,g=e.role,b=e.onMouseEnter,v=e.onMouseLeave,w=e.onClick,k=e.onKeyDown,O=e.onFocus,x=Object(c.a)(e,de),C=y(d),E=p.useContext(_),j=E.prefixCls,P=E.onItemClick,A=E.disabled,M=E.overflowDisabled,R=E.itemIcon,I=E.selectedKeys,D=E.onActive,L=p.useContext(T)._internalRenderMenuItem,z="".concat(j,"-item"),F=p.useRef(),V=p.useRef(),B=A||f,H=Object(oe.d)(t,V),W=S(d);var U=function(e){return{key:d,keyPath:Object(a.a)(W).reverse(),item:F.current,domEvent:e}},K=h||R,Y=ie(d,B,b,v),q=Y.active,$=Object(c.a)(Y,fe),G=I.includes(d),Q=ae(W.length),X={};"option"===e.role&&(X["aria-selected"]=G);var J=p.createElement(he,Object(r.a)({ref:F,elementRef:H,role:null===g?"none":g||"menuitem",tabIndex:f?null:-1,"data-menu-id":M&&C?null:C},x,$,X,{component:"li","aria-disabled":f,style:Object(i.a)(Object(i.a)({},Q),s),className:u()(z,(n={},Object(o.a)(n,"".concat(z,"-active"),q),Object(o.a)(n,"".concat(z,"-selected"),G),Object(o.a)(n,"".concat(z,"-disabled"),B),n),l),onClick:function(e){if(!B){var t=U(e);null===w||void 0===w||w(le(t)),P(t)}},onKeyDown:function(e){if(null===k||void 0===k||k(e),e.which===N.a.ENTER){var t=U(e);null===w||void 0===w||w(le(t)),P(t)}},onFocus:function(e){D(d),null===O||void 0===O||O(e)}}),m,p.createElement(se,{props:Object(i.a)(Object(i.a)({},e),{},{isSelected:G}),icon:K}));return L&&(J=L(J,e,{selected:G})),J}));function me(e,t){var n=e.eventKey,o=E(),i=S(n);return p.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:p.createElement(pe,Object(r.a)({},e,{ref:t}))}var ge=p.forwardRef(me),be=["className","children"],ve=function(e,t){var n=e.className,o=e.children,i=Object(c.a)(e,be),a=p.useContext(_),s=a.prefixCls,l=a.mode,d=a.rtl;return p.createElement("ul",Object(r.a)({className:u()(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},ye=p.forwardRef(ve);ye.displayName="SubMenuList";var we=ye,ke=n(10),_e=n(51),Oe=["label","children","key","type"];function xe(e,t){return Object(_e.a)(e).map((function(e,n){if(p.isValidElement(e)){var r,o,i=e.key,s=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;(null===s||void 0===s)&&(s="tmp_key-".concat([].concat(Object(a.a)(t),[n]).join("-")));var c={key:s,eventKey:s};return p.cloneElement(e,c)}return e}))}function Ce(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(ke.a)(e)){var n=e,o=n.label,i=n.children,a=n.key,s=n.type,l=Object(c.a)(n,Oe),u=null!==a&&void 0!==a?a:"tmp-".concat(t);return i||"group"===s?"group"===s?p.createElement(Ye,Object(r.a)({key:u},l,{title:o}),Ce(i)):p.createElement(Fe,Object(r.a)({key:u},l,{title:o}),Ce(i)):"divider"===s?p.createElement(qe,Object(r.a)({key:u},l)):p.createElement(ge,Object(r.a)({key:u},l),o)}return null})).filter((function(e){return e}))}function Ee(e,t,n){var r=e;return t&&(r=Ce(t)),xe(r,n)}var je=n(96),Se={adjustX:1,adjustY:1},Pe={topLeft:{points:["bl","tl"],overflow:Se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Se,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Se,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Se,offset:[4,0]}},Te={topLeft:{points:["bl","tl"],overflow:Se,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Se,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Se,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Se,offset:[4,0]}};function Ne(e,t,n){return t||(n?n[e]||n.other:void 0)}var Ae={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Me(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,c=e.popupClassName,l=e.popupOffset,d=e.disabled,f=e.mode,h=e.onVisibleChange,m=p.useContext(_),g=m.getPopupContainer,b=m.rtl,v=m.subMenuOpenDelay,y=m.subMenuCloseDelay,w=m.builtinPlacements,k=m.triggerSubMenuAction,O=m.forceSubMenuRender,x=m.rootClassName,C=m.motion,E=m.defaultMotions,j=p.useState(!1),S=Object(s.a)(j,2),P=S[0],T=S[1],N=b?Object(i.a)(Object(i.a)({},Te),w):Object(i.a)(Object(i.a)({},Pe),w),M=Ae[f],R=Ne(f,C,E),I=p.useRef(R);"inline"!==f&&(I.current=R);var D=Object(i.a)(Object(i.a)({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=p.useRef();return p.useEffect((function(){return L.current=Object(A.a)((function(){T(n)})),function(){A.a.cancel(L.current)}}),[n]),p.createElement(je.a,{prefixCls:t,popupClassName:u()("".concat(t,"-popup"),Object(o.a)({},"".concat(t,"-rtl"),b),c,x),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:M,popupVisible:P,popup:a,popupAlign:l&&{offset:l},action:d?[]:[k],mouseEnterDelay:v,mouseLeaveDelay:y,onPopupVisibleChange:h,forceRender:O,popupMotion:D},r)}var Re=n(52);function Ie(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,c="inline",l=p.useContext(_),u=l.prefixCls,d=l.forceSubMenuRender,f=l.motion,h=l.defaultMotions,m=l.mode,g=p.useRef(!1);g.current=m===c;var b=p.useState(!g.current),v=Object(s.a)(b,2),y=v[0],w=v[1],k=!!g.current&&n;p.useEffect((function(){g.current&&w(!1)}),[m]);var x=Object(i.a)({},Ne(c,f,h));o.length>1&&(x.motionAppear=!1);var C=x.onVisibleChanged;return x.onVisibleChanged=function(e){return g.current||e||w(!0),null===C||void 0===C?void 0:C(e)},y?null:p.createElement(O,{mode:c,locked:!g.current},p.createElement(Re.b,Object(r.a)({visible:k},x,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(e){var n=e.className,r=e.style;return p.createElement(we,{id:t,className:n,style:r},a)})))}var De=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Le=["active"],ze=function(e){var t,n=e.style,a=e.className,l=e.title,f=e.eventKey,h=(e.warnKey,e.disabled),m=e.internalPopupClose,g=e.children,b=e.itemIcon,v=e.expandIcon,w=e.popupClassName,k=e.popupOffset,x=e.onClick,C=e.onMouseEnter,E=e.onMouseLeave,j=e.onTitleClick,N=e.onTitleMouseEnter,A=e.onTitleMouseLeave,M=Object(c.a)(e,De),R=y(f),I=p.useContext(_),D=I.prefixCls,L=I.mode,z=I.openKeys,F=I.disabled,V=I.overflowDisabled,B=I.activeKey,H=I.selectedKeys,W=I.itemIcon,U=I.expandIcon,K=I.onItemClick,Y=I.onOpenChange,q=I.onActive,$=p.useContext(T)._internalRenderSubMenuItem,G=p.useContext(P).isSubPathKey,X=S(),J="".concat(D,"-submenu"),Z=F||h,ee=p.useRef(),te=p.useRef();var ne=b||W,re=v||U,oe=z.includes(f),ce=!V&&oe,ue=G(H,f),de=ie(f,Z,N,A),fe=de.active,he=Object(c.a)(de,Le),pe=p.useState(!1),me=Object(s.a)(pe,2),ge=me[0],be=me[1],ve=function(e){Z||be(e)},ye=p.useMemo((function(){return fe||"inline"!==L&&(ge||G([B],f))}),[L,fe,B,ge,f,G]),ke=ae(X.length),_e=Q((function(e){null===x||void 0===x||x(le(e)),K(e)})),Oe=R&&"".concat(R,"-popup"),xe=p.createElement("div",Object(r.a)({role:"menuitem",style:ke,className:"".concat(J,"-title"),tabIndex:Z?null:-1,ref:ee,title:"string"===typeof l?l:null,"data-menu-id":V&&R?null:R,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":Oe,"aria-disabled":Z,onClick:function(e){Z||(null===j||void 0===j||j({key:f,domEvent:e}),"inline"===L&&Y(f,!oe))},onFocus:function(){q(f)}},he),l,p.createElement(se,{icon:"horizontal"!==L?re:null,props:Object(i.a)(Object(i.a)({},e),{},{isOpen:ce,isSubMenu:!0})},p.createElement("i",{className:"".concat(J,"-arrow")}))),Ce=p.useRef(L);if("inline"!==L&&X.length>1?Ce.current="vertical":Ce.current=L,!V){var Ee=Ce.current;xe=p.createElement(Me,{mode:Ee,prefixCls:J,visible:!m&&ce&&"inline"!==L,popupClassName:w,popupOffset:k,popup:p.createElement(O,{mode:"horizontal"===Ee?"vertical":Ee},p.createElement(we,{id:Oe,ref:te},g)),disabled:Z,onVisibleChange:function(e){"inline"!==L&&Y(f,e)}},xe)}var je=p.createElement(d.a.Item,Object(r.a)({role:"none"},M,{component:"li",style:n,className:u()(J,"".concat(J,"-").concat(L),a,(t={},Object(o.a)(t,"".concat(J,"-open"),ce),Object(o.a)(t,"".concat(J,"-active"),ye),Object(o.a)(t,"".concat(J,"-selected"),ue),Object(o.a)(t,"".concat(J,"-disabled"),Z),t)),onMouseEnter:function(e){ve(!0),null===C||void 0===C||C({key:f,domEvent:e})},onMouseLeave:function(e){ve(!1),null===E||void 0===E||E({key:f,domEvent:e})}}),xe,!V&&p.createElement(Ie,{id:Oe,open:ce,keyPath:X},g));return $&&(je=$(je,e,{selected:ue,active:ye,open:ce,disabled:Z})),p.createElement(O,{onItemClick:_e,mode:"horizontal"===L?"vertical":L,itemIcon:ne,expandIcon:re},je)};function Fe(e){var t,n=e.eventKey,r=e.children,o=S(n),i=xe(r,o),a=E();return p.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:p.createElement(ze,e,i),p.createElement(j.Provider,{value:o},t)}var Ve=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Be=[],He=p.forwardRef((function(e,t){var n,l,h=e,y=h.prefixCls,w=void 0===y?"rc-menu":y,k=h.rootClassName,_=h.style,x=h.className,E=h.tabIndex,j=void 0===E?0:E,S=h.items,N=h.children,A=h.direction,M=h.id,R=h.mode,I=void 0===R?"vertical":R,D=h.inlineCollapsed,L=h.disabled,z=h.disabledOverflow,F=h.subMenuOpenDelay,V=void 0===F?.1:F,B=h.subMenuCloseDelay,H=void 0===B?.1:B,W=h.forceSubMenuRender,U=h.defaultOpenKeys,Y=h.openKeys,q=h.activeKey,Z=h.defaultActiveFirst,ee=h.selectable,te=void 0===ee||ee,ne=h.multiple,re=void 0!==ne&&ne,oe=h.defaultSelectedKeys,ie=h.selectedKeys,ae=h.onSelect,se=h.onDeselect,ce=h.inlineIndent,ue=void 0===ce?24:ce,de=h.motion,fe=h.defaultMotions,he=h.triggerSubMenuAction,pe=void 0===he?"hover":he,me=h.builtinPlacements,be=h.itemIcon,ve=h.expandIcon,ye=h.overflowedIndicator,we=void 0===ye?"...":ye,ke=h.overflowedIndicatorPopupClassName,_e=h.getPopupContainer,Oe=h.onClick,xe=h.onOpenChange,Ce=h.onKeyDown,je=(h.openAnimation,h.openTransitionName,h._internalRenderMenuItem),Se=h._internalRenderSubMenuItem,Pe=Object(c.a)(h,Ve),Te=p.useMemo((function(){return Ee(N,S,Be)}),[N,S]),Ne=p.useState(!1),Ae=Object(s.a)(Ne,2),Me=Ae[0],Re=Ae[1],Ie=p.useRef(),De=function(e){var t=Object(f.a)(e,{value:e}),n=Object(s.a)(t,2),r=n[0],o=n[1];return p.useEffect((function(){J+=1;var e="".concat(X,"-").concat(J);o("rc-menu-uuid-".concat(e))}),[]),r}(M),Le="rtl"===A;var ze=Object(f.a)(U,{value:Y,postState:function(e){return e||Be}}),He=Object(s.a)(ze,2),We=He[0],Ue=He[1],Ke=function(e){function t(){Ue(e),null===xe||void 0===xe||xe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Object(m.flushSync)(t):t()},Ye=p.useState(We),qe=Object(s.a)(Ye,2),$e=qe[0],Ge=qe[1],Qe=p.useRef(!1),Xe=p.useMemo((function(){return"inline"!==I&&"vertical"!==I||!D?[I,!1]:["vertical",D]}),[I,D]),Je=Object(s.a)(Xe,2),Ze=Je[0],et=Je[1],tt="inline"===Ze,nt=p.useState(Ze),rt=Object(s.a)(nt,2),ot=rt[0],it=rt[1],at=p.useState(et),st=Object(s.a)(at,2),ct=st[0],lt=st[1];p.useEffect((function(){it(Ze),lt(et),Qe.current&&(tt?Ue($e):Ke(Be))}),[Ze,et]);var ut=p.useState(0),dt=Object(s.a)(ut,2),ft=dt[0],ht=dt[1],pt=ft>=Te.length-1||"horizontal"!==ot||z;p.useEffect((function(){tt&&Ge(We)}),[We]),p.useEffect((function(){return Qe.current=!0,function(){Qe.current=!1}}),[]);var mt=G(),gt=mt.registerPath,bt=mt.unregisterPath,vt=mt.refreshOverflowKeys,yt=mt.isSubPathKey,wt=mt.getKeyPath,kt=mt.getKeys,_t=mt.getSubPathKeys,Ot=p.useMemo((function(){return{registerPath:gt,unregisterPath:bt}}),[gt,bt]),xt=p.useMemo((function(){return{isSubPathKey:yt}}),[yt]);p.useEffect((function(){vt(pt?Be:Te.slice(ft+1).map((function(e){return e.key})))}),[ft,pt]);var Ct=Object(f.a)(q||Z&&(null===(n=Te[0])||void 0===n?void 0:n.key),{value:q}),Et=Object(s.a)(Ct,2),jt=Et[0],St=Et[1],Pt=Q((function(e){St(e)})),Tt=Q((function(){St(void 0)}));Object(p.useImperativeHandle)(t,(function(){return{list:Ie.current,focus:function(e){var t,n,r,o,i=null!==jt&&void 0!==jt?jt:null===(t=Te.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=Ie.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(v(De,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Nt=Object(f.a)(oe||[],{value:ie,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Be:[e]}}),At=Object(s.a)(Nt,2),Mt=At[0],Rt=At[1],It=Q((function(e){null===Oe||void 0===Oe||Oe(le(e)),function(e){if(te){var t,n=e.key,r=Mt.includes(n);t=re?r?Mt.filter((function(e){return e!==n})):[].concat(Object(a.a)(Mt),[n]):[n],Rt(t);var o=Object(i.a)(Object(i.a)({},e),{},{selectedKeys:t});r?null===se||void 0===se||se(o):null===ae||void 0===ae||ae(o)}!re&&We.length&&"inline"!==ot&&Ke(Be)}(e)})),Dt=Q((function(e,t){var n=We.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ot){var r=_t(e);n=n.filter((function(e){return!r.has(e)}))}Object(g.a)(We,n,!0)||Ke(n,!0)})),Lt=Q(_e),zt=K(ot,jt,Le,De,Ie,kt,wt,St,(function(e,t){var n=null!==t&&void 0!==t?t:!We.includes(e);Dt(e,n)}),Ce);p.useEffect((function(){Re(!0)}),[]);var Ft=p.useMemo((function(){return{_internalRenderMenuItem:je,_internalRenderSubMenuItem:Se}}),[je,Se]),Vt="horizontal"!==ot||z?Te:Te.map((function(e,t){return p.createElement(O,{key:e.key,overflowDisabled:t>ft},e)})),Bt=p.createElement(d.a,Object(r.a)({id:M,ref:Ie,prefixCls:"".concat(w,"-overflow"),component:"ul",itemComponent:ge,className:u()(w,"".concat(w,"-root"),"".concat(w,"-").concat(ot),x,(l={},Object(o.a)(l,"".concat(w,"-inline-collapsed"),ct),Object(o.a)(l,"".concat(w,"-rtl"),Le),l),k),dir:A,style:_,role:"menu",tabIndex:j,data:Vt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Te.slice(-t):null;return p.createElement(Fe,{eventKey:$,title:we,disabled:pt,internalPopupClose:0===t,popupClassName:ke},n)},maxCount:"horizontal"!==ot||z?d.a.INVALIDATE:d.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ht(e)},onKeyDown:zt},Pe));return p.createElement(T.Provider,{value:Ft},p.createElement(b.Provider,{value:De},p.createElement(O,{prefixCls:w,rootClassName:k,mode:ot,openKeys:We,rtl:Le,disabled:L,motion:Me?de:null,defaultMotions:Me?fe:null,activeKey:jt,onActive:Pt,onInactive:Tt,selectedKeys:Mt,inlineIndent:ue,subMenuOpenDelay:V,subMenuCloseDelay:H,forceSubMenuRender:W,builtinPlacements:me,triggerSubMenuAction:pe,getPopupContainer:Lt,itemIcon:be,expandIcon:ve,onItemClick:It,onOpenChange:Dt},p.createElement(P.Provider,{value:xt},Bt),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(C.Provider,{value:Ot},Te)))))})),We=["className","title","eventKey","children"],Ue=["children"],Ke=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=Object(c.a)(e,We),a=p.useContext(_).prefixCls,s="".concat(a,"-item-group");return p.createElement("li",Object(r.a)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:u()(s,t)}),p.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"===typeof n?n:void 0},n),p.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Ye(e){var t=e.children,n=Object(c.a)(e,Ue),r=xe(t,S(n.eventKey));return E()?r:p.createElement(Ke,Object(re.a)(n,["warnKey"]),r)}function qe(e){var t=e.className,n=e.style,r=p.useContext(_).prefixCls;return E()?null:p.createElement("li",{className:u()("".concat(r,"-item-divider"),t),style:n})}var $e=He;$e.Item=ge,$e.SubMenu=Fe,$e.ItemGroup=Ye,$e.Divider=qe;t.g=$e},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(22),o=n.n(r);function i(e,t,n,r){var i=o.a.unstable_batchedUpdates?function(e){o.a.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(4),o=n(3),i=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},s=new Map,c=-1,l={},u={matchHandlers:{},dispatch:function(e){return l=e,s.forEach((function(e){return e(l)})),s.size>=1},subscribe:function(e){return s.size||this.register(),c+=1,s.set(c,e),e(l),c},unsubscribe:function(e){s.delete(e),s.size||this.unregister()},unregister:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],r=e.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),s.clear()},register:function(){var e=this;Object.keys(a).forEach((function(t){var n=a[t],i=function(n){var i=n.matches;e.dispatch(Object(o.a)(Object(o.a)({},l),Object(r.a)({},t,i)))},s=window.matchMedia(n);s.addListener(i),e.matchHandlers[n]={mql:s,listener:i},i(s)}))}};t.a=u},function(e,t,n){"use strict";var r=n(10),o=n(17);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if(Object(o.a)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&s>1)return!1;i.add(t);var l=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],a[u],l))return!1;return!0}if(t&&a&&"object"===Object(r.a)(t)&&"object"===Object(r.a)(a)){var d=Object.keys(t);return d.length===Object.keys(a).length&&d.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)}},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="LoadingOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(231),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(27),a=n(25),s=n(13),c=n(37),l=n(38),u=n(4),d=n(1),f=n.n(d),h=n(22),p=n.n(h),m=n(23),g=n(93),b=n(97),v=n(28),y=n(89),w=n(47),k=Object(d.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=Object(d.useRef)(),a=Object(d.useRef)();Object(d.useImperativeHandle)(t,(function(){return{}}));var s=Object(d.useRef)(!1);return!s.current&&Object(w.a)()&&(a.current=r(),i.current=a.current.parentNode,s.current=!0),Object(d.useEffect)((function(){null===n||void 0===n||n(e)})),Object(d.useEffect)((function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e;null===(e=a.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(a.current)}}),[]),a.current?p.a.createPortal(o,a.current):null})),_=n(7),O=n.n(_);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var C=n(6),E=n(8),j=n(182),S=n(52);function P(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function T(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,s=e.maskMotion,c=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var u={};return(s||l||c)&&(u=Object(r.a)({motionAppear:!0},P({motion:s,prefixCls:t,transitionName:l,animation:c}))),d.createElement(S.b,Object(o.a)({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return d.createElement("div",{style:{zIndex:i},className:O()("".concat(t,"-mask"),n)})}))}var N,A=n(10);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(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},I(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==N)return N;N="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(N=t);return N}function F(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function V(){return z()?"".concat(z(),"Transform"):"transform"}function B(e,t){var n=F();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function H(e,t){var n=V();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var W,U=/matrix\((.*)\)/,K=/matrix3d\((.*)\)/;function Y(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function q(e,t,n){var r=n;if("object"!==I(t))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):W(e,t);for(var o in t)t.hasOwnProperty(o)&&q(e,o,t[o])}function $(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function G(e){return $(e)}function Q(e){return $(e,!0)}function X(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=G(r),t.top+=Q(r),t}function J(e){return null!==e&&void 0!==e&&e==e.window}function Z(e){return J(e)?e.document:9===e.nodeType?e:e.ownerDocument}var ee=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),te=/^(top|right|bottom|left)$/,ne="currentStyle",re="runtimeStyle",oe="left";function ie(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ae(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function se(e,t,n){"static"===q(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=ie("left",n),a=ie("top",n),s=ae(i),c=ae(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l,u="",d=X(e);("left"in t||"top"in t)&&(u=(l=e).style.transitionProperty||l.style[F()]||"",B(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[c]="",e.style[a]="".concat(o,"px")),Y(e);var f=X(e),h={};for(var p in t)if(t.hasOwnProperty(p)){var m=ie(p,n),g="left"===p?r:o,b=d[p]-f[p];h[m]=m===p?g+b:g-b}q(e,h),Y(e),("left"in t||"top"in t)&&B(e,u);var v={};for(var y in t)if(t.hasOwnProperty(y)){var w=ie(y,n),k=t[y]-d[y];v[w]=y===w?h[w]+k:h[w]-k}q(e,v)}function ce(e,t){var n=X(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(V());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(V());if(r&&"none"!==r){var o,i=r.match(U);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,H(e,"matrix(".concat(o.join(","),")"))):((o=r.match(K)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,H(e,"matrix3d(".concat(o.join(","),")")))}else H(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function le(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ue(e){return"border-box"===W(e,"boxSizing")}"undefined"!==typeof window&&(W=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Z(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[ne]&&e[ne][t];if(ee.test(n)&&!te.test(t)){var r=e.style,o=r[oe],i=e[re][oe];e[re][oe]=e[ne][oe],r[oe]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[oe]=o,e[re][oe]=i}return""===n?"auto":n});var de=["margin","border","padding"],fe=-1,he=2,pe=1;function me(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(W(e,s))||0}return a}var ge={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function be(e,t,n){var r=n;if(J(e))return"width"===t?ge.viewportWidth(e):ge.viewportHeight(e);if(9===e.nodeType)return"width"===t?ge.docWidth(e):ge.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=ue(e),s=0;(null===i||void 0===i||i<=0)&&(i=void 0,(null===(s=W(e,t))||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===r&&(r=a?pe:fe);var c=void 0!==i||a,l=i||s;return r===fe?c?l-me(e,["border","padding"],o):s:c?r===pe?l:l+(r===he?-me(e,["border"],o):me(e,["margin"],o)):s+me(e,de.slice(r),o)}le(["Width","Height"],(function(e){ge["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ge["viewport".concat(e)](n))},ge["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var ve={position:"absolute",visibility:"hidden",display:"block"};function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=be.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,ve,(function(){r=be.apply(void 0,t)})),r}function we(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}le(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ge["outer".concat(t)]=function(t,n){return t&&ye(t,e,n?0:pe)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ge[e]=function(t,r){var o=r;return void 0!==o?t?(ue(t)&&(o+=me(t,["padding","border"],n)),q(t,e,o)):void 0:t&&ye(t,e,fe)}}));var ke={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Z,offset:function(e,t,n){if("undefined"===typeof t)return X(e);!function(e,t,n){if(n.ignoreShake){var r=X(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?se(e,t,n):n.useCssTransform&&V()in document.body.style?ce(e,t):se(e,t,n)}(e,t,n||{})},isWindow:J,each:le,css:q,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:we,getWindowScrollLeft:function(e){return G(e)},getWindowScrollTop:function(e){return Q(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ke.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};we(ke,ge);var _e=ke.getParent;function Oe(e){if(ke.isWindow(e)||9===e.nodeType)return null;var t,n=ke.getDocument(e).body,r=ke.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:_e(e);for(t=_e(e);t&&t!==n&&9!==t.nodeType;t=_e(t))if("static"!==(r=ke.css(t,"position")))return t;return null}var xe=ke.getParent;function Ce(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Oe(e),o=ke.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===ke.css(r,"overflow")){if(r===a||r===s)break}else{var c=ke.offset(r);c.left+=r.clientLeft,c.top+=r.clientTop,n.top=Math.max(n.top,c.top),n.right=Math.min(n.right,c.left+r.clientWidth),n.bottom=Math.min(n.bottom,c.top+r.clientHeight),n.left=Math.max(n.left,c.left)}r=Oe(r)}var l=null;ke.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===ke.css(e,"position")&&(e.style.position="fixed"));var u=ke.getWindowScrollLeft(i),d=ke.getWindowScrollTop(i),f=ke.viewportWidth(i),h=ke.viewportHeight(i),p=s.scrollWidth,m=s.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(p=i.innerWidth),"hidden"===g.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(ke.isWindow(e)||9===e.nodeType)return!1;var t=ke.getDocument(e),n=t.body,r=null;for(r=xe(e);r&&r!==n&&r!==t;r=xe(r))if("fixed"===ke.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+f),n.bottom=Math.min(n.bottom,d+h);else{var b=Math.max(p,u+f);n.right=Math.min(n.right,b);var v=Math.max(m,d+h);n.bottom=Math.min(n.bottom,v)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ee(e){var t,n,r;if(ke.isWindow(e)||9===e.nodeType){var o=ke.getWindow(e);t={left:ke.getWindowScrollLeft(o),top:ke.getWindowScrollTop(o)},n=ke.viewportWidth(o),r=ke.viewportHeight(o)}else t=ke.offset(e),n=ke.outerWidth(e),r=ke.outerHeight(e);return t.width=n,t.height=r,t}function je(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function Se(e,t,n,r,o){var i=je(t,n[1]),a=je(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function Pe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Te(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Ne(e,t,n){var r=[];return ke.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ae(e,t){return e[t]=-e[t],e}function Me(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Re(e,t){e[0]=Me(e[0],t.width),e[1]=Me(e[1],t.height)}function Ie(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,c=n.source||e;i=[].concat(i),a=[].concat(a);var l={},u=0,d=Ce(c,!(!(s=s||{})||!s.alwaysByViewport)),f=Ee(c);Re(i,f),Re(a,t);var h=Se(f,t,o,i,a),p=ke.merge(f,h);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Pe(h,f,d)){var m=Ne(o,/[lr]/gi,{l:"r",r:"l"}),g=Ae(i,0),b=Ae(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Se(f,t,m,g,b),f,d)||(u=1,o=m,i=g,a=b)}if(s.adjustY&&Te(h,f,d)){var v=Ne(o,/[tb]/gi,{t:"b",b:"t"}),y=Ae(i,1),w=Ae(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Se(f,t,v,y,w),f,d)||(u=1,o=v,i=y,a=w)}u&&(h=Se(f,t,o,i,a),ke.mix(p,h));var k=Pe(h,f,d),_=Te(h,f,d);if(k||_){var O=o;k&&(O=Ne(o,/[lr]/gi,{l:"r",r:"l"})),_&&(O=Ne(o,/[tb]/gi,{t:"b",b:"t"})),o=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=s.adjustX&&k,l.adjustY=s.adjustY&&_,(l.adjustX||l.adjustY)&&(p=function(e,t,n,r){var o=ke.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ke.mix(o,i)}(h,f,d,l))}return p.width!==f.width&&ke.css(c,"width",ke.width(c)+p.width-f.width),p.height!==f.height&&ke.css(c,"height",ke.height(c)+p.height-f.height),ke.offset(c,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function De(e,t,n){var r=n.target||t,o=Ee(r),i=!function(e,t){var n=Ce(e,t),r=Ee(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ie(e,o,n,i)}De.__getOffsetParent=Oe,De.__getVisibleRectForElement=Ce;var Le=n(91),ze=n(112),Fe=n(39),Ve=n(178);function Be(e,t){var n=null,r=null;var o=new Ve.a((function(e){var o=Object(C.a)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,s=i.height,c=Math.floor(a),l=Math.floor(s);n===c&&r===l||Promise.resolve().then((function(){t({width:c,height:l})})),n=c,r=l}}));return e&&o.observe(e),function(){o.disconnect()}}function He(e){return"function"!==typeof e?null:e()}function We(e){return"object"===Object(A.a)(e)&&e?e:null}var Ue=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,u=f.a.useRef({}),d=f.a.useRef(),h=f.a.Children.only(n),p=f.a.useRef({});p.current.disabled=r,p.current.target=o,p.current.align=i,p.current.onAlign=a;var m=function(e,t){var n=f.a.useRef(!1),r=f.a.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=p.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=d.current;if(!t&&n&&i){var a,s=He(n),c=We(n);u.current.element=s,u.current.point=c,u.current.align=r;var l=document.activeElement;return s&&Object(ze.a)(s)?a=De(i,s,r):c&&(a=function(e,t,n){var r,o,i=ke.getDocument(e),a=i.defaultView||i.parentWindow,s=ke.getWindowScrollLeft(a),c=ke.getWindowScrollTop(a),l=ke.viewportWidth(a),u=ke.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:o="pageY"in t?t.pageY:c+t.clientY,width:0,height:0},f=r>=0&&r<=s+l&&o>=0&&o<=c+u,h=[n.points[0],"cc"];return Ie(e,d,R(R({},n),{},{points:h}),f)}(i,c,r)),function(e,t){e!==document.activeElement&&Object(g.a)(t,e)&&"function"===typeof e.focus&&e.focus()}(l,i),o&&a&&o(i,a),!0}return!1}),l),b=Object(C.a)(m,2),w=b[0],k=b[1],_=f.a.useState(),O=Object(C.a)(_,2),x=O[0],E=O[1],j=f.a.useState(),S=Object(C.a)(j,2),P=S[0],T=S[1];return Object(Fe.a)((function(){E(He(o)),T(We(o))})),f.a.useEffect((function(){var e,t;u.current.element===x&&((e=u.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Object(Le.a)(u.current.align,i)||w()})),f.a.useEffect((function(){return Be(d.current,w)}),[d.current]),f.a.useEffect((function(){return Be(x,w)}),[x]),f.a.useEffect((function(){r?k():w()}),[r]),f.a.useEffect((function(){if(s)return Object(y.a)(window,"resize",w).remove}),[s]),f.a.useEffect((function(){return function(){k()}}),[]),f.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),f.a.isValidElement(h)&&(h=f.a.cloneElement(h,{ref:Object(v.a)(h.ref,d)})),h},Ke=f.a.forwardRef(Ue);Ke.displayName="Align";var Ye=Ke,qe=n(53),$e=n(88),Ge=n(70),Qe=["measure","alignPre","align",null,"motion"],Xe=d.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,s=e.style,c=e.children,l=e.zIndex,u=e.stretch,f=e.destroyPopupOnHide,h=e.forceRender,p=e.align,g=e.point,b=e.getRootDomNode,v=e.getClassNameFromAlign,y=e.onAlign,w=e.onMouseEnter,k=e.onMouseLeave,_=e.onMouseDown,x=e.onTouchStart,E=e.onClick,j=Object(d.useRef)(),T=Object(d.useRef)(),N=Object(d.useState)(),A=Object(C.a)(N,2),M=A[0],R=A[1],I=function(e){var t=d.useState({width:0,height:0}),n=Object(C.a)(t,2),r=n[0],o=n[1];return[d.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(u),D=Object(C.a)(I,2),L=D[0],z=D[1];var F=function(e,t){var n=Object(Ge.a)(null),r=Object(C.a)(n,2),o=r[0],i=r[1],a=Object(d.useRef)();function s(e){i(e,!0)}function c(){m.a.cancel(a.current)}return Object(d.useEffect)((function(){s("measure")}),[e]),Object(d.useEffect)((function(){"measure"===o&&t(),o&&(a.current=Object(m.a)(Object($e.a)(Object(qe.a)().mark((function e(){var t,n;return Object(qe.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Qe.indexOf(o),(n=Qe[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),Object(d.useEffect)((function(){return function(){c()}}),[]),[o,function(e){c(),a.current=Object(m.a)((function(){s((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){u&&z(b())})),V=Object(C.a)(F,2),B=V[0],H=V[1],W=Object(d.useState)(0),U=Object(C.a)(W,2),K=U[0],Y=U[1],q=Object(d.useRef)();function $(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}function G(e,t){var n=v(t);M!==n&&R(n),Y((function(e){return e+1})),"align"===B&&(null===y||void 0===y||y(e,t))}Object(Fe.a)((function(){"alignPre"===B&&Y(0)}),[B]),Object(Fe.a)((function(){"align"===B&&(K<3?$():H((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[K]);var Q=Object(r.a)({},P(e));function X(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Q[e];Q[e]=function(e,n){return H(),null===t||void 0===t?void 0:t(e,n)}})),d.useEffect((function(){Q.motionName||"motion"!==B||H()}),[Q.motionName,B]),d.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var J=Object(r.a)(Object(r.a)({},L),{},{zIndex:l,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},s),Z=!0;null===p||void 0===p||!p.points||"align"!==B&&"stable"!==B||(Z=!1);var ee=c;return d.Children.count(c)>1&&(ee=d.createElement("div",{className:"".concat(i,"-content")},c)),d.createElement(S.b,Object(o.a)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Q,{onAppearPrepare:X,onEnterPrepare:X,removeOnLeave:f,forceRender:h}),(function(e,t){var n=e.className,o=e.style,s=O()(i,a,M,n);return d.createElement(Ye,{target:g||b,key:"popup",ref:j,monitorWindowResize:!0,disabled:Z,align:p,onAlign:G},d.createElement("div",{ref:t,className:s,onMouseEnter:w,onMouseLeave:k,onMouseDownCapture:_,onTouchStartCapture:x,onClick:E,style:Object(r.a)(Object(r.a)({},o),J)},ee))}))}));Xe.displayName="PopupInner";var Je=Xe,Ze=d.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,s=e.children,c=e.mobile,l=(c=void 0===c?{}:c).popupClassName,u=c.popupStyle,f=c.popupMotion,h=void 0===f?{}:f,p=c.popupRender,m=e.onClick,g=d.useRef();d.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var b=Object(r.a)({zIndex:a},u),v=s;return d.Children.count(s)>1&&(v=d.createElement("div",{className:"".concat(n,"-content")},s)),p&&(v=p(v)),d.createElement(S.b,Object(o.a)({visible:i,ref:g,removeOnLeave:!0},h),(function(e,t){var o=e.className,i=e.style,a=O()(n,l,o);return d.createElement("div",{ref:t,className:a,onClick:m,style:Object(r.a)(Object(r.a)({},i),b)},v)}))}));Ze.displayName="MobilePopupInner";var et=Ze,tt=["visible","mobile"],nt=d.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=Object(E.a)(e,tt),s=Object(d.useState)(n),c=Object(C.a)(s,2),l=c[0],u=c[1],f=Object(d.useState)(!1),h=Object(C.a)(f,2),p=h[0],m=h[1],g=Object(r.a)(Object(r.a)({},a),{},{visible:l});Object(d.useEffect)((function(){u(n),n&&i&&m(Object(j.a)())}),[n,i]);var b=p?d.createElement(et,Object(o.a)({},g,{mobile:i,ref:t})):d.createElement(Je,Object(o.a)({},g,{ref:t}));return d.createElement("div",null,d.createElement(T,g),b)}));nt.displayName="Popup";var rt=nt,ot=d.createContext(null);function it(){}function at(){return""}function st(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];t.a=function(e){var t=function(t){Object(c.a)(f,t);var n=Object(l.a)(f);function f(e){var t,r;return Object(i.a)(this,f),t=n.call(this,e),Object(u.a)(Object(s.a)(t),"popupRef",d.createRef()),Object(u.a)(Object(s.a)(t),"triggerRef",d.createRef()),Object(u.a)(Object(s.a)(t),"portalContainer",void 0),Object(u.a)(Object(s.a)(t),"attachId",void 0),Object(u.a)(Object(s.a)(t),"clickOutsideHandler",void 0),Object(u.a)(Object(s.a)(t),"touchOutsideHandler",void 0),Object(u.a)(Object(s.a)(t),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(s.a)(t),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(s.a)(t),"mouseDownTimeout",void 0),Object(u.a)(Object(s.a)(t),"focusTime",void 0),Object(u.a)(Object(s.a)(t),"preClickTime",void 0),Object(u.a)(Object(s.a)(t),"preTouchTime",void 0),Object(u.a)(Object(s.a)(t),"delayTimer",void 0),Object(u.a)(Object(s.a)(t),"hasPopupMouseDown",void 0),Object(u.a)(Object(s.a)(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),Object(u.a)(Object(s.a)(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),Object(u.a)(Object(s.a)(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(u.a)(Object(s.a)(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),Object(u.a)(Object(s.a)(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(g.a)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),Object(u.a)(Object(s.a)(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),Object(u.a)(Object(s.a)(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),Object(u.a)(Object(s.a)(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),Object(u.a)(Object(s.a)(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),Object(u.a)(Object(s.a)(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),Object(u.a)(Object(s.a)(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),Object(u.a)(Object(s.a)(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),Object(u.a)(Object(s.a)(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),Object(u.a)(Object(s.a)(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),o=t.getPopupDomNode();Object(g.a)(r,n)&&!t.isContextMenuOnly()||Object(g.a)(o,n)||t.hasPopupMouseDown||t.close()}})),Object(u.a)(Object(s.a)(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=Object(b.a)(t.triggerRef.current);if(n)return n}catch(r){}return p.a.findDOMNode(Object(s.a)(t))})),Object(u.a)(Object(s.a)(t),"getPopupClassNameFromAlign",(function(e){var n=[],r=t.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,c=r.getPopupClassNameFromAlign;return o&&i&&n.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(x(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),c&&n.push(c(e)),n.join(" ")})),Object(u.a)(Object(s.a)(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,r=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,s=e.popupMotion,c=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,f=e.mask,h=e.maskAnimation,p=e.maskTransitionName,m=e.maskMotion,g=e.zIndex,b=e.popup,v=e.stretch,y=e.alignPoint,w=e.mobile,k=e.forceRender,_=e.onPopupClick,O=t.state,x=O.popupVisible,C=O.point,E=t.getPopupAlign(),j={};return t.isMouseEnterToShow()&&(j.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(j.onMouseLeave=t.onPopupMouseLeave),j.onMouseDown=t.onPopupMouseDown,j.onTouchStart=t.onPopupMouseDown,d.createElement(rt,Object(o.a)({prefixCls:n,destroyPopupOnHide:r,visible:x,point:y&&C,className:i,align:E,onAlign:a,animation:c,getClassNameFromAlign:t.getPopupClassNameFromAlign},j,{stretch:v,getRootDomNode:t.getRootDomNode,style:u,mask:f,zIndex:g,transitionName:l,maskAnimation:h,maskTransitionName:p,maskMotion:m,ref:t.popupRef,motion:s,mobile:w,forceRender:k,onClick:_}),"function"===typeof b?b():b)})),Object(u.a)(Object(s.a)(t),"attachParent",(function(e){m.a.cancel(t.attachId);var n,r=t.props,o=r.getPopupContainer,i=r.getDocument,a=t.getRootDomNode();o?(a||0===o.length)&&(n=o(a)):n=i(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=Object(m.a)((function(){t.attachParent(e)}))})),Object(u.a)(Object(s.a)(t),"getContainer",(function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer})),Object(u.a)(Object(s.a)(t),"setPoint",(function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),Object(u.a)(Object(s.a)(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),Object(u.a)(Object(s.a)(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),r="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:r,popupVisible:r},ct.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return Object(a.a)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(y.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(y.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(y.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(y.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),m.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return Object(r.a)(Object(r.a)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,o=n.children,i=n.forceRender,a=n.alignPoint,s=n.className,c=n.autoDestroy,l=d.Children.only(o),u={key:"trigger"};this.isContextMenuToShow()?u.onContextMenu=this.onContextMenu:u.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(u.onClick=this.onClick,u.onMouseDown=this.onMouseDown,u.onTouchStart=this.onTouchStart):(u.onClick=this.createTwoChains("onClick"),u.onMouseDown=this.createTwoChains("onMouseDown"),u.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(u.onMouseEnter=this.onMouseEnter,a&&(u.onMouseMove=this.onMouseMove)):u.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?u.onMouseLeave=this.onMouseLeave:u.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(u.onFocus=this.onFocus,u.onBlur=this.onBlur):(u.onFocus=this.createTwoChains("onFocus"),u.onBlur=this.createTwoChains("onBlur"));var f=O()(l&&l.props&&l.props.className,s);f&&(u.className=f);var h=Object(r.a)({},u);Object(v.c)(l)&&(h.ref=Object(v.a)(this.triggerRef,l.ref));var p,m=d.cloneElement(l,h);return(t||this.popupRef.current||i)&&(p=d.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&c&&(p=null),d.createElement(ot.Provider,{value:this.triggerContextValue},m,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),f}(d.Component);return Object(u.a)(t,"contextType",ot),Object(u.a)(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:st,onPopupVisibleChange:it,afterPopupVisibleChange:it,onPopupAlign:it,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}(k)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),o=n.n(r),i=n(22),a=n.n(i);function s(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o.a.Component?a.a.findDOMNode(e):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(47),o=n(93),i="data-rc-order",a="data-rc-priority",s="rc-util-key",c=new Map;function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):s}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(r.a)())return null;var n=t.csp,o=t.prepend,s=t.priority,c=void 0===s?0:s,l=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),f="prependQueue"===l,h=document.createElement("style");h.setAttribute(i,l),f&&c&&h.setAttribute(a,"".concat(c)),null!==n&&void 0!==n&&n.nonce&&(h.nonce=null===n||void 0===n?void 0:n.nonce),h.innerHTML=e;var p=u(t),m=p.firstChild;if(o){if(f){var g=d(p).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(a)||0);return c>=t}));if(g.length)return p.insertBefore(h,g[g.length-1].nextSibling),h}p.insertBefore(h,m)}else p.appendChild(h);return h}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(u(t)).find((function(n){return n.getAttribute(l(t))===e}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t);n&&u(t).removeChild(n)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!Object(o.a)(document,n)){var r=f("",t),i=r.parentNode;c.set(e,i),e.removeChild(r)}}(u(n),n);var r=h(t,n);if(r){var i,a,s;if(null!==(i=n.csp)&&void 0!==i&&i.nonce&&r.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))r.nonce=null===(s=n.csp)||void 0===s?void 0:s.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var d=f(e,n);return d.setAttribute(l(n),t),d}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return l}));var r=n(5);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"===typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(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(o(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(o(1));return n(l)(e,t)}if("function"!==typeof e)throw new Error(o(2));var a=e,u=t,d=[],f=d,h=!1;function p(){f===d&&(f=d.slice())}function m(){if(h)throw new Error(o(3));return u}function g(e){if("function"!==typeof e)throw new Error(o(4));if(h)throw new Error(o(5));var t=!0;return p(),f.push(e),function(){if(t){if(h)throw new Error(o(6));t=!1,p();var n=f.indexOf(e);f.splice(n,1),d=null}}}function b(e){if(!c(e))throw new Error(o(7));if("undefined"===typeof e.type)throw new Error(o(8));if(h)throw new Error(o(9));try{h=!0,u=a(u,e)}finally{h=!1}for(var t=d=f,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:s.INIT}),(r={dispatch:b,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(o(10));a=e,b({type:s.REPLACE})}})[i]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},r}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var a,c=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:s.INIT}))throw new Error(o(12));if("undefined"===typeof n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(o(13))}))}(n)}catch(l){a=l}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<c.length;s++){var l=c[s],u=n[l],d=e[l],f=u(d,t);if("undefined"===typeof f){t&&t.type;throw new Error(o(14))}i[l]=f,r=r||f!==d}return(r=r||c.length!==Object.keys(e).length)?i:e}}function d(){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 f(){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),i=function(){throw new Error(o(15))},a={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return i=d.apply(void 0,s)(n.dispatch),Object(r.a)(Object(r.a)({},n),{},{dispatch:i})}}}},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(6),a=n(8),s=n(1),c=n.n(s),l=n(7),u=n.n(l),d=n(64),f=n(39),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function m(e,t){var n=e.prefixCls,i=e.invalidate,c=e.item,l=e.renderItem,f=e.responsive,m=e.responsiveDisabled,g=e.registerSize,b=e.itemKey,v=e.className,y=e.style,w=e.children,k=e.display,_=e.order,O=e.component,x=void 0===O?"div":O,C=Object(a.a)(e,h),E=f&&!k;function j(e){g(b,e)}s.useEffect((function(){return function(){j(null)}}),[]);var S,P=l&&c!==p?l(c):w;i||(S={opacity:E?0:1,height:E?0:p,overflowY:E?"hidden":p,order:f?_:p,pointerEvents:E?"none":p,position:E?"absolute":p});var T={};E&&(T["aria-hidden"]=!0);var N=s.createElement(x,Object(r.a)({className:u()(!i&&n,v),style:Object(o.a)(Object(o.a)({},S),y)},T,C,{ref:t}),P);return f&&(N=s.createElement(d.a,{onResize:function(e){j(e.offsetWidth)},disabled:m},N)),N}var g=s.forwardRef(m);g.displayName="Item";var b=g,v=n(80),y=n(22),w=n(23);function k(){var e=s.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)Object(w.a)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){Object(y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function _(e,t){var n=s.useState(t),r=Object(i.a)(n,2),o=r[0],a=r[1];return[o,Object(v.a)((function(t){e((function(){a(t)}))}))]}var O=c.a.createContext(null),x=["component"],C=["className"],E=["className"],j=function(e,t){var n=s.useContext(O);if(!n){var o=e.component,i=void 0===o?"div":o,c=Object(a.a)(e,x);return s.createElement(i,Object(r.a)({},c,{ref:t}))}var l=n.className,d=Object(a.a)(n,C),f=e.className,h=Object(a.a)(e,E);return s.createElement(O.Provider,{value:null},s.createElement(b,Object(r.a)({ref:t,className:u()(l,f)},d,h)))},S=s.forwardRef(j);S.displayName="RawItem";var P=S,T=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],N="responsive",A="invalidate";function M(e){return"+ ".concat(e.length," ...")}function R(e,t){var n=e.prefixCls,c=void 0===n?"rc-overflow":n,l=e.data,h=void 0===l?[]:l,p=e.renderItem,m=e.renderRawItem,g=e.itemKey,v=e.itemWidth,y=void 0===v?10:v,w=e.ssr,x=e.style,C=e.className,E=e.maxCount,j=e.renderRest,S=e.renderRawRest,P=e.suffix,R=e.component,I=void 0===R?"div":R,D=e.itemComponent,L=e.onVisibleChange,z=Object(a.a)(e,T),F="full"===w,V=k(),B=_(V,null),H=Object(i.a)(B,2),W=H[0],U=H[1],K=W||0,Y=_(V,new Map),q=Object(i.a)(Y,2),$=q[0],G=q[1],Q=_(V,0),X=Object(i.a)(Q,2),J=X[0],Z=X[1],ee=_(V,0),te=Object(i.a)(ee,2),ne=te[0],re=te[1],oe=_(V,0),ie=Object(i.a)(oe,2),ae=ie[0],se=ie[1],ce=Object(s.useState)(null),le=Object(i.a)(ce,2),ue=le[0],de=le[1],fe=Object(s.useState)(null),he=Object(i.a)(fe,2),pe=he[0],me=he[1],ge=s.useMemo((function(){return null===pe&&F?Number.MAX_SAFE_INTEGER:pe||0}),[pe,W]),be=Object(s.useState)(!1),ve=Object(i.a)(be,2),ye=ve[0],we=ve[1],ke="".concat(c,"-item"),_e=Math.max(J,ne),Oe=E===N,xe=h.length&&Oe,Ce=E===A,Ee=xe||"number"===typeof E&&h.length>E,je=Object(s.useMemo)((function(){var e=h;return xe?e=null===W&&F?h:h.slice(0,Math.min(h.length,K/y)):"number"===typeof E&&(e=h.slice(0,E)),e}),[h,y,W,E,xe]),Se=Object(s.useMemo)((function(){return xe?h.slice(ge+1):h.slice(je.length)}),[h,je,xe,ge]),Pe=Object(s.useCallback)((function(e,t){var n;return"function"===typeof g?g(e):null!==(n=g&&(null===e||void 0===e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Te=Object(s.useCallback)(p||function(e){return e},[p]);function Ne(e,t,n){(pe!==e||void 0!==t&&t!==ue)&&(me(e),n||(we(e<h.length-1),null===L||void 0===L||L(e)),void 0!==t&&de(t))}function Ae(e,t){G((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Me(e){return $.get(Pe(je[e],e))}Object(f.a)((function(){if(K&&"number"===typeof _e&&je){var e=ae,t=je.length,n=t-1;if(!t)return void Ne(0,null);for(var r=0;r<t;r+=1){var o=Me(r);if(F&&(o=o||0),void 0===o){Ne(r-1,void 0,!0);break}if(e+=o,0===n&&e<=K||r===n-1&&e+Me(n)<=K){Ne(n,null);break}if(e+_e>K){Ne(r-1,e-o-ae+ne);break}}P&&Me(0)+ae>K&&de(null)}}),[K,$,ne,ae,Pe,je]);var Re=ye&&!!Se.length,Ie={};null!==ue&&xe&&(Ie={position:"absolute",left:ue,top:0});var De,Le={prefixCls:ke,responsive:xe,component:D,invalidate:Ce},ze=m?function(e,t){var n=Pe(e,t);return s.createElement(O.Provider,{key:n,value:Object(o.a)(Object(o.a)({},Le),{},{order:t,item:e,itemKey:n,registerSize:Ae,display:t<=ge})},m(e,t))}:function(e,t){var n=Pe(e,t);return s.createElement(b,Object(r.a)({},Le,{order:t,key:n,item:e,renderItem:Te,itemKey:n,registerSize:Ae,display:t<=ge}))},Fe={order:Re?ge:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:function(e,t){re(t),Z(ne)},display:Re};if(S)S&&(De=s.createElement(O.Provider,{value:Object(o.a)(Object(o.a)({},Le),Fe)},S(Se)));else{var Ve=j||M;De=s.createElement(b,Object(r.a)({},Le,Fe),"function"===typeof Ve?Ve(Se):Ve)}var Be=s.createElement(I,Object(r.a)({className:u()(!Ce&&c,C),style:x,ref:t},z),je.map(ze),Ee?De:null,P&&s.createElement(b,Object(r.a)({},Le,{responsive:Oe,responsiveDisabled:!xe,order:ge,className:"".concat(ke,"-suffix"),registerSize:function(e,t){se(t)},display:!0,style:Ie}),P));return Oe&&(Be=s.createElement(d.a,{onResize:function(e,t){U(t.clientWidth)},disabled:!xe},Be)),Be}var I=s.forwardRef(R);I.displayName="Overflow",I.Item=P,I.RESPONSIVE=N,I.INVALIDATE=A;var D=I;t.a=D},,function(e,t,n){"use strict";function r(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(8),a=n(5),s=n(27),c=n(25),l=n(13),u=n(37),d=n(38),f=n(7),h=n.n(f),p=n(69),m=n(1),g=n(133),b=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),s=[],c=0;c<n;c+=1){var l;s.push(m.createElement("span",{key:c,className:h()(a,(l={},Object(o.a)(l,"".concat(a,"-start"),r[c]),Object(o.a)(l,"".concat(a,"-end"),i[c]),l))}))}return m.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},s)},v=m.memo(b),y=n(65),w=n(29),k=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],_="open",O="close",x=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.cacheIndent=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Object(w.b)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Object(w.b)(e.props))},e.onSelect=function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,Object(w.b)(e.props))},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){var a=!o;i(t,Object(w.b)(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Object(w.b)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Object(w.b)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Object(w.b)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(l.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(r){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(l.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(l.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(l.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(l.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(l.a)(e))},e.onExpand=function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,Object(w.b)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?_:O},e.hasChildren=function(){var t=e.props.eventKey,n=e.props.context.keyEntities;return!!((Object(y.a)(n,t)||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,s=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||s(Object(w.b)(e.props)))},e.isDraggable=function(){var t=e.props,n=t.data,r=t.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))},e.renderDragHandler=function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return(null===n||void 0===n?void 0:n.icon)?m.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"===typeof o?o(Object(a.a)(Object(a.a)({},e.props),{},{isLeaf:t})):o},e.renderSwitcher=function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?m.createElement("span",{className:h()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var o=h()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?_:O)),i=e.renderSwitcherIconDom(!1);return!1!==i?m.createElement("span",{onClick:e.onExpand,className:o},i):null},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),s=e.isCheckable();if(!s)return null;var c="boolean"!==typeof s?s:null;return m.createElement("span",{className:h()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},c)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return m.createElement("span",{className:h()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,o=e.props,i=o.title,a=void 0===i?"---":i,s=o.selected,c=o.icon,l=o.loading,u=o.data,d=e.props.context,f=d.prefixCls,p=d.showIcon,g=d.icon,b=d.loadData,v=d.titleRender,y=e.isDisabled(),w="".concat(f,"-node-content-wrapper");if(p){var k=c||g;t=k?m.createElement("span",{className:h()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"===typeof k?k(e.props):k):e.renderIcon()}else b&&l&&(t=e.renderIcon());n="function"===typeof a?a(u):v?v(u):a;var _=m.createElement("span",{className:"".concat(f,"-title")},n);return m.createElement("span",{ref:e.setSelectHandle,title:"string"===typeof a?a:"",className:h()("".concat(w),"".concat(w,"-").concat(e.getNodeState()||"normal"),!y&&(s||r)&&"".concat(f,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,_,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,s=o.dropPosition,c=o.prefixCls,l=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction,h=!n&&!!i&&d===r,p=null!==l&&void 0!==l?l:e.cacheIndent;return e.cacheIndent=l,h?u({dropPosition:s,dropLevelOffset:a,indent:p,prefixCls:c,direction:f}):null},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,a=t.className,s=t.style,c=t.dragOver,l=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,g=t.isEnd,b=t.expanded,_=t.selected,O=t.checked,x=t.halfChecked,C=t.loading,E=t.domRef,j=t.active,S=(t.data,t.onMouseMove),P=t.selectable,T=Object(i.a)(t,k),N=this.props.context,A=N.prefixCls,M=N.filterTreeNode,R=N.keyEntities,I=N.dropContainerKey,D=N.dropTargetKey,L=N.draggingNodeKey,z=this.isDisabled(),F=Object(p.a)(T,{aria:!0,data:!0}),V=(Object(y.a)(R,n)||{}).level,B=g[g.length-1],H=this.isDraggable(),W=!z&&H,U=L===n,K=void 0!==P?{"aria-selected":!!P}:void 0;return m.createElement("div",Object(r.a)({ref:E,className:h()(a,"".concat(A,"-treenode"),(e={},Object(o.a)(e,"".concat(A,"-treenode-disabled"),z),Object(o.a)(e,"".concat(A,"-treenode-switcher-").concat(b?"open":"close"),!d),Object(o.a)(e,"".concat(A,"-treenode-checkbox-checked"),O),Object(o.a)(e,"".concat(A,"-treenode-checkbox-indeterminate"),x),Object(o.a)(e,"".concat(A,"-treenode-selected"),_),Object(o.a)(e,"".concat(A,"-treenode-loading"),C),Object(o.a)(e,"".concat(A,"-treenode-active"),j),Object(o.a)(e,"".concat(A,"-treenode-leaf-last"),B),Object(o.a)(e,"".concat(A,"-treenode-draggable"),H),Object(o.a)(e,"dragging",U),Object(o.a)(e,"drop-target",D===n),Object(o.a)(e,"drop-container",I===n),Object(o.a)(e,"drag-over",!z&&c),Object(o.a)(e,"drag-over-gap-top",!z&&l),Object(o.a)(e,"drag-over-gap-bottom",!z&&u),Object(o.a)(e,"filter-node",M&&M(Object(w.b)(this.props))),e)),style:s,draggable:W,"aria-grabbed":U,onDragStart:W?this.onDragStart:void 0,onDragEnter:H?this.onDragEnter:void 0,onDragOver:H?this.onDragOver:void 0,onDragLeave:H?this.onDragLeave:void 0,onDrop:H?this.onDrop:void 0,onDragEnd:H?this.onDragEnd:void 0,onMouseMove:S},K,F),m.createElement(v,{prefixCls:A,level:V,isStart:f,isEnd:g}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(m.Component),C=function(e){return m.createElement(g.a.Consumer,null,(function(t){return m.createElement(x,Object(r.a)({},e,{context:t}))}))};C.displayName="TreeNode",C.isTreeNode=1;t.a=C},function(e,t,n){"use strict";var r=n(413);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return b}));var r=n(12),o=n(63),i=n(1),a=n.n(i),s=n(78),c=n(3),l=n(56),u=n(83),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.a)(t.props),t}return Object(o.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},h=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},m=a.a.forwardRef;"undefined"===typeof m&&(m=p);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=Object(l.a)(e,["innerRef","navigate","onClick"]),s=i.target,u=Object(c.a)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=p!==m&&t||n,a.a.createElement("a",u)}));var b=m((function(e,t){var n=e.component,o=void 0===n?g:n,i=e.replace,d=e.to,b=e.innerRef,v=Object(l.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(u.a)(!1);var n=e.history,r=h(f(d,e.location),e.location),l=r?n.createHref(r):"",g=Object(c.a)({},v,{href:l,navigate:function(){var t=f(d,e.location),r=Object(s.e)(e.location)===Object(s.e)(h(t));(i||r?n.replace:n.push)(t)}});return p!==m?g.ref=t||b:g.innerRef=b,a.a.createElement(o,g)}))})),v=function(e){return e},y=a.a.forwardRef;"undefined"===typeof y&&(y=v);y((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,s=void 0===i?"active":i,d=e.activeStyle,p=e.className,m=e.exact,g=e.isActive,w=e.location,k=e.sensitive,_=e.strict,O=e.style,x=e.to,C=e.innerRef,E=Object(l.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(u.a)(!1);var n=w||e.location,i=h(f(x,n),n),l=i.pathname,j=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),S=j?Object(r.e)(n.pathname,{path:j,exact:m,sensitive:k,strict:_}):null,P=!!(g?g(S,n):S),T="function"===typeof p?p(P):p,N="function"===typeof O?O(P):O;P&&(T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(T,s),N=Object(c.a)({},N,d));var A=Object(c.a)({"aria-current":P&&o||null,className:T,style:N,to:i},E);return v!==y?A.ref=t||C:A.innerRef=C,a.a.createElement(b,A)}))}))},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(7),a=n.n(i),s=n(1),c=n(66),l=n(67),u=function(){var e=(0,s.useContext(c.b).getPrefixCls)("empty-img-default");return s.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),s.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),s.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),s.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),s.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),s.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},d=function(){var e=(0,s.useContext(c.b).getPrefixCls)("empty-img-simple");return s.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=s.createElement(u,null),p=s.createElement(d,null),m=function(e){var t=e.className,n=e.prefixCls,i=e.image,u=void 0===i?h:i,d=e.description,m=e.children,g=e.imageStyle,b=f(e,["className","prefixCls","image","description","children","imageStyle"]),v=s.useContext(c.b),y=v.getPrefixCls,w=v.direction;return s.createElement(l.a,{componentName:"Empty"},(function(e){var i=y("empty",n),c="undefined"!==typeof d?d:e.description,l="string"===typeof c?c:"empty",f=null;return f="string"===typeof u?s.createElement("img",{alt:l,src:u}):u,s.createElement("div",Object(o.a)({className:a()(i,Object(r.a)(Object(r.a)({},"".concat(i,"-normal"),u===p),"".concat(i,"-rtl"),"rtl"===w),t)},b),s.createElement("div",{className:"".concat(i,"-image"),style:g},f),c&&s.createElement("div",{className:"".concat(i,"-description")},c),m&&s.createElement("div",{className:"".concat(i,"-footer")},m))}))};m.PRESENTED_IMAGE_DEFAULT=h,m.PRESENTED_IMAGE_SIMPLE=p;t.a=m},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";e.exports=n(291)},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t,n){"use strict";var r=n(268),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";t.a=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},function(e,t,n){"use strict";var r=n(4),o=n(6),i=n(3),a=n(7),s=n.n(a),c=n(10),l=n(5),u=n(8),d=n(1),f=n(96),h=n(183);function p(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,c=e.className,l=e.style;return d.createElement("div",{className:s()("".concat(o,"-content"),c),style:l},!1!==t&&d.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),d.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"===typeof r?r():r))}var m=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,m=e.mouseLeaveDelay,g=void 0===m?.1:m,b=e.overlayStyle,v=e.prefixCls,y=void 0===v?"rc-tooltip":v,w=e.children,k=e.onVisibleChange,_=e.afterVisibleChange,O=e.transitionName,x=e.animation,C=e.motion,E=e.placement,j=void 0===E?"right":E,S=e.align,P=void 0===S?{}:S,T=e.destroyTooltipOnHide,N=void 0!==T&&T,A=e.defaultVisible,M=e.getTooltipContainer,R=e.overlayInnerStyle,I=e.arrowContent,D=e.overlay,L=e.id,z=e.showArrow,F=Object(u.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),V=Object(d.useRef)(null);Object(d.useImperativeHandle)(t,(function(){return V.current}));var B=Object(l.a)({},F);"visible"in e&&(B.popupVisible=e.visible);var H=!1,W=!1;if("boolean"===typeof N)H=N;else if(N&&"object"===Object(c.a)(N)){var U=N.keepParent;H=!0===U,W=!1===U}return d.createElement(f.a,Object(i.a)({popupClassName:n,prefixCls:y,popup:function(){return d.createElement(p,{showArrow:z,arrowContent:I,key:"content",prefixCls:y,id:L,overlayInnerStyle:R},D)},action:o,builtinPlacements:h.a,popupPlacement:j,ref:V,popupAlign:P,getPopupContainer:M,onPopupVisibleChange:k,afterPopupVisibleChange:_,popupTransitionName:O,popupAnimation:x,popupMotion:C,defaultPopupVisible:A,destroyPopupOnHide:H,autoDestroy:W,mouseLeaveDelay:g,popupStyle:b,mouseEnterDelay:s},B),w)},g=Object(d.forwardRef)(m),b=n(33),v=n(66),y=n(119),w=n(60),k=n(184),_=n(26),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=new RegExp("^(".concat(y.a.join("|"),")(-inverse)?$"));function C(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){var r=function(e,t){var n={},r=Object(i.a)({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=r.picked,a=r.omitted,c=Object(i.a)(Object(i.a)({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),l=Object(i.a)(Object(i.a)({},a),{pointerEvents:"none"}),u=Object(_.a)(e,{style:l,className:null});return d.createElement("span",{style:c,className:s()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},u)}return e}var E=d.forwardRef((function(e,t){var n=d.useContext(v.b),a=n.getPopupContainer,c=n.getPrefixCls,l=n.direction;var u=Object(b.a)(!1,{value:void 0!==e.open?e.open:e.visible,defaultValue:void 0!==e.defaultOpen?e.defaultOpen:e.defaultVisible}),f=Object(o.a)(u,2),h=f[0],p=f[1],m=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},y=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=void 0!==n&&n,o=e.autoAdjustOverflow,i=void 0===o||o;return t||Object(k.a)({arrowPointAtCenter:r,autoAdjustOverflow:i})},E=e.getPopupContainer,j=e.placement,S=void 0===j?"top":j,P=e.mouseEnterDelay,T=void 0===P?.1:P,N=e.mouseLeaveDelay,A=void 0===N?.1:N,M=O(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),R=e.prefixCls,I=e.openClassName,D=e.getTooltipContainer,L=e.overlayClassName,z=e.color,F=e.overlayInnerStyle,V=e.children,B=c("tooltip",R),H=c(),W=h;"open"in e||"visible"in e||!m()||(W=!1);var U=C(Object(_.c)(V)&&!Object(_.b)(V)?V:d.createElement("span",null,V),B),K=U.props,Y=K.className&&"string"!==typeof K.className?K.className:s()(K.className,Object(r.a)({},I||"".concat(B,"-open"),!0)),q=s()(L,Object(r.a)(Object(r.a)({},"".concat(B,"-rtl"),"rtl"===l),"".concat(B,"-").concat(z),z&&x.test(z))),$=F,G={};return z&&!x.test(z)&&($=Object(i.a)(Object(i.a)({},F),{background:z}),G={"--antd-arrow-background-color":z}),d.createElement(g,Object(i.a)({},M,{placement:S,mouseEnterDelay:T,mouseLeaveDelay:A,prefixCls:B,overlayClassName:q,getTooltipContainer:E||D||a,ref:t,builtinPlacements:y(),overlay:function(){var t=e.title,n=e.overlay;return 0===t?t:n||t||""}(),visible:W,onVisibleChange:function(t){var n,r;p(!m()&&t),m()||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},onPopupAlign:function(e,t){var n=y(),r=Object.keys(n).find((function(e){var r,o;return n[e].points[0]===(null===(r=t.points)||void 0===r?void 0:r[0])&&n[e].points[1]===(null===(o=t.points)||void 0===o?void 0:o[1])}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};/top|Bottom/.test(r)?i.top="".concat(o.height-t.offset[1],"px"):/Top|bottom/.test(r)&&(i.top="".concat(-t.offset[1],"px")),/left|Right/.test(r)?i.left="".concat(o.width-t.offset[0],"px"):/right|Left/.test(r)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:$,arrowContent:d.createElement("span",{className:"".concat(B,"-arrow-content"),style:G}),motion:{motionName:Object(w.c)(H,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),W?Object(_.a)(U,{className:Y}):U)}));t.a=E},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="CloseOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(3),o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},i=n(180),a={lang:Object(r.a)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:Object(r.a)({},i.a)};t.a=a},function(e,t,n){"use strict";var r;function o(e){if("undefined"===typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(17),o=n(65);function i(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function s(e,t,n,s){var c,l=[];c=s||a;var u,d=new Set(e.filter((function(e){var t=!!Object(o.a)(n,e);return t||l.push(e),t}))),f=new Map,h=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=f.get(r);o||(o=new Set,f.set(r,o)),o.add(t),h=Math.max(h,r)})),Object(r.a)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),u=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,s=0;s<=n;s+=1)(t.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var c=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),s||!n&&!a.has(t)||(s=!0)})),i&&o.add(t.key),s&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(d,f,h,c):function(e,t,n,r,o){for(var a=new Set(e),s=new Set(t),c=0;c<=r;c+=1)(n.get(c)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||s.has(t)||o(n)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));s=new Set;for(var l=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var r=!0,i=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),i||!n&&!s.has(t)||(i=!0)})),r||a.delete(t.key),i&&s.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(s,a))}}(d,t.halfCheckedKeys,f,h,c),u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),o=n(1),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=o.createContext(null),s=function(e){var t=e.children,n=i(e,["children"]),s=o.useContext(a),c=o.useMemo((function(){return Object(r.a)(Object(r.a)({},s),n)}),[s,n.prefixCls,n.mode,n.selectable]);return o.createElement(a.Provider,{value:c},t)};t.b=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(50),o=Object(r.a)("success","processing","error","default","warning"),i=Object(r.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(3),o=n(81),i=Object(r.a)({},o.a.Modal);function a(e){i=e?Object(r.a)(Object(r.a)({},i),e):Object(r.a)({},o.a.Modal)}function s(){return i}},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="RightOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r="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},o="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(45),o=n(151),i=n(34);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,c=null,l=!1,f=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.a[e])e=o.a[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),a:Object(r.a)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:Object(r.e)(n[1]),g:Object(r.e)(n[2]),b:Object(r.e)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),a:Object(r.a)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:Object(r.e)(n[1]+n[1]),g:Object(r.e)(n[2]+n[2]),b:Object(r.e)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=Object(r.i)(e.r,e.g,e.b),l=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=Object(i.d)(e.s),s=Object(i.d)(e.v),t=Object(r.c)(e.h,a,s),l=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=Object(i.d)(e.s),c=Object(i.d)(e.l),t=Object(r.b)(e.h,a,c),l=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Object(i.b)(n),{ok:l,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},,,function(e,t,n){var r=n(308),o=n(313);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(238);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(147);function o(e,t){if(e){if("string"===typeof e)return Object(r.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)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(1),o=n(130),i=n(90);t.a=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Object(r.useRef)({}),n=Object(o.a)();return Object(r.useEffect)((function(){var r=i.a.subscribe((function(r){t.current=r,e&&n()}));return function(){return i.a.unsubscribe(r)}}),[]),t.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(6),o=n(1);function i(){var e=o.useReducer((function(e){return e+1}),0);return Object(r.a)(e,2)[1]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(170),o=n(173),i=n(128),a=n(171);function s(e){return Object(r.a)(e)||Object(o.a)(e)||Object(i.a)(e)||Object(a.a)()}},function(e,t,n){"use strict";var r=n(1),o=Object(r.createContext)({});t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o=r.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9),o=n(3),i=n(6),a=n(1),s=n(189);function c(e){var t=a.useRef({}),n=a.useState([]),c=Object(i.a)(n,2),l=c[0],u=c[1];return[function(n){var i=!0;e.add(n,(function(e,n){var c=n.key;if(e&&(!t.current[c]||i)){var l=a.createElement(s.a,Object(o.a)({},n,{holder:e}));t.current[c]=l,u((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(Object(r.a)(e),[l]);var o=Object(r.a)(e);return o[t]=l,o}))}i=!1}))},a.createElement(a.Fragment,null,l)]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M128 192l128 128 128-128z"}}]})(e)}function i(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"}}]})(e)}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=n(152);function i(){return r.useContext(o.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(3),o=n(4),i=n(6),a=n(10),s=n(7),c=n.n(s),l=n(32),u=n(1),d=n.n(u),f=n(66),h=n(58),p=n(49),m=n(55),g=n(26),b=n(50),v=n(198),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=u.createContext(void 0),k=function(e){var t=u.useContext(f.b),n=t.getPrefixCls,i=t.direction,a=e.prefixCls,s=e.size,l=e.className,d=y(e,["prefixCls","size","className"]),h=n("btn-group",a),p="";switch(s){case"large":p="lg";break;case"small":p="sm"}var m=c()(h,Object(o.a)(Object(o.a)({},"".concat(h,"-").concat(p),p),"".concat(h,"-rtl"),"rtl"===i),l);return u.createElement(w.Provider,{value:s},u.createElement("div",Object(r.a)({},d,{className:m})))},_=n(92),O=n(52),x=function(){return{width:0,opacity:0,transform:"scale(0)"}},C=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},E=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?d.a.createElement("span",{className:"".concat(t,"-loading-icon")},d.a.createElement(_.a,null)):d.a.createElement(O.b,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:x,onAppearActive:C,onEnterStart:x,onEnterActive:C,onLeaveStart:C,onLeaveActive:x},(function(e,n){var r=e.className,o=e.style;return d.a.createElement("span",{className:"".concat(t,"-loading-icon"),style:o,ref:n},d.a.createElement(_.a,{className:r}))}))},j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},S=/^[\u4e00-\u9fa5]{2}$/,P=S.test.bind(S);function T(e){return"text"===e||"link"===e}function N(e,t){var n=!1,r=[];return u.Children.forEach(e,(function(e){var t=Object(a.a)(e),o="string"===t||"number"===t;if(n&&o){var i=r.length-1,s=r[i];r[i]="".concat(s).concat(e)}else r.push(e);n=o})),u.Children.map(r,(function(e){return function(e,t){if(null!==e&&void 0!==e){var n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&"string"===typeof e.type&&P(e.props.children)?Object(g.a)(e,{children:e.props.children.split("").join(n)}):"string"===typeof e?P(e)?u.createElement("span",null,e.split("").join(n)):u.createElement("span",null,e):Object(g.b)(e)?u.createElement("span",null,e):e}}(e,t)}))}Object(b.a)("default","primary","ghost","dashed","link","text"),Object(b.a)("default","circle","round"),Object(b.a)("submit","button","reset");function A(e){return"danger"===e?{danger:!0}:{type:e}}var M=function(e,t){var n,a=e.loading,s=void 0!==a&&a,d=e.prefixCls,g=e.type,b=void 0===g?"default":g,y=e.danger,k=e.shape,_=void 0===k?"default":k,O=e.size,x=e.disabled,C=e.className,S=e.children,A=e.icon,M=e.ghost,R=void 0!==M&&M,I=e.block,D=void 0!==I&&I,L=e.htmlType,z=void 0===L?"button":L,F=j(e,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),V=u.useContext(p.b),B=u.useContext(h.b),H=null!==x&&void 0!==x?x:B,W=u.useContext(w),U=u.useState(!!s),K=Object(i.a)(U,2),Y=K[0],q=K[1],$=u.useState(!1),G=Object(i.a)($,2),Q=G[0],X=G[1],J=u.useContext(f.b),Z=J.getPrefixCls,ee=J.autoInsertSpaceInButton,te=J.direction,ne=t||u.createRef(),re=function(){return 1===u.Children.count(S)&&!A&&!T(b)},oe="boolean"===typeof s?s:(null===s||void 0===s?void 0:s.delay)||!0;u.useEffect((function(){var e=null;return"number"===typeof oe?e=window.setTimeout((function(){e=null,q(oe)}),oe):q(oe),function(){e&&(window.clearTimeout(e),e=null)}}),[oe]),u.useEffect((function(){if(ne&&ne.current&&!1!==ee){var e=ne.current.textContent;re()&&P(e)?Q||X(!0):Q&&X(!1)}}),[ne]);var ie=function(t){var n=e.onClick;Y||H?t.preventDefault():null===n||void 0===n||n(t)},ae=Z("btn",d),se=!1!==ee,ce=Object(m.c)(ae,te),le=ce.compactSize,ue=ce.compactItemClassnames,de=le||W||O||V,fe=de&&{large:"lg",small:"sm",middle:void 0}[de]||"",he=Y?"loading":A,pe=Object(l.a)(F,["navigate"]),me=c()(ae,(n={},Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(n,"".concat(ae,"-").concat(_),"default"!==_&&_),"".concat(ae,"-").concat(b),b),"".concat(ae,"-").concat(fe),fe),"".concat(ae,"-icon-only"),!S&&0!==S&&!!he),"".concat(ae,"-background-ghost"),R&&!T(b)),"".concat(ae,"-loading"),Y),"".concat(ae,"-two-chinese-chars"),Q&&se&&!Y),"".concat(ae,"-block"),D),"".concat(ae,"-dangerous"),!!y),"".concat(ae,"-rtl"),"rtl"===te),Object(o.a)(n,"".concat(ae,"-disabled"),void 0!==pe.href&&H)),ue,C),ge=A&&!Y?A:u.createElement(E,{existIcon:!!A,prefixCls:ae,loading:!!Y}),be=S||0===S?N(S,re()&&se):null;if(void 0!==pe.href)return u.createElement("a",Object(r.a)({},pe,{className:me,onClick:ie,ref:ne}),ge,be);var ve=u.createElement("button",Object(r.a)({},F,{type:z,className:me,onClick:ie,disabled:H,ref:ne}),ge,be);return T(b)?ve:u.createElement(v.a,{disabled:!!Y},ve)},R=u.forwardRef(M);R.Group=k,R.__ANT_BUTTON=!0;t.b=R},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="SearchOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(1),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return y}));var r,o=n(53),i=n(88),a=n(10),s=n(5),c=n(22),l=Object(s.a)({},c),u=l.version,d=l.render,f=l.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(r=l.createRoot)}catch(k){}function h(e){var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Object(a.a)(t)&&(t.usingClientEntryPoint=e)}var p="__rc_react_root__";function m(e,t){r?function(e,t){h(!0);var n=t[p]||r(t);h(!1),n.render(e),t[p]=n}(e,t):function(e,t){d(e,t)}(e,t)}function g(e){return b.apply(this,arguments)}function b(){return(b=Object(i.a)(Object(o.a)().mark((function e(t){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[p])||void 0===e||e.unmount(),delete t[p]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){f(e)}function y(e){return w.apply(this,arguments)}function w(){return(w=Object(i.a)(Object(o.a)().mark((function e(t){return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",g(t));case 2:v(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(1),o=r.createContext({});t.a=o},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(162),o=n(309),i=n(310),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(294)},function(e,t,n){"use strict";var r=n(1),o=Object(r.createContext)(void 0);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(45),o=n(123),i=2,a=.16,s=.05,c=.05,l=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function h(e){var t=e.r,n=e.g,o=e.b,i=Object(r.h)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function p(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Object(r.f)(t,n,o,!1))}function m(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function g(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+s*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function b(e,t,n){var r;return(r=n?e.v+c*t:e.v-l*t)>1&&(r=1),Number(r.toFixed(2))}function v(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Object(o.a)(e),i=u;i>0;i-=1){var a=h(r),s=p(Object(o.a)({h:m(a,i,!0),s:g(a,i,!0),v:b(a,i,!0)}));n.push(s)}n.push(p(r));for(var c=1;c<=d;c+=1){var l=h(r),v=p(Object(o.a)({h:m(l,c),s:g(l,c),v:b(l,c)}));n.push(v)}return"dark"===t.theme?f.map((function(e){var r=e.index,i=e.opacity;return p(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(Object(o.a)(t.backgroundColor||"#141414"),Object(o.a)(n[r]),100*i))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},w={},k={};Object.keys(y).forEach((function(e){w[e]=v(y[e]),w[e].primary=w[e][5],k[e]=v(y[e],{theme:"dark",backgroundColor:"#141414"}),k[e].primary=k[e][5]}));w.red,w.volcano,w.gold,w.orange,w.yellow,w.lime,w.green,w.cyan,w.blue,w.geekblue,w.purple,w.magenta,w.grey},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(1),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(10),a=n(7),s=n.n(a),c=n(1),l=n(66),u=n(193),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var f=["xs","sm","md","lg","xl","xxl"],h=c.forwardRef((function(e,t){var n=c.useContext(l.b),a=n.getPrefixCls,h=n.direction,p=c.useContext(u.a),m=p.gutter,g=p.wrap,b=p.supportFlexGap,v=e.prefixCls,y=e.span,w=e.order,k=e.offset,_=e.push,O=e.pull,x=e.className,C=e.children,E=e.flex,j=e.style,S=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),P=a("col",v),T={};f.forEach((function(t){var n={},a=e[t];"number"===typeof a?n.span=a:"object"===Object(i.a)(a)&&(n=a||{}),delete S[t],T=Object(o.a)(Object(o.a)({},T),Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(P,"-").concat(t,"-").concat(n.span),void 0!==n.span),"".concat(P,"-").concat(t,"-order-").concat(n.order),n.order||0===n.order),"".concat(P,"-").concat(t,"-offset-").concat(n.offset),n.offset||0===n.offset),"".concat(P,"-").concat(t,"-push-").concat(n.push),n.push||0===n.push),"".concat(P,"-").concat(t,"-pull-").concat(n.pull),n.pull||0===n.pull),"".concat(P,"-rtl"),"rtl"===h))}));var N=s()(P,Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(P,"-").concat(y),void 0!==y),"".concat(P,"-order-").concat(w),w),"".concat(P,"-offset-").concat(k),k),"".concat(P,"-push-").concat(_),_),"".concat(P,"-pull-").concat(O),O),x,T),A={};if(m&&m[0]>0){var M=m[0]/2;A.paddingLeft=M,A.paddingRight=M}if(m&&m[1]>0&&!b){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==g||A.minWidth||(A.minWidth=0)),c.createElement("div",Object(o.a)({},S,{style:Object(o.a)(Object(o.a)({},A),j),className:N,ref:t}),C)}));t.a=h},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="LeftOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="ExclamationCircleOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}}]})(e)}function i(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}}]})(e)}},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(7),a=n.n(i),s=n(208),c=n(32),l=n(1),u=n(66),d=n(187),f=n(58),h=n(49),p=n(24),m=n(60),g=n(59),b=n(5),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},y=n(18),w=function(e,t){return l.createElement(y.a,Object(b.a)(Object(b.a)({},e),{},{ref:t,icon:v}))};w.displayName="CheckOutlined";var k=l.forwardRef(w),_=n(77),O=n(114),x=n(200),C=n(92),E=n(139);var j=n(55),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},P="SECRET_COMBOBOX_MODE_DO_NOT_USE",T=function(e,t){var n,i=e.prefixCls,b=e.bordered,v=void 0===b||b,y=e.className,w=e.getPopupContainer,T=e.dropdownClassName,N=e.popupClassName,A=e.listHeight,M=void 0===A?256:A,R=e.placement,I=e.listItemHeight,D=void 0===I?24:I,L=e.size,z=e.disabled,F=e.notFoundContent,V=e.status,B=e.showArrow,H=S(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),W=l.useContext(u.b),U=W.getPopupContainer,K=W.getPrefixCls,Y=W.renderEmpty,q=W.direction,$=W.virtual,G=W.dropdownMatchSelectWidth,Q=l.useContext(h.b),X=K("select",i),J=K(),Z=Object(j.c)(X,q),ee=Z.compactSize,te=Z.compactItemClassnames,ne=l.useMemo((function(){var e=H.mode;if("combobox"!==e)return e===P?"combobox":e}),[H.mode]),re="multiple"===ne||"tags"===ne,oe=void 0!==B?B:H.loading||!(re||"combobox"===ne),ie=Object(l.useContext)(p.b),ae=ie.status,se=ie.hasFeedback,ce=ie.isFormItemInput,le=ie.feedbackIcon,ue=Object(g.a)(ae,V);n=void 0!==F?F:"combobox"===ne?null:(Y||d.a)("Select");var de=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,o=e.removeIcon,i=e.loading,a=e.multiple,s=e.hasFeedback,c=e.prefixCls,u=e.showArrow,d=e.feedbackIcon,f=null!==n&&void 0!==n?n:l.createElement(_.a,null),h=function(e){return l.createElement(l.Fragment,null,!1!==u&&e,s&&d)},p=null;if(void 0!==t)p=h(t);else if(i)p=h(l.createElement(C.a,{spin:!0}));else{var m="".concat(c,"-suffix");p=function(e){var t=e.open,n=e.showSearch;return h(t&&n?l.createElement(E.a,{className:m}):l.createElement(x.a,{className:m}))}}return{clearIcon:f,suffixIcon:p,itemIcon:void 0!==r?r:a?l.createElement(k,null):null,removeIcon:void 0!==o?o:l.createElement(O.a,null)}}(Object(o.a)(Object(o.a)({},H),{multiple:re,hasFeedback:se,feedbackIcon:le,showArrow:oe,prefixCls:X})),fe=de.suffixIcon,he=de.itemIcon,pe=de.removeIcon,me=de.clearIcon,ge=Object(c.a)(H,["suffixIcon","itemIcon"]),be=a()(N||T,Object(r.a)({},"".concat(X,"-dropdown-").concat(q),"rtl"===q)),ve=ee||L||Q,ye=l.useContext(f.b),we=null!==z&&void 0!==z?z:ye,ke=a()(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(X,"-lg"),"large"===ve),"".concat(X,"-sm"),"small"===ve),"".concat(X,"-rtl"),"rtl"===q),"".concat(X,"-borderless"),!v),"".concat(X,"-in-form-item"),ce),Object(g.b)(X,ue,se),te,y);return l.createElement(s.c,Object(o.a)({ref:t,virtual:$,dropdownMatchSelectWidth:G},ge,{transitionName:Object(m.c)(J,Object(m.b)(R),H.transitionName),listHeight:M,listItemHeight:D,mode:ne,prefixCls:X,placement:void 0!==R?R:"rtl"===q?"bottomRight":"bottomLeft",direction:q,inputIcon:fe,menuItemSelectedIcon:he,removeIcon:pe,clearIcon:me,notFoundContent:n,className:ke,getPopupContainer:w||U,dropdownClassName:be,showArrow:se||B,disabled:we}))},N=l.forwardRef(T);N.SECRET_COMBOBOX_MODE_DO_NOT_USE=P,N.Option=s.b,N.OptGroup=s.a;t.a=N},,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(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{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.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];l.push(new p(e,t)),1!==l.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(298),o=n(299),i=n(300),a=n(301),s=n(302);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(229);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(95).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(126)(Object,"create");e.exports=r},function(e,t,n){var r=n(322);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(47),o=function(e){if(Object(r.a)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},i=function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function a(e,t){return Array.isArray(e)||void 0===t?o(e):i(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n="object"===typeof t?t:{equalityCheck:t},i=n.equalityCheck,a=void 0===i?o:i,s=n.maxSize,c=void 0===s?1:s,l=n.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(a),d=1===c?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:r},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(u):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,u);function f(){var t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),l){var n=d.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}d.put(arguments,t)}return t}return f.clearCache=function(){return d.clear()},f}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},c=r.pop();if("object"===typeof c&&(s=c,c=r.pop()),"function"!==typeof c)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var l=s.memoizeOptions,u=void 0===l?n:l,d=Array.isArray(u)?u:[u],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(d)),p=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(p,{resultFunc:c,memoizedResultFunc:h,dependencies:f,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),p}}var s=a(i)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){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.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(9),n(3);var r=n(10),o=(n(105),{xs:0,sm:600,md:960,lg:1280,xl:1920}),i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!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),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o="undefined"!==typeof 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(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,c=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,r=!1,o=0;function a(){n&&(n=!1,e()),r&&c()}function s(){i(a)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return c}(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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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;a.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}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=b(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),c=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=h(r,"left","right")+i),Math.round(c+a)!==n&&(c-=h(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var l=Math.round(s+i)-t,p=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(p)&&(c-=p)}return b(o.left,o.top,s,c)}var m="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"===typeof e.getBBox};function g(e){return r?m(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):p(e):d}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=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=g(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=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return l(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},w=function(){function e(e,t,r){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_=r}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 u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(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 u(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}(),k="undefined"!==typeof WeakMap?new WeakMap:new n,_=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=c.getInstance(),r=new w(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var O="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:_;t.a=O}).call(this,n(144))},function(e,t,n){"use strict";t.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},function(e,t,n){"use strict";t.a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(9),o=n(112);function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(o.a)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),s=null;return i&&!Number.isNaN(a)?s=a:r&&null===s&&(s=0),r&&e.disabled&&(s=null),null!==s&&(s>=0||t&&s<0)}return!1}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(r.a)(e.querySelectorAll("*")).filter((function(e){return i(e,t)}));return i(e,t)&&n.unshift(e),n}},function(e,t,n){"use strict";t.a=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?void 0:e.substr(0,4))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),o=n(183),i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},s=[0,0];function c(e){return"boolean"===typeof e?e?i:a:Object(r.a)(Object(r.a)({},a),e)}function l(e){var t=e.arrowWidth,n=void 0===t?4:t,i=e.horizontalArrowShift,a=void 0===i?16:i,l=e.verticalArrowShift,u=void 0===l?8:l,d=e.autoAdjustOverflow,f=e.arrowPointAtCenter,h={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,u+n]}};return Object.keys(h).forEach((function(e){h[e]=f?Object(r.a)(Object(r.a)({},h[e]),{overflow:c(d),targetOffset:s}):Object(r.a)(Object(r.a)({},o.a[e]),{overflow:c(d)}),h[e].ignoreShake=!0})),h}},function(e,t,n){"use strict";var r=n(6),o=n(1),i=n(186);t.a=function(){var e=o.useState(!1),t=Object(r.a)(e,2),n=t[0],a=t[1];return o.useEffect((function(){a(Object(i.b)())}),[]),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r,o=n(47),i=(n(168),function(){return Object(o.a)()&&window.document.documentElement}),a=function(){if(!i())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},function(e,t,n){"use strict";var r=n(1),o=n(66),i=n(107);t.a=function(e){return r.createElement(o.a,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(i.a,{image:i.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(i.a,{image:i.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(i.a,null)}}))}},function(e,t,n){"use strict";var r=n(1);t.a=Object(r.createContext)(void 0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),o=n(4),i=n(27),a=n(25),s=n(37),c=n(38),l=n(1),u=n(22),d=n.n(u),f=n(7),h=n.n(f),p=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.closable,s=t.closeIcon,c=t.style,u=t.onClick,f=t.children,p=t.holder,m="".concat(n,"-notice"),g=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),b=l.createElement("div",Object(r.a)({className:h()(m,i,Object(o.a)({},"".concat(m,"-closable"),a)),style:c,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},g),l.createElement("div",{className:"".concat(m,"-content")},f),a?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(m,"-close")},s||l.createElement("span",{className:"".concat(m,"-close-x")})):null);return p?d.a.createPortal(b,p):b}}]),n}(l.Component);p.defaultProps={onClose:function(){},duration:1.5}},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(61);function o(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";var r=n(1),o=Object(r.createContext)({});t.a=o},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(10),a=n(6),s=n(4),c=n(8),l=n(1),u=n(22),d=n(7),f=n.n(d),h=n(64),p=l.forwardRef((function(e,t){var n=e.height,i=e.offsetY,a=e.offsetX,c=e.children,u=e.prefixCls,d=e.onInnerResize,p=e.innerProps,m=e.rtl,g=e.extra,b={},v={display:"flex",flexDirection:"column"};return void 0!==i&&(b={height:n,position:"relative",overflow:"hidden"},v=Object(o.a)(Object(o.a)({},v),{},Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({transform:"translateY(".concat(i,"px)")},m?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:b},l.createElement(h.a,{onResize:function(e){e.offsetHeight&&d&&d()}},l.createElement("div",Object(r.a)({style:v,className:f()(Object(s.a)({},"".concat(u,"-holder-inner"),u)),ref:t},p),c,g)))}));p.displayName="Filler";var m=p,g=n(23);function b(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var v=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,c=e.scrollRange,u=e.onStartMove,d=e.onStopMove,h=e.onScroll,p=e.horizontal,m=e.spinSize,v=e.containerSize,y=e.style,w=e.thumbStyle,k=l.useState(!1),_=Object(a.a)(k,2),O=_[0],x=_[1],C=l.useState(null),E=Object(a.a)(C,2),j=E[0],S=E[1],P=l.useState(null),T=Object(a.a)(P,2),N=T[0],A=T[1],M=!r,R=l.useRef(),I=l.useRef(),D=l.useState(!1),L=Object(a.a)(D,2),z=L[0],F=L[1],V=l.useRef(),B=function(){clearTimeout(V.current),F(!0),V.current=setTimeout((function(){F(!1)}),3e3)},H=c-v||0,W=v-m||0,U=l.useMemo((function(){return 0===i||0===H?0:i/H*W}),[i,H,W]),K=l.useRef({top:U,dragging:O,pageY:j,startTop:N});K.current={top:U,dragging:O,pageY:j,startTop:N};var Y=function(e){x(!0),S(b(e,p)),A(K.current.top),u(),e.stopPropagation(),e.preventDefault()};l.useEffect((function(){var e=function(e){e.preventDefault()},t=R.current,n=I.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",Y),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",Y)}}),[]);var q=l.useRef();q.current=H;var $=l.useRef();$.current=W,l.useEffect((function(){if(O){var e,t=function(t){var n=K.current,r=n.dragging,o=n.pageY,i=n.startTop;if(g.a.cancel(e),r){var a=b(t,p)-o,s=i;!M&&p?s-=a:s+=a;var c=q.current,l=$.current,u=l?s/l:0,d=Math.ceil(u*c);d=Math.max(d,0),d=Math.min(d,c),e=Object(g.a)((function(){h(d,p)}))}},n=function(){x(!1),d()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),g.a.cancel(e)}}}),[O]),l.useEffect((function(){B()}),[i]),l.useImperativeHandle(t,(function(){return{delayHidden:B}}));var G="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:z?null:"hidden"},X={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,X.height="100%",X.width=m,M?X.left=U:X.right=U):(Q.width=8,Q.top=0,Q.bottom=0,M?Q.right=0:Q.left=0,X.width="100%",X.height=m,X.top=U),l.createElement("div",{ref:R,className:f()(G,Object(s.a)(Object(s.a)(Object(s.a)({},"".concat(G,"-horizontal"),p),"".concat(G,"-vertical"),!p),"".concat(G,"-visible"),z)),style:Object(o.a)(Object(o.a)({},Q),y),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:B},l.createElement("div",{ref:I,className:f()("".concat(G,"-thumb"),Object(s.a)({},"".concat(G,"-thumb-moving"),O)),style:Object(o.a)(Object(o.a)({},X),w),onMouseDown:Y}))}));function y(e){var t=e.children,n=e.setRef,r=l.useCallback((function(e){n(e)}),[]);return l.cloneElement(t,{ref:r})}var w=n(97),k=n(27),_=n(25),O=function(){function e(){Object(k.a)(this,e),Object(s.a)(this,"maps",void 0),Object(s.a)(this,"id",0),this.maps=Object.create(null)}return Object(_.a)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var x=n(39),C=n(80),E=(n(33),n(28),n(103),n(74),n(17),10);function j(e,t,n){var r=l.useState(e),o=Object(a.a)(r,2),i=o[0],s=o[1],c=l.useState(null),u=Object(a.a)(c,2),d=u[0],f=u[1];return l.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):s}for(var l=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){l=d,u=u||f!==c(o[d+1]);break}}return null===l?null:{index:l,multiple:u}}(i||[],e||[],t);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),f(e[r.index])),s(e)}),[e]),[d]}var S="object"===("undefined"===typeof navigator?"undefined":Object(i.a)(navigator))&&/Firefox/i.test(navigator.userAgent),P=function(e,t){var n=Object(l.useRef)(!1),r=Object(l.useRef)(null);var o=Object(l.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};function T(e,t,n,r,o){var i=Object(l.useRef)(0),a=Object(l.useRef)(null),s=Object(l.useRef)(null),c=Object(l.useRef)(!1),u=P(t,n);var d=Object(l.useRef)(null),f=Object(l.useRef)(null);return[function(t){if(e){g.a.cancel(f.current),f.current=Object(g.a)((function(){d.current=null}),2);var n=t.deltaX,l=t.deltaY,h=t.shiftKey,p=n,m=l;("sx"===d.current||!d.current&&h&&l&&!n)&&(p=l,m=0,d.current="sx");var b=Math.abs(p),v=Math.abs(m);null===d.current&&(d.current=r&&b>v?"x":"y"),"y"===d.current?function(e,t){g.a.cancel(a.current),i.current+=t,s.current=t,u(t)||(S||e.preventDefault(),a.current=Object(g.a)((function(){var e=c.current?10:1;o(i.current*e),i.current=0})))}(t,m):function(e,t){o(t,!0),S||e.preventDefault()}(t,p)}},function(t){e&&(c.current=t.detail===s.current)}]}var N=14/15;var A=20;function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,A),Math.floor(t)}var R=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],I=[],D={overflowY:"auto",overflowAnchor:"none"};function L(e,t){var n=e.prefixCls,d=void 0===n?"rc-virtual-list":n,p=e.className,b=e.height,k=e.itemHeight,_=e.fullHeight,S=void 0===_||_,A=e.style,L=e.data,z=e.children,F=e.itemKey,V=e.virtual,B=e.direction,H=e.scrollWidth,W=e.component,U=void 0===W?"div":W,K=e.onScroll,Y=e.onVirtualScroll,q=e.onVisibleChange,$=e.innerProps,G=e.extraRender,Q=e.styles,X=Object(c.a)(e,R),J=!(!1===V||!b||!k),Z=J&&L&&(k*L.length>b||!!H),ee="rtl"===B,te=f()(d,Object(s.a)({},"".concat(d,"-rtl"),ee),p),ne=L||I,re=Object(l.useRef)(),oe=Object(l.useRef)(),ie=Object(l.useState)(0),ae=Object(a.a)(ie,2),se=ae[0],ce=ae[1],le=Object(l.useState)(0),ue=Object(a.a)(le,2),de=ue[0],fe=ue[1],he=Object(l.useState)(!1),pe=Object(a.a)(he,2),me=pe[0],ge=pe[1],be=function(){ge(!0)},ve=function(){ge(!1)},ye=l.useCallback((function(e){return"function"===typeof F?F(e):null===e||void 0===e?void 0:e[F]}),[F]),we={getKey:ye};function ke(e){ce((function(t){var n=function(e){var t=e;Number.isNaN(Ye.current)||(t=Math.min(t,Ye.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return re.current.scrollTop=n,n}))}var _e=Object(l.useRef)({start:0,end:ne.length}),Oe=Object(l.useRef)(),xe=j(ne,ye),Ce=Object(a.a)(xe,1)[0];Oe.current=Ce;var Ee=function(e,t,n){var r=l.useState(0),o=Object(a.a)(r,2),i=o[0],s=o[1],c=Object(l.useRef)(new Map),u=Object(l.useRef)(new O),d=Object(l.useRef)();function f(){g.a.cancel(d.current)}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){c.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Object(w.a)(e),r=n.offsetHeight;u.current.get(t)!==r&&u.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))};e?t():d.current=Object(g.a)(t)}return Object(l.useEffect)((function(){return f}),[]),[function(r,o){var i=e(r),a=c.current.get(i);o?(c.current.set(i,o),h()):c.current.delete(i),!a!==!o&&(o?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},h,u.current,i]}(ye,null,null),je=Object(a.a)(Ee,4),Se=je[0],Pe=je[1],Te=je[2],Ne=je[3],Ae=l.useMemo((function(){if(!J)return{scrollHeight:void 0,start:0,end:ne.length-1,offset:void 0};var e;if(!Z)return{scrollHeight:(null===(e=oe.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ne.length-1,offset:void 0};for(var t,n,r,o=0,i=ne.length,a=0;a<i;a+=1){var s=ne[a],c=ye(s),l=Te.get(c),u=o+(void 0===l?k:l);u>=se&&void 0===t&&(t=a,n=o),u>se+b&&void 0===r&&(r=a),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(b/k)),void 0===r&&(r=ne.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ne.length-1),offset:n}}),[Z,J,se,ne,Ne,b]),Me=Ae.scrollHeight,Re=Ae.start,Ie=Ae.end,De=Ae.offset;_e.current.start=Re,_e.current.end=Ie;var Le=l.useState({width:0,height:b}),ze=Object(a.a)(Le,2),Fe=ze[0],Ve=ze[1],Be=Object(l.useRef)(),He=Object(l.useRef)(),We=l.useMemo((function(){return M(Fe.width,H)}),[Fe.width,H]),Ue=l.useMemo((function(){return M(Fe.height,Me)}),[Fe.height,Me]),Ke=Me-b,Ye=Object(l.useRef)(Ke);Ye.current=Ke;var qe=se<=0,$e=se>=Ke,Ge=P(qe,$e),Qe=function(){return{x:ee?-de:de,y:se}},Xe=Object(l.useRef)(Qe()),Je=Object(C.a)((function(){if(Y){var e=Qe();Xe.current.x===e.x&&Xe.current.y===e.y||(Y(e),Xe.current=e)}}));function Ze(e,t){var n=e;t?(Object(u.flushSync)((function(){fe(n)})),Je()):ke(n)}var et=function(e){var t=e,n=H-Fe.width;return t=Math.max(t,0),t=Math.min(t,n)},tt=Object(C.a)((function(e,t){t?(Object(u.flushSync)((function(){fe((function(t){return et(t+(ee?-e:e))}))})),Je()):ke((function(t){return t+e}))})),nt=T(J,qe,$e,!!H,tt),rt=Object(a.a)(nt,2),ot=rt[0],it=rt[1];!function(e,t,n){var r,o=Object(l.useRef)(!1),i=Object(l.useRef)(0),a=Object(l.useRef)(null),s=Object(l.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=N,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",u))};r=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Object(x.a)((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(J,re,(function(e,t){return!Ge(e,t)&&(ot({preventDefault:function(){},deltaY:e}),!0)})),Object(x.a)((function(){function e(e){J&&e.preventDefault()}var t=re.current;return t.addEventListener("wheel",ot),t.addEventListener("DOMMouseScroll",it),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",ot),t.removeEventListener("DOMMouseScroll",it),t.removeEventListener("MozMousePixelScroll",e)}}),[J]),Object(x.a)((function(){H&&fe((function(e){return et(e)}))}),[Fe.width,H]);var at=function(){var e,t;null===(e=Be.current)||void 0===e||e.delayHidden(),null===(t=He.current)||void 0===t||t.delayHidden()},st=function(e,t,n,r,s,c,u,d){var f=l.useRef(),h=l.useState(null),p=Object(a.a)(h,2),m=p[0],b=p[1];return Object(x.a)((function(){if(m&&m.times<E){if(!e.current)return void b((function(e){return Object(o.a)({},e)}));c();var i=m.targetAlign,a=m.originAlign,l=m.index,d=m.offset,f=e.current.clientHeight,h=!1,p=i,g=null;if(f){for(var v=i||a,y=0,w=0,k=0,_=Math.min(t.length-1,l),O=0;O<=_;O+=1){var x=s(t[O]);w=y;var C=n.get(x);y=k=w+(void 0===C?r:C)}for(var j="top"===v?d:f-d,S=_;S>=0;S-=1){var P=s(t[S]),T=n.get(P);if(void 0===T){h=!0;break}if((j-=T)<=0)break}switch(v){case"top":g=w-d;break;case"bottom":g=k-f+d;break;default:var N=e.current.scrollTop;w<N?p="top":k>N+f&&(p="bottom")}null!==g&&u(g),g!==m.lastTop&&(h=!0)}h&&b(Object(o.a)(Object(o.a)({},m),{},{times:m.times+1,targetAlign:p,lastTop:g}))}}),[m,e.current]),function(e){if(null!==e&&void 0!==e){if(g.a.cancel(f.current),"number"===typeof e)u(e);else if(e&&"object"===Object(i.a)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return s(t)===e.key}));var o=e.offset;b({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else d()}}(re,ne,Te,k,ye,(function(){return Pe(!0)}),ke,at);l.useImperativeHandle(t,(function(){return{getScrollInfo:Qe,scrollTo:function(e){var t;(t=e)&&"object"===Object(i.a)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&fe(et(e.left)),st(e.top)):st(e)}}})),Object(x.a)((function(){if(q){var e=ne.slice(Re,Ie+1);q(e,ne)}}),[Re,Ie,ne]);var ct=function(e,t,n,r){var o=l.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=Object(a.a)(o,2),s=i[0],c=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,a=s.get(o),l=s.get(i);if(void 0===a||void 0===l)for(var u=e.length,d=c.length;d<u;d+=1){var f,h=e[d],p=t(h);s.set(p,d);var m=null!==(f=n.get(p))&&void 0!==f?f:r;if(c[d]=(c[d-1]||0)+m,p===o&&(a=d),p===i&&(l=d),void 0!==a&&void 0!==l)break}return{top:c[a-1]||0,bottom:c[l]}}}(ne,ye,Te,k),lt=null===G||void 0===G?void 0:G({start:Re,end:Ie,virtual:Z,offsetX:de,offsetY:De,rtl:ee,getSize:ct}),ut=function(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:r}}),c=s(e);return l.createElement(y,{key:c,setRef:function(t){return o(e,t)}},a)}))}(ne,Re,Ie,H,Se,z,we),dt=null;b&&(dt=Object(o.a)(Object(s.a)({},S?"height":"maxHeight",b),D),J&&(dt.overflowY="hidden",H&&(dt.overflowX="hidden"),me&&(dt.pointerEvents="none")));var ft={};return ee&&(ft.dir="rtl"),l.createElement("div",Object(r.a)({style:Object(o.a)(Object(o.a)({},A),{},{position:"relative"}),className:te},ft,X),l.createElement(h.a,{onResize:function(e){Ve({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},l.createElement(U,{className:"".concat(d,"-holder"),style:dt,ref:re,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==se&&ke(t),null===K||void 0===K||K(e),Je()},onMouseEnter:at},l.createElement(m,{prefixCls:d,height:Me,offsetX:de,offsetY:De,scrollWidth:H,onInnerResize:Pe,ref:oe,innerProps:$,rtl:ee,extra:lt},ut))),Z&&Me>b&&l.createElement(v,{ref:Be,prefixCls:d,scrollOffset:se,scrollRange:Me,rtl:ee,onScroll:Ze,onStartMove:be,onStopMove:ve,spinSize:Ue,containerSize:Fe.height,style:null===Q||void 0===Q?void 0:Q.verticalScrollBar,thumbStyle:null===Q||void 0===Q?void 0:Q.verticalScrollBarThumb}),Z&&H>Fe.width&&l.createElement(v,{ref:He,prefixCls:d,scrollOffset:de,scrollRange:H,rtl:ee,onScroll:Ze,onStartMove:be,onStopMove:ve,spinSize:We,containerSize:Fe.width,horizontal:!0,style:null===Q||void 0===Q?void 0:Q.horizontalScrollBar,thumbStyle:null===Q||void 0===Q?void 0:Q.horizontalScrollBarThumb}))}var z=l.forwardRef(L);z.displayName="List";var F=z;t.a=F},function(e,t,n){"use strict";var r=n(27),o=n(25),i=n(37),a=n(38),s=n(3),c=n(199),l=n(7),u=n.n(l),d=n(87),f=n(80),h=n(32),p=n(1),m=n(66),g=n(4),b=n(6),v=n(5),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},w=n(18),k=function(e,t){return p.createElement(w.a,Object(v.a)(Object(v.a)({},e),{},{ref:t,icon:y}))};k.displayName="BarsOutlined";n(154),n(121);var _=n(9),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x=p.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function C(e){var t=e.suffixCls,n=e.tagName;e.displayName;return function(e){return p.forwardRef((function(r,o){var i=p.useContext(m.b).getPrefixCls,a=r.prefixCls,c=i(t,a);return p.createElement(e,Object(s.a)({ref:o,prefixCls:c,tagName:n},r))}))}}var E=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.children,i=e.tagName,a=O(e,["prefixCls","className","children","tagName"]),c=u()(n,r);return p.createElement(i,Object(s.a)(Object(s.a)({className:c},a),{ref:t}),o)})),j=p.forwardRef((function(e,t){var n=p.useContext(m.b).direction,r=p.useState([]),o=Object(b.a)(r,2),i=o[0],a=o[1],c=e.prefixCls,l=e.className,d=e.children,f=e.hasSider,h=e.tagName,v=O(e,["prefixCls","className","children","hasSider","tagName"]),y=u()(c,Object(g.a)(Object(g.a)({},"".concat(c,"-has-sider"),"boolean"===typeof f?f:i.length>0),"".concat(c,"-rtl"),"rtl"===n),l),w=p.useMemo((function(){return{siderHook:{addSider:function(e){a((function(t){return[].concat(Object(_.a)(t),[e])}))},removeSider:function(e){a((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return p.createElement(x.Provider,{value:w},p.createElement(h,Object(s.a)({ref:t,className:y},v),d))})),S=(C({suffixCls:"layout",tagName:"section",displayName:"Layout"})(j),C({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),C({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),C({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E),p.createContext({}));!function(){var e=0}();var P=n(60),T=n(26),N=n(10),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},M=function(e){var t=e.prefixCls,n=e.className,r=e.dashed,o=A(e,["prefixCls","className","dashed"]),i=(0,p.useContext(m.b).getPrefixCls)("menu",t),a=u()(Object(g.a)({},"".concat(i,"-item-divider-dashed"),!!r),n);return p.createElement(d.a,Object(s.a)({className:a},o))},R=n(51),I=n(113),D=Object(p.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},z=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).renderItem=function(t){var n,r=t.siderCollapsed,o=e.context,i=o.prefixCls,a=o.firstLevel,c=o.inlineCollapsed,l=o.direction,f=o.disableMenuItemTitleTooltip,h=e.props,m=h.className,b=h.children,v=e.props,y=v.title,w=v.icon,k=v.danger,_=L(v,["title","icon","danger"]),O=y;"undefined"===typeof y?O=a?b:"":!1===y&&(O="");var x={title:O};r||c||(x.title=null,x.open=!1);var C=Object(R.a)(b).length,E=p.createElement(d.b,Object(s.a)({},_,{className:u()(Object(g.a)(Object(g.a)({},"".concat(i,"-item-danger"),k),"".concat(i,"-item-only-child"),1===(w?C+1:C)),m),title:"string"===typeof y?y:void 0}),Object(T.a)(w,{className:u()(Object(T.c)(w)?null===(n=w.props)||void 0===n?void 0:n.className:"","".concat(i,"-item-icon"))}),e.renderItemChildren(c));return f||(E=p.createElement(I.a,Object(s.a)({},x,{placement:"rtl"===l?"left":"right",overlayClassName:"".concat(i,"-inline-collapsed-tooltip")}),E)),E},e}return Object(o.a)(n,[{key:"renderItemChildren",value:function(e){var t=this.context,n=t.prefixCls,r=t.firstLevel,o=this.props,i=o.icon,a=o.children,s=p.createElement("span",{className:"".concat(n,"-title-content")},a);return(!i||Object(T.c)(a)&&"span"===a.type)&&a&&e&&r&&"string"===typeof a?p.createElement("div",{className:"".concat(n,"-inline-collapsed-noicon")},a.charAt(0)):s}},{key:"render",value:function(){return p.createElement(S.Consumer,null,this.renderItem)}}]),n}(p.Component);z.contextType=D;var F=function(e){var t,n,r=e.popupClassName,o=e.icon,i=e.title,a=e.theme,c=p.useContext(D),l=c.prefixCls,f=c.inlineCollapsed,m=c.antdMenuTheme,g=Object(d.h)();if(o){var b=Object(T.c)(i)&&"span"===i.type;n=p.createElement(p.Fragment,null,Object(T.a)(o,{className:u()(Object(T.c)(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(l,"-item-icon"))}),b?i:p.createElement("span",{className:"".concat(l,"-title-content")},i))}else n=f&&!g.length&&i&&"string"===typeof i?p.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},i.charAt(0)):p.createElement("span",{className:"".concat(l,"-title-content")},i);var v=p.useMemo((function(){return Object(s.a)(Object(s.a)({},c),{firstLevel:!1})}),[c]);return p.createElement(D.Provider,{value:v},p.createElement(d.f,Object(s.a)({},Object(h.a)(e,["icon"]),{title:n,popupClassName:u()(l,"".concat(l,"-").concat(a||m),r)})))},V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function B(e){return(e||[]).map((function(e,t){if(e&&"object"===Object(N.a)(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,c=V(n,["label","children","key","type"]),l=null!==i&&void 0!==i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?p.createElement(d.c,Object(s.a)({key:l},c,{title:r}),B(o)):p.createElement(F,Object(s.a)({key:l},c,{title:r}),B(o)):"divider"===a?p.createElement(M,Object(s.a)({key:l},c)):p.createElement(z,Object(s.a)({key:l},c),r)}return null})).filter((function(e){return e}))}function H(e){return p.useMemo((function(){return e?B(e):e}),[e])}var W=n(118),U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},K=Object(p.forwardRef)((function(e,t){var n,r=p.useContext(W.b)||{},o=p.useContext(m.b),i=o.getPrefixCls,a=o.getPopupContainer,l=o.direction,g=i(),b=e.prefixCls,v=e.className,y=e.theme,w=void 0===y?"light":y,k=e.expandIcon,_=e._internalDisableMenuItemTitleTooltip,O=e.inlineCollapsed,x=e.siderCollapsed,C=e.items,E=e.children,j=e.mode,S=e.selectable,N=e.onClick,A=U(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),M=Object(h.a)(A,["collapsedWidth"]),R=H(C)||E;null===(n=r.validator)||void 0===n||n.call(r,{mode:j});var I,L=Object(f.a)((function(){var e;null===N||void 0===N||N.apply(void 0,arguments),null===(e=null===r||void 0===r?void 0:r.onClick)||void 0===e||e.call(r)})),z=r.mode||j,F=null!==S&&void 0!==S?S:r.selectable,V=p.useMemo((function(){return void 0!==x?x:O}),[O,x]),B={horizontal:{motionName:"".concat(g,"-slide-up")},inline:P.a,other:{motionName:"".concat(g,"-zoom-big")}},K=i("menu",b||r.prefixCls),Y=u()("".concat(K,"-").concat(w),v);I="function"===typeof k?k:Object(T.a)(k||r.expandIcon,{className:"".concat(K,"-submenu-expand-icon")});var q=p.useMemo((function(){return{prefixCls:K,inlineCollapsed:V||!1,antdMenuTheme:w,direction:l,firstLevel:!0,disableMenuItemTitleTooltip:_}}),[K,V,w,l,_]);return p.createElement(W.b.Provider,{value:null},p.createElement(D.Provider,{value:q},p.createElement(d.g,Object(s.a)({getPopupContainer:a,overflowedIndicator:p.createElement(c.a,null),overflowedIndicatorPopupClassName:"".concat(K,"-").concat(w),mode:z,selectable:F,onClick:L},M,{inlineCollapsed:V,className:Y,prefixCls:K,direction:l,defaultMotions:B,expandIcon:I,ref:t}),R)))})),Y=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).focus=function(t){var n;null===(n=e.menu)||void 0===n||n.focus(t)},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this;return p.createElement(S.Consumer,null,(function(t){return p.createElement(K,Object(s.a)({ref:function(t){e.menu=t}},e.props,t))}))}}]),n}(p.Component);Y.Divider=M,Y.Item=z,Y.SubMenu=F,Y.ItemGroup=d.c;t.a=Y},function(e,t,n){"use strict";n.d(t,"a",(function(){return E.a}));var r=n(3),o=n(4),i=n(10),a=n(5),s=n(9),c=n(27),l=n(25),u=n(13),d=n(37),f=n(38),h=n(7),p=n.n(h),m=n(11),g=n(69),b=n(17),v=n(1),y=n(133);function w(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var k=n(6),_=n(8),O=n(39),x=n(194),C=n(52),E=n(104);var j=n(29),S=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],P=function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,s=e.motionType,c=e.onMotionStart,l=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Object(_.a)(e,S),h=v.useState(!0),m=Object(k.a)(h,2),g=m[0],b=m[1],x=v.useContext(y.a).prefixCls,P=a&&"hide"!==s;Object(O.a)((function(){a&&P!==g&&b(P)}),[a]);var T=v.useRef(!1),N=function(){a&&!T.current&&(T.current=!0,l())};!function(e,t){var n=v.useState(!1),r=Object(k.a)(n,2),o=r[0],i=r[1];v.useLayoutEffect((function(){if(o)return e(),function(){t()}}),[o]),v.useLayoutEffect((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&c()}),N);return a?v.createElement(C.b,Object(r.a)({ref:t,visible:g},i,{motionAppear:"show"===s,onVisibleChanged:function(e){P===e&&N()}}),(function(e,t){var n=e.className,o=e.style;return v.createElement("div",{ref:t,className:p()("".concat(x,"-treenode-motion"),n),style:o},a.map((function(e){var t=Object(r.a)({},(w(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var s=Object(j.g)(o,d);return v.createElement(E.a,Object(r.a)({},t,s,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))})))})):v.createElement(E.a,Object(r.a)({domRef:t,className:n,style:o},f,{active:u}))};P.displayName="MotionTreeNode";var T=v.forwardRef(P);function N(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var A=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],M={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},I="RC_TREE_MOTION_".concat(Math.random()),D={key:I},L={key:I,level:0,index:0,pos:"0",node:D,nodes:[D]},z={parent:null,children:[],pos:L.pos,data:D,title:null,key:I,isStart:[],isEnd:[]};function F(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function V(e){var t=e.key,n=e.pos;return Object(j.f)(t,n)}var B=v.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,s=e.checkedKeys,c=e.loadedKeys,l=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,b=e.height,y=e.itemHeight,C=e.virtual,E=e.focusable,S=e.activeItem,P=e.focused,D=e.tabIndex,L=e.onKeyDown,B=e.onFocus,H=e.onBlur,W=e.onActiveChange,U=e.onListChangeStart,K=e.onListChangeEnd,Y=Object(_.a)(e,A),q=v.useRef(null),$=v.useRef(null);v.useImperativeHandle(t,(function(){return{scrollTo:function(e){q.current.scrollTo(e)},getIndentWidth:function(){return $.current.offsetWidth}}}));var G=v.useState(i),Q=Object(k.a)(G,2),X=Q[0],J=Q[1],Z=v.useState(o),ee=Object(k.a)(Z,2),te=ee[0],ne=ee[1],re=v.useState(o),oe=Object(k.a)(re,2),ie=oe[0],ae=oe[1],se=v.useState([]),ce=Object(k.a)(se,2),le=ce[0],ue=ce[1],de=v.useState(null),fe=Object(k.a)(de,2),he=fe[0],pe=fe[1],me=v.useRef(o);function ge(){var e=me.current;ne(e),ae(e),ue([]),pe(null),K()}me.current=o,Object(O.a)((function(){J(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(X,i);if(null!==e.key)if(e.add){var t=te.findIndex((function(t){return t.key===e.key})),n=F(N(te,o,e.key),C,b,y),r=te.slice();r.splice(t+1,0,z),ae(r),ue(n),pe("show")}else{var a=o.findIndex((function(t){return t.key===e.key})),s=F(N(o,te,e.key),C,b,y),c=o.slice();c.splice(a+1,0,z),ae(c),ue(s),pe("hide")}else te!==o&&(ne(o),ae(o))}),[i,o]),v.useEffect((function(){h||ge()}),[h]);var be=g?ie:o,ve={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:l,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:m,keyEntities:d};return v.createElement(v.Fragment,null,P&&S&&v.createElement("span",{style:M,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),v.createElement("div",null,v.createElement("input",{style:M,disabled:!1===E||f,tabIndex:!1!==E?D:null,onKeyDown:L,onFocus:B,onBlur:H,value:"",onChange:R,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(n,"-indent")},v.createElement("div",{ref:$,className:"".concat(n,"-indent-unit")}))),v.createElement(x.a,Object(r.a)({},Y,{data:be,itemKey:V,height:b,fullHeight:!1,virtual:C,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:q,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return V(e)===I}))&&ge()}}),(function(e){var t=e.pos,n=Object(r.a)({},(w(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,s=e.isEnd,c=Object(j.f)(i,t);delete n.key,delete n.children;var l=Object(j.g)(c,ve);return v.createElement(T,Object(r.a)({},n,l,{title:o,active:!!S&&i===S.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:g,motionNodes:i===I?le:null,motionType:he,onMotionStart:U,onMotionEnd:ge,treeNodeRequiredProps:ve,onMouseMove:function(){W(null)}}))})))}));B.displayName="NodeList";var H=B,W=n(44),U=n(117),K=n(65),Y=function(e){Object(d.a)(n,e);var t=Object(f.a)(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Object(j.d)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=v.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=Object(W.b)(o,s);e.setState({draggingNodeKey:s,dragChildrenKeys:Object(W.f)(s,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:Object(j.b)(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,c=r.flattenNodes,l=r.indent,d=e.props,f=d.onDragEnter,h=d.onExpand,p=d.allowDrop,m=d.direction,g=n.props,b=g.pos,v=g.eventKey,y=Object(u.a)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==v&&(e.currentMouseOverDroppableNodeKey=v),y){var w=Object(W.c)(t,y,n,l,e.dragStartMousePosition,p,c,i,o,m),k=w.dropPosition,_=w.dropLevelOffset,O=w.dropTargetKey,x=w.dropContainerKey,C=w.dropTargetPos,E=w.dropAllowed,S=w.dragOverNodeKey;-1===a.indexOf(O)&&E?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),y.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[b]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=Object(s.a)(o),a=Object(K.a)(i,n.props.eventKey);a&&(a.children||[]).length&&(r=Object(W.a)(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null===h||void 0===h||h(r,{node:Object(j.b)(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),y.props.eventKey!==O||0!==_?(e.setState({dragOverNodeKey:S,dropPosition:k,dropLevelOffset:_,dropTargetKey:O,dropContainerKey:x,dropTargetPos:C,dropAllowed:E}),null===f||void 0===f||f({event:t,node:Object(j.b)(n.props),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()},e.onNodeDragOver=function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,s=r.expandedKeys,c=r.indent,l=e.props,d=l.onDragOver,f=l.allowDrop,h=l.direction,p=Object(u.a)(e).dragNode;if(p){var m=Object(W.c)(t,p,n,c,e.dragStartMousePosition,f,i,a,s,h),g=m.dropPosition,b=m.dropLevelOffset,v=m.dropTargetKey,y=m.dropContainerKey,w=m.dropAllowed,k=m.dropTargetPos,_=m.dragOverNodeKey;-1===o.indexOf(v)&&w&&(p.props.eventKey===v&&0===b?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():g===e.state.dropPosition&&b===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&y===e.state.dropContainerKey&&k===e.state.dropTargetPos&&w===e.state.dropAllowed&&_===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:b,dropTargetKey:v,dropContainerKey:y,dropTargetPos:k,dropAllowed:w,dragOverNodeKey:_}),null===d||void 0===d||d({event:t,node:Object(j.b)(n.props)}))}},e.onNodeDragLeave=function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null===r||void 0===r||r({event:t,node:Object(j.b)(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===r||void 0===r||r({event:t,node:Object(j.b)(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,s=i.dragChildrenKeys,c=i.dropPosition,l=i.dropTargetKey,u=i.dropTargetPos;if(i.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var f=Object(a.a)(Object(a.a)({},Object(j.g)(l,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===l,data:Object(K.a)(e.state.keyEntities,l).node}),h=-1!==s.indexOf(l);Object(b.a)(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=Object(W.h)(u),m={event:t,node:Object(j.b)(f),dragNode:e.dragNode?Object(j.b)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==c,dropPosition:c+Number(p[p.length-1])};o||null===d||void 0===d||d(m),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,s=n.expanded,c=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var l=i.filter((function(e){return e.key===c}))[0],u=Object(j.b)(Object(a.a)(Object(a.a)({},Object(j.g)(c,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(s?Object(W.b)(o,c):Object(W.a)(o,c)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,s=e.props,c=s.onSelect,l=s.multiple,u=n.selected,d=n[a.key],f=!u,h=(r=f?l?Object(W.a)(r,d):[d]:Object(W.b)(r,d)).map((function(e){var t=Object(K.a)(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:n,selectedNodes:h,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,c=i.checkedKeys,l=i.halfCheckedKeys,u=e.props,d=u.checkStrictly,f=u.onCheck,h=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var m=r?Object(W.a)(c,h):Object(W.b)(c,h);o={checked:m,halfChecked:Object(W.b)(l,h)},p.checkedNodes=m.map((function(e){return Object(K.a)(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Object(U.a)([].concat(Object(s.a)(c),[h]),!0,a),b=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(b);y.delete(h);var w=Object(U.a)(Array.from(y),{checked:!1,halfCheckedKeys:v},a);b=w.checkedKeys,v=w.halfCheckedKeys}o=b,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,b.forEach((function(e){var t=Object(K.a)(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:b},!1,{halfCheckedKeys:v})}null===f||void 0===f||f(o,p)},e.onNodeLoad=function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(i){var a=i.loadedKeys,s=void 0===a?[]:a,c=i.loadingKeys,l=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===s.indexOf(n)&&-1===l.indexOf(n)?(d(t).then((function(){var o=e.state.loadedKeys,i=Object(W.a)(o,n);null===f||void 0===f||f(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState((function(e){return{loadingKeys:Object(W.b)(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Object(W.b)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;Object(b.a)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Object(W.a)(i,n)}),r()}o(t)})),{loadingKeys:Object(W.a)(l,n)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state,r=n.treeData,o=n.fieldNames,i=Object(j.e)(r,t,o);e.setUncontrolledState({expandedKeys:t,flattenNodes:i},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,s=e.props,c=s.onExpand,l=s.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.indexOf(d),h=!u;if(Object(b.a)(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),r=h?Object(W.a)(r,d):Object(W.b)(r,d),e.setExpandedKeys(r),null===c||void 0===c||c(r,{node:n,expanded:h,nativeEvent:t.nativeEvent}),h&&l){var p=e.onNodeLoad(n);p&&p.then((function(){var t=Object(j.e)(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=e.state.expandedKeys,n=Object(W.b)(t,d);e.setExpandedKeys(n)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),null===r||void 0===r||r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var s=a.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,s=n.fieldNames,c=e.props,l=c.onKeyDown,u=c.checkable,d=c.selectable;switch(t.which){case m.a.UP:e.offsetActiveKey(-1),t.preventDefault();break;case m.a.DOWN:e.offsetActiveKey(1),t.preventDefault()}var f=e.getActiveItem();if(f&&f.data){var h=e.getTreeNodeRequiredProps(),p=!1===f.data.isLeaf||!!(f.data[s.children]||[]).length,g=Object(j.b)(Object(a.a)(Object(a.a)({},Object(j.g)(r,h)),{},{data:f.data,active:!0}));switch(t.which){case m.a.LEFT:p&&o.includes(r)?e.onNodeExpand({},g):f.parent&&e.onActiveChange(f.parent.key),t.preventDefault();break;case m.a.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},g):f.children&&f.children.length&&e.onActiveChange(f.children[0].key),t.preventDefault();break;case m.a.ENTER:case m.a.SPACE:!u||g.disabled||!1===g.checkable||g.disableCheckbox?u||!d||g.disabled||!1===g.selectable||e.onNodeSelect({},g):e.onNodeCheck({},g,!i.includes(r))}}null===l||void 0===l||l(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,s={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,s[n]=t[n])})),!o||n&&!i||e.setState(Object(a.a)(Object(a.a)({},s),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,a=n.focused,s=n.flattenNodes,c=n.keyEntities,l=n.draggingNodeKey,u=n.activeKey,d=n.dropLevelOffset,f=n.dropContainerKey,h=n.dropTargetKey,m=n.dropPosition,b=n.dragOverNodeKey,w=n.indent,k=this.props,_=k.prefixCls,O=k.className,x=k.style,C=k.showLine,E=k.focusable,j=k.tabIndex,S=void 0===j?0:j,P=k.selectable,T=k.showIcon,N=k.icon,A=k.switcherIcon,M=k.draggable,R=k.checkable,I=k.checkStrictly,D=k.disabled,L=k.motion,z=k.loadData,F=k.filterTreeNode,V=k.height,B=k.itemHeight,W=k.virtual,U=k.titleRender,K=k.dropIndicatorRender,Y=k.onContextMenu,q=k.onScroll,$=k.direction,G=k.rootClassName,Q=k.rootStyle,X=Object(g.a)(this.props,{aria:!0,data:!0});return M&&(t="object"===Object(i.a)(M)?M:"function"===typeof M?{nodeDraggable:M}:{}),v.createElement(y.a.Provider,{value:{prefixCls:_,selectable:P,showIcon:T,icon:N,switcherIcon:A,draggable:t,draggingNodeKey:l,checkable:R,checkStrictly:I,disabled:D,keyEntities:c,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:h,dropPosition:m,dragOverNodeKey:b,indent:w,direction:$,dropIndicatorRender:K,loadData:z,filterTreeNode:F,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:p()(_,O,G,(e={},Object(o.a)(e,"".concat(_,"-show-line"),C),Object(o.a)(e,"".concat(_,"-focused"),a),Object(o.a)(e,"".concat(_,"-active-focused"),null!==u),e)),style:Q},v.createElement(H,Object(r.a)({ref:this.listRef,prefixCls:_,style:x,data:s,disabled:D,selectable:P,checkable:!!R,motion:L,dragging:null!==l,height:V,itemHeight:B,virtual:W,focusable:E,focused:a,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:q},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function s(t){return!r&&t in e||r&&r[t]!==e[t]}var c=t.fieldNames;if(s("fieldNames")&&(c=Object(j.d)(e.fieldNames),i.fieldNames=c),s("treeData")?n=e.treeData:s("children")&&(Object(b.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(j.c)(e.children)),n){i.treeData=n;var l=Object(j.a)(n,{fieldNames:c});i.keyEntities=Object(a.a)(Object(o.a)({},I,L),l.keyEntities)}var u,d=i.keyEntities||t.keyEntities;if(s("expandedKeys")||r&&s("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Object(W.e)(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=Object(a.a)({},d);delete f[I],i.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(W.e)(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var h=Object(j.e)(n||t.treeData,i.expandedKeys||t.expandedKeys,c);i.flattenNodes=h}if((e.selectable&&(s("selectedKeys")?i.selectedKeys=Object(W.d)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=Object(W.d)(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?u=Object(W.g)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=Object(W.g)(e.defaultCheckedKeys)||{}:n&&(u=Object(W.g)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var p=u,m=p.checkedKeys,g=void 0===m?[]:m,v=p.halfCheckedKeys,y=void 0===v?[]:v;if(!e.checkStrictly){var w=Object(U.a)(g,!0,d);g=w.checkedKeys,y=w.halfCheckedKeys}i.checkedKeys=g,i.halfCheckedKeys=y}return s("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(v.Component);Y.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return v.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},Y.TreeNode=E.a;var q=Y;t.b=q},function(e,t,n){"use strict";n.d(t,"a",(function(){return de}));var r=n(1),o=n.n(r),i=n(14),a=n.n(i);function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(c){s=[6,c],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}Object.create;"function"===typeof SuppressedError&&SuppressedError;var d=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function f(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=d.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}var h=[".DS_Store","Thumbs.db"];function p(e){return"object"===typeof e&&null!==e}function m(e){return y(e.target.files).map((function(e){return f(e)}))}function g(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return f(e)}))]}}))}))}function b(e,t){return s(this,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=y(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(w))]):[3,2];case 1:return[2,v(k(r.sent()))];case 2:return[2,v(y(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===h.indexOf(e.name)}))}function y(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function w(e){if("function"!==typeof e.webkitGetAsEntry)return _(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?x(t):_(e)}function k(e){return e.reduce((function(e,t){return u(e,Array.isArray(t)?k(t):[t])}),[])}function _(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=f(t);return Promise.resolve(n)}function O(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){return[2,e.isDirectory?x(e):C(e)]}))}))}function x(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return s(i,void 0,void 0,(function(){var i,a,s;return c(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(O)),r.push(s),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function C(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=f(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var E=n(260),j=n.n(E);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return A(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 A(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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M="file-invalid-type",R="file-too-large",I="file-too-small",D="too-many-files",L=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:M,message:"File type must be ".concat(t)}},z=function(e){return{code:R,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},F=function(e){return{code:I,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},V={code:D,message:"Too many files"};function B(e,t){var n="application/x-moz-file"===e.type||j()(e,t);return[n,n?null:L(t)]}function H(e,t,n){if(W(e.size))if(W(t)&&W(n)){if(e.size>n)return[!1,z(n)];if(e.size<t)return[!1,F(t)]}else{if(W(t)&&e.size<t)return[!1,F(t)];if(W(n)&&e.size>n)return[!1,z(n)]}return[!0,null]}function W(e){return void 0!==e&&null!==e}function U(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function K(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 Y(e){e.preventDefault()}function q(){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,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!U(e)&&t&&t.apply(void 0,[e].concat(r)),U(e)}))}}function $(){return"showOpenFilePicker"in window}function G(e){return e="string"===typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return P(P({},e),{},T({},t,[]))}),{}):{}}]}var Q=["children"],X=["open"],J=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Z=["refKey","onChange","onClick"];function ee(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ne(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 te(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||ne(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 ne(e,t){if(e){if("string"===typeof e)return re(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)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ce=Object(r.forwardRef)((function(e,t){var n=e.children,i=de(se(e,Q)),a=i.open,s=se(i,X);return Object(r.useImperativeHandle)(t,(function(){return{open:a}}),[a]),o.a.createElement(r.Fragment,null,n(ie(ie({},s),{},{open:a})))}));ce.displayName="Dropzone";var le={disabled:!1,getFilesFromEvent:function(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){return p(e)&&p(e.dataTransfer)?[2,b(e.dataTransfer,e.type)]:function(e){return p(e)&&p(e.target)}(e)?[2,m(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,g(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};ce.defaultProps=le,ce.propTypes={children:a.a.func,accept:a.a.oneOfType([a.a.string,a.a.arrayOf(a.a.string)]),multiple:a.a.bool,preventDropOnDocument:a.a.bool,noClick:a.a.bool,noKeyboard:a.a.bool,noDrag:a.a.bool,noDragEventsBubbling:a.a.bool,minSize:a.a.number,maxSize:a.a.number,maxFiles:a.a.number,disabled:a.a.bool,getFilesFromEvent:a.a.func,onFileDialogCancel:a.a.func,onFileDialogOpen:a.a.func,useFsAccessApi:a.a.bool,onDragEnter:a.a.func,onDragLeave:a.a.func,onDragOver:a.a.func,onDrop:a.a.func,onDropAccepted:a.a.func,onDropRejected:a.a.func,validator:a.a.func};var ue={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ie(ie({},le),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,c=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,b=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.preventDropOnDocument,w=t.noClick,k=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,x=t.validator,C=Object(r.useMemo)((function(){return"function"===typeof b?b:he}),[b]),E=Object(r.useMemo)((function(){return"function"===typeof g?g:he}),[g]),j=Object(r.useRef)(null),S=Object(r.useRef)(null),P=te(Object(r.useReducer)(fe,ue),2),T=P[0],A=P[1],M=T.isFocused,R=T.isFileDialogActive,I=T.draggedFiles,D=function(){R&&setTimeout((function(){S.current&&(S.current.files.length||(A({type:"closeDialog"}),E()))}),300)};Object(r.useEffect)((function(){return v&&$()?function(){}:(window.addEventListener("focus",D,!1),function(){window.removeEventListener("focus",D,!1)})}),[S,R,E,v]);var L=Object(r.useRef)([]),z=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),L.current=[])};Object(r.useEffect)((function(){return y&&(document.addEventListener("dragover",Y,!1),document.addEventListener("drop",z,!1)),function(){y&&(document.removeEventListener("dragover",Y),document.removeEventListener("drop",z))}}),[j,y]);var F=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ve(e),L.current=[].concat(ee(L.current),[e.target]),K(e)&&Promise.resolve(i(e)).then((function(t){U(e)&&!O||(A({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[i,u,O]),W=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ve(e);var t=K(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&f&&f(e),!1}),[f,O]),Q=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ve(e);var t=L.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),L.current=t,t.length>0||(A({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),K(e)&&d&&d(e))}),[j,d,O]),X=Object(r.useCallback)((function(e,t){var r=[],o=[];e.forEach((function(e){var t=te(B(e,n),2),i=t[0],c=t[1],l=te(H(e,s,a),2),u=l[0],d=l[1],f=x?x(e):null;if(i&&u&&!f)r.push(e);else{var h=[c,d];f&&(h=h.concat(f)),o.push({file:e,errors:h.filter((function(e){return e}))})}})),(!c&&r.length>1||c&&l>=1&&r.length>l)&&(r.forEach((function(e){o.push({file:e,errors:[V]})})),r.splice(0)),A({acceptedFiles:r,fileRejections:o,type:"setFiles"}),h&&h(r,o,t),o.length>0&&m&&m(o,t),r.length>0&&p&&p(r,t)}),[A,c,n,s,a,l,h,p,m,x]),ne=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ve(e),L.current=[],K(e)&&Promise.resolve(i(e)).then((function(t){U(e)&&!O||X(t,e)})),A({type:"reset"})}),[i,X,O]),re=Object(r.useCallback)((function(){if(v&&$()){A({type:"openDialog"}),C();var e={multiple:c,types:G(n)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){return X(e,null)})).catch((function(e){return E(e)})).finally((function(){return A({type:"closeDialog"})}))}else S.current&&(A({type:"openDialog"}),C(),S.current.value=null,S.current.click())}),[A,C,E,v,X,n,c]),oe=Object(r.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),re()))}),[j,S,re]),ce=Object(r.useCallback)((function(){A({type:"focus"})}),[]),de=Object(r.useCallback)((function(){A({type:"blur"})}),[]),pe=Object(r.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?re():setTimeout(re,0))}),[S,w,re]),me=function(e){return o?null:e},ge=function(e){return k?null:me(e)},be=function(e){return _?null:me(e)},ve=function(e){O&&e.stopPropagation()},ye=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,c=e.onClick,l=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=se(e,J);return ie(ie(ae({onKeyDown:ge(q(i,oe)),onFocus:ge(q(a,ce)),onBlur:ge(q(s,de)),onClick:me(q(c,pe)),onDragEnter:be(q(l,F)),onDragOver:be(q(u,W)),onDragLeave:be(q(d,Q)),onDrop:be(q(f,ne)),role:"string"===typeof r&&""!==r?r:"button"},n,j),o||k?{}:{tabIndex:0}),h)}}),[j,oe,ce,de,pe,F,W,Q,ne,k,_,o]),we=Object(r.useCallback)((function(e){e.stopPropagation()}),[]),ke=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=se(e,Z);return ie(ie({},ae({accept:n,multiple:c,type:"file",style:{display:"none"},onChange:me(q(o,ne)),onClick:me(q(i,we)),autoComplete:"off",tabIndex:-1},r,S)),a)}}),[S,n,c,ne,o]),_e=I.length,Oe=_e>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=N(B(e,n),1)[0],i=N(H(e,r,o),1)[0];return t&&i}))}({files:I,accept:n,minSize:s,maxSize:a,multiple:c,maxFiles:l}),xe=_e>0&&!Oe;return ie(ie({},T),{},{isDragAccept:Oe,isDragReject:xe,isFocused:M&&!o,getRootProps:ye,getInputProps:ke,rootRef:j,inputRef:S,open:me(re)})}function fe(e,t){switch(t.type){case"focus":return ie(ie({},e),{},{isFocused:!0});case"blur":return ie(ie({},e),{},{isFocused:!1});case"openDialog":return ie(ie({},ue),{},{isFileDialogActive:!0});case"closeDialog":return ie(ie({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ie(ie({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ie(ie({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ie({},ue);default:return e}}function he(){}},function(e,t,n){"use strict";var r=n(27),o=n(25),i=n(13),a=n(37),s=n(38),c=n(98),l=n(28),u=n(1),d=n(66),f=n(23),h=0,p={};function m(e){var t=h++,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return p[t]=Object(f.a)((function r(){(n-=1)<=0?(e(),delete p[t]):p[t]=Object(f.a)(r)})),t}m.cancel=function(e){void 0!==e&&(f.a.cancel(p[e]),delete p[e])},m.ids=p;var g,b=n(26);function v(e){return!e||null===e.offsetParent||e.hidden}var y=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).containerRef=u.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o,a=e.props,s=a.insertExtraNode;if(!a.disabled&&t&&!v(t)&&!t.className.includes("-leave")){e.extraNode=document.createElement("div");var l=Object(i.a)(e).extraNode,u=e.context.getPrefixCls;l.className="".concat(u(""),"-click-animating-node");var d=e.getAttributeName();if(t.setAttribute(d,"true"),n&&"#fff"!==n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&"rgba(255, 255, 255, 1)"!==n&&function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){l.style.borderColor=n;var f=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,h=null!==(o=function(e){return e instanceof Document?e.body:Array.from(e.childNodes).find((function(e){return(null===e||void 0===e?void 0:e.nodeType)===Node.ELEMENT_NODE}))}(f))&&void 0!==o?o:f;g=Object(c.b)("\n [".concat(u(""),"-click-animating-without-extra-node='true']::after, .").concat(u(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:h})}s&&t.appendChild(l),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!t.className.includes("disabled")){var n=function(n){if("INPUT"!==n.target.tagName&&!v(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),m.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=m((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!u.isValidElement(r))return r;var o=e.containerRef;return Object(l.c)(r)&&(o=Object(l.a)(r.ref,e.containerRef)),Object(b.a)(r,{ref:o})},e}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),g&&(g.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return u.createElement(d.a,null,this.renderWave)}}]),n}(u.Component);y.contextType=d.b;t.a=y},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="EllipsisOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="DownOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(5),a=n(27),s=n(25),c=n(37),l=n(38),u=n(1),d=n(141),f=n(7),h=n.n(f),p=n(52),m=n(189),g=n(134),b=["getContainer"],v=0,y=Date.now();function w(){var e=v;return v+=1,"rcNotification_".concat(y,"_").concat(e)}var k=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r,o=null!==(r=t.key)&&void 0!==r?r:w(),a=Object(i.a)(Object(i.a)({},t),{},{key:o}),s=e.props.maxCount;e.setState((function(e){var t=e.notices,r=t.map((function(e){return e.notice.key})).indexOf(o),i=t.concat();return-1!==r?i.splice(r,1,{notice:a,holderCallback:n}):(s&&t.length>=s&&(a.key=i[0].notice.key,a.updateMark=w(),a.userPassKey=o,i.shift()),i.push({notice:a,holderCallback:n})),{notices:i}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key,o=n.userPassKey;return(null!==o&&void 0!==o?o:r)!==t}))}}))},e.noticePropsMap={},e}return Object(s.a)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,s=n.closeIcon,c=n.style,l=[];return t.forEach((function(n,o){var a=n.notice,c=n.holderCallback,u=o===t.length-1?a.updateMark:void 0,d=a.key,f=a.userPassKey,h=Object(i.a)(Object(i.a)(Object(i.a)({prefixCls:r,closeIcon:s},a),a.props),{},{key:d,noticeKey:f||d,updateMark:u,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});l.push(d),e.noticePropsMap[d]={props:h,holderCallback:c}})),u.createElement("div",{className:h()(r,a),style:c},u.createElement(p.a,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,a=t.className,s=t.style,c=t.visible,l=e.noticePropsMap[n],d=l.props,f=l.holderCallback;return f?u.createElement("div",{key:n,className:h()(a,"".concat(r,"-hook-holder")),style:Object(i.a)({},s),ref:function(t){"undefined"!==typeof n&&(t?(e.hookRefs.set(n,t),f(t,d)):e.hookRefs.delete(n))}}):u.createElement(m.a,Object(o.a)({},d,{className:h()(a,null===d||void 0===d?void 0:d.className),style:Object(i.a)(Object(i.a)({},s),null===d||void 0===d?void 0:d.style),visible:c}))})))}}]),n}(u.Component);k.newInstance=void 0,k.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},k.newInstance=function(e,t){var n=e||{},i=n.getContainer,a=Object(r.a)(n,b),s=document.createElement("div");i?i().appendChild(s):document.body.appendChild(s);var c=!1;Object(d.a)(u.createElement(k,Object(o.a)({},a,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){Object(d.b)(s),s.parentNode&&s.parentNode.removeChild(s)},useNotification:function(){return Object(g.a)(e)}}))}})),s)};var _=k;t.a=_},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="CheckCircleFilled";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="ExclamationCircleFilled";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="CheckCircleOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="InfoCircleOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="CloseCircleOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(10);function o(e){var t=function(e,t){if("object"!=Object(r.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(r.a)(t)?t:String(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return ce})),n.d(t,"a",(function(){return ae}));var r=n(3),o=n(9),i=n(4),a=n(5),s=n(6),c=n(8),l=n(10),u=n(33),d=n(17),f=n(1),h=n(7),p=n.n(h),m=n(39),g=n(182),b=n(11),v=n(28),y=f.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);return f.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var k=n(69),_=n(101),O=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,s=e.children;return t="function"===typeof r?r(o):r,f.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:f.createElement("span",{className:p()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},x=function(e,t){var n,r,o=e.prefixCls,i=e.id,s=e.inputElement,c=e.disabled,l=e.tabIndex,u=e.autoFocus,h=e.autoComplete,m=e.editable,g=e.activeDescendantId,b=e.value,y=e.maxLength,w=e.onKeyDown,k=e.onMouseDown,_=e.onChange,O=e.onPaste,x=e.onCompositionStart,C=e.onCompositionEnd,E=e.open,j=e.attrs,S=s||f.createElement("input",null),P=S,T=P.ref,N=P.props,A=N.onKeyDown,M=N.onChange,R=N.onMouseDown,I=N.onCompositionStart,D=N.onCompositionEnd,L=N.style;return Object(d.c)(!("maxLength"in S.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),S=f.cloneElement(S,Object(a.a)(Object(a.a)(Object(a.a)({type:"search"},N),{},{id:i,ref:Object(v.a)(t,T),disabled:c,tabIndex:l,autoComplete:h||"off",autoFocus:u,className:p()("".concat(o,"-selection-search-input"),null===(n=S)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":g},j),{},{value:m?b:"",maxLength:y,readOnly:!m,unselectable:m?null:"on",style:Object(a.a)(Object(a.a)({},L),{},{opacity:m?null:0}),onKeyDown:function(e){w(e),A&&A(e)},onMouseDown:function(e){k(e),R&&R(e)},onChange:function(e){_(e),M&&M(e)},onCompositionStart:function(e){x(e),I&&I(e)},onCompositionEnd:function(e){C(e),D&&D(e)},onPaste:O}))},C=f.forwardRef(x);C.displayName="Input";var E=C;function j(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var S="undefined"!==typeof window&&window.document&&window.document.documentElement;function P(e){return["string","number"].includes(Object(l.a)(e))}function T(e){var t=void 0;return e&&(P(e.title)?t=e.title.toString():P(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var A=function(e){e.preventDefault(),e.stopPropagation()},M=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,c=e.open,l=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,h=e.placeholder,m=e.disabled,g=e.mode,b=e.showSearch,v=e.autoFocus,y=e.autoComplete,w=e.activeDescendantId,x=e.tabIndex,C=e.removeIcon,j=e.maxTagCount,P=e.maxTagTextLength,M=e.maxTagPlaceholder,R=void 0===M?function(e){return"+ ".concat(e.length," ...")}:M,I=e.tagRender,D=e.onToggleOpen,L=e.onRemove,z=e.onInputChange,F=e.onInputPaste,V=e.onInputKeyDown,B=e.onInputMouseDown,H=e.onInputCompositionStart,W=e.onInputCompositionEnd,U=f.useRef(null),K=Object(f.useState)(0),Y=Object(s.a)(K,2),q=Y[0],$=Y[1],G=Object(f.useState)(!1),Q=Object(s.a)(G,2),X=Q[0],J=Q[1],Z="".concat(o,"-selection"),ee=c||"multiple"===g&&!1===u||"tags"===g?l:"",te="tags"===g||"multiple"===g&&!1===u||b&&(c||X);function ne(e,t,n,r,o){return f.createElement("span",{className:p()("".concat(Z,"-item"),Object(i.a)({},"".concat(Z,"-item-disabled"),n)),title:T(e)},f.createElement("span",{className:"".concat(Z,"-item-content")},t),r&&f.createElement(O,{className:"".concat(Z,"-item-remove"),onMouseDown:A,onClick:o,customizeIcon:C},"\xd7"))}t=function(){$(U.current.scrollWidth)},n=[ee],S?f.useLayoutEffect(t,n):f.useEffect(t,n);var re=f.createElement("div",{className:"".concat(Z,"-search"),style:{width:q},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},f.createElement(E,{ref:d,open:c,prefixCls:o,id:r,inputElement:null,disabled:m,autoFocus:v,autoComplete:y,editable:te,activeDescendantId:w,value:ee,onKeyDown:V,onMouseDown:B,onChange:z,onPaste:F,onCompositionStart:H,onCompositionEnd:W,tabIndex:x,attrs:Object(k.a)(e,!0)}),f.createElement("span",{ref:U,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),oe=f.createElement(_.a,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!m&&!t,i=n;if("number"===typeof P&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>P&&(i="".concat(a.slice(0,P),"..."))}var s=function(t){t&&t.stopPropagation(),L(e)};return"function"===typeof I?function(e,t,n,r,o){return f.createElement("span",{onMouseDown:function(e){A(e),D(!c)}},I({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,s):ne(e,i,t,o,s)},renderRest:function(e){var t="function"===typeof R?R(e):R;return ne({title:t},t,!1)},suffix:re,itemKey:N,maxCount:j});return f.createElement(f.Fragment,null,oe,!a.length&&!ee&&f.createElement("span",{className:"".concat(Z,"-placeholder")},h))},R=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,c=e.autoComplete,l=e.activeDescendantId,u=e.mode,d=e.open,h=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,_=e.onInputMouseDown,O=e.onInputChange,x=e.onInputPaste,C=e.onInputCompositionStart,j=e.onInputCompositionEnd,S=f.useState(!1),P=Object(s.a)(S,2),N=P[0],A=P[1],M="combobox"===u,R=M||g,I=h[0],D=b||"";M&&v&&!N&&(D=v),f.useEffect((function(){M&&A(!1)}),[M,v]);var L=!("combobox"!==u&&!d&&!g)&&!!D,z=T(I);return f.createElement(f.Fragment,null,f.createElement("span",{className:"".concat(n,"-selection-search")},f.createElement(E,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:c,editable:R,activeDescendantId:l,value:D,onKeyDown:w,onMouseDown:_,onChange:function(e){A(!0),O(e)},onPaste:x,onCompositionStart:C,onCompositionEnd:j,tabIndex:m,attrs:Object(k.a)(e,!0),maxLength:M?y:void 0})),!M&&I?f.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:L?{visibility:"hidden"}:void 0},I.label):null,function(){if(I)return null;var e=L?{visibility:"hidden"}:void 0;return f.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},p)}())};var I=function(e,t){var n=Object(f.useRef)(null),o=Object(f.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,l=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,h=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,g=e.onInputKeyDown,v=e.domRef;f.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var y=w(0),k=Object(s.a)(y,2),_=k[0],O=k[1],x=Object(f.useRef)(null),C=function(e){!1!==h(e,!0,o.current)&&m(!0)},E={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==b.a.UP&&n!==b.a.DOWN||e.preventDefault(),g&&g(e),n!==b.a.ENTER||"tags"!==c||o.current||a||null===p||void 0===p||p(e.target.value),t=n,[b.a.ESC,b.a.SHIFT,b.a.BACKSPACE,b.a.TAB,b.a.WIN_KEY,b.a.ALT,b.a.META,b.a.WIN_KEY_RIGHT,b.a.CTRL,b.a.SEMICOLON,b.a.EQUALS,b.a.CAPS_LOCK,b.a.CONTEXT_MENU,b.a.F1,b.a.F2,b.a.F3,b.a.F4,b.a.F5,b.a.F6,b.a.F7,b.a.F8,b.a.F9,b.a.F10,b.a.F11,b.a.F12].includes(t)||m(!0)},onInputMouseDown:function(){O(!0)},onInputChange:function(e){var t=e.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");x.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&C(e.target.value)}},j="multiple"===c||"tags"===c?f.createElement(M,Object(r.a)({},e,E)):f.createElement(R,Object(r.a)({},e,E));return f.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=_();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||l&&t)&&a||(a&&!1!==d&&h("",!0,!1),m())}},j)},D=f.forwardRef(I);D.displayName="Selector";var L=D,z=n(96),F=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],V=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),s=e.children,l=e.popupElement,u=e.containerWidth,d=e.animation,h=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,b=e.direction,v=void 0===b?"ltr":b,y=e.placement,w=e.dropdownMatchSelectWidth,k=e.dropdownRender,_=e.dropdownAlign,O=e.getPopupContainer,x=e.empty,C=e.getTriggerDOMNode,E=e.onPopupVisibleChange,j=e.onPopupMouseEnter,S=Object(c.a)(e,F),P="".concat(n,"-dropdown"),T=l;k&&(T=k(l));var N=f.useMemo((function(){return function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(w)}),[w]),A=d?"".concat(P,"-").concat(d):h,M=f.useRef(null);f.useImperativeHandle(t,(function(){return{getPopupElement:function(){return M.current}}}));var R=Object(a.a)({minWidth:u},m);return"number"===typeof w?R.width=w:w&&(R.width=u),f.createElement(z.a,Object(r.a)({},S,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:y||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:P,popupTransitionName:A,popup:f.createElement("div",{ref:M,onMouseEnter:j},T),popupAlign:_,popupVisible:o,getPopupContainer:O,popupClassName:p()(g,Object(i.a)({},"".concat(P,"-empty"),x)),popupStyle:R,getTriggerDOMNode:C,onPopupVisibleChange:E}),s)},B=f.forwardRef(V);B.displayName="SelectTrigger";var H=B,W=n(131);function U(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function K(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function Y(e){var t=Object(a.a)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(d.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],$=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G(e){return"tags"===e||"multiple"===e}var Q=f.forwardRef((function(e,t){var n,d,h=e.id,k=e.prefixCls,_=e.className,x=e.showSearch,C=e.tagRender,E=e.direction,j=e.omitDomProps,S=e.displayValues,P=e.onDisplayValuesChange,T=e.emptyOptions,N=e.notFoundContent,A=void 0===N?"Not Found":N,M=e.onClear,R=e.mode,I=e.disabled,D=e.loading,z=e.getInputElement,F=e.getRawInputElement,V=e.open,B=e.defaultOpen,U=e.onDropdownVisibleChange,K=e.activeValue,Y=e.onActiveValueChange,Q=e.activeDescendantId,X=e.searchValue,J=e.autoClearSearchValue,Z=e.onSearch,ee=e.onSearchSplit,te=e.tokenSeparators,ne=e.allowClear,re=e.showArrow,oe=e.inputIcon,ie=e.clearIcon,ae=e.OptionList,se=e.animation,ce=e.transitionName,le=e.dropdownStyle,ue=e.dropdownClassName,de=e.dropdownMatchSelectWidth,fe=e.dropdownRender,he=e.dropdownAlign,pe=e.placement,me=e.getPopupContainer,ge=e.showAction,be=void 0===ge?[]:ge,ve=e.onFocus,ye=e.onBlur,we=e.onKeyUp,ke=e.onKeyDown,_e=e.onMouseDown,Oe=Object(c.a)(e,q),xe=G(R),Ce=(void 0!==x?x:xe)||"combobox"===R,Ee=Object(a.a)({},Oe);$.forEach((function(e){delete Ee[e]})),null===j||void 0===j||j.forEach((function(e){delete Ee[e]}));var je=f.useState(!1),Se=Object(s.a)(je,2),Pe=Se[0],Te=Se[1];f.useEffect((function(){Te(Object(g.a)())}),[]);var Ne=f.useRef(null),Ae=f.useRef(null),Me=f.useRef(null),Re=f.useRef(null),Ie=f.useRef(null),De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=f.useState(!1),n=Object(s.a)(t,2),r=n[0],o=n[1],i=f.useRef(null),a=function(){window.clearTimeout(i.current)};return f.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Le=Object(s.a)(De,3),ze=Le[0],Fe=Le[1],Ve=Le[2];f.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ie.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Be=f.useMemo((function(){var e;if("combobox"!==R)return X;var t=null===(e=S[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[X,R,S]),He="combobox"===R&&"function"===typeof z&&z()||null,We="function"===typeof F&&F(),Ue=Object(v.d)(Ae,null===We||void 0===We||null===(n=We.props)||void 0===n?void 0:n.ref),Ke=Object(u.a)(void 0,{defaultValue:B,value:V}),Ye=Object(s.a)(Ke,2),qe=Ye[0],$e=Ye[1],Ge=qe,Qe=!A&&T;(I||Qe&&Ge&&"combobox"===R)&&(Ge=!1);var Xe=!Qe&&Ge,Je=f.useCallback((function(e){var t=void 0!==e?e:!Ge;I||($e(t),Ge!==t&&(null===U||void 0===U||U(t)))}),[I,Ge,$e,U]),Ze=f.useMemo((function(){return(te||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[te]),et=function(e,t,n){var r=!0,i=e;null===Y||void 0===Y||Y(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=Object(W.a)(r),a=i[0],s=i.slice(1);if(!a)return[t];var c=t.split(a);return n=n||c.length>1,c.reduce((function(t,n){return[].concat(Object(o.a)(t),Object(o.a)(e(n,s)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,te);return"combobox"!==R&&a&&(i="",null===ee||void 0===ee||ee(a),Je(!1),r=!1),Z&&Be!==i&&Z(i,{source:t?"typing":"effect"}),r};f.useEffect((function(){Ge||xe||"combobox"===R||et("",!1,!1)}),[Ge]),f.useEffect((function(){qe&&I&&$e(!1),I&&Fe(!1)}),[I]);var tt=w(),nt=Object(s.a)(tt,2),rt=nt[0],ot=nt[1],it=f.useRef(!1),at=[];f.useEffect((function(){return function(){at.forEach((function(e){return clearTimeout(e)})),at.splice(0,at.length)}}),[]);var st,ct=f.useState(null),lt=Object(s.a)(ct,2),ut=lt[0],dt=lt[1],ft=f.useState({}),ht=Object(s.a)(ft,2)[1];Object(m.a)((function(){if(Xe){var e,t=Math.ceil(null===(e=Ne.current)||void 0===e?void 0:e.offsetWidth);ut===t||Number.isNaN(t)||dt(t)}}),[Xe]),We&&(st=function(e){Je(e)}),function(e,t,n,r){var o=f.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Me.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Je,!!We);var pt,mt,gt=f.useMemo((function(){return Object(a.a)(Object(a.a)({},e),{},{notFoundContent:A,open:Ge,triggerOpen:Xe,id:h,showSearch:Ce,multiple:xe,toggleOpen:Je})}),[e,A,Xe,Ge,h,Ce,xe,Je]),bt=void 0!==re?re:D||!xe&&"combobox"!==R;bt&&(pt=f.createElement(O,{className:p()("".concat(k,"-arrow"),Object(i.a)({},"".concat(k,"-arrow-loading"),D)),customizeIcon:oe,customizeIconProps:{loading:D,searchValue:Be,open:Ge,focused:ze,showSearch:Ce}}));I||!ne||!S.length&&!Be||"combobox"===R&&""===Be||(mt=f.createElement(O,{className:"".concat(k,"-clear"),onMouseDown:function(){var e;null===M||void 0===M||M(),null===(e=Re.current)||void 0===e||e.focus(),P([],{type:"clear",values:S}),et("",!1,!1)},customizeIcon:ie},"\xd7"));var vt,yt=f.createElement(ae,{ref:Ie}),wt=p()(k,_,(d={},Object(i.a)(d,"".concat(k,"-focused"),ze),Object(i.a)(d,"".concat(k,"-multiple"),xe),Object(i.a)(d,"".concat(k,"-single"),!xe),Object(i.a)(d,"".concat(k,"-allow-clear"),ne),Object(i.a)(d,"".concat(k,"-show-arrow"),bt),Object(i.a)(d,"".concat(k,"-disabled"),I),Object(i.a)(d,"".concat(k,"-loading"),D),Object(i.a)(d,"".concat(k,"-open"),Ge),Object(i.a)(d,"".concat(k,"-customize-input"),He),Object(i.a)(d,"".concat(k,"-show-search"),Ce),d)),kt=f.createElement(H,{ref:Me,disabled:I,prefixCls:k,visible:Xe,popupElement:yt,containerWidth:ut,animation:se,transitionName:ce,dropdownStyle:le,dropdownClassName:ue,direction:E,dropdownMatchSelectWidth:de,dropdownRender:fe,dropdownAlign:he,placement:pe,getPopupContainer:me,empty:T,getTriggerDOMNode:function(){return Ae.current},onPopupVisibleChange:st,onPopupMouseEnter:function(){ht({})}},We?f.cloneElement(We,{ref:Ue}):f.createElement(L,Object(r.a)({},e,{domRef:Ae,prefixCls:k,inputElement:He,ref:Re,id:h,showSearch:Ce,autoClearSearchValue:J,mode:R,activeDescendantId:Q,tagRender:C,values:S,open:Ge,onToggleOpen:Je,activeValue:K,searchValue:Be,onSearch:et,onSearchSubmit:function(e){e&&e.trim()&&Z(e,{source:"submit"})},onRemove:function(e){var t=S.filter((function(t){return t!==e}));P(t,{type:"remove",values:[e]})},tokenWithEnter:Ze})));return vt=We?kt:f.createElement("div",Object(r.a)({className:wt},Ee,{ref:Ne,onMouseDown:function(e){var t,n=e.target,r=null===(t=Me.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=at.indexOf(o);-1!==t&&at.splice(t,1),Ve(),Pe||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));at.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null===_e||void 0===_e||_e.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=rt(),r=e.which;if(r===b.a.ENTER&&("combobox"!==R&&e.preventDefault(),Ge||Je(!0)),ot(!!Be),r===b.a.BACKSPACE&&!n&&xe&&!Be&&S.length){for(var i=Object(o.a)(S),a=null,s=i.length-1;s>=0;s-=1){var c=i[s];if(!c.disabled){i.splice(s,1),a=c;break}}a&&P(i,{type:"remove",values:[a]})}for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];Ge&&Ie.current&&(t=Ie.current).onKeyDown.apply(t,[e].concat(u)),null===ke||void 0===ke||ke.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Ge&&Ie.current&&(o=Ie.current).onKeyUp.apply(o,[e].concat(n)),null===we||void 0===we||we.apply(void 0,[e].concat(n))},onFocus:function(){Fe(!0),I||(ve&&!it.current&&ve.apply(void 0,arguments),be.includes("focus")&&Je(!0)),it.current=!0},onBlur:function(){Fe(!1,(function(){it.current=!1,Je(!1)})),I||(Be&&("tags"===R?Z(Be,{source:"submit"}):"multiple"===R&&Z("",{source:"blur"})),ye&&ye.apply(void 0,arguments))}}),ze&&!Ge&&f.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(S.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Object(l.a)(t))?t:n})).join(", "))),kt,pt,mt),f.createElement(y.Provider,{value:gt},vt)}));var X=Q;function J(e,t){return j(e).join("").toUpperCase().includes(t)}var Z=n(257),ee=n(51),te=["children","value"],ne=["children"];function re(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(ee.a)(e).map((function(e,n){if(!f.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,s=r.props,l=s.children,u=Object(c.a)(s,ne);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,s=Object(c.a)(r,te);return Object(a.a)({key:n,value:void 0!==i?i:n,children:o},s)}(e):Object(a.a)(Object(a.a)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},u),{},{options:re(l)})})).filter((function(e){return e}))}function oe(e){var t=f.useRef();t.current=e;var n=f.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var ie=function(){return null};ie.isSelectOptGroup=!0;var ae=ie,se=function(){return null};se.isSelectOption=!0;var ce=se,le=n(32),ue=n(84),de=n(194);var fe=f.createContext(null),he=["disabled","title","children","style","className"];function pe(e){return"string"===typeof e||"number"===typeof e}var me=function(e,t){var n=f.useContext(y),a=n.prefixCls,l=n.id,u=n.open,d=n.multiple,h=n.mode,m=n.searchValue,g=n.toggleOpen,v=n.notFoundContent,w=n.onPopupScroll,_=f.useContext(fe),x=_.flattenOptions,C=_.onActiveValue,E=_.defaultActiveFirstOption,j=_.onSelect,S=_.menuItemSelectedIcon,P=_.rawValues,T=_.fieldNames,N=_.virtual,A=_.listHeight,M=_.listItemHeight,R="".concat(a,"-item"),I=Object(ue.a)((function(){return x}),[u,x],(function(e,t){return t[0]&&e[1]!==t[1]})),D=f.useRef(null),L=function(e){e.preventDefault()},z=function(e){D.current&&D.current.scrollTo("number"===typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=I[o],a=i.group,s=i.data;if(!a&&!s.disabled)return o}return-1},V=f.useState((function(){return F(0)})),B=Object(s.a)(V,2),H=B[0],W=B[1],U=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?C(r.value,e,n):C(null,-1,n)};Object(f.useEffect)((function(){U(!1!==E?F(0):-1)}),[I.length,m]);var K=f.useCallback((function(e){return P.has(e)&&"combobox"!==h}),[h,Object(o.a)(P).toString(),P.size]);Object(f.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&u&&1===P.size){var e=Array.from(P)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(U(t),z(t))}}));u&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[u,m]);var Y=function(e){void 0!==e&&j(e,{selected:!P.has(e)}),d||g(!1)};if(f.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.a.N:case b.a.P:case b.a.UP:case b.a.DOWN:var r=0;if(t===b.a.UP?r=-1:t===b.a.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.a.N?r=1:t===b.a.P&&(r=-1)),0!==r){var o=F(H+r,r);z(o),U(o,!0)}break;case b.a.ENTER:var i=I[H];i&&!i.data.disabled?Y(i.value):Y(void 0),u&&e.preventDefault();break;case b.a.ESC:g(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}})),0===I.length)return f.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(R,"-empty"),onMouseDown:L},v);var q=Object.keys(T).map((function(e){return T[e]})),$=function(e){return e.label},G=function(e){var t=I[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=Object(k.a)(n,!0),s=$(t);return t?f.createElement("div",Object(r.a)({"aria-label":"string"!==typeof s||i?null:s},a,{key:e,role:i?"presentation":"option",id:"".concat(l,"_list_").concat(e),"aria-selected":K(o)}),o):null};return f.createElement(f.Fragment,null,f.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},G(H-1),G(H),G(H+1)),f.createElement(de.a,{itemKey:"key",ref:D,data:I,height:A,itemHeight:M,fullHeight:!1,onMouseDown:L,onScroll:w,virtual:N},(function(e,t){var n,o=e.group,a=e.groupOption,s=e.data,l=e.label,u=e.value,d=s.key;if(o){var h,m=null!==(h=s.title)&&void 0!==h?h:pe(l)?l.toString():void 0;return f.createElement("div",{className:p()(R,"".concat(R,"-group")),title:m},void 0!==l?l:d)}var g=s.disabled,b=s.title,v=(s.children,s.style),y=s.className,w=Object(c.a)(s,he),_=Object(le.a)(w,q),x=K(u),C="".concat(R,"-option"),E=p()(R,C,y,(n={},Object(i.a)(n,"".concat(C,"-grouped"),a),Object(i.a)(n,"".concat(C,"-active"),H===t&&!g),Object(i.a)(n,"".concat(C,"-disabled"),g),Object(i.a)(n,"".concat(C,"-selected"),x),n)),j=$(e),P=!S||"function"===typeof S||x,T="number"===typeof j?j:j||u,N=pe(T)?T.toString():void 0;return void 0!==b&&(N=b),f.createElement("div",Object(r.a)({},Object(k.a)(_),{"aria-selected":x,className:E,title:N,onMouseMove:function(){H===t||g||U(t)},onClick:function(){g||Y(u)},style:v}),f.createElement("div",{className:"".concat(C,"-content")},T),f.isValidElement(S)||x,P&&f.createElement(O,{className:"".concat(R,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:x}},x?"\u2713":null))})))},ge=f.forwardRef(me);ge.displayName="OptionList";var be=ge;var ve=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ye=["inputValue"];var we=f.forwardRef((function(e,t){var n=e.id,d=e.mode,h=e.prefixCls,p=void 0===h?"rc-select":h,m=e.backfill,g=e.fieldNames,b=e.inputValue,v=e.searchValue,y=e.onSearch,w=e.autoClearSearchValue,k=void 0===w||w,_=e.onSelect,O=e.onDeselect,x=e.dropdownMatchSelectWidth,C=void 0===x||x,E=e.filterOption,S=e.filterSort,P=e.optionFilterProp,T=e.optionLabelProp,N=e.options,A=e.children,M=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,I=e.virtual,D=e.listHeight,L=void 0===D?200:D,z=e.listItemHeight,F=void 0===z?20:z,V=e.value,B=e.defaultValue,H=e.labelInValue,W=e.onChange,q=Object(c.a)(e,ve),$=Object(Z.a)(n),Q=G(d),ee=!(N||!A),te=f.useMemo((function(){return(void 0!==E||"combobox"!==d)&&E}),[E,d]),ne=f.useMemo((function(){return K(g,ee)}),[JSON.stringify(g),ee]),ie=Object(u.a)("",{value:void 0!==v?v:b,postState:function(e){return e||""}}),ae=Object(s.a)(ie,2),se=ae[0],ce=ae[1],le=function(e,t,n,r,o){return f.useMemo((function(){var i=e;!e&&(i=re(t));var a=new Map,s=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l<t.length;l+=1){var u=t[l];!u[n.options]||i?(a.set(u[n.value],u),c(s,u,n.label),c(s,u,r),c(s,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}}),[e,t,n,r,o])}(N,A,ne,P,T),ue=le.valueOptions,de=le.labelOptions,he=le.options,pe=f.useCallback((function(e){return j(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==Object(l.a)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var s,c=ue.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[T||ne.label]),void 0===r&&(r=null!==(s=null===c||void 0===c?void 0:c.key)&&void 0!==s?s:t),o=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[ne,T,ue]),me=Object(u.a)(B,{value:V}),ge=Object(s.a)(me,2),we=ge[0],ke=ge[1],_e=function(e,t){var n=f.useRef({values:new Map,options:new Map});return[f.useMemo((function(){var r=n.current,o=r.values,i=r.options,s=e.map((function(e){var t;return void 0===e.label?Object(a.a)(Object(a.a)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),c=new Map,l=new Map;return s.forEach((function(e){c.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=c,n.current.options=l,s}),[e,t]),f.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(f.useMemo((function(){var e,t=pe(we);return"combobox"!==d||null!==(e=t[0])&&void 0!==e&&e.value?t:[]}),[we,pe,d]),ue),Oe=Object(s.a)(_e,2),xe=Oe[0],Ce=Oe[1],Ee=f.useMemo((function(){if(!d&&1===xe.length){var e=xe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return xe.map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[d,xe]),je=f.useMemo((function(){return new Set(xe.map((function(e){return e.value})))}),[xe]);f.useEffect((function(){if("combobox"===d){var e,t=null===(e=xe[0])||void 0===e?void 0:e.value;ce(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[xe]);var Se=oe((function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},Object(i.a)(n,ne.value,e),Object(i.a)(n,ne.label,r),n})),Pe=function(e,t,n,r,o){return f.useMemo((function(){if(!n||!1===r)return e;var s=t.options,c=t.label,l=t.value,u=[],d="function"===typeof r,f=n.toUpperCase(),h=d?r:function(e,t){return o?J(t[o],f):t[s]?J(t["children"!==c?c:"label"],f):J(t[l],f)},p=d?function(e){return Y(e)}:function(e){return e};return e.forEach((function(e){if(e[s])if(h(n,p(e)))u.push(e);else{var t=e[s].filter((function(e){return h(n,p(e))}));t.length&&u.push(Object(a.a)(Object(a.a)({},e),{},Object(i.a)({},s,t)))}else h(n,p(e))&&u.push(e)})),u}),[e,r,o,n,t])}(f.useMemo((function(){if("tags"!==d)return he;var e=Object(o.a)(he);return Object(o.a)(xe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ue.has(e)})(n)||e.push(Se(n,t.label))})),e}),[Se,he,ue,xe,d]),ne,se,te,P),Te=f.useMemo((function(){return"tags"!==d||!se||Pe.some((function(e){return e[P||"value"]===se}))?Pe:[Se(se)].concat(Object(o.a)(Pe))}),[Se,P,d,Pe,se]),Ne=f.useMemo((function(){return S?Object(o.a)(Te).sort((function(e,t){return S(e,t)})):Te}),[Te,S]),Ae=f.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=K(n,!1),a=i.label,s=i.value,c=i.options;return function e(t,n){t.forEach((function(t){var i=t[a];if(n||!(c in t)){var l=t[s];o.push({key:U(t,o.length),groupOption:n,data:t,label:i,value:l})}else{var u=i;void 0===u&&r&&(u=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(Ne,{fieldNames:ne,childrenAsData:ee})}),[Ne,ne,ee]),Me=function(e){var t=pe(e);if(ke(t),W&&(t.length!==xe.length||t.some((function(e,t){var n;return(null===(n=xe[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return Y(Ce(e.value))}));W(Q?n:n[0],Q?r:r[0])}},Re=f.useState(null),Ie=Object(s.a)(Re,2),De=Ie[0],Le=Ie[1],ze=f.useState(0),Fe=Object(s.a)(ze,2),Ve=Fe[0],Be=Fe[1],He=void 0!==M?M:"combobox"!==d,We=f.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Be(t),m&&"combobox"===d&&null!==e&&"keyboard"===r&&Le(String(e))}),[m,d]),Ue=function(e,t,n){var r=function(){var t,n=Ce(e);return[H?{label:null===n||void 0===n?void 0:n[ne.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,Y(n)]};if(t&&_){var o=r(),i=Object(s.a)(o,2),a=i[0],c=i[1];_(a,c)}else if(!t&&O&&"clear"!==n){var l=r(),u=Object(s.a)(l,2),d=u[0],f=u[1];O(d,f)}},Ke=oe((function(e,t){var n,r=!Q||t.selected;n=r?Q?[].concat(Object(o.a)(xe),[e]):[e]:xe.filter((function(t){return t.value!==e})),Me(n),Ue(e,r),"combobox"===d?Le(""):G&&!k||(ce(""),Le(""))})),Ye=f.useMemo((function(){var e=!1!==I&&!1!==C;return Object(a.a)(Object(a.a)({},le),{},{flattenOptions:Ae,onActiveValue:We,defaultActiveFirstOption:He,onSelect:Ke,menuItemSelectedIcon:R,rawValues:je,fieldNames:ne,virtual:e,listHeight:L,listItemHeight:F,childrenAsData:ee})}),[le,Ae,We,He,Ke,R,je,ne,I,C,L,F,ee]);return f.createElement(fe.Provider,{value:Ye},f.createElement(X,Object(r.a)({},q,{id:$,prefixCls:p,ref:t,omitDomProps:ye,mode:d,displayValues:Ee,onDisplayValuesChange:function(e,t){Me(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ue(e.value,!1,n)}))},searchValue:se,onSearch:function(e,t){if(ce(e),Le(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&Me(e),null===y||void 0===y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Object(o.a)(je),[n])));Me(r),Ue(n,!0),ce("")}}},autoClearSearchValue:k,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=de.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Object(o.a)(je),Object(o.a)(t))));Me(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:C,OptionList:be,emptyOptions:!Ae.length,activeValue:De,activeDescendantId:"".concat($,"_list_").concat(Ve)})))}));var ke=we;ke.Option=ce,ke.OptGroup=ae;var _e=ke;t.c=_e},,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){var r=n(126)(n(95),"Map");e.exports=r},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,n){"use strict";(function(t){var r=n(79),o=n(392),i=n(245),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(246)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c}).call(this,n(159))},function(e,t,n){var r=n(406),o=n(167),i=n(408);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgressBar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default,n=0;r.default.configure(e),t.interceptors.request.use((function(e){return n++,r.default.start(),e})),function(){var e=function(e){return r.default.inc(a(e.loaded,e.total))};t.defaults.onDownloadProgress=e,t.defaults.onUploadProgress=e}(),t.interceptors.response.use((function(e){return 0===--n&&r.default.done(),e}),(function(e){return 0===--n&&r.default.done(),Promise.reject(e)}))},n(2);var r=i(n(3)),o=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t){return Math.floor(1*e)/t}},function(e,t){},function(e,t,n){var r,o;r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function o(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,i((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(l,o(r,u,d)),1===r?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){0===--n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var i,s=o.querySelector(t.barSelector),l=n?"-100":r(e.status||0),u=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(i=o.querySelector(t.spinnerSelector))&&d(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(o),o},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function s(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=u(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},function(t,n){t.exports=e}])},e.exports=r(n(35))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},function(e,t,n){var r=n(295);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(382);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,f)s+=f[1];else{var p=e[a],m=n[2],g=n[3],b=n[4],v=n[5],y=n[6],w=n[7];s&&(r.push(s),s="");var k=null!=m&&null!=p&&p!==m,_="+"===y||"*"===y,O="?"===y||"*"===y,x=n[2]||u,C=b||v;r.push({name:g||i++,prefix:m||"",delimiter:x,optional:O,repeat:_,partial:k,asterisk:!!w,pattern:C?l(C):w?".*":"[^"+c(x)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},c=(o||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!==typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(d=c(f[h]),!n[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(f),!n[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var f=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+f+h+")*"),a+=h=l.optional?l.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var p=c(n.delimiter||"/"),m=a.slice(-p.length)===p;return o||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 8v5h5v-2h-3V8z"}},{tag:"path",attr:{d:"M21.292 8.497a8.957 8.957 0 0 0-1.928-2.862 9.004 9.004 0 0 0-4.55-2.452 9.09 9.09 0 0 0-3.626 0 8.965 8.965 0 0 0-4.552 2.453 9.048 9.048 0 0 0-1.928 2.86A8.963 8.963 0 0 0 4 12l.001.025H2L5 16l3-3.975H6.001L6 12a6.957 6.957 0 0 1 1.195-3.913 7.066 7.066 0 0 1 1.891-1.892 7.034 7.034 0 0 1 2.503-1.054 7.003 7.003 0 0 1 8.269 5.445 7.117 7.117 0 0 1 0 2.824 6.936 6.936 0 0 1-1.054 2.503c-.25.371-.537.72-.854 1.036a7.058 7.058 0 0 1-2.225 1.501 6.98 6.98 0 0 1-1.313.408 7.117 7.117 0 0 1-2.823 0 6.957 6.957 0 0 1-2.501-1.053 7.066 7.066 0 0 1-1.037-.855l-1.414 1.414A8.985 8.985 0 0 0 13 21a9.05 9.05 0 0 0 3.503-.707 9.009 9.009 0 0 0 3.959-3.26A8.968 8.968 0 0 0 22 12a8.928 8.928 0 0 0-.708-3.503z"}}]})(e)}function i(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 7h-1V2H6v5H5c-1.654 0-3 1.346-3 3v7c0 1.103.897 2 2 2h2v3h12v-3h2c1.103 0 2-.897 2-2v-7c0-1.654-1.346-3-3-3zM8 4h8v3H8V4zm8 16H8v-4h8v4zm4-3h-2v-3H6v3H4v-7c0-.551.449-1 1-1h14c.552 0 1 .449 1 1v7z"}},{tag:"path",attr:{d:"M14 10h4v2h-4z"}}]})(e)}},function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return i}));var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r),i=n(176);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(56),o=n(63),i=n(1),a=n.n(i),s=n(22),c=n.n(s),l=!1,u=n(140),d="unmounted",f="exited",h="entering",p="entered",m="exiting",g=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=f,r.appearStatus=h):o=p:o=t.unmountOnExit||t.mountOnEnter?d:f,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:f}: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!==h&&n!==p&&(t=h):n!==h&&n!==p||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||l?this.safeSetState({status:p},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:f},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){e.props.onExited(r)}))},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(r){n&&(n=!1,t.nextCallback=null,e(r))},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:c.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}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,o=(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(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(u.a.Provider,{value:null},"function"===typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function b(){}g.contextType=u.a,g.propTypes={},g.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},g.UNMOUNTED=d,g.EXITED=f,g.ENTERING=h,g.ENTERED=p,g.EXITING=m;t.a=g},,,,,,function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(145),o=n(163);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(144))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(314),o=n(321),i=n(323),a=n(324),s=n(325);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(326),o=n(329),i=n(330);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var b=e[p],v=t[p];if(a)var y=l?a(v,b,p,t,e,c):a(b,v,p,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(b===e||s(b,e,n,a,c)))return g.push(t)}))){m=!1;break}}else if(b!==v&&!s(b,v,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){(function(e){var r=n(95),o=n(347),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(212)(e))},function(e,t,n){var r=n(349),o=n(350),i=n(351),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(162),o=n(363),i=n(166),a=n(239),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},function(e,t,n){var r=n(145),o=n(146);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(366);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(367),o=n(167),i=n(368);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(379),o=n(163),i=n(239),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(79);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(79),o=n(393),i=n(394),a=n(244),s=n(395),c=n(398),l=n(399),u=n(247);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,h=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+g)}var b=s(e.baseURL,e.url);function v(){if(p){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}}if(p.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(v)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},function(e,t,n){"use strict";var r=n(245);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(79);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,l),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(405),o=n(238),i=n(240),a=n(167),s=n(214),c=n(241),l=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var u=r(t,l(e/s(t)));return a(t)?i(c(u),0,e).join(""):u.slice(0,e)}},function(e,t,n){var r=n(409);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},function(e,t,n){"use strict";t.a=function(e){function t(e,r,c,l,f){for(var h,p,m,g,w,_=0,O=0,x=0,C=0,E=0,A=0,R=m=h=0,D=0,L=0,z=0,F=0,V=c.length,B=V-1,H="",W="",U="",K="";D<V;){if(p=c.charCodeAt(D),D===B&&0!==O+C+x+_&&(0!==O&&(p=47===O?10:47),C=x=_=0,V++,B++),0===O+C+x+_){if(D===B&&(0<L&&(H=H.replace(d,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(D)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),m=1,F=++D;D<V;){switch(p=c.charCodeAt(D)){case 123:m++;break;case 125:m--;break;case 47:switch(p=c.charCodeAt(D+1)){case 42:case 47:e:{for(R=D+1;R<B;++R)switch(c.charCodeAt(R)){case 47:if(42===p&&42===c.charCodeAt(R-1)&&D+2!==R){D=R+1;break e}break;case 10:if(47===p){D=R+1;break e}}D=R}}break;case 91:p++;case 40:p++;case 34:case 39:for(;D++<B&&c.charCodeAt(D)!==p;);}if(0===m)break;D++}if(m=c.substring(F,D),0===h&&(h=(H=H.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<L&&(H=H.replace(d,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=N}if(F=(m=t(r,L,m,p,f+1)).length,0<M&&(w=s(3,m,L=n(N,H,z),r,S,j,F,p,f,l),H=L.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(p=0,m="")),0<F)switch(p){case 115:H=H.replace(k,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(b,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===l&&(W+=m,m="")}else m=""}else m=t(r,n(r,H,z),m,l,f+1);U+=m,m=z=L=R=h=0,H="",p=c.charCodeAt(++D);break;case 125:case 59:if(1<(F=(H=(0<L?H.replace(d,""):H).trim()).length))switch(0===R&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(F=(H=H.replace(" ",":")).length),0<M&&void 0!==(w=s(1,H,r,e,S,j,W.length,l,f,l))&&0===(F=(H=w.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){K+=H+c.charAt(D);break}default:58!==H.charCodeAt(F-1)&&(W+=o(H,h,p,H.charCodeAt(2)))}z=L=R=h=0,H="",p=c.charCodeAt(++D)}}switch(p){case 13:case 10:47===O?O=0:0===1+h&&107!==l&&0<H.length&&(L=1,H+="\0"),0<M*I&&s(0,H,r,e,S,j,W.length,l,f,l),j=1,S++;break;case 59:case 125:if(0===O+C+x+_){j++;break}default:switch(j++,g=c.charAt(D),p){case 9:case 32:if(0===C+_+O)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+O+_&&(L=z=1,g="\f"+g);break;case 108:if(0===C+O+_+P&&0<R)switch(D-R){case 2:112===E&&58===c.charCodeAt(D-3)&&(P=E);case 8:111===A&&(P=A)}break;case 58:0===C+O+_&&(R=D);break;case 44:0===O+x+C+_&&(L=1,g+="\r");break;case 34:case 39:0===O&&(C=C===p?0:0===C?p:C);break;case 91:0===C+O+x&&_++;break;case 93:0===C+O+x&&_--;break;case 41:0===C+O+_&&x--;break;case 40:if(0===C+O+_){if(0===h)if(2*E+3*A===533);else h=1;x++}break;case 64:0===O+x+C+_+R+m&&(m=1);break;case 42:case 47:if(!(0<C+_+x))switch(O){case 0:switch(2*p+3*c.charCodeAt(D+1)){case 235:O=47;break;case 220:F=D,O=42}break;case 42:47===p&&42===E&&F+2!==D&&(33===c.charCodeAt(F+2)&&(W+=c.substring(F,D+1)),g="",O=0)}}0===O&&(H+=g)}A=E,E=p,D++}if(0<(F=W.length)){if(L=r,0<M&&(void 0!==(w=s(2,W,L,e,S,j,F,l,f,l))&&0===(W=w).length))return K+W+U;if(W=L.join(",")+"{"+W+"}",0!==T*P){switch(2!==T||i(W,2)||(P=0),P){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(v,"::-webkit-input-$1")+W.replace(v,"::-moz-$1")+W.replace(v,":-ms-input-$1")+W}P=0}}return K+W+U}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===T||2===T&&i(c,1)?"-webkit-"+c+c:c}if(0===T||2===T&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,u){for(var d,f=0,h=t;f<M;++f)switch(d=A[f].call(l,e,h,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!==typeof e?T=1:(T=2,R=e):T=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=s(-1,n,r,r,S,j,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(N,r,n,0,0);return 0<M&&(void 0!==(o=s(-2,i,r,r,S,j,i.length,0,0,0))&&(i=o)),"",P=0,j=S=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,O=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,j=1,S=1,P=0,T=1,N=[],A=[],M=0,R=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:M=A.length=0;break;default:if("function"===typeof t)A[M++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=c,void 0!==e&&c(e),l}},function(e,t,n){"use strict";t.a={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";(function(e){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e,t,n){return a=function(){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}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},a.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)},s(e)}n.d(t,"a",(function(){return P}));var c=/%[sdj%]/g,l=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(c,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function h(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}"undefined"!==typeof e&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0});var p=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),r}(s(Error));function m(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);h(a,n,(function(e){return r(e),e.length?i(new p(e,u(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,d=[],f=new Promise((function(t,i){var f=function(e){if(d.push.apply(d,e),++l===c)return r(d),d.length?i(new p(d,u(d))):t(o)};s.length||(r(d),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?h(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f.catch((function(e){return e})),f}function g(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function b(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===typeof o&&"object"===typeof e[n]?e[n]=r({},e[n],o):e[n]=o}return e}var v,y=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!f(t,i||e.type)||r.push(d(o.messages.required,e.fullField))},w=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,k=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,_={integer:function(e){return _.number(e)&&parseInt(e,10)===e},float:function(e){return _.number(e)&&!_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!_.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(w)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(v)return v;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};c.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var l=c.v4().source,u=c.v6().source;return v=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+l+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(k)}},O="enum",x={required:y,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(d(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)y(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?_[i](t)||r.push(d(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(d(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,c=t,l=null,u="number"===typeof t,f="string"===typeof t,h=Array.isArray(t);if(u?l="number":f?l="string":h&&(l="array"),!l)return!1;h&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(d(o.messages[l].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(d(o.messages[l].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(d(o.messages[l].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(d(o.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[O]=Array.isArray(e[O])?e[O]:[],-1===e[O].indexOf(t)&&r.push(d(o.messages[O],e.fullField,e[O].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(d(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(d(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},C=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,i)&&!e.required)return n();x.required(e,t,r,a,o,i),f(t,i)||x.type(e,t,r,a,o)}n(a)},E={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();x.required(e,t,r,i,o,"string"),f(t,"string")||(x.type(e,t,r,i,o),x.range(e,t,r,i,o),x.pattern(e,t,r,i,o),!0===e.whitespace&&x.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&x.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&(x.type(e,t,r,i,o),x.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&x.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),f(t)||x.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&(x.type(e,t,r,i,o),x.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&(x.type(e,t,r,i,o),x.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();x.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(x.type(e,t,r,i,o),x.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&x.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o),void 0!==t&&x.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();x.required(e,t,r,i,o),f(t,"string")||x.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"date")&&!e.required)return n();var a;if(x.required(e,t,r,i,o),!f(t,"date"))a=t instanceof Date?t:new Date(t),x.type(e,a,r,i,o),a&&x.range(e,a.getTime(),r,i,o)}n(i)},url:C,hex:C,email:C,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;x.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,i,o)}n(i)}};function j(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var S=j(),P=function(){function e(e){this.rules=null,this._messages=S,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=b(j(),e)),this._messages},t.validate=function(t,n,o){var i=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var a=t,s=n,c=o;if("function"===typeof s&&(c=s,s={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,a),Promise.resolve(a);if(s.messages){var l=this.messages();l===S&&(l=j()),b(l,s.messages),s.messages=l}else s.messages=this.messages();var f={};(s.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],o=a[e];n.forEach((function(n){var s=n;"function"===typeof s.transform&&(a===t&&(a=r({},a)),o=a[e]=s.transform(o)),(s="function"===typeof s?{validator:s}:r({},s)).validator=i.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=i.getType(s),f[e]=f[e]||[],f[e].push({rule:s,value:o,source:a,field:e}))}))}));var h={};return m(f,s,(function(t,n){var o,i=t.rule,c=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function l(e,t){return r({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!s.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var f=u.map(g(i,a));if(s.first&&f.length)return h[i.field]=1,n(f);if(c){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(g(i,a)):s.error&&(f=[s.error(i,d(s.messages.required,i.field))]),n(f);var p={};i.defaultField&&Object.keys(t.value).map((function(e){p[e]=i.defaultField})),p=r({},p,t.rule.fields);var m={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];m[e]=n.map(l.bind(null,e))}));var b=new e(m);b.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),b.validate(t.value,t.rule.options||s,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}if(c=c&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)o=i.asyncValidator(i,t.value,u,t.source,s);else if(i.validator){try{o=i.validator(i,t.value,u,t.source,s)}catch(f){null==console.error||console.error(f),s.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===o?u():!1===o?u("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=u(t),c(t,n)):c(null,a)}(e)}),a)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!E.hasOwnProperty(e.type))throw new Error(d("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?E.required:E[this.getType(e)]||void 0},e}();P.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");E[e]=t},P.warning=l,P.messages=S,P.validators=E}).call(this,n(159))},function(e,t,n){var r=n(362),o=n(369)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6),o=n(1),i=n(47),a=0,s=Object(i.a)();function c(e){var t=o.useState(),n=Object(r.a)(t,2),i=n[0],c=n[1];return o.useEffect((function(){c("rc_select_".concat(function(){var e;return s?(e=a,a+=1):e="TEST_OR_SSR",e}()))}),[]),e||i}},function(e,t,n){var r=n(163),o=n(378),i=n(242),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,f,h,p=0,m=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=c,r=l;return c=l=void 0,p=t,d=e.apply(r,n)}function y(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-p>=u}function w(){var e=o();if(y(e))return k(e);f=setTimeout(w,function(e){var n=t-(e-h);return g?s(n,u-(e-p)):n}(e))}function k(e){return f=void 0,b&&c?v(e):(c=l=void 0,d)}function _(){var e=o(),n=y(e);if(c=arguments,l=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(w,t),m?v(e):d}(h);if(g)return clearTimeout(f),f=setTimeout(w,t),v(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==f&&clearTimeout(f),p=0,c=h=l=f=void 0},_.flush=function(){return void 0===f?d:k(o())},_}},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&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()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?d:u||d}function h(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 r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(a)?a:h(a);var s=p(e);return s.host?m(s.host,t):m(e,p(t).host)}function g(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function v(e,t,n,r){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(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:v("Height",t,n,r),width:v("Width",t,n,r)}}var w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e){return _({},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=g(e,"top"),r=g(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(h){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?y(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,c=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var d=a(e);l-=b(d,"x"),u-=b(d,"y"),o.width-=l,o.height-=u}return O(o)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),o="HTML"===t.nodeName,i=x(e),s=x(t),l=c(e),u=a(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=O({top:i.top-s.top-d,left:i.left-s.left-h,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var m=parseFloat(u.marginTop),b=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-b,p.right-=h-b,p.marginTop=m,p.marginLeft=b}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),o=g(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(p,t)),p}function E(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&E(n)}function j(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function S(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?j(e):m(e,l(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=C(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:g(n),s=t?0:g(n,"left");return O({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=C(u,a,o);if("HTML"!==u.nodeName||E(a))i=d;else{var f=y(e.ownerDocument),h=f.height,p=f.width;i.top+=d.top-d.marginTop,i.bottom=h+d.top,i.left+=d.left-d.marginLeft,i.right=p+d.left}}var b="number"===typeof(n=n||0);return i.left+=b?n:n.left||0,i.top+=b?n:n.top||0,i.right-=b?n:n.right||0,i.bottom-=b?n:n.bottom||0,i}function P(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=S(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return _({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return C(n,r?j(t):m(t,l(n)),r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function A(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 M(e,t,n){n=n.split("-")[0];var r=N(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,o[s]=n===s?t[s]-r[l]:t[A(s)],o}function R(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(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 r=R(e,(function(e){return e[t]===n}));return e.indexOf(r)}(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&&i(n)&&(t.offsets.popper=O(t.offsets.popper),t.offsets.reference=O(t.offsets.reference),t=n(t,e))})),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=P(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=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function L(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function F(){return this.state.isDestroyed=!0,L(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[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function V(e){var t=e.ownerDocument;return t?t.defaultView:window}function B(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||B(c(i.parentNode),t,n,r),r.push(i)}function H(e,t,n,r){n.updateBound=r,V(e).addEventListener("resize",n.updateBound,{passive:!0});var o=c(e);return B(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function U(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,V(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 K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var q=n&&/Firefox/i.test(navigator.userAgent);function $(e,t,n){var r=R(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var G=["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"],Q=G.slice(3);function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var J="flip",Z="clockwise",ee="counterclockwise";function te(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(R(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return O("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){K(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ne={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:k({},c,i[c]),end:k({},c,i[c]+i[l]-a[l])};e.offsets.popper=_({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],c=void 0;return c=K(+n)?[+n,0]:te(n,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=z("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=S(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),k({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),k({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_({},u,d[t](e))})),e.offsets.popper=u,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,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[l]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,c=i.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=N(r)[u];c[p]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-m)),c[f]+m>s[p]&&(e.offsets.popper[f]+=c[f]+m-s[p]),e.offsets.popper=O(e.offsets.popper);var g=c[f]+c[u]/2-m/2,b=a(e.instance.popper),v=parseFloat(b["margin"+d]),y=parseFloat(b["border"+d+"Width"]),w=g-e.offsets.popper[f]-v-y;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=r,e.offsets.arrow=(k(n={},f,Math.round(w)),k(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(L(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=S(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=A(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case J:a=[r,o];break;case Z:a=X(r);break;case ee:a=X(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=A(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),g=d(l.bottom)>d(n.bottom),b="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===i&&h||v&&"end"===i&&p||!v&&"start"===i&&m||!v&&"end"===i&&g),w=!!t.flipVariationsByContent&&(v&&"start"===i&&p||v&&"end"===i&&h||!v&&"start"===i&&g||!v&&"end"===i&&m),k=y||w;(f||b||k)&&(e.flipped=!0,(f||b)&&(r=a[c+1]),k&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=_({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=I(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],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=O(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=R(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,r=t.y,o=e.offsets.popper,i=R(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 a=void 0!==i?i:t.gpuAcceleration,s=h(e.instance.popper),c=x(s),l={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},c=i(o.width),l=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2===l%2?i:a:s,h=t?i:s;return{left:f(c%2===1&&l%2===1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!q),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=z("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&p)l[p]="translate3d("+m+"px, "+g+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var b="bottom"===d?-1:1,v="right"===f?-1:1;l[d]=g*b,l[f]=m*v,l.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=_({},y,e.attributes),e.styles=_({},l,e.styles),e.arrowStyles=_({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Y(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&&Y(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=T(o,t,e,n.positionFixed),a=P(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Y(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},re={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ne},oe=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=_({},e.Defaults,a),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(_({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return F.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),e}();oe.Utils=("undefined"!==typeof window?window:e).PopperUtils,oe.placements=G,oe.Defaults=re,t.a=oe}).call(this,n(144))},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(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},function(e,t,n){var r=n(251),o=n(214),i=n(252),a=n(127);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?e+r(t-s,n):e}},function(e,t,n){var r=n(251),o=n(214),i=n(252),a=n(127);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?r(t-s,n)+e:e}},function(e,t,n){var r;window,e.exports=(r=n(1),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=12)}([function(e,t,n){"use strict";var r=n(4),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){e.exports=n(9)()},function(e,n,r){"use strict";(function(e){var o=r(4),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.a.process,c=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=c}).call(this,r(6)(e))},function(e,t){e.exports=r},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(11))},function(e,n,r){"use strict";(function(e){var o=r(0),i=r(7),a=t&&!t.nodeType&&t,s=a&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===a?o.a.Buffer:void 0,l=(c?c.isBuffer:void 0)||i.a;n.a=l}).call(this,r(6)(e))},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){"use strict";t.a=function(){return!1}},function(e,n,r){"use strict";(function(e){var o=r(0),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.a.Buffer:void 0,c=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,r(6)(e))},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:o};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){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";n.r(t),n.d(t,"CKEditor",(function(){return Mn})),n.d(t,"CKEditorContext",(function(){return An}));var r=n(3),o=n.n(r),i=n(1),a=n.n(i),s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},c=n(0),l=function(){return c.a.Date.now()},u=/\s/,d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/,h=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},p=c.a.Symbol,m=Object.prototype,g=m.hasOwnProperty,b=m.toString,v=p?p.toStringTag:void 0,y=function(e){var t=g.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var o=b.call(e);return r&&(t?e[v]=n:delete e[v]),o},w=Object.prototype.toString,k=function(e){return w.call(e)},_=p?p.toStringTag:void 0,O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?y(e):k(e)},x=function(e){return null!=e&&"object"==typeof e},C=function(e){return"symbol"==typeof e||x(e)&&"[object Symbol]"==O(e)},E=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,S=/^0o[0-7]+$/i,P=parseInt,T=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var n=j.test(e);return n||S.test(e)?P(e.slice(2),n?2:8):E.test(e)?NaN:+e},N=Math.max,A=Math.min,M=function(e,t,n){var r,o,i,a,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,i=o;return r=o=void 0,d=t,a=e.apply(i,n)}function g(e){return d=e,c=setTimeout(v,t),f?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-d>=i}function v(){var e=l();if(b(e))return y(e);c=setTimeout(v,function(e){var n=t-(e-u);return h?A(n,i-(e-d)):n}(e))}function y(e){return c=void 0,p&&r?m(e):(r=o=void 0,a)}function w(){var e=l(),n=b(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return g(u);if(h)return clearTimeout(c),c=setTimeout(v,t),m(u)}return void 0===c&&(c=setTimeout(v,t)),a}return t=T(t)||0,s(n)&&(f=!!n.leading,i=(h="maxWait"in n)?N(T(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),w.cancel=function(){void 0!==c&&clearTimeout(c),d=0,r=u=o=c=void 0},w.flush=function(){return void 0===c?a:y(l())},w},R=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),M(e,t,{leading:r,maxWait:t,trailing:o})},I=function(){this.__data__=[],this.size=0},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return-1},z=Array.prototype.splice,F=function(e){var t=this.__data__,n=L(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},V=function(e){var t=this.__data__,n=L(t,e);return n<0?void 0:t[n][1]},B=function(e){return L(this.__data__,e)>-1},H=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}W.prototype.clear=I,W.prototype.delete=F,W.prototype.get=V,W.prototype.has=B,W.prototype.set=H;var U,K=W,Y=function(){this.__data__=new K,this.size=0},q=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$=function(e){return this.__data__.get(e)},G=function(e){return this.__data__.has(e)},Q=function(e){if(!s(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=c.a["__core-js_shared__"],J=(U=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",Z=function(e){return!!J&&J in e},ee=Function.prototype.toString,te=function(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ne=/^\[object .+?Constructor\]$/,re=Function.prototype,oe=Object.prototype,ie=re.toString,ae=oe.hasOwnProperty,se=RegExp("^"+ie.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=function(e){return!(!s(e)||Z(e))&&(Q(e)?se:ne).test(te(e))},le=function(e,t){return null==e?void 0:e[t]},ue=function(e,t){var n=le(e,t);return ce(n)?n:void 0},de=ue(c.a,"Map"),fe=ue(Object,"create"),he=function(){this.__data__=fe?fe(null):{},this.size=0},pe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me=Object.prototype.hasOwnProperty,ge=function(e){var t=this.__data__;if(fe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return me.call(t,e)?t[e]:void 0},be=Object.prototype.hasOwnProperty,ve=function(e){var t=this.__data__;return fe?void 0!==t[e]:be.call(t,e)},ye=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fe&&void 0===t?"__lodash_hash_undefined__":t,this};function we(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}we.prototype.clear=he,we.prototype.delete=pe,we.prototype.get=ge,we.prototype.has=ve,we.prototype.set=ye;var ke=we,_e=function(){this.size=0,this.__data__={hash:new ke,map:new(de||K),string:new ke}},Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},xe=function(e,t){var n=e.__data__;return Oe(t)?n["string"==typeof t?"string":"hash"]:n.map},Ce=function(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t},Ee=function(e){return xe(this,e).get(e)},je=function(e){return xe(this,e).has(e)},Se=function(e,t){var n=xe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=_e,Pe.prototype.delete=Ce,Pe.prototype.get=Ee,Pe.prototype.has=je,Pe.prototype.set=Se;var Te=Pe,Ne=function(e,t){var n=this.__data__;if(n instanceof K){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Te(r)}return n.set(e,t),this.size=n.size,this};function Ae(e){var t=this.__data__=new K(e);this.size=t.size}Ae.prototype.clear=Y,Ae.prototype.delete=q,Ae.prototype.get=$,Ae.prototype.has=G,Ae.prototype.set=Ne;var Me=Ae,Re=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Ie=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),De=function(e,t,n){"__proto__"==t&&Ie?Ie(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Le=Object.prototype.hasOwnProperty,ze=function(e,t,n){var r=e[t];Le.call(e,t)&&D(r,n)&&(void 0!==n||t in e)||De(e,t,n)},Fe=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?De(n,s,c):ze(n,s,c)}return n},Ve=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Be=function(e){return x(e)&&"[object Arguments]"==O(e)},He=Object.prototype,We=He.hasOwnProperty,Ue=He.propertyIsEnumerable,Ke=Be(function(){return arguments}())?Be:function(e){return x(e)&&We.call(e,"callee")&&!Ue.call(e,"callee")},Ye=Array.isArray,qe=n(5),$e=/^(?:0|[1-9]\d*)$/,Ge=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&$e.test(e))&&e>-1&&e%1==0&&e<t},Qe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Xe={};Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Je=function(e){return x(e)&&Qe(e.length)&&!!Xe[O(e)]},Ze=function(e){return function(t){return e(t)}},et=n(2),tt=et.a&&et.a.isTypedArray,nt=tt?Ze(tt):Je,rt=Object.prototype.hasOwnProperty,ot=function(e,t){var n=Ye(e),r=!n&&Ke(e),o=!n&&!r&&Object(qe.a)(e),i=!n&&!r&&!o&&nt(e),a=n||r||o||i,s=a?Ve(e.length,String):[],c=s.length;for(var l in e)!t&&!rt.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ge(l,c))||s.push(l);return s},it=Object.prototype,at=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||it)},st=function(e,t){return function(n){return e(t(n))}},ct=st(Object.keys,Object),lt=Object.prototype.hasOwnProperty,ut=function(e){if(!at(e))return ct(e);var t=[];for(var n in Object(e))lt.call(e,n)&&"constructor"!=n&&t.push(n);return t},dt=function(e){return null!=e&&Qe(e.length)&&!Q(e)},ft=function(e){return dt(e)?ot(e):ut(e)},ht=function(e,t){return e&&Fe(t,ft(t),e)},pt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},mt=Object.prototype.hasOwnProperty,gt=function(e){if(!s(e))return pt(e);var t=at(e),n=[];for(var r in e)("constructor"!=r||!t&&mt.call(e,r))&&n.push(r);return n},bt=function(e){return dt(e)?ot(e,!0):gt(e)},vt=function(e,t){return e&&Fe(t,bt(t),e)},yt=n(8),wt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},kt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},_t=function(){return[]},Ot=Object.prototype.propertyIsEnumerable,xt=Object.getOwnPropertySymbols,Ct=xt?function(e){return null==e?[]:(e=Object(e),kt(xt(e),(function(t){return Ot.call(e,t)})))}:_t,Et=function(e,t){return Fe(e,Ct(e),t)},jt=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},St=st(Object.getPrototypeOf,Object),Pt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)jt(t,Ct(e)),e=St(e);return t}:_t,Tt=function(e,t){return Fe(e,Pt(e),t)},Nt=function(e,t,n){var r=t(e);return Ye(e)?r:jt(r,n(e))},At=function(e){return Nt(e,ft,Ct)},Mt=function(e){return Nt(e,bt,Pt)},Rt=ue(c.a,"DataView"),It=ue(c.a,"Promise"),Dt=ue(c.a,"Set"),Lt=ue(c.a,"WeakMap"),zt=te(Rt),Ft=te(de),Vt=te(It),Bt=te(Dt),Ht=te(Lt),Wt=O;(Rt&&"[object DataView]"!=Wt(new Rt(new ArrayBuffer(1)))||de&&"[object Map]"!=Wt(new de)||It&&"[object Promise]"!=Wt(It.resolve())||Dt&&"[object Set]"!=Wt(new Dt)||Lt&&"[object WeakMap]"!=Wt(new Lt))&&(Wt=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?te(n):"";if(r)switch(r){case zt:return"[object DataView]";case Ft:return"[object Map]";case Vt:return"[object Promise]";case Bt:return"[object Set]";case Ht:return"[object WeakMap]"}return t});var Ut=Wt,Kt=Object.prototype.hasOwnProperty,Yt=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Kt.call(e,"index")&&(n.index=e.index,n.input=e.input),n},qt=c.a.Uint8Array,$t=function(e){var t=new e.constructor(e.byteLength);return new qt(t).set(new qt(e)),t},Gt=function(e,t){var n=t?$t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Qt=/\w*$/,Xt=function(e){var t=new e.constructor(e.source,Qt.exec(e));return t.lastIndex=e.lastIndex,t},Jt=p?p.prototype:void 0,Zt=Jt?Jt.valueOf:void 0,en=function(e){return Zt?Object(Zt.call(e)):{}},tn=function(e,t){var n=t?$t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},nn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return $t(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Gt(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Xt(e);case"[object Symbol]":return en(e)}},rn=Object.create,on=function(){function e(){}return function(t){if(!s(t))return{};if(rn)return rn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),an=function(e){return"function"!=typeof e.constructor||at(e)?{}:on(St(e))},sn=function(e){return x(e)&&"[object Map]"==Ut(e)},cn=et.a&&et.a.isMap,ln=cn?Ze(cn):sn,un=function(e){return x(e)&&"[object Set]"==Ut(e)},dn=et.a&&et.a.isSet,fn=dn?Ze(dn):un,hn={};hn["[object Arguments]"]=hn["[object Array]"]=hn["[object ArrayBuffer]"]=hn["[object DataView]"]=hn["[object Boolean]"]=hn["[object Date]"]=hn["[object Float32Array]"]=hn["[object Float64Array]"]=hn["[object Int8Array]"]=hn["[object Int16Array]"]=hn["[object Int32Array]"]=hn["[object Map]"]=hn["[object Number]"]=hn["[object Object]"]=hn["[object RegExp]"]=hn["[object Set]"]=hn["[object String]"]=hn["[object Symbol]"]=hn["[object Uint8Array]"]=hn["[object Uint8ClampedArray]"]=hn["[object Uint16Array]"]=hn["[object Uint32Array]"]=!0,hn["[object Error]"]=hn["[object Function]"]=hn["[object WeakMap]"]=!1;var pn=function e(t,n,r,o,i,a){var c,l=1&n,u=2&n,d=4&n;if(r&&(c=i?r(t,o,i,a):r(t)),void 0!==c)return c;if(!s(t))return t;var f=Ye(t);if(f){if(c=Yt(t),!l)return wt(t,c)}else{var h=Ut(t),p="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(qe.a)(t))return Object(yt.a)(t,l);if("[object Object]"==h||"[object Arguments]"==h||p&&!i){if(c=u||p?{}:an(t),!l)return u?Tt(t,vt(c,t)):Et(t,ht(c,t))}else{if(!hn[h])return i?t:{};c=nn(t,h,l)}}a||(a=new Me);var m=a.get(t);if(m)return m;a.set(t,c),fn(t)?t.forEach((function(o){c.add(e(o,n,r,o,t,a))})):ln(t)&&t.forEach((function(o,i){c.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(d?u?Mt:At:u?bt:ft)(t);return Re(g||t,(function(o,i){g&&(o=t[i=o]),ze(c,i,e(o,n,r,i,t,a))})),c},mn=function(e,t){return pn(e,5,t="function"==typeof t?t:void 0)},gn=Function.prototype,bn=Object.prototype,vn=gn.toString,yn=bn.hasOwnProperty,wn=vn.call(Object),kn=function(e){if(!x(e)||"[object Object]"!=O(e))return!1;var t=St(e);if(null===t)return!0;var n=yn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&vn.call(n)==wn},_n=function(e){return x(e)&&1===e.nodeType&&!kn(e)};function On(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;const n=[e],r=new Set;for(;n.length>0;){const o=n.shift();if(!(r.has(o)||xn(o)||t.has(o)))if(r.add(o),o[Symbol.iterator])try{for(const e of o)n.push(e)}catch(e){}else for(const e in o)"defaultValue"!==e&&n.push(o[e])}return r}function xn(e){const t=Object.prototype.toString.call(e),n=typeof e;return"number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e instanceof EventTarget||e instanceof Event}function Cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(e===t&&"object"==typeof(r=e)&&null!==r)return!0;var r;const o=On(e,n),i=On(t,n);for(const a of o)if(i.has(a))return!0;return!1}class En{constructor(e){if(this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t=e.error||e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter((e=>e!==t))}_fire(e){const t=this._listeners[e]||[];for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const i of t)i.apply(this,[null,...r])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t.filename,lineno:t.lineno,colno:t.colno,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}class jn extends En{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t),this._editor=null,this._throttledSave=R(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),this._creator=(t,n)=>e.create(t,n),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((e=>{console.error("An error happened during the editor destroying.",e)})).then((()=>{if("string"==typeof this._elementOrData)return this.create(this._data,this._config,this._config.context);{const e=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,e,e.context)}})).then((()=>{this._fire("restart")}))}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._elementOrData,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._config,n=arguments.length>2?arguments[2]:void 0;return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=e,this._config=this._cloneEditorConfiguration(t)||{},this._config.context=n,this._creator(e,this._config)))).then((e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.flush();const e=this._editor;return this._editor=null,this._destructor(e)}))}_save(){const e=this._editor.model.document.version;if(e!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=e}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e={};for(const t of this._editor.model.document.getRootNames())e[t]=this._editor.data.get({rootName:t});return e}_isErrorComingFromThisItem(e){return Cn(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return mn(e,((e,t)=>_n(e)||"context"===t?e:void 0))}}const Sn=new Array(256).fill().map(((e,t)=>("0"+t.toString(16)).slice(-2)));class Pn extends En{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t),this._watchdogs=new Map,this._watchdogConfig=t,this._context=null,this._contextProps=new Set,this._actionQueue=new Tn,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueue.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}get context(){return this._context}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._actionQueue.enqueue((()=>(this._contextConfig=e,this._create())))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=Array.isArray(e)?e:[e];return this._actionQueue.enqueue((()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");return Promise.all(t.map((e=>{let t;if(this._watchdogs.has(e.id))throw new Error("Item with the given id is already added: '".concat(e.id,"'."));if("editor"===e.type)return t=new jn(this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",((n,r)=>{let{error:o,causesRestart:i}=r;this._fire("itemError",{itemId:e.id,error:o}),i&&this._actionQueue.enqueue((()=>new Promise((n=>{t.on("restart",function r(){t.off("restart",r),this._fire("itemRestart",{itemId:e.id}),n()}.bind(this))}))))})),t.create(e.sourceElementOrData,e.config,this._context);throw new Error("Not supported item type: '".concat(e.type,"'."))})))}))}remove(e){const t=Array.isArray(e)?e:[e];return this._actionQueue.enqueue((()=>Promise.all(t.map((e=>{const t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))))}destroy(){return this._actionQueue.enqueue((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueue.enqueue((()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((e=>{console.error("An error happened during destroying the context or items.",e)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((e=>(this._context=e,this._contextProps=On(this._context),Promise.all(Array.from(this._watchdogs.values()).map((e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((e=>e.destroy()))).then((()=>this._destructor(e)))}))}_getWatchdog(e){const t=this._watchdogs.get(e);if(!t)throw new Error("Item with the given id was not registered: ".concat(e,"."));return t}_isErrorComingFromThisItem(e){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return Cn(this._context,e.context)}}class Tn{constructor(){this._promiseQueue=Promise.resolve(),this._onEmptyCallbacks=[]}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e){let t;const n=this._promiseQueue.then(e).then((()=>{this._promiseQueue===t&&this._onEmptyCallbacks.forEach((e=>e()))}));return t=this._promiseQueue=n.catch((()=>{})),n}}const Nn=o.a.createContext("contextWatchdog");class An extends o.a.Component{constructor(e,t){super(e,t),this.contextWatchdog=null,this.props.isLayoutReady&&this._initializeContextWatchdog(this.props.config)}shouldComponentUpdate(e){return e.id!==this.props.id&&(this.contextWatchdog&&this.contextWatchdog.destroy(),this._initializeContextWatchdog(e.config)),e.isLayoutReady&&!this.contextWatchdog?(this._initializeContextWatchdog(e.config),!0):this.props.children!==e.children}render(){return o.a.createElement(Nn.Provider,{value:this.contextWatchdog},this.props.children)}componentWillUnmount(){this._destroyContext()}_initializeContextWatchdog(e){this.contextWatchdog=new Pn(this.props.context),this.contextWatchdog.create(e).catch((e=>{this.props.onError(e,{phase:"initialization",willContextRestart:!1})})),this.contextWatchdog.on("error",((e,t)=>{this.props.onError(t.error,{phase:"runtime",willContextRestart:t.causesRestart})})),this.contextWatchdog.on("stateChange",(()=>{"ready"===this.contextWatchdog.state&&this.props.onReady&&this.props.onReady(this.contextWatchdog.context)}))}_destroyContext(){this.contextWatchdog&&(this.contextWatchdog.destroy(),this.contextWatchdog=null)}}An.defaultProps={isLayoutReady:!0,onError:(e,t)=>console.error(e,t)},An.propTypes={id:a.a.string,isLayoutReady:a.a.bool,context:a.a.func,config:a.a.object,onReady:a.a.func,onError:a.a.func};class Mn extends o.a.Component{constructor(e){super(e),this.domContainer=o.a.createRef(),this.watchdog=null}get editor(){return this.watchdog?this.watchdog.editor:null}shouldComponentUpdate(e){return!!this.editor&&(e.id!==this.props.id||(this._shouldUpdateEditor(e)&&this.editor.setData(e.data),"disabled"in e&&(this.editor.isReadOnly=e.disabled),!1))}componentDidMount(){this._initializeEditor()}componentDidUpdate(){this._destroyEditor(),this._initializeEditor()}componentWillUnmount(){this._destroyEditor()}render(){return o.a.createElement("div",{ref:this.domContainer})}_initializeEditor(){this.context instanceof Pn?this.watchdog=new Rn(this.context):this.watchdog=new Mn._EditorWatchdog(this.props.editor),this.watchdog.setCreator(((e,t)=>this._createEditor(e,t))),this.watchdog.on("error",((e,t)=>{let{error:n,causesRestart:r}=t;this.props.onError(n,{phase:"runtime",willEditorRestart:r})})),this.watchdog.create(this.domContainer.current,this._getConfig()).catch((e=>this.props.onError(e,{phase:"initialization",willEditorRestart:!1})))}_createEditor(e,t){return this.props.editor.create(e,t).then((e=>{"disabled"in this.props&&(e.isReadOnly=this.props.disabled);const t=e.model.document,n=e.editing.view.document;return t.on("change:data",(t=>{this.props.onChange&&this.props.onChange(t,e)})),n.on("focus",(t=>{this.props.onFocus&&this.props.onFocus(t,e)})),n.on("blur",(t=>{this.props.onBlur&&this.props.onBlur(t,e)})),setTimeout((()=>{this.props.onReady&&this.props.onReady(this.editor)})),e}))}_destroyEditor(){this.watchdog&&(this.watchdog.destroy(),this.watchdog=null)}_shouldUpdateEditor(e){return this.props.data!==e.data&&this.editor.getData()!==e.data}_getConfig(){return this.props.data&&this.props.config.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` properties. The config property is over the data value and the first one will be used when specified both."),{...this.props.config,initialData:this.props.config.initialData||this.props.data||""}}}class Rn{constructor(e){this._contextWatchdog=e,this._id=function(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+Sn[e>>0&255]+Sn[e>>8&255]+Sn[e>>16&255]+Sn[e>>24&255]+Sn[t>>0&255]+Sn[t>>8&255]+Sn[t>>16&255]+Sn[t>>24&255]+Sn[n>>0&255]+Sn[n>>8&255]+Sn[n>>16&255]+Sn[n>>24&255]+Sn[r>>0&255]+Sn[r>>8&255]+Sn[r>>16&255]+Sn[r>>24&255]}()}setCreator(e){this._creator=e}create(e,t){return this._contextWatchdog.add({sourceElementOrData:e,config:t,creator:this._creator,id:this._id,type:"editor"})}on(e,t){this._contextWatchdog.on("itemError",((e,n)=>{let{itemId:r,causesRestart:o,error:i}=n;r===this._id&&t(null,{error:i,causesRestart:o})}))}destroy(){this._contextWatchdog.remove(this._id)}get editor(){return this._contextWatchdog.getItem(this._id)}}Mn.contextType=Nn,Mn.propTypes={editor:a.a.func.isRequired,data:a.a.string,config:a.a.object,onChange:a.a.func,onReady:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onError:a.a.func,disabled:a.a.bool,onInit:(e,t)=>{if(e[t])return new Error('The "onInit" property is not supported anymore by the CKEditor component. Use the "onReady" property instead.')}},Mn.defaultProps={config:{},onError:(e,t)=>console.error(e,t)},Mn._EditorWatchdog=jn}]))},function(e,t,n){!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"Break text","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image",Green:"Green",Grey:"Grey","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Orange:"Orange",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=108)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));class r extends Error{constructor(e,t,n){super("".concat(e).concat(n?" "+JSON.stringify(n):"").concat(i(e))),this.name="CKEditorError",this.context=t,this.data=n}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const n=new r(e.message,t);throw n.stack=e.stack,n}}function o(e,t){console.warn(...a(e,t))}function i(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}function a(e,t){const n=i(e);return t?[e,t,n]:[e,n]}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function h(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var i=m++;n=p||(p=l(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=l(t),r=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},,function(e,t,n){"use strict";var r=n(8),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,n,r){"use strict";(function(e){var o=r(3),i=r(14),a=t&&!t.nodeType&&t,s=a&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===a?o.a.Buffer:void 0,l=(c?c.isBuffer:void 0)||i.a;n.a=l}).call(this,r(10)(e))},function(e,n,r){"use strict";(function(e){var o=r(8),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.a.process,c=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=c}).call(this,r(10)(e))},function(e,t,n){"use strict";(function(e){var t=n(0);const r="object"==typeof window?window:e;if(r.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);r.CKEDITOR_VERSION="29.2.0"}).call(this,n(12))},function(e,t,n){var r=n(1),o=n(76);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(12))},function(e,n,r){"use strict";(function(e){var o=r(3),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.a.Buffer:void 0,c=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,r(10)(e))},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){var r=n(1),o=n(77);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},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){var r=n(1),o=n(71);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var r=n(1),o=n(16);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var r=n(1),o=n(18);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var r=n(1),o=n(20);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:0;border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var r=n(1),o=n(22);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var r=n(1),o=n(24);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}"},function(e,t,n){var r=n(1),o=n(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(e,t,n){var r=n(1),o=n(28);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{content:"";position:absolute;width:1px;height:100%;background-color:var(--ck-color-split-button-hover-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}'},function(e,t,n){var r=n(1),o=n(30);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);max-width:var(--ck-dropdown-max-width);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var r=n(1),o=n(32);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var r=n(1),o=n(34);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),o=n(36);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var r=n(1),o=n(38);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),o=n(40);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var r=n(1),o=n(42);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var r=n(1),o=n(44);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-form__header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-form__header .ck-form__header__label{font-weight:700}"},function(e,t,n){var r=n(1),o=n(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var r=n(1),o=n(48);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}"},function(e,t,n){var r=n(1),o=n(50);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}'},function(e,t,n){var r=n(1),o=n(52);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var r=n(1),o=n(54);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var r=n(1),o=n(56);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),o=n(58);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}"},function(e,t,n){var r=n(1),o=n(60);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-placeholder,.ck .ck-placeholder{position:relative}.ck.ck-placeholder:before,.ck .ck-placeholder:before{position:absolute;left:0;right:0;content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var r=n(1),o=n(62);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),o=n(64);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var r=n(1),o=n(66);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:0 var(--ck-spacing-small);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{top:calc(var(--ck-resizer-tooltip-height)*-1);left:50%;transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness));top:0}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var r=n(1),o=n(68);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;position:relative;pointer-events:none}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;display:block;position:absolute;left:50%;top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);transform:translateX(-50%);border-left:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-bottom:0 solid transparent;border-right:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-top:calc(var(--ck-clipboard-drop-target-dot-height)) solid var(--ck-clipboard-drop-target-color)}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}'},function(e,t,n){var r=n(1),o=n(70);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var r=n(1),o=n(73);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}"},function(e,t,n){var r=n(1),o=n(75);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}"},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}'},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{display:inline-flex;max-width:100%;align-items:flex-start}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}"},function(e,t,n){var r=n(1),o=n(79);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:var(--ck-color-image-caption-text);background-color:var(--ck-color-image-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}"},function(e,t,n){var r=n(1),o=n(81);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-right:0;margin-left:auto}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-top:var(--ck-inline-image-style-spacing);margin-bottom:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}"},function(e,t,n){var r=n(1),o=n(83);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image-inline .ck-progress-bar,.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image-inline .ck-progress-bar,.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var r=n(1),o=n(85);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:min(var(--ck-spacing-medium),6%);right:min(var(--ck-spacing-medium),6%);border-radius:50%;z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:calc(1px*var(--ck-image-upload-icon-size));animation-delay:0ms,3s;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var r=n(1),o=n(87);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var r=n(1),o=n(89);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var r=n(1),o=n(91);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var r=n(1),o=n(93);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}"},function(e,t,n){var r=n(1),o=n(95);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var r=n(1),o=n(97);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}"},function(e,t,n){var r=n(1),o=n(99);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:.9em 0;display:block;min-width:15em}"},function(e,t,n){var r=n(1),o=n(101);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var r=n(1),o=n(103);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var r=n(1),o=n(105);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var r=n(1),o=n(107);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),r(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .table{margin:.9em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}"},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return jv}));var r=function(){return function e(){e.called=!0}};class o{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=r(),this.off=r()}}const i=new Array(256).fill().map(((e,t)=>("0"+t.toString(16)).slice(-2)));function a(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+i[e>>0&255]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]+i[t>>0&255]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+i[n>>0&255]+i[n>>8&255]+i[n>>16&255]+i[n>>24&255]+i[r>>0&255]+i[r>>8&255]+i[r>>16&255]+i[r>>24&255]}var s={get(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},c=(n(6),n(0));const l=Symbol("listeningTo"),u=Symbol("emitterId");var d={on(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once(e,t,n){let r=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];r||(r=!0,e.off(),t.call(this,e,...o))}),n)},off(e,t){this.stopListening(this,e,t)},listenTo(e,t,n){let r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[l]||(this[l]={});const a=this[l];h(e)||f(e);const s=h(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(o=r.callbacks[t])||(o=r.callbacks[t]=[]),o.push(n),function(e,t,n,r,o){t._addEventListener?t._addEventListener(n,r,o):e._addEventListener.call(t,n,r,o)}(this,e,t,n,i)},stopListening(e,t,n){const r=this[l];let o=e&&h(e);const i=r&&o&&r[o],a=i&&t&&i.callbacks[t];if(!(!r||e&&!i||t&&!a))if(n)b(this,e,t,n),-1!==a.indexOf(n)&&(1===a.length?delete i.callbacks[t]:b(this,e,t,n));else if(a){for(;n=a.pop();)b(this,e,t,n);delete i.callbacks[t]}else if(i){for(t in i.callbacks)this.stopListening(e,t);delete r[o]}else{for(o in r)this.stopListening(r[o].emitter);delete this[l]}},fire(e){try{const i=e instanceof o?e:new o(this,e),a=i.name;let s=function e(t,n){let r;return t._events&&(r=t._events[n])&&r.callbacks.length?r.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,a);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(i.path.push(this),s){const e=[i,...n];s=Array.from(s);for(let t=0;t<s.length&&(s[t].callback.apply(this,e),i.off.called&&(delete i.off.called,this._removeEventListener(a,s[t].callback)),!i.stop.called);t++);}if(this._delegations){const e=this._delegations.get(a),t=this._delegations.get("*");e&&g(e,i,n),t&&g(t,i,n)}return i.return}catch(e){c.a.rethrowUnexpectedError(e,this)}},delegate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{to:(e,n)=>{this._delegations||(this._delegations=new Map),t.forEach((t=>{const r=this._delegations.get(t);r?r.set(e,n):this._delegations.set(t,new Map([[e,n]]))}))}}},stopDelegating(e,t){if(this._delegations)if(e)if(t){const n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()},_addEventListener(e,t,n){!function(e,t){const n=p(e);if(n[t])return;let r=t,o=null;const i=[];for(;""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},i.push(n[r]),o&&n[r].childEvents.push(o),o=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){for(const e of i)e.callbacks=n[r].callbacks.slice();n[r].childEvents.push(o)}}(this,e);const r=m(this,e),o=s.get(n.priority),i={callback:t,priority:o};for(const a of r){let e=!1;for(let t=0;t<a.length;t++)if(a[t].priority<o){a.splice(t,0,i),e=!0;break}e||a.push(i)}},_removeEventListener(e,t){const n=m(this,e);for(const r of n)for(let e=0;e<r.length;e++)r[e].callback==t&&(r.splice(e,1),e--)}};function f(e,t){e[u]||(e[u]=t||a())}function h(e){return e[u]}function p(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function m(e,t){const n=p(e)[t];if(!n)return[];let r=[n.callbacks];for(let o=0;o<n.childEvents.length;o++){const t=m(e,n.childEvents[o]);r=r.concat(t)}return r}function g(e,t,n){for(let[r,i]of e){i?"function"==typeof i&&(i=i(t.name)):i=t.name;const e=new o(t.source,i);e.path=[...t.path],r.fire(e,...n)}}function b(e,t,n,r){t._removeEventListener?t._removeEventListener(n,r):e._removeEventListener.call(t,n,r)}var v,y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},w=n(3),k=w.a.Symbol,_=Object.prototype,O=_.hasOwnProperty,x=_.toString,C=k?k.toStringTag:void 0,E=function(e){var t=O.call(e,C),n=e[C];try{e[C]=void 0;var r=!0}catch(e){}var o=x.call(e);return r&&(t?e[C]=n:delete e[C]),o},j=Object.prototype.toString,S=function(e){return j.call(e)},P=k?k.toStringTag:void 0,T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?E(e):S(e)},N=function(e){if(!y(e))return!1;var t=T(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=w.a["__core-js_shared__"],M=(v=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",R=function(e){return!!M&&M in e},I=Function.prototype.toString,D=function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""},L=/^\[object .+?Constructor\]$/,z=Function.prototype,F=Object.prototype,V=z.toString,B=F.hasOwnProperty,H=RegExp("^"+V.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=function(e){return!(!y(e)||R(e))&&(N(e)?H:L).test(D(e))},U=function(e,t){return null==e?void 0:e[t]},K=function(e,t){var n=U(e,t);return W(n)?n:void 0},Y=function(){try{var e=K(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=function(e,t,n){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$=function(e,t){return e===t||e!=e&&t!=t},G=Object.prototype.hasOwnProperty,Q=function(e,t,n){var r=e[t];G.call(e,t)&&$(r,n)&&(void 0!==n||t in e)||q(e,t,n)},X=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?q(n,s,c):Q(n,s,c)}return n},J=function(e){return e},Z=function(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)},ee=Math.max,te=function(e,t,n){return t=ee(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ee(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Z(e,this,s)}},ne=function(e){return function(){return e}},re=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:ne(t),writable:!0})}:J,oe=Date.now,ie=function(e){var t=0,n=0;return function(){var r=oe(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(re),ae=function(e,t){return ie(te(e,t,J),e+"")},se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ce=function(e){return null!=e&&se(e.length)&&!N(e)},le=/^(?:0|[1-9]\d*)$/,ue=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t},de=function(e,t,n){if(!y(n))return!1;var r=typeof t;return!!("number"==r?ce(n)&&ue(t,n.length):"string"==r&&t in n)&&$(n[t],e)},fe=function(e){return ae((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&de(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))},he=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},pe=function(e){return null!=e&&"object"==typeof e},me=function(e){return pe(e)&&"[object Arguments]"==T(e)},ge=Object.prototype,be=ge.hasOwnProperty,ve=ge.propertyIsEnumerable,ye=me(function(){return arguments}())?me:function(e){return pe(e)&&be.call(e,"callee")&&!ve.call(e,"callee")},we=Array.isArray,ke=n(4),_e={};_e["[object Float32Array]"]=_e["[object Float64Array]"]=_e["[object Int8Array]"]=_e["[object Int16Array]"]=_e["[object Int32Array]"]=_e["[object Uint8Array]"]=_e["[object Uint8ClampedArray]"]=_e["[object Uint16Array]"]=_e["[object Uint32Array]"]=!0,_e["[object Arguments]"]=_e["[object Array]"]=_e["[object ArrayBuffer]"]=_e["[object Boolean]"]=_e["[object DataView]"]=_e["[object Date]"]=_e["[object Error]"]=_e["[object Function]"]=_e["[object Map]"]=_e["[object Number]"]=_e["[object Object]"]=_e["[object RegExp]"]=_e["[object Set]"]=_e["[object String]"]=_e["[object WeakMap]"]=!1;var Oe=function(e){return pe(e)&&se(e.length)&&!!_e[T(e)]},xe=function(e){return function(t){return e(t)}},Ce=n(5),Ee=Ce.a&&Ce.a.isTypedArray,je=Ee?xe(Ee):Oe,Se=Object.prototype.hasOwnProperty,Pe=function(e,t){var n=we(e),r=!n&&ye(e),o=!n&&!r&&Object(ke.a)(e),i=!n&&!r&&!o&&je(e),a=n||r||o||i,s=a?he(e.length,String):[],c=s.length;for(var l in e)!t&&!Se.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ue(l,c))||s.push(l);return s},Te=Object.prototype,Ne=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)},Ae=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Me=Object.prototype.hasOwnProperty,Re=function(e){if(!y(e))return Ae(e);var t=Ne(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n},Ie=function(e){return ce(e)?Pe(e,!0):Re(e)},De=fe((function(e,t){X(t,Ie(t),e)}));const Le=Symbol("observableProperties"),ze=Symbol("boundObservables"),Fe=Symbol("boundProperties"),Ve=Symbol("decoratedMethods"),Be=Symbol("decoratedOriginal"),He={set(e,t){if(y(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);Ue(this);const n=this[Le];if(e in this&&!n.has(e))throw new c.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>n.get(e),set(t){const r=n.get(e);let o=this.fire("set:"+e,e,t,r);void 0===o&&(o=t),r===o&&n.has(e)||(n.set(e,o),this.fire("change:"+e,e,o,r))}}),this[e]=t},bind(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length||!qe(t))throw new c.a("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new c.a("observable-bind-duplicate-properties",this);Ue(this);const r=this[Fe];t.forEach((e=>{if(r.has(e))throw new c.a("observable-bind-rebind",this)}));const o=new Map;return t.forEach((e=>{const t={property:e,to:[]};r.set(e,t),o.set(e,t)})),{to:Ke,toMany:Ye,_observable:this,_bindProperties:t,_to:[],_bindings:o}},unbind(){if(!this[Le])return;const e=this[Fe],t=this[ze];for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r.length){if(!qe(r))throw new c.a("observable-unbind-wrong-properties",this);r.forEach((n=>{const r=e.get(n);if(!r)return;let o,i,a,s;r.to.forEach((e=>{o=e[0],i=e[1],a=t.get(o),s=a[i],s.delete(r),s.size||delete a[i],Object.keys(a).length||(t.delete(o),this.stopListening(o,"change"))})),e.delete(n)}))}else t.forEach(((e,t)=>{this.stopListening(t,"change")})),t.clear(),e.clear()},decorate(e){const t=this[e];if(!t)throw new c.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,n)=>{e.return=t.apply(this,n)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.fire(e,n)},this[e][Be]=t,this[Ve]||(this[Ve]=[]),this[Ve].push(e)}};De(He,d),He.stopListening=function(e,t,n){if(!e&&this[Ve]){for(const e of this[Ve])this[e]=this[e][Be];delete this[Ve]}d.stopListening.call(this,e,t,n)};var We=He;function Ue(e){e[Le]||(Object.defineProperty(e,Le,{value:new Map}),Object.defineProperty(e,ze,{value:new Map}),Object.defineProperty(e,Fe,{value:new Map}))}function Ke(){const e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new c.a("observable-bind-to-parse-error",null);const r={to:[]};let o;return"function"==typeof t[t.length-1]&&(r.callback=t.pop()),t.forEach((e=>{if("string"==typeof e)o.properties.push(e);else{if("object"!=typeof e)throw new c.a("observable-bind-to-parse-error",null);o={observable:e,properties:[]},r.to.push(o)}})),r}(...arguments),t=Array.from(this._bindings.keys()),n=t.length;if(!e.callback&&e.to.length>1)throw new c.a("observable-bind-to-no-callback",this);if(n>1&&e.callback)throw new c.a("observable-bind-to-extra-callback",this);var r;e.to.forEach((e=>{if(e.properties.length&&e.properties.length!==n)throw new c.a("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(t[0]).callback=e.callback),r=this._observable,this._to.forEach((e=>{const t=r[ze];let n;t.get(e.observable)||r.listenTo(e.observable,"change",((o,i)=>{n=t.get(e.observable)[i],n&&n.forEach((e=>{$e(r,e.property)}))}))})),function(e){let t;e._bindings.forEach(((n,r)=>{e._to.forEach((o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([o.observable,t]),function(e,t,n,r){const o=e[ze],i=o.get(n),a=i||{};a[r]||(a[r]=new Set),a[r].add(t),i||o.set(n,a)}(e._observable,n,o.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{$e(this._observable,e)}))}function Ye(e,t,n){if(this._bindings.size>1)throw new c.a("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const n=e.map((e=>[e,t]));return Array.prototype.concat.apply([],n)}(e,t),n)}function qe(e){return e.every((e=>"string"==typeof e))}function $e(e,t){const n=e[Fe].get(t);let r;n.callback?r=n.callback.apply(e,n.to.map((e=>e[0][e[1]]))):(r=n.to[0],r=r[0][r[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=r:e.set(t,r)}function Ge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((t=>{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((n=>{if(n in e.prototype)return;const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e.prototype,n,r)}))}))}class Qe{constructor(e){this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Xe,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Xe),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Xe(e){e.return=!1,e.stop()}Ge(Qe,We);class Je{constructor(e){this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(e=>{this.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(e,"change:isReadOnly",((e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Ze,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Ze),this.refresh())}execute(){}destroy(){this.stopListening()}}function Ze(e){e.return=!1,e.stop()}Ge(Je,We);class et extends Je{constructor(e){super(e),this._childCommands=[]}refresh(){}execute(){const e=this._getFirstEnabledCommand();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null!=e&&e.execute(n)}registerChildCommand(e){this._childCommands.push(e),e.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){return this._childCommands.find((e=>e.isEnabled))}}var tt=function(e,t){return function(n){return e(t(n))}},nt=tt(Object.getPrototypeOf,Object),rt=Function.prototype,ot=Object.prototype,it=rt.toString,at=ot.hasOwnProperty,st=it.call(Object),ct=function(e){if(!pe(e)||"[object Object]"!=T(e))return!1;var t=nt(e);if(null===t)return!0;var n=at.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&it.call(n)==st},lt=function(){this.__data__=[],this.size=0},ut=function(e,t){for(var n=e.length;n--;)if($(e[n][0],t))return n;return-1},dt=Array.prototype.splice,ft=function(e){var t=this.__data__,n=ut(t,e);return!(n<0)&&(n==t.length-1?t.pop():dt.call(t,n,1),--this.size,!0)},ht=function(e){var t=this.__data__,n=ut(t,e);return n<0?void 0:t[n][1]},pt=function(e){return ut(this.__data__,e)>-1},mt=function(e,t){var n=this.__data__,r=ut(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function gt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=lt,gt.prototype.delete=ft,gt.prototype.get=ht,gt.prototype.has=pt,gt.prototype.set=mt;var bt=gt,vt=function(){this.__data__=new bt,this.size=0},yt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wt=function(e){return this.__data__.get(e)},kt=function(e){return this.__data__.has(e)},_t=K(w.a,"Map"),Ot=K(Object,"create"),xt=function(){this.__data__=Ot?Ot(null):{},this.size=0},Ct=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Et=Object.prototype.hasOwnProperty,jt=function(e){var t=this.__data__;if(Ot){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Et.call(t,e)?t[e]:void 0},St=Object.prototype.hasOwnProperty,Pt=function(e){var t=this.__data__;return Ot?void 0!==t[e]:St.call(t,e)},Tt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ot&&void 0===t?"__lodash_hash_undefined__":t,this};function Nt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nt.prototype.clear=xt,Nt.prototype.delete=Ct,Nt.prototype.get=jt,Nt.prototype.has=Pt,Nt.prototype.set=Tt;var At=Nt,Mt=function(){this.size=0,this.__data__={hash:new At,map:new(_t||bt),string:new At}},Rt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},It=function(e,t){var n=e.__data__;return Rt(t)?n["string"==typeof t?"string":"hash"]:n.map},Dt=function(e){var t=It(this,e).delete(e);return this.size-=t?1:0,t},Lt=function(e){return It(this,e).get(e)},zt=function(e){return It(this,e).has(e)},Ft=function(e,t){var n=It(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Vt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vt.prototype.clear=Mt,Vt.prototype.delete=Dt,Vt.prototype.get=Lt,Vt.prototype.has=zt,Vt.prototype.set=Ft;var Bt=Vt,Ht=function(e,t){var n=this.__data__;if(n instanceof bt){var r=n.__data__;if(!_t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bt(r)}return n.set(e,t),this.size=n.size,this};function Wt(e){var t=this.__data__=new bt(e);this.size=t.size}Wt.prototype.clear=vt,Wt.prototype.delete=yt,Wt.prototype.get=wt,Wt.prototype.has=kt,Wt.prototype.set=Ht;var Ut=Wt,Kt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Yt=tt(Object.keys,Object),qt=Object.prototype.hasOwnProperty,$t=function(e){if(!Ne(e))return Yt(e);var t=[];for(var n in Object(e))qt.call(e,n)&&"constructor"!=n&&t.push(n);return t},Gt=function(e){return ce(e)?Pe(e):$t(e)},Qt=function(e,t){return e&&X(t,Gt(t),e)},Xt=function(e,t){return e&&X(t,Ie(t),e)},Jt=n(9),Zt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},en=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},tn=function(){return[]},nn=Object.prototype.propertyIsEnumerable,rn=Object.getOwnPropertySymbols,on=rn?function(e){return null==e?[]:(e=Object(e),en(rn(e),(function(t){return nn.call(e,t)})))}:tn,an=function(e,t){return X(e,on(e),t)},sn=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=nt(e);return t}:tn,ln=function(e,t){return X(e,cn(e),t)},un=function(e,t,n){var r=t(e);return we(e)?r:sn(r,n(e))},dn=function(e){return un(e,Gt,on)},fn=function(e){return un(e,Ie,cn)},hn=K(w.a,"DataView"),pn=K(w.a,"Promise"),mn=K(w.a,"Set"),gn=K(w.a,"WeakMap"),bn=D(hn),vn=D(_t),yn=D(pn),wn=D(mn),kn=D(gn),_n=T;(hn&&"[object DataView]"!=_n(new hn(new ArrayBuffer(1)))||_t&&"[object Map]"!=_n(new _t)||pn&&"[object Promise]"!=_n(pn.resolve())||mn&&"[object Set]"!=_n(new mn)||gn&&"[object WeakMap]"!=_n(new gn))&&(_n=function(e){var t=T(e),n="[object Object]"==t?e.constructor:void 0,r=n?D(n):"";if(r)switch(r){case bn:return"[object DataView]";case vn:return"[object Map]";case yn:return"[object Promise]";case wn:return"[object Set]";case kn:return"[object WeakMap]"}return t});var On=_n,xn=Object.prototype.hasOwnProperty,Cn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&xn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},En=w.a.Uint8Array,jn=function(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t},Sn=function(e,t){var n=t?jn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Pn=/\w*$/,Tn=function(e){var t=new e.constructor(e.source,Pn.exec(e));return t.lastIndex=e.lastIndex,t},Nn=k?k.prototype:void 0,An=Nn?Nn.valueOf:void 0,Mn=function(e){return An?Object(An.call(e)):{}},Rn=function(e,t){var n=t?jn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},In=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return jn(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Sn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Rn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Tn(e);case"[object Symbol]":return Mn(e)}},Dn=Object.create,Ln=function(){function e(){}return function(t){if(!y(t))return{};if(Dn)return Dn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),zn=function(e){return"function"!=typeof e.constructor||Ne(e)?{}:Ln(nt(e))},Fn=function(e){return pe(e)&&"[object Map]"==On(e)},Vn=Ce.a&&Ce.a.isMap,Bn=Vn?xe(Vn):Fn,Hn=function(e){return pe(e)&&"[object Set]"==On(e)},Wn=Ce.a&&Ce.a.isSet,Un=Wn?xe(Wn):Hn,Kn={};Kn["[object Arguments]"]=Kn["[object Array]"]=Kn["[object ArrayBuffer]"]=Kn["[object DataView]"]=Kn["[object Boolean]"]=Kn["[object Date]"]=Kn["[object Float32Array]"]=Kn["[object Float64Array]"]=Kn["[object Int8Array]"]=Kn["[object Int16Array]"]=Kn["[object Int32Array]"]=Kn["[object Map]"]=Kn["[object Number]"]=Kn["[object Object]"]=Kn["[object RegExp]"]=Kn["[object Set]"]=Kn["[object String]"]=Kn["[object Symbol]"]=Kn["[object Uint8Array]"]=Kn["[object Uint8ClampedArray]"]=Kn["[object Uint16Array]"]=Kn["[object Uint32Array]"]=!0,Kn["[object Error]"]=Kn["[object Function]"]=Kn["[object WeakMap]"]=!1;var Yn=function e(t,n,r,o,i,a){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!y(t))return t;var d=we(t);if(d){if(s=Cn(t),!c)return Zt(t,s)}else{var f=On(t),h="[object Function]"==f||"[object GeneratorFunction]"==f;if(Object(ke.a)(t))return Object(Jt.a)(t,c);if("[object Object]"==f||"[object Arguments]"==f||h&&!i){if(s=l||h?{}:zn(t),!c)return l?ln(t,Xt(s,t)):an(t,Qt(s,t))}else{if(!Kn[f])return i?t:{};s=In(t,f,c)}}a||(a=new Ut);var p=a.get(t);if(p)return p;a.set(t,s),Un(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Bn(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var m=d?void 0:(u?l?fn:dn:l?Ie:Gt)(t);return Kt(m||t,(function(o,i){m&&(o=t[i=o]),Q(s,i,e(o,n,r,i,t,a))})),s},qn=function(e,t){return Yn(e,5,t="function"==typeof t?t:void 0)},$n=function(e){return pe(e)&&1===e.nodeType&&!ct(e)};class Gn{constructor(e,t){this._config={},t&&this.define(Qn(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ct(t))return void this._setObjectToTarget(e,t,r);const o=t.split(".");t=o.pop();for(const i of o)ct(e[i])||(e[i]={}),e=e[i];if(ct(n))return ct(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,r);r&&void 0!==e[t]||(e[t]=n)}_getFromSource(e,t){const n=t.split(".");t=n.pop();for(const r of n){if(!ct(e[r])){e=null;break}e=e[r]}return e?Qn(e[t]):void 0}_setObjectToTarget(e,t,n){Object.keys(t).forEach((r=>{this._setToTarget(e,r,t[r],n)}))}}function Qn(e){return qn(e,Xn)}function Xn(e){return $n(e)?e:void 0}function Jn(e){return!(!e||!e[Symbol.iterator])}class Zn{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Jn(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const r of e)this._items.push(r),this._itemMap.set(this._getItemIdBeforeAdding(r),r)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new c.a("collection-add-item-invalid-index",this);for(let n=0;n<e.length;n++){const r=e[n],o=this._getItemIdBeforeAdding(r),i=t+n;this._items.splice(i,0,r),this._itemMap.set(o,r),this.fire("add",r,i)}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new c.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}remove(e){const[t,n]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new c.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding((t=>new e(t)))},using:e=>{"function"==typeof e?this._setUpBindToBinding((t=>e(t))):this._setUpBindToBinding((t=>t[e]))}}}_setUpBindToBinding(e){const t=this._bindToCollection,n=(n,r,o)=>{const i=t._bindToCollection==this,a=t._bindToInternalToExternalMap.get(r);if(i&&a)this._bindToExternalToInternalMap.set(r,a),this._bindToInternalToExternalMap.set(a,r);else{const n=e(r);if(!n)return void this._skippedIndexesFromExternal.push(o);let i=o;for(const e of this._skippedIndexesFromExternal)o>e&&i--;for(const e of t._skippedIndexesFromExternal)i>=e&&i++;this._bindToExternalToInternalMap.set(r,n),this._bindToInternalToExternalMap.set(n,r),this.add(n,i);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)i<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const r of t)n(0,r,t.getIndex(r));this.listenTo(t,"add",n),this.listenTo(t,"remove",((e,t,n)=>{const r=this._bindToExternalToInternalMap.get(t);r&&this.remove(r),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((e,t)=>(n<t&&e.push(t-1),n>t&&e.push(t),e)),[])}))}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){if(n=e[t],"string"!=typeof n)throw new c.a("collection-add-invalid-id",this);if(this.get(n))throw new c.a("collection-add-item-already-exists",this)}else e[t]=n=a();return n}_remove(e){let t,n,r,o=!1;const i=this._idProperty;if("string"==typeof e?(n=e,r=this._itemMap.get(n),o=!r,r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,r=this._items[t],o=!r,r&&(n=r[i])):(r=e,n=r[i],t=this._items.indexOf(r),o=-1==t||!this._itemMap.get(n)),o)throw new c.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Ge(Zn,d);class er{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this._context=e,this._plugins=new Map,this._availablePlugins=new Map;for(const r of t)r.pluginName&&this._availablePlugins.set(r.pluginName,r);this._contextPlugins=new Map;for(const[r,o]of n)this._contextPlugins.set(r,o),this._contextPlugins.set(o,r),r.pluginName&&this._availablePlugins.set(r.pluginName,r)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new c.a("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=this,o=this._context;!function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;t.forEach((t=>{s(t)&&(n.has(t)||(n.add(t),t.pluginName&&!r._availablePlugins.has(t.pluginName)&&r._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,n)))}))}(e),f(e);const i=[...function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return t.map((e=>s(e)?e:r._availablePlugins.get(e))).reduce(((t,r)=>n.has(r)?t:(n.add(r),r.requires&&(f(r.requires,r),e(r.requires,n).forEach((e=>t.add(e)))),t.add(r))),new Set)}(e.filter((e=>!u(e,t))))];!function(e,t){for(const n of t){if("function"!=typeof n)throw new c.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const t=n.pluginName;if(!t)throw new c.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new c.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const o=r._availablePlugins.get(t);if(!o)throw new c.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const i=e.indexOf(o);if(-1===i){if(r._contextPlugins.has(o))return;throw new c.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(o.requires&&o.requires.length)throw new c.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(i,1,n),r._availablePlugins.set(t,n)}}(i,n);const a=function(e){return e.map((e=>{const t=r._contextPlugins.get(e)||new e(o);return r._add(e,t),t}))}(i);return h(a,"init").then((()=>h(a,"afterInit"))).then((()=>a));function s(e){return"function"==typeof e}function l(e){return s(e)&&e.isContextPlugin}function u(e,t){return t.some((t=>t===e||d(e)===t||d(t)===e))}function d(e){return s(e)?e.pluginName||e.name:e}function f(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.map((e=>s(e)?e:r._availablePlugins.get(e)||e)).forEach((e=>{!function(e,t){if(!s(e)){if(t)throw new c.a("plugincollection-soft-required",o,{missingPlugin:e,requiredBy:d(t)});throw new c.a("plugincollection-plugin-not-found",o,{plugin:e})}}(e,n),function(e,t){if(l(t)&&!l(e))throw new c.a("plugincollection-context-required",o,{plugin:d(e),requiredBy:d(t)})}(e,n),function(e,n){if(n&&u(e,t))throw new c.a("plugincollection-required",o,{plugin:d(e),requiredBy:d(n)})}(e,n)}))}function h(e,t){return e.reduce(((e,n)=>n[t]?r._contextPlugins.has(n)?e:e.then(n[t].bind(n)):e),Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const n=e.pluginName;if(n){if(this._plugins.has(n))throw new c.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}function tr(e){return Array.isArray(e)?e:[e]}function nr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new c.a("translation-service-quantity-not-a-number",null,{quantity:n});const r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const o=t.id||t.string;if(0===r||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,o))return 1!==n?t.plural:t.string;const i=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1);if("string"==typeof i[o])return i[o];const s=Number(a(n));return i[o][s]}Ge(er,d),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const rr=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function or(e){return rr.includes(e)?"rtl":"ltr"}class ir{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.uiLanguage=e.uiLanguage||"en",this.contentLanguage=e.contentLanguage||this.uiLanguage,this.uiLanguageDirection=or(this.uiLanguage),this.contentLanguageDirection=or(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t=tr(t),"string"==typeof e&&(e={string:e});const n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,((e,n)=>n<t.length?t[n]:e))}(nr(this.uiLanguage,e,n),t)}}class ar{constructor(e){this.config=new Gn(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new er(this,t);const n=this.config.get("language")||{};this.locale=new ir({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Zn,this._contextOwner=null}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const n of e.concat(t)){if("function"!=typeof n)throw new c.a("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new c.a("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,(e=>e.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(e,t){if(this._contextOwner)throw new c.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise((t=>{const n=new this(e);t(n.initPlugins().then((()=>n)))}))}}class sr{constructor(e){this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}function cr(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!=t[r])return r;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}Ge(sr,We);var lr=function(e){return Yn(e,4)};class ur{constructor(e){this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new c.a("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getAncestors(t),r=e.getAncestors(t);let o=0;for(;n[o]==r[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),r=cr(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=lr(this);return delete e.parent,e}is(e){return"node"===e||"view:node"===e}}Ge(ur,d);class dr extends ur{constructor(e,t){super(e),this._textData=t}is(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof dr&&(this===e||this.data===e.data)}_clone(){return new dr(this.document,this.data)}}class fr{constructor(e,t,n){if(this.textNode=e,t<0||t>e.data.length)throw new c.a("view-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.data.length)throw new c.a("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}getAncestors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const t=[];let n=e.includeSelf?this.textNode:this.parent;for(;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}function hr(e){return Jn(e)?new Map(e):function(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}(e)}class pr{constructor(){this._patterns=[],this.add(...arguments)}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r of t)("string"==typeof r||r instanceof RegExp)&&(r={name:r}),this._patterns.push(r)}match(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)for(const e of this._patterns){const t=mr(r,e);if(t)return{element:r,pattern:e,match:t}}return null}matchAll(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)for(const t of this._patterns){const n=mr(o,t);n&&e.push({element:o,pattern:t,match:n})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function mr(e,t){if("function"==typeof t)return t(e);const n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){const n=new Set(t.getAttributeKeys());return ct(e)?(void 0!==e.style&&Object(c.b)("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&Object(c.b)("matcher-pattern-deprecated-attributes-class-key",e)):(n.delete("style"),n.delete("class")),gr(e,n,(e=>t.getAttribute(e)))}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){return gr(e,t.getClassNames())}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){return gr(e,t.getStyleNames(!0),(e=>t.getStyle(e)))}(t.styles,e),!n.styles))&&n}function gr(e,t,n){const r=function(e){return Array.isArray(e)?e.map((e=>ct(e)?(void 0!==e.key&&void 0!==e.value||Object(c.b)("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0])):ct(e)?Object.entries(e):[[e,!0]]}(e),o=Array.from(t),i=[];return r.forEach((e=>{let[t,r]=e;o.forEach((e=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&e.test(t)})(t,e)&&function(e,t,n){if(!0===e)return!0;const r=n(t);return e===r||e instanceof RegExp&&e.test(r)}(r,e,n)&&i.push(e)}))})),!r.length||i.length<r.length?null:i}var br=function(e){return"symbol"==typeof e||pe(e)&&"[object Symbol]"==T(e)},vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yr=/^\w*$/,wr=function(e,t){if(we(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!br(e))||yr.test(e)||!vr.test(e)||null!=t&&e in Object(t)};function kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(kr.Cache||Bt),n}kr.Cache=Bt;var _r=kr,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/\\(\\)?/g,Cr=function(e){var t=_r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Or,(function(e,n,r,o){t.push(r?o.replace(xr,"$1"):n||e)})),t})),Er=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},jr=k?k.prototype:void 0,Sr=jr?jr.toString:void 0,Pr=function e(t){if("string"==typeof t)return t;if(we(t))return Er(t,e)+"";if(br(t))return Sr?Sr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Tr=function(e){return null==e?"":Pr(e)},Nr=function(e,t){return we(e)?e:wr(e,t)?[e]:Cr(Tr(e))},Ar=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Mr=function(e){if("string"==typeof e||br(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Rr=function(e,t){for(var n=0,r=(t=Nr(t,e)).length;null!=e&&n<r;)e=e[Mr(t[n++])];return n&&n==r?e:void 0},Ir=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},Dr=function(e,t){return t.length<2?e:Rr(e,Ir(t,0,-1))},Lr=function(e,t){return t=Nr(t,e),null==(e=Dr(e,t))||delete e[Mr(Ar(t))]},zr=function(e,t){return null==e||Lr(e,t)},Fr=function(e,t,n){var r=null==e?void 0:Rr(e,t);return void 0===r?n:r},Vr=function(e,t,n){(void 0!==n&&!$(e[t],n)||void 0===n&&!(t in e))&&q(e,t,n)},Br=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}(),Hr=function(e){return pe(e)&&ce(e)},Wr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ur=function(e){return X(e,Ie(e))},Kr=function(e,t,n,r,o,i,a){var s=Wr(e,n),c=Wr(t,n),l=a.get(c);if(l)Vr(e,n,l);else{var u=i?i(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=we(c),h=!f&&Object(ke.a)(c),p=!f&&!h&&je(c);u=c,f||h||p?we(s)?u=s:Hr(s)?u=Zt(s):h?(d=!1,u=Object(Jt.a)(c,!0)):p?(d=!1,u=Rn(c,!0)):u=[]:ct(c)||ye(c)?(u=s,ye(s)?u=Ur(s):y(s)&&!N(s)||(u=zn(c))):d=!1}d&&(a.set(c,u),o(u,c,r,i,a),a.delete(c)),Vr(e,n,u)}},Yr=function e(t,n,r,o,i){t!==n&&Br(n,(function(a,s){if(i||(i=new Ut),y(a))Kr(t,n,s,r,e,o,i);else{var c=o?o(Wr(t,s),a,s+"",t,n,i):void 0;void 0===c&&(c=a),Vr(t,s,c)}}),Ie)},qr=fe((function(e,t,n){Yr(e,t,n)})),$r=function(e,t,n,r){if(!y(e))return e;for(var o=-1,i=(t=Nr(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var c=Mr(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=y(u)?u:ue(t[o+1])?[]:{})}Q(s,c,l),s=s[c]}return e},Gr=function(e,t,n){return null==e?e:$r(e,t,n)};class Qr{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){const e=Object.entries(this._styles);return!Array.from(e).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=Array.from(function(e){let t=null,n=0,r=0,o=null;const i=new Map;if(""===e)return i;";"!=e.charAt(e.length-1)&&(e+=";");for(let a=0;a<e.length;a++){const s=e.charAt(a);if(null===t)switch(s){case":":o||(o=e.substr(n,a-n),r=a+1);break;case'"':case"'":t=s;break;case";":{const t=e.substr(r,a-r);o&&i.set(o.trim(),t.trim()),o=null,n=a+1;break}}else s===t&&(t=null)}return i}(e).entries());for(const[n,r]of t)this._styleProcessor.toNormalizedForm(n,r,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find((t=>{let[n]=t;return n===e}));return Array.isArray(t)}set(e,t){if(y(e))for(const[n,r]of Object.entries(e))this._styleProcessor.toNormalizedForm(n,r,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=Jr(e);zr(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((e=>e.join(":"))).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!y(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find((t=>{let[n]=t;return n===e}));return Array.isArray(t)?t[1]:void 0}getStyleNames(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((e=>{let[t]=e;return t}))}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const n of t)e.push(...this._styleProcessor.getReducedForm(n,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const n=t.splice(0,t.length-1).join("."),r=Fr(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}class Xr{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(y(t))Zr(n,Jr(e),t);else if(this._normalizers.has(e)){const r=this._normalizers.get(e),{path:o,value:i}=r(t);Zr(n,o,i)}else Zr(n,e,t)}getNormalized(e,t){if(!e)return qr({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const n=this._extractors.get(e);if("string"==typeof n)return Fr(t,n);const r=n(e,t);if(r)return r}return Fr(t,Jr(e))}getReducedForm(e,t){const n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter((t=>{const n=this.getNormalized(t,e);return n&&"object"==typeof n?Object.keys(n).length:n})),n=new Set([...t,...Object.keys(e)]);return Array.from(n.values())}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const n of t)this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function Jr(e){return e.replace("-",".")}function Zr(e,t,n){let r=n;y(n)&&(r=qr({},Fr(e,t),n)),Gr(e,t,r)}class eo extends ur{constructor(e,t,n,r){if(super(e),this.name=t,this._attrs=function(e){e=hr(e);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],r&&this._insertChild(0,r),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");to(this._classes,e),this._attrs.delete("class")}this._styles=new Qr(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof eo))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this.isAllowedInsideAttributeElement!=e.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,n]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==n)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)if(!this._classes.has(r))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(e)}hasStyle(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const r of t)if(!this._styles.has(r))return!1;return!0}findAncestor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new pr(...t);let o=this.parent;for(;o;){if(r.match(o))return o;o=o.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((e=>"".concat(e[0],'="').concat(e[1],'"'))).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}_clone(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[];if(e)for(const r of this.getChildren())t.push(r._clone(e));const n=new this.constructor(this.document,this.name,this._attrs,t);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let n=0;const r=function(e,t){return"string"==typeof t?[new dr(e,t)]:(Jn(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new dr(e,t):t instanceof fr?new dr(e,t.data):t)))}(this.document,t);for(const o of r)null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(e,0,o),e++,n++;return n}_removeChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?to(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of tr(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of tr(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of tr(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function to(e,t){const n=t.split(/\s+/);e.clear(),n.forEach((t=>e.add(t)))}class no extends eo{constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=ro}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}function ro(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const n of e)if(!n.is("uiElement"))return null;return this.childCount}class oo extends no{constructor(e,t,n,r){super(e,t,n,r),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",(t=>t&&e.selection.editableElement==this)),this.listenTo(e.selection,"change",(()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this}))}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}destroy(){this.stopListening()}}Ge(oo,We);const io=Symbol("rootName");class ao extends oo{constructor(e,t){super(e,t),this.rootName="main"}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}get rootName(){return this.getCustomProperty(io)}set rootName(e){this._setCustomProperty(io,e)}set _name(e){this.name=e}}class so{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.boundaries&&!e.startPosition)throw new c.a("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new c.a("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=co._createAt(e.startPosition):this.position=co._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(e){let t,n,r;do{r=this.position,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&e.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};let r;if(n instanceof dr){if(e.isAtEnd)return this.position=co._createAfter(n),this._next();r=n.data[e.offset]}else r=n.getChild(e.offset);if(r instanceof eo)return this.shallow?e.offset++:e=new co(r,0),this.position=e,this._formatReturnValue("elementStart",r,t,e,1);if(r instanceof dr){if(this.singleCharacters)return e=new co(r,0),this.position=e,this._next();{let n,o=r.data.length;return r==this._boundaryEndParent?(o=this.boundaries.end.offset,n=new fr(r,0,o),e=co._createAfter(n)):(n=new fr(r,0,r.data.length),e.offset++),this.position=e,this._formatReturnValue("text",n,t,e,o)}}if("string"==typeof r){let r;r=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-e.offset;const o=new fr(n,e.offset,r);return e.offset+=r,this.position=e,this._formatReturnValue("text",o,t,e,r)}return e=co._createAfter(n),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,t,e)}_previous(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};let r;if(n instanceof dr){if(e.isAtStart)return this.position=co._createBefore(n),this._previous();r=n.data[e.offset-1]}else r=n.getChild(e.offset-1);if(r instanceof eo)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",r,t,e,1)):(e=new co(r,r.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",r,t,e));if(r instanceof dr){if(this.singleCharacters)return e=new co(r,r.data.length),this.position=e,this._previous();{let n,o=r.data.length;if(r==this._boundaryStartParent){const t=this.boundaries.start.offset;n=new fr(r,t,r.data.length-t),o=n.data.length,e=co._createBefore(n)}else n=new fr(r,0,r.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",n,t,e,o)}}if("string"==typeof r){let r;if(this.singleCharacters)r=1;else{const t=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=e.offset-t}e.offset-=r;const o=new fr(n,e.offset,r);return this.position=e,this._formatReturnValue("text",o,t,e,r)}return e=co._createBefore(n),this.position=e,this._formatReturnValue("elementStart",n,t,e,1)}_formatReturnValue(e,t,n,r,o){return t instanceof fr&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=co._createAfter(t.textNode):(r=co._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=co._createBefore(t.textNode):(r=co._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:o}}}}class co{constructor(e,t){this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof oo);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=co._createAt(this),n=t.offset+e;return t.offset=n<0?0:n,t}getLastMatchingPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;const n=new so(t);return n.skip(e),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let r=0;for(;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}is(e){return"position"===e||"view:position"===e}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);const r=cr(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]<n[r]?"before":"after"}}getWalker(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new so(e)}clone(){return new co(this.parent,this.offset)}static _createAt(e,t){if(e instanceof co)return new this(e.parent,e.offset);{const n=e;if("end"==t)t=n.is("$text")?n.data.length:n.childCount;else{if("before"==t)return this._createBefore(n);if("after"==t)return this._createAfter(n);if(0!==t&&!t)throw new c.a("view-createpositionat-offset-required",n)}return new co(n,t)}}static _createAfter(e){if(e.is("$textProxy"))return new co(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new c.a("view-position-after-root",e,{root:e});return new co(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new co(e.textNode,e.offsetInText);if(!e.parent)throw new c.a("view-position-before-root",e,{root:e});return new co(e.parent,e.index)}}class lo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new so({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let e=this.start.getLastMatchingPosition(uo,{direction:"backward"}),t=this.end.getLastMatchingPosition(uo);return e.parent.is("$text")&&e.isAtStart&&(e=co._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=co._createAfter(t.parent)),new lo(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(uo);if(e.isAfter(this.end)||e.isEqual(this.end))return new lo(e,e);let t=this.end.getLastMatchingPosition(uo,{direction:"backward"});const n=e.nodeAfter,r=t.nodeBefore;return n&&n.is("$text")&&(e=new co(n,0)),r&&r.is("$text")&&(t=new co(r,r.data.length)),new lo(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new lo(this.start,e.start)),this.containsPosition(e.end)&&t.push(new lo(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new lo(t,n)}return null}getWalker(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new so(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new lo(this.start,this.end)}getItems(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){t.boundaries=e,t.ignoreElementEnd=!0;const n=new so(t);for(const e of n)yield e.item}()}getPositions(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){t.boundaries=e;const n=new so(t);yield n.position;for(const e of n)yield e.nextPosition}()}is(e){return"range"===e||"view:range"===e}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,n,r){return new this(new co(e,t),new co(n,r))}static _createFromPositionAndShift(e,t){const n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(co._createBefore(e),t)}}function uo(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function fo(e){let t=0;for(const n of e)t++;return t}class ho{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(e,t,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const r of e._ranges)if(t.isEqual(r)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=fo(this.getRanges());if(t!=fo(e.getRanges()))return!1;if(0==t)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let t=!1;for(let r of e.getRanges())if(r=r.getTrimmed(),n.start.isEqual(r.start)&&n.end.isEqual(r.end)){t=!0;break}if(!t)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(e,t,n){if(null===e)this._setRanges([]),this._setFakeOptions(t);else if(e instanceof ho||e instanceof po)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof lo)this._setRanges([e],t&&t.backward),this._setFakeOptions(t);else if(e instanceof co)this._setRanges([new lo(e)]),this._setFakeOptions(t);else if(e instanceof ur){const r=!!n&&!!n.backward;let o;if(void 0===t)throw new c.a("view-selection-setto-required-second-parameter",this);o="in"==t?lo._createIn(e):"on"==t?lo._createOn(e):new lo(co._createAt(e,t)),this._setRanges([o],r),this._setFakeOptions(n)}else{if(!Jn(e))throw new c.a("view-selection-setto-not-selectable",this);this._setRanges(e,t&&t.backward),this._setFakeOptions(t)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new c.a("view-selection-setfocus-no-ranges",this);const n=co._createAt(e,t);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new lo(n,r),!0):this._addRange(new lo(r,n)),this.fire("change")}is(e){return"selection"===e||"view:selection"===e}_setRanges(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];for(const n of e)this._addRange(n);this._lastRangeBackward=!!t}_setFakeOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof lo))throw new c.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new c.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new lo(e.start,e.end))}}Ge(ho,d);class po{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this._selection=new ho,this._selection.delegate("change").to(this),this._selection.setTo(e,t,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}is(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setFocus(e,t){this._selection.setFocus(e,t)}}Ge(po,d);class mo extends o{constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const go=Symbol("bubbling contexts");var bo={fire(e){try{const i=e instanceof o?e:new o(this,e),a=ko(this);if(!a.size)return;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(vo(i,"capturing",this),yo(a,"$capture",i,...n))return i.return;const s=i.startRange||this.selection.getFirstRange(),c=s?s.getContainedElement():null,l=!!c&&Boolean(wo(a,c));let u=c||function(e){if(!e)return null;const t=e.start.parent,n=e.end.parent,r=t.getPath(),o=n.getPath();return r.length>o.length?t:n}(s);if(vo(i,"atTarget",u),!l){if(yo(a,"$text",i,...n))return i.return;vo(i,"bubbling",u)}for(;u;){if(u.is("rootElement")){if(yo(a,"$root",i,...n))return i.return}else if(u.is("element")&&yo(a,u.name,i,...n))return i.return;if(yo(a,u,i,...n))return i.return;u=u.parent,vo(i,"bubbling",u)}return vo(i,"bubbling",this),yo(a,"$document",i,...n),i.return}catch(e){c.a.rethrowUnexpectedError(e,this)}},_addEventListener(e,t,n){const r=tr(n.context||"$document"),o=ko(this);for(const i of r){let r=o.get(i);r||(r=Object.create(d),o.set(i,r)),this.listenTo(r,e,t,n)}},_removeEventListener(e,t){const n=ko(this);for(const r of n.values())this.stopListening(r,e,t)}};function vo(e,t,n){e instanceof mo&&(e._eventPhase=t,e._currentTarget=n)}function yo(e,t,n){const r="string"==typeof t?e.get(t):wo(e,t);for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return!!r&&(r.fire(n,...i),n.stop.called)}function wo(e,t){for(const[n,r]of e)if("function"==typeof n&&n(t))return r;return null}function ko(e){return e[go]||(e[go]=new Map),e[go]}class _o{constructor(e){this.selection=new po,this.roots=new Zn({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map((e=>e.destroy())),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(t=n(e),t)break}while(t)}}Ge(_o,bo),Ge(_o,We);class Oo extends eo{constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=xo,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new c.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function xo(){if(Co(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(Co(e)>1)return null;e=e.parent}return!e||Co(e)>1?null:this.childCount}function Co(e){return Array.from(e.getChildren()).filter((e=>!e.is("uiElement"))).length}Oo.DEFAULT_PRIORITY=10;class Eo extends eo{constructor(e,t,n,r){super(e,t,n,r),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=jo}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof ur||Array.from(t).length>0))throw new c.a("view-emptyelement-cannot-add",[this,t])}}function jo(){return null}const So=navigator.userAgent.toLowerCase();var Po={isMac:function(e){return e.indexOf("macintosh")>-1}(So),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(So),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(So),isAndroid:function(e){return e.indexOf("android")>-1}(So),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(So),features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}};const To={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},No={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Ao=function(){const e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return e}(),Mo=Object.fromEntries(Object.entries(Ao).map((e=>{let[t,n]=e;return[n,t.charAt(0).toUpperCase()+t.slice(1)]})));function Ro(e){let t;if("string"==typeof e){if(t=Ao[e.toLowerCase()],!t)throw new c.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?Ao.alt:0)+(e.ctrlKey?Ao.ctrl:0)+(e.shiftKey?Ao.shift:0)+(e.metaKey?Ao.cmd:0);return t}function Io(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((e=>e.trim()))}(e)),e.map((e=>"string"==typeof e?function(e){if(e.endsWith("!"))return Ro(e.slice(0,-1));const t=Ro(e);return Po.isMac&&t==Ao.ctrl?Ao.cmd:t}(e):e)).reduce(((e,t)=>t+e),0)}function Do(e){let t=Io(e);return Object.entries(Po.isMac?To:No).reduce(((e,n)=>{let[r,o]=n;return 0!=(t&Ao[r])&&(t&=~Ao[r],e+=o),e}),"")+(t?Mo[t]:"")}function Lo(e,t){const n="ltr"===t;switch(e){case Ao.arrowleft:return n?"left":"right";case Ao.arrowright:return n?"right":"left";case Ao.arrowup:return"up";case Ao.arrowdown:return"down"}}function zo(e,t){const n=Lo(e,t);return"down"===n||"right"===n}class Fo extends eo{constructor(e,t,n,r){super(e,t,n,r),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Bo}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof ur||Array.from(t).length>0))throw new c.a("view-uielement-cannot-add",this)}render(e){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const n of this.getAttributeKeys())t.setAttribute(n,this.getAttribute(n));return t}}function Vo(e){e.document.on("arrowKey",((t,n)=>function(e,t,n){if(t.keyCode==Ao.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),r=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(r||t.shiftKey){const t=e.focusNode,o=e.focusOffset,i=n.domPositionToView(t,o);if(null===i)return;let a=!1;const s=i.getLastMatchingPosition((e=>(e.item.is("uiElement")&&(a=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement")))));if(a){const t=n.viewPositionToDom(s);r?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,n,e.domConverter)),{priority:"low"})}function Bo(){return null}class Ho extends eo{constructor(e,t,n,r){super(e,t,n,r),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Wo}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof ur||Array.from(t).length>0))throw new c.a("view-rawelement-cannot-add",[this,t])}}function Wo(){return null}class Uo{constructor(e,t){this.document=e,this._children=[],t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"view:documentFragment"===e}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let n=0;const r=function(e,t){return"string"==typeof t?[new dr(e,t)]:(Jn(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new dr(e,t):t instanceof fr?new dr(e,t.data):t)))}(this.document,t);for(const o of r)null!==o.parent&&o._remove(),o.parent=this,this._children.splice(e,0,o),e++,n++;return n}_removeChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}}Ge(Uo,d);class Ko{constructor(e){this.document=e,this._cloneGroups=new Map}setSelection(e,t,n){this.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new Uo(this.document,e)}createText(e){return new dr(this.document,e)}createAttributeElement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Oo(this.document,e,t);return"number"==typeof n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}createContainerElement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new no(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(r._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),r}createEditableElement(e,t){const n=new oo(this.document,e,t);return n._document=this.document,n}createEmptyElement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Eo(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(r._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),r}createUIElement(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=new Fo(this.document,e,t);return n&&(o.render=n),void 0!==r.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=r.isAllowedInsideAttributeElement),o}createRawElement(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=new Ho(this.document,e,t);return o.render=n||(()=>{}),void 0!==r.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=r.isAllowedInsideAttributeElement),o}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){ct(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof co?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new c.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new c.a("view-writer-break-root",this.document);if(e.isAtStart)return co._createBefore(t);if(!e.isAtEnd){const n=t._clone(!1);this.insert(co._createAfter(t),n);const r=new lo(e,co._createAt(t,"end")),o=new co(n,0);this.move(r,o)}return co._createAfter(t)}mergeAttributes(e){const t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){const e=n.parent,t=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new co(e,t))}const r=n.getChild(t-1),o=n.getChild(t);if(!r||!o)return e;if(r.is("$text")&&o.is("$text"))return Qo(r,o);if(r.is("attributeElement")&&o.is("attributeElement")&&r.isSimilar(o)){const e=r.childCount;return r._appendChild(o.getChildren()),o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new co(r,e))}return e}mergeContainers(e){const t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new c.a("view-writer-merge-containers-invalid-position",this.document);const r=t.getChild(t.childCount-1),o=r instanceof dr?co._createAt(r,"end"):co._createAt(t,"end");return this.move(lo._createIn(n),co._createAt(t,"end")),this.remove(lo._createOn(n)),o}insert(e,t){!function e(t,n){for(const r of t){if(!Xo.some((e=>r instanceof e)))throw new c.a("view-writer-insert-invalid-node-type",n);r.is("$text")||e(r.getChildren(),n)}}(t=Jn(t)?[...t]:[t],this.document);const n=t.reduce(((e,t)=>{const n=e[e.length-1],r=!(t.is("uiElement")&&t.isAllowedInsideAttributeElement);return n&&n.breakAttributes==r?n.nodes.push(t):e.push({breakAttributes:r,nodes:[t]}),e}),[]);let r=null,o=e;for(const{nodes:i,breakAttributes:a}of n){const e=this._insertNodes(o,i,a);r||(r=e.start),o=e.end}return r?new lo(r,o):new lo(e)}remove(e){const t=e instanceof lo?e:lo._createOn(e);if(Zo(t,this.document),t.isCollapsed)return new Uo(this.document);const{start:n,end:r}=this._breakAttributesRange(t,!0),o=n.parent,i=r.offset-n.offset,a=o._removeChildren(n.offset,i);for(const c of a)this._removeFromClonedElementsGroup(c);const s=this.mergeAttributes(n);return t.start=s,t.end=s.clone(),new Uo(this.document,a)}clear(e,t){Zo(e,this.document);const n=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const r of n){const n=r.item;let o;if(n.is("element")&&t.isSimilar(n))o=lo._createOn(n);else if(!r.nextPosition.isAfter(e.start)&&n.is("$textProxy")){const e=n.getAncestors().find((e=>e.is("element")&&t.isSimilar(e)));e&&(o=lo._createIn(e))}o&&(o.end.isAfter(e.end)&&(o.end=e.end),o.start.isBefore(e.start)&&(o.start=e.start),this.remove(o))}}move(e,t){let n;if(t.isAfter(e.end)){const r=(t=this._breakAttributes(t,!0)).parent,o=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-o}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof Oo))throw new c.a("view-writer-wrap-invalid-attribute",this.document);if(Zo(e,this.document),e.isCollapsed){let r=e.start;r.parent.is("element")&&(n=r.parent,!Array.from(n.getChildren()).some((e=>!e.is("uiElement"))))&&(r=r.getLastMatchingPosition((e=>e.item.is("uiElement")))),r=this._wrapPosition(r,t);const o=this.document.selection;return o.isCollapsed&&o.getFirstPosition().isEqual(e.start)&&this.setSelection(r),new lo(r)}return this._wrapRange(e,t);var n}unwrap(e,t){if(!(t instanceof Oo))throw new c.a("view-writer-unwrap-invalid-attribute",this.document);if(Zo(e,this.document),e.isCollapsed)return e;const{start:n,end:r}=this._breakAttributesRange(e,!0),o=n.parent,i=this._unwrapChildren(o,n.offset,r.offset,t),a=this.mergeAttributes(i.start);a.isEqual(i.start)||i.end.offset--;const s=this.mergeAttributes(i.end);return new lo(a,s)}rename(e,t){const n=new no(this.document,e,t.getAttributes());return this.insert(co._createAfter(t),n),this.move(lo._createIn(t),co._createAt(n,0)),this.remove(lo._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return co._createAt(e,t)}createPositionAfter(e){return co._createAfter(e)}createPositionBefore(e){return co._createBefore(e)}createRange(e,t){return new lo(e,t)}createRangeOn(e){return lo._createOn(e)}createRangeIn(e){return lo._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}_insertNodes(e,t,n){let r,o;if(r=n?Yo(e):e.parent.is("$text")?e.parent.parent:e.parent,!r)throw new c.a("view-writer-invalid-position-container",this.document);o=n?this._breakAttributes(e,!0):e.parent.is("$text")?Go(e):e;const i=r._insertChild(o.offset,t);for(const c of t)this._addToClonedElementsGroup(c);const a=o.getShiftedBy(i),s=this.mergeAttributes(o);s.isEqual(o)||a.offset--;const l=this.mergeAttributes(a);return new lo(s,l)}_wrapChildren(e,t,n,r){let o=t;const i=[];for(;o<n;){const t=e.getChild(o),n=t.is("$text"),a=t.is("attributeElement"),s=t.isAllowedInsideAttributeElement;if(a&&this._wrapAttributeElement(r,t))i.push(new co(e,o));else if(n||s||a&&qo(r,t)){const n=r._clone();t._remove(),n._appendChild(t),e._insertChild(o,n),this._addToClonedElementsGroup(n),i.push(new co(e,o))}else a&&this._wrapChildren(t,0,t.childCount,r);o++}let a=0;for(const s of i)s.offset-=a,s.offset!=t&&(this.mergeAttributes(s).isEqual(s)||(a++,n--));return lo._createFromParentsAndOffsets(e,t,e,n)}_unwrapChildren(e,t,n,r){let o=t;const i=[];for(;o<n;){const t=e.getChild(o);if(t.is("attributeElement"))if(t.isSimilar(r)){const r=t.getChildren(),a=t.childCount;t._remove(),e._insertChild(o,r),this._removeFromClonedElementsGroup(t),i.push(new co(e,o),new co(e,o+a)),o+=a,n+=a-1}else this._unwrapAttributeElement(r,t)?(i.push(new co(e,o),new co(e,o+1)),o++):(this._unwrapChildren(t,0,t.childCount,r),o++);else o++}let a=0;for(const s of i)s.offset-=a,s.offset!=t&&s.offset!=n&&(this.mergeAttributes(s).isEqual(s)||(a++,n--));return lo._createFromParentsAndOffsets(e,t,e,n)}_wrapRange(e,t){const{start:n,end:r}=this._breakAttributesRange(e,!0),o=n.parent,i=this._wrapChildren(o,n.offset,r.offset,t),a=this.mergeAttributes(i.start);a.isEqual(i.start)||i.end.offset--;const s=this.mergeAttributes(i.end);return new lo(a,s)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return $o(e.clone());e.parent.is("$text")&&(e=Go(e));const n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,e.parent._insertChild(e.offset,n);const r=new lo(e,e.getShiftedBy(1));this.wrap(r,t);const o=new co(n.parent,n.index);n._remove();const i=o.nodeBefore,a=o.nodeAfter;return i instanceof dr&&a instanceof dr?Qo(i,a):$o(o)}_wrapAttributeElement(e,t){if(!ei(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n))return!1;for(const n of e.getStyleNames())if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&(t.hasAttribute(n)||this.setAttribute(n,e.getAttribute(n),t));for(const n of e.getStyleNames())t.hasStyle(n)||this.setStyle(n,e.getStyle(n),t);for(const n of e.getClassNames())t.hasClass(n)||this.addClass(n,t);return!0}_unwrapAttributeElement(e,t){if(!ei(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const n of e.getStyleNames())if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.start,r=e.end;if(Zo(e,this.document),e.isCollapsed){const n=this._breakAttributes(e.start,t);return new lo(n,n)}const o=this._breakAttributes(r,t),i=o.parent.childCount,a=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-i,new lo(a,o)}_breakAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new c.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new c.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new c.a("view-writer-cannot-break-raw-element",this.document);if(!t&&r.is("$text")&&Jo(r.parent))return e.clone();if(Jo(r))return e.clone();if(r.is("$text"))return this._breakAttributes(Go(e),t);if(n==r.childCount){const e=new co(r.parent,r.index+1);return this._breakAttributes(e,t)}if(0===n){const e=new co(r.parent,r.index);return this._breakAttributes(e,t)}{const e=r.index+1,o=r._clone();r.parent._insertChild(e,o),this._addToClonedElementsGroup(o);const i=r.childCount-n,a=r._removeChildren(n,i);o._appendChild(a);const s=new co(r.parent,e);return this._breakAttributes(s,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const r of e.getChildren())this._addToClonedElementsGroup(r);const t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const r of e.getChildren())this._removeFromClonedElementsGroup(r);const t=e.id;if(!t)return;const n=this._cloneGroups.get(t);n&&n.delete(e)}}function Yo(e){let t=e.parent;for(;!Jo(t);){if(!t)return;t=t.parent}return t}function qo(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function $o(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new co(t,t.data.length);const n=e.nodeAfter;return n&&n.is("$text")?new co(n,0):e}function Go(e){if(e.offset==e.parent.data.length)return new co(e.parent.parent,e.parent.index+1);if(0===e.offset)return new co(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new dr(e.root.document,t)),new co(e.parent.parent,e.parent.index+1)}function Qo(e,t){const n=e.data.length;return e._data+=t.data,t._remove(),new co(e,n)}const Xo=[dr,Oo,no,Eo,Ho,Fo];function Jo(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function Zo(e,t){const n=Yo(e.start),r=Yo(e.end);if(!n||!r||n!==r)throw new c.a("view-writer-invalid-range-container",t)}function ei(e,t){return null===e.id&&null===t.id}function ti(e){return"[object Text]"==Object.prototype.toString.call(e)}const ni=e=>e.createTextNode("\xa0"),ri=e=>{const t=e.createElement("span");return t.dataset.ckeFiller=!0,t.innerHTML="\xa0",t},oi=e=>{const t=e.createElement("br");return t.dataset.ckeFiller=!0,t},ii="\u2060".repeat(7);function ai(e){return ti(e)&&e.data.substr(0,7)===ii}function si(e){return 7==e.data.length&&ai(e)}function ci(e){return ai(e)?e.data.slice(7):e.data}function li(e,t){if(t.keyCode==Ao.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;ai(t)&&n<=7&&e.collapse(t,0)}}}function ui(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));const o=function(e,t,n){const r=di(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=di(fi(e,r),fi(t,r),n);return{firstIndex:r,lastIndexOld:e.length-o,lastIndexNew:t.length-o}}(e,t,n);return r?function(e,t){const{firstIndex:n,lastIndexOld:r,lastIndexNew:o}=e;if(-1===n)return Array(t).fill("equal");let i=[];return n>0&&(i=i.concat(Array(n).fill("equal"))),o-n>0&&(i=i.concat(Array(o-n).fill("insert"))),r-n>0&&(i=i.concat(Array(r-n).fill("delete"))),o<t&&(i=i.concat(Array(t-o).fill("equal"))),i}(o,t.length):function(e,t){const n=[],{firstIndex:r,lastIndexOld:o,lastIndexNew:i}=t;return i-r>0&&n.push({index:r,type:"insert",values:e.slice(r,i)}),o-r>0&&n.push({index:r+(i-r),type:"delete",howMany:o-r}),n}(t,o)}function di(e,t,n){for(let r=0;r<Math.max(e.length,t.length);r++)if(void 0===e[r]||void 0===t[r]||!n(e[r],t[r]))return r;return-1}function fi(e,t){return e.slice(t).reverse()}function hi(e,t,n){n=n||function(e,t){return e===t};const r=e.length,o=t.length;if(r>200||o>200||r+o>300)return hi.fastDiff(e,t,n,!0);let i,a;if(o<r){const n=e;e=t,t=n,i="delete",a="insert"}else i="insert",a="delete";const s=e.length,c=t.length,l=c-s,u={},d={};function f(r){const o=(void 0!==d[r-1]?d[r-1]:-1)+1,l=void 0!==d[r+1]?d[r+1]:-1,f=o>l?-1:1;u[r+f]&&(u[r]=u[r+f].slice(0)),u[r]||(u[r]=[]),u[r].push(o>l?i:a);let h=Math.max(o,l),p=h-r;for(;p<s&&h<c&&n(e[p],t[h]);)p++,h++,u[r].push("equal");return h}let h,p=0;do{for(h=-p;h<l;h++)d[h]=f(h);for(h=l+p;h>l;h--)d[h]=f(h);d[l]=f(l),p++}while(d[l]!==c);return u[l].slice(1)}function pi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function mi(e){const t=e.parentNode;t&&t.removeChild(e)}function gi(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}hi.fastDiff=ui;class bi{constructor(e,t){this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=t,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new c.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){let e;for(const t of this.markedChildren)this._updateChildrenMappings(t);this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));for(const t of this.markedAttributes)this._updateAttrs(t);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(e){const t=this.domConverter.viewPositionToDom(e),n=t.parent.ownerDocument;ai(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=vi(n,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(this.domConverter.mapViewToDom(e).childNodes),r=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),o=this._diffNodeLists(n,r),i=this._findReplaceActions(o,n,r);if(-1!==i.indexOf("replace")){const t={equal:0,insert:0,delete:0};for(const o of i)if("replace"===o){const o=t.equal+t.insert,i=t.equal+t.delete,a=e.getChild(o);!a||a.is("uiElement")||a.is("rawElement")||this._updateElementMappings(a,n[i]),mi(r[o]),t.equal++}else t[o]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?co._createBefore(this.selection.getFirstPosition().parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&ti(t.parent)&&ai(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!ai(e))throw new c.a("view-renderer-filler-was-lost",this);si(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor((e=>e.hasAttribute("contenteditable")));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;const r=e.nodeBefore,o=e.nodeAfter;return!(r instanceof dr||o instanceof dr)}_updateText(e,t){const n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e,n.ownerDocument),o=n.data;let i=r.data;const a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(i=ii+i),o!=i){const e=ui(o,i);for(const t of e)"insert"===t.type?n.insertData(t.index,t.values.join("")):n.deleteData(t.index,t.howMany)}}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(t.attributes).map((e=>e.name)),r=e.getAttributeKeys();for(const o of r)t.setAttribute(o,e.getAttribute(o));for(const o of n)e.hasAttribute(o)||t.removeAttribute(o)}_updateChildren(e,t){const n=this.domConverter.mapViewToDom(e);if(!n)return;const r=t.inlineFillerPosition,o=this.domConverter.mapViewToDom(e).childNodes,i=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===e&&vi(n.ownerDocument,i,r.offset);const a=this._diffNodeLists(o,i);let s=0;const c=new Set;for(const l of a)"delete"===l?(c.add(o[s]),mi(o[s])):"equal"===l&&s++;s=0;for(const l of a)"insert"===l?(pi(n,s,i[s]),s++):"equal"===l&&(this._markDescendantTextToSync(this.domConverter.domToView(i[s])),s++);for(const l of c)l.parentNode||this.domConverter.unbindDomElement(l)}_diffNodeLists(e,t){return hi(e=function(e,t){const n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,wi.bind(null,this.domConverter))}_findReplaceActions(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let r=[],o=[],i=[];const a={equal:0,insert:0,delete:0};for(const s of e)"insert"===s?i.push(n[a.equal+a.insert]):"delete"===s?o.push(t[a.equal+a.delete]):(r=r.concat(hi(o,i,yi).map((e=>"equal"===e?"replace":e))),r.push("equal"),o=[],i=[]),a[s]++;return r.concat(hi(o,i,yi).map((e=>"equal"===e?"replace":e)))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";const r=t.getSelection(),o=t.createRange();r.removeAllRanges(),o.selectNodeContents(n),r.addRange(o)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),Po.isGecko&&function(e,t){const n=e.parent;if(n.nodeType!=Node.ELEMENT_NODE||e.offset!=n.childNodes.length-1)return;const r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}(r,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments)if(e.getSelection().rangeCount){const t=e.activeElement,n=this.domConverter.mapDomToView(t);t&&n&&e.getSelection().removeAllRanges()}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function vi(e,t,n){const r=t instanceof Array?t:t.childNodes,o=r[n];if(ti(o))return o.data=ii+o.data,o;{const o=e.createTextNode(ii);return Array.isArray(t)?r.splice(n,0,o):pi(t,n,o),o}}function yi(e,t){return gi(e)&&gi(t)&&!ti(e)&&!ti(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function wi(e,t,n){return t===n||(ti(t)&&ti(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Ge(bi,We);var ki={window:window,document:document};function _i(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Oi(e){const t=[];for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}const xi=oi(document),Ci=ni(document),Ei=ri(document);class ji{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=e,this.blockFillerMode=t.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new pr,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new ho(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of e.childNodes)this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}viewToDom(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){const n=this._processDataFromViewText(e);return t.createTextNode(n)}{if(this.mapViewToDom(e))return this.mapViewToDom(e);let r;if(e.is("documentFragment"))r=t.createDocumentFragment(),n.bind&&this.bindDocumentFragments(r,e);else{if(e.is("uiElement"))return r="$comment"===e.name?t.createComment(e.getCustomProperty("$rawContent")):e.render(t),n.bind&&this.bindElements(r,e),r;r=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(r),n.bind&&this.bindElements(r,e);for(const t of e.getAttributeKeys())r.setAttribute(t,e.getAttribute(t))}if(!1!==n.withChildren)for(const o of this.viewChildrenToDom(e,t,n))r.appendChild(o);return r}}viewChildrenToDom(e,t){var n=this;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const o=e.getFillerOffset&&e.getFillerOffset();let i=0;for(const a of e.getChildren())o===i&&(yield n._getBlockFiller(t)),yield n.viewToDom(a,t,r),i++;o===i&&(yield n._getBlockFiller(t))}()}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=document.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const n=this.findCorrespondingDomText(t);if(!n)return null;let r=e.offset;return ai(n)&&(r+=7),{parent:n,offset:r}}{let n,r,o;if(0===e.offset){if(n=this.mapViewToDom(t),!n)return null;o=n.childNodes[0]}else{const t=e.nodeBefore;if(r=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(e.nodeBefore),!r)return null;n=r.parentNode,o=r.nextSibling}return ti(o)&&ai(o)?{parent:o,offset:7}:{parent:n,offset:r?_i(r)+1:0}}}domToView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e))return null;const n=this.getHostViewElement(e);if(n)return n;if(this.isComment(e)&&t.skipComments)return null;if(ti(e)){if(si(e))return null;{const t=this._processDataFromDomText(e);return""===t?null:new dr(this.document,t)}}{if(this.mapDomToView(e))return this.mapDomToView(e);let n;if(this.isDocumentFragment(e))n=new Uo(this.document),t.bind&&this.bindDocumentFragments(e,n);else{n=this._createViewElement(e,t),t.bind&&this.bindElements(e,n);const r=e.attributes;if(r)for(let e=r.length-1;e>=0;e--)n._setAttribute(r[e].name,r[e].value);if(this._isViewElementWithRawContent(n,t)||this.isComment(e)){const t=this.isComment(e)?e.data:e.innerHTML;return n._setCustomProperty("$rawContent",t),this._encounteredRawContentDomNodes.add(e),n}}if(!1!==t.withChildren)for(const r of this.domChildrenToView(e,t))n._appendChild(r);return n}}domChildrenToView(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(let r=0;r<e.childNodes.length;r++){const o=e.childNodes[r],i=t.domToView(o,n);null!==i&&(yield i)}}()}domSelectionToView(e){if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;ti(t)&&(t=t.parentNode);const n=this.fakeSelectionToView(t);if(n)return n}const t=this.isDomSelectionBackward(e),n=[];for(let r=0;r<e.rangeCount;r++){const t=e.getRangeAt(r),o=this.domRangeToView(t);o&&n.push(o)}return new ho(n,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new lo(t,n):null}domPositionToView(e,t){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,_i(e));const n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return co._createBefore(n);if(ti(e)){if(si(e))return this.domPositionToView(e.parentNode,_i(e));const n=this.findCorrespondingViewText(e);let r=t;return n?(ai(e)&&(r-=7,r=r<0?0:r),new co(n,r)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new co(t,0)}else{const n=e.childNodes[t-1],r=ti(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(r&&r.parent)return new co(r.parent,r.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(si(e))return null;const t=this.getHostViewElement(e);if(t)return t;const n=e.previousSibling;if(n){if(!this.isElement(n))return null;const e=this.mapDomToView(n);if(e)return e.nextSibling instanceof dr?e.nextSibling:null}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof dr?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:n}=ki.window,r=[];Si(t,(e=>{const{scrollLeft:t,scrollTop:n}=e;r.push([t,n])})),t.focus(),Si(t,(e=>{const[t,n]=r.shift();e.scrollLeft=t,e.scrollTop=n})),ki.window.scrollTo(e,n)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(e){return e&&e.nodeType==Node.COMMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(xi):!("BR"!==e.tagName||!Pi(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(Ei)||function(e,t){return e.isEqualNode(Ci)&&Pi(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed;return t.detach(),n}getHostViewElement(e){const t=Oi(e);for(t.pop();t.length;){const e=t.pop(),n=this._domToViewMapping.get(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}_getBlockFiller(e){switch(this.blockFillerMode){case"nbsp":return ni(e);case"markedNbsp":return ri(e);case"br":return oi(e)}}_isDomSelectionPositionCorrect(e,t){if(ti(e)&&ai(e)&&t<7)return!1;if(this.isElement(e)&&ai(e.childNodes[t]))return!1;const n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return t;if(" "==t.charAt(0)){const n=this._getTouchingInlineViewNode(e,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(t="\xa0"+t.substr(1))}if(" "==t.charAt(t.length-1)){const n=this._getTouchingInlineViewNode(e,!0),r=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=t.charAt(t.length-2)&&n&&!r||(t=t.substr(0,t.length-1)+"\xa0")}return t.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(e){if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_processDataFromDomText(e){let t=e.data;if(function(e,t){return Oi(e).some((e=>e.tagName&&t.includes(e.tagName.toLowerCase())))}(e,this.preElements))return ci(e);t=t.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),o=this._checkShouldLeftTrimDomText(e,n),i=this._checkShouldRightTrimDomText(e,r);o&&(t=t.replace(/^ /,"")),i&&(t=t.replace(/ $/,"")),t=ci(new Text(t)),t=t.replace(/ \u00A0/g," ");const a=r&&this.isElement(r)&&"BR"!=r.tagName,s=r&&ti(r)&&" "==r.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(t)||!r||a||s)&&(t=t.replace(/\u00A0$/," ")),(o||n&&this.isElement(n)&&"BR"!=n.tagName)&&(t=t.replace(/^\u00A0/," ")),t}_checkShouldLeftTrimDomText(e,t){return!t||(this.isElement(t)?"BR"===t.tagName:!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1)))}_checkShouldRightTrimDomText(e,t){return!t&&!ai(e)}_getTouchingInlineViewNode(e,t){const n=new so({startPosition:t?co._createAfter(e):co._createBefore(e),direction:t?"forward":"backward"});for(const r of n){if(r.item.is("element")&&this.inlineObjectElements.includes(r.item.name))return r.item;if(r.item.is("containerElement"))return null;if(r.item.is("element","br"))return null;if(r.item.is("$textProxy"))return r.item}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode)return null;const n=t?"firstChild":"lastChild",r=t?"nextSibling":"previousSibling";let o=!0;do{if(!o&&e[n]?e=e[n]:e[r]?(e=e[r],o=!1):(e=e.parentNode,o=!0),!e||this._isBlockElement(e))return null}while(!ti(e)&&"BR"!=e.tagName&&!this._isInlineObjectElement(e));return e}_isBlockElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isInlineObjectElement(e){return this.isElement(e)&&this.inlineObjectElements.includes(e.tagName.toLowerCase())}_createViewElement(e,t){if(this.isComment(e))return new Fo(this.document,"$comment");const n=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new eo(this.document,n)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&this._rawContentElementMatcher.match(e)}}function Si(e,t){for(;e&&e!=ki.document;)t(e),e=e.parentNode}function Pi(e,t){const n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function Ti(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Ni=De({},d,{listenTo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(gi(e)||Ti(e)){const t=this._getProxyEmitter(e)||new Ai(e);t.attach(...n),e=t}d.listenTo.call(this,e,...n)},stopListening(e,t,n){if(gi(e)||Ti(e)){const t=this._getProxyEmitter(e);if(!t)return;e=t}d.stopListening.call(this,e,t,n),e instanceof Ai&&e.detach(t)},_getProxyEmitter(e){return t=this,n=Mi(e),t[l]&&t[l][n]?t[l][n].emitter:null;var t,n}});class Ai{constructor(e){f(this,Mi(e)),this._domNode=e}}function Mi(e){return e["data-ck-expando"]||(e["data-ck-expando"]=a())}De(Ai.prototype,d,{attach(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._domListeners&&this._domListeners[e])return;const r={capture:!!n.useCapture,passive:!!n.usePassive},o=this._createDomListener(e,r);this._domNode.addEventListener(e,o,r),this._domListeners||(this._domListeners={}),this._domListeners[e]=o},detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener(e,t){const n=t=>{this.fire(e,t)};return n.removeListener=()=>{this._domNode.removeEventListener(e,n,t),delete this._domListeners[e]},n}});class Ri{constructor(e){this.view=e,this.document=e.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Ge(Ri,Ni);var Ii=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Di=function(e){return this.__data__.has(e)};function Li(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Bt;++t<n;)this.add(e[t])}Li.prototype.add=Li.prototype.push=Ii,Li.prototype.has=Di;var zi=Li,Fi=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Vi=function(e,t){return e.has(t)},Bi=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=2&n?new zi:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,i):r(p,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(h){if(!Fi(t,(function(e,t){if(!Vi(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!o(p,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f},Hi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Wi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Ui=k?k.prototype:void 0,Ki=Ui?Ui.valueOf:void 0,Yi=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new En(e),new En(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Hi;case"[object Set]":var c=1&r;if(s||(s=Wi),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Bi(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Ki)return Ki.call(e)==Ki.call(t)}return!1},qi=Object.prototype.hasOwnProperty,$i=function(e,t,n,r,o,i){var a=1&n,s=dn(e),c=s.length;if(c!=dn(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:qi.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<c;){var m=e[u=s[l]],g=t[u];if(r)var b=a?r(g,m,u,t,e,i):r(m,g,u,e,t,i);if(!(void 0===b?m===g||o(m,g,n,r,i):b)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h},Gi=Object.prototype.hasOwnProperty,Qi=function(e,t,n,r,o,i){var a=we(e),s=we(t),c=a?"[object Array]":On(e),l=s?"[object Array]":On(t),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f=c==l;if(f&&Object(ke.a)(e)){if(!Object(ke.a)(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Ut),a||je(e)?Bi(e,t,n,r,o,i):Yi(e,t,c,n,r,o,i);if(!(1&n)){var h=u&&Gi.call(e,"__wrapped__"),p=d&&Gi.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return i||(i=new Ut),o(m,g,n,r,i)}}return!!f&&(i||(i=new Ut),$i(e,t,n,r,o,i))},Xi=function e(t,n,r,o,i){return t===n||(null==t||null==n||!pe(t)&&!pe(n)?t!=t&&n!=n:Qi(t,n,r,o,e,i))},Ji=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Xi(e,t,void 0,n):!!r};class Zi extends Ri{constructor(e){super(e),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,n=new Map,r=new Set;for(const c of e)if("childList"===c.type){const e=t.mapDomToView(c.target);if(e&&(e.is("uiElement")||e.is("rawElement")))continue;e&&!this._isBogusBrMutation(c)&&r.add(e)}for(const c of e){const e=t.mapDomToView(c.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===c.type){const e=t.findCorrespondingViewText(c.target);e&&!r.has(e.parent)?n.set(e,{type:"text",oldText:e.data,newText:ci(c.target),node:e}):!e&&ai(c.target)&&r.add(t.mapDomToView(c.target.parentNode))}}const o=[];for(const c of n.values())this.renderer.markToSync("text",c.node),o.push(c);for(const c of r){const e=t.mapViewToDom(c),n=Array.from(c.getChildren()),r=Array.from(t.domChildrenToView(e,{withChildren:!1}));Ji(n,r,s)||(this.renderer.markToSync("children",c),o.push({type:"children",oldChildren:n,newChildren:r,node:c}))}const i=e[0].target.ownerDocument.getSelection();let a=null;if(i&&i.anchorNode){const e=t.domPositionToView(i.anchorNode,i.anchorOffset),n=t.domPositionToView(i.focusNode,i.focusOffset);e&&n&&(a=new ho(e),a.setFocus(n))}function s(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}o.length&&(this.document.fire("mutations",o,a),this.view.forceRender())}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}class ea{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,De(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class ta extends Ri{constructor(e){super(e),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((t=>{this.listenTo(e,t,((e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)}),{useCapture:this.useCapture})}))}fire(e,t,n){this.isEnabled&&this.document.fire(e,new ea(this.view,t,n))}}class na extends ta{constructor(e){super(e),this.domEventType=["keydown","keyup"]}onDomEvent(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return Ro(this)}})}}var ra=function(){return w.a.Date.now()},oa=/\s/,ia=function(e){for(var t=e.length;t--&&oa.test(e.charAt(t)););return t},aa=/^\s+/,sa=function(e){return e?e.slice(0,ia(e)+1).replace(aa,""):e},ca=/^[-+]0x[0-9a-f]+$/i,la=/^0b[01]+$/i,ua=/^0o[0-7]+$/i,da=parseInt,fa=function(e){if("number"==typeof e)return e;if(br(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=sa(e);var n=la.test(e);return n||ua.test(e)?da(e.slice(2),n?2:8):ca.test(e)?NaN:+e},ha=Math.max,pa=Math.min,ma=function(e,t,n){var r,o,i,a,s,c,l=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function p(e){return l=e,s=setTimeout(g,t),u?h(e):a}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=i}function g(){var e=ra();if(m(e))return b(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?pa(n,i-(e-l)):n}(e))}function b(e){return s=void 0,f&&r?h(e):(r=o=void 0,a)}function v(){var e=ra(),n=m(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return p(c);if(d)return clearTimeout(s),s=setTimeout(g,t),h(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=fa(t)||0,y(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ha(fa(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},v.flush=function(){return void 0===s?a:b(ra())},v};class ga extends Ri{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=ma((e=>this.document.fire("selectionChangeDone",e)),200)}observe(){const e=this.document;e.on("arrowKey",((t,n)=>{e.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),e.on("arrowKey",((t,n)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,n=new ho(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Ao.arrowleft&&e!=Ao.arrowup||n.setTo(n.getFirstPosition()),e!=Ao.arrowright&&e!=Ao.arrowdown||n.setTo(n.getLastPosition());const r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}class ba extends Ri{constructor(e){super(e),this.mutationObserver=e.getObserver(Zi),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=ma((e=>this.document.fire("selectionChangeDone",e)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument;this._documents.has(t)||(this.listenTo(t,"selectionchange",((e,n)=>{this._handleSelectionChange(n,t)})),this._documents.add(t))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(e,t){if(!this.isEnabled)return;const n=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const r=this.domConverter.domSelectionToView(n);if(0!=r.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(r)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(r))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:r,domSelection:n};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class va extends ta{constructor(e){super(e),this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",(()=>{t.isFocused=!0,this._renderTimeoutId=setTimeout((()=>e.change((()=>{}))),50)})),t.on("blur",((n,r)=>{const o=t.selection.editableElement;null!==o&&o!==r.target||(t.isFocused=!1,e.change((()=>{})))}))}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class ya extends ta{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",(()=>{t.isComposing=!0})),t.on("compositionend",(()=>{t.isComposing=!1}))}onDomEvent(e){this.fire(e.type,e)}}class wa extends ta{constructor(e){super(e),this.domEventType=["beforeinput"]}onDomEvent(e){this.fire(e.type,e)}}class ka{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach((e=>{let{element:t,newElement:n}=e;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}var _a=function(e){return"string"==typeof e||!we(e)&&pe(e)&&"[object String]"==T(e)};function Oa(e){return"[object Range]"==Object.prototype.toString.apply(e)}function xa(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}const Ca=["top","right","bottom","left","width","height"];class Ea{constructor(e){const t=Oa(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),$n(e)||t)if(t){const t=Ea.getDomRangeRects(e);ja(this,Ea.getBoundingRect(t))}else ja(this,e.getBoundingClientRect());else if(Ti(e)){const{innerWidth:t,innerHeight:n}=e;ja(this,{top:0,right:t,bottom:n,left:0,width:t,height:n})}else ja(this,e)}clone(){return new Ea(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new Ea(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!Sa(e)){let n=e.parentNode||e.commonAncestorContainer;for(;n&&!Sa(n);){const e=new Ea(n),r=t.getIntersection(e);if(!r)return null;r.getArea()<t.getArea()&&(t=r),n=n.parentNode}}return t}isEqual(e){for(const t of Ca)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,n,r;if(Ti(e))t=e.innerWidth-e.document.documentElement.clientWidth,n=e.innerHeight-e.document.documentElement.clientHeight,r=e.getComputedStyle(e.document.documentElement).direction;else{const o=xa(this._source);t=e.offsetWidth-e.clientWidth-o.left-o.right,n=e.offsetHeight-e.clientHeight-o.top-o.bottom,r=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===r?this.right-=t:this.left+=t,this.height-=n,this.bottom-=n,this}static getDomRangeRects(e){const t=[],n=Array.from(e.getClientRects());if(n.length)for(const r of n)t.push(new Ea(r));else{let n=e.startContainer;ti(n)&&(n=n.parentNode);const r=new Ea(n.getBoundingClientRect());r.right=r.left,r.width=0,t.push(r)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};let n=0;for(const r of e)n++,t.left=Math.min(t.left,r.left),t.top=Math.min(t.top,r.top),t.right=Math.max(t.right,r.right),t.bottom=Math.max(t.bottom,r.bottom);return 0==n?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Ea(t))}}function ja(e,t){for(const n of Ca)e[n]=t[n]}function Sa(e){return!!$n(e)&&e===e.ownerDocument.body}class Pa{constructor(e,t){Pa._observerInstance||Pa._createObserver(),this._element=e,this._callback=t,Pa._addElementCallback(e,t),Pa._observerInstance.observe(e)}destroy(){Pa._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Pa._elementCallbacks||(Pa._elementCallbacks=new Map);let n=Pa._elementCallbacks.get(e);n||(n=new Set,Pa._elementCallbacks.set(e,n)),n.add(t)}static _deleteElementCallback(e,t){const n=Pa._getElementCallbacks(e);n&&(n.delete(t),n.size||(Pa._elementCallbacks.delete(e),Pa._observerInstance.unobserve(e))),Pa._elementCallbacks&&!Pa._elementCallbacks.size&&(Pa._observerInstance=null,Pa._elementCallbacks=null)}static _getElementCallbacks(e){return Pa._elementCallbacks?Pa._elementCallbacks.get(e):null}static _createObserver(){let e;e="function"==typeof ki.window.ResizeObserver?ki.window.ResizeObserver:Ta,Pa._observerInstance=new e((e=>{for(const t of e){const e=Pa._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}}))}}Pa._observerInstance=null,Pa._elementCallbacks=null;class Ta{constructor(e){this._callback=e,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const e=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(e,100)};this.listenTo(ki.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(e,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const e=[];for(const t of this._elements)this._hasRectChanged(t)&&e.push({target:t,contentRect:this._previousRects.get(t)});e.length&&this._callback(e)}_hasRectChanged(e){if(!e.ownerDocument.body.contains(e))return!1;const t=new Ea(e),n=this._previousRects.get(e),r=!n||!n.isEqual(t);return this._previousRects.set(e,t),r}}function Na(e){return t=>t+e}function Aa(e){const t=e.next();return t.done?null:t.value}Ge(Ta,Ni);class Ma{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(e){if(this._elements.has(e))throw new c.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(()=>this._focus(e)),{useCapture:!0}),this.listenTo(e,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Ge(Ma,Ni),Ge(Ma,We);class Ra{constructor(){this._listener=Object.create(Ni)}listenTo(e){this._listener.listenTo(e,"keydown",((e,t)=>{this._listener.fire("_keydown:"+Ro(t),t)}))}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Io(e),o=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,((e,n)=>{t(n,(()=>{n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:o})}press(e){return!!this._listener.fire("_keydown:"+Ro(e),e)}destroy(){this._listener.stopListening()}}class Ia extends Ri{constructor(e){super(e),this.document.on("keydown",((e,t)=>{if(this.isEnabled&&((n=t.keyCode)==Ao.arrowright||n==Ao.arrowleft||n==Ao.arrowup||n==Ao.arrowdown)){const n=new mo(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,t),n.stop.called&&e.stop()}var n}))}observe(){}}function Da(e){let{target:t,viewportOffset:n=0}=e;const r=Wa(t);let o=r,i=null;for(;o;){let e;e=Ua(o==r?t:i),za(e,(()=>Ka(t,o)));const a=Ka(t,o);if(La(o,a,n),o.parent!=o){if(i=o.frameElement,o=o.parent,!i)return}else o=null}}function La(e,t,n){const r=t.clone().moveBy(0,n),o=t.clone().moveBy(0,-n),i=new Ea(e).excludeScrollbarsAndBorders();if(![o,r].every((e=>i.contains(e)))){let{scrollX:a,scrollY:s}=e;Va(o,i)?s-=i.top-t.top+n:Fa(r,i)&&(s+=t.bottom-i.bottom+n),Ba(t,i)?a-=i.left-t.left+n:Ha(t,i)&&(a+=t.right-i.right+n),e.scrollTo(a,s)}}function za(e,t){const n=Wa(e);let r,o;for(;e!=n.document.body;)o=t(),r=new Ea(e).excludeScrollbarsAndBorders(),r.contains(o)||(Va(o,r)?e.scrollTop-=r.top-o.top:Fa(o,r)&&(e.scrollTop+=o.bottom-r.bottom),Ba(o,r)?e.scrollLeft-=r.left-o.left:Ha(o,r)&&(e.scrollLeft+=o.right-r.right)),e=e.parentNode}function Fa(e,t){return e.bottom>t.bottom}function Va(e,t){return e.top<t.top}function Ba(e,t){return e.left<t.left}function Ha(e,t){return e.right>t.right}function Wa(e){return Oa(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Ua(e){if(Oa(e)){let t=e.commonAncestorContainer;return ti(t)&&(t=t.parentNode),t}return e.parentNode}function Ka(e,t){const n=Wa(e),r=new Ea(e);if(n===t)return r;{let e=n;for(;e!=t;){const t=e.frameElement,n=new Ea(t).excludeScrollbarsAndBorders();r.moveBy(n.left,n.top),e=e.parent}}return r}Object.assign({},{scrollViewportToShowTarget:Da,scrollAncestorsToShowTarget:function(e){za(Ua(e),(()=>new Ea(e)))}});class Ya{constructor(e){this.document=new _o(e),this.domConverter=new ji(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new bi(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Ko(this.document),this.addObserver(Zi),this.addObserver(ba),this.addObserver(va),this.addObserver(na),this.addObserver(ga),this.addObserver(ya),this.addObserver(Ia),Po.isAndroid&&this.addObserver(wa),this.document.on("arrowKey",li,{priority:"low"}),Vo(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";const n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();const r={};for(const{name:i,value:a}of Array.from(e.attributes))r[i]=a,"class"===i?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(i,a,n);this._initialDomRootAttributes.set(e,r);const o=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};o(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(e.ownerDocument),n.on("change:children",((e,t)=>this._renderer.markToSync("children",t))),n.on("change:attributes",((e,t)=>this._renderer.markToSync("attributes",t))),n.on("change:text",((e,t)=>this._renderer.markToSync("text",t))),n.on("change:isReadOnly",(()=>this.change(o))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const i of this._observers.values())i.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach((e=>{let{name:n}=e;return t.removeAttribute(n)}));const n=this._initialDomRootAttributes.get(t);for(const r in n)t.setAttribute(r,n[r]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}getDomRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[n,r]of this.domRoots)t.observe(r,n);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection(){const e=this.document.selection.getFirstRange();e&&Da({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new c.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){c.a.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return co._createAt(e,t)}createPositionAfter(e){return co._createAfter(e)}createPositionBefore(e){return co._createBefore(e)}createRange(e,t){return new lo(e,t)}createRangeOn(e){return lo._createOn(e)}createRangeIn(e){return lo._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Ge(Ya,We);class qa{constructor(e){this.parent=null,this._attrs=hr(e)}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new c.a("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new c.a("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getAncestors(t),r=e.getAncestors(t);let o=0;for(;n[o]==r[o]&&n[o];)o++;return 0===o?null:n[o-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),r=cr(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce(((e,t)=>(e[t[0]]=t[1],e)),{})),e}is(e){return"node"===e||"model:node"===e}_clone(){return new qa(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=hr(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}class $a extends qa{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}is(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new $a(this.data,this.getAttributes())}static fromJSON(e){return new $a(e.data,e.attributes)}}class Ga{constructor(e,t,n){if(this.textNode=e,t<0||t>e.offsetSize)throw new c.a("model-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.offsetSize)throw new c.a("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Qa{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((e,t)=>e+t.offsetSize),0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce(((e,t)=>e+t.offsetSize),0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new c.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const n of this._nodes){if(e>=t&&e<t+n.offsetSize)return this.getNodeIndex(n);t+=n.offsetSize}if(t!=e)throw new c.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const n of t)if(!(n instanceof qa))throw new c.a("model-nodelist-insertnodes-not-node",this);this._nodes.splice(e,0,...t)}_removeNodes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}toJSON(){return this._nodes.map((e=>e.toJSON()))}}class Xa extends qa{constructor(e,t,n){super(t),this.name=e,this._children=new Qa,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}findAncestor(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;for(;t;){if(t.name===e)return t;t=t.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(){const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((e=>e._clone(!0))):null;return new Xa(this.name,this.getAttributes(),e)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new $a(e)]:(Jn(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new $a(e):e instanceof Ga?new $a(e.data,e.getAttributes()):e)))}(t);for(const r of n)null!==r.parent&&r._remove(),r.parent=this;this._children._insertNodes(e,n)}_removeChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this._children._removeNodes(e,t);for(const r of n)r.parent=null;return n}static fromJSON(e){let t=null;if(e.children){t=[];for(const n of e.children)n.name?t.push(Xa.fromJSON(n)):t.push($a.fromJSON(n))}return new Xa(e.name,e.attributes,t)}}class Ja{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.boundaries&&!e.startPosition)throw new c.a("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new c.a("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=es._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(e){let t,n,r,o;do{r=this.position,o=this._visitedParent,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=r,this._visitedParent=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};const r=t.parent,o=ts(t,r),i=o||ns(t,r,o);if(i instanceof Xa)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=i),this.position=t,Za("elementStart",i,e,t,1);if(i instanceof $a){let r;if(this.singleCharacters)r=1;else{let e=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),r=e-t.offset}const o=t.offset-i.startOffset,a=new Ga(i,o,r);return t.offset+=r,this.position=t,Za("text",a,e,t,r)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Za("elementEnd",n,e,t)}_previous(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};const r=t.parent,o=ts(t,r),i=o||rs(t,r,o);if(i instanceof Xa)return t.offset--,this.shallow?(this.position=t,Za("elementStart",i,e,t,1)):(t.path.push(i.maxOffset),this.position=t,this._visitedParent=i,this.ignoreElementEnd?this._previous():Za("elementEnd",i,e,t));if(i instanceof $a){let r;if(this.singleCharacters)r=1;else{let e=i.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),r=t.offset-e}const o=t.offset-i.startOffset,a=new Ga(i,o-r,r);return t.offset-=r,this.position=t,Za("text",a,e,t,r)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Za("elementStart",n,e,t,1)}}function Za(e,t,n,r,o){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:o}}}class es{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(!e.is("element")&&!e.is("documentFragment"))throw new c.a("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new c.a("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new c.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new c.a("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return ts(this,this.parent)}get nodeAfter(){const e=this.parent;return ns(this,e,ts(this,e))}get nodeBefore(){const e=this.parent;return rs(this,e,ts(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=cr(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;const n=new Ja(t);return n.skip(e),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=cr(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let r=0;for(;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}getShiftedBy(e){const t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){let t=null,n=null;switch(this.compareWith(e)){case"same":return!0;case"before":t=es._createAt(this),n=es._createAt(e);break;case"after":t=es._createAt(e),n=es._createAt(this);break;default:return!1}let r=t.parent;for(;t.path.length+n.path.length;){if(t.isEqual(n))return!0;if(t.path.length>n.path.length){if(t.offset!==r.maxOffset)return!1;t.path=t.path.slice(0,-1),r=r.parent,t.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(e){return"position"===e||"model:position"===e}hasSameParentAs(e){return this.root===e.root&&"same"==cr(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=es._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let n;return t.containsPosition(this)||t.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?es._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}_getTransformedByDeletion(e,t){const n=es._createAt(this);if(this.root!=e.root)return n;if("same"==cr(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;n.offset-=t}}else if("prefix"==cr(e.getParentPath(),this.getParentPath())){const r=e.path.length-1;if(e.offset<=this.path[r]){if(e.offset+t>this.path[r])return null;n.path[r]-=t}}return n}_getTransformedByInsertion(e,t){const n=es._createAt(this);if(this.root!=e.root)return n;if("same"==cr(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=t);else if("prefix"==cr(e.getParentPath(),this.getParentPath())){const r=e.path.length-1;e.offset<=this.path[r]&&(n.path[r]+=t)}return n}_getTransformedByMove(e,t,n){if(t=t._getTransformedByDeletion(e,n),e.isEqual(t))return es._createAt(this);const r=this._getTransformedByDeletion(e,n);return null===r||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):r._getTransformedByInsertion(t,n)}_getCombined(e,t){const n=e.path.length-1,r=es._createAt(t);return r.stickiness=this.stickiness,r.offset=r.offset+this.path[n]-e.offset,r.path=[...r.path,...this.path.slice(n+1)],r}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(e instanceof es)return new es(e.root,e.path,e.stickiness);{const r=e;if("end"==t)t=r.maxOffset;else{if("before"==t)return this._createBefore(r,n);if("after"==t)return this._createAfter(r,n);if(0!==t&&!t)throw new c.a("model-createpositionat-offset-required",[this,e])}if(!r.is("element")&&!r.is("documentFragment"))throw new c.a("model-position-parent-incorrect",[this,e]);const o=r.getPath();return o.push(t),new this(r.root,o,n)}}static _createAfter(e,t){if(!e.parent)throw new c.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new c.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const n=new es(t.graveyard,e.path);return n.stickiness=e.stickiness,n}if(!t.getRoot(e.root))throw new c.a("model-position-fromjson-no-root",t,{rootName:e.root});return new es(t.getRoot(e.root),e.path,e.stickiness)}}function ts(e,t){const n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ns(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function rs(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}class os{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=es._createAt(e),this.end=t?es._createAt(t):es._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Ja({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==cr(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}containsItem(e){const t=es._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}is(e){return"range"===e||"model:range"===e}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new os(this.start,e.start)),this.containsPosition(e.end)&&t.push(new os(e.end,this.end))):t.push(new os(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new os(t,n)}return null}getJoined(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;let r=this.start,o=this.end;return e.start.isBefore(r)&&(r=e.start),e.end.isAfter(o)&&(o=e.end),new os(r,o)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,n=es._createAt(this.start);let r=n.parent;for(;n.path.length>t+1;){const t=r.maxOffset-n.offset;0!==t&&e.push(new os(n,n.getShiftedBy(t))),n.path=n.path.slice(0,-1),n.offset++,r=r.parent}for(;n.path.length<=this.end.path.length;){const t=this.end.path[n.path.length-1],r=t-n.offset;0!==r&&e.push(new os(n,n.getShiftedBy(r))),n.offset=t,n.path.push(0)}return e}getWalker(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Ja(e)}getItems(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){t.boundaries=e,t.ignoreElementEnd=!0;const n=new Ja(t);for(const e of n)yield e.item}()}getPositions(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){t.boundaries=e;const n=new Ja(t);yield n.position;for(const e of n)yield e.nextPosition}()}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new os(this.start,this.end)]}getTransformedByOperations(e){const t=[new os(this.start,this.end)];for(const n of e)for(let e=0;e<t.length;e++){const r=t[e].getTransformedByOperation(n);t.splice(e,1,...r),e+=r.length-1}for(let n=0;n<t.length;n++){const e=t[n];for(let r=n+1;r<t.length;r++){const n=t[r];(e.containsRange(n)||n.containsRange(e)||e.isEqual(n))&&t.splice(r,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.sourcePosition,r=e.howMany,o=e.targetPosition;return this._getTransformedByMove(n,o,r,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new os(t,n)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new os(this.start);let t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)?(e.sourcePosition.isBefore(e.targetPosition)?(t=es._createAt(n),t.offset=0):(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition),new os(t,n)):new os(t,n)}_getTransformedByInsertion(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(e))return[new os(this.start,e),new os(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const n=new os(this.start,this.end);return n.start=n.start._getTransformedByInsertion(e,t),n.end=n.end._getTransformedByInsertion(e,t),[n]}}_getTransformedByMove(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){const r=this.start._getTransformedByMove(e,t,n);return[new os(r)]}const o=os._createFromPositionAndShift(e,n),i=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!r&&(o.containsPosition(this.start)||o.containsPosition(this.end))){const r=this.start._getTransformedByMove(e,t,n),o=this.end._getTransformedByMove(e,t,n);return[new os(r,o)]}let a;const s=this.getDifference(o);let c=null;const l=this.getIntersection(o);if(1==s.length?c=new os(s[0].start._getTransformedByDeletion(e,n),s[0].end._getTransformedByDeletion(e,n)):2==s.length&&(c=new os(this.start,this.end._getTransformedByDeletion(e,n))),a=c?c._getTransformedByInsertion(i,n,null!==l||r):[],l){const e=new os(l.start._getCombined(o.start,i),l.end._getCombined(o.start,i));2==a.length?a.splice(1,0,e):a.push(e)}return a}_getTransformedByDeletion(e,t){let n=this.start._getTransformedByDeletion(e,t),r=this.end._getTransformedByDeletion(e,t);return null==n&&null==r?null:(null==n&&(n=e),null==r&&(r=e),new os(n,r))}static _createFromPositionAndShift(e,t){const n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}static _createIn(e){return new this(es._createAt(e,0),es._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(es._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new c.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort(((e,t)=>e.start.isAfter(t.start)?1:-1));const n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(let o=n-1;e[o].end.isEqual(r.start);o++)r.start=es._createAt(e[o].start);for(let o=n+1;o<e.length&&e[o].start.isEqual(r.end);o++)r.end=es._createAt(e[o].end);return r}static fromJSON(e,t){return new this(es.fromJSON(e.start,t),es.fromJSON(e.end,t))}}class is{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",((e,t)=>{if(t.viewPosition)return;const n=this._modelToViewMapping.get(t.modelPosition.parent);t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((e,t)=>{if(t.modelPosition)return;const n=this.findMappedViewAncestor(t.viewPosition),r=this._viewToModelMapping.get(n),o=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=es._createAt(r,o)}),{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e){const t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e))for(const n of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(n);this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));const r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new os(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new lo(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e){const t={modelPosition:e,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1}).isPhantom};return this.fire("modelToViewPosition",t),t.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const n=new Set;for(const r of t)if(r.is("attributeElement"))for(const e of r.getElementsWithSameId())n.add(e);else n.add(r);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let r=0;for(let o=0;o<t;o++)r+=this.getModelLength(e.getChild(o));return r}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const n of e.getChildren())t+=this.getModelLength(n);return t}}findPositionIn(e,t){let n,r=0,o=0,i=0;if(e.is("$text"))return new co(e,t);for(;o<t;)n=e.getChild(i),r=this.getModelLength(n),o+=r,i++;return o==t?this._moveViewPositionToTextNode(new co(e,i)):this.findPositionIn(n,t-(o-r))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,n=e.nodeAfter;return t instanceof dr?new co(t,t.data.length):n instanceof dr?new co(n,0):e}}Ge(is,d);class as{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=ss(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=ss(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=ss(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e));const n=this._consumable.get(e);if(void 0===n)return null;const r=n.get(t);return void 0===r?null:r}revert(e,t){t=ss(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e));const n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}_getSymbolForTextProxy(e){let t=null;const n=this._textProxyRegistry.get(e.startOffset);if(n){const r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}_addSymbolForTextProxy(e,t,n){const r=Symbol("textProxySymbol");let o,i;return o=this._textProxyRegistry.get(e),o||(o=new Map,this._textProxyRegistry.set(e,o)),i=o.get(t),i||(i=new Map,o.set(t,i)),i.set(n,r),r}}function ss(e){const t=e.split(":");return"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}class cs{constructor(e){this.conversionApi=Object.assign({dispatcher:this},e),this._reconversionEventsMapping=new Map}convertChanges(e,t,n){for(const o of e.getMarkersToRemove())this.convertMarkerRemove(o.name,o.range,n);const r=this._mapChangesWithAutomaticReconversion(e);for(const o of r)"insert"===o.type?this.convertInsert(os._createFromPositionAndShift(o.position,o.length),n):"remove"===o.type?this.convertRemove(o.position,o.length,o.name,n):"reconvert"===o.type?this.reconvertElement(o.element,n):this.convertAttribute(o.range,o.attributeKey,o.attributeOldValue,o.attributeNewValue,n);for(const o of this.conversionApi.mapper.flushUnboundMarkerNames()){const e=t.get(o).getRange();this.convertMarkerRemove(o,e,n),this.convertMarkerAdd(o,e,n)}for(const o of e.getMarkersToAdd())this.convertMarkerAdd(o.name,o.range,n)}convertInsert(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);for(const n of Array.from(e).map(us))this._convertInsertWithAttributes(n);this._clearConversionApi()}convertRemove(e,t,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}convertAttribute(e,t,n,r,o){this.conversionApi.writer=o,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);for(const i of e){const e={item:i.item,range:os._createFromPositionAndShift(i.previousPosition,i.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:"+t,e)}this._clearConversionApi()}reconvertElement(e,t){const n=os._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);const r=this.conversionApi.mapper,o=r.toViewElement(e);t.remove(o),this._convertInsertWithAttributes({item:e,range:n});const i=r.toViewElement(e);for(const a of os._createIn(e)){const{item:e}=a,n=ds(e,r);n?n.root!==i.root&&t.move(t.createRangeOn(n),r.toViewPosition(es._createBefore(e))):this._convertInsertWithAttributes(us(a))}r.unbindViewElement(o),this._clearConversionApi()}convertSelection(e,t,n){const r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,r),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){for(const t of r){const n=t.getRange();if(!ls(e.getFirstPosition(),t,this.conversionApi.mapper))continue;const r={item:e,markerName:t.name,markerRange:n};this.conversionApi.consumable.test(e,"addMarker:"+t.name)&&this.fire("addMarker:"+t.name,r,this.conversionApi)}for(const t of e.getAttributeKeys()){const n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.conversionApi.consumable.test(e,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerAdd(e,t,n){if("$graveyard"==t.root.rootName)return;this.conversionApi.writer=n;const r="addMarker:"+e,o=new as;if(o.add(t,r),this.conversionApi.consumable=o,this.fire(r,{markerName:e,markerRange:t},this.conversionApi),o.test(t,r)){this.conversionApi.consumable=this._createConsumableForRange(t,r);for(const n of t.getItems()){if(!this.conversionApi.consumable.test(n,r))continue;const o={item:n,range:os._createOn(n),markerName:e,markerRange:t};this.fire(r,o,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerRemove(e,t,n){"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}_mapReconversionTriggerEvent(e,t){this._reconversionEventsMapping.set(t,e)}_createInsertConsumable(e){const t=new as;for(const n of e){const e=n.item;t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}return t}_createConsumableForRange(e,t){const n=new as;for(const r of e.getItems())n.add(r,t);return n}_createSelectionConsumable(e,t){const n=new as;n.add(e,"selection");for(const r of t)n.add(e,"addMarker:"+r.name);for(const r of e.getAttributeKeys())n.add(e,"attribute:"+r);return n}_testAndFire(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){const n=t.item.name||"$text";return"".concat(e,":").concat(n)}(e,t),t,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}_convertInsertWithAttributes(e){this._testAndFire("insert",e);for(const t of e.item.getAttributeKeys())e.attributeKey=t,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(t),this._testAndFire("attribute:"+t,e)}_mapChangesWithAutomaticReconversion(e){const t=new Set,n=[];for(const r of e.getChanges()){const e=r.position||r.range.start,o=e.parent;if(ts(e,o)){n.push(r);continue}const i="attribute"===r.type?ns(e,o,null):o;if(i.is("$text")){n.push(r);continue}let a;if(a="attribute"===r.type?"attribute:".concat(r.attributeKey,":").concat(i.name):"".concat(r.type,":").concat(r.name),this._isReconvertTriggerEvent(a,i.name)){if(t.has(i))continue;t.add(i),n.push({type:"reconvert",element:i})}else n.push(r)}return n}_isReconvertTriggerEvent(e,t){return this._reconversionEventsMapping.get(e)===t}}function ls(e,t,n){const r=t.getRange(),o=Array.from(e.getAncestors());return o.shift(),o.reverse(),!o.some((e=>{if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function us(e){return{item:e.item,range:os._createFromPositionAndShift(e.previousPosition,e.length)}}function ds(e,t){if(e.is("textProxy")){const n=t.toViewPosition(es._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}Ge(cs,d);class fs{constructor(e,t,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e&&this.setTo(e,t,n)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const r of e._ranges)if(t.isEqual(r)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new os(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new os(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new os(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(e,t,n){if(null===e)this._setRanges([]);else if(e instanceof fs)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof os)this._setRanges([e],!!t&&!!t.backward);else if(e instanceof es)this._setRanges([new os(e)]);else if(e instanceof qa){const r=!!n&&!!n.backward;let o;if("in"==t)o=os._createIn(e);else if("on"==t)o=os._createOn(e);else{if(void 0===t)throw new c.a("model-selection-setto-required-second-parameter",[this,e]);o=new os(es._createAt(e,t))}this._setRanges([o],r)}else{if(!Jn(e))throw new c.a("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,t&&!!t.backward)}}_setRanges(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(e=Array.from(e)).some((t=>{if(!(t instanceof os))throw new c.a("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every((e=>!e.isEqual(t)))}));if(e.length!==this._ranges.length||n){this._removeAllRanges();for(const t of e)this._pushRange(t);this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0})}}setFocus(e,t){if(null===this.anchor)throw new c.a("model-selection-setfocus-no-ranges",[this,e]);const n=es._createAt(e,t);if("same"==n.compareWith(this.focus))return;const r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new os(n,r)),this._lastRangeBackward=!0):(this._pushRange(new os(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(e){return"selection"===e||"model:selection"===e}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const n=ms(t.start,e);n&&gs(n,t)&&(yield n);for(const o of t.getWalker()){const n=o.item;"elementEnd"==o.type&&ps(n,e,t)&&(yield n)}const r=ms(t.end,e);r&&!t.end.isTouching(es._createAt(r,0))&&gs(r,t)&&(yield r)}}containsEntireContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root;const t=es._createAt(e,0),n=es._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new os(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new c.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function hs(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function ps(e,t,n){return hs(e,t)&&gs(e,n)}function ms(e,t){const n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let o=!1;const i=r.find((e=>!o&&(o=n.isLimit(e),!o&&hs(e,t))));return r.forEach((e=>t.add(e))),i}function gs(e,t){const n=function(e){const t=e.root.document.model.schema;let n=e.parent;for(;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(os._createOn(n),!0)}Ge(fs,d);class bs extends os{constructor(e,t){super(e,t),vs.call(this)}detach(){this.stopListening()}is(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}toRange(){return new os(this.start,this.end)}static fromRange(e){return new bs(e.start,e.end)}}function vs(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&ys.call(this,n)}),{priority:"low"})}function ys(e){const t=this.getTransformedByOperation(e),n=os._createFromRanges(t),r=!n.isEqual(this),o=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let i=null;if(r){"$graveyard"==n.root.rootName&&(i="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",t,{deletionPosition:i})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:i})}Ge(bs,d);class ws{constructor(e){this._selection=new ks(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}is(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return"selection:"+e}static _isStoreAttributeKey(e){return e.startsWith("selection:")}}Ge(ws,d);class ks extends fs{constructor(e){super(),this.markers=new Zn({idProperty:"name"}),this._model=e.model,this._document=e,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const e of this.getRanges())if(!this._document._validateSelectionRange(e))throw new c.a("document-selection-wrong-position",this,{range:e})})),this.listenTo(this._model.markers,"update",((e,t,n,r)=>{this._updateMarker(t,r)})),this.listenTo(this._document,"change",((e,t)=>{!function(e,t){const n=e.document.differ;for(const r of n.getChanges()){if("insert"!=r.type)continue;const n=r.position.parent;r.length===n.maxOffset&&e.enqueueChange(t,(e=>{const t=Array.from(n.getAttributeKeys()).filter((e=>e.startsWith("selection:")));for(const r of t)e.removeAttribute(r,n)}))}}(this._model,t)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(e,t,n){super.setTo(e,t,n),this._updateAttributes(!0),this._updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this._updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=a();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new c.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this._updateMarkers()}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=bs.fromRange(e);return t.on("change:range",((e,n,r)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}})),t}_updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const r of this._model.markers){const t=r.name.split(":",1)[0];if(!this._observedMarkers.has(t))continue;const n=r.getRange();for(const o of this.getRanges())n.containsRange(o,!o.isCollapsed)&&e.push(r)}const n=Array.from(this.markers);for(const r of e)this.markers.has(r)||(this.markers.add(r),t=!0);for(const r of Array.from(this.markers))e.includes(r)||(this.markers.remove(r),t=!0);t&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(e,t){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let r=!1;const o=Array.from(this.markers),i=this.markers.has(e);if(t){let n=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){n=!0;break}n&&!i?(this.markers.add(e),r=!0):!n&&i&&(this.markers.remove(e),r=!0)}else i&&(this.markers.remove(e),r=!0);r&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(e){const t=hr(this._getSurroundingAttributes()),n=hr(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[o,i]of this._attributePriority)"low"==i&&(this._attrs.delete(o),this._attributePriority.delete(o));this._setAttributesTo(t);const r=[];for(const[o,i]of this.getAttributes())n.has(o)&&n.get(o)===i||r.push(o);for(const[o]of n)this.hasAttribute(o)||r.push(o);r.length>0&&this.fire("change:attribute",{attributeKeys:r,directChange:!1})}_setAttribute(e,t){const n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"low":"normal";return("low"!=n||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,n),!0)}_removeAttribute(e){const t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"low":"normal";return("low"!=t||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,t),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[n,r]of this.getAttributes())e.get(n)!==r&&this._removeAttribute(n,!1);for(const[n,r]of e)this._setAttribute(n,r,!1)&&t.add(n);return t}*_getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith("selection:")){const n=t.substr(10);yield[n,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;let n=null;if(this.isCollapsed){const r=e.textNode?e.textNode:e.nodeBefore,o=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=_s(r)),n||(n=_s(o)),!this.isGravityOverridden&&!n){let e=r;for(;e&&!t.isInline(e)&&!n;)e=e.previousSibling,n=_s(e)}if(!n){let e=o;for(;e&&!t.isInline(e)&&!n;)e=e.nextSibling,n=_s(e)}n||(n=this._getStoredAttributes())}else{const e=this.getFirstRange();for(const r of e){if(r.item.is("element")&&t.isObject(r.item))break;if("text"==r.type){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function _s(e){return e instanceof Ga||e instanceof $a?e.getAttributes():null}class Os{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}var xs=function(e){return Yn(e,5)};class Cs extends Os{elementToElement(e){return this.add(function(e){return(e=xs(e)).view=Ss(e.view,"container"),t=>{var n;if(t.on("insert:"+e.model,(n=e.view,(e,t,r)=>{const o=n(t.item,r);if(!o)return;if(!r.consumable.consume(t.item,"insert"))return;const i=r.mapper.toViewPosition(t.range.start);r.mapper.bindElements(t.item,o),r.writer.insert(i,o)}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes)for(const n of e.triggerBy.attributes)t._mapReconversionTriggerEvent(e.model,"attribute:".concat(n,":").concat(e.model));if(e.triggerBy.children)for(const n of e.triggerBy.children)t._mapReconversionTriggerEvent(e.model,"insert:"+n),t._mapReconversionTriggerEvent(e.model,"remove:"+n)}}}(e))}attributeToElement(e){return this.add(function(e){let t="attribute:"+((e=xs(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const r of e.model.values)e.view[r]=Ss(e.view[r],"attribute");else e.view=Ss(e.view,"attribute");const n=Ps(e);return r=>{r.on(t,function(e){return(t,n,r)=>{const o=e(n.attributeOldValue,r),i=e(n.attributeNewValue,r);if(!o&&!i)return;if(!r.consumable.consume(n.item,t.name))return;const a=r.writer,s=a.document.selection;if(n.item instanceof fs||n.item instanceof ws)a.wrap(s.getFirstRange(),i);else{let e=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&o&&(e=a.unwrap(e,o)),null!==n.attributeNewValue&&i&&a.wrap(e,i)}}}(n),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t="attribute:"+((e=xs(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const r of e.model.values)e.view[r]=Ts(e.view[r]);else e.view=Ts(e.view);const n=Ps(e);return r=>{var o;r.on(t,(o=n,(e,t,n)=>{const r=o(t.attributeOldValue,n),i=o(t.attributeNewValue,n);if(!r&&!i)return;if(!n.consumable.consume(t.item,e.name))return;const a=n.mapper.toViewElement(t.item),s=n.writer;if(!a)throw new c.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&r)if("class"==r.key){const e=tr(r.value);for(const t of e)s.removeClass(t,a)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)s.removeStyle(t,a)}else s.removeAttribute(r.key,a);if(null!==t.attributeNewValue&&i)if("class"==i.key){const e=tr(i.value);for(const t of e)s.addClass(t,a)}else if("style"==i.key){const e=Object.keys(i.value);for(const t of e)s.setStyle(t,i.value[t],a)}else s.setAttribute(i.key,i.value,a)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){return(e=xs(e)).view=Ss(e.view,"ui"),t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,r)=>{t.isOpening=!0;const o=n(t,r);t.isOpening=!1;const i=n(t,r);if(!o||!i)return;const a=t.markerRange;if(a.isCollapsed&&!r.consumable.consume(a,e.name))return;for(const n of a)if(!r.consumable.consume(n.item,e.name))return;const s=r.mapper,c=r.writer;c.insert(s.toViewPosition(a.start),o),r.mapper.bindElementToMarker(o,t.markerName),a.isCollapsed||(c.insert(s.toViewPosition(a.end),i),r.mapper.bindElementToMarker(i,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,(e,t,n)=>{const r=n.mapper.markerNameToElements(t.markerName);if(r){for(const e of r)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,r)=>{if(!t.item)return;if(!(t.item instanceof fs||t.item instanceof ws||t.item.is("$textProxy")))return;const o=Ns(n,t,r);if(!o)return;if(!r.consumable.consume(t.item,e.name))return;const i=r.writer,a=Es(i,o),s=i.document.selection;if(t.item instanceof fs||t.item instanceof ws)i.wrap(s.getFirstRange(),a,s);else{const e=r.mapper.toViewRange(t.range),n=i.wrap(e,a);for(const o of n.getItems())if(o.is("attributeElement")&&o.isSimilar(a)){r.mapper.bindElementToMarker(o,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return(t,n,r)=>{if(!n.item)return;if(!(n.item instanceof Xa))return;const o=Ns(e,n,r);if(!o)return;if(!r.consumable.test(n.item,t.name))return;const i=r.mapper.toViewElement(n.item);if(i&&i.getCustomProperty("addHighlight")){r.consumable.consume(n.item,t.name);for(const e of os._createIn(n.item))r.consumable.consume(e.item,t.name);i.getCustomProperty("addHighlight")(i,o,r.writer),r.mapper.bindElementToMarker(i,n.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return(t,n,r)=>{if(n.markerRange.isCollapsed)return;const o=Ns(e,n,r);if(!o)return;const i=Es(r.writer,o),a=r.mapper.markerNameToElements(n.markerName);if(a){for(const e of a)r.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(e),i):e.getCustomProperty("removeHighlight")(e,o.id,r.writer);r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){const t=(e=xs(e)).model;return e.view||(e.view=n=>({group:t,name:n.substr(e.model.length+1)})),n=>{var r;n.on("addMarker:"+t,(r=e.view,(e,t,n)=>{const o=r(t.markerName,n);if(!o)return;const i=t.markerRange;n.consumable.consume(i,e.name)&&(js(i,!1,n,t,o),js(i,!0,n,t,o),e.stop())}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return(t,n,r)=>{const o=e(n.markerName,r);if(!o)return;const i=r.mapper.markerNameToElements(n.markerName);if(i){for(const e of i)r.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("containerElement")?(a("data-".concat(o.group,"-start-before"),e),a("data-".concat(o.group,"-start-after"),e),a("data-".concat(o.group,"-end-before"),e),a("data-".concat(o.group,"-end-after"),e)):r.writer.clear(r.writer.createRangeOn(e),e);r.writer.clearClonedElementsGroup(n.markerName),t.stop()}function a(e,t){if(t.hasAttribute(e)){const n=new Set(t.getAttribute(e).split(","));n.delete(o.name),0==n.size?r.writer.removeAttribute(e,t):r.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}function Es(e,t){const n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),"number"==typeof t.priority&&(n._priority=t.priority),n._id=t.id,n}function js(e,t,n,r,o){const i=t?e.start:e.end,a=i.nodeAfter&&i.nodeAfter.is("element")?i.nodeAfter:null,s=i.nodeBefore&&i.nodeBefore.is("element")?i.nodeBefore:null;if(a||s){let e,i;t&&a||!t&&!s?(e=a,i=!0):(e=s,i=!1);const c=n.mapper.toViewElement(e);if(c)return void function(e,t,n,r,o,i){const a="data-".concat(i.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(i.name),r.writer.setAttribute(a,s.join(","),e),r.mapper.bindElementToMarker(e,o.markerName)}(c,t,i,n,r,o)}!function(e,t,n,r,o){const i="".concat(o.group,"-").concat(t?"start":"end"),a=o.name?{name:o.name}:null,s=n.writer.createUIElement(i,a);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,r.markerName)}(n.mapper.toViewPosition(i),t,n,r,o)}function Ss(e,t){return"function"==typeof e?e:(n,r)=>function(e,t,n){let r;"string"==typeof e&&(e={name:e});const o=t.writer,i=Object.assign({},e.attributes);if("container"==n)r=o.createContainerElement(e.name,i);else if("attribute"==n){const t={priority:e.priority||Oo.DEFAULT_PRIORITY};r=o.createAttributeElement(e.name,i,t)}else r=o.createUIElement(e.name,i);if(e.styles){const t=Object.keys(e.styles);for(const n of t)o.setStyle(n,e.styles[n],r)}if(e.classes){const t=e.classes;if("string"==typeof t)o.addClass(t,r);else for(const e of t)o.addClass(e,r)}return r}(e,r,t)}function Ps(e){return e.model.values?(t,n)=>{const r=e.view[t];return r?r(t,n):null}:e.view}function Ts(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function Ns(e,t,n){const r="function"==typeof e?e(t,n):e;return r?(r.priority||(r.priority=10),r.id||(r.id=t.markerName),r):null}function As(e){const{schema:t,document:n}=e.model;for(const r of n.getRootNames()){const o=n.getRoot(r);if(o.isEmpty&&!t.checkChild(o,"$text")&&t.checkChild(o,"paragraph"))return e.insertElement("paragraph",o),!0}return!1}function Ms(e,t,n){const r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function Rs(e,t){const n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}class Is extends Os{elementToElement(e){return this.add(Ds(e))}elementToAttribute(e){return this.add(function(e){Fs(e=xs(e));const t=Vs(e,!1),n=Ls(e.view),r=n?"element:"+n:"element";return n=>{n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=null;("string"==typeof(e=xs(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let n;return n="class"==t||"style"==t?{["class"==t?"classes":"styles"]:e.view.value}:{attributes:{[t]:void 0===e.view.value?/[\s\S]*/:e.view.value}},e.view.name&&(n.name=e.view.name),e.view=n,t}(e)),Fs(e,t);const n=Vs(e,!0);return t=>{t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){return function(e){const t=e.model;e.model=(e,n)=>{const r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(e=xs(e)),Ds(e)}(e))}dataToMarker(e){return this.add(function(e){(e=xs(e)).model||(e.model=t=>t?e.view+":"+t:e.view);const t=zs(Bs(e,"start")),n=zs(Bs(e,"end"));return r=>{r.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),r.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});const o=s.get("low"),i=s.get("highest"),a=s.get(e.converterPriority)/i;r.on("element",function(e){return(t,n,r)=>{const o="data-"+e.view;function i(t,o){for(const i of o){const o=e.model(i,r),a=r.writer.createElement("$marker",{"data-name":o});r.writer.insert(a,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}(r.consumable.test(n.viewItem,{attributes:o+"-end-after"})||r.consumable.test(n.viewItem,{attributes:o+"-start-after"})||r.consumable.test(n.viewItem,{attributes:o+"-end-before"})||r.consumable.test(n.viewItem,{attributes:o+"-start-before"}))&&(n.modelRange||Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor)),r.consumable.consume(n.viewItem,{attributes:o+"-end-after"})&&i(n.modelRange.end,n.viewItem.getAttribute(o+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:o+"-start-after"})&&i(n.modelRange.end,n.viewItem.getAttribute(o+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:o+"-end-before"})&&i(n.modelRange.start,n.viewItem.getAttribute(o+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:o+"-start-before"})&&i(n.modelRange.start,n.viewItem.getAttribute(o+"-start-before").split(",")))}}(e),{priority:o+a})}}(e))}}function Ds(e){const t=zs(e=xs(e)),n=Ls(e.view),r=n?"element:"+n:"element";return n=>{n.on(r,t,{priority:e.converterPriority||"normal"})}}function Ls(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function zs(e){const t=new pr(e.view);return(n,r,o)=>{const i=t.match(r.viewItem);if(!i)return;const a=i.match;if(a.name=!0,!o.consumable.test(r.viewItem,a))return;const s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,o);s&&o.safeInsert(s,r.modelCursor)&&(o.consumable.consume(r.viewItem,a),o.convertChildren(r.viewItem,s),o.updateConversionResult(s,r))}}function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=null===t||(e=>e.getAttribute(t)),r="object"!=typeof e.model?e.model:e.model.key,o="object"!=typeof e.model||void 0===e.model.value?n:e.model.value;e.model={key:r,value:o}}function Vs(e,t){const n=new pr(e.view);return(r,o,i)=>{const a=n.match(o.viewItem);if(!a)return;if(function(e,t){const n="function"==typeof e?e(t):e;return!("object"==typeof n&&!Ls(n))&&!n.classes&&!n.attributes&&!n.styles}(e.view,o.viewItem)?a.match.name=!0:delete a.match.name,!i.consumable.test(o.viewItem,a.match))return;const s=e.model.key,c="function"==typeof e.model.value?e.model.value(o.viewItem,i):e.model.value;null!==c&&(o.modelRange||Object.assign(o,i.convertChildren(o.viewItem,o.modelCursor)),function(e,t,n,r){let o=!1;for(const i of Array.from(e.getItems({shallow:n})))r.schema.checkAttribute(i,t.key)&&(o=!0,i.hasAttribute(t.key)||r.writer.setAttribute(t.key,t.value,i));return o}(o.modelRange,{key:s,value:c},t,i)&&i.consumable.consume(o.viewItem,a.match))}}function Bs(e,t){const n={};return n.view=e.view+"-"+t,n.model=(t,n)=>{const r=t.getAttribute("name"),o=e.model(r,n);return n.writer.createElement("$marker",{"data-name":o})},n}class Hs{constructor(e,t){this.model=e,this.view=new Ya(t),this.mapper=new is,this.downcastDispatcher=new cs({mapper:this.mapper,schema:e.schema});const n=this.model.document,r=n.selection,o=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((e=>{this.downcastDispatcher.convertChanges(n.differ,o,e),this.downcastDispatcher.convertSelection(r,o,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(n,r)=>{const o=r.newSelection,i=[];for(const e of o.getRanges())i.push(t.toModelRange(e));const a=e.createSelection(i,{backward:o.isBackward});a.isEqual(e.document.selection)||e.change((e=>{e.setSelection(a)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",((e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const r=n.writer,o=n.mapper.toViewPosition(t.range.start),i=r.createText(t.item.data);r.insert(o,i)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((e,t,n)=>{const r=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),i=n.mapper.toViewPosition(o,{isPhantom:!0}),a=n.writer.createRange(r,i),s=n.writer.remove(a.getTrimmed());for(const c of n.writer.createRangeIn(s).getItems())n.mapper.unbindViewElement(c)}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const r=n.writer,o=r.document.selection;for(const i of o.getRanges())i.isCollapsed&&i.end.parent.isAttached()&&n.writer.mergeAttributes(i.start);r.setSelection(null)}),{priority:"high"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const r=t.selection;if(r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const o=[];for(const i of r.getRanges()){const e=n.mapper.toViewRange(i);o.push(e)}n.writer.setSelection(o,{backward:r.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const r=t.selection;if(!r.isCollapsed)return;if(!n.consumable.consume(r,"selection"))return;const o=n.writer,i=r.getFirstPosition(),a=n.mapper.toViewPosition(i),s=o.breakAttributes(a);o.setSelection(s)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((e=>{if("$graveyard"==e.rootName)return null;const t=new ao(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t}))}destroy(){this.view.destroy(),this.stopListening()}}Ge(Hs,We);class Ws{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e){const t=this.get(e);if(!t)throw new c.a("commandcollection-command-not-found",this,{commandName:e});for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.execute(...r)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class Us{constructor(){this._consumables=new Map}add(e,t){let n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ks(e),this._consumables.set(e,n)),n.add(t))}test(e,t){const n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},n=e.getAttributeKeys();for(const i of n)"style"!=i&&"class"!=i&&t.attributes.push(i);const r=e.getClassNames();for(const i of r)t.classes.push(i);const o=e.getStyleNames();for(const i of o)t.styles.push(i);return t}static createFrom(e,t){if(t||(t=new Us(e)),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,Us.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const n of e.getChildren())t=Us.createFrom(n,t);return t}}class Ks{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t in this._consumables)if(t in e){const n=this._test(t,e[t]);if(!0!==n)return n}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t in this._consumables)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._revert(t,e[t])}_add(e,t){const n=we(t)?t:[t],r=this._consumables[e];for(const o of n){if("attributes"===e&&("class"===o||"style"===o))throw new c.a("viewconsumable-invalid-attribute",this);if(r.set(o,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(o))r.set(e,!0)}}_test(e,t){const n=we(t)?t:[t],r=this._consumables[e];for(const o of n)if("attributes"!==e||"class"!==o&&"style"!==o){const e=r.get(o);if(void 0===e)return null;if(!e)return!1}else{const e="class"==o?"classes":"styles",t=this._test(e,[...this._consumables[e].keys()]);if(!0!==t)return t}return!0}_consume(e,t){const n=we(t)?t:[t],r=this._consumables[e];for(const o of n)if("attributes"!==e||"class"!==o&&"style"!==o){if(r.set(o,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(o))r.set(e,!1)}else{const e="class"==o?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const n=we(t)?t:[t],r=this._consumables[e];for(const o of n)if("attributes"!==e||"class"!==o&&"style"!==o)!1===r.get(o)&&r.set(o,!0);else{const e="class"==o?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class Ys{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((e,t)=>{t[0]=new qs(t[0])}),{priority:"highest"}),this.on("checkChild",((e,t)=>{t[0]=new qs(t[0]),t[1]=this.getDefinition(t[1])}),{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new c.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new c.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}checkMerge(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof es){const t=e.nodeBefore,n=e.nodeAfter;if(!(t instanceof Xa))throw new c.a("schema-check-merge-no-element-before",this);if(!(n instanceof Xa))throw new c.a("schema-check-merge-no-element-after",this);return this.checkMerge(t,n)}for(const n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e){this.on("checkChild",((t,n)=>{let[r,o]=n;if(!o)return;const i=e(r,o);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",((t,n)=>{let[r,o]=n;const i=e(r,o);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof es?e.parent:(e instanceof os?[e]:Array.from(e.getRanges())).reduce(((e,t)=>{const n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const n=[...e.getFirstPosition().getAncestors(),new $a("",e.getAttributes())];return this.checkAttribute(n,t)}{const n=e.getRanges();for(const e of n)for(const n of e)if(this.checkAttribute(n.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const n of e)yield*this._getValidRangesForRange(n,t)}getNearestSelectionRange(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new os(e);const o=e.getAncestors().reverse().find((e=>this.isLimit(e)))||e.root;"both"!=r&&"backward"!=r||(t=new Ja({boundaries:os._createIn(o),startPosition:e,direction:"backward"})),"both"!=r&&"forward"!=r||(n=new Ja({boundaries:os._createIn(o),startPosition:e}));for(const i of function*(e,t){let n=!1;for(;!n;){if(n=!0,e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}(t,n)){const e=i.walker==t?"elementEnd":"elementStart",n=i.value;if(n.type==e&&this.isObject(n.item))return os._createOn(n.item);if(this.checkChild(n.nextPosition,"$text"))return new os(n.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}removeDisallowedAttributes(e,t){for(const n of e)if(n.is("$text"))ac(this,n,t);else{const e=os._createIn(n).getPositions();for(const n of e)ac(this,n.nodeBefore||n.parent,t)}}createContext(e){return new qs(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,n=Object.keys(t);for(const r of n)e[r]=$s(t[r],r);for(const r of n)Gs(e,r);for(const r of n)Qs(e,r);for(const r of n)Xs(e,r);for(const r of n)Js(e,r),Zs(e,r);for(const r of n)ec(e,r),tc(e,r),nc(e,r);this._compiledDefinitions=e}_checkContextMatch(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1;const r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;{const e=this.getDefinition(r);return this._checkContextMatch(e,t,n-1)}}return!1}*_getValidRangesForRange(e,t){let n=e.start,r=e.start;for(const o of e.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(os._createIn(o),t)),this.checkAttribute(o,t)||(n.isEqual(r)||(yield new os(n,r)),n=es._createAfter(o)),r=es._createAfter(o);n.isEqual(r)||(yield new os(n,r))}}Ge(Ys,We);class qs{constructor(e){if(e instanceof qs)return e;"string"==typeof e?e=[e]:Array.isArray(e)||(e=e.getAncestors({includeSelf:!0})),this._items=e.map(ic)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new qs([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map((e=>e.name))}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function $s(e,t){const n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const n of e){const e=Object.keys(n).filter((e=>e.startsWith("is")));for(const r of e)t[r]=n[r]}}(e,n),rc(e,n,"allowIn"),rc(e,n,"allowContentOf"),rc(e,n,"allowWhere"),rc(e,n,"allowAttributes"),rc(e,n,"allowAttributesOf"),rc(e,n,"allowChildren"),rc(e,n,"inheritTypesFrom"),function(e,t){for(const n of e){const e=n.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,n),n}function Gs(e,t){const n=e[t];for(const r of n.allowChildren){const n=e[r];n&&n.allowIn.push(t)}n.allowChildren.length=0}function Qs(e,t){for(const n of e[t].allowContentOf)e[n]&&oc(e,n).forEach((e=>{e.allowIn.push(t)}));delete e[t].allowContentOf}function Xs(e,t){for(const n of e[t].allowWhere){const r=e[n];if(r){const n=r.allowIn;e[t].allowIn.push(...n)}}delete e[t].allowWhere}function Js(e,t){for(const n of e[t].allowAttributesOf){const r=e[n];if(r){const n=r.allowAttributes;e[t].allowAttributes.push(...n)}}delete e[t].allowAttributesOf}function Zs(e,t){const n=e[t];for(const r of n.inheritTypesFrom){const t=e[r];if(t){const e=Object.keys(t).filter((e=>e.startsWith("is")));for(const r of e)r in n||(n[r]=t[r])}}delete n.inheritTypesFrom}function ec(e,t){const n=e[t],r=n.allowIn.filter((t=>e[t]));n.allowIn=Array.from(new Set(r))}function tc(e,t){const n=e[t];for(const r of n.allowIn)e[r].allowChildren.push(t)}function nc(e,t){const n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function rc(e,t,n){for(const r of e)"string"==typeof r[n]?t[n].push(r[n]):Array.isArray(r[n])&&t[n].push(...r[n])}function oc(e,t){const n=e[t];return(r=e,Object.keys(r).map((e=>r[e]))).filter((e=>e.allowIn.includes(n.name)));var r}function ic(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function ac(e,t,n){for(const r of t.getAttributeKeys())e.checkAttribute(t,r)||n.removeAttribute(r,t)}class sc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},e),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){let n;for(const r of new qs(e)){const e={};for(const t of r.getAttributeKeys())e[t]=r.getAttribute(t);const o=t.createElement(r.name,e);n&&t.append(o,n),n=es._createAt(o,0)}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Us.createFrom(e),this.conversionApi.store={};const{modelRange:r}=this._convertItem(e,this._modelCursor),o=t.createDocumentFragment();if(r){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,o);o.markers=function(e,t){const n=new Set,r=new Map,o=os._createIn(e).getItems();for(const i of o)"$marker"==i.name&&n.add(i);for(const i of n){const e=i.getAttribute("data-name"),n=t.createPositionBefore(i);r.has(e)?r.get(e).end=n.clone():r.set(e,new os(n.clone())),t.remove(i)}return r}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_convertItem(e,t){const n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof os))throw new c.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){let n=t.is("position")?t:es._createAt(t,0);const r=new os(n);for(const o of Array.from(e.getChildren())){const e=this._convertItem(o,n);e.modelRange instanceof os&&(r.end=e.modelRange.end,n=e.modelCursor)}return{modelRange:r,modelCursor:n}}_safeInsert(e,t){const n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}_updateConversionResult(e,t){const n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||(t.modelRange=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1])));const o=this._cursorParents.get(e);t.modelCursor=o?r.createPositionAt(o,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:n,writer:r}=this.conversionApi;let o=n.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Ms(t,e,n)?{position:Rs(t,r)}:null;const i=this.conversionApi.writer.split(t,o),a=[];for(const c of i.range.getWalker())if("elementEnd"==c.type)a.push(c.item);else{const e=a.pop(),t=c.item;this._registerSplitPair(e,t)}const s=i.range.end.parent;return this._cursorParents.set(e,s),{position:i.position,cursorParent:s}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}Ge(sc,d);class cc{getHtml(e){const t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class lc{constructor(e){this._domParser=new DOMParser,this._domConverter=new ji(e,{blockFillerMode:"nbsp"}),this._htmlWriter=new cc}toData(e){const t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this._domConverter.domToView(t)}registerRawContentMatcher(e){this._domConverter.registerRawContentMatcher(e)}useFillerType(e){this._domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){const t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment();let r=t.firstChild;for(;!r.isSameNode(t.documentElement);){const e=r;r=r.nextSibling,e.nodeType==Node.COMMENT_NODE&&n.appendChild(e)}const o=t.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n}}class uc{constructor(e,t){this.model=e,this.mapper=new is,this.downcastDispatcher=new cs({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",((e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const r=n.writer,o=n.mapper.toViewPosition(t.range.start),i=r.createText(t.item.data);r.insert(o,i)}),{priority:"lowest"}),this.upcastDispatcher=new sc({schema:e.schema}),this.viewDocument=new _o(t),this.stylesProcessor=t,this.htmlProcessor=new lc(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Ko(this.viewDocument),this.upcastDispatcher.on("text",((e,t,n)=>{let{schema:r,consumable:o,writer:i}=n,a=t.modelCursor;if(!o.test(t.viewItem))return;if(!r.checkChild(a,"$text")){if(!Ms(a,"$text",r))return;a=Rs(a,i)}o.consume(t.viewItem);const s=i.createText(t.viewItem.data);i.insert(s,a),t.modelRange=i.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:r}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=r}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:r}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=r}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange("transparent",As)}),{priority:"lowest"})}get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootName:t="main",trim:n="empty"}=e;if(!this._checkIfRootsExists([t]))throw new c.a("datacontroller-get-non-existent-root",this);const r=this.model.document.getRoot(t);return"empty"!==n||this.model.hasContent(r,{ignoreWhitespaces:!0})?this.stringify(r,e):""}stringify(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.toView(e,t);return this.processor.toData(n)}toView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();const o=os._createIn(e),i=new Uo(n);this.mapper.bindElements(e,i),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(o,r);const a=e.is("documentFragment")?Array.from(e.markers):function(e){const t=[],n=e.root.document;if(!n)return[];const r=os._createIn(e);for(const o of n.model.markers){const e=o.getRange(),n=e.isCollapsed,i=e.start.isEqual(r.start)||e.end.isEqual(r.end);if(n&&i)t.push([o.name,e]);else{const n=r.getIntersection(e);n&&t.push([o.name,n])}}return t}(e);for(const[s,c]of a)this.downcastDispatcher.convertMarkerAdd(s,c,r);return delete this.downcastDispatcher.conversionApi.options,i}init(e){if(this.model.document.version)throw new c.a("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new c.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(e=>{for(const n of Object.keys(t)){const r=this.model.document.getRoot(n);e.insert(this.parse(t[n],r),r,0)}})),Promise.resolve()}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new c.a("datacontroller-set-non-existent-root",this);const r=t.batchType||"default";this.model.enqueueChange(r,(e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(n)){const r=this.model.document.getRoot(t);e.remove(e.createRangeIn(r)),e.insert(this.parse(n[t],r),r,0)}}))}parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";const n=this.processor.toView(e);return this.toModel(n,t)}toModel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((n=>this.upcastDispatcher.convert(e,n,t)))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRootNames().includes(t))return!1;return!0}}Ge(uc,We);class dc{constructor(e,t){this._helpers=new Map,this._downcast=tr(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=tr(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new c.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new c.a("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:n}of fc(e))this.for("upcast").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:n}of fc(e))this.for("upcast").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:n}of fc(e))this.for("upcast").attributeToAttribute({view:n,model:t})}_createConversionHelpers(e){let{name:t,dispatchers:n,isDowncast:r}=e;if(this._helpers.has(t))throw new c.a("conversion-group-exists",this);const o=r?new Cs(n):new Is(n);this._helpers.set(t,o)}}function*fc(e){if(e.model.values)for(const t of e.model.values){const n={key:e.model.key,value:t},r=e.view[t],o=e.upcastAlso?e.upcastAlso[t]:void 0;yield*hc(n,r,o)}else yield*hc(e.model,e.view,e.upcastAlso)}function*hc(e,t,n){if(yield{model:e,view:t},n)for(const r of tr(n))yield{model:e,view:r}}class pc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.operations=[],this.type=e}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class mc{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e){return new this(e.baseVersion)}}class gc{constructor(e){this.markers=new Map,this._children=new Qa,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"model:documentFragment"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const n of e)n.name?t.push(Xa.fromJSON(n)):t.push($a.fromJSON(n));return new gc(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new $a(e)]:(Jn(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new $a(e):e instanceof Ga?new $a(e.data,e.getAttributes()):e)))}(t);for(const r of n)null!==r.parent&&r._remove(),r.parent=this;this._children._insertNodes(e,n)}_removeChildren(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this._children._removeNodes(e,t);for(const r of n)r.parent=null;return n}}function bc(e,t){const n=(t=wc(t)).reduce(((e,t)=>e+t.offsetSize),0),r=e.parent;_c(e);const o=e.index;return r._insertChild(o,t),kc(r,o+t.length),kc(r,o),new os(e,e.getShiftedBy(n))}function vc(e){if(!e.isFlat)throw new c.a("operation-utils-remove-range-not-flat",this);const t=e.start.parent;_c(e.start),_c(e.end);const n=t._removeChildren(e.start.index,e.end.index-e.start.index);return kc(t,e.start.index),n}function yc(e,t){if(!e.isFlat)throw new c.a("operation-utils-move-range-not-flat",this);const n=vc(e);return bc(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function wc(e){const t=[];e instanceof Array||(e=[e]);for(let n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new $a(e[n]));else if(e[n]instanceof Ga)t.push(new $a(e[n].data,e[n].getAttributes()));else if(e[n]instanceof gc||e[n]instanceof Qa)for(const r of e[n])t.push(r);else e[n]instanceof qa&&t.push(e[n]);for(let n=1;n<t.length;n++){const e=t[n],r=t[n-1];e instanceof $a&&r instanceof $a&&Oc(e,r)&&(t.splice(n-1,2,new $a(r.data+e.data,r.getAttributes())),n--)}return t}function kc(e,t){const n=e.getChild(t-1),r=e.getChild(t);if(n&&r&&n.is("$text")&&r.is("$text")&&Oc(n,r)){const o=new $a(n.data+r.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,o)}}function _c(e){const t=e.textNode,n=e.parent;if(t){const r=e.offset-t.startOffset,o=t.index;n._removeChildren(o,1);const i=new $a(t.data.substr(0,r),t.getAttributes()),a=new $a(t.data.substr(r),t.getAttributes());n._insertChild(o,[i,a])}}function Oc(e,t){const n=e.getAttributes(),r=t.getAttributes();for(const o of n){if(o[1]!==t.getAttribute(o[0]))return!1;r.next()}return r.next().done}var xc=function(e,t){return Xi(e,t)};class Cc extends mc{constructor(e,t,n,r,o){super(o),this.range=e.clone(),this.key=t,this.oldValue=void 0===n?null:n,this.newValue=void 0===r?null:r}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new Cc(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Cc(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new c.a("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!xc(e.getAttribute(this.key),this.oldValue))throw new c.a("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new c.a("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){xc(this.oldValue,this.newValue)||function(e,t,n){_c(e.start),_c(e.end);for(const r of e.getItems({shallow:!0})){const e=r.is("$textProxy")?r.textNode:r;null!==n?e._setAttribute(t,n):e._removeAttribute(t),kc(e.parent,e.index)}kc(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Cc(os.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Ec extends mc{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new c.a("detach-operation-on-document-node",this)}_execute(){vc(os._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class jc extends mc{constructor(e,t,n,r){super(r),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new c.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<r&&r<n+this.howMany)throw new c.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==cr(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=n&&this.targetPosition.path[e]<n+this.howMany)throw new c.a("move-operation-node-into-itself",this)}}_execute(){yc(os._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const n=es.fromJSON(e.sourcePosition,t),r=es.fromJSON(e.targetPosition,t);return new this(n,e.howMany,r,e.baseVersion)}}class Sc extends mc{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Qa(wc(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const e=new Qa([...this.nodes].map((e=>e._clone(!0)))),t=new Sc(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new es(e,[0]);return new jc(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new c.a("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Qa([...e].map((e=>e._clone(!0)))),bc(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const n=[];for(const o of e.nodes)o.name?n.push(Xa.fromJSON(o)):n.push($a.fromJSON(o));const r=new Sc(es.fromJSON(e.position,t),n,e.baseVersion);return r.shouldReceiveAttributes=e.shouldReceiveAttributes,r}}class Pc extends mc{constructor(e,t,n,r,o,i){super(i),this.name=e,this.oldRange=t?t.clone():null,this.newRange=n?n.clone():null,this.affectsData=o,this._markers=r}get type(){return"marker"}clone(){return new Pc(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Pc(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}toJSON(){const e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new Pc(e.name,e.oldRange?os.fromJSON(e.oldRange,t):null,e.newRange?os.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}class Tc extends mc{constructor(e,t,n,r){super(r),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=n}get type(){return"rename"}clone(){return new Tc(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Tc(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof Xa))throw new c.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new c.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new Tc(es.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class Nc extends mc{constructor(e,t,n,r,o){super(o),this.root=e,this.key=t,this.oldValue=n,this.newValue=r}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Nc(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nc(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new c.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new c.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new c.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new c.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new Nc(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Ac extends mc{constructor(e,t,n,r,o){super(o),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=r.clone()}get type(){return"merge"}get deletionPosition(){return new es(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new os(this.sourcePosition,e)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new es(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Mc(e,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new c.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new c.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new c.a("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;yc(os._createIn(e),this.targetPosition),yc(os._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const n=es.fromJSON(e.sourcePosition,t),r=es.fromJSON(e.targetPosition,t),o=es.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,r,o,e.baseVersion)}}class Mc extends mc{constructor(e,t,n,r,o){super(o),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=n,this.graveyardPosition=r?r.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new es(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new os(this.splitPosition,e)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new es(e,[0]);return new Ac(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new c.a("split-operation-position-invalid",this);if(!e.parent)throw new c.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new c.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new c.a("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)yc(os._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();bc(this.insertionPosition,t)}yc(new os(es._createAt(e,this.splitPosition.offset),es._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new es(e.root,t,"toPrevious")}static fromJSON(e,t){const n=es.fromJSON(e.splitPosition,t),r=es.fromJSON(e.insertionPosition,t),o=e.graveyardPosition?es.fromJSON(e.graveyardPosition,t):null;return new this(n,e.howMany,r,o,e.baseVersion)}}class Rc extends Xa{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";super(t),this._document=e,this.rootName=n}get document(){return this._document}is(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}toJSON(){return this.rootName}}class Ic{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new $a(e,t)}createElement(e,t){return new Xa(e,t)}createDocumentFragment(){return new gc}cloneElement(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}insert(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),e instanceof $a&&""==e.data)return;const r=es._createAt(t,n);if(e.parent){if(Vc(e.root,r.root))return void this.move(os._createOn(e),r);if(e.root.document)throw new c.a("model-writer-insert-forbidden-move",this);this.remove(e)}const o=r.root.document?r.root.document.version:null,i=new Sc(r,e,o);if(e instanceof $a&&(i.shouldReceiveAttributes=!0),this.batch.addOperation(i),this.model.applyOperation(i),e instanceof gc)for(const[a,s]of e.markers){const e=es._createAt(s.root,0),t={range:new os(s.start._getCombined(e,r),s.end._getCombined(e,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(a)?this.updateMarker(a,t):this.addMarker(a,t)}}insertText(e,t,n,r){t instanceof gc||t instanceof Xa||t instanceof es?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}insertElement(e,t,n,r){t instanceof gc||t instanceof Xa||t instanceof es?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}append(e,t){this.insert(e,t,"end")}appendText(e,t,n){t instanceof gc||t instanceof Xa?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}appendElement(e,t,n){t instanceof gc||t instanceof Xa?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof os){const r=n.getMinimalFlatRanges();for(const n of r)Dc(this,e,t,n)}else Lc(this,e,t,n)}setAttributes(e,t){for(const[n,r]of hr(e))this.setAttribute(n,r,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof os){const n=t.getMinimalFlatRanges();for(const t of n)Dc(this,e,null,t)}else Lc(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof os)for(const n of e.getItems())t(n);else t(e)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof os))throw new c.a("writer-move-invalid-range",this);if(!e.isFlat)throw new c.a("writer-move-range-not-flat",this);const r=es._createAt(t,n);if(r.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!Vc(e.root,r.root))throw new c.a("writer-move-different-document",this);const o=e.root.document?e.root.document.version:null,i=new jc(e.start,e.end.offset-e.start.offset,r,o);this.batch.addOperation(i),this.model.applyOperation(i)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof os?e:os._createOn(e)).getMinimalFlatRanges().reverse();for(const n of t)this._addOperationForAffectedMarkers("move",n),Fc(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Xa))throw new c.a("writer-merge-no-element-before",this);if(!(n instanceof Xa))throw new c.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(e,t,n){return this.model.createSelection(e,t,n)}_mergeDetached(e){const t=e.nodeBefore,n=e.nodeAfter;this.move(os._createIn(n),es._createAt(t,"end")),this.remove(n)}_merge(e){const t=es._createAt(e.nodeBefore,"end"),n=es._createAt(e.nodeAfter,0),r=e.root.document.graveyard,o=new es(r,[0]),i=e.root.document.version,a=new Ac(n,e.nodeAfter.maxOffset,t,o,i);this.batch.addOperation(a),this.model.applyOperation(a)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Xa))throw new c.a("writer-rename-not-element-instance",this);const n=e.root.document?e.root.document.version:null,r=new Tc(es._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}split(e,t){this._assertWriterUsedCorrectly();let n,r,o=e.parent;if(!o.parent)throw new c.a("writer-split-element-no-parent",this);if(t||(t=o.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new c.a("writer-split-invalid-limit-element",this);do{const t=o.root.document?o.root.document.version:null,i=o.maxOffset-e.offset,a=Mc.getInsertionPosition(e),s=new Mc(e,i,a,null,t);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=o,r=e.parent.nextSibling),o=(e=this.createPositionAfter(e.parent)).parent}while(o!==t);return{position:e,range:new os(es._createAt(n,"end"),es._createAt(r,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new c.a("writer-wrap-range-not-flat",this);const n=t instanceof Xa?t:new Xa(t);if(n.childCount>0)throw new c.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new c.a("writer-wrap-element-attached",this);this.insert(n,e.start);const r=new os(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,es._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new c.a("writer-unwrap-element-no-parent",this);this.move(os._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new c.a("writer-addmarker-no-usingoperation",this);const n=t.usingOperation,r=t.range,o=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new c.a("writer-addmarker-marker-exists",this);if(!r)throw new c.a("writer-addmarker-no-range",this);return n?(zc(this,e,null,r,o),this.model.markers.get(e)):this.model.markers._set(e,r,n,o)}updateMarker(e,t){this._assertWriterUsedCorrectly();const n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new c.a("writer-updatemarker-marker-not-exists",this);if(!t)return void this.model.markers._refresh(r);const o="boolean"==typeof t.usingOperation,i="boolean"==typeof t.affectsData,a=i?t.affectsData:r.affectsData;if(!o&&!t.range&&!i)throw new c.a("writer-updatemarker-wrong-options",this);const s=r.getRange(),l=t.range?t.range:s;o&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?zc(this,n,null,l,a):(zc(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):r.managedUsingOperations?zc(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new c.a("writer-removemarker-no-marker",this);const n=this.model.markers.get(t);n.managedUsingOperations?zc(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}setSelection(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[n,r]of hr(e))this._setSelectionAttribute(n,r)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const r=ws._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const n=ws._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new c.a("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const r=n.getRange();let o=!1;if("move"===e)o=t.containsPosition(r.start)||t.start.isEqual(r.start)||t.containsPosition(r.end)||t.end.isEqual(r.end);else{const e=t.nodeBefore,n=t.nodeAfter,i=r.start.parent==e&&r.start.isAtEnd,a=r.end.parent==n&&0==r.end.offset,s=r.end.nodeAfter==n,c=r.start.nodeAfter==n;o=i||a||s||c}o&&this.updateMarker(n.name,{range:r})}}}function Dc(e,t,n,r){const o=e.model,i=o.document;let a,s,c,l=r.start;for(const d of r.getWalker({shallow:!0}))c=d.item.getAttribute(t),a&&s!=c&&(s!=n&&u(),l=a),a=d.nextPosition,s=c;function u(){const r=new os(l,a),c=r.root.document?i.version:null,u=new Cc(r,t,s,n,c);e.batch.addOperation(u),o.applyOperation(u)}a instanceof es&&a!=l&&s!=n&&u()}function Lc(e,t,n,r){const o=e.model,i=o.document,a=r.getAttribute(t);let s,c;if(a!=n){if(r.root===r){const e=r.document?i.version:null;c=new Nc(r,t,a,n,e)}else{s=new os(es._createBefore(r),e.createPositionAfter(r));const o=s.root.document?i.version:null;c=new Cc(s,t,a,n,o)}e.batch.addOperation(c),o.applyOperation(c)}}function zc(e,t,n,r,o){const i=e.model,a=i.document,s=new Pc(t,n,r,i.markers,o,a.version);e.batch.addOperation(s),i.applyOperation(s)}function Fc(e,t,n,r){let o;if(e.root.document){const n=r.document,i=new es(n.graveyard,[0]);o=new jc(e,t,i,n.version)}else o=new Ec(e,t);n.addOperation(o),r.applyOperation(o)}function Vc(e,t){return e===t||e instanceof Rc&&t instanceof Rc}class Bc{constructor(e){this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);const t=os._createOn(e);for(const n of this._markerCollection.getMarkersIntersectingRange(t)){const e=n.getRange();this.bufferMarkerChange(n.name,e,e,n.affectsData)}this._cachedChanges=null}bufferOperation(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=os._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1);const r=e.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,e.targetPosition.offset,t.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(e,t,n,r){const o=this._changedMarkers.get(e);o?(o.newRange=n,o.affectsData=r,null==o.oldRange&&null==o.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:r})}getMarkersToRemove(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.oldRange&&e.push({name:t,range:n.oldRange});return e}getMarkersToAdd(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.newRange&&e.push({name:t,range:n.newRange});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map((e=>({name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}})))}hasDataChanges(){for(const[,e]of this._changedMarkers)if(e.affectsData)return!0;return this._changesInElement.size>0}getChanges(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const n of this._changesInElement.keys()){const e=this._changesInElement.get(n).sort(((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1)),r=this._elementSnapshots.get(n),o=Hc(n.getChildren()),i=Wc(r.length,e);let a=0,s=0;for(const c of i)if("i"===c)t.push(this._getInsertDiff(n,a,o[a].name)),a++;else if("r"===c)t.push(this._getRemoveDiff(n,a,r[s].name)),s++;else if("a"===c){const e=o[a].attributes,i=r[s].attributes;let c;if("$text"==o[a].name)c=new os(es._createAt(n,a),es._createAt(n,a+1));else{const e=n.offsetToIndex(a);c=new os(es._createAt(n,a),es._createAt(n.getChild(e),0))}t.push(...this._getAttributesDiff(c,i,e)),a++,s++}else a++,s++}t.sort(((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1));for(let n=1,r=0;n<t.length;n++){const e=t[r],o=t[n],i="remove"==e.type&&"remove"==o.type&&"$text"==e.name&&"$text"==o.name&&e.position.isEqual(o.position),a="insert"==e.type&&"insert"==o.type&&"$text"==e.name&&"$text"==o.name&&e.position.parent==o.position.parent&&e.position.offset+e.length==o.position.offset,s="attribute"==e.type&&"attribute"==o.type&&e.position.parent==o.position.parent&&e.range.isFlat&&o.range.isFlat&&e.position.offset+e.length==o.position.offset&&e.attributeKey==o.attributeKey&&e.attributeOldValue==o.attributeOldValue&&e.attributeNewValue==o.attributeNewValue;i||a||s?(e.length++,s&&(e.range.end=e.range.end.getShiftedBy(1)),t[n]=null):r=n}t=t.filter((e=>e));for(const n of t)delete n.changeCount,"attribute"==n.type&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t.slice(),this._cachedChanges=t.filter(Uc),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(e,t,n){const r={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}_markRemove(e,t,n){const r={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Hc(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const n of t){const r=e.offset+e.howMany,o=n.offset+n.howMany;if("insert"==e.type&&("insert"==n.type&&(e.offset<=n.offset?n.offset+=e.howMany:e.offset<o&&(n.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==n.type&&e.offset<n.offset&&(n.offset+=e.howMany),"attribute"==n.type))if(e.offset<=n.offset)n.offset+=e.howMany;else if(e.offset<o){const o=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:r,howMany:o-n.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==n.type)if(r<=n.offset)n.offset-=e.howMany;else if(r<=o)if(e.offset<n.offset){const t=r-n.offset;n.offset=e.offset,n.howMany-=t,e.nodesToHandle-=t}else n.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=n.offset)e.nodesToHandle-=n.howMany,n.howMany=0;else if(e.offset<o){const t=o-e.offset;n.howMany-=t,e.nodesToHandle-=t}if("remove"==n.type&&(r<=n.offset?n.offset-=e.howMany:e.offset<n.offset&&(e.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(r<=n.offset)n.offset-=e.howMany;else if(e.offset<n.offset){const t=r-n.offset;n.offset=e.offset,n.howMany-=t}else if(e.offset<o)if(r<=o){const r=n.howMany;n.howMany=e.offset-n.offset;const o=r-n.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:o,count:this._changeCount++})}else n.howMany-=o-e.offset}if("attribute"==e.type){if("insert"==n.type)if(e.offset<n.offset&&r>n.offset){if(r>o){const e={type:"attribute",offset:o,howMany:r-o,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offset<o&&(r>o?(e.nodesToHandle=r-o,e.offset=o):e.nodesToHandle=0);if("remove"==n.type&&e.offset<n.offset&&r>n.offset){const o={type:"attribute",offset:n.offset,howMany:r-n.offset,count:this._changeCount++};this._handleChange(o,t),t.push(o),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==n.type&&(e.offset>=n.offset&&r<=o?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&r>=o&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n){return{type:"insert",position:es._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,n){return{type:"remove",position:es._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){const r=[];n=new Map(n);for(const[o,i]of t){const t=n.has(o)?n.get(o):null;t!==i&&r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:o,attributeOldValue:i,attributeNewValue:t,changeCount:this._changeCount++}),n.delete(o)}for(const[o,i]of n)r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:o,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return r}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const n=this._changesInElement.get(t),r=e.startOffset;if(n)for(const o of n)if("insert"==o.type&&r>=o.offset&&r<o.offset+o.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,n){const r=new os(es._createAt(e,t),es._createAt(e,t+n));for(const o of r.getItems({shallow:!0}))o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}function Hc(e){const t=[];for(const n of e)if(n.is("$text"))for(let e=0;e<n.data.length;e++)t.push({name:"$text",attributes:new Map(n.getAttributes())});else t.push({name:n.name,attributes:new Map(n.getAttributes())});return t}function Wc(e,t){const n=[];let r=0,o=0;for(const i of t){if(i.offset>r){for(let e=0;e<i.offset-r;e++)n.push("e");o+=i.offset-r}if("insert"==i.type){for(let e=0;e<i.howMany;e++)n.push("i");r=i.offset+i.howMany}else if("remove"==i.type){for(let e=0;e<i.howMany;e++)n.push("r");r=i.offset,o+=i.howMany}else n.push(..."a".repeat(i.howMany).split("")),r=i.offset+i.howMany,o+=i.howMany}if(o<e)for(let i=0;i<e-o-r;i++)n.push("e");return n}function Uc(e){const t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}class Kc{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}addOperation(e){this._operations.includes(e)||this._operations.push(e)}getOperations(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;const n=[];for(const r of this._operations)r.baseVersion>=e&&r.baseVersion<t&&n.push(r);return n}getOperation(e){for(const t of this._operations)if(t.baseVersion==e)return t}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}}function Yc(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function qc(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}class $c{constructor(e){this.model=e,this.version=0,this.history=new Kc(this),this.selection=new ws(this),this.roots=new Zn({idProperty:"rootName"}),this.differ=new Bc(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root","$graveyard"),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];if(n.isDocumentOperation&&n.baseVersion!==this.version)throw new c.a("model-document-applyoperation-wrong-version",this,{operation:n})}),{priority:"highest"}),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&(this.version++,this.history.addOperation(n))}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",((e,t,n,r)=>{this.differ.bufferMarkerChange(t.name,n,r,t.affectsData),null===n&&t.on("change",((e,n)=>{this.differ.bufferMarkerChange(t.name,n,t.getRange(),t.affectsData)}))}))}get graveyard(){return this.getRoot("$graveyard")}createRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new c.a("model-document-createroot-name-exists",this,{name:t});const n=new Rc(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}getRootNames(){return Array.from(this.roots,(e=>e.rootName)).filter((e=>"$graveyard"!=e))}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=lr(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const e of this.roots)if(e!==this.graveyard)return e;return this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}_validateSelectionRange(e){return Gc(e.start)&&Gc(e.end)}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),t=n(e),t)break}while(t)}}function Gc(e){const t=e.textNode;if(t){const n=t.data,r=e.offset-t.startOffset;return!Yc(n,r)&&!qc(n,r)}return!0}Ge($c,d);class Qc{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){return this._markers.has(e)}get(e){return this._markers.get(e)||null}_set(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=e instanceof Xc?e.name:e;if(o.includes(","))throw new c.a("markercollection-incorrect-marker-name",this);const i=this._markers.get(o);if(i){const e=i.getRange();let a=!1;return e.isEqual(t)||(i._attachLiveRange(bs.fromRange(t)),a=!0),n!=i.managedUsingOperations&&(i._managedUsingOperations=n,a=!0),"boolean"==typeof r&&r!=i.affectsData&&(i._affectsData=r,a=!0),a&&this.fire("update:"+o,i,e,t),i}const a=bs.fromRange(t),s=new Xc(o,a,n,r);return this._markers.set(o,s),this.fire("update:"+o,s,null,t),s}_remove(e){const t=e instanceof Xc?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}_refresh(e){const t=e instanceof Xc?e.name:e,n=this._markers.get(t);if(!n)throw new c.a("markercollection-refresh-marker-not-exists",this);const r=n.getRange();this.fire("update:"+t,n,r,r,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}Ge(Qc,d);class Xc{constructor(e,t,n,r){this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=r}get managedUsingOperations(){if(!this._liveRange)throw new c.a("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new c.a("marker-destroyed",this);return this._affectsData}getStart(){if(!this._liveRange)throw new c.a("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new c.a("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new c.a("marker-destroyed",this);return this._liveRange.toRange()}is(e){return"marker"===e||"model:marker"===e}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Ge(Xc,d);class Jc extends mc{get type(){return"noop"}clone(){return new Jc(this.baseVersion)}getReversed(){return new Jc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const Zc={};Zc[Cc.className]=Cc,Zc[Sc.className]=Sc,Zc[Pc.className]=Pc,Zc[jc.className]=jc,Zc[Jc.className]=Jc,Zc[mc.className]=mc,Zc[Tc.className]=Tc,Zc[Nc.className]=Nc,Zc[Mc.className]=Mc,Zc[Ac.className]=Ac;class el extends es{constructor(e,t){if(super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone"),!this.root.is("rootElement"))throw new c.a("model-liveposition-root-not-rootelement",e);tl.call(this)}detach(){this.stopListening()}is(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}toPosition(){return new es(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function tl(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&nl.call(this,n)}),{priority:"low"})}function nl(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}Ge(el,d);class rl{constructor(e,t,n){this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new c.a("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?os._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new os(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=el.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new c.a("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=el.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=el.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof Xa))return;if(!this._canMergeLeft(e))return;const t=el._createBefore(e);t.stickiness="toNext";const n=el.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=el._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(t.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof Xa))return;if(!this._canMergeRight(e))return;const t=el._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new c.a("insertcontent-invalid-insertion-position",this);this.position=es._createAt(t.nodeBefore,"end");const n=el.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=el._createAt(t.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof Xa&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof Xa&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function ol(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.isCollapsed)return;const r=t.getFirstRange();if("$graveyard"==r.root.rootName)return;const o=e.schema;e.change((e=>{if(!n.doNotResetEntireContent&&function(e,t){const n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;const r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(o,t))return void function(e,t){const n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),al(e,e.createPositionAt(n,0),t)}(e,t);const[i,a]=function(e){const t=e.root.document.model,n=e.start;let r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const n=function(e){const t=e.parent,n=t.root.document.model.schema,r=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const o of r){if(n.isLimit(o))return null;if(n.isBlock(o))return o}}(r);if(n&&r.isTouching(t.createPositionAt(n,0))){const n=t.createSelection(e);t.modifySelection(n,{direction:"backward"});const o=n.getLastPosition(),i=t.createRange(o,r);t.hasContent(i,{ignoreMarkers:!0})||(r=o)}}return[el.fromPosition(n,"toPrevious"),el.fromPosition(r,"toNext")]}(r);i.isTouching(a)||e.remove(e.createRange(i,a)),n.leaveUnmerged||(function(e,t,n){const r=e.model;if(!il(e.model.schema,t,n))return;const[o,i]=function(e,t){const n=e.getAncestors(),r=t.getAncestors();let o=0;for(;n[o]&&n[o]==r[o];)o++;return[n[o],r[o]]}(t,n);o&&i&&(!r.hasContent(o,{ignoreMarkers:!0})&&r.hasContent(i,{ignoreMarkers:!0})?function e(t,n,r,o){const i=n.parent,a=r.parent;if(i!=o&&a!=o){for(n=t.createPositionAfter(i),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(i,r);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}r=t.createPositionBefore(a),function(e,t){const n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(t,r),il(t.model.schema,n,r)&&e(t,n,r,o)}}(e,t,n,o.parent):function e(t,n,r,o){const i=n.parent,a=r.parent;if(i!=o&&a!=o){for(n=t.createPositionAfter(i),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(a,n),t.merge(n);r.parent.isEmpty;){const e=r.parent;r=t.createPositionBefore(e),t.remove(e)}il(t.model.schema,n,r)&&e(t,n,r,o)}}(e,t,n,o.parent))}(e,i,a),o.removeDisallowedAttributes(i.parent.getChildren(),e)),sl(e,t,i),!n.doNotAutoparagraph&&function(e,t){const n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(o,i)&&al(e,i,t),i.detach(),a.detach()}))}function il(e,t,n){const r=t.parent,o=n.parent;return r!=o&&!e.isLimit(r)&&!e.isLimit(o)&&function(e,t,n){const r=new os(e,t);for(const o of r.getWalker())if(n.isLimit(o.item))return!1;return!0}(t,n,e)}function al(e,t,n){const r=e.createElement("paragraph");e.insert(r,t),sl(e,n,e.createPositionAt(r,0))}function sl(e,t,n){t instanceof ws?e.setSelection(n):t.setTo(n)}function cl(e,t){const{isForward:n,walker:r,unit:o,schema:i}=e,{type:a,item:s,nextPosition:c}=t;if("text"==a)return"word"===e.unit?function(e,t){let n=e.position.textNode;if(n){let r=e.position.offset-n.startOffset;for(;!ul(n.data,r,t)&&!dl(n,r,t);){e.next();const o=t?e.position.nodeAfter:e.position.nodeBefore;if(o&&o.is("$text")){const r=o.data.charAt(t?0:o.data.length-1);' ,.?!:;"-()'.includes(r)||(e.next(),n=e.position.textNode)}r=e.position.offset-n.startOffset}}return e.position}(r,n):function(e,t){const n=e.position.textNode;if(n){const r=n.data;let o=e.position.offset-n.startOffset;for(;Yc(r,o)||"character"==t&&qc(r,o);)e.next(),o=e.position.offset-n.startOffset}return e.position}(r,o);if(a==(n?"elementStart":"elementEnd")){if(i.isSelectable(s))return es._createAt(s,n?"after":"before");if(i.checkChild(c,"$text"))return c}else{if(i.isLimit(s))return void r.skip((()=>!0));if(i.checkChild(c,"$text"))return c}}function ll(e,t){const n=e.root,r=es._createAt(n,t?"end":0);return t?new os(e,r):new os(r,e)}function ul(e,t,n){const r=t+(n?0:-1);return' ,.?!:;"-()'.includes(e.charAt(r))}function dl(e,t,n){return t===(n?e.endOffset:0)}function fl(e,t){const n=[];Array.from(e.getItems({direction:"backward"})).map((e=>t.createRangeOn(e))).filter((t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end)))).forEach((e=>{n.push(e.start.parent),t.remove(e)})),n.forEach((e=>{let n=e;for(;n.parent&&n.isEmpty;){const e=t.createRangeOn(n);n=n.parent,t.remove(e)}}))}function hl(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.selection,r=t.schema,o=[];let i=!1;for(const a of n.getRanges()){const e=pl(a,r);e&&!e.isEqual(a)?(o.push(e),i=!0):o.push(a)}i&&e.setSelection(function(e){const t=[];t.push(e.shift());for(const n of e){const e=t.pop();if(n.isEqual(e))t.push(e);else if(n.isIntersecting(e)){const r=e.start.isAfter(n.start)?n.start:e.start,o=e.end.isAfter(n.end)?e.end:n.end,i=new os(r,o);t.push(i)}else t.push(e),t.push(n)}return t}(o),{backward:n.isBackward})}(t,e)))}function pl(e,t){return e.isCollapsed?function(e,t){const n=e.start,r=t.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;const o=r.start;return n.isEqual(o)?null:new os(o)}(e,t):function(e,t){const{start:n,end:r}=e,o=t.checkChild(n,"$text"),i=t.checkChild(r,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(r);if(a===s){if(o&&i)return null;if(function(e,t,n){const r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),o=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return r||o}(n,r,t)){const e=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),o=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,"backward"),i=e?e.start:n,a=o?o.end:r;return new os(i,a)}}const c=a&&!a.is("rootElement"),l=s&&!s.is("rootElement");if(c||l){const e=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,o=c&&(!e||!gl(n.nodeAfter,t)),i=l&&(!e||!gl(r.nodeBefore,t));let u=n,d=r;return o&&(u=es._createBefore(ml(a,t))),i&&(d=es._createAfter(ml(s,t))),new os(u,d)}return null}(e,t)}function ml(e,t){let n=e,r=n;for(;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function gl(e,t){return e&&t.isSelectable(e)}class bl{constructor(){this.markers=new Qc,this.document=new $c(this),this.schema=new Ys,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((e=>this.decorate(e))),this.on("applyOperation",((e,t)=>{t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((e,t)=>{if("$marker"===t.name)return!0})),hl(this),this.document.registerPostFixer(As)}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new pc,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){c.a.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{"string"==typeof e?e=new pc(e):"function"==typeof e&&(t=e,e=new pc),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){c.a.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n){return function(e,t,n,r){return e.change((o=>{let i;i=n?n instanceof fs||n instanceof ws?n:o.createSelection(n,r):e.document.selection,i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});const a=new rl(e,o,i.anchor);let s;s=t.is("documentFragment")?t.getChildren():[t],a.handleNodes(s);const c=a.getSelectionRange();c&&(i instanceof ws?o.setSelection(c):i.setTo(c));const l=a.getAffectedRange()||e.createRange(i.anchor);return a.destroy(),l}))}(this,e,t,n)}deleteContent(e,t){ol(this,e,t)}modifySelection(e,t){!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.schema,o="backward"!=n.direction,i=n.unit?n.unit:"character",a=t.focus,s=new Ja({boundaries:ll(a,o),singleCharacters:!0,direction:o?"forward":"backward"}),c={walker:s,schema:r,isForward:o,unit:i};let l;for(;l=s.next();){if(l.done)return;const n=cl(c,l.value);if(n)return void(t instanceof ws?e.change((e=>{e.setSelectionFocus(n)})):t.setFocus(n))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change((e=>{const n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;const o=r.start.root,i=r.start.getCommonPath(r.end),a=o.getNodeByPath(i);let s;s=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(a,r.start.path[i.length]),e.createPositionAt(a,r.end.path[i.length]+1));const c=s.end.offset-s.start.offset;for(const t of s.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),n):e.append(e.cloneElement(t,!0),n);if(s!=r){const t=r._getTransformedByMove(s.start,e.createPositionAt(n,0),c)[0],o=e.createRange(e.createPositionAt(n,0),t.start);fl(e.createRange(t.end,e.createPositionAt(n,"end")),e),fl(o,e)}return n}))}(this,e)}hasContent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e instanceof Xa?os._createIn(e):e;if(n.isCollapsed)return!1;const{ignoreWhitespaces:r=!1,ignoreMarkers:o=!1}=t;if(!o)for(const i of this.markers.getMarkersIntersectingRange(n))if(i.affectsData)return!0;for(const i of n.getItems())if(this.schema.isContent(i)){if(!i.is("$textProxy"))return!0;if(!r)return!0;if(-1!==i.data.search(/\S/))return!0}return!1}createPositionFromPath(e,t,n){return new es(e,t,n)}createPositionAt(e,t){return es._createAt(e,t)}createPositionAfter(e){return es._createAfter(e)}createPositionBefore(e){return es._createBefore(e)}createRange(e,t){return new os(e,t)}createRangeIn(e){return os._createIn(e)}createRangeOn(e){return os._createOn(e)}createSelection(e,t,n){return new fs(e,t,n)}createBatch(e){return new pc(e)}createOperationFromJSON(e){return class{static fromJSON(e,t){return Zc[e.__className].fromJSON(e,t)}}.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new Ic(this,t);const n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}Ge(bl,We);class vl extends Ra{constructor(e){super(),this.editor=e}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){const e=t;t=(t,n)=>{this.editor.execute(e),n()}}super.set(e,t,n)}}class yl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._context=e.context||new ar({language:e.language}),this._context._addEditor(this,!e.context);const t=Array.from(this.constructor.builtinPlugins||[]);this.config=new Gn(e,this.constructor.defaultConfig),this.config.define("plugins",t),this.config.define(this._context._getEditorConfig()),this.plugins=new er(this,t,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ws,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),this.model=new bl;const n=new Xr;this.data=new uc(this.model,n),this.editing=new Hs(this.model,n),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new dc([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new vl(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[],o=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(r),n,o)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((e=>this.once("ready",e)))),e.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(){try{return this.commands.execute(...arguments)}catch(e){c.a.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}}Ge(yl,We);class wl{constructor(e){this.editor=e,this._components=new Map}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(kl(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new c.a("componentfactory-item-missing",this,{name:e});return this._components.get(kl(e)).callback(this.editor.locale)}has(e){return this._components.has(kl(e))}}function kl(e){return String(e).toLowerCase()}class _l{constructor(e){this.editor=e,this.componentFactory=new wl(e),this.focusTracker=new Ma,this._editableElementsMap=new Map,this.listenTo(e.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const e of this._editableElementsMap.values())e.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}getEditableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}Ge(_l,d);var Ol={setData(e){this.data.set(e)},getData(e){return this.data.get(e)}},xl={updateSourceElement(){if(!this.sourceElement)throw new c.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}};class Cl extends sr{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Zn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new c.a("pendingactions-add-invalid-message",this);const t=Object.create(We);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const El={cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'};function jl(e){let{emitter:t,activator:n,callback:r,contextElements:o}=e;t.listenTo(document,"mousedown",((e,t)=>{if(!n())return;const i="function"==typeof t.composedPath?t.composedPath():[];for(const n of o)if(n.contains(t.target)||i.includes(n))return;r()}))}function Sl(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=()=>{e._isCssTransitionsDisabled=!0},e.enableCssTransitions=()=>{e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Pl(e){let{view:t}=e;t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}class Tl extends Zn{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{idProperty:"viewUid"}),this.on("add",((e,t,n)=>{this._renderViewIntoCollectionParent(t,n)})),this.on("remove",((e,t)=>{t.element&&this._parentElement&&t.element.remove()})),this._parentElement=null}destroy(){this.map((e=>e.destroy()))}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length||!t.every((e=>"string"==typeof e)))throw new c.a("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const r of t)n.delegate(r).to(e);this.on("add",((n,r)=>{for(const o of t)r.delegate(o).to(e)})),this.on("remove",((n,r)=>{for(const o of t)r.stopDelegating(o,e)}))}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}n(15);class Nl{constructor(e){this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Zn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((t,n)=>{n.locale=e})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Al.bind(this,this)}createCollection(e){const t=new Tl(e);return this._viewCollections.add(t),t}registerChild(e){Jn(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){Jn(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Al(e)}extendTemplate(e){Al.extend(this.template,e)}render(){if(this.isRendered)throw new c.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((e=>e.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Ge(Nl,Ni),Ge(Nl,We);class Al{constructor(e){Object.assign(this,Hl(Bl(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new c.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const n of t.children)ql(n)?yield n:$l(n)&&(yield*e(n))}(this)}static bind(e,t){return{to:(n,r)=>new Rl({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r}),if:(n,r,o)=>new Il({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:o})}}static extend(e,t){if(e._isRendered)throw new c.a("template-extend-render",[this,e]);!function e(t,n){if(n.attributes&&(t.attributes||(t.attributes={}),Kl(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),Kl(t.eventListeners,n.eventListeners)),n.text&&t.text.push(...n.text),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new c.a("ui-template-extend-children-mismatch",t);let r=0;for(const o of n.children)e(t.children[r++],o)}}(e,Hl(Bl(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new c.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Dl(this.text)?this._bindToObservable({schema:this.text,updater:zl(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){let t,n,r,o;if(!this.attributes)return;const i=e.node,a=e.revertData;for(t in this.attributes)if(r=i.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=r),o=y(n[0])&&n[0].ns?n[0].ns:null,Dl(n)){const s=o?n[0].value:n;a&&Ql(t)&&s.unshift(r),this._bindToObservable({schema:s,updater:Fl(i,t,o),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&r&&Ql(t)&&n.unshift(r),n=n.map((e=>e&&e.value||e)).reduce(((e,t)=>e.concat(t)),[]).reduce(Ul,""),Yl(n)||i.setAttributeNS(o,t,n))}_renderStyleAttribute(e,t){const n=t.node;for(const r in e){const o=e[r];Dl(o)?this._bindToObservable({schema:[o],updater:Vl(n,r),data:t}):n.style[r]=o}}_renderElementChildren(e){const t=e.node,n=e.intoFragment?document.createDocumentFragment():t,r=e.isApplying;let o=0;for(const i of this.children)if(Gl(i)){if(!r){i.setParent(t);for(const e of i)n.appendChild(e.element)}}else if(ql(i))r||(i.isRendered||i.render(),n.appendChild(i.element));else if(gi(i))n.appendChild(i);else if(r){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),i._renderNode({node:n.childNodes[o++],isApplying:!0,revertData:t})}else n.appendChild(i.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const n=this.eventListeners[t].map((n=>{const[r,o]=t.split("@");return n.activateDomEventListener(r,o,e)}));e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable(e){let{schema:t,updater:n,data:r}=e;const o=r.revertData;Ll(t,n,r);const i=t.filter((e=>!Yl(e))).filter((e=>e.observable)).map((e=>e.activateAttributeListener(t,n,r)));o&&o.bindings.push(i)}_revertTemplateFromNode(e,t){for(const n of t.bindings)for(const e of n)e();if(t.text)e.textContent=t.text;else{for(const n in t.attributes){const r=t.attributes[n];null===r?e.removeAttribute(n):e.setAttribute(n,r)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(e.childNodes[n],t.children[n])}}}Ge(Al,d);class Ml{constructor(e){Object.assign(this,e)}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,n){const r=()=>Ll(e,t,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,r),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,r)}}}class Rl extends Ml{activateDomEventListener(e,t,n){const r=(e,n)=>{t&&!n.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,r),()=>{this.emitter.stopListening(n.node,e,r)}}}class Il extends Ml{getValue(e){return!Yl(super.getValue(e))&&(this.valueIfTrue||!0)}}function Dl(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Dl):e instanceof Ml)}function Ll(e,t,n){let{node:r}=n,o=function(e,t){return e.map((e=>e instanceof Ml?e.getValue(t):e))}(e,r);o=1==e.length&&e[0]instanceof Il?o[0]:o.reduce(Ul,""),Yl(o)?t.remove():t.set(o)}function zl(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function Fl(e,t,n){return{set(r){e.setAttributeNS(n,t,r)},remove(){e.removeAttributeNS(n,t)}}}function Vl(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}function Bl(e){return qn(e,(e=>{if(e&&(e instanceof Ml||$l(e)||ql(e)||Gl(e)))return e}))}function Hl(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=tr(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)Wl(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=tr(e[t].value)),Wl(e,t)}(e.attributes);const t=[];if(e.children)if(Gl(e.children))t.push(e.children);else for(const n of e.children)$l(n)||ql(n)||gi(n)?t.push(n):t.push(new Al(n));e.children=t}return e}function Wl(e,t){e[t]=tr(e[t])}function Ul(e,t){return Yl(t)?e:Yl(e)?t:"".concat(e," ").concat(t)}function Kl(e,t){for(const n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function Yl(e){return!e&&0!==e}function ql(e){return e instanceof Nl}function $l(e){return e instanceof Al}function Gl(e){return e instanceof Tl}function Ql(e){return"class"==e||"style"==e}class Xl extends Tl{constructor(e){super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),this.locale=e}attachToDom(){this._bodyCollectionContainer=new Al({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=n&&n.xmlns,i=o?e.createElementNS(o,t):e.createElement(t);for(const a in n)i.setAttribute(a,n[a]);!_a(r)&&Jn(r)||(r=[r]);for(let a of r)_a(a)&&(a=e.createTextNode(a)),i.appendChild(a);return i}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}n(17);class Jl extends Nl{constructor(){super();const e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((e=>{e.style.fill=this.fillColor}))}}n(19);class Zl extends Nl{constructor(e){super(e),this.set("text",""),this.set("position","s");const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",t.to("position",(e=>"ck-tooltip_"+e)),t.if("text","ck-hidden",(e=>!e.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:t.to("text")}]}]})}}n(21);class eu extends Nl{constructor(e){super(e);const t=this.bindTemplate,n=a();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new Jl,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",t.to("class"),t.if("isEnabled","ck-disabled",(e=>!e)),t.if("isVisible","ck-hidden",(e=>!e)),t.to("isOn",(e=>e?"ck-on":"ck-off")),t.if("withText","ck-button_with-text"),t.if("withKeystroke","ck-button_with-keystroke")],type:t.to("type",(e=>e||"button")),tabindex:t.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+n,"aria-disabled":t.if("isEnabled",!0,(e=>!e)),"aria-pressed":t.to("isOn",(e=>!!this.isToggleable&&String(e)))},children:this.children,on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((e=>{this.isEnabled?this.fire("execute"):e.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const e=new Zl;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}_createLabelView(e){const t=new Nl,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}_createKeystrokeView(){const e=new Nl;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>Do(e)))}]}),e}_getTooltipString(e,t,n){return e?"string"==typeof e?e:(n&&(n=Do(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}n(23);class tu extends eu{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new Nl;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}class nu{constructor(e){if(Object.assign(this,e),e.actions&&e.keystrokeHandler)for(const t in e.actions){let n=e.actions[t];"string"==typeof n&&(n=[n]);for(const r of n)e.keystrokeHandler.set(r,((e,n)=>{this[t](),n()}))}}get first(){return this.focusables.find(ru)||null}get last(){return this.focusables.filter(ru).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((t,n)=>{const r=t.element===this.focusTracker.focusedElement;return r&&(e=n),r})),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){const t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];let r=(t+n+e)%n;do{const t=this.focusables.get(r);if(ru(t))return t;r=(r+n+e)%n}while(r!==t);return null}}function ru(e){return!(!e.focus||"none"==ki.window.getComputedStyle(e.element).display)}n(25);var ou='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class iu extends eu{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new Jl;return e.content=ou,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}n(27);class au extends Nl{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Ra,this.focusTracker=new Ma,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",(e=>!e)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())})),this.keystrokes.set("arrowleft",((e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())}))}focus(){this.actionView.focus()}_createActionView(){const e=new eu;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const e=new eu,t=e.bindTemplate;return e.icon=ou,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(e=>String(e)))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}class su extends Nl{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",t.to("position",(e=>"ck-dropdown__panel_"+e)),t.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:t.to((e=>e.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}function cu(e){let{element:t,target:n,positions:r,limiter:o,fitInViewport:i}=e;N(n)&&(n=n()),N(o)&&(o=o());const a=function(e){return e&&e.parentNode?e.offsetParent===ki.document.body?null:e.offsetParent:null}(t),s=new Ea(t),c=new Ea(n);let l,u;if(o||i){const e=function(e,t){const{elementRect:n,viewportRect:r}=t,o=n.getArea(),i=function(e,t){let{targetRect:n,elementRect:r,limiterRect:o,viewportRect:i}=t;const a=[],s=r.getArea();for(const c of e){const e=lu(c,n,r);if(!e)continue;const[t,l]=e;let u=0,d=0;if(o)if(i){const e=o.getIntersection(i);e&&(u=e.getIntersectionArea(l))}else u=o.getIntersectionArea(l);i&&(d=i.getIntersectionArea(l));const f={positionName:t,positionRect:l,limiterIntersectArea:u,viewportIntersectArea:d};if(u===s)return[f];a.push(f)}return a}(e,t);if(r){const e=uu(i.filter((e=>{let{viewportIntersectArea:t}=e;return t===o})),o);if(e)return e}return uu(i,o)}(r,{targetRect:c,elementRect:s,limiterRect:o&&new Ea(o).getVisible(),viewportRect:i&&new Ea(ki.window)});[u,l]=e||lu(r[0],c,s)}else[u,l]=lu(r[0],c,s);let d=du(l);return a&&(d=function(e,t){let{left:n,top:r}=e;const o=du(new Ea(t)),i=xa(t);return n-=o.left,r-=o.top,n+=t.scrollLeft,r+=t.scrollTop,n-=i.left,r-=i.top,{left:n,top:r}}(d,a)),{left:d.left,top:d.top,name:u}}function lu(e,t,n){const r=e(t,n);if(!r)return null;const{left:o,top:i,name:a}=r;return[a,n.clone().moveTo(o,i)]}function uu(e,t){let n,r,o=0;for(const{positionName:i,positionRect:a,limiterIntersectArea:s,viewportIntersectArea:c}of e){if(s===t)return[i,a];const e=c**2+s**2;e>o&&(o=e,n=a,r=i)}return n?[r,n]:null}function du(e){let{left:t,top:n}=e;const{scrollX:r,scrollY:o}=ki.window;return{left:t+r,top:n+o}}n(29);class fu extends Nl{constructor(e,t,n){super(e);const r=this.bindTemplate;this.buttonView=t,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Ra,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",r.to("class"),r.if("isEnabled","ck-disabled",(e=>!e))],id:r.to("id"),"aria-describedby":r.to("ariaDescribedById")},children:[t,n]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=fu._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,t())};this.keystrokes.set("arrowdown",((e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())})),this.keystrokes.set("arrowright",((e,t)=>{this.isOpen&&t()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:n,southWest:r,northEast:o,northWest:i,southMiddleEast:a,southMiddleWest:s,northMiddleEast:c,northMiddleWest:l}=fu.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,r,a,s,e,o,i,c,l,t]:[r,n,s,a,e,i,o,l,c,t]}}fu.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})},fu._getOptimalPosition=cu;class hu extends Nl{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class pu extends Nl{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function mu(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}n(31);class gu extends Nl{constructor(e,t){super(e);const n=this.bindTemplate,r=this.t;this.options=t||{},this.set("ariaLabel",r("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ma,this.keystrokes=new Ra,this.set("class"),this.set("isCompact",!1),this.itemsView=new bu(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const o="rtl"===e.uiLanguageDirection;this._focusCycler=new nu({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[o?"arrowright":"arrowleft","arrowup"],focusNext:[o?"arrowleft":"arrowright","arrowdown"]}});const i=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var a;this.options.shouldGroupWhenFull&&this.options.isFloating&&i.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:i,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(a=this,a.bindTemplate.to((e=>{e.target===a.element&&e.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new yu(this):new vu(this)}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t){const n=mu(e),r=n.items.filter(((e,r,o)=>"|"===e||-1===n.removeItems.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(Object(c.b)("toolbarview-line-break-ignored-when-grouping-items",o),!1):!!t.has(e)||(Object(c.b)("toolbarview-item-unavailable",{name:e}),!1)))),o=this._cleanSeparators(r).map((e=>"|"===e?new hu:"-"===e?new pu:t.create(e)));this.items.addMany(o)}_cleanSeparators(e){const t=e=>"-"!==e&&"|"!==e,n=e.length,r=e.findIndex(t),o=n-e.slice().reverse().findIndex(t);return e.slice(r,o).filter(((e,n,r)=>!!t(e)||!(n>0&&r[n-1]===e)))}}class bu extends Nl{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class vu{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((e=>e)),e.focusables.bindTo(e.items).using((e=>e)),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class yu{constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using((e=>e)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",((e,t)=>{const n=t.index;for(const r of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(r):this.ungroupedItems.remove(r);for(let r=n;r<n+t.added.length;r++){const e=t.added[r-n];r>this.ungroupedItems.length?this.groupedItems.add(e,r-this.ungroupedItems.length):this.ungroupedItems.add(e,r)}this._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Ea(e.lastChild),r=new Ea(e);if(!this.cachedPadding){const n=ki.window.getComputedStyle(e),r="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[r])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new Pa(this.viewElement,(t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new hu),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,n=Ou(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",xu(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:El.threeVerticalDots}),n.toolbarView.items.bindTo(this.groupedItems).using((e=>e)),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((e=>{this.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}n(33);class wu extends Nl{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Ma,this.keystrokes=new Ra,this._focusCycler=new nu({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class ku extends Nl{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class _u extends Nl{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}function Ou(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:iu)(e),n=new su(e),r=new fu(e,t,n);return t.bind("isEnabled").to(r),t instanceof iu?t.bind("isOn").to(r,"isOpen"):t.arrowView.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(()=>{jl({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(t=>{t.source instanceof tu||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",((t,n)=>{e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",((t,n)=>{e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(r),r}function xu(e,t){const n=e.locale,r=n.t,o=e.toolbarView=new gu(n);o.set("ariaLabel",r("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((e=>o.items.add(e))),e.panelView.children.add(o),o.items.delegate("execute").to(e)}function Cu(e,t){const n=e.locale,r=e.listView=new wu(n);r.items.bindTo(t).using((e=>{let{type:t,model:r}=e;if("separator"===t)return new _u(n);if("button"===t||"switchbutton"===t){const e=new ku(n);let o;return o="button"===t?new eu(n):new tu(n),o.bind(...Object.keys(r)).to(r),o.delegate("execute").to(e),e.children.add(o),e}})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}n(35),n(37),n(39);class Eu extends Nl{constructor(e){super(e),this.body=new Xl(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}n(41);class ju extends Nl{constructor(e){super(e),this.set("text"),this.set("for"),this.id="ck-editor__label_"+a();const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class Su extends Eu{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new ju;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class Pu extends Nl{constructor(e,t,n){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change((n=>{const r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",((e,o,i)=>{i?n(r):t(r)}))}(this):t(this)}}class Tu extends Pu{constructor(e,t,n){super(e,t,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const e=this._editingView,t=this.t;e.change((n=>{const r=e.document.getRoot(this.name);n.setAttribute("aria-label",t("Rich Text Editor, %0",this.name),r)}))}}n(43),n(45);class Nu extends Nl{constructor(e){super(e),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new Ma,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to("input"),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((e,t,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}n(47);class Au extends Nl{constructor(e,t){super(e);const n="ck-labeled-field-view-"+a(),r="ck-labeled-field-view-status-"+a();this.fieldView=t(this,n,r),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(r),this.bind("_statusText").to(this,"errorText",this,"infoText",((e,t)=>e||t));const o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",(e=>!e)),o.if("isEmpty","ck-labeled-field-view_empty"),o.if("isFocused","ck-labeled-field-view_focused"),o.if("placeholder","ck-labeled-field-view_placeholder"),o.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(e){const t=new ju(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new Nl(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(e=>!e))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(){this.fieldView.focus()}}function Mu(e,t,n){const r=new Nu(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),r.bind("hasError").to(e,"errorText",(e=>!!e)),r.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(r),r}class Ru extends sr{static get pluginName(){return"Notification"}init(){this.on("show:warning",((e,t)=>{window.alert(t.message)}),{priority:"lowest"})}showSuccess(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class Iu{constructor(e,t){t&&De(this,t),e&&this.set(e)}}Ge(Iu,We),n(49);const Du=Na("px"),Lu=ki.document.body;class zu extends Nl{constructor(e){super(e);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",(e=>"ck-balloon-panel_"+e)),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",Du),left:t.to("left",Du)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=zu.defaultPositions,n=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:Lu,fitInViewport:!0},e),r=zu._getOptimalPosition(n),o=parseInt(r.left),i=parseInt(r.top),a=r.name;Object.assign(this,{top:i,left:o,position:a})}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){this.attachTo(e);const t=Fu(e.target),n=e.limiter?Fu(e.limiter):Lu;this.listenTo(ki.document,"scroll",((r,o)=>{const i=o.target,a=t&&i.contains(t),s=n&&i.contains(n);!a&&!s&&t&&n||this.attachTo(e)}),{useCapture:!0}),this.listenTo(ki.window,"resize",(()=>{this.attachTo(e)}))}_stopPinning(){this.stopListening(ki.document,"scroll"),this.stopListening(ki.window,"resize")}}function Fu(e){return $n(e)?e:Oa(e)?e.commonAncestorContainer:"function"==typeof e?Fu(e()):null}function Vu(e,t){return e.top-t.height-zu.arrowVerticalOffset}function Bu(e){return e.bottom+zu.arrowVerticalOffset}zu.arrowHorizontalOffset=25,zu.arrowVerticalOffset=10,zu._getOptimalPosition=cu,zu.defaultPositions={northWestArrowSouthWest:(e,t)=>({top:Vu(e,t),left:e.left-zu.arrowHorizontalOffset,name:"arrow_sw"}),northWestArrowSouthMiddleWest:(e,t)=>({top:Vu(e,t),left:e.left-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_smw"}),northWestArrowSouth:(e,t)=>({top:Vu(e,t),left:e.left-t.width/2,name:"arrow_s"}),northWestArrowSouthMiddleEast:(e,t)=>({top:Vu(e,t),left:e.left-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_sme"}),northWestArrowSouthEast:(e,t)=>({top:Vu(e,t),left:e.left-t.width+zu.arrowHorizontalOffset,name:"arrow_se"}),northArrowSouthWest:(e,t)=>({top:Vu(e,t),left:e.left+e.width/2-zu.arrowHorizontalOffset,name:"arrow_sw"}),northArrowSouthMiddleWest:(e,t)=>({top:Vu(e,t),left:e.left+e.width/2-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_smw"}),northArrowSouth:(e,t)=>({top:Vu(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}),northArrowSouthMiddleEast:(e,t)=>({top:Vu(e,t),left:e.left+e.width/2-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_sme"}),northArrowSouthEast:(e,t)=>({top:Vu(e,t),left:e.left+e.width/2-t.width+zu.arrowHorizontalOffset,name:"arrow_se"}),northEastArrowSouthWest:(e,t)=>({top:Vu(e,t),left:e.right-zu.arrowHorizontalOffset,name:"arrow_sw"}),northEastArrowSouthMiddleWest:(e,t)=>({top:Vu(e,t),left:e.right-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_smw"}),northEastArrowSouth:(e,t)=>({top:Vu(e,t),left:e.right-t.width/2,name:"arrow_s"}),northEastArrowSouthMiddleEast:(e,t)=>({top:Vu(e,t),left:e.right-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_sme"}),northEastArrowSouthEast:(e,t)=>({top:Vu(e,t),left:e.right-t.width+zu.arrowHorizontalOffset,name:"arrow_se"}),southWestArrowNorthWest:(e,t)=>({top:Bu(e),left:e.left-zu.arrowHorizontalOffset,name:"arrow_nw"}),southWestArrowNorthMiddleWest:(e,t)=>({top:Bu(e),left:e.left-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_nmw"}),southWestArrowNorth:(e,t)=>({top:Bu(e),left:e.left-t.width/2,name:"arrow_n"}),southWestArrowNorthMiddleEast:(e,t)=>({top:Bu(e),left:e.left-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_nme"}),southWestArrowNorthEast:(e,t)=>({top:Bu(e),left:e.left-t.width+zu.arrowHorizontalOffset,name:"arrow_ne"}),southArrowNorthWest:(e,t)=>({top:Bu(e),left:e.left+e.width/2-zu.arrowHorizontalOffset,name:"arrow_nw"}),southArrowNorthMiddleWest:(e,t)=>({top:Bu(e),left:e.left+e.width/2-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_nmw"}),southArrowNorth:(e,t)=>({top:Bu(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}),southArrowNorthMiddleEast:(e,t)=>({top:Bu(e),left:e.left+e.width/2-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_nme"}),southArrowNorthEast:(e,t)=>({top:Bu(e),left:e.left+e.width/2-t.width+zu.arrowHorizontalOffset,name:"arrow_ne"}),southEastArrowNorthWest:(e,t)=>({top:Bu(e),left:e.right-zu.arrowHorizontalOffset,name:"arrow_nw"}),southEastArrowNorthMiddleWest:(e,t)=>({top:Bu(e),left:e.right-.25*t.width-zu.arrowHorizontalOffset,name:"arrow_nmw"}),southEastArrowNorth:(e,t)=>({top:Bu(e),left:e.right-t.width/2,name:"arrow_n"}),southEastArrowNorthMiddleEast:(e,t)=>({top:Bu(e),left:e.right-.75*t.width+zu.arrowHorizontalOffset,name:"arrow_nme"}),southEastArrowNorthEast:(e,t)=>({top:Bu(e),left:e.right-t.width+zu.arrowHorizontalOffset,name:"arrow_ne"})},n(51),n(53);const Hu=Na("px");class Wu extends Qe{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.view=new zu(e.locale),e.ui.view.body.add(this.view),e.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this.hasView(e.view))throw new c.a("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new c.a("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new c.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find((t=>t[1]===e))[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new Uu(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>1)),e.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((e,n)=>{if(n<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[r,n])})),e.buttonNextView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),e.buttonPrevView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),e}_createFakePanelsView(){const e=new Ku(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>=2?Math.min(e-1,2):0)),e.listenTo(this.view,"change:top",(()=>e.updatePosition())),e.listenTo(this.view,"change:left",(()=>e.updatePosition())),this.editor.ui.view.body.add(e),e}_showView(e){let{view:t,balloonClassName:n="",withArrow:r=!0,singleViewMode:o=!1}=e;this.view.class=n,this.view.withArrow=r,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}}class Uu extends Nl{constructor(e){super(e);const t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ma,this.buttonPrevView=this._createButtonView(t("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(t("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(e=>e?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const n=new eu(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class Ku extends Nl{constructor(e,t){super(e);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(e=>e?"":"ck-hidden"))],style:{top:n.to("top",Hu),left:n.to("left",Hu),width:n.to("width",Hu),height:n.to("height",Hu)}},children:this.content}),this.on("change:numberOfPanels",((e,t,n,r)=>{n>r?this._addPanels(n-r):this._removePanels(r-n),this.updatePosition()}))}_addPanels(e){for(;e--;){const e=new Nl;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:n,height:r}=new Ea(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:r})}}}n(55);const Yu=Na("px");class qu extends Nl{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Al({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",(e=>e?"block":"none")),height:t.to("isSticky",(e=>e?Yu(this._panelRect.height):null))}}}).render(),this._contentPanel=new Al({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",(e=>e?Yu(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:t.to("_hasViewportTopOffset",(e=>e?Yu(this.viewportTopOffset):null)),bottom:t.to("_isStickyToTheLimiter",(e=>e?Yu(this.limiterBottomOffset):null)),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(ki.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const e=this._panelRect=this._contentPanel.getBoundingClientRect();let t;this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Yu(-ki.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}Na("px"),n(57),Na("px"),Na("px"),n(59);const $u=new WeakMap;function Gu(e){const{view:t,element:n,text:r,isDirectHost:o=!0,keepOnFocus:i=!1}=e,a=t.document;$u.has(a)||($u.set(a,new Map),a.registerPostFixer((e=>Xu(a,e)))),$u.get(a).set(n,{text:r,isDirectHost:o,keepOnFocus:i,hostElement:o?n:null}),t.change((e=>Xu(a,e)))}function Qu(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function Xu(e,t){const n=$u.get(e),r=[];let o=!1;for(const[i,a]of n)a.isDirectHost&&(r.push(i),Ju(t,i,a)&&(o=!0));for(const[i,a]of n){if(a.isDirectHost)continue;const e=Zu(i);e&&(r.includes(e)||(a.hostElement=e,Ju(t,i,a)&&(o=!0)))}return o}function Ju(e,t,n){const{text:r,isDirectHost:o,hostElement:i}=n;let a=!1;return i.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,i),a=!0),(o||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;if(Array.from(e.getChildren()).some((e=>!e.is("uiElement"))))return!1;if(t)return!0;const n=e.document;if(!n.isFocused)return!0;const r=n.selection.anchor;return r&&r.parent!==e}(i,n.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,i)&&(a=!0):Qu(e,i)&&(a=!0),a}function Zu(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}const ed=new Map;function td(e,t,n){let r=ed.get(e);r||(r=new Map,ed.set(e,r)),r.set(t,n)}function nd(e){return[e]}function rd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e,t){const n=ed.get(e);return n&&n.has(t)?n.get(t):nd}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function od(e,t,n){e=e.slice(),t=t.slice();const r=new id(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(e),r.setOriginalOperations(t);const o=r.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:o};const i=new WeakMap;for(const c of e)i.set(c,0);const a={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let s=0;for(;s<e.length;){const n=e[s],o=i.get(n);if(o==t.length){s++;continue}const a=t[o],c=rd(n,a,r.getContext(n,a,!0)),l=rd(a,n,r.getContext(a,n,!1));r.updateRelation(n,a),r.setOriginalOperations(c,n),r.setOriginalOperations(l,a);for(const e of c)i.set(e,o+l.length);e.splice(s,1,...c),t.splice(o,1,...l)}if(n.padWithNoOps){const n=e.length-a.originalOperationsACount,r=t.length-a.originalOperationsBCount;sd(e,r-n),sd(t,n-r)}return ad(e,a.nextBaseVersionB),ad(t,a.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:o}}class id{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t?this.originalOperations.get(t):null;for(const r of e)this.originalOperations.set(r,n||r)}updateRelation(e,t){switch(e.constructor){case jc:switch(t.constructor){case Ac:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case jc:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Mc:switch(t.constructor){case Ac:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case jc:if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const n=os._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){const r=n.end.offset-e.splitPosition.offset,o=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:r,offset:o})}}}break;case Ac:switch(t.constructor){case Ac:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Mc:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case Pc:{const n=e.newRange;if(!n)return;switch(t.constructor){case jc:{const r=os._createFromPositionAndShift(t.sourcePosition,t.howMany),o=r.containsPosition(n.start)||r.start.isEqual(n.start),i=r.containsPosition(n.end)||r.end.isEqual(n.end);!o&&!i||r.containsRange(n)||this._setRelation(e,t,{side:o?"left":"right",path:o?n.start.path.slice():n.end.path.slice()});break}case Ac:{const r=n.start.isEqual(t.targetPosition),o=n.start.isEqual(t.deletionPosition),i=n.end.isEqual(t.deletionPosition),a=n.end.isEqual(t.sourcePosition);(r||o||i||a)&&this._setRelation(e,t,{wasInLeftElement:r,wasStartBeforeMergedElement:o,wasEndBeforeMergedElement:i,wasInRightElement:a});break}}break}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;const o=this.originalOperations.get(e),i=this._relations.get(o);return i&&i.get(r)||null}_setRelation(e,t,n){const r=this.originalOperations.get(e),o=this.originalOperations.get(t);let i=this._relations.get(r);i||(i=new Map,this._relations.set(r,i)),i.set(o,n)}}function ad(e,t){for(const n of e)n.baseVersion=t++}function sd(e,t){for(let n=0;n<t;n++)e.push(new Jc(0))}function cd(e,t,n){const r=e.nodes.getNode(0).getAttribute(t);if(r==n)return null;const o=new os(e.position,e.position.getShiftedBy(e.howMany));return new Cc(o,t,r,n,0)}function ld(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function ud(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=new jc(o.start,o.end.offset-o.start.offset,t,0);n.push(i);for(let t=r+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(i.sourcePosition,i.targetPosition,i.howMany)[0];t=t._getTransformedByMove(i.sourcePosition,i.targetPosition,i.howMany)}return n}td(Cc,Cc,((e,t,n)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const r=e.range.getDifference(t.range).map((t=>new Cc(t,e.key,e.oldValue,e.newValue,0))),o=e.range.getIntersection(t.range);return o&&n.aIsStrong&&r.push(new Cc(o,t.key,t.newValue,e.newValue,0)),0==r.length?[new Jc(0)]:r}return[e]})),td(Cc,Sc,((e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((t=>new Cc(t,e.key,e.oldValue,e.newValue,e.baseVersion)));if(t.shouldReceiveAttributes){const r=cd(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),td(Cc,Ac,((e,t)=>{const n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(os._createFromPositionAndShift(t.graveyardPosition,1));const r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map((t=>new Cc(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),td(Cc,jc,((e,t)=>function(e,t){const n=os._createFromPositionAndShift(t.sourcePosition,t.howMany);let r=null,o=[];n.containsRange(e,!0)?r=e:e.start.hasSameParentAs(n.start)?(o=e.getDifference(n),r=e.getIntersection(n)):o=[e];const i=[];for(let a of o){a=a._getTransformedByDeletion(t.sourcePosition,t.howMany);const e=t.getMovedRangeStart(),n=a.start.hasSameParentAs(e);a=a._getTransformedByInsertion(e,t.howMany,n),i.push(...a)}return r&&i.push(r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),i}(e.range,t).map((t=>new Cc(t,e.key,e.oldValue,e.newValue,e.baseVersion))))),td(Cc,Mc,((e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const n=e.clone();return n.range=new os(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),td(Sc,Cc,((e,t)=>{const n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const r=cd(e,t.key,t.newValue);r&&n.push(r)}return n})),td(Sc,Sc,((e,t,n)=>(e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]))),td(Sc,jc,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),td(Sc,Mc,((e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e]))),td(Sc,Ac,((e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e]))),td(Pc,Sc,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]))),td(Pc,Pc,((e,t,n)=>{if(e.name==t.name){if(!n.aIsStrong)return[new Jc(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),td(Pc,Ac,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]))),td(Pc,jc,((e,t,n)=>{if(e.oldRange&&(e.oldRange=os._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){const r=os._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=r.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=r.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=os._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),td(Pc,Mc,((e,t,n)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){const r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=es._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=es._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=es._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=es._createAt(t.insertionPosition):e.newRange.end=r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),td(Ac,Sc,((e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]))),td(Ac,Ac,((e,t,n)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),e.sourcePosition=new es(t.graveyardPosition.root,n),e.howMany=0,[e]}return[new Jc(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const r="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!r||(!r||o)&&n.aIsStrong){const n=t.targetPosition._getTransformedByMergeOperation(t),r=e.targetPosition._getTransformedByMergeOperation(t);return[new jc(n,e.howMany,r,0)]}return[new Jc(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),td(Ac,jc,((e,t,n)=>{const r=os._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Jc(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),td(Ac,Mc,((e,t,n)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const r=0!=t.howMany,o=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(r||o||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),td(jc,Sc,((e,t)=>{const n=os._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),td(jc,jc,((e,t,n)=>{const r=os._createFromPositionAndShift(e.sourcePosition,e.howMany),o=os._createFromPositionAndShift(t.sourcePosition,t.howMany);let i,a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),i=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),ld(e,t)&&ld(t,e))return[t.getReversed()];if(r.containsPosition(t.targetPosition)&&r.containsRange(o,!0))return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),ud([r],i);if(o.containsPosition(e.targetPosition)&&o.containsRange(r,!0))return r.start=r.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),r.end=r.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),ud([r],i);const c=cr(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),ud([r],i);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;const l=[],u=r.getDifference(o);for(const f of u){f.start=f.start._getTransformedByDeletion(t.sourcePosition,t.howMany),f.end=f.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const e="same"==cr(f.start.getParentPath(),t.getMovedRangeStart().getParentPath()),n=f._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,e);l.push(...n)}const d=r.getIntersection(o);return null!==d&&a&&(d.start=d.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),d.end=d.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===l.length?l.push(d):1==l.length?o.start.isBefore(r.start)||o.start.isEqual(r.start)?l.unshift(d):l.push(d):l.splice(1,0,d)),0===l.length?[new Jc(e.baseVersion)]:ud(l,i)})),td(jc,Mc,((e,t,n)=>{let r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));const o=os._createFromPositionAndShift(e.sourcePosition,e.howMany);if(o.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(o.start.hasSameParentAs(t.splitPosition)&&o.containsPosition(t.splitPosition)){let e=new os(t.splitPosition,o.end);return e=e._getTransformedBySplitOperation(t),ud([new os(o.start,t.splitPosition),e],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);const i=[o._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const r=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);e.howMany>1&&r&&!n.aWasUndone&&i.push(os._createFromPositionAndShift(t.insertionPosition,1))}return ud(i,r)})),td(jc,Ac,((e,t,n)=>{const r=os._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Jc(0)]}else if(!n.aWasUndone){const n=[];let r=t.graveyardPosition.clone(),o=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(n.push(new jc(e.sourcePosition,e.howMany-1,e.targetPosition,0)),r=r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const i=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),a=new jc(r,1,i,0),s=a.getMovedRangeStart().path.slice();s.push(0);const c=new es(a.targetPosition.root,s);o=o._getTransformedByMove(r,i,1);const l=new jc(o,t.howMany,c,0);return n.push(a),n.push(l),n}const o=os._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),td(Tc,Sc,((e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e]))),td(Tc,Ac,((e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e]))),td(Tc,jc,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),td(Tc,Tc,((e,t,n)=>{if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Jc(0)];e.oldName=t.newName}return[e]})),td(Tc,Mc,((e,t)=>{if("same"==cr(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const t=new Tc(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),td(Nc,Nc,((e,t,n)=>{if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Jc(0)];e.oldValue=t.newValue}return[e]})),td(Mc,Sc,((e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e]))),td(Mc,Ac,((e,t,n)=>{if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const r=new es(t.graveyardPosition.root,n),o=Mc.getInsertionPosition(new es(t.graveyardPosition.root,n)),i=new Mc(r,0,o,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),e.graveyardPosition=i.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[i,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),td(Mc,jc,((e,t,n)=>{const r=os._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const o=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&o){const n=e.splitPosition._getTransformedByMoveOperation(t),r=e.graveyardPosition._getTransformedByMoveOperation(t),o=r.path.slice();o.push(0);const i=new es(r.root,o);return[new jc(n,e.howMany,i,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const o=e.splitPosition.isEqual(t.targetPosition);if(o&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),[e];if(o&&n.abRelation&&n.abRelation.howMany){const{howMany:t,offset:r}=n.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(r),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)){const n=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=n,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),[e]})),td(Mc,Mc,((e,t,n)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Jc(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Jc(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const r="$graveyard"==e.splitPosition.root.rootName,o="$graveyard"==t.splitPosition.root.rootName;if(o&&!r||(!r||o)&&n.aIsStrong){const n=[];return t.howMany&&n.push(new jc(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&n.push(new jc(e.splitPosition,e.howMany,e.moveTargetPosition,0)),n}return[new Jc(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){const n=t.insertionPosition.path.slice();n.push(0);const r=new es(t.insertionPosition.root,n);return[e,new jc(e.insertionPosition,1,r,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Mc.getInsertionPosition(e.splitPosition),[e]}));class dd extends ta{constructor(e){super(e),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class fd extends ta{constructor(e){super(e),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class hd{constructor(e){this.document=e}createDocumentFragment(e){return new Uo(this.document,e)}createElement(e,t,n){return new eo(this.document,e,t,n)}createText(e){return new dr(this.document,e)}clone(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const n=e.parent;if(n){const r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){const n=new eo(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){ct(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return co._createAt(e,t)}createPositionAfter(e){return co._createAfter(e)}createPositionBefore(e){return co._createBefore(e)}createRange(e,t){return new lo(e,t)}createRangeOn(e){return lo._createOn(e)}createRangeIn(e){return lo._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}}new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","currentcolor","transparent"]);class pd extends _l{constructor(e,t){super(e),this.view=t,this._toolbarConfig=mu(e.config.get("toolbar")),this._elementReplacer=new ka}get element(){return this.view.element}init(e){const t=this.editor,n=this.view,r=t.editing.view,o=n.editable,i=r.document.getRoot();o.name=i.rootName,n.render();const a=o.element;this.setEditableElement(o.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),super.destroy()}_initToolbar(){const e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function(e){let{origin:t,originKeystrokeHandler:n,originFocusTracker:r,toolbar:o,beforeFocus:i,afterBlur:a}=e;r.add(o.element),n.set("Alt+F10",((e,t)=>{r.isFocused&&!o.focusTracker.isFocused&&(i&&i(),o.focus(),t())})),o.keystrokes.set("Esc",((e,n)=>{o.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}_initPlaceholder(){const e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,o=e.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");o&&Gu({view:t,element:n,text:o,isDirectHost:!1,keepOnFocus:!0})}}n(61);class md extends Su{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e),this.stickyPanel=new qu(e),this.toolbar=new gu(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Tu(e,t)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class gd extends yl{constructor(e,t){super(t),$n(e)&&(this.sourceElement=e),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),r=new md(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new pd(this,r),function(e){if(!N(e.updateSourceElement))throw new c.a("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){let n;const r=t.form,o=()=>e.updateSourceElement();N(r.submit)&&(n=r.submit,r.submit=()=>{o(),n.apply(r)}),r.addEventListener("submit",o),e.on("destroy",(()=>{r.removeEventListener("submit",o),n&&(r.submit=n)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((n=>{const r=new this(e,t);n(r.initPlugins().then((()=>r.ui.init($n(e)?e:null))).then((()=>{if(!$n(e)&&t.initialData)throw new c.a("editor-create-initial-data",null);const n=void 0!==t.initialData?t.initialData:function(e){return $n(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return r.data.init(n)})).then((()=>r.fire("ready"))).then((()=>r)))}))}}Ge(gd,Ol),Ge(gd,xl);class bd{constructor(e){this.files=function(e){const t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t.length?t:n.filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}(e),this._native=e}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class vd extends ta{constructor(e){super(e);const t=this.document;function n(e){return(n,r)=>{r.preventDefault();const i=r.dropRange?[r.dropRange]:null,a=new o(t,e);t.fire(a,{dataTransfer:r.dataTransfer,method:n.name,targetRanges:i,target:r.target}),a.stop.called&&r.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(t,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",n("dragging"),{priority:"low"})}onDomEvent(e){const t={dataTransfer:new bd(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"!=e.type&&"dragover"!=e.type||(t.dropRange=function(e,t){const n=t.target.ownerDocument,r=t.clientX,o=t.clientY;let i;return n.caretRangeFromPoint&&n.caretRangeFromPoint(r,o)?i=n.caretRangeFromPoint(r,o):t.rangeParent&&(i=n.createRange(),i.setStart(t.rangeParent,t.rangeOffset),i.collapse(!0)),i?e.domConverter.domRangeToView(i):null}(this.view,e)),this.fire(e.type,e,t)}}const yd=["figcaption","li"];class wd extends Qe{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(vd),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const e=this.editor,t=e.model,n=e.editing.view,r=n.document;this.listenTo(r,"clipboardInput",(t=>{e.isReadOnly&&t.stop()}),{priority:"highest"}),this.listenTo(r,"clipboardInput",((e,t)=>{const r=t.dataTransfer;let i=t.content||"";var a;i||(r.getData("text/html")?i=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1==t.length?" ":t)).replace(/<!--[\s\S]*?-->/g,"")}(r.getData("text/html")):r.getData("text/plain")&&(((a=(a=r.getData("text/plain")).replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||a.includes("<br>"))&&(a="<p>".concat(a,"</p>")),i=a),i=this.editor.data.htmlProcessor.toView(i));const s=new o(this,"inputTransformation");this.fire(s,{content:i,dataTransfer:r,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,n)=>{if(n.content.isEmpty)return;const r=this.editor.data.toModel(n.content,"$clipboardHolder");0!=r.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:r,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,n)=>{n.resultRange=t.insertContent(n.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,n=e.editing.view.document;function r(r,o){const i=o.dataTransfer;o.preventDefault();const a=e.data.toView(e.model.getSelectedContent(t.selection));n.fire("clipboardOutput",{dataTransfer:i,content:a,method:r.name})}this.listenTo(n,"copy",r,{priority:"low"}),this.listenTo(n,"cut",((t,n)=>{e.isReadOnly?n.preventDefault():r(t,n)}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,r)=>{r.content.isEmpty||(r.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",function e(t){let n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{let r=null;for(const o of t.getChildren()){const t=e(o);r&&(r.is("containerElement")||o.is("containerElement"))&&(yd.includes(r.name)||yd.includes(o.name)?n+="\n":n+="\n\n"),n+=t,r=o}}return n}(r.content))),"cut"==r.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}function*kd(e,t){for(const n of t)n&&e.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class _d extends Je{execute(){const e=this.editor.model,t=e.document;e.change((n=>{!function(e,t,n,r){const o=n.isCollapsed,i=n.getFirstRange(),a=i.start.parent,s=i.end.parent;if(r.isLimit(a)||r.isLimit(s))o||a!=s||e.deleteContent(n);else if(o){const e=kd(t.model.schema,n.getAttributes());Od(t,i.start),t.setSelectionAttribute(e)}else{const r=!(i.start.isAtStart&&i.end.isAtEnd),o=a==s;e.deleteContent(n,{leaveUnmerged:r}),r&&(o?Od(t,n.focus):t.setSelection(s,0))}}(this.editor.model,n,t.selection,e.schema),this.fire("afterExecute",{writer:n})}))}}function Od(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}class xd extends Ri{constructor(e){super(e);const t=this.document;t.on("keydown",((e,n)=>{if(this.isEnabled&&n.keyCode==Ao.enter){const r=new mo(t,"enter",t.selection.getFirstRange());t.fire(r,new ea(t,n.domEvent,{isSoft:n.shiftKey})),r.stop.called&&e.stop()}}))}observe(){}}class Cd extends Qe{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,n=t.document;t.addObserver(xd),e.commands.add("enter",new _d(e)),this.listenTo(n,"enter",((n,r)=>{r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}class Ed{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;this.model=e,this.size=0,this.limit=t,this.isLocked=!1,this._changeCallback=(e,t)=>{"transparent"!=t.type&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e){this.isLocked&&!e||(this._batch=null,this.size=0)}}class jd extends Je{constructor(e,t){super(e),this.direction=t,this._buffer=new Ed(e.model,e.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,(r=>{this._buffer.lock();const o=r.createSelection(e.selection||n.selection),i=e.sequence||1,a=o.isCollapsed;if(o.isCollapsed&&t.modifySelection(o,{direction:this.direction,unit:e.unit}),this._shouldEntireContentBeReplacedWithParagraph(i))return void this._replaceEntireContentWithParagraph(r);if(this._shouldReplaceFirstBlockWithParagraph(o,i))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let s=0;o.getFirstRange().getMinimalFlatRanges().forEach((e=>{s+=fo(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),t.deleteContent(o,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(s),r.setSelection(o),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;const o=r.getChild(0);return!o||"paragraph"!==o.name}_replaceEntireContentWithParagraph(e){const t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),o=e.createElement("paragraph");e.remove(e.createRangeIn(r)),e.insert(o,r),e.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const n=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const r=e.getFirstPosition(),o=n.schema.getLimitElement(r),i=o.getChild(0);return r.parent==i&&!!e.containsEntireContent(i)&&!!n.schema.checkChild(o,"paragraph")&&"paragraph"!=i.name}}class Sd extends Ri{constructor(e){super(e);const t=e.document;let n=0;function r(e,n,r){const o=new mo(t,"delete",t.selection.getFirstRange());t.fire(o,new ea(t,n,r)),o.stop.called&&e.stop()}t.on("keyup",((e,t)=>{t.keyCode!=Ao.delete&&t.keyCode!=Ao.backspace||(n=0)})),t.on("keydown",((e,t)=>{const o={};if(t.keyCode==Ao.delete)o.direction="forward",o.unit="character";else{if(t.keyCode!=Ao.backspace)return;o.direction="backward",o.unit="codePoint"}const i=Po.isMac?t.altKey:t.ctrlKey;o.unit=i?"word":o.unit,o.sequence=++n,r(e,t.domEvent,o)})),Po.isAndroid&&t.on("beforeinput",((t,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const o={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(o.selectionToRemove=e.domConverter.domSelectionToView(i)),r(t,n.domEvent,o)}))}observe(){}}class Pd extends Qe{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,n=t.document;t.addObserver(Sd);const r=new jd(e,"forward");if(e.commands.add("deleteForward",r),e.commands.add("forwardDelete",r),e.commands.add("delete",new jd(e,"backward")),this.listenTo(n,"delete",((n,r)=>{const o={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){const t=e.model.createSelection(),n=[];for(const o of r.selectionToRemove.getRanges())n.push(e.editing.mapper.toModelRange(o));t.setTo(n),o.selection=t}e.execute("forward"==r.direction?"deleteForward":"delete",o),r.preventDefault(),t.scrollToTheSelection()}),{priority:"low"}),Po.isAndroid){let e=null;this.listenTo(n,"delete",((t,n)=>{const r=n.domTarget.ownerDocument.defaultView.getSelection();e={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",((t,n)=>{if(e){const t=n.domTarget.ownerDocument.defaultView.getSelection();t.collapse(e.anchorNode,e.anchorOffset),t.extend(e.focusNode,e.focusOffset),e=null}}))}}}class Td{constructor(){this._stack=[]}add(e,t){const n=this._stack,r=n[0];this._insertDescriptor(e);const o=n[0];r===o||Nd(r,o)||this.fire("change:top",{oldDescriptor:r,newDescriptor:o,writer:t})}remove(e,t){const n=this._stack,r=n[0];this._removeDescriptor(e);const o=n[0];r===o||Nd(r,o)||this.fire("change:top",{oldDescriptor:r,newDescriptor:o,writer:t})}_insertDescriptor(e){const t=this._stack,n=t.findIndex((t=>t.id===e.id));if(Nd(e,t[n]))return;n>-1&&t.splice(n,1);let r=0;for(;t[r]&&Ad(t[r],e);)r++;t.splice(r,0,e)}_removeDescriptor(e){const t=this._stack,n=t.findIndex((t=>t.id===e));n>-1&&t.splice(n,1)}}function Nd(e,t){return e&&t&&e.priority==t.priority&&Md(e.classes)==Md(t.classes)}function Ad(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Md(e.classes)>Md(t.classes)}function Md(e){return Array.isArray(e)?e.sort().join(","):e}function Rd(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Id(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new c.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Wd,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){const n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),n=new Jl;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),zd(e,t,Dd,Ld),e}function Dd(e,t,n){if(t.classes&&n.addClass(tr(t.classes),e),t.attributes)for(const r in t.attributes)n.setAttribute(r,t.attributes[r],e)}function Ld(e,t,n){if(t.classes&&n.removeClass(tr(t.classes),e),t.attributes)for(const r in t.attributes)n.removeAttribute(r,e)}function zd(e,t,n,r){const o=new Td;o.on("change:top",((t,o)=>{o.oldDescriptor&&r(e,o.oldDescriptor,o.writer),o.newDescriptor&&n(e,o.newDescriptor,o.writer)})),t.setCustomProperty("addHighlight",((e,t,n)=>o.add(t,n)),e),t.setCustomProperty("removeHighlight",((e,t,n)=>o.remove(t,n)),e)}function Fd(e){const t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Vd(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",((n,r,o)=>{t.setAttribute("contenteditable",o?"false":"true",e)})),e.on("change:isFocused",((n,r,o)=>{o?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Bd(e,t){const n=e.getSelectedElement();if(n){const r=Kd(e);if(r)return t.createRange(t.createPositionAt(n,r));if(t.schema.isObject(n)&&!t.schema.isInline(n))return t.createRangeOn(n)}const r=e.getSelectedBlocks().next().value;if(r){if(r.isEmpty)return t.createRange(t.createPositionAt(r,0));const n=t.createPositionAfter(r);return e.focus.isTouching(n)?t.createRange(n):t.createRange(t.createPositionBefore(r))}return t.createRange(e.focus)}function Hd(e,t){const n=new Ea(ki.window),r=n.getIntersection(e),o=t.height+zu.arrowVerticalOffset;if(e.top-o>n.top||e.bottom+o<n.bottom)return null;const i=r||e,a=i.left+i.width/2-t.width/2;return{top:Math.max(e.top,0)+zu.arrowVerticalOffset,left:a,name:"arrow_n"}}function Wd(){return null}function Ud(e,t,n){return e&&Rd(e)&&!n.isInline(t)}function Kd(e){return e.getAttribute("widget-type-around")}Ge(Td,d);const Yd=[Ro("arrowUp"),Ro("arrowRight"),Ro("arrowDown"),Ro("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let Sv=112;Sv<=135;Sv++)Yd.push(Sv);function qd(e){return!(!e.ctrlKey&&!e.metaKey)||Yd.includes(e.keyCode)}n(63);const $d=["before","after"],Gd=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild;class Qd extends Qe{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Cd,Pd]}constructor(e){super(e),this._currentFakeCaretModelElement=null}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",((n,r,o)=>{t.change((e=>{for(const n of t.document.roots)o?e.removeClass("ck-widget__type-around_disabled",n):e.addClass("ck-widget__type-around_disabled",n)})),o||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),r.focus(),r.scrollToTheSelection()}_listenToIfEnabled(e,t,n,r){var o=this;this.listenTo(e,t,(function(){o.isEnabled&&n(...arguments)}),r)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=Kd(e);if(!t)return!1;const n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",((e,n,o)=>{const i=o.mapper.toViewElement(n.item);Ud(i,n.item,t)&&function(e,t,n){const r=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const n=this.toDomElement(e);return function(e,t){for(const n of $d){const r=new Al({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+n],title:t[n]},children:[e.ownerDocument.importNode(Gd,!0)]});e.appendChild(r.render())}}(n,t),function(e){const t=new Al({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),r)}(o.writer,r,i)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,n=t.document.selection,r=t.schema,o=e.editing.view;function i(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"arrowKey",((e,t)=>{this._handleArrowKeyPress(e,t)}),{context:[Rd,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((t,n)=>{n.directChange&&e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(t.document,"change:data",(()=>{const t=n.getSelectedElement();t&&Ud(e.editing.mapper.toViewElement(t),t,r)||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",((e,t,n)=>{const o=n.writer;if(this._currentFakeCaretModelElement){const e=n.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(o.removeClass($d.map(i),e),this._currentFakeCaretModelElement=null)}const a=t.selection.getSelectedElement();if(!a)return;const s=n.mapper.toViewElement(a);if(!Ud(s,a,r))return;const c=Kd(t.selection);c&&(o.addClass(i(c),s),this._currentFakeCaretModelElement=a)})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",((t,n,r)=>{r||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))}))}_handleArrowKeyPress(e,t){const n=this.editor,r=n.model,o=r.document.selection,i=r.schema,a=n.editing.view,s=zo(t.keyCode,n.locale.contentLanguageDirection),c=a.document.selection.getSelectedElement();let l;Ud(c,n.editing.mapper.toModelElement(c),i)?l=this._handleArrowKeyPressOnSelectedWidget(s):o.isCollapsed&&(l=this._handleArrowKeyPressWhenSelectionNextToAWidget(s)),l&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,n=Kd(t.document.selection);return t.change((t=>n?n!==(e?"after":"before")&&(t.removeSelectionAttribute("widget-type-around"),!0):(t.setSelectionAttribute("widget-type-around",e?"after":"before"),!0)))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,n=t.model,r=n.schema,o=t.plugins.get("Widget"),i=o._getObjectElementNextToSelection(e);return!!Ud(t.editing.mapper.toViewElement(i),i,r)&&(n.change((t=>{o._setSelectionOverElement(i),t.setSelectionAttribute("widget-type-around",e?"before":"after")})),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",((n,r)=>{const o=r.domTarget.closest(".ck-widget__type-around__button");if(!o)return;const i=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),a=function(e,t){const n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,t.domConverter),s=e.editing.mapper.toModelElement(a);this._insertParagraph(s,i),r.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,n=e.editing.view;this._listenToIfEnabled(n.document,"enter",((n,r)=>{if("atTarget"!=n.eventPhase)return;const o=t.getSelectedElement(),i=e.editing.mapper.toViewElement(o),a=e.model.schema;let s;this._insertParagraphAccordingToFakeCaretPosition()?s=!0:Ud(i,o,a)&&(this._insertParagraph(o,r.isSoft?"before":"after"),s=!0),s&&(r.preventDefault(),n.stop())}),{context:Rd})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view,t=[Ao.enter,Ao.delete,Ao.backspace];this._listenToIfEnabled(e.document,"keydown",((e,n)=>{t.includes(n.keyCode)||qd(n)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,"delete",((t,o)=>{if("atTarget"!=t.eventPhase)return;const i=Kd(n.document.selection);if(!i)return;const a=o.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===i===c)e.execute("delete",{selection:n.createSelection(s,"on")});else{const t=r.getNearestSelectionRange(n.createPositionAt(s,i),a);if(t)if(t.isCollapsed){const o=n.createSelection(t.start);if(n.modifySelection(o,{direction:a}),o.focus.isEqual(t.start)){const e=function(e,t){let n=t;for(const r of t.getAncestors({parentFirst:!0})){if(r.childCount>1||e.isLimit(r))break;n=r}return n}(r,t.start.parent);n.deleteContent(n.createSelection(e,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(t),e.execute(c?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(t),e.execute(c?"deleteForward":"delete")}))}o.preventDefault(),t.stop()}),{context:Rd})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",((e,r)=>{let[o,i]=r;if(i&&!i.is("documentSelection"))return;const a=Kd(n);return a?(e.stop(),t.change((e=>{const r=n.getSelectedElement(),i=t.createPositionAt(r,a),s=e.createSelection(i),c=t.insertContent(o,s);return e.setSelection(s),c}))):void 0}),{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",((e,n)=>{let[r]=n;r&&!r.is("documentSelection")||Kd(t)&&e.stop()}),{priority:"high"})}}function Xd(e){const t=e.model;return(n,r)=>{const o=r.keyCode==Ao.arrowup,i=r.keyCode==Ao.arrowdown,a=r.shiftKey,s=t.document.selection;if(!o&&!i)return;const c=i;if(a&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,c))return;const l=function(e,t,n){const r=e.model;if(n){const e=t.isCollapsed?t.focus:t.getLastPosition(),n=Jd(r,e,"forward");if(!n)return null;const o=r.createRange(e,n),i=Zd(r.schema,o,"backward");return i&&e.isBefore(i)?r.createRange(e,i):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),n=Jd(r,e,"backward");if(!n)return null;const o=r.createRange(n,e),i=Zd(r.schema,o,"forward");return i&&e.isAfter(i)?r.createRange(i,e):null}}(e,s,c);l&&!l.isCollapsed&&function(e,t,n){const r=e.model,o=e.view.domConverter;if(n){const e=r.createSelection(t.start);r.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=r.createRange(e.focus,t.end))}const i=e.mapper.toViewRange(t),a=o.viewRangeToDom(i),s=Ea.getDomRangeRects(a);let c;for(const l of s)if(void 0!==c){if(Math.round(l.top)>=c)return!1;c=Math.max(c,Math.round(l.bottom))}else c=Math.round(l.bottom);return!0}(e,l,c)&&(t.change((e=>{const n=c?l.end:l.start;if(a){const r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}function Jd(e,t,n){const r=e.schema,o=e.createRangeIn(t.root),i="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:a,item:s,type:c}of o.getWalker({startPosition:t,direction:n})){if(r.isLimit(s)&&!r.isInline(s))return a;if(c==i&&r.isBlock(s))return null}return null}function Zd(e,t,n){const r="backward"==n?t.end:t.start;if(e.checkChild(r,"$text"))return r;for(const{nextPosition:o}of t.getWalker({direction:n}))if(e.checkChild(o,"$text"))return o}n(65);class ef extends Qe{static get pluginName(){return"Widget"}static get requires(){return[Qd,Pd]}init(){var e=this;const t=this.editor,n=t.editing.view,r=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((e,n,r)=>{const o=r.writer,i=n.selection;if(i.isCollapsed)return;const a=i.getSelectedElement();if(!a)return;const s=t.editing.mapper.toViewElement(a);Rd(s)&&r.consumable.consume(i,"selection")&&o.setSelection(o.createRangeOn(s),{fake:!0,label:Fd(s)})})),this.editor.editing.downcastDispatcher.on("selection",((e,t,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const r=n.writer,o=r.document.selection;let i=null;for(const a of o.getRanges())for(const e of a){const t=e.item;Rd(t)&&!tf(t,i)&&(r.addClass("ck-widget_selected",t),this._previouslySelected.add(t),i=t)}}),{priority:"low"}),n.addObserver(fd),this.listenTo(r,"mousedown",(function(){return e._onMousedown(...arguments)})),this.listenTo(r,"arrowKey",(function(){e._handleSelectionChangeOnArrowKeyPress(...arguments)}),{context:[Rd,"$text"]}),this.listenTo(r,"arrowKey",(function(){e._preventDefaultOnArrowKeyPress(...arguments)}),{context:"$root"}),this.listenTo(r,"arrowKey",Xd(this.editor.editing),{context:"$text"}),this.listenTo(r,"delete",((e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())}),{context:"$root"})}_onMousedown(e,t){const n=this.editor,r=n.editing.view,o=r.document;let i=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Rd(e))return!1;e=e.parent}return!1}(i)){if((Po.isSafari||Po.isGecko)&&t.domEvent.detail>=3){const e=n.editing.mapper,r=i.is("attributeElement")?i.findAncestor((e=>!e.is("attributeElement"))):i,o=e.toModelElement(r);t.preventDefault(),this.editor.model.change((e=>{e.setSelection(o,"in")}))}return}if(!Rd(i)&&(i=i.findAncestor(Rd),!i))return;Po.isAndroid&&t.preventDefault(),o.isFocused||r.focus();const a=n.editing.mapper.toModelElement(i);this._setSelectionOverElement(a)}_handleSelectionChangeOnArrowKeyPress(e,t){const n=t.keyCode,r=this.editor.model,o=r.schema,i=r.document.selection,a=i.getSelectedElement(),s=zo(n,this.editor.locale.contentLanguageDirection);if(a&&o.isObject(a)){const n=s?i.getLastPosition():i.getFirstPosition(),a=o.getNearestSelectionRange(n,s?"forward":"backward");return void(a&&(r.change((e=>{e.setSelection(a)})),t.preventDefault(),e.stop()))}if(!i.isCollapsed)return;const c=this._getObjectElementNextToSelection(s);c&&o.isObject(c)&&(this._setSelectionOverElement(c),t.preventDefault(),e.stop())}_preventDefaultOnArrowKeyPress(e,t){const n=this.editor.model,r=n.schema,o=n.document.selection.getSelectedElement();o&&r.isObject(o)&&(t.preventDefault(),e.stop())}_handleDelete(e){if(this.editor.isReadOnly)return;const t=this.editor.model.document.selection;if(!t.isCollapsed)return;const n=this._getObjectElementNextToSelection(e);return n?(this.editor.model.change((e=>{let r=t.anchor.parent;for(;r.isEmpty;){const t=r;r=t.parent,e.remove(t)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(e){this.editor.model.change((t=>{t.setSelection(t.createRangeOn(e))}))}_getObjectElementNextToSelection(e){const t=this.editor.model,n=t.schema,r=t.document.selection,o=t.createSelection(r);t.modifySelection(o,{direction:e?"forward":"backward"});const i=e?o.focus.nodeBefore:o.focus.nodeAfter;return i&&n.isObject(i)?i:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass("ck-widget_selected",t);this._previouslySelected.clear()}}function tf(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var nf=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return y(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ma(e,t,{leading:r,maxWait:t,trailing:o})};n(67);class rf extends Qe{static get pluginName(){return"DragDrop"}static get requires(){return[wd,ef]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=nf((e=>this._updateDropMarker(e)),40),this._removeDropMarkerDelayed=sf((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=sf((()=>this._clearDraggableAttributes()),40),t.addObserver(vd),t.addObserver(fd),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,n)=>{n||this._finalizeDragging(!1)})),Po.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,n=t.document,r=e.editing.view,o=r.document;this.listenTo(o,"dragstart",((r,i)=>{const s=n.selection;if(i.target&&i.target.is("editableElement"))return void i.preventDefault();const c=i.target?cf(i.target):null;if(c){const n=e.editing.mapper.toModelElement(c);this._draggedRange=bs.fromRange(t.createRangeOn(n)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&Rd(e)||(this._draggedRange=bs.fromRange(s.getFirstRange()))}if(!this._draggedRange)return void i.preventDefault();this._draggingUid=a(),i.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",i.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const l=t.createSelection(this._draggedRange.toRange()),u=e.data.toView(t.getSelectedContent(l));o.fire("clipboardOutput",{dataTransfer:i.dataTransfer,content:u,method:r.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(o,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(o,"dragenter",(()=>{this.isEnabled&&r.focus()})),this.listenTo(o,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(o,"dragging",((t,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const r=of(e,n.targetRanges,n.target);this._draggedRange||(n.dataTransfer.dropEffect="copy"),Po.isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),r&&this._updateDropMarkerThrottled(r)}),{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"clipboardInput",((t,n)=>{if("drop"!=n.method)return;const r=of(e,n.targetRanges,n.target);return this._removeDropMarker(),r?(this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==af(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(r,!0)?(this._finalizeDragging(!1),void t.stop()):void(n.targetRanges=[e.editing.mapper.toViewRange(r)])):(this._finalizeDragging(!1),void t.stop())}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(wd);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(n)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n="move"==af(t.dataTransfer),r=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(r&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"mousedown",((r,o)=>{if(Po.isAndroid||!o)return;this._clearDraggableAttributesDelayed.cancel();let i=cf(o.target);if(Po.isBlink&&!e.isReadOnly&&!i&&!n.selection.isCollapsed){const e=n.selection.getSelectedElement();e&&Rd(e)||(i=n.selection.editableElement)}i&&(t.change((e=>{e.setAttribute("draggable","true",i)})),this._draggableElement=e.editing.mapper.toModelElement(i))})),this.listenTo(n,"mouseup",(()=>{Po.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change((t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,n)=>{let{writer:r}=n;if(e.model.schema.checkChild(t.markerRange.start,"$text"))return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.innerHTML="⁠<span></span>⁠",t}))}})}_updateDropMarker(e){const t=this.editor,n=t.model.markers;t.model.change((t=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change((e=>{e.removeMarker("drop-target")}))}_finalizeDragging(e){const t=this.editor,n=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function of(e,t,n){const r=e.model,o=e.editing.mapper;let i=null;const a=t?t[0].start:null;if(n.is("uiElement")&&(n=n.parent),i=function(e,t){const n=e.model,r=e.editing.mapper;if(Rd(t))return n.createRangeOn(r.toModelElement(t));if(!t.is("editableElement")){const e=t.findAncestor((e=>Rd(e)||e.is("editableElement")));if(Rd(e))return n.createRangeOn(r.toModelElement(e))}return null}(e,n),i)return i;const s=function(e,t){const n=e.editing.mapper,r=e.editing.view,o=n.toModelElement(t);if(o)return o;const i=r.createPositionBefore(t),a=n.findMappedViewAncestor(i);return n.toModelElement(a)}(e,n),c=a?o.toModelPosition(a):null;return c?(i=function(e,t,n){const r=e.model;if(!r.schema.checkChild(n,"$block"))return null;const o=r.createPositionAt(n,0),i=t.path.slice(0,o.path.length),a=r.createPositionFromPath(t.root,i).nodeAfter;return a&&r.schema.isObject(a)?r.createRangeOn(a):null}(e,c,s),i||(i=r.schema.getNearestSelectionRange(c,Po.isGecko?"forward":"backward"),i||function(e,t){const n=e.model;for(;t;){if(n.schema.isObject(t))return n.createRangeOn(t);t=t.parent}}(e,c.parent))):function(e,t){const n=e.model,r=n.schema,o=n.createPositionAt(t,0);return r.getNearestSelectionRange(o,"forward")}(e,s)}function af(e){return Po.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function sf(e,t){let n;function r(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r.cancel(),n=setTimeout((()=>e(...i)),t)}return r.cancel=()=>{clearTimeout(n)},r}function cf(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(Rd);if(Rd(e))return e;const t=e.findAncestor((e=>Rd(e)||e.is("editableElement")));return Rd(t)?t:null}class lf extends Qe{static get pluginName(){return"PastePlainText"}static get requires(){return[wd]}init(){const e=this.editor,t=e.model,n=e.editing.view,r=n.document,o=t.document.selection;let i=!1;n.addObserver(vd),this.listenTo(r,"keydown",((e,t)=>{i=t.shiftKey})),e.plugins.get(wd).on("contentInsertion",((e,n)=>{(i||function(e,t){if(e.childCount>1)return!1;const n=e.getChild(0);return!t.isObject(n)&&0==[...n.getAttributeKeys()].length}(n.content,t.schema))&&t.change((e=>{const r=Array.from(o.getAttributes()).filter((e=>{let[n]=e;return t.schema.getAttributeProperties(n).isFormatting}));o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0}),r.push(...o.getAttributes());const i=e.createRangeIn(n.content);for(const t of i.getItems())t.is("$textProxy")&&e.setAttributes(r,t)}))}))}}class uf extends Qe{static get pluginName(){return"Clipboard"}static get requires(){return[wd,rf,lf]}}class df extends Je{execute(){const e=this.editor.model,t=e.document;e.change((n=>{!function(e,t,n){const r=n.isCollapsed,o=n.getFirstRange(),i=o.start.parent,a=o.end.parent,s=i==a;if(r){const r=kd(e.schema,n.getAttributes());ff(e,t,o.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(r)}else{const r=!(o.start.isAtStart&&o.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:r}),s?ff(e,t,n.focus):r&&t.setSelection(a,0)}}(e,n,t.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;const r=t.getFirstRange(),o=r.start.parent,i=r.end.parent;return!hf(o,e)&&!hf(i,e)||o===i}(e.schema,t.selection)}}function ff(e,t,n){const r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function hf(e,t){return!e.is("rootElement")&&(t.isLimit(e)||hf(e.parent,t))}class pf extends Qe{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,o=r.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(e,t)=>{let{writer:n}=t;return n.createEmptyElement("br")}}),r.addObserver(xd),e.commands.add("shiftEnter",new df(e)),this.listenTo(o,"enter",((t,n)=>{n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}class mf extends Je{execute(){const e=this.editor.model,t=e.document.selection;let n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!gf(e.schema,n))do{if(n=n.parent,!n)return}while(!gf(e.schema,n));e.change((e=>{e.setSelection(n,"in")}))}}function gf(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const bf=Io("Ctrl+A");class vf extends Qe{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new mf(e)),this.listenTo(t,"keydown",((t,n)=>{Ro(n)===bf&&(e.execute("selectAll"),n.preventDefault())}))}}class yf extends Qe{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(t=>{const n=e.commands.get("selectAll"),r=new eu(t),o=t.t;return r.set({label:o("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),r.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(r,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),r}))}}class wf extends Qe{static get requires(){return[vf,yf]}static get pluginName(){return"SelectAll"}}class kf extends Je{constructor(e,t){super(e),this._buffer=new Ed(e.model,t),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document,r=e.text||"",o=r.length,i=e.range?t.createSelection(e.range):n.selection,a=e.resultRange;t.enqueueChange(this._buffer.batch,(e=>{this._buffer.lock(),this._batches.add(this._buffer.batch),t.deleteContent(i),r&&t.insertContent(e.createText(r,n.selection.getAttributes()),i),a?e.setSelection(a):i.is("documentSelection")||e.setSelection(i),this._buffer.unlock(),this._buffer.input(o)}))}}function _f(e){if(e.newChildren.length-e.oldChildren.length!=1)return;const t=function(e,t){const n=[];let r,o=0;return e.forEach((e=>{"equal"==e?(i(),o++):"insert"==e?(a("insert")?r.values.push(t[o]):(i(),r={type:"insert",index:o,values:[t[o]]}),o++):a("delete")?r.howMany++:(i(),r={type:"delete",index:o,howMany:1})})),i(),n;function i(){r&&(n.push(r),r=null)}function a(e){return r&&r.type==e}}(hi(e.oldChildren,e.newChildren,Of),e.newChildren);if(t.length>1)return;const n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}function Of(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}class xf{constructor(e){this.editor=e,this.editing=this.editor.editing}handle(e,t){if(function(e){if(0==e.length)return!1;for(const t of e)if("children"===t.type&&!_f(t))return!0;return!1}(e))this._handleContainerChildrenMutations(e,t);else for(const n of e)this._handleTextMutation(n,t),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(e,t){const n=function(e){const t=e.map((e=>e.node)).reduce(((e,t)=>e.getCommonAncestor(t,{includeSelf:!0})));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((e=>e.is("containerElement")||e.is("rootElement")))}(e);if(!n)return;const r=this.editor.editing.view.domConverter.mapViewToDom(n),o=new ji(this.editor.editing.view.document),i=this.editor.data.toModel(o.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(!a)return;const s=Array.from(i.getChildren()),c=Array.from(a.getChildren()),l=s[s.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),f=u&&!u.is("element","softBreak");d&&f&&s.pop();const h=this.editor.model.schema;if(!Cf(s,h)||!Cf(c,h))return;const p=s.map((e=>e.is("$text")?e.data:"@")).join("").replace(/\u00A0/g," "),m=c.map((e=>e.is("$text")?e.data:"@")).join("").replace(/\u00A0/g," ");if(m===p)return;const g=hi(m,p),{firstChangeAt:b,insertions:v,deletions:y}=Ef(g);let w=null;t&&(w=this.editing.mapper.toModelRange(t.getFirstRange()));const k=p.substr(b,v),_=this.editor.model.createRange(this.editor.model.createPositionAt(a,b),this.editor.model.createPositionAt(a,b+y));this.editor.execute("input",{text:k,range:_,resultRange:w})}_handleTextMutation(e,t){if("text"!=e.type)return;const n=e.newText.replace(/\u00A0/g," "),r=e.oldText.replace(/\u00A0/g," ");if(r===n)return;const o=hi(r,n),{firstChangeAt:i,insertions:a,deletions:s}=Ef(o);let c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));const l=this.editing.view.createPositionAt(e.node,i),u=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(u,u.getShiftedBy(s)),f=n.substr(i,a);this.editor.execute("input",{text:f,range:d,resultRange:c})}_handleTextNodeInsertion(e){if("children"!=e.type)return;const t=_f(e),n=this.editing.view.createPositionAt(e.node,t.index),r=this.editing.mapper.toModelPosition(n),o=t.values[0].data;this.editor.execute("input",{text:o.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}function Cf(e,t){return e.every((e=>t.isInline(e)))}function Ef(e){let t=null,n=null;for(let i=0;i<e.length;i++)"equal"!=e[i]&&(t=null===t?i:t,n=i);let r=0,o=0;for(let i=t;i<=n;i++)"insert"!=e[i]&&r++,"delete"!=e[i]&&o++;return{insertions:o,deletions:r,firstChangeAt:t}}class jf extends Qe{static get pluginName(){return"Input"}init(){const e=this.editor,t=new kf(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){let t=null;const n=e.model,r=e.editing.view,o=e.commands.get("input");function i(e){const i=n.document,s=r.document.isComposing,c=t&&t.isEqual(i.selection);t=null,o.isEnabled&&(qd(e)||i.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&c||a())}function a(){const e=o.buffer;e.lock();const t=e.batch;o._batches.add(t),n.enqueueChange(t,(()=>{n.deleteContent(n.document.selection)})),e.unlock()}Po.isAndroid?r.document.on("beforeinput",((e,t)=>i(t)),{priority:"lowest"}):r.document.on("keydown",((e,t)=>i(t)),{priority:"lowest"}),r.document.on("compositionstart",(function(){const e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),r.document.on("compositionend",(()=>{t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",((t,n,r)=>{new xf(e).handle(n,r)}))}(e)}isInput(e){return this.editor.commands.get("input")._batches.has(e)}}class Sf extends Qe{static get requires(){return[jf,Pd]}static get pluginName(){return"Typing"}}function Pf(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce(((e,r)=>r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")),""),range:t.createRange(n,e.end)}}class Tf{constructor(e,t){this.model=e,this.testCallback=t,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))})),this._startListening()}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",((t,n)=>{let{directChange:r}=n;r&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(e,"change:data",((e,t)=>{"transparent"!=t.type&&this._evaluateTextBeforeSelection("data",{batch:t})}))}_evaluateTextBeforeSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.model,r=n.document.selection,o=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),{text:i,range:a}=Pf(o,n),s=this.testCallback(i);if(!s&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!s,s){const n=Object.assign(t,{text:i,range:a});"object"==typeof s&&Object.assign(n,s),this.fire("matched:"+e,n)}}}Ge(Tf,We);class Nf extends Qe{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.model,n=e.editing.view,r=e.locale,o=t.document.selection;this.listenTo(n.document,"arrowKey",((e,t)=>{if(!o.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const n=t.keyCode==Ao.arrowright,i=t.keyCode==Ao.arrowleft;if(!n&&!i)return;const a=r.contentLanguageDirection;let s=!1;s="ltr"===a&&n||"rtl"===a&&i?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===s&&e.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",((e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&If(o.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!Af(n,t))&&(If(r,t)?(Rf(e),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,r=n.document.selection,o=r.getFirstPosition();return this._isGravityOverridden?(Rf(e),this._restoreGravity(),Mf(n,t,o),!0):o.isAtStart?!!Af(r,t)&&(Rf(e),Mf(n,t,o),!0):function(e,t){return If(e.getShiftedBy(-1),t)}(o,t)?o.isAtEnd&&!Af(r,t)&&If(o,t)?(Rf(e),Mf(n,t,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((e=>e.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function Af(e,t){for(const n of t)if(e.hasAttribute(n))return!0;return!1}function Mf(e,t,n){const r=n.nodeBefore;e.change((e=>{r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Rf(e){e.preventDefault()}function If(e,t){const{nodeBefore:n,nodeAfter:r}=e;for(const o of t){const e=n?n.getAttribute(o):void 0;if((r?r.getAttribute(o):void 0)!==e)return!0}return!1}var Df=/[\\^$.*+?()[\]{}|]/g,Lf=RegExp(Df.source),zf=function(e){return(e=Tr(e))&&Lf.test(e)?e.replace(Df,"\\$&"):e};const Ff={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:"1/2",to:"\xbd"},oneThird:{from:"1/3",to:"\u2153"},twoThirds:{from:"2/3",to:"\u2154"},oneForth:{from:"1/4",to:"\xbc"},threeQuarters:{from:"3/4",to:"\xbe"},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Kf('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Kf("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Kf("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Kf('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Kf('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Kf("'"),to:[null,"\u201a",null,"\u2019"]}},Vf={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Bf=["symbols","mathematical","typography","quotes"];function Hf(e){return"string"==typeof e?new RegExp("(".concat(zf(e),")$")):e}function Wf(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function Uf(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Kf(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}function Yf(e,t,n,r){return r.createRange(qf(e,t,n,!0,r),qf(e,t,n,!1,r))}function qf(e,t,n,r,o){let i=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;for(;i&&i.getAttribute(t)==n;)a=i,i=r?i.previousSibling:i.nextSibling;return a?o.createPositionAt(a,r?"before":"after"):e}class $f extends Je{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",((e,t)=>{t[1]={...t[1]};const n=t[1];n.batchType||(n.batchType="transparent")}),{priority:"high"}),this.listenTo(e.data,"set",((e,t)=>{"transparent"===t[1].batchType&&this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){const t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){const r=this.editor.model,o=r.document,i=[],a=e.map((e=>e.getTransformedByOperations(n))),s=a.flat();for(const c of a){const e=c.filter((e=>e.root!=o.graveyard)).filter((e=>!Qf(e,s)));e.length&&(Gf(e),i.push(e[0]))}i.length&&r.change((e=>{e.setSelection(i,{backward:t})}))}_undo(e,t){const n=this.editor.model,r=n.document;this._createdBatches.add(t);const o=e.operations.slice().filter((e=>e.isDocumentOperation));o.reverse();for(const i of o){const e=i.baseVersion+1,o=Array.from(r.history.getOperations(e)),a=od([i.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const s of a)t.addOperation(s),n.applyOperation(s),r.history.setOperationAsUndone(i,s)}}}function Gf(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;t<e.length;t++){const n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Qf(e,t){return t.some((t=>t!==e&&t.containsRange(e,!0)))}class Xf extends $f{execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,n=this._stack.splice(t,1)[0],r=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(r,(()=>{this._undo(n.batch,r);const e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e),this.fire("revert",n.batch,r)})),this.refresh()}}class Jf extends $f{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(t,(()=>{const n=e.batch.operations[e.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(n);this._restoreSelection(e.selection.ranges,e.selection.isBackward,r),this._undo(e.batch,t)})),this.refresh()}}class Zf extends Qe{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){const e=this.editor;this._undoCommand=new Xf(e),this._redoCommand=new Jf(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const n=t[0];if(!n.isDocumentOperation)return;const r=n.batch,o=this._redoCommand._createdBatches.has(r),i=this._undoCommand._createdBatches.has(r);this._batchRegistry.has(r)||"transparent"==r.type&&!o&&!i||(o?this._undoCommand.addBatch(r):i||(this._undoCommand.addBatch(r),this._redoCommand.clearStack()),this._batchRegistry.add(r))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,n)=>{this._redoCommand.addBatch(n)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var eh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',th='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class nh extends Qe{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?eh:th,o="ltr"==t.uiLanguageDirection?th:eh;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",o)}_addButton(e,t,n,r){const o=this.editor;o.ui.componentFactory.add(e,(i=>{const a=o.commands.get(e),s=new eu(i);return s.set({label:t,icon:r,keystroke:n,tooltip:!0}),s.bind("isEnabled").to(a,"isEnabled"),this.listenTo(s,"execute",(()=>{o.execute(e),o.editing.view.focus()})),s}))}}class rh extends Qe{static get requires(){return[Zf,nh]}static get pluginName(){return"Undo"}}class oh{constructor(){const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise(((n,r)=>{t.onload=()=>{const e=t.result;this._data=e,n(e)},t.onerror=()=>{r("error")},t.onabort=()=>{r("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}Ge(oh,We);class ih extends Qe{static get pluginName(){return"FileRepository"}static get requires(){return[Cl]}init(){this.loaders=new Zn,this.loaders.on("add",(()=>this._updatePendingAction())),this.loaders.on("remove",(()=>this._updatePendingAction())),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0))}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return Object(c.b)("filerepository-no-upload-adapter"),null;const t=new ah(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then((e=>{this._loadersMap.set(e,t)})).catch((()=>{})),t.on("change:uploaded",(()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e})),t.on("change:uploadTotal",(()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e})),t}destroyLoader(e){const t=e instanceof ah?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,n)=>{e===t&&this._loadersMap.delete(n)}))}_updatePendingAction(){const e=this.editor.plugins.get(Cl);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,n=e=>"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.");this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}Ge(ih,We);class ah{constructor(e,t){this.id=a(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new oh,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((e=>this._filePromiseWrapper?e:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new c.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((e=>this._reader.read(e))).then((e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e})).catch((e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e}))}upload(){if("idle"!=this.status)throw new c.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((e=>(this.uploadResponse=e,this.status="idle",e))).catch((e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e}))}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise(((n,r)=>{t.rejecter=r,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,n(e)})).catch((e=>{t.isFulfilled=!0,r(e)}))})),t}}Ge(ah,We);class sh extends Nl{constructor(e){super(e),this.buttonView=new eu(e),this._fileInputView=new ch(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class ch extends Nl{constructor(e){super(e),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}function lh(){let e=function(e){e=e.toLowerCase();const t=document.cookie.split(";");for(const n of t){const t=n.split("=");if(decodeURIComponent(t[0].trim().toLowerCase())===e)return decodeURIComponent(t[1])}return null}("ckCsrfToken");var t,n;return e&&40==e.length||(e=function(e){let t="";const n=new Uint8Array(40);window.crypto.getRandomValues(n);for(let r=0;r<n.length;r++){const e="abcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%36);t+=Math.random()>.5?e.toUpperCase():e}return t}(),t="ckCsrfToken",n=e,document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/"),e}class uh{constructor(e,t,n){this.loader=e,this.url=t,this.t=n}upload(){return this.loader.file.then((e=>new Promise(((t,n)=>{this._initRequest(),this._initListeners(t,n,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,n){const r=this.xhr,o=this.loader,i=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");r.addEventListener("error",(()=>t(i))),r.addEventListener("abort",(()=>t())),r.addEventListener("load",(()=>{const n=r.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:i);e({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(e=>{e.lengthComputable&&(o.uploadTotal=e.total,o.uploaded=e.loaded)}))}_sendRequest(e){const t=new FormData;t.append("upload",e),t.append("ckCsrfToken",lh()),this.xhr.send(t)}}function dh(e,t,n,r){let o,i=null;"function"==typeof r?o=r:(i=e.commands.get(r),o=()=>{e.execute(r)}),e.model.document.on("change:data",((a,s)=>{if(i&&!i.isEnabled||!t.isEnabled)return;const c=Aa(e.model.document.selection.getRanges());if(!c.isCollapsed)return;if("transparent"==s.type)return;const l=Array.from(e.model.document.differ.getChanges()),u=l[0];if(1!=l.length||"insert"!==u.type||"$text"!=u.name||1!=u.length)return;const d=u.position.parent;if(d.is("element","codeBlock"))return;if(d.is("element","listItem")&&"function"!=typeof r&&!["numberedList","bulletedList","todoList"].includes(r))return;if(i&&!0===i.value)return;const f=d.getChild(0),h=e.model.createRangeOn(f);if(!h.containsRange(c)&&!c.end.isEqual(h.end))return;const p=n.exec(f.data.substr(0,c.end.offset));p&&e.model.enqueueChange((t=>{const n=t.createPositionAt(d,0),r=t.createPositionAt(d,p[0].length),i=new bs(n,r);if(!1!==o({match:p})){t.remove(i);const n=e.model.document.selection.getFirstRange(),r=t.createRangeIn(d);!d.isEmpty||r.isEqual(n)||r.containsRange(n,!0)||t.remove(d)}i.detach()}))}))}function fh(e,t,n,r){let o,i;n instanceof RegExp?o=n:i=n,i=i||(e=>{let t;const n=[],r=[];for(;null!==(t=o.exec(e))&&!(t&&t.length<4);){let{index:e,1:o,2:i,3:a}=t;const s=o+i+a;e+=t[0].length-s.length;const c=[e,e+o.length],l=[e+o.length+i.length,e+o.length+i.length+a.length];n.push(c),n.push(l),r.push([e+o.length,e+o.length+i.length])}return{remove:n,format:r}}),e.model.document.on("change:data",((n,o)=>{if("transparent"==o.type||!t.isEnabled)return;const a=e.model,s=a.document.selection;if(!s.isCollapsed)return;const c=Array.from(a.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const u=s.focus,d=u.parent,{text:f,range:h}=function(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce(((e,r)=>!r.is("$text")&&!r.is("$textProxy")||r.getAttribute("code")?(n=t.createPositionAfter(r),""):e+r.data),""),range:t.createRange(n,e.end)}}(a.createRange(a.createPositionAt(d,0),u),a),p=i(f),m=hh(h.start,p.format,a),g=hh(h.start,p.remove,a);m.length&&g.length&&a.enqueueChange((e=>{if(!1!==r(e,m))for(const t of g.reverse())e.remove(t)}))}))}function hh(e,t,n){return t.filter((e=>void 0!==e[0]&&void 0!==e[1])).map((t=>n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1]))))}function ph(e,t){return(n,r)=>{if(!e.commands.get(t).isEnabled)return!1;const o=e.model.schema.getValidRanges(r,t);for(const e of o)n.setAttribute(t,!0,e);n.removeSelectionAttribute(t)}}class mh extends Je{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document.selection,r=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(n.isCollapsed)r?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{const o=t.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const t of o)r?e.setAttribute(this.attributeKey,r,t):e.removeAttribute(this.attributeKey,t)}}))}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const r of n.getRanges())for(const e of r.getItems())if(t.checkAttribute(e,this.attributeKey))return e.hasAttribute(this.attributeKey);return!1}}class gh extends Qe{static get pluginName(){return"BoldEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"bold"}),e.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",e=>{const t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add("bold",new mh(e,"bold")),e.keystrokes.set("CTRL+B","bold")}}class bh extends Qe{static get pluginName(){return"BoldUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("bold",(n=>{const r=e.commands.get("bold"),o=new eu(n);return o.set({label:t("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(o,"execute",(()=>{e.execute("bold"),e.editing.view.focus()})),o}))}}class vh extends Qe{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"italic"}),e.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add("italic",new mh(e,"italic")),e.keystrokes.set("CTRL+I","italic")}}class yh extends Qe{static get pluginName(){return"ItalicUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("italic",(n=>{const r=e.commands.get("italic"),o=new eu(n);return o.set({label:t("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(o,"execute",(()=>{e.execute("italic"),e.editing.view.focus()})),o}))}}class wh extends Je{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.schema,r=t.document.selection,o=Array.from(r.getSelectedBlocks()),i=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(i){const t=o.filter((e=>kh(e)||Oh(n,e)));this._applyQuote(e,t)}else this._removeQuote(e,o.filter(kh))}))}_getValue(){const e=Aa(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!kh(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=Aa(e.getSelectedBlocks());return!!n&&Oh(t,n)}_removeQuote(e,t){_h(e,t).reverse().forEach((t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const n=e.createPositionBefore(t.start.parent);return void e.move(t,n)}t.end.isAtEnd||e.split(t.end);const n=e.createPositionAfter(t.end.parent);e.move(t,n)}))}_applyQuote(e,t){const n=[];_h(e,t).reverse().forEach((t=>{let r=kh(t.start);r||(r=e.createElement("blockQuote"),e.wrap(t,r)),n.push(r)})),n.reverse().reduce(((t,n)=>t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n))}}function kh(e){return"blockQuote"==e.parent.name?e.parent:null}function _h(e,t){let n,r=0;const o=[];for(;r<t.length;){const i=t[r],a=t[r+1];n||(n=e.createPositionBefore(i)),a&&i.nextSibling==a||(o.push(e.createRange(n,e.createPositionAfter(i))),n=null),r++}return o}function Oh(e,t){const n=e.checkChild(t.parent,"blockQuote"),r=e.checkChild(["$root","blockQuote"],t);return n&&r}class xh extends Qe{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Cd,Pd]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new wh(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((n=>{const r=e.model.document.differ.getChanges();for(const e of r)if("insert"==e.type){const r=e.position.nodeAfter;if(!r)continue;if(r.is("element","blockQuote")&&r.isEmpty)return n.remove(r),!0;if(r.is("element","blockQuote")&&!t.checkChild(e.position,r))return n.unwrap(r),!0;if(r.is("element")){const e=n.createRangeIn(r);for(const r of e.getItems())if(r.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(r),r))return n.unwrap(r),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return n.remove(t),!0}return!1}));const n=this.editor.editing.view.document,r=e.model.document.selection,o=e.commands.get("blockQuote");this.listenTo(n,"enter",((t,n)=>{r.isCollapsed&&o.value&&r.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((t,n)=>{if("backward"!=n.direction||!r.isCollapsed||!o.value)return;const i=r.getLastPosition().parent;i.isEmpty&&!i.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}),{context:"blockquote"})}}n(69);class Ch extends Qe{static get pluginName(){return"BlockQuoteUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("blockQuote",(n=>{const r=e.commands.get("blockQuote"),o=new eu(n);return o.set({label:t("Block quote"),icon:El.quote,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(o,"execute",(()=>{e.execute("blockQuote"),e.editing.view.focus()})),o}))}}class Eh extends Qe{static get pluginName(){return"CKFinderUI"}init(){const e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(t=>{const r=e.commands.get("ckfinder"),o=new eu(t);return o.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(r),o.on("execute",(()=>{e.execute("ckfinder"),e.editing.view.focus()})),o}))}}class jh extends Je{constructor(e){super(e),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){const e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new c.a("ckfinder-unknown-openermethod",e);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const r=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=t=>{r&&r(t),t.on("files:choose",(n=>{const r=n.data.files.toArray(),o=r.filter((e=>!e.isImage())),i=r.filter((e=>e.isImage()));for(const t of o)e.execute("link",t.getUrl());const a=[];for(const e of i){const n=e.getUrl();a.push(n||t.request("file:getProxyUrl",{file:e}))}a.length&&Sh(e,a)})),t.on("file:choose:resizedImage",(t=>{const n=t.data.resizedUrl;if(n)Sh(e,[n]);else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}function Sh(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class Ph extends Qe{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Ru,"LinkEditing"]}init(){const e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new c.a("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new jh(e))}}class Th extends Qe{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ih]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),n=t.token,r=t.uploadUrl;n&&(this._uploadGateway=e.plugins.get("CloudServicesCore").createUploadGateway(n,r),e.plugins.get(ih).createUploadAdapter=e=>new Nh(this._uploadGateway,e))}}class Nh{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then((e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",((e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded})),this.fileUploader.send())))}abort(){this.fileUploader.abort()}}class Ah extends Je{refresh(){const e=this.editor.model,t=Aa(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Mh(t,e.schema)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document;t.change((r=>{const o=(e.selection||n.selection).getSelectedBlocks();for(const e of o)!e.is("element","paragraph")&&Mh(e,t.schema)&&r.rename(e,"paragraph")}))}}function Mh(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class Rh extends Je{execute(e){const t=this.editor.model;let n=e.position;t.change((e=>{const r=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,r)){const o=t.schema.findAllowedParent(n,r);if(!o)return;n=e.split(n,o).position}t.insertContent(r,n),e.setSelection(r,"in")}))}}class Ih extends Qe{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new Ah(e)),e.commands.add("insertParagraph",new Rh(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,t)=>{let{writer:n}=t;return Ih.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}Ih.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Dh extends Je{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=Aa(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((t=>Lh(e,t,this.editor.model.schema)))}execute(e){const t=this.editor.model,n=t.document,r=e.value;t.change((e=>{const o=Array.from(n.selection.getSelectedBlocks()).filter((e=>Lh(e,r,t.schema)));for(const t of o)t.is("element",r)||e.rename(t,r)}))}}function Lh(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}class zh extends Qe{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Ih]}init(){const e=this.editor,t=e.config.get("heading.options"),n=[];for(const r of t)"paragraph"!==r.model&&(e.model.schema.register(r.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(r),n.push(r.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new Dh(e,n))}afterInit(){const e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",((t,r)=>{const o=e.model.document.selection.getFirstPosition().parent;n.some((e=>o.is("element",e.model)))&&!o.is("element","paragraph")&&0===o.childCount&&r.writer.rename(o,"paragraph")}))}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:s.get("low")+1})}}n(13);class Fh extends Qe{static get pluginName(){return"HeadingUI"}init(){const e=this.editor,t=e.t,n=function(e){const t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((e=>{const t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(e),r=t("Choose heading"),o=t("Heading");e.ui.componentFactory.add("heading",(t=>{const i={},a=new Zn,s=e.commands.get("heading"),c=e.commands.get("paragraph"),l=[s];for(const e of n){const t={type:"button",model:new Iu({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(c,"value"),t.model.set("commandName","paragraph"),l.push(c)):(t.model.bind("isOn").to(s,"value",(t=>t===e.model)),t.model.set({commandName:"heading",commandValue:e.model})),a.add(t),i[e.model]=e.title}const u=Ou(t);return Cu(u,a),u.buttonView.set({isOn:!1,withText:!0,tooltip:o}),u.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),u.bind("isEnabled").toMany(l,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((e=>e))})),u.buttonView.bind("label").to(s,"value",c,"value",((e,t)=>{const n=e||t&&"paragraph";return i[n]?i[n]:r})),this.listenTo(u,"execute",(t=>{e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()})),u}))}}class Vh extends Qe{static get requires(){return[Wu]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",(t=>{(function(e){const t=e.getSelectedElement();return!(!t||!Rd(t))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,t){let{ariaLabel:n,items:r,getRelatedElement:o,balloonClassName:i="ck-toolbar-container"}=t;if(!r.length)return void Object(c.b)("widget-toolbar-no-items",{toolbarId:e});const a=this.editor,s=a.t,l=new gu(a.locale);if(l.ariaLabel=n||s("Widget toolbar"),this._toolbarDefinitions.has(e))throw new c.a("widget-toolbar-duplicated",this,{toolbarId:e});l.fillFromConfig(r,a.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:o,balloonClassName:i})}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(const r of this._toolbarDefinitions.values()){const o=r.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o)if(this.editor.ui.focusTracker.isFocused){const i=o.getAncestors().length;i>e&&(e=i,t=o,n=r)}else this._isToolbarVisible(r)&&this._hideToolbar(r);else this._isToolbarInBalloon(r)&&this._hideToolbar(r)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?Bh(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Hh(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);Bh(this.editor,t)}})))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function Bh(e,t){const n=e.plugins.get("ContextualBalloon"),r=Hh(e,t);n.updatePosition(r)}function Hh(e,t){const n=e.editing.view,r=zu.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,Hd]}}class Wh{constructor(e){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}begin(e,t,n){const r=new Ea(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const n of t)if(e.classList.contains("ck-widget__resizer__handle-"+n))return n}(e),this._referenceCoordinates=function(e,t){const n=new Ea(e),r=t.split("-"),o={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return o.x+=e.ownerDocument.defaultView.scrollX,o.y+=e.ownerDocument.defaultView.scrollY,o}(t,function(e){const t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;const o=n.style.width;o&&o.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(o):this.originalWidthPercents=function(e,t){const n=e.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/r*100}(n,r)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}Ge(Wh,We);class Uh extends Nl{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",(e=>e?"ck-orientation-"+e:""))],style:{display:e.if("_isVisible","none",(e=>!e))}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",((e,t)=>null!==e&&null!==t)),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",((t,n,r)=>"px"===e.unit?"".concat(t,"\xd7").concat(n):r+"%")),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",((e,t,n)=>t<50||n<50?"above-center":e))}_dismiss(){this.unbind(),this._isVisible=!1}}class Kh{constructor(e){this._options=e,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(e=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change((n=>{const r=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e.on("change:isEnabled",((e,t,r)=>{n.style.display=r?"":"none"})),n.style.display=e.isEnabled?"":"none",n}));n.insert(n.createPositionAt(t,"end"),r),n.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=r}))}begin(e){this.state=new Wh(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change((e=>{const n=this._options.unit||"%",r=("%"===n?t.widthPercents:t.width)+n;e.setStyle("width",r,this._options.viewElement)}));const n=this._getHandleHost(),r=new Ea(n);t.handleHostWidth=Math.round(r.width),t.handleHostHeight=Math.round(r.height);const o=new Ea(n);t.width=Math.round(o.width),t.height=Math.round(o.height),this.redraw(r),this.state.update(t)}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(t)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const r=t.parentElement,o=this._getHandleHost(),i=this._viewResizerWrapper,a=[i.getStyle("width"),i.getStyle("height"),i.getStyle("left"),i.getStyle("top")];let s;if(r.isSameNode(o)){const t=e||new Ea(o);s=[t.width+"px",t.height+"px",void 0,void 0]}else s=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==cr(a,s)&&this._options.editor.editing.view.change((e=>{e.setStyle({width:s[0],height:s[1],left:s[2],top:s[3]},i)}))}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change((e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(e){const t=this.state,n={x:(r=e).pageX,y:r.pageY};var r;const o=!this._options.isCentered||this._options.isCentered(this),i={x:t._referenceCoordinates.x-(n.x+t.originalWidth),y:n.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(i.x=n.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(i.x*=2);const a={width:Math.abs(t.originalWidth+i.x),height:Math.abs(t.originalHeight+i.y)};a.dominant=a.width/t.aspectRatio>a.height?"width":"height",a.max=a[a.dominant];const s={width:a.width,height:a.height};return"width"==a.dominant?s.height=s.width/t.aspectRatio:s.width=s.height*t.aspectRatio,{width:Math.round(s.width),height:Math.round(s.height),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*s.width*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const r of t)e.appendChild(new Al({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=r,"ck-widget__resizer__handle-"+n)}}).render());var n}_appendSizeUI(e){this._sizeView=new Uh,this._sizeView.render(),e.appendChild(this._sizeView.element)}}Ge(Kh,We),n(72),Ge(class extends Qe{static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=ki.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(fd),this._observer=Object.create(Ni),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));const n=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=nf(n,200),this.on("change:visibleResizer",n),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())}),{priority:"lowest"}),this._observer.listenTo(ki.window,"resize",this._redrawFocusedResizerThrottled);const r=this.editor.editing.view.document.selection;r.on("change",(()=>{const e=r.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(e)||null}))}destroy(){this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(e){const t=new Kh(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){const e=n.get("WidgetToolbarRepository");t.on("begin",(()=>{e.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(e.viewElement,t);const r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==t&&(this.visibleResizer=t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const n=t.domTarget;Kh.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}},We);class Yh extends Je{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,n=t.plugins.get("ImageUtils"),r=t.model,o=n.getClosestSelectedImageElement(r.document.selection);r.change((t=>{t.setAttribute("alt",e.newValue,o)}))}}function qh(e,t){const n=e.createEmptyElement("img"),r="imageBlock"===t?e.createContainerElement("figure",{class:"image"}):e.createContainerElement("span",{class:"image-inline"},{isAllowedInsideAttributeElement:!0});return e.insert(e.createPositionAt(r,0),n),r}function $h(e,t){if(e.plugins.has("ImageInlineEditing")!==e.plugins.has("ImageBlockEditing"))return{name:"img",attributes:{src:!0}};const n=e.plugins.get("ImageUtils");return e=>n.isInlineImageView(e)&&e.hasAttribute("src")?(e.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==t?null:{name:!0,attributes:["src"]}:null}function Gh(e,t){const n=Aa(t.getSelectedBlocks());return!n||e.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}class Qh extends Qe{static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=this.editor,o=r.model,i=o.document.selection;n=Xh(r,t||i,n),e={...Object.fromEntries(i.getAttributes()),...e};for(const a in e)o.schema.checkAttribute(n,a)||delete e[a];return o.change((r=>{const a=r.createElement(n,e);return t||"imageInline"==n||(t=Bd(i,o)),o.insertContent(a,t),a.parent?(r.setSelection(a,"on"),a):null}))}getClosestSelectedImageWidget(e){const t=e.getSelectedElement();if(t&&this.isImageWidget(t))return t;let n=e.getFirstPosition().parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==Xh(e,t)){const n=function(e,t){const n=Bd(e,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,e.model);if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return[...e.focus.getAncestors()].every((e=>!e.is("element","imageBlock")))}(e)}toImageWidget(e,t,n){return t.setCustomProperty("image",!0,e),Id(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}isImageWidget(e){return!!e.getCustomProperty("image")&&Rd(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:n}of t.createRangeIn(e))if(this.isInlineImageView(n))return n}}function Xh(e,t,n){const r=e.model.schema,o=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?n||("inline"===o?"imageInline":"block"===o?"imageBlock":t.is("selection")?Gh(r,t):r.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Jh extends Qe{static get requires(){return[Qh]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Yh(this.editor))}}n(74),n(7);class Zh extends Nl{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new Ma,this.keystrokes=new Ra,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._focusables=new Tl,this._focusCycler=new nu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),Sl(this)}render(){super.render(),this.keystrokes.listenTo(this.element),Pl({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}_createButton(e,t,n,r){const o=new eu(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),r&&o.delegate("execute").to(this,r),o}_createLabeledInputView(){const e=this.locale.t,t=new Au(this.locale,Mu);return t.label=e("Text alternative"),t}}function ep(e){const t=e.editing.view,n=zu.defaultPositions,r=e.plugins.get("ImageUtils");return{target:t.domConverter.viewToDom(r.getClosestSelectedImageWidget(t.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}class tp extends Qe{static get requires(){return[Wu]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",(n=>{const r=e.commands.get("imageTextAlternative"),o=new eu(n);return o.set({label:t("Change image text alternative"),icon:El.lowVision,tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),this.listenTo(o,"execute",(()=>{this._showForm()})),o}))}_createForm(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Zh(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{n.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const n=ep(e);t.updatePosition(n)}}(e):this._hideForm(!0)})),jl({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:ep(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class np extends Qe{static get requires(){return[Jh,tp]}static get pluginName(){return"ImageTextAlternative"}}function rp(e,t){return e=>{e.on("attribute:srcset:"+t,n)};function n(t,n,r){if(!r.consumable.consume(n.item,t.name))return;const o=r.writer,i=r.mapper.toViewElement(n.item),a=e.findViewImgElement(i);if(null===n.attributeNewValue){const e=n.attributeOldValue;e.data&&(o.removeAttribute("srcset",a),o.removeAttribute("sizes",a),e.width&&o.removeAttribute("width",a))}else{const e=n.attributeNewValue;e.data&&(o.setAttribute("srcset",e.data,a),o.setAttribute("sizes","100vw",a),e.width&&o.setAttribute("width",e.width,a))}}}function op(e,t,n){return e=>{e.on("attribute:".concat(n,":").concat(t),r)};function r(t,n,r){if(!r.consumable.consume(n.item,t.name))return;const o=r.writer,i=r.mapper.toViewElement(n.item),a=e.findViewImgElement(i);o.setAttribute(n.attributeKey,n.attributeNewValue||"",a)}}class ip extends Ri{observe(e){this.listenTo(e,"load",((e,t)=>{const n=t.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(t)}),{useCapture:!0})}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class ap extends Je{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&Object(c.b)("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&Object(c.b)("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(e){const t=tr(e.source),n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());t.forEach(((e,t)=>{const i=n.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&i&&r.isImage(i)){const t=this.editor.model.createPositionAfter(i);r.insertImage({...e,...o},t)}else r.insertImage({...e,...o})}))}}class sp extends Qe{static get requires(){return[Qh]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(ip),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:e=>{const t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}});const n=new ap(e);e.commands.add("insertImage",n),e.commands.add("imageInsert",n)}}class cp extends Je{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(){const e=this.editor,t=this.editor.model,n=e.plugins.get("ImageUtils"),r=n.getClosestSelectedImageElement(t.document.selection),o=Object.fromEntries(r.getAttributes());return o.src||o.uploadId?t.change((e=>{const i=Array.from(t.markers).filter((e=>e.getRange().containsItem(r))),a=n.insertImage(o,t.createSelection(r,"on"),this._modelElementName);if(!a)return null;const s=e.createRangeOn(a);for(const t of i){const n=t.getRange(),r="$graveyard"!=n.root.rootName?n.getJoined(s,!0):s;e.updateMarker(t,{range:r})}return{oldElement:r,newElement:a}})):null}}class lp extends Qe{static get requires(){return[sp,Qh,wd]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new cp(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,r=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageBlock",view:(e,t)=>{let{writer:n}=t;return qh(n,"imageBlock")}}),n.for("editingDowncast").elementToElement({model:"imageBlock",view:(e,n)=>{let{writer:o}=n;return r.toImageWidget(qh(o,"imageBlock"),o,t("image widget"))}}),n.for("downcast").add(op(r,"imageBlock","src")).add(op(r,"imageBlock","alt")).add(rp(r,"imageBlock")),n.for("upcast").elementToElement({view:$h(e,"imageBlock"),model:(e,t)=>{let{writer:n}=t;return n.createElement("imageBlock",{src:e.getAttribute("src")})}}).add(function(e){return e=>{e.on("element:figure",t)};function t(t,n,r){if(!r.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const o=e.findViewImgElement(n.viewItem);if(!o||!o.hasAttribute("src")||!r.consumable.test(o,{name:!0}))return;const i=Aa(r.convertItem(o,n.modelCursor).modelRange.getItems());i&&(r.convertChildren(n.viewItem,i),r.updateConversionResult(i,n))}}(r))}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,r=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((o,i)=>{const a=Array.from(i.content.getChildren());let s;if(!a.every(r.isInlineImageView))return;s=i.targetRanges?e.editing.mapper.toModelRange(i.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(s);if("imageBlock"===Gh(t.schema,c)){const e=new hd(n.document),t=a.map((t=>e.createElement("figure",{class:"image"},t)));i.content=e.createDocumentFragment(t)}}))}}n(11);class up extends Qe{static get requires(){return[lp,ef,np]}static get pluginName(){return"ImageBlock"}}class dp extends Qe{static get requires(){return[sp,Qh,wd]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{isObject:!0,isInline:!0,allowWhere:"$text",allowAttributes:["alt","src","srcset"]}),t.addChildCheck(((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1})),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new cp(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,r=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(e,t)=>{let{writer:n}=t;return n.createEmptyElement("img")}}),n.for("editingDowncast").elementToElement({model:"imageInline",view:(e,n)=>{let{writer:o}=n;return r.toImageWidget(qh(o,"imageInline"),o,t("image widget"))}}),n.for("downcast").add(op(r,"imageInline","src")).add(op(r,"imageInline","alt")).add(rp(r,"imageInline")),n.for("upcast").elementToElement({view:$h(e,"imageInline"),model:(e,t)=>{let{writer:n}=t;return n.createElement("imageInline",{src:e.getAttribute("src")})}})}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,r=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((o,i)=>{const a=Array.from(i.content.getChildren());let s;if(!a.every(r.isBlockImageView))return;s=i.targetRanges?e.editing.mapper.toModelRange(i.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(s);if("imageInline"===Gh(t.schema,c)){const e=new hd(n.document),t=a.map((t=>1===t.childCount?(Array.from(t.getAttributes()).forEach((n=>e.setAttribute(...n,r.findViewImgElement(t)))),t.getChild(0)):t));i.content=e.createDocumentFragment(t)}}))}}class fp extends Qe{static get requires(){return[dp,ef,np]}static get pluginName(){return"ImageInline"}}function hp(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}function pp(e,t){const n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}class mp extends Je{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils");if(!e.plugins.has(lp))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,r=n.getSelectedElement();if(!r){const e=pp(t,n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(r),this.isEnabled?this.value=!!hp(r):this.value=!1}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{focusCaptionOnShow:t}=e;this.editor.model.change((e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)}))}_showImageCaption(e,t){const n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageCaptionEditing");let o=n.getSelectedElement();const i=r._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=n.getSelectedElement());const a=i||e.createElement("caption");e.append(a,o),t&&e.setSelection(a,"in")}_hideImageCaption(e){const t=this.editor,n=t.model.document.selection,r=t.plugins.get("ImageCaptionEditing"),o=t.plugins.get("ImageUtils");let i,a=n.getSelectedElement();a?i=hp(a):(i=pp(o,n),a=i.parent),r._saveCaption(a,i),e.setSelection(a,"on"),e.remove(i)}}class gp extends Qe{static get requires(){return[Qh]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new mp(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration()}_setupConversion(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),r=e.t;e.conversion.for("upcast").elementToElement({view:e=>function(e,t){return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}(n,e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,t)=>{let{writer:r}=t;return n.isBlockImage(e.parent)?r.createContainerElement("figcaption"):null}}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,o)=>{let{writer:i}=o;if(!n.isBlockImage(e.parent))return null;const a=i.createEditableElement("figcaption");i.setCustomProperty("imageCaption",!0,a),Gu({view:t,element:a,text:r("Enter image caption"),keepOnFocus:!0});const s=Vd(a,i);return zd(s,i,((e,t,n)=>n.addClass(tr(t.classes),e)),((e,t,n)=>n.removeClass(tr(t.classes),e))),s}}),e.editing.mapper.on("modelToViewPosition",bp(t)),e.data.mapper.on("modelToViewPosition",bp(t))}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.commands.get("imageTypeInline"),r=e.commands.get("imageTypeBlock"),o=e=>{if(!e.return)return;const{oldElement:n,newElement:r}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=hp(n);if(e)return void this._saveCaption(r,e)}const o=this._getSavedCaption(n);o&&this._saveCaption(r,o)};n&&this.listenTo(n,"execute",o,{priority:"low"}),r&&this.listenTo(r,"execute",o,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Xa.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}function bp(e){return(t,n)=>{const r=n.modelPosition,o=r.parent;if(!o.is("element","imageBlock"))return;const i=n.mapper.toViewElement(o);n.viewPosition=e.createPositionAt(i,r.offset+1)}}class vp extends Qe{static get requires(){return[Qh]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),r=e.t;e.ui.componentFactory.add("toggleImageCaption",(o=>{const i=e.commands.get("toggleImageCaption"),a=new eu(o);return a.set({icon:El.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(i,"value","isEnabled"),a.bind("label").to(i,"value",(e=>r(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(a,"execute",(()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const r=pp(n,e.model.document.selection);if(r){const n=e.editing.mapper.toViewElement(r);t.scrollToTheSelection(),t.change((e=>{e.addClass("image__caption_highlighted",n)}))}})),a}))}}n(78);class yp extends Je{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map((e=>{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]})))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor,n=t.model,r=t.plugins.get("ImageUtils");n.change((t=>{const o=e.value;let i=r.getClosestSelectedImageElement(n.document.selection);o&&this.shouldConvertImageType(o,i)&&(this.editor.execute(r.isBlockImage(i)?"imageTypeInline":"imageTypeBlock"),i=r.getClosestSelectedImageElement(n.document.selection)),!o||this._styles.get(o).isDefault?t.removeAttribute("imageStyle",i):t.setAttribute("imageStyle",o,i)}))}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:wp,objectInline:kp,objectLeft:_p,objectRight:Op,objectCenter:xp,objectBlockLeft:Cp,objectBlockRight:Ep}=El,jp={inline:{name:"inline",title:"In line",icon:kp,modelElements:["imageInline"],isDefault:!0},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:_p,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"},alignBlockLeft:{name:"alignBlockLeft",title:"Left aligned image",icon:Cp,modelElements:["imageBlock"],className:"image-style-block-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:xp,modelElements:["imageBlock"],className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Op,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"},alignBlockRight:{name:"alignBlockRight",title:"Right aligned image",icon:Ep,modelElements:["imageBlock"],className:"image-style-block-align-right"},block:{name:"block",title:"Centered image",icon:xp,modelElements:["imageBlock"],isDefault:!0},side:{name:"side",title:"Side image",icon:Op,modelElements:["imageBlock"],className:"image-style-side"}},Sp={full:wp,left:Cp,right:Ep,center:xp,inlineLeft:_p,inlineRight:Op,inline:kp},Pp=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Tp(e){Object(c.b)("image-style-configuration-definition-invalid",e)}var Np={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((e=>function(e){return e="string"==typeof e?jp[e]?{...jp[e]}:{name:e}:function(e,t){const n={...t};for(const r in e)Object.prototype.hasOwnProperty.call(t,r)||(n[r]=e[r]);return n}(jp[e.name],e),"string"==typeof e.icon&&(e.icon=Sp[e.icon]||e.icon),e}(e))).filter((t=>function(e,t){let{isBlockPluginLoaded:n,isInlinePluginLoaded:r}=t;const{modelElements:o,name:i}=e;if(!(o&&o.length&&i))return Tp({style:e}),!1;{const t=[n?"imageBlock":null,r?"imageInline":null];if(!o.some((e=>t.includes(e))))return Object(c.b)("image-style-missing-dependency",{style:e,missingPlugins:o.map((e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(t,e)))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...Pp]:[]},warnInvalidStyle:Tp,DEFAULT_OPTIONS:jp,DEFAULT_ICONS:Sp,DEFAULT_DROPDOWN_DEFINITIONS:Pp};function Ap(e,t){for(const n of t)if(n.name===e)return n}class Mp extends Qe{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Qh]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=Np,n=this.editor,r=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(r,o)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:r,isInlinePluginLoaded:o}),this._setupConversion(r,o),this._setupPostFixer(),n.commands.add("imageStyle",new yp(n,this.normalizedStyles))}_setupConversion(e,t){const n=this.editor,r=n.model.schema,o=(i=this.normalizedStyles,(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const r=Ap(t.attributeNewValue,i),o=Ap(t.attributeOldValue,i),a=n.mapper.toViewElement(t.item),s=n.writer;o&&s.removeClass(o.className,a),r&&s.addClass(r.className,a)});var i;const a=function(e){const t={imageInline:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageInline"))),imageBlock:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageBlock")))};return(e,n,r)=>{if(!n.modelRange)return;const o=n.viewItem,i=Aa(n.modelRange.getItems());if(i&&r.schema.checkAttribute(i,"imageStyle"))for(const a of t[i.name])r.consumable.consume(o,{classes:a.className})&&r.writer.setAttribute("imageStyle",a.name,i)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",o),n.data.downcastDispatcher.on("attribute:imageStyle",o),e&&(r.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),t&&(r.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,n=e.plugins.get(Qh),r=new Map(this.normalizedStyles.map((e=>[e.name,e])));t.registerPostFixer((e=>{let o=!1;for(const i of t.differ.getChanges())if("insert"==i.type||"attribute"==i.type&&"imageStyle"==i.attributeKey){let t="insert"==i.type?i.position.nodeAfter:i.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!n.isImage(t))continue;const a=t.getAttribute("imageStyle");if(!a)continue;const s=r.get(a);s&&s.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),o=!0)}return o}))}}n(80);class Rp extends Qe{static get requires(){return[Mp]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],n=Ip(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const o of n)this._createButton(o);const r=Ip([...t.filter(y),...Np.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const o of r)this._createDropdown(o,n)}_createDropdown(e,t){const n=this.editor.ui.componentFactory;n.add(e.name,(r=>{let o;const{defaultItem:i,items:a,title:s}=e,c=a.filter((e=>t.find((t=>{let{name:n}=t;return Dp(n)===e})))).map((e=>{const t=n.create(e);return e===i&&(o=t),t}));a.length!==c.length&&Np.warnInvalidStyle({dropdown:e});const l=Ou(r,au),u=l.buttonView;return xu(l,c),u.set({label:Lp(s,o.label),class:null,tooltip:!0}),u.bind("icon").toMany(c,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.findIndex(J);return r<0?o.icon:c[r].icon})),u.bind("label").toMany(c,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.findIndex(J);return Lp(s,r<0?o.label:c[r].label)})),u.bind("isOn").toMany(c,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some(J)})),u.bind("class").toMany(c,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some(J)?"ck-splitbutton_flatten":null})),u.on("execute",(()=>{c.some((e=>{let{isOn:t}=e;return t}))?l.isOpen=!l.isOpen:o.fire("execute")})),l.bind("isEnabled").toMany(c,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some(J)})),l}))}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(Dp(t),(n=>{const r=this.editor.commands.get("imageStyle"),o=new eu(n);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(e=>e===t)),o.on("execute",this._executeCommand.bind(this,t)),o}))}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function Ip(e,t){for(const n of e)t[n.title]&&(n.title=t[n.title]);return e}function Dp(e){return"imageStyle:"+e}function Lp(e,t){return(e?e+": ":"")+t}function zp(e){const t=e.map((e=>e.replace("+","\\+")));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}function Fp(e){return new Promise(((t,n)=>{const r=e.getAttribute("src");fetch(r).then((e=>e.blob())).then((e=>{const n=Vp(e,r),o=n.replace("image/",""),i=new File([e],"image."+o,{type:n});t(i)})).catch((e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise(((t,n)=>{const r=ki.document.createElement("img");r.addEventListener("load",(()=>{const e=ki.document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),e.toBlob((e=>e?t(e):n()))})),r.addEventListener("error",(()=>n())),r.src=e}))}(e).then((t=>{const n=Vp(t,e),r=n.replace("image/","");return new File([t],"image."+r,{type:n})}))}(r).then(t).catch(n):n(e)))}))}function Vp(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Bp extends Qe{static get pluginName(){return"ImageUploadUI"}init(){const e=this.editor,t=e.t,n=n=>{const r=new sh(n),o=e.commands.get("uploadImage"),i=e.config.get("image.upload.types"),a=zp(i);return r.set({acceptedType:i.map((e=>"image/"+e)).join(","),allowMultipleFiles:!0}),r.buttonView.set({label:t("Insert image"),icon:El.image,tooltip:!0}),r.buttonView.bind("isEnabled").to(o),r.on("done",((t,n)=>{const r=Array.from(n).filter((e=>a.test(e.type)));r.length&&e.execute("uploadImage",{file:r})})),r};e.ui.componentFactory.add("uploadImage",n),e.ui.componentFactory.add("imageUpload",n)}}n(82),n(84),n(86);class Hp extends Qe{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>')}init(){var e=this;const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(function(){return e.uploadStatusChange(...arguments)})),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(function(){return e.uploadStatusChange(...arguments)}))}uploadStatusChange(e,t,n){const r=this.editor,o=t.item,i=o.getAttribute("uploadId");if(!n.consumable.consume(t.item,e.name))return;const a=r.plugins.get("ImageUtils"),s=r.plugins.get(ih),c=i?t.attributeNewValue:null,l=this.placeholder,u=r.editing.mapper.toViewElement(o),d=n.writer;if("reading"==c)return Wp(u,d),void Up(a,l,u,d);if("uploading"==c){const e=s.loaders.get(i);return Wp(u,d),void(e?(Kp(u,d),function(e,t,n,r){const o=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),o),n.on("change:uploadedPercent",((e,t,n)=>{r.change((e=>{e.setStyle("width",n+"%",o)}))}))}(u,d,e,r.editing.view),function(e,t,n,r){if(r.data){const o=e.findViewImgElement(t);n.setAttribute("src",r.data,o)}}(a,u,d,e)):Up(a,l,u,d))}"complete"==c&&s.loaders.get(i)&&function(e,t,n){const r=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),r),setTimeout((()=>{n.change((e=>e.remove(e.createRangeOn(r))))}),3e3)}(u,d,r.editing.view),function(e,t){qp(e,t,"progressBar")}(u,d),Kp(u,d),function(e,t){t.removeClass("ck-appear",e)}(u,d)}}function Wp(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Up(e,t,n,r){n.hasClass("ck-image-upload-placeholder")||r.addClass("ck-image-upload-placeholder",n);const o=e.findViewImgElement(n);o.getAttribute("src")!==t&&r.setAttribute("src",t,o),Yp(n,"placeholder")||r.insert(r.createPositionAfter(o),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(r))}function Kp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),qp(e,t,"placeholder")}function Yp(e,t){for(const n of e.getChildren())if(n.getCustomProperty(t))return n}function qp(e,t,n){const r=Yp(e,n);r&&t.remove(t.createRangeOn(r))}class $p extends Je{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(n)}execute(e){const t=tr(e.file),n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(n.getAttributes());t.forEach(((e,t)=>{const i=n.getSelectedElement();if(t&&i&&r.isImage(i)){const t=this.editor.model.createPositionAfter(i);this._uploadImage(e,o,t)}else this._uploadImage(e,o)}))}_uploadImage(e,t,n){const r=this.editor,o=r.plugins.get(ih).createLoader(e),i=r.plugins.get("ImageUtils");o&&i.insertImage({...t,uploadId:o.id},n)}}class Gp extends Qe{static get requires(){return[ih,Ru,wd,Qh]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const e=this.editor,t=e.model.document,n=e.conversion,r=e.plugins.get(ih),o=e.plugins.get("ImageUtils"),i=zp(e.config.get("image.upload.types")),a=new $p(e);e.commands.add("uploadImage",a),e.commands.add("imageUpload",a),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",((t,n)=>{if(r=n.dataTransfer,Array.from(r.types).includes("text/html")&&""!==r.getData("text/html"))return;var r;const o=Array.from(n.dataTransfer.files).filter((e=>!!e&&i.test(e.type)));o.length&&(t.stop(),e.model.change((t=>{n.targetRanges&&t.setSelection(n.targetRanges.map((t=>e.editing.mapper.toModelRange(t)))),e.model.enqueueChange("default",(()=>{e.execute("uploadImage",{file:o})}))})))})),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((t,n)=>{const i=Array.from(e.editing.view.createRangeIn(n.content)).filter((e=>function(e,t){return!(!e.isInlineImageView(t)||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))}(o,e.item)&&!e.item.getAttribute("uploadProcessed"))).map((e=>({promise:Fp(e.item),imageElement:e.item})));if(!i.length)return;const a=new hd(e.editing.view.document);for(const e of i){a.setAttribute("uploadProcessed",!0,e.imageElement);const t=r.createLoader(e.promise);t&&(a.setAttribute("src","",e.imageElement),a.setAttribute("uploadId",t.id,e.imageElement))}})),e.editing.view.document.on("dragover",((e,t)=>{t.preventDefault()})),t.on("change",(()=>{const n=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(const t of n)if("insert"==t.type&&"$text"!=t.name){const n=t.position.nodeAfter,i="$graveyard"==t.position.root.rootName;for(const t of Qp(e,n)){const e=t.getAttribute("uploadId");if(!e)continue;const n=r.loaders.get(e);n&&(i?o.has(e)||n.abort():(o.add(e),this._uploadImageElements.set(e,t),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((e,t)=>{let{imageElement:n,data:r}=t;const o=r.urls?r.urls:r;this.editor.model.change((e=>{e.setAttribute("src",o.default,n),this._parseAndSetSrcsetAttributeOnImage(o,n,e)}))}),{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,n=t.model,r=t.locale.t,o=t.plugins.get(ih),i=t.plugins.get(Ru),a=t.plugins.get("ImageUtils"),s=this._uploadImageElements;return n.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",s.get(e.id))})),e.read().then((()=>{const r=e.upload(),o=s.get(e.id);if(Po.isSafari){const e=t.editing.mapper.toViewElement(o),n=a.findViewImgElement(e);t.editing.view.once("render",(()=>{if(!n.parent)return;const e=t.editing.view.domConverter.mapViewToDom(n.parent);if(!e)return;const r=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=r}))}return n.enqueueChange("transparent",(e=>{e.setAttribute("uploadStatus","uploading",o)})),r})).then((t=>{n.enqueueChange("transparent",(n=>{const r=s.get(e.id);n.setAttribute("uploadStatus","complete",r),this.fire("uploadComplete",{data:t,imageElement:r})})),c()})).catch((t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&i.showWarning(t,{title:r("Upload failed"),namespace:"upload"}),n.enqueueChange("transparent",(t=>{t.remove(s.get(e.id))})),c()}));function c(){n.enqueueChange("transparent",(t=>{const n=s.get(e.id);t.removeAttribute("uploadId",n),t.removeAttribute("uploadStatus",n),s.delete(e.id)})),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let r=0;const o=Object.keys(e).filter((e=>{const t=parseInt(e,10);if(!isNaN(t))return r=Math.max(r,t),!0})).map((t=>"".concat(e[t]," ").concat(t,"w"))).join(", ");""!=o&&n.setAttribute("srcset",{data:o,width:r},t)}}function Qp(e,t){const n=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter((e=>n.isImage(e.item))).map((e=>e.item))}class Xp extends Qe{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;e.commands.add("indent",new et(e)),e.commands.add("outdent",new et(e))}}var Jp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Zp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class em extends Qe{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Jp:Zp,o="ltr"==t.uiLanguageDirection?Zp:Jp;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),o)}_defineButton(e,t,n){const r=this.editor;r.ui.componentFactory.add(e,(o=>{const i=r.commands.get(e),a=new eu(o);return a.set({label:t,icon:n,tooltip:!0}),a.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(a,"execute",(()=>{r.execute(e),r.editing.view.focus()})),a}))}}class tm{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach((e=>this._definitions.add(e))):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",((e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref"))return;const r=n.writer,o=r.document.selection;for(const i of this._definitions){const e=r.createAttributeElement("a",i.attributes,{priority:5});i.classes&&r.addClass(i.classes,e);for(const t in i.styles)r.setStyle(t,i.styles[t],e);r.setCustomProperty("link",!0,e),i.callback(t.attributeNewValue)?t.item.is("selection")?r.wrap(o.getFirstRange(),e):r.wrap(n.mapper.toViewRange(t.range),e):r.unwrap(n.mapper.toViewRange(t.range),e)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,n)=>{let{writer:r,mapper:o}=n;const i=o.toViewElement(t.item),a=Array.from(i.getChildren()).find((e=>"a"===e.name));for(const s of this._definitions){const e=hr(s.attributes);if(s.callback(t.attributeNewValue)){for(const[t,n]of e)"class"===t?r.addClass(n,a):r.setAttribute(t,n,a);s.classes&&r.addClass(s.classes,a);for(const e in s.styles)r.setStyle(e,s.styles[e],a)}else{for(const[t,n]of e)"class"===t?r.removeClass(n,a):r.removeAttribute(t,a);s.classes&&r.removeClass(s.classes,a);for(const e in s.styles)r.removeStyle(e,a)}}}))}}}var nm=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ir(e,t,n)},rm=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),om=function(e){return rm.test(e)},im=function(e){return e.split("")},am="[\\ud800-\\udfff]",sm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cm="\\ud83c[\\udffb-\\udfff]",lm="[^\\ud800-\\udfff]",um="(?:\\ud83c[\\udde6-\\uddff]){2}",dm="[\\ud800-\\udbff][\\udc00-\\udfff]",fm="(?:"+sm+"|"+cm+")?",hm="[\\ufe0e\\ufe0f]?"+fm+"(?:\\u200d(?:"+[lm,um,dm].join("|")+")[\\ufe0e\\ufe0f]?"+fm+")*",pm="(?:"+[lm+sm+"?",sm,um,dm,am].join("|")+")",mm=RegExp(cm+"(?="+cm+")|"+pm+hm,"g"),gm=function(e){return e.match(mm)||[]},bm=function(e){return om(e)?gm(e):im(e)},vm=function(e){return function(t){t=Tr(t);var n=om(t)?bm(t):void 0,r=n?n[0]:t.charAt(0),o=n?nm(n,1).join(""):t.slice(1);return r[e]()+o}}("toUpperCase");const ym=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,wm=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,km=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,_m=/^((\w+:(\/{2,})?)|(\W))/i;function Om(e,t){let{writer:n}=t;const r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function xm(e){return function(e){return e.replace(ym,"").match(wm)}(e=String(e))?e:"#"}function Cm(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function Em(e,t){const n=(r=e,km.test(r)?"mailto:":t);var r;const o=!!n&&!_m.test(e);return e&&o?n+e:e}class jm extends Je{constructor(e){super(e),this.manualDecorators=new Zn,this.automaticDecorators=new tm}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||Aa(t.getSelectedBlocks());Cm(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.editor.model,r=n.document.selection,o=[],i=[];for(const a in t)t[a]?o.push(a):i.push(a);n.change((t=>{if(r.isCollapsed){const a=r.getFirstPosition();if(r.hasAttribute("linkHref")){const s=Yf(a,"linkHref",r.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,s),o.forEach((e=>{t.setAttribute(e,!0,s)})),i.forEach((e=>{t.removeAttribute(e,s)})),t.setSelection(t.createPositionAfter(s.end.nodeBefore))}else if(""!==e){const i=hr(r.getAttributes());i.set("linkHref",e),o.forEach((e=>{i.set(e,!0)}));const{end:s}=n.insertContent(t.createText(e,i),a);t.setSelection(s)}["linkHref",...o,...i].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const a=n.schema.getValidRanges(r.getRanges(),"linkHref"),s=[];for(const e of r.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&s.push(t.createRangeOn(e));const c=s.slice();for(const e of a)this._isRangeToUpdate(e,s)&&c.push(e);for(const n of c)t.setAttribute("linkHref",e,n),o.forEach((e=>{t.setAttribute(e,!0,n)})),i.forEach((e=>{t.removeAttribute(e,n)}))}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document.selection,r=n.getSelectedElement();return Cm(r,t.schema)?r.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}}class Sm extends Je{refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();Cm(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get("link");t.change((e=>{const o=n.isCollapsed?[Yf(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref");for(const t of o)if(e.removeAttribute("linkHref",t),r)for(const n of r.manualDecorators)e.removeAttribute(n.id,t)}))}}class Pm{constructor(e){let{id:t,label:n,attributes:r,classes:o,styles:i,defaultValue:a}=e;this.id=t,this.set("value"),this.defaultValue=a,this.label=n,this.attributes=r,this.classes=o,this.styles=i}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}Ge(Pm,We),n(88);const Tm=/^(https?:)?\/\//;class Nm extends Qe{static get pluginName(){return"LinkEditing"}static get requires(){return[Nf,jf,wd]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Om}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>Om(xm(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new jm(e)),e.commands.add("unlink",new Sm(e));const t=function(e,t){const n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((e=>(e.label&&n[e.label]&&(e.label=n[e.label]),e))),t}(e.t,function(e){const t=[];if(e)for(const[n,r]of Object.entries(e)){const e=Object.assign({},r,{id:"link"+vm(n)});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((e=>"automatic"===e.mode))),this._enableManualDecorators(t.filter((e=>"manual"===e.mode))),e.plugins.get(Nf).registerAttribute("linkHref"),function(e,t,n,r){const o=e.editing.view,i=new Set;o.document.registerPostFixer((o=>{const a=e.model.document.selection;let s=!1;if(a.hasAttribute(t)){const c=Yf(a.getFirstPosition(),t,a.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(c);for(const e of l.getItems())e.is("element",n)&&!e.hasClass(r)&&(o.addClass(r,e),i.add(e),s=!0)}return s})),e.conversion.for("editingDowncast").add((e=>{function t(){o.change((e=>{for(const t of i.values())e.removeClass(r,t),i.delete(t)}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref","a","ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(e){const t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:"automatic",callback:e=>Tm.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((e=>{t.model.schema.extend("$text",{allowAttributes:e.id}),e=new Pm(e),n.add(e),t.conversion.for("downcast").attributeToElement({model:e.id,view:(t,n)=>{let{writer:r}=n;if(t){const t=r.createAttributeElement("a",e.attributes,{priority:5});e.classes&&r.addClass(e.classes,t);for(const n in e.styles)r.setStyle(n,e.styles[n],t);return r.setCustomProperty("link",!0,t),t}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...e._createPattern()},model:{key:e.id}})}))}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",(()=>{const n=t.anchor.nodeBefore,r=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(r&&r.hasAttribute("linkHref")||e.change((t=>{Am(t,Rm(e.schema))})))}),{priority:"low"})}_enableClickingAfterLink(){const e=this.editor,t=e.model;e.editing.view.addObserver(fd);let n=!1;this.listenTo(e.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const e=t.document.selection;if(!e.isCollapsed)return;if(!e.hasAttribute("linkHref"))return;const r=e.getFirstPosition(),o=Yf(r,"linkHref",e.getAttribute("linkHref"),t);(r.isTouching(o.start)||r.isTouching(o.end))&&t.change((e=>{Am(e,Rm(t.schema))}))}))}_enableTypingOverLink(){const e=this.editor,t=e.editing.view;let n,r;this.listenTo(t.document,"delete",(()=>{r=!0}),{priority:"high"}),this.listenTo(e.model,"deleteContent",(()=>{const t=e.model.document.selection;t.isCollapsed||(r?r=!1:Mm(e)&&function(e){const t=e.document.selection,n=t.getFirstPosition(),r=t.getLastPosition(),o=n.nodeAfter;return!!o&&!!o.is("$text")&&!!o.hasAttribute("linkHref")&&(o===(r.textNode||r.nodeBefore)||Yf(n,"linkHref",o.getAttribute("linkHref"),e).containsRange(e.createRange(n,r),!0))}(e.model)&&(n=t.getAttributes()))}),{priority:"high"}),this.listenTo(e.model,"insertContent",((t,o)=>{let[i]=o;r=!1,Mm(e)&&n&&(e.model.change((e=>{for(const[t,r]of n)e.setAttribute(t,r,i)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view;let o=!1,i=!1;this.listenTo(r.document,"delete",((e,t)=>{i=t.domEvent.keyCode===Ao.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{o=!1;const e=n.getFirstPosition(),r=n.getAttribute("linkHref");if(!r)return;const i=Yf(e,"linkHref",r,t);o=i.containsPosition(e)||i.end.isEqual(e)}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{i&&(i=!1,o||e.model.enqueueChange((e=>{Am(e,Rm(t.schema))})))}),{priority:"low"})}}function Am(e,t){e.removeSelectionAttribute("linkHref");for(const n of t)e.removeSelectionAttribute(n)}function Mm(e){return e.plugins.get("Input").isInput(e.model.change((e=>e.batch)))}function Rm(e){return e.getDefinition("$text").allowAttributes.filter((e=>e.startsWith("link")))}n(90);class Im extends Nl{constructor(e,t){super(e);const n=e.t;this.focusTracker=new Ma,this.keystrokes=new Ra,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusables=new Tl,this._focusCycler=new nu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&r.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children}),Sl(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((e,t)=>(e[t.name]=t.isOn,e)),{})}render(){super.render(),Pl({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const e=this.locale.t,t=new Au(this.locale,Mu);return t.label=e("Link URL"),t}_createButton(e,t,n,r){const o=new eu(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),r&&o.delegate("execute").to(this,r),o}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const n of e.manualDecorators){const r=new tu(this.locale);r.set({name:n.id,label:n.label,withText:!0}),r.bind("isOn").toMany([n,e],"value",((e,t)=>void 0===t&&void 0===e?n.defaultValue:e)),r.on("execute",(()=>{n.set("value",!r.isOn)})),t.add(r)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new Nl;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}n(92);class Dm extends Nl{constructor(e){super(e);const t=e.t;this.focusTracker=new Ma,this.keystrokes=new Ra,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(t("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(t("Edit link"),El.pencil,"edit"),this.set("href"),this._focusables=new Tl,this._focusCycler=new nu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){const r=new eu(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}_createPreviewButton(){const e=new eu(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(e=>e&&xm(e))),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(e=>e||n("This link has no URL"))),e.bind("isEnabled").to(this,"href",(e=>!!e)),e.template.tag="a",e.template.eventListeners={},e}}class Lm extends Qe{static get requires(){return[Wu]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(dd),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Wu),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const e=this.editor,t=new Dm(e.locale),n=e.commands.get("link"),r=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(t,"edit",(()=>{this._addFormView()})),this.listenTo(t,"unlink",(()=>{e.execute("unlink"),this._hideUI()})),t.keystrokes.set("Esc",((e,t)=>{this._hideUI(),t()})),t.keystrokes.set("Ctrl+K",((e,t)=>{this._addFormView(),t()})),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),r=new Im(e.locale,t);return r.urlInputView.fieldView.bind("value").to(t,"value"),r.urlInputView.bind("isReadOnly").to(t,"isEnabled",(e=>!e)),r.saveButtonView.bind("isEnabled").to(t),this.listenTo(r,"submit",(()=>{const{value:t}=r.urlInputView.fieldView.element,o=Em(t,n);e.execute("link",o,r.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(r,"cancel",(()=>{this._closeFormView()})),r.keystrokes.set("Esc",((e,t)=>{this._closeFormView(),t()})),r}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),n=e.t;e.keystrokes.set("Ctrl+K",((e,n)=>{n(),t.isEnabled&&this._showUI(!0)})),e.ui.componentFactory.add("link",(e=>{const r=new eu(e);return r.isEnabled=!0,r.label=n("Link"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',r.keystroke="Ctrl+K",r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(t,"isEnabled"),r.bind("isOn").to(t,"value",(e=>!!e)),this.listenTo(r,"execute",(()=>this._showUI(!0))),r}))}_enableUserBalloonInteractions(){const e=this.editor.editing.view.document;this.listenTo(e,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((e,t)=>{this._isUIVisible&&(this._hideUI(),t())})),jl({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let n=this._getSelectedLinkElement(),r=i();const o=()=>{const e=this._getSelectedLinkElement(),t=i();n&&!e||!n&&t!==r?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=e,r=t};function i(){return t.selection.focus.getAncestors().reverse().find((e=>e.is("element")))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,n=e.document;let r=null;if(t.markers.has("link-ui")){const t=Array.from(this.editor.editing.mapper.markerNameToElements("link-ui")),n=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));r=e.domConverter.viewRangeToDom(n)}else r=()=>{const t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:r}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&Rd(n))return zm(t.getFirstPosition());{const n=t.getFirstRange().getTrimmed(),r=zm(n.start),o=zm(n.end);return r&&r==o&&e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change((t=>{const n=e.document.selection.getFirstRange();if(e.markers.has("link-ui"))t.updateMarker("link-ui",{range:n});else if(n.start.isAtEnd){const r=n.start.getLastMatchingPosition((t=>{let{item:n}=t;return!e.schema.isContent(n)}),{boundaries:n});t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:t.createRange(r,n.end)})}else t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has("link-ui")&&e.change((e=>{e.removeMarker("link-ui")}))}}function zm(e){return e.getAncestors().find((e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}const Fm=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class Vm extends Qe{static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const e=this.editor,t=new Tf(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=Bm(e.substr(0,e.length-1));return t?{url:t}:void 0})),n=e.plugins.get("Input");t.on("matched:data",((t,r)=>{const{batch:o,range:i,url:a}=r;if(!n.isInput(o))return;const s=i.end.getShiftedBy(-1),c=s.getShiftedBy(-a.length),l=e.model.createRange(c,s);this._applyAutoLink(a,l)})),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("enter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const n=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("shiftEnter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition(),n=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:n,range:r}=Pf(e,t),o=Bm(n);if(o){const e=t.createRange(r.end.getShiftedBy(-o.length),r.end);this._applyAutoLink(o,e)}}_applyAutoLink(e,t){const n=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,n)&&n.enqueueChange((n=>{const r=this.editor.config.get("link.defaultProtocol"),o=Em(e,r);n.setAttribute("linkHref",o,t)}))}}function Bm(e){const t=Fm.exec(e);return t?t[2]:null}class Hm extends Je{constructor(e,t){super(e),this.type=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks()).filter((e=>Um(e,t.schema))),o=void 0!==e.forceValue?!e.forceValue:this.value;t.change((e=>{if(o){let t=r[r.length-1].nextSibling,n=Number.POSITIVE_INFINITY,o=[];for(;t&&"listItem"==t.name&&0!==t.getAttribute("listIndent");){const e=t.getAttribute("listIndent");e<n&&(n=e);const r=e-n;o.push({element:t,listIndent:r}),t=t.nextSibling}o=o.reverse();for(const r of o)e.setAttribute("listIndent",r.listIndent,r.element)}if(!o){let e=Number.POSITIVE_INFINITY;for(const t of r)t.is("element","listItem")&&t.getAttribute("listIndent")<e&&(e=t.getAttribute("listIndent"));e=0===e?1:e,Wm(r,!0,e),Wm(r,!1,e)}for(const t of r.reverse())o&&"listItem"==t.name?e.rename(t,"paragraph"):o||"listItem"==t.name?o||"listItem"!=t.name||t.getAttribute("listType")==this.type||e.setAttribute("listType",this.type,t):(e.setAttributes({listType:this.type,listIndent:0},t),e.rename(t,"listItem"));this.fire("_executeCleanup",r)}))}_getValue(){const e=Aa(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=Aa(e.getSelectedBlocks());return!!n&&Um(n,t)}}function Wm(e,t,n){const r=t?e[0]:e[e.length-1];if(r.is("element","listItem")){let o=r[t?"previousSibling":"nextSibling"],i=r.getAttribute("listIndent");for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=n;)i>o.getAttribute("listIndent")&&(i=o.getAttribute("listIndent")),o.getAttribute("listIndent")==i&&e[t?"unshift":"push"](o),o=o[t?"previousSibling":"nextSibling"]}}function Um(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}class Km extends Je{constructor(e,t){super(e),this._indentBy="forward"==t?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=e.document;let n=Array.from(t.selection.getSelectedBlocks());e.change((e=>{const t=n[n.length-1];let r=t.nextSibling;for(;r&&"listItem"==r.name&&r.getAttribute("listIndent")>t.getAttribute("listIndent");)n.push(r),r=r.nextSibling;this._indentBy<0&&(n=n.reverse());for(const o of n){const t=o.getAttribute("listIndent")+this._indentBy;t<0?e.rename(o,"paragraph"):e.setAttribute("listIndent",t,o)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const e=Aa(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){const t=e.getAttribute("listIndent"),n=e.getAttribute("listType");let r=e.previousSibling;for(;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}function Ym(e,t){const n=t.mapper,r=t.writer,o="numbered"==e.getAttribute("listType")?"ol":"ul",i=function(e){const t=e.createContainerElement("li");return t.getFillerOffset=Jm,t}(r),a=r.createContainerElement(o,null);return r.insert(r.createPositionAt(a,0),i),n.bindElements(e,i),i}function qm(e,t,n,r){const o=t.parent,i=n.mapper,a=n.writer;let s=i.toViewPosition(r.createPositionBefore(e));const c=Qm(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),l=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){const e=i.toViewElement(c);s=a.breakContainer(a.createPositionAfter(e))}else if(l&&"listItem"==l.name){s=i.toViewPosition(r.createPositionAt(l,"end"));const e=i.findMappedViewAncestor(s),t=function(e){for(const t of e.getChildren())if("ul"==t.name||"ol"==t.name)return t;return null}(e);s=t?a.createPositionBefore(t):a.createPositionAt(e,"end")}else s=i.toViewPosition(r.createPositionBefore(e));if(s=Gm(s),a.insert(s,o),l&&"listItem"==l.name){const e=i.toViewElement(l),n=a.createRange(a.createPositionAt(e,0),s).getWalker({ignoreElementEnd:!0});for(const r of n)if(r.item.is("element","li")){const e=a.breakContainer(a.createPositionBefore(r.item)),o=r.item.parent,i=a.createPositionAt(t,"end");$m(a,i.nodeBefore,i.nodeAfter),a.move(a.createRangeOn(o),i),n.position=e}}else{const n=o.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let r=null;for(const t of n.getChildren()){const n=i.toModelElement(t);if(!(n&&n.getAttribute("listIndent")>e.getAttribute("listIndent")))break;r=t}r&&(a.breakContainer(a.createPositionAfter(r)),a.move(a.createRangeOn(r.parent),a.createPositionAt(t,"end")))}}$m(a,o,o.nextSibling),$m(a,o.previousSibling,o)}function $m(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function Gm(e){return e.getLastMatchingPosition((e=>e.item.is("uiElement")))}function Qm(e,t){const n=!!t.sameIndent,r=!!t.smallerIndent,o=t.listIndent;let i=e;for(;i&&"listItem"==i.name;){const e=i.getAttribute("listIndent");if(n&&o==e||r&&o>e)return i;i="forward"===t.direction?i.nextSibling:i.previousSibling}return null}function Xm(e,t,n,r){e.ui.componentFactory.add(t,(o=>{const i=e.commands.get(t),a=new eu(o);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(i,"value","isEnabled"),a.on("execute",(()=>{e.execute(t),e.editing.view.focus()})),a}))}function Jm(){const e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:ro.call(this)}function Zm(e){return(t,n,r)=>{const o=r.consumable;if(!o.test(n.item,"insert")||!o.test(n.item,"attribute:listType")||!o.test(n.item,"attribute:listIndent"))return;o.consume(n.item,"insert"),o.consume(n.item,"attribute:listType"),o.consume(n.item,"attribute:listIndent");const i=n.item;qm(i,Ym(i,r),r,e)}}function eg(e,t,n){if(!n.consumable.consume(t.item,"attribute:listType"))return;const r=n.mapper.toViewElement(t.item),o=n.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));const i=r.parent,a="numbered"==t.attributeNewValue?"ol":"ul";o.rename(a,i)}function tg(e,t,n){const r=n.mapper.toViewElement(t.item).parent,o=n.writer;$m(o,r,r.nextSibling),$m(o,r.previousSibling,r);for(const i of t.item.getChildren())n.consumable.consume(i,"insert")}function ng(e,t,n){if("listItem"!=t.item.name){let e=n.mapper.toViewPosition(t.range.start);const r=n.writer,o=[];for(;("ul"==e.parent.name||"ol"==e.parent.name)&&(e=r.breakContainer(e),"li"==e.parent.name);){const t=e,n=r.createPositionAt(e.parent,"end");if(!t.isEqual(n)){const e=r.remove(r.createRange(t,n));o.push(e)}e=r.createPositionAfter(e.parent)}if(o.length>0){for(let t=0;t<o.length;t++){const n=e.nodeBefore;if(e=r.insert(e,o[t]).end,t>0){const t=$m(r,n,n.nextSibling);t&&t.parent==n&&e.offset--}}$m(r,e.nodeBefore,e.nodeAfter)}}}function rg(e,t,n){const r=n.mapper.toViewPosition(t.position),o=r.nodeBefore,i=r.nodeAfter;$m(n.writer,o,i)}function og(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){const e=n.writer,r=e.createElement("listItem"),o=function(e){let t=0,n=e.parent;for(;n;){if(n.is("element","li"))t++;else{const e=n.previousSibling;e&&e.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);e.setAttribute("listIndent",o,r);const i=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(e.setAttribute("listType",i,r),!n.safeInsert(r,t.modelCursor))return;const a=function(e,t,n){const{writer:r,schema:o}=n;let i=r.createPositionAfter(e);for(const a of t)if("ul"==a.name||"ol"==a.name)i=n.convertItem(a,i).modelCursor;else{const t=n.convertItem(a,r.createPositionAt(e,"end")),s=t.modelRange.start.nodeAfter;s&&s.is("element")&&!o.checkChild(e,s.name)&&(e=t.modelCursor.parent.is("element","listItem")?t.modelCursor.parent:lg(t.modelCursor),i=r.createPositionAfter(e))}return i}(r,t.viewItem.getChildren(),n);t.modelRange=e.createRange(t.modelCursor,a),n.updateConversionResult(r,t)}}function ig(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){const e=Array.from(t.viewItem.getChildren());for(const t of e)!t.is("element","li")&&!dg(t)&&t._remove()}}function ag(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const e=[...t.viewItem.getChildren()];let n=!1,r=!0;for(const t of e)n&&!dg(t)&&t._remove(),t.is("$text")?(r&&(t._data=t.data.trimStart()),t.nextSibling&&!dg(t.nextSibling)||(t._data=t.data.trimEnd())):dg(t)&&(n=!0),r=!1}}function sg(e){return(t,n)=>{if(n.isPhantom)return;const r=n.modelPosition.nodeBefore;if(r&&r.is("element","listItem")){const t=n.mapper.toViewElement(r),o=t.getAncestors().find(dg),i=e.createPositionAt(t,0).getWalker();for(const e of i){if("elementStart"==e.type&&e.item.is("element","li")){n.viewPosition=e.previousPosition;break}if("elementEnd"==e.type&&e.item==o){n.viewPosition=e.nextPosition;break}}}}}function cg(e,t){let n,[r,o]=t,i=r.is("documentFragment")?r.getChild(0):r;if(n=o?this.createSelection(o):this.document.selection,i&&i.is("element","listItem")){const e=n.getFirstPosition();let t=null;if(e.parent.is("element","listItem")?t=e.parent:e.nodeBefore&&e.nodeBefore.is("element","listItem")&&(t=e.nodeBefore),t){const e=t.getAttribute("listIndent");if(e>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+e),i=i.nextSibling}}}function lg(e){const t=new Ja({startPosition:e});let n;do{n=t.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function ug(e,t,n,r,o,i){const a=Qm(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),s=o.mapper,c=o.writer,l=a?a.getAttribute("listIndent"):null;let u;if(a)if(l==e){const e=s.toViewElement(a).parent;u=c.createPositionAfter(e)}else{const e=i.createPositionAt(a,"end");u=s.toViewPosition(e)}else u=n;u=Gm(u);for(const d of[...r.getChildren()])dg(d)&&(u=c.move(c.createRangeOn(d),u).end,$m(c,d,d.nextSibling),$m(c,d.previousSibling,d))}function dg(e){return e.is("element","ol")||e.is("element","ul")}class fg extends Qe{static get pluginName(){return"ListEditing"}static get requires(){return[Cd,Pd]}init(){const e=this.editor;e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const t=e.data,n=e.editing;var r;e.model.document.registerPostFixer((t=>function(e,t){const n=e.document.differ.getChanges(),r=new Map;let o=!1;for(const c of n)if("insert"==c.type&&"listItem"==c.name)i(c.position);else if("insert"==c.type&&"listItem"!=c.name){if("$text"!=c.name){const n=c.position.nodeAfter;n.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",n),o=!0),n.hasAttribute("listType")&&(t.removeAttribute("listType",n),o=!0),n.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",n),o=!0);for(const t of Array.from(e.createRangeIn(n)).filter((e=>e.item.is("element","listItem"))))i(t.previousPosition)}i(c.position.getShiftedBy(c.length))}else"remove"==c.type&&"listItem"==c.name?i(c.position):("attribute"==c.type&&"listIndent"==c.attributeKey||"attribute"==c.type&&"listType"==c.attributeKey)&&i(c.range.start);for(const c of r.values())a(c),s(c);return o;function i(e){const t=e.nodeBefore;if(t&&t.is("element","listItem")){let e=t;if(r.has(e))return;for(let t=e.previousSibling;t&&t.is("element","listItem");t=e.previousSibling)if(e=t,r.has(e))return;r.set(t,e)}else{const t=e.nodeAfter;t&&t.is("element","listItem")&&r.set(t,t)}}function a(e){let n=0,r=null;for(;e&&e.is("element","listItem");){const i=e.getAttribute("listIndent");if(i>n){let a;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),t.setAttribute("listIndent",a,e),o=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function s(e){let n=[],r=null;for(;e&&e.is("element","listItem");){const i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){const r=n[i];e.getAttribute("listType")!=r&&(t.setAttribute("listType",r,e),o=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(e.model,t))),n.mapper.registerViewToModelLength("li",hg),t.mapper.registerViewToModelLength("li",hg),n.mapper.on("modelToViewPosition",sg(n.view)),n.mapper.on("viewToModelPosition",(r=e.model,(e,t)=>{const n=t.viewPosition,o=n.parent,i=t.mapper;if("ul"==o.name||"ol"==o.name){if(n.isAtEnd){const e=i.toModelElement(n.nodeBefore),o=i.getModelLength(n.nodeBefore);t.modelPosition=r.createPositionBefore(e).getShiftedBy(o)}else{const e=i.toModelElement(n.nodeAfter);t.modelPosition=r.createPositionBefore(e)}e.stop()}else if("li"==o.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const a=i.toModelElement(o);let s=1,c=n.nodeBefore;for(;c&&dg(c);)s+=i.getModelLength(c),c=c.previousSibling;t.modelPosition=r.createPositionBefore(a).getShiftedBy(s),e.stop()}})),t.mapper.on("modelToViewPosition",sg(n.view)),e.conversion.for("editingDowncast").add((t=>{t.on("insert",ng,{priority:"high"}),t.on("insert:listItem",Zm(e.model)),t.on("attribute:listType:listItem",eg,{priority:"high"}),t.on("attribute:listType:listItem",tg,{priority:"low"}),t.on("attribute:listIndent:listItem",function(e){return(t,n,r)=>{if(!r.consumable.consume(n.item,"attribute:listIndent"))return;const o=r.mapper.toViewElement(n.item),i=r.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));const a=o.parent,s=a.previousSibling,c=i.createRangeOn(a);i.remove(c),s&&s.nextSibling&&$m(i,s,s.nextSibling),ug(n.attributeOldValue+1,n.range.start,c.start,o,r,e),qm(n.item,o,r,e);for(const e of n.item.getChildren())r.consumable.consume(e,"insert")}}(e.model)),t.on("remove:listItem",function(e){return(t,n,r)=>{const o=r.mapper.toViewPosition(n.position).getLastMatchingPosition((e=>!e.item.is("element","li"))).nodeAfter,i=r.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));const a=o.parent,s=a.previousSibling,c=i.createRangeOn(a),l=i.remove(c);s&&s.nextSibling&&$m(i,s,s.nextSibling),ug(r.mapper.toModelElement(o).getAttribute("listIndent")+1,n.position,c.start,o,r,e);for(const e of i.createRangeIn(l).getItems())r.mapper.unbindViewElement(e);t.stop()}}(e.model)),t.on("remove",rg,{priority:"low"})})),e.conversion.for("dataDowncast").add((t=>{t.on("insert",ng,{priority:"high"}),t.on("insert:listItem",Zm(e.model))})),e.conversion.for("upcast").add((e=>{e.on("element:ul",ig,{priority:"high"}),e.on("element:ol",ig,{priority:"high"}),e.on("element:li",ag,{priority:"high"}),e.on("element:li",og)})),e.model.on("insertContent",cg,{priority:"high"}),e.commands.add("numberedList",new Hm(e,"numbered")),e.commands.add("bulletedList",new Hm(e,"bulleted")),e.commands.add("indentList",new Km(e,"forward")),e.commands.add("outdentList",new Km(e,"backward"));const o=n.view.document;this.listenTo(o,"enter",((e,t)=>{const n=this.editor.model.document,r=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==r.name&&r.isEmpty&&(this.editor.execute("outdentList"),t.preventDefault(),e.stop())}),{context:"li"}),this.listenTo(o,"delete",((e,t)=>{if("backward"!==t.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const r=n.getFirstPosition();if(!r.isAtStart)return;const o=r.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(this.editor.execute("outdentList"),t.preventDefault(),e.stop()))}),{context:"li"});const i=e=>(t,n)=>{this.editor.commands.get(e).isEnabled&&(this.editor.execute(e),n())};e.keystrokes.set("Tab",i("indentList")),e.keystrokes.set("Shift+Tab",i("outdentList"))}afterInit(){const e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}function hg(e){let t=1;for(const n of e.getChildren())if("ul"==n.name||"ol"==n.name)for(const e of n.getChildren())t+=hg(e);return t}class pg extends Qe{static get pluginName(){return"ListUI"}init(){const e=this.editor.t;Xm(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),Xm(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}function mg(e,t){return e=>{e.on("attribute:url:media",n)};function n(n,r,o){if(!o.consumable.consume(r.item,n.name))return;const i=r.attributeNewValue,a=o.writer,s=o.mapper.toViewElement(r.item),c=[...s.getChildren()].find((e=>e.getCustomProperty("media-content")));a.remove(c);const l=e.getMediaViewElement(a,i,t);a.insert(a.createPositionAt(s,0),l)}}function gg(e,t,n,r){const o=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(o,0),t.getMediaViewElement(e,n,r)),o}function bg(e){const t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function vg(e,t,n){e.change((r=>{const o=r.createElement("media",{url:t});e.insertContent(o,n),r.setSelection(o,"on")}))}class yg extends Je{refresh(){const e=this.editor.model,t=e.document.selection,n=bg(t);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(e){const t=e.getSelectedElement();return!!t&&"media"===t.name}(t)||function(e,t){let n=Bd(e,t).start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}(t,e)}execute(e){const t=this.editor.model,n=t.document.selection,r=bg(n);r?t.change((t=>{t.setAttribute("url",e,r)})):vg(t,e,Bd(n,t))}}class wg{constructor(e,t){const n=t.providers,r=t.extraProviders||[],o=new Set(t.removeProviders),i=n.concat(r).filter((e=>{const t=e.name;return t?!o.has(t):(Object(c.b)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=e,this.providerDefinitions=i}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new kg(this.locale);e=e.trim();for(const t of this.providerDefinitions){const n=t.html,r=tr(t.url);for(const t of r){const r=this._getUrlMatches(e,t);if(r)return new kg(this.locale,e,r,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let r=e.replace(/^https?:\/\//,"");return n=r.match(t),n||(r=r.replace(/^www\./,""),n=r.match(t),n||null)}}class kg{constructor(e,t,n,r){this.url=this._getValidUrl(t),this._t=e.t,this._match=n,this._previewRenderer=r}getViewElement(e,t){const n={};let r;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");const o=this._getPreviewHtml(t);r=e.createRawElement("div",n,(function(e){e.innerHTML=o}))}else this.url&&(n.url=this.url),r=e.createEmptyElement(t.elementName,n);return e.setCustomProperty("media-content",!0,r),r}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new Zl,t=new Jl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Al({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}n(94);class _g extends Qe{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:e=>'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new wg(e.locale,e.config.get("mediaEmbed"))}init(){const e=this.editor,t=e.model.schema,n=e.t,r=e.conversion,o=e.config.get("mediaEmbed.previewsInData"),i=e.config.get("mediaEmbed.elementName"),a=this.registry;e.commands.add("mediaEmbed",new yg(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:(e,t)=>{let{writer:n}=t;const r=e.getAttribute("url");return gg(n,a,r,{elementName:i,renderMediaPreview:r&&o})}}),r.for("dataDowncast").add(mg(a,{elementName:i,renderMediaPreview:o})),r.for("editingDowncast").elementToElement({model:"media",view:(e,t)=>{let{writer:r}=t;const o=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Id(e,t,{label:n})}(gg(r,a,o,{elementName:i,renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(mg(a,{elementName:i,renderForEditingView:!0})),r.for("upcast").elementToElement({view:e=>["oembed",i].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,t)=>{let{writer:n}=t;const r=e.getAttribute("url");if(a.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,t)=>{let{writer:n}=t;const r=e.getAttribute("data-oembed-url");if(a.hasMedia(r))return n.createElement("media",{url:r})}})}}const Og=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class xg extends Qe{static get requires(){return[uf,rh]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(()=>{const e=t.selection.getFirstRange(),n=el.fromPosition(e.start);n.stickiness="toPrevious";const r=el.fromPosition(e.end);r.stickiness="toNext",t.once("change:data",(()=>{this._embedMediaBetweenPositions(n,r),n.detach(),r.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(()=>{this._timeoutId&&(ki.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(e,t){const n=this.editor,r=n.plugins.get(_g).registry,o=new bs(e,t),i=o.getWalker({ignoreElementEnd:!0});let a="";for(const s of i)s.item.is("$textProxy")&&(a+=s.item.data);a=a.trim(),a.match(Og)&&r.hasMedia(a)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(e),this._timeoutId=ki.window.setTimeout((()=>{n.model.change((e=>{let t;this._timeoutId=null,e.remove(o),o.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),vg(n.model,a,t),this._positionToInsert.detach(),this._positionToInsert=null}))}),100)):o.detach()}}n(96);class Cg extends Nl{constructor(e,t){super(t);const n=t.t;this.focusTracker=new Ma,this.keystrokes=new Ra,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(e=>!!e)),this.cancelButtonView=this._createButton(n("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._focusables=new Tl,this._focusCycler=new nu({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Sl(this)}render(){super.render(),Pl({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",((e,t)=>{t.stopPropagation()}),{priority:"high"})}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new Au(this.locale,Mu),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),t}_createButton(e,t,n,r){const o=new eu(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),r&&o.delegate("execute").to(this,r),o}}class Eg extends Qe{static get requires(){return[_g]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed"),n=e.plugins.get(_g).registry;e.ui.componentFactory.add("mediaEmbed",(r=>{const o=Ou(r),i=new Cg(function(e,t){return[t=>{if(!t.url.length)return e("The URL must not be empty.")},n=>{if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(e.t,n),e.locale);return this._setUpDropdown(o,i,t,e),this._setUpForm(o,i,t),o}))}_setUpDropdown(e,t,n){const r=this.editor,o=r.t,i=e.buttonView;function a(){r.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),i.set({label:o("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),i.on("open",(()=>{t.disableCssTransitions(),t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus(),t.enableCssTransitions()}),{priority:"low"}),e.on("submit",(()=>{t.isValid()&&(r.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(()=>t.resetFormStatus())),e.on("cancel",(()=>a()))}_setUpForm(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(e=>!e))}}function jg(e,t){if(!e.childCount)return;const n=new hd(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new pr({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[];for(const i of n)if("elementStart"===i.type&&r.match(i.item)){const e=Tg(i.item);o.push({element:i.item,id:e.id,order:e.order,indent:e.indent})}return o}(e,n);if(!r.length)return;let o=null,i=1;r.forEach(((e,a)=>{const s=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;return!n||!((r=n).is("element","ol")||r.is("element","ul"));var r}(r[a-1],e),c=(u=e,(l=s?null:r[a-1])?u.indent-l.indent:u.indent-1);var l,u;if(s&&(o=null,i=1),!o||0!==c){const r=function(e,t){const n=/mso-level-number-format:([^;]{0,100});/gi,r=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t);let o="decimal",i="ol";if(r&&r[1]){const t=n.exec(r[1]);if(t&&t[1]&&(o=t[1].trim(),i="bullet"!==o&&"image"!==o?"ol":"ul"),"bullet"===o){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);return e.is("$text")?e:e.getChild(0)}}(e);if(!t)return null;const n=t._data;return"o"===n?"circle":"\xb7"===n?"disc":"\xa7"===n?"square":null}(e.element);t&&(o=t)}}return{type:i,style:Sg(o)}}(e,t);if(o){if(e.indent>i){const e=o.getChild(o.childCount-1),t=e.getChild(e.childCount-1);o=Pg(r,t,n),i+=1}else if(e.indent<i){const t=i-e.indent;o=function(e,t){const n=e.getAncestors({parentFirst:!0});let r=null,o=0;for(const i of n)if("ul"!==i.name&&"ol"!==i.name||o++,o===t){r=i;break}return r}(o,t),i=parseInt(e.indent)}}else o=Pg(r,e.element,n);e.indent<=i&&(o.is("element",r.type)||(o=n.rename(r.type,o)))}const d=function(e,t){return function(e,t){const n=new pr({name:"span",styles:{"mso-list":"Ignore"}}),r=t.createRangeIn(e);for(const o of r)"elementStart"===o.type&&n.match(o.item)&&t.remove(o.item)}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(d,o)}))}function Sg(e){switch(e){case"arabic-leading-zero":return"decimal-leading-zero";case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function Pg(e,t,n){const r=t.parent,o=n.createElement(e.type),i=r.getChildIndex(t)+1;return n.insertChild(i,o,r),e.style&&n.setStyle("list-style-type",e.style,o),o}function Tg(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),o=n.match(/\s{0,100}level(\d+)/i);e&&r&&o&&(t.id=e[2],t.order=r[1],t.indent=o[1])}return t}n(98);const Ng=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Ag{constructor(e){this.document=e}isActive(e){return Ng.test(e)}execute(e){const t=new hd(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),e.content=n}}function Mg(e,t){if(!e.childCount)return;const n=new hd;!function(e,t,n){const r=n.createRangeIn(t),o=new pr({name:"img"}),i=[];for(const a of r)if(o.match(a.item)){const t=a.item,n=t.getAttribute("v:shapes")?t.getAttribute("v:shapes").split(" "):[];n.length&&n.every((t=>e.indexOf(t)>-1))?i.push(t):t.getAttribute("src")||i.push(t)}for(const a of i)n.remove(a)}(function(e,t){const n=t.createRangeIn(e),r=new pr({name:/v:(.+)/}),o=[];for(const i of n){const e=i.item,t=e.previousSibling&&e.previousSibling.name||null;r.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==t&&o.push(i.item.getAttribute("id"))}return o}(e,n),e,n),function(e,t){const n=t.createRangeIn(e),r=new pr({name:/v:(.+)/}),o=[];for(const i of n)r.match(i.item)&&o.push(i.item);for(const i of o)t.remove(i)}(e,n);const r=function(e,t){const n=t.createRangeIn(e),r=new pr({name:"img"}),o=[];for(const i of n)r.match(i.item)&&i.item.getAttribute("src").startsWith("file://")&&o.push(i.item);return o}(e,n);r.length&&function(e,t,n){if(e.length===t.length)for(let o=0;o<e.length;o++){const i="data:".concat(t[o].type,";base64,").concat((r=t[o].hex,btoa(r.match(/\w{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))));n.setAttribute("src",i,e[o])}var r}(r,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),r=e.match(n),o=[];if(r)for(const i of r){let e=!1;i.includes("\\pngblip")?e="image/png":i.includes("\\jpegblip")&&(e="image/jpeg"),e&&o.push({hex:i.replace(t,"").replace(/[^\da-fA-F]/g,""),type:e})}return o}(t),n)}const Rg=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Ig=/xmlns:o="urn:schemas-microsoft-com/i;class Dg{constructor(e){this.document=e}isActive(e){return Rg.test(e)||Ig.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;jg(t,n),Mg(t,e.dataTransfer.getData("text/rtf")),e.content=t}}function Lg(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length)))}function zg(e,t){const n=new DOMParser,r=function(e){return Lg(Lg(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g,"\xa0</").replace(/ <o:p><\/o:p>/g,"\xa0<o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(e){const t=e.indexOf("</body>");if(t<0)return e;const n=e.indexOf("</html>",t+7);return e.substring(0,t+7)+(n>=0?e.substring(n):"")}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),o=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((e=>{const t=e.innerText.length||0;e.innerHTML=Array(t+1).join("\xa0 ").substr(0,t)}))}(o);const i=o.body.innerHTML,a=function(e,t){const n=new _o(t),r=new ji(n,{blockFillerMode:"nbsp"}),o=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)o.appendChild(i[0]);return r.domToView(o,{skipComments:!0})}(o,t),s=function(e){const t=[],n=[],r=Array.from(e.getElementsByTagName("style"));for(const o of r)o.sheet&&o.sheet.cssRules&&o.sheet.cssRules.length&&(t.push(o.sheet),n.push(o.innerHTML));return{styles:t,stylesString:n.join(" ")}}(o);return{body:a,bodyString:i,styles:s.styles,stylesString:s.stylesString}}function Fg(e,t,n,r){t>(arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function Vg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e.createElement("tableCell",n);return e.insertElement("paragraph",r),e.insert(r,t),r}function Bg(e,t){const n=t.parent.parent,r=parseInt(n.getAttribute("headingColumns")||0),{column:o}=e.getCellLocation(t);return!!r&&o<r}function Hg(){return e=>{e.on("element:table",((e,t,n)=>{const r=t.viewItem;if(!n.consumable.test(r,{name:!0}))return;const{rows:o,headingRows:i,headingColumns:a}=function(e){const t={headingRows:0,headingColumns:0},n=[],r=[];let o;for(const i of Array.from(e.getChildren()))if("tbody"===i.name||"thead"===i.name||"tfoot"===i.name){"thead"!==i.name||o||(o=i);const e=Array.from(i.getChildren()).filter((e=>e.is("element","tr")));for(const i of e)if("thead"===i.parent.name&&i.parent===o)t.headingRows++,n.push(i);else{r.push(i);const e=Ug(i);e>t.headingColumns&&(t.headingColumns=e)}}return t.rows=[...n,...r],t}(r),s={};a&&(s.headingColumns=a),i&&(s.headingRows=i);const c=n.writer.createElement("table",s);if(n.safeInsert(c,t.modelCursor)){if(n.consumable.consume(r,{name:!0}),o.forEach((e=>n.convertItem(e,n.writer.createPositionAt(c,"end")))),n.convertChildren(r,n.writer.createPositionAt(c,"end")),c.isEmpty){const e=n.writer.createElement("tableRow");n.writer.insert(e,n.writer.createPositionAt(c,"end")),Vg(n.writer,n.writer.createPositionAt(e,"end"))}n.updateConversionResult(c,t)}}))}}function Wg(e){return t=>{t.on("element:"+e,((e,t,n)=>{if(t.modelRange&&t.viewItem.isEmpty){const e=t.modelRange.start.nodeAfter,r=n.writer.createPositionAt(e,0);n.writer.insertElement("paragraph",r)}}),{priority:"low"})}}function Ug(e){let t=0,n=0;const r=Array.from(e.getChildren()).filter((e=>"th"===e.name||"td"===e.name));for(;n<r.length&&"th"===r[n].name;){const e=r[n];t+=parseInt(e.getAttribute("colspan")||1),n++}return t}class Kg{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{const n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const r=parseInt(n.getAttribute("colspan")||1),o=parseInt(n.getAttribute("rowspan")||1);(r>1||o>1)&&this._recordSpans(n,o,r),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new Yg(this,e,t,n)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||r}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){const r={cell:e,row:this._row,column:this._column};for(let o=this._row;o<this._row+t;o++)for(let e=this._column;e<this._column+n;e++)o==this._row&&e==this._column||this._markSpannedCell(o,e,r)}_markSpannedCell(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}class Yg{constructor(e,t,n,r){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=r,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function qg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>t.on("insert:table",((t,n,r)=>{const o=n.item;if(!r.consumable.consume(o,"insert"))return;r.consumable.consume(o,"attribute:headingRows:table"),r.consumable.consume(o,"attribute:headingColumns:table");const i=e&&e.asWidget,a=r.writer.createContainerElement("figure",{class:"table"}),s=r.writer.createContainerElement("table");let c;var l,u;r.writer.insert(r.writer.createPositionAt(a,0),s),i&&(l=a,(u=r.writer).setCustomProperty("table",!0,l),c=Id(l,u,{hasSelectionHandle:!0}));const d=new Kg(o),f={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},h=new Map;for(const m of d){const{row:t,cell:n}=m,i=o.getChild(t),a=h.get(t)||Jg(s,i,t,f,r);h.set(t,a),r.consumable.consume(n,"insert"),Xg(m,f,r.writer.createPositionAt(a,"end"),r,e)}for(const e of o.getChildren()){const t=e.index;e.is("element","tableRow")&&!h.has(t)&&h.set(t,Jg(s,e,t,f,r))}const p=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(o,i?c:a),r.writer.insert(p,i?c:a)}))}function $g(e,t){const{writer:n}=t;if(e.parent.is("element","tableCell"))return Gg(e)?n.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):n.createContainerElement("p")}function Gg(e){return 1===e.parent.childCount&&!nb(e)}function Qg(e,t,n){const{cell:r}=e,o=Zg(e,t),i=n.mapper.toViewElement(r);i&&i.name!==o&&function(e,t,n){const r=n.writer,o=n.mapper.toViewElement(e),i=Vd(r.createEditableElement(t,o.getAttributes()),r);zd(i,r,((e,t,n)=>n.addClass(tr(t.classes),e)),((e,t,n)=>n.removeClass(tr(t.classes),e))),r.insert(r.createPositionAfter(o),i),r.move(r.createRangeIn(o),r.createPositionAt(i,0)),r.remove(r.createRangeOn(o)),n.mapper.unbindViewElement(o),n.mapper.bindElements(e,i)}(r,o,n)}function Xg(e,t,n,r,o){const i=o&&o.asWidget,a=Zg(e,t),s=i?Vd(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);i&&zd(s,r.writer,((e,t,n)=>n.addClass(tr(t.classes),e)),((e,t,n)=>n.removeClass(tr(t.classes),e)));const c=e.cell,l=c.getChild(0),u=1===c.childCount&&"paragraph"===l.name;if(r.writer.insert(n,s),r.mapper.bindElements(c,s),!i&&u&&!nb(l)){const e=c.getChild(0);r.consumable.consume(e,"insert"),r.mapper.bindElements(e,s)}}function Jg(e,t,n,r,o){o.consumable.consume(t,"insert");const i=t.isEmpty?o.writer.createEmptyElement("tr"):o.writer.createContainerElement("tr");o.mapper.bindElements(t,i);const a=r.headingRows,s=function(e,t,n){return eb(e,t)||function(e,t,n){const r=n.writer.createContainerElement(e),o=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(o,r),r}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,r),e,o),c=a>0&&n>=a?n-a:n,l=o.writer.createPositionAt(s,c);return o.writer.insert(l,i),i}function Zg(e,t){const{row:n,column:r}=e,{headingColumns:o,headingRows:i}=t;return i&&i>n||o&&o>r?"th":"td"}function eb(e,t){for(const n of t.getChildren())if(n.name==e)return n}function tb(e,t,n){const r=eb(e,t);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function nb(e){return!![...e.getAttributeKeys()].length}class rb extends Je{refresh(){const e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=function(e,t){const n=e.getFirstPosition().parent,r=n===n.root?n:n.parent;return t.checkChild(r,"table")}(t,n)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.editor.model,n=t.document.selection,r=this.editor.plugins.get("TableUtils"),o=this.editor.config.get("table"),i=Bd(n,t),a=o.defaultHeadings.rows,s=o.defaultHeadings.columns;void 0===e.headingRows&&a&&(e.headingRows=a),void 0===e.headingColumns&&s&&(e.headingColumns=s),t.change((n=>{const o=r.createTable(n,e);t.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}function ob(e){const t=[];for(const n of ub(e.getRanges())){const e=n.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}function ib(e){const t=[];for(const n of e.getRanges()){const e=n.start.findAncestor("tableCell");e&&t.push(e)}return t}function ab(e){const t=ob(e);return t.length?t:ib(e)}function sb(e){return db(e.map((e=>e.parent.index)))}function cb(e){const t=e[0].findAncestor("table");return db([...new Kg(t)].filter((t=>e.includes(t.cell))).map((e=>e.column)))}function lb(e,t){if(e.length<2||!function(e){const t=e[0].findAncestor("table");if(!hb(sb(e),parseInt(t.getAttribute("headingRows")||0)))return!1;const n=parseInt(t.getAttribute("headingColumns")||0);return hb(cb(e),n)}(e))return!1;const n=new Set,r=new Set;let o=0;for(const i of e){const{row:e,column:a}=t.getCellLocation(i),s=parseInt(i.getAttribute("rowspan")||1),c=parseInt(i.getAttribute("colspan")||1);n.add(e),r.add(a),s>1&&n.add(e+s-1),c>1&&r.add(a+c-1),o+=s*c}return function(e,t){const n=Array.from(e.values()),r=Array.from(t.values());return(Math.max(...n)-Math.min(...n)+1)*(Math.max(...r)-Math.min(...r)+1)}(n,r)==o}function ub(e){return Array.from(e).sort(fb)}function db(e){const t=e.sort(((e,t)=>e-t));return{first:t[0],last:t[t.length-1]}}function fb(e,t){const n=e.start,r=t.start;return n.isBefore(r)?-1:1}function hb(e,t){let{first:n,last:r}=e;return n<t===r<t}class pb extends Je{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this.order=t.order||"below"}refresh(){const e=!!ab(this.editor.model.document.selection).length;this.isEnabled=e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="above"===this.order,o=ab(t),i=sb(o),a=r?i.first:i.last,s=o[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}class mb extends Je{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this.order=t.order||"right"}refresh(){const e=!!ab(this.editor.model.document.selection).length;this.isEnabled=e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="left"===this.order,o=ab(t),i=cb(o),a=r?i.first:i.last,s=o[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}class gb extends Je{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this.direction=t.direction||"horizontally"}refresh(){const e=ab(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=ab(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}function bb(e,t,n){const{startRow:r,startColumn:o,endRow:i,endColumn:a}=t,s=n.createElement("table"),c=i-r+1;for(let u=0;u<c;u++)n.insertElement("tableRow",s,"end");const l=[...new Kg(e,{startRow:r,endRow:i,startColumn:o,endColumn:a,includeAllSlots:!0})];for(const{row:u,column:d,cell:f,isAnchor:h,cellAnchorRow:p,cellAnchorColumn:m}of l){const e=u-r,t=s.getChild(e);if(h){const e=n.cloneElement(f);n.append(e,t),_b(e,u,d,i,a,n)}else(p<r||m<o)&&Vg(n,n.createPositionAt(t,"end"))}return function(e,t,n,r,o){const i=parseInt(t.getAttribute("headingRows")||0);i>0&&Fg("headingRows",i-n,e,o,0);const a=parseInt(t.getAttribute("headingColumns")||0);a>0&&Fg("headingColumns",a-r,e,o,0)}(s,e,r,o,n),s}function vb(e,t){const n=[],r=new Kg(e,{startRow:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,endRow:t-1});for(const o of r){const{row:e,cellHeight:r}=o;e<t&&t<=e+r-1&&n.push(o)}return n}function yb(e,t,n){const r=e.parent,o=r.parent,i=r.index,a=t-i,s={},c=parseInt(e.getAttribute("rowspan"))-a;c>1&&(s.rowspan=c);const l=parseInt(e.getAttribute("colspan")||1);l>1&&(s.colspan=l);const u=i+a,d=[...new Kg(o,{startRow:i,endRow:u,includeAllSlots:!0})];let f,h=null;for(const p of d){const{row:t,column:r,cell:o}=p;o===e&&void 0===f&&(f=r),void 0!==f&&f===r&&t===u&&(h=Vg(n,p.getPositionBefore(),s))}return Fg("rowspan",a,e,n),h}function wb(e,t){const n=[],r=new Kg(e);for(const o of r){const{column:e,cellWidth:r}=o;e<t&&t<=e+r-1&&n.push(o)}return n}function kb(e,t,n,r){const o=n-t,i={},a=parseInt(e.getAttribute("colspan"))-o;a>1&&(i.colspan=a);const s=parseInt(e.getAttribute("rowspan")||1);s>1&&(i.rowspan=s);const c=Vg(r,r.createPositionAfter(e),i);return Fg("colspan",o,e,r),c}function _b(e,t,n,r,o,i){const a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>o&&Fg("colspan",o-n+1,e,i,1),t+s-1>r&&Fg("rowspan",r-t+1,e,i,1)}function Ob(e,t){const n=t.getColumns(e),r=new Array(n).fill(0);for(const{column:i}of new Kg(e))r[i]++;const o=r.reduce(((e,t,n)=>t?e:[...e,n]),[]);if(o.length>0){const n=o[o.length-1];return t.removeColumns(e,{at:n}),!0}return!1}function xb(e,t){const n=[],r=t.getRows(e);for(let o=0;o<r;o++)e.getChild(o).isEmpty&&n.push(o);if(n.length>0){const r=n[n.length-1];return t.removeRows(e,{at:r}),!0}return!1}function Cb(e,t){Ob(e,t)||xb(e,t)}function Eb(e,t){const n=Array.from(new Kg(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((e=>{let{cellHeight:t}=e;return 1===t})))return t.lastRow;const r=n[0].cellHeight-1;return t.lastRow+r}function jb(e,t){const n=Array.from(new Kg(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((e=>{let{cellWidth:t}=e;return 1===t})))return t.lastColumn;const r=n[0].cellWidth-1;return t.lastColumn+r}class Sb extends Je{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=ib(e.document.selection)[0],n=this.value,r=this.direction;e.change((e=>{const o="right"==r||"down"==r,i=o?t:n,a=o?n:t,s=a.parent;!function(e,t,n){Pb(e)||(Pb(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(a,i,e);const c=this.isHorizontal?"colspan":"rowspan",l=parseInt(t.getAttribute(c)||1),u=parseInt(n.getAttribute(c)||1);e.setAttribute(c,l+u,i),e.setSelection(e.createRangeIn(i));const d=this.editor.plugins.get("TableUtils");Cb(s.findAncestor("table"),d)}))}_getMergeableCell(){const e=ib(this.editor.model.document.selection)[0];if(!e)return;const t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){const r=e.parent.parent,o="right"==t?e.nextSibling:e.previousSibling,i=(r.getAttribute("headingColumns")||0)>0;if(!o)return;const a="right"==t?e:o,s="right"==t?o:e,{column:c}=n.getCellLocation(a),{column:l}=n.getCellLocation(s),u=parseInt(a.getAttribute("colspan")||1),d=Bg(n,a),f=Bg(n,s);return i&&d!=f?void 0:c+u===l?o:void 0}(e,this.direction,t):function(e,t,n){const r=e.parent,o=r.parent,i=o.getChildIndex(r);if("down"==t&&i===n.getRows(o)-1||"up"==t&&0===i)return;const a=parseInt(e.getAttribute("rowspan")||1),s=o.getAttribute("headingRows")||0;if(s&&("down"==t&&i+a===s||"up"==t&&i===s))return;const c=parseInt(e.getAttribute("rowspan")||1),l="down"==t?i+c:i,u=[...new Kg(o,{endRow:l})],d=u.find((t=>t.cell===e)).column,f=u.find((e=>{let{row:n,cellHeight:r,column:o}=e;return o===d&&("down"==t?n===l:l===n+r)}));return f&&f.cell}(e,this.direction,t);if(!n)return;const r=this.isHorizontal?"rowspan":"colspan",o=parseInt(e.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===o?n:void 0}}function Pb(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}class Tb extends Je{refresh(){const e=ab(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,o=sb(e),i=0===o.first&&o.last===r;this.isEnabled=!i}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=ab(e.document.selection),r=sb(n),o=n[0],i=o.findAncestor("table"),a=t.getCellLocation(o).column;e.change((e=>{const n=r.last-r.first+1;t.removeRows(i,{at:r.first,rows:n});const o=function(e,t,n,r){const o=e.getChild(Math.min(t,r-1));let i=o.getChild(0),a=0;for(const s of o.getChildren()){if(a>n)return i;i=s,a+=parseInt(s.getAttribute("colspan")||1)}return i}(i,r.first,a,t.getRows(i));e.setSelection(e.createPositionAt(o,0))}))}}class Nb extends Je{refresh(){const e=ab(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),{first:o,last:i}=cb(e);this.isEnabled=i-o<r-1}else this.isEnabled=!1}execute(){const[e,t]=function(e){const t=ab(e),n=t[0],r=t.pop(),o=[n,r];return n.isBefore(r)?o:o.reverse()}(this.editor.model.document.selection),n=e.parent.parent,r=[...new Kg(n)],o={first:r.find((t=>t.cell===e)).column,last:r.find((e=>e.cell===t)).column},i=function(e,t,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find((e=>{let{column:t}=e;return t<r.first})).cell:e.reverse().find((e=>{let{column:t}=e;return t>r.last})).cell}(r,e,t,o);this.editor.model.change((e=>{const t=o.last-o.first+1;this.editor.plugins.get("TableUtils").removeColumns(n,{at:o.first,columns:t}),e.setSelection(e.createPositionAt(i,0))}))}}class Ab extends Je{refresh(){const e=ab(this.editor.model.document.selection),t=e.length>0;this.isEnabled=t,this.value=t&&e.every((e=>this._isInHeading(e,e.parent.parent)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const e=this.editor.model,t=ab(e.document.selection),n=t[0].findAncestor("table"),{first:r,last:o}=sb(t),i=this.value?r:o+1,a=n.getAttribute("headingRows")||0;e.change((e=>{if(i){const t=vb(n,i,i>a?a:0);for(const{cell:n}of t)yb(n,i,e)}Fg("headingRows",i,n,e,0)}))}_isInHeading(e,t){const n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}class Mb extends Je{refresh(){const e=ab(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((e=>Bg(t,e)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const e=this.editor.model,t=ab(e.document.selection),n=t[0].findAncestor("table"),{first:r,last:o}=cb(t),i=this.value?r:o+1;e.change((e=>{if(i){const t=wb(n,i);for(const{cell:n,column:r}of t)kb(n,r,i,e)}Fg("headingColumns",i,n,e,0)}))}}class Rb extends Qe{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,n=t.parent,r=n.getChildIndex(t),o=new Kg(n,{row:r});for(const{cell:i,row:a,column:s}of o)if(i===e)return{row:a,column:s}}createTable(e,t){const n=e.createElement("table"),r=parseInt(t.rows)||2,o=parseInt(t.columns)||2;return Ib(e,n,0,r,o),t.headingRows&&Fg("headingRows",Math.min(t.headingRows,r),n,e,0),t.headingColumns&&Fg("headingColumns",Math.min(t.headingColumns,o),n,e,0),n}insertRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.editor.model,r=t.at||0,o=t.rows||1,i=void 0!==t.copyStructureFromAbove,a=t.copyStructureFromAbove?r-1:r,s=this.getRows(e),l=this.getColumns(e);if(r>s)throw new c.a("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change((t=>{const n=e.getAttribute("headingRows")||0;if(n>r&&Fg("headingRows",n+o,e,t,0),!i&&(0===r||r===s))return void Ib(t,e,r,o,l);const c=i?Math.max(r,a):r,u=new Kg(e,{endRow:c}),d=new Array(l).fill(1);for(const{row:e,column:s,cellHeight:l,cellWidth:f,cell:h}of u){const n=e+l-1,c=e<=a&&a<=n;e<r&&r<=n?(t.setAttribute("rowspan",l+o,h),d[s]=-f):i&&c&&(d[s]=f)}for(let i=0;i<o;i++){const n=t.createElement("tableRow");t.insert(n,e,r);for(let e=0;e<d.length;e++){const r=d[e],o=t.createPositionAt(n,"end");r>0&&Vg(t,o,r>1?{colspan:r}:null),e+=Math.abs(r)-1}}}))}insertColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.editor.model,r=t.at||0,o=t.columns||1;n.change((t=>{const n=e.getAttribute("headingColumns");r<n&&t.setAttribute("headingColumns",n+o,e);const i=this.getColumns(e);if(0===r||i===r){for(const n of e.getChildren())n.is("element","tableRow")&&Db(o,t,t.createPositionAt(n,r?"end":0));return}const a=new Kg(e,{column:r,includeAllSlots:!0});for(const e of a){const{row:n,cell:i,cellAnchorColumn:s,cellAnchorRow:c,cellWidth:l,cellHeight:u}=e;if(s<r){t.setAttribute("colspan",l+o,i);const e=c+u-1;for(let t=n;t<=e;t++)a.skipRow(t)}else Db(o,t,e.getPositionBefore())}}))}removeRows(e,t){const n=this.editor.model,r=t.rows||1,o=this.getRows(e),i=t.at,a=i+r-1;if(a>o-1)throw new c.a("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});n.change((t=>{const{cellsToMove:n,cellsToTrim:r}=function(e,t,n){const r=new Map,o=[];for(const{row:i,column:a,cellHeight:s,cell:c}of new Kg(e,{endRow:n})){const e=i+s-1;if(i>=t&&i<=n&&e>n){const e=s-(n-i+1);r.set(a,{cell:c,rowspan:e})}if(i<t&&e>=t){let r;r=e>=n?n-t+1:e-t+1,o.push({cell:c,rowspan:s-r})}}return{cellsToMove:r,cellsToTrim:o}}(e,i,a);n.size&&function(e,t,n,r){const o=[...new Kg(e,{includeAllSlots:!0,row:t})],i=e.getChild(t);let a;for(const{column:s,cell:c,isAnchor:l}of o)if(n.has(s)){const{cell:e,rowspan:t}=n.get(s),o=a?r.createPositionAfter(a):r.createPositionAt(i,0);r.move(r.createRangeOn(e),o),Fg("rowspan",t,e,r),a=e}else l&&(a=c)}(e,a+1,n,t);for(let o=a;o>=i;o--)t.remove(e.getChild(o));for(const{rowspan:e,cell:o}of r)Fg("rowspan",e,o,t);!function(e,t,n,r){const o=e.getAttribute("headingRows")||0;t<o&&Fg("headingRows",n<o?o-(n-t+1):t,e,r,0)}(e,i,a,t),Ob(e,this)||xb(e,this)}))}removeColumns(e,t){const n=this.editor.model,r=t.at,o=t.columns||1,i=t.at+o-1;n.change((t=>{!function(e,t,n){const r=e.getAttribute("headingColumns")||0;if(r&&t.first<r){const o=Math.min(r-1,t.last)-t.first+1;n.setAttribute("headingColumns",r-o,e)}}(e,{first:r,last:i},t);for(let n=i;n>=r;n--)for(const{cell:r,column:o,cellWidth:i}of[...new Kg(e)])o<=n&&i>1&&o+i>n?Fg("colspan",i-1,r,t):o===n&&t.remove(r);xb(e,this)||Ob(e,this)}))}splitCellVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=this.editor.model,r=e.parent.parent,o=parseInt(e.getAttribute("rowspan")||1),i=parseInt(e.getAttribute("colspan")||1);n.change((n=>{if(i>1){const{newCellsSpan:r,updatedSpan:a}=Lb(i,t);Fg("colspan",a,e,n);const s={};r>1&&(s.colspan=r),o>1&&(s.rowspan=o),Db(i>t?t-1:i-1,n,n.createPositionAfter(e),s)}if(i<t){const a=t-i,s=[...new Kg(r)],{column:c}=s.find((t=>{let{cell:n}=t;return n===e})),l=s.filter((t=>{let{cell:n,cellWidth:r,column:o}=t;return n!==e&&o===c||o<c&&o+r>c}));for(const{cell:e,cellWidth:t}of l)n.setAttribute("colspan",t+a,e);const u={};o>1&&(u.rowspan=o),Db(a,n,n.createPositionAfter(e),u);const d=r.getAttribute("headingColumns")||0;d>c&&Fg("headingColumns",d+a,r,n)}}))}splitCellHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=this.editor.model,r=e.parent,o=r.parent,i=o.getChildIndex(r),a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((n=>{if(a>1){const r=[...new Kg(o,{startRow:i,endRow:i+a-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=Lb(a,t);Fg("rowspan",l,e,n);const{column:u}=r.find((t=>{let{cell:n}=t;return n===e})),d={};c>1&&(d.rowspan=c),s>1&&(d.colspan=s);for(const e of r){const{column:t,row:r}=e;r>=i+l&&t===u&&(r+i+l)%c==0&&Db(1,n,e.getPositionBefore(),d)}}if(a<t){const r=t-a,c=[...new Kg(o,{startRow:0,endRow:i})];for(const{cell:t,cellHeight:o,row:a}of c)if(t!==e&&a+o>i){const e=o+r;n.setAttribute("rowspan",e,t)}const l={};s>1&&(l.colspan=s),Ib(n,o,i+1,r,1,l);const u=o.getAttribute("headingRows")||0;u>i&&Fg("headingRows",u+r,o,n)}}))}getColumns(e){return[...e.getChild(0).getChildren()].reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||1)),0)}getRows(e){return Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0)}}function Ib(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};for(let a=0;a<r;a++){const r=e.createElement("tableRow");e.insert(r,t,n),Db(o,e,e.createPositionAt(r,"end"),i)}}function Db(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};for(let o=0;o<e;o++)Vg(t,n,r)}function Lb(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}class zb extends Je{refresh(){const e=ob(this.editor.model.document.selection);this.isEnabled=lb(e,this.editor.plugins.get(Rb))}execute(){const e=this.editor.model,t=this.editor.plugins.get(Rb);e.change((n=>{const r=ob(e.document.selection),o=r.shift(),{mergeWidth:i,mergeHeight:a}=function(e,t,n){let r=0,o=0;for(const s of t){const{row:e,column:t}=n.getCellLocation(s);r=Bb(s,t,r,"colspan"),o=Bb(s,e,o,"rowspan")}const{row:i,column:a}=n.getCellLocation(e);return{mergeWidth:r-a,mergeHeight:o-i}}(o,r,t);Fg("colspan",i,o,n),Fg("rowspan",a,o,n);for(const e of r)Fb(e,o,n);Cb(o.findAncestor("table"),t),n.setSelection(o,"in")}))}}function Fb(e,t,n){Vb(e)||(Vb(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Vb(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Bb(e,t,n,r){const o=parseInt(e.getAttribute(r)||1);return Math.max(n,t+o)}class Hb extends Je{refresh(){const e=ab(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=ab(e.document.selection),n=sb(t),r=t[0].findAncestor("table"),o=[];for(let i=n.first;i<=n.last;i++)for(const t of r.getChild(i).getChildren())o.push(e.createRangeOn(t));e.change((e=>{e.setSelection(o)}))}}class Wb extends Je{refresh(){const e=ab(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=ab(e.document.selection),n=t[0],r=t.pop(),o=n.findAncestor("table"),i=this.editor.plugins.get("TableUtils"),a=i.getCellLocation(n),s=i.getCellLocation(r),c=Math.min(a.column,s.column),l=Math.max(a.column,s.column),u=[];for(const d of new Kg(o,{startColumn:c,endColumn:l}))u.push(e.createRangeOn(d.cell));e.change((e=>{e.setSelection(u)}))}}function Ub(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.differ.getChanges();let r=!1;const o=new Set;for(const i of n){let t;"table"==i.name&&"insert"==i.type&&(t=i.position.nodeAfter),"tableRow"!=i.name&&"tableCell"!=i.name||(t=i.position.findAncestor("table")),qb(i)&&(t=i.range.start.findAncestor("table")),t&&!o.has(t)&&(r=Kb(t,e)||r,r=Yb(t,e)||r,o.add(t))}return r}(t,e)))}function Kb(e,t){let n=!1;const r=function(e){const t=parseInt(e.getAttribute("headingRows")||0),n=Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0),r=[];for(const{row:o,cell:i,cellHeight:a}of new Kg(e)){if(a<2)continue;const e=o<t?t:n;if(o+a>e){const t=e-o;r.push({cell:i,rowspan:t})}}return r}(e);if(r.length){n=!0;for(const e of r)Fg("rowspan",e.rowspan,e.cell,t,1)}return n}function Yb(e,t){let n=!1;const r=function(e){const t=new Array(e.childCount).fill(0);for(const{rowIndex:n}of new Kg(e,{includeAllSlots:!0}))t[n]++;return t}(e),o=[];for(const[s,c]of r.entries())!c&&e.getChild(s).is("element","tableRow")&&o.push(s);if(o.length){n=!0;for(const n of o.reverse())t.remove(e.getChild(n)),r.splice(n,1)}const i=r.filter(((t,n)=>e.getChild(n).is("element","tableRow"))),a=i[0];if(!i.every((e=>e===a))){const r=i.reduce(((e,t)=>t>e?t:e),0);for(const[o,a]of i.entries()){const i=r-a;if(i){for(let n=0;n<i;n++)Vg(t,t.createPositionAt(e.getChild(o),"end"));n=!0}}}return n}function qb(e){const t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function $b(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.differ.getChanges();let r=!1;for(const o of n)"insert"==o.type&&"table"==o.name&&(r=Gb(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableRow"==o.name&&(r=Qb(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableCell"==o.name&&(r=Xb(o.position.nodeAfter,e)||r),Jb(o)&&(r=Xb(o.position.parent,e)||r);return r}(t,e)))}function Gb(e,t){let n=!1;for(const r of e.getChildren())r.is("element","tableRow")&&(n=Qb(r,t)||n);return n}function Qb(e,t){let n=!1;for(const r of e.getChildren())n=Xb(r,t)||n;return n}function Xb(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const n=Array.from(e.getChildren()).filter((e=>e.is("$text")));for(const r of n)t.wrap(t.createRangeOn(r),"paragraph");return!!n.length}function Jb(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function Zb(e,t){e.document.registerPostFixer((()=>function(e,t){const n=new Set;for(const r of e.getChanges()){const e="attribute"==r.type?r.range.start.parent:r.position.parent;e.is("element","tableCell")&&n.add(e)}for(const r of n.values())for(const n of[...r.getChildren()].filter((e=>ev(e,t))))e.refreshItem(n);return!1}(e.document.differ,t)))}function ev(e,t){if(!e.is("element","paragraph"))return!1;const n=t.toViewElement(e);return!!n&&Gg(e)!==n.is("element","span")}function tv(e){e.document.registerPostFixer((()=>function(e){const t=e.document.differ,n=new Set;for(const r of t.getChanges()){if("attribute"!=r.type)continue;const e=r.range.start.nodeAfter;e&&e.is("element","table")&&"headingRows"==r.attributeKey&&n.add(e)}if(n.size){for(const e of n.values())t.refreshItem(e);return!0}return!1}(e)))}n(100);class nv extends Qe{static get pluginName(){return"TableEditing"}init(){const e=this.editor,t=e.model,n=t.schema,r=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowChildren:"$block",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),r.for("upcast").add((e=>{e.on("element:figure",((e,t,n)=>{if(!n.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const r=function(e){for(const t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!r||!n.consumable.test(r,{name:!0}))return;const o=Aa(n.convertItem(r,t.modelCursor).modelRange.getItems());o&&(n.convertChildren(t.viewItem,n.writer.createPositionAt(o,"end")),n.updateConversionResult(o,t))}))})),r.for("upcast").add(Hg()),r.for("editingDowncast").add(qg({asWidget:!0})),r.for("dataDowncast").add(qg()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((e=>{e.on("element:tr",((e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),r.for("editingDowncast").add((e=>e.on("insert:tableRow",((e,t,n)=>{const r=t.item;if(!n.consumable.consume(r,"insert"))return;const o=r.parent,i=function(e){for(const t of e.getChildren())if("table"===t.name)return t}(n.mapper.toViewElement(o)),a=o.getChildIndex(r),s=new Kg(o,{row:a}),c={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},l=new Map;for(const u of s){const e=l.get(a)||Jg(i,r,a,c,n);l.set(a,e),n.consumable.consume(u.cell,"insert"),Xg(u,c,n.writer.createPositionAt(e,"end"),n,{asWidget:!0})}})))),r.for("editingDowncast").add((e=>e.on("remove:tableRow",((e,t,n)=>{e.stop();const r=n.writer,o=n.mapper,i=o.toViewPosition(t.position).getLastMatchingPosition((e=>!e.item.is("element","tr"))).nodeAfter,a=i.parent.parent,s=r.createRangeOn(i),c=r.remove(s);for(const l of r.createRangeIn(c).getItems())o.unbindViewElement(l);tb("thead",a,n),tb("tbody",a,n)}),{priority:"higher"}))),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("upcast").add(Wg("td")),r.for("upcast").add(Wg("th")),r.for("editingDowncast").add((e=>e.on("insert:tableCell",((e,t,n)=>{const r=t.item;if(!n.consumable.consume(r,"insert"))return;const o=r.parent,i=o.parent,a=i.getChildIndex(o),s=new Kg(i,{row:a}),c={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0};for(const l of s)if(l.cell===r){const e=n.mapper.toViewElement(o);return void Xg(l,c,n.writer.createPositionAt(e,o.getChildIndex(r)),n,{asWidget:!0})}})))),r.for("editingDowncast").elementToElement({model:"paragraph",view:$g,converterPriority:"high"}),r.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),r.for("upcast").attributeToAttribute({model:{key:"colspan",value:rv("colspan")},view:"colspan"}),r.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("upcast").attributeToAttribute({model:{key:"rowspan",value:rv("rowspan")},view:"rowspan"}),r.for("editingDowncast").add((e=>e.on("attribute:headingColumns:table",((e,t,n)=>{const r=t.item;if(!n.consumable.consume(t.item,e.name))return;const o={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},i=t.attributeOldValue,a=t.attributeNewValue,s=(i>a?i:a)-1;for(const c of new Kg(r,{endColumn:s}))Qg(c,o,n)})))),e.data.mapper.on("modelToViewPosition",((e,t)=>{const n=t.modelPosition.parent,r=t.modelPosition.nodeBefore;if(!n.is("element","tableCell"))return;if(!r||!r.is("element","paragraph"))return;const o=t.mapper.toViewElement(r),i=t.mapper.toViewElement(n);o===i&&(t.viewPosition=t.mapper.findPositionIn(i,r.maxOffset))})),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new rb(e)),e.commands.add("insertTableRowAbove",new pb(e,{order:"above"})),e.commands.add("insertTableRowBelow",new pb(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new mb(e,{order:"left"})),e.commands.add("insertTableColumnRight",new mb(e,{order:"right"})),e.commands.add("removeTableRow",new Tb(e)),e.commands.add("removeTableColumn",new Nb(e)),e.commands.add("splitTableCellVertically",new gb(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new gb(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new zb(e)),e.commands.add("mergeTableCellRight",new Sb(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Sb(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Sb(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Sb(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Mb(e)),e.commands.add("setTableRowHeader",new Ab(e)),e.commands.add("selectTableRow",new Hb(e)),e.commands.add("selectTableColumn",new Wb(e)),tv(t),Ub(t),Zb(t,e.editing.mapper),$b(t)}static get requires(){return[Rb]}}function rv(e){return t=>{const n=parseInt(t.getAttribute(e));return Number.isNaN(n)||n<=0?null:n}}n(102);class ov extends Nl{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((e,t)=>"".concat(t," \xd7 ").concat(e))),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:t.to("label")}]}],on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((()=>{this.fire("execute")}))}}),this.on("boxover",((e,t)=>{const{row:n,column:r}=t.target.dataset;this.set({rows:parseInt(n),columns:parseInt(r)})})),this.on("change:columns",(()=>{this._highlightGridBoxes()})),this.on("change:rows",(()=>{this._highlightGridBoxes()}))}focus(){}focusLast(){}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map(((n,r)=>{const o=Math.floor(r/10)<e&&r%10<t;n.set("isOn",o)}))}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const n=Math.floor(t/10),r=t%10;e.push(new iv(this.locale,n+1,r+1))}return this.createCollection(e)}}class iv extends Nl{constructor(e,t,n){super(e);const r=this.bindTemplate;this.set("isOn",!1),this.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",r.if("isOn","ck-on")],"data-row":t,"data-column":n}})}}class av extends Qe{static get pluginName(){return"TableUI"}init(){const e=this.editor,t=this.editor.t,n="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",(n=>{const r=e.commands.get("insertTable"),o=Ou(n);let i;return o.bind("isEnabled").to(r),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:t("Insert table"),tooltip:!0}),o.on("change:isOpen",(()=>{i||(i=new ov(n),o.panelView.children.add(i),i.delegate("execute").to(o),o.buttonView.on("open",(()=>{i.rows=0,i.columns=0})),o.on("execute",(()=>{e.execute("insertTable",{rows:i.rows,columns:i.columns}),e.editing.view.focus()})))})),o})),e.ui.componentFactory.add("tableColumn",(e=>{const r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,e)})),e.ui.componentFactory.add("tableRow",(e=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,e)})),e.ui.componentFactory.add("mergeTableCells",(e=>{const r=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,e)}))}_prepareDropdown(e,t,n,r){const o=this.editor,i=Ou(r),a=this._fillDropdownWithListOptions(i,n);return i.buttonView.set({label:e,icon:t,tooltip:!0}),i.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((e=>e))})),this.listenTo(i,"execute",(e=>{o.execute(e.source.commandName),o.editing.view.focus()})),i}_prepareMergeSplitButtonDropdown(e,t,n,r){const o=this.editor,i=Ou(r,au),a=o.commands.get("mergeTableCells"),s=this._fillDropdownWithListOptions(i,n);return i.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),i.bind("isEnabled").toMany([a,...s],"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((e=>e))})),this.listenTo(i.buttonView,"execute",(()=>{o.execute("mergeTableCells"),o.editing.view.focus()})),this.listenTo(i,"execute",(e=>{o.execute(e.source.commandName),o.editing.view.focus()})),i}_fillDropdownWithListOptions(e,t){const n=this.editor,r=[],o=new Zn;for(const i of t)sv(i,n,r,o);return Cu(e,o,n.ui.componentFactory),r}}function sv(e,t,n,r){const o=e.model=new Iu(e.model),{commandName:i,bindIsOn:a}=e.model;if("button"===e.type||"switchbutton"===e.type){const e=t.commands.get(i);n.push(e),o.set({commandName:i}),o.bind("isEnabled").to(e),a&&o.bind("isOn").to(e,"value")}o.set({withText:!0}),r.add(e)}n(104);class cv extends Qe{static get pluginName(){return"TableSelection"}static get requires(){return[Rb]}init(){const e=this.editor.model;this.listenTo(e,"deleteContent",((e,t)=>this._handleDeleteContent(e,t)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=ob(this.editor.model.document.selection);return 0==e.length?null:e}getSelectionAsFragment(){const e=this.getSelectedTableCells();return e?this.editor.model.change((t=>{const n=t.createDocumentFragment(),r=this.editor.plugins.get("TableUtils"),{first:o,last:i}=cb(e),{first:a,last:s}=sb(e),c=e[0].findAncestor("table");let l=s,u=i;if(lb(e,r)){const e={firstColumn:o,lastColumn:i,firstRow:a,lastRow:s};l=Eb(c,e),u=jb(c,e)}const d=bb(c,{startRow:a,startColumn:o,endRow:l,endColumn:u},t);return t.insert(d,n,0),n})):null}setCellSelection(e,t){const n=this._getCellsToSelect(e,t);this.editor.model.change((e=>{e.setSelection(n.cells.map((t=>e.createRangeOn(t))),{backward:n.backward})}))}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=Aa(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add((e=>e.on("selection",((e,n,r)=>{const o=r.writer;!function(e){for(const n of t)e.removeClass("ck-editor__editable_selected",n);t.clear()}(o);const i=this.getSelectedTableCells();if(!i)return;for(const s of i){const e=r.mapper.toViewElement(s);o.addClass("ck-editor__editable_selected",e),t.add(e)}const a=r.mapper.toViewElement(i[i.length-1]);o.setSelection(a,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change((n=>{const r=n.createPositionAt(t[0],0),o=e.model.schema.getNearestSelectionRange(r);n.setSelection(o)}))}}))}_handleDeleteContent(e,t){const[n,r]=t,o=this.editor.model,i=!r||"backward"==r.direction,a=ob(n);a.length&&(e.stop(),o.change((e=>{const t=a[i?a.length-1:0];o.change((e=>{for(const t of a)o.deleteContent(e.createSelection(t,"in"))}));const r=o.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(r):n.setTo(r)})))}_getCellsToSelect(e,t){const n=this.editor.plugins.get("TableUtils"),r=n.getCellLocation(e),o=n.getCellLocation(t),i=Math.min(r.row,o.row),a=Math.max(r.row,o.row),s=Math.min(r.column,o.column),c=Math.max(r.column,o.column),l=new Array(a-i+1).fill(null).map((()=>[])),u={startRow:i,endRow:a,startColumn:s,endColumn:c};for(const{row:h,cell:p}of new Kg(e.findAncestor("table"),u))l[h-i].push(p);const d=o.row<r.row,f=o.column<r.column;return d&&l.reverse(),f&&l.forEach((e=>e.reverse())),{cells:l.flat(),backward:d||f}}}class lv extends Qe{static get pluginName(){return"TableClipboard"}static get requires(){return[cv,Rb]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",((e,t)=>this._onCopyCut(e,t))),this.listenTo(t,"cut",((e,t)=>this._onCopyCut(e,t))),this.listenTo(e.model,"insertContent",((e,t)=>this._onInsertContent(e,...t)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const n=this.editor.plugins.get(cv);if(!n.getSelectedTableCells())return;if("cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();const r=this.editor.data,o=this.editor.editing.view.document,i=r.toView(n.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:i,method:e.name})}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;const r=this.editor.model,o=this.editor.plugins.get(Rb);let i=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);const n=t.createRangeIn(e);for(const r of n.getItems())if(r.is("element","table")){const e=t.createRange(n.start,t.createPositionBefore(r));if(t.hasContent(e,{ignoreWhitespaces:!0}))return null;const o=t.createRange(t.createPositionAfter(r),n.end);return t.hasContent(o,{ignoreWhitespaces:!0})?null:r}return null}(t,r);if(!i)return;const a=ab(r.document.selection);a.length?(e.stop(),r.change((e=>{const t={width:o.getColumns(i),height:o.getRows(i)},n=function(e,t,n,r){const o=e[0].findAncestor("table"),i=cb(e),a=sb(e),s={firstColumn:i.first,lastColumn:i.last,firstRow:a.first,lastRow:a.last},c=1===e.length;return c&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,r){const o=r.getColumns(e),i=r.getRows(e);n>o&&r.insertColumns(e,{at:o,columns:n-o}),t>i&&r.insertRows(e,{at:i,rows:t-i})}(o,s.lastRow+1,s.lastColumn+1,r)),c||!lb(e,r)?function(e,t,n){const{firstRow:r,lastRow:o,firstColumn:i,lastColumn:a}=t,s={first:r,last:o},c={first:i,last:a};dv(e,i,s,n),dv(e,a+1,s,n),uv(e,r,c,n),uv(e,o+1,c,n,r)}(o,s,n):(s.lastRow=Eb(o,s),s.lastColumn=jb(o,s)),s}(a,t,e,o),r=n.lastRow-n.firstRow+1,s=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(r,t.height)-1,endColumn:Math.min(s,t.width)-1};i=bb(i,c,e);const l=a[0].findAncestor("table"),u=this._replaceSelectedCellsWithPasted(i,t,l,n,e);if(this.editor.plugins.get("TableSelection").isEnabled){const t=ub(u.map((t=>e.createRangeOn(t))));e.setSelection(t)}else e.setSelection(u[0],0)}))):Cb(i,o)}_replaceSelectedCellsWithPasted(e,t,n,r,o){const{width:i,height:a}=t,s=function(e,t,n){const r=new Array(n).fill(null).map((()=>new Array(t).fill(null)));for(const{column:o,row:i,cell:a}of new Kg(e))r[i][o]=a;return r}(e,i,a),c=[...new Kg(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0})],l=[];let u;for(const m of c){const{row:e,column:t}=m;t===r.firstColumn&&(u=m.getPositionBefore());const n=e-r.firstRow,c=t-r.firstColumn,d=s[n%a][c%i],f=d?o.cloneElement(d):null,h=this._replaceTableSlotCell(m,f,u,o);h&&(_b(h,e,t,r.lastRow,r.lastColumn,o),l.push(h),u=o.createPositionAfter(h))}const d=parseInt(n.getAttribute("headingRows")||0),f=parseInt(n.getAttribute("headingColumns")||0),h=r.firstRow<d&&d<=r.lastRow,p=r.firstColumn<f&&f<=r.lastColumn;if(h){const e=uv(n,d,{first:r.firstColumn,last:r.lastColumn},o,r.firstRow);l.push(...e)}if(p){const e=dv(n,f,{first:r.firstRow,last:r.lastRow},o);l.push(...e)}return l}_replaceTableSlotCell(e,t,n,r){const{cell:o,isAnchor:i}=e;return i&&r.remove(o),t?(r.insert(t,n),t):null}}function uv(e,t,n,r){if(!(t<1))return vb(e,t,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0).filter((e=>{let{column:t,cellWidth:r}=e;return fv(t,r,n)})).map((e=>{let{cell:n}=e;return yb(n,t,r)}))}function dv(e,t,n,r){if(!(t<1))return wb(e,t).filter((e=>{let{row:t,cellHeight:r}=e;return fv(t,r,n)})).map((e=>{let{cell:n,column:o}=e;return kb(n,o,t,r)}))}function fv(e,t,n){const r=e+t-1,{first:o,last:i}=n;return e>=o&&e<=i||e<o&&r>=o}class hv extends Qe{static get pluginName(){return"TableKeyboard"}static get requires(){return[cv]}init(){var e=this;const t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable(...arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"arrowKey",(function(){return e._onArrowKey(...arguments)}),{context:"table"})}_handleTabOnSelectedTable(e,t){const n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change((e=>{e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))})))}_getTabHandler(e){const t=this.editor;return(n,r)=>{let o=ib(t.model.document.selection)[0];if(o||(o=this.editor.plugins.get("TableSelection").getFocusCell()),!o)return;r();const i=o.parent,a=i.parent,s=a.getChildIndex(i),c=i.getChildIndex(o),l=0===c;if(!e&&l&&0===s)return void t.model.change((e=>{e.setSelection(e.createRangeOn(a))}));const u=this.editor.plugins.get("TableUtils"),d=c===i.childCount-1,f=s===u.getRows(a)-1;if(e&&f&&d&&(t.execute("insertTableRowBelow"),s===u.getRows(a)-1))return void t.model.change((e=>{e.setSelection(e.createRangeOn(a))}));let h;if(e&&d){const e=a.getChild(s+1);h=e.getChild(0)}else if(!e&&l){const e=a.getChild(s-1);h=e.getChild(e.childCount-1)}else h=i.getChild(c+(e?1:-1));t.model.change((e=>{e.setSelection(e.createRangeIn(h))}))}}_onArrowKey(e,t){const n=this.editor,r=Lo(t.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(r,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const n=this.editor.model.document.selection,r=["right","down"].includes(e),o=ob(n);if(o.length){let n;return n=t?this.editor.plugins.get("TableSelection").getFocusCell():r?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0}const i=n.focus.findAncestor("tableCell");return!!i&&!(t&&!n.isCollapsed&&n.isBackward==r)&&!!this._isSelectionAtCellEdge(n,i,r)&&(this._navigateFromCellInDirection(i,e,t),!0)}_isSelectionAtCellEdge(e,t,n){const r=this.editor.model,o=this.editor.model.schema,i=n?e.getLastPosition():e.getFirstPosition();if(!o.getLimitElement(i).is("element","tableCell"))return r.createPositionAt(t,n?"end":0).isTouching(i);const a=r.createSelection(i);return r.modifySelection(a,{direction:n?"forward":"backward"}),i.isEqual(a.focus)}_navigateFromCellInDirection(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.editor.model,o=e.findAncestor("table"),i=[...new Kg(o,{includeAllSlots:!0})],{row:a,column:s}=i[i.length-1],c=i.find((t=>{let{cell:n}=t;return n==e}));let{row:l,column:u}=c;switch(t){case"left":u--;break;case"up":l--;break;case"right":u+=c.cellWidth;break;case"down":l+=c.cellHeight}if(l<0||l>a||u<0&&l<=0||u>s&&l>=a)return void r.change((e=>{e.setSelection(e.createRangeOn(o))}));u<0?(u=n?0:s,l--):u>s&&(u=n?s:0,l++);const d=i.find((e=>e.row==l&&e.column==u)).cell,f=["right","down"].includes(t),h=this.editor.plugins.get("TableSelection");if(n&&h.isEnabled){const t=h.getAnchorCell()||e;h.setCellSelection(t,d)}else{const e=r.createPositionAt(d,f?0:"end");r.change((t=>{t.setSelection(e)}))}}}class pv extends ta{constructor(e){super(e),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class mv extends Qe{static get pluginName(){return"TableMouse"}static get requires(){return[cv]}init(){this.editor.editing.view.addObserver(pv),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor;let t=!1;const n=e.plugins.get(cv);this.listenTo(e.editing.view.document,"mousedown",((r,o)=>{if(!this.isEnabled||!n.isEnabled)return;if(!o.domEvent.shiftKey)return;const i=n.getAnchorCell()||ib(e.model.document.selection)[0];if(!i)return;const a=this._getModelTableCellFromDomEvent(o);a&&gv(i,a)&&(t=!0,n.setCellSelection(i,a),o.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{t=!1})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{t&&e.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,n,r=!1,o=!1;const i=e.plugins.get(cv);this.listenTo(e.editing.view.document,"mousedown",((e,n)=>{this.isEnabled&&i.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(e.editing.view.document,"mousemove",((e,a)=>{if(!a.domEvent.buttons)return;if(!t)return;const s=this._getModelTableCellFromDomEvent(a);s&&gv(t,s)&&(n=s,r||n==t||(r=!0)),r&&(o=!0,i.setCellSelection(t,n),a.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{r=!1,o=!1,t=null,n=null})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{o&&e.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function gv(e,t){return e.parent.parent==t.parent.parent}function bv(e){const t=e.getSelectedElement();return t&&yv(t)?t:null}function vv(e){let t=e.getFirstPosition().parent;for(;t;){if(t.is("element")&&yv(t))return t;t=t.parent}return null}function yv(e){return!!e.getCustomProperty("table")&&Rd(e)}n(106);const wv={autoRefresh:!0};class kv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wv;if(!e)throw new c.a("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>{return t=e,new Promise(((e,n)=>{const r=new XMLHttpRequest;r.open("GET",t),r.addEventListener("load",(()=>{const t=r.status,o=r.response;return t<200||t>299?n(new c.a("token-cannot-download-new-token",null)):e(o)})),r.addEventListener("error",(()=>n(new Error("Network Error")))),r.addEventListener("abort",(()=>n(new Error("Abort")))),r.send()}));var t},this._options=Object.assign({},wv,t)}init(){return new Promise(((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)}))}refreshToken(){return this._refresh().then((e=>{this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout()})).then((()=>this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t="string"==typeof e,n=!/^".*"$/.test(e),r=t&&3===e.split(".").length;if(!n||!r)throw new c.a("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((()=>{this.refreshToken()}),e)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((1e3*t-Date.now())/2):36e5}catch(e){return 36e5}}static create(e){return new kv(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:wv).init()}}Ge(kv,We);var _v=kv;const Ov=/^data:(\S*?);base64,/;class xv{constructor(e,t,n){if(!e)throw new c.a("fileuploader-missing-file",null);if(!t)throw new c.a("fileuploader-missing-token",null);if(!n)throw new c.a("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;const t=e.match(Ov);return!(!t||!t.length)}(e)?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;try{const n=e.match(Ov)[1],r=atob(e.replace(Ov,"")),o=[];for(let e=0;e<r.length;e+=t){const n=r.slice(e,e+t),i=new Array(n.length);for(let e=0;e<n.length;e++)i[e]=n.charCodeAt(e);o.push(new Uint8Array(i))}return new Blob(o,{type:n})}catch(e){throw new c.a("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=t,this._apiAddress=n}onProgress(e){return this.on("progress",((t,n)=>e(n))),this}onError(e){return this.once("error",((t,n)=>e(n))),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this,t=this.xhr;function n(t){return()=>e.fire("error",t)}t.addEventListener("error",n("Network Error")),t.addEventListener("abort",n("Abort")),t.upload&&t.upload.addEventListener("progress",(e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})})),t.addEventListener("load",(()=>{const e=t.status,n=t.response;if(e<200||e>299)return this.fire("error",n.message||n.error)}))}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise(((n,r)=>{t.addEventListener("load",(()=>{const e=t.status,o=t.response;return e<200||e>299?o.message?r(new c.a("fileuploader-uploading-data-failed",this,{message:o.message})):r(o.error):n(o)})),t.addEventListener("error",(()=>r(new Error("Network Error")))),t.addEventListener("abort",(()=>r(new Error("Abort")))),t.send(e)}))}}Ge(xv,d);class Cv{constructor(e,t){if(!e)throw new c.a("uploadgateway-missing-token",null);if(!t)throw new c.a("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new xv(e,this._token,this._apiAddress)}}class Ev extends sr{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new _v(e,t)}createUploadGateway(e,t){return new Cv(e,t)}}class jv extends gd{}jv.builtinPlugins=[class extends Qe{static get requires(){return[uf,Cd,wf,pf,Sf,rh]}static get pluginName(){return"Essentials"}},class extends Qe{static get requires(){return[ih]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(ih).createUploadAdapter=t=>new uh(t,e,this.editor.t))}},class extends Qe{static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const e=this.editor.commands;e.get("bulletedList")&&dh(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&dh(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&dh(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&dh(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const e=this.editor.commands;if(e.get("bold")){const e=ph(this.editor,"bold");fh(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),fh(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(e.get("italic")){const e=ph(this.editor,"italic");fh(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),fh(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(e.get("code")){const e=ph(this.editor,"code");fh(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){const e=ph(this.editor,"strikethrough");fh(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const e=this.editor.commands.get("heading");e&&e.modelElements.filter((e=>e.match(/^heading[1-6]$/))).forEach((t=>{const n=t[7],r=new RegExp("^(#{".concat(n,"})\\s$"));dh(this.editor,this,r,(()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&dh(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const e=this.editor,t=e.model.document.selection;e.commands.get("codeBlock")&&dh(e,this,/^```$/,(()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&dh(this.editor,this,/^---$/,"horizontalLine")}},class extends Qe{static get requires(){return[gh,bh]}static get pluginName(){return"Bold"}},class extends Qe{static get requires(){return[vh,yh]}static get pluginName(){return"Italic"}},class extends Qe{static get requires(){return[xh,Ch]}static get pluginName(){return"BlockQuote"}},class extends Qe{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Ph,Eh]}},class extends sr{static get pluginName(){return"CloudServices"}static get requires(){return[Ev]}init(){const e=this.context.config.get("cloudServices")||{};for(const t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));const t=this.context.plugins.get("CloudServicesCore").createToken(e);return this._tokens.set(e,t),t.init()}getTokenFor(e){const t=this._tokens.get(e);if(!t)throw new c.a("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}},class extends Qe{static get requires(){return[Th,"ImageUpload"]}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||Object(c.b)("easy-image-image-feature-missing",e)}static get pluginName(){return"EasyImage"}},class extends Qe{static get requires(){return[zh,Fh]}static get pluginName(){return"Heading"}},class extends Qe{static get requires(){return[up,fp]}static get pluginName(){return"Image"}},class extends Qe{static get requires(){return[gp,vp]}static get pluginName(){return"ImageCaption"}},class extends Qe{static get requires(){return[Mp,Rp]}static get pluginName(){return"ImageStyle"}},class extends Qe{static get requires(){return[Vh,Qh]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(Vh),r=e.plugins.get("ImageUtils");var o;n.register("image",{ariaLabel:t("Image toolbar"),items:(o=e.config.get("image.toolbar")||[],o.map((e=>y(e)?e.name:e))),getRelatedElement:e=>r.getClosestSelectedImageWidget(e)})}},class extends Qe{static get pluginName(){return"ImageUpload"}static get requires(){return[Gp,Bp,Hp]}},class extends Qe{static get pluginName(){return"Indent"}static get requires(){return[Xp,em]}},class extends Qe{static get requires(){return[Nm,Lm,Vm]}static get pluginName(){return"Link"}},class extends Qe{static get requires(){return[fg,pg]}static get pluginName(){return"List"}},class extends Qe{static get requires(){return[_g,Eg,xg,ef]}static get pluginName(){return"MediaEmbed"}},Ih,class extends Qe{static get pluginName(){return"PasteFromOffice"}static get requires(){return[wd]}init(){const e=this.editor,t=e.editing.view.document,n=[];n.push(new Dg(t)),n.push(new Ag(t)),e.plugins.get("ClipboardPipeline").on("inputTransformation",((e,r)=>{if(r._isTransformedWithPasteFromOffice)return;const o=r.dataTransfer.getData("text/html"),i=n.find((e=>e.isActive(o)));i&&(r._parsedData=zg(o,t.stylesProcessor),i.execute(r),r._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends Qe{static get requires(){return[nv,av,cv,mv,hv,lv,ef]}static get pluginName(){return"Table"}},class extends Qe{static get requires(){return[Vh]}static get pluginName(){return"TableToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(Vh),r=e.config.get("table.contentToolbar"),o=e.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:vv}),o&&n.register("table",{ariaLabel:t("Table toolbar"),items:o,getRelatedElement:bv})}},class extends Qe{static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:Bf}})}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,n=e.plugins.get("Input"),r=function(e){const t=e.extra||[],n=e.remove||[],r=e=>!n.includes(e);return function(e){const t=new Set;for(const n of e)if(Vf[n])for(const e of Vf[n])t.add(e);else t.add(n);return Array.from(t)}(e.include.concat(t).filter(r)).filter(r).map((e=>Ff[e]||e)).map((e=>({from:Hf(e.from),to:Wf(e.to)})))}(e.config.get("typing.transformations")),o=new Tf(e.model,(e=>{for(const t of r)if(t.from.test(e))return{normalizedTransformation:t}}));o.on("matched:data",((e,r)=>{if(!n.isInput(r.batch))return;const{from:o,to:i}=r.normalizedTransformation,a=o.exec(r.text),s=i(a.slice(1)),c=r.range;let l=a.index;t.enqueueChange((e=>{for(let n=1;n<a.length;n++){const r=a[n],o=s[n-1];if(null==o){l+=r.length;continue}const i=c.start.getShiftedBy(l),u=t.createRange(i,i.getShiftedBy(r.length)),d=Uf(i);t.insertContent(e.createText(o,d),u),l+=o.length}}))})),o.bind("isEnabled").to(this)}}],jv.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","uploadImage","blockQuote","insertTable","mediaEmbed","undo","redo"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}]).default},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"}}]})(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){return Object(r.a)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zm.995-14.901a1 1 0 1 0-1.99 0A5.002 5.002 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z"}}]})(e)}},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(7),a=n.n(i),s=n(1),c=n.n(s),l=n(66),u=n(24),d=function(e){var t=Object(s.useContext)(l.b),n=t.getPrefixCls,i=t.direction,c=e.prefixCls,d=e.className,f=void 0===d?"":d,h=n("input-group",c),p=a()(h,Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(h,"-lg"),"large"===e.size),"".concat(h,"-sm"),"small"===e.size),"".concat(h,"-compact"),e.compact),"".concat(h,"-rtl"),"rtl"===i),f),m=Object(s.useContext)(u.b),g=Object(s.useMemo)((function(){return Object(r.a)(Object(r.a)({},m),{isFormItemInput:!1})}),[m]);return s.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(u.b.Provider,{value:g},e.children))},f=n(10),h=n(77);function p(e){return!(!e.addonBefore&&!e.addonAfter)}function m(e){return!!(e.prefix||e.suffix||e.allowClear)}function g(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function b(e){return"undefined"===typeof e||null===e?"":String(e)}var v=function(e){var t=e.inputElement,n=e.prefixCls,r=e.prefix,i=e.suffix,l=e.addonBefore,u=e.addonAfter,d=e.className,h=e.style,g=e.affixWrapperClassName,b=e.groupClassName,v=e.wrapperClassName,y=e.disabled,w=e.readOnly,k=e.focused,_=e.triggerFocus,O=e.allowClear,x=e.value,C=e.handleReset,E=e.hidden,j=Object(s.useRef)(null),S=Object(s.cloneElement)(t,{value:x,hidden:E});if(m(e)){var P,T="".concat(n,"-affix-wrapper"),N=a()(T,(P={},Object(o.a)(P,"".concat(T,"-disabled"),y),Object(o.a)(P,"".concat(T,"-focused"),k),Object(o.a)(P,"".concat(T,"-readonly"),w),Object(o.a)(P,"".concat(T,"-input-with-clear-btn"),i&&O&&x),P),!p(e)&&d,g),A=(i||O)&&c.a.createElement("span",{className:"".concat(n,"-suffix")},function(){var e;if(!O)return null;var t=!y&&!w&&x,r="".concat(n,"-clear-icon"),s="object"===Object(f.a)(O)&&null!==O&&void 0!==O&&O.clearIcon?O.clearIcon:"\u2716";return c.a.createElement("span",{onClick:C,onMouseDown:function(e){return e.preventDefault()},className:a()(r,(e={},Object(o.a)(e,"".concat(r,"-hidden"),!t),Object(o.a)(e,"".concat(r,"-has-suffix"),!!i),e)),role:"button",tabIndex:-1},s)}(),i);S=c.a.createElement("span",{className:N,style:h,hidden:!p(e)&&E,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null===_||void 0===_||_())},ref:j},r&&c.a.createElement("span",{className:"".concat(n,"-prefix")},r),Object(s.cloneElement)(t,{style:null,value:x,hidden:null}),A)}if(p(e)){var M="".concat(n,"-group"),R="".concat(M,"-addon"),I=a()("".concat(n,"-wrapper"),M,v),D=a()("".concat(n,"-group-wrapper"),d,b);return c.a.createElement("span",{className:D,style:h,hidden:E},c.a.createElement("span",{className:I},l&&c.a.createElement("span",{className:R},l),Object(s.cloneElement)(S,{style:null,hidden:null}),u&&c.a.createElement("span",{className:R},u)))}return S},y=n(9),w=n(6),k=n(8),_=n(32),O=n(33),x=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],C=Object(s.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,l=e.onFocus,u=e.onBlur,d=e.onPressEnter,h=e.onKeyDown,C=e.prefixCls,E=void 0===C?"rc-input":C,j=e.disabled,S=e.htmlSize,P=e.className,T=e.maxLength,N=e.suffix,A=e.showCount,M=e.type,R=void 0===M?"text":M,I=e.inputClassName,D=Object(k.a)(e,x),L=Object(O.a)(e.defaultValue,{value:e.value}),z=Object(w.a)(L,2),F=z[0],V=z[1],B=Object(s.useState)(!1),H=Object(w.a)(B,2),W=H[0],U=H[1],K=Object(s.useRef)(null),Y=function(e){K.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(K.current,e)};Object(s.useImperativeHandle)(t,(function(){return{focus:Y,blur:function(){var e;null===(e=K.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=K.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=K.current)||void 0===e||e.select()},input:K.current}})),Object(s.useEffect)((function(){U((function(e){return(!e||!j)&&e}))}),[j]);var q=function(t){void 0===e.value&&V(t.target.value),K.current&&g(K.current,t,i)},$=function(e){d&&"Enter"===e.key&&d(e),null===h||void 0===h||h(e)},G=function(e){U(!0),null===l||void 0===l||l(e)},Q=function(e){U(!1),null===u||void 0===u||u(e)};return c.a.createElement(v,Object(r.a)({},D,{prefixCls:E,className:P,inputElement:function(){var t=Object(_.a)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return c.a.createElement("input",Object(r.a)({autoComplete:n},t,{onChange:q,onFocus:G,onBlur:Q,onKeyDown:$,className:a()(E,Object(o.a)({},"".concat(E,"-disabled"),j),I,!p(e)&&!m(e)&&P),ref:K,size:S,type:R}))}(),handleReset:function(e){V(""),Y(),K.current&&g(K.current,e,i)},value:b(F),focused:W,triggerFocus:Y,suffix:function(){var e=Number(T)>0;if(N||A){var t=b(F),n=Object(y.a)(t).length,r="object"===Object(f.a)(A)?A.formatter({value:t,count:n,maxLength:T}):"".concat(n).concat(e?" / ".concat(T):"");return c.a.createElement(c.a.Fragment,null,!!A&&c.a.createElement("span",{className:a()("".concat(E,"-show-count-suffix"),Object(o.a)({},"".concat(E,"-show-count-has-suffix"),!!N))},r),N)}return null}(),disabled:j}))})),E=n(28),j=n(58),S=n(49),P=n(55),T=n(59);function N(e,t){var n=Object(s.useRef)([]),r=function(){n.current.push(setTimeout((function(){var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return Object(s.useEffect)((function(){return t&&r(),function(){return n.current.forEach((function(e){e&&clearTimeout(e)}))}}),[]),r}var A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function M(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}var R=Object(s.forwardRef)((function(e,t){var n=e.prefixCls,i=e.bordered,d=void 0===i||i,p=e.status,m=e.size,g=e.disabled,b=e.onBlur,v=e.onFocus,y=e.suffix,w=e.allowClear,k=e.addonAfter,_=e.addonBefore,O=e.className,x=e.onChange,M=A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),R=c.a.useContext(l.b),I=R.getPrefixCls,D=R.direction,L=R.input,z=I("input",n),F=Object(s.useRef)(null),V=Object(P.c)(z,D),B=V.compactSize,H=V.compactItemClassnames,W=c.a.useContext(S.b),U=B||m||W,K=c.a.useContext(j.b),Y=null!==g&&void 0!==g?g:K,q=Object(s.useContext)(u.b),$=q.status,G=q.hasFeedback,Q=q.feedbackIcon,X=Object(T.a)($,p),J=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!G,Z=Object(s.useRef)(J);Object(s.useEffect)((function(){J&&Z.current,Z.current=J}),[J]);var ee,te=N(F,!0),ne=(G||y)&&c.a.createElement(c.a.Fragment,null,y,G&&Q);return"object"===Object(f.a)(w)&&(null===w||void 0===w?void 0:w.clearIcon)?ee=w:w&&(ee={clearIcon:c.a.createElement(h.a,null)}),c.a.createElement(C,Object(r.a)({ref:Object(E.a)(t,F),prefixCls:z,autoComplete:null===L||void 0===L?void 0:L.autoComplete},M,{disabled:Y||void 0,onBlur:function(e){te(),null===b||void 0===b||b(e)},onFocus:function(e){te(),null===v||void 0===v||v(e)},suffix:ne,allowClear:ee,className:a()(O,H),onChange:function(e){te(),null===x||void 0===x||x(e)},addonAfter:k&&c.a.createElement(P.a,null,c.a.createElement(u.e,{override:!0,status:!0},k)),addonBefore:_&&c.a.createElement(P.a,null,c.a.createElement(u.e,{override:!0,status:!0},_)),inputClassName:a()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(z,"-sm"),"small"===U),"".concat(z,"-lg"),"large"===U),"".concat(z,"-rtl"),"rtl"===D),"".concat(z,"-borderless"),!d),!J&&Object(T.b)(z,X)),affixWrapperClassName:a()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(z,"-affix-wrapper-sm"),"small"===U),"".concat(z,"-affix-wrapper-lg"),"large"===U),"".concat(z,"-affix-wrapper-rtl"),"rtl"===D),"".concat(z,"-affix-wrapper-borderless"),!d),Object(T.b)("".concat(z,"-affix-wrapper"),X,G)),wrapperClassName:a()(Object(o.a)({},"".concat(z,"-group-rtl"),"rtl"===D)),groupClassName:a()(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(z,"-group-wrapper-sm"),"small"===U),"".concat(z,"-group-wrapper-lg"),"large"===U),"".concat(z,"-group-wrapper-rtl"),"rtl"===D),Object(T.b)("".concat(z,"-group-wrapper"),X,G))}))})),I=n(5),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},L=n(18),z=function(e,t){return s.createElement(L.a,Object(I.a)(Object(I.a)({},e),{},{ref:t,icon:D}))};z.displayName="EyeInvisibleOutlined";var F=s.forwardRef(z),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},B=function(e,t){return s.createElement(L.a,Object(I.a)(Object(I.a)({},e),{},{ref:t,icon:V}))};B.displayName="EyeOutlined";var H=s.forwardRef(B),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},U=function(e){return e?s.createElement(H,null):s.createElement(F,null)},K={click:"onClick",hover:"onMouseOver"};var Y=s.forwardRef((function(e,t){var n=e.visibilityToggle,i=void 0===n||n,c="object"===Object(f.a)(i)&&void 0!==i.visible,u=Object(s.useState)((function(){return!!c&&i.visible})),d=Object(w.a)(u,2),h=d[0],p=d[1],m=Object(s.useRef)(null);s.useEffect((function(){c&&p(i.visible)}),[c,i]);var g=N(m),b=function(){e.disabled||(h&&g(),p((function(e){var t,n=!e;return"object"===Object(f.a)(i)&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},v=function(n){var c=n.getPrefixCls,l=e.className,u=e.prefixCls,d=e.inputPrefixCls,f=e.size,p=W(e,["className","prefixCls","inputPrefixCls","size"]),g=c("input",d),v=c("input-password",u),y=i&&function(t){var n=e.action,r=void 0===n?"click":n,i=e.iconRender,a=K[r]||"",c=(void 0===i?U:i)(h),l=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},a,b),"className","".concat(t,"-icon")),"key","passwordIcon"),"onMouseDown",(function(e){e.preventDefault()})),"onMouseUp",(function(e){e.preventDefault()}));return s.cloneElement(s.isValidElement(c)?c:s.createElement("span",null,c),l)}(v),w=a()(v,l,Object(o.a)({},"".concat(v,"-").concat(f),!!f)),k=Object(r.a)(Object(r.a)({},Object(_.a)(p,["suffix","iconRender","visibilityToggle"])),{type:h?"text":"password",className:w,prefixCls:g,suffix:y});return f&&(k.size=f),s.createElement(R,Object(r.a)({ref:Object(E.a)(t,m)},k))};return s.createElement(l.a,null,v)})),q=n(139),$=n(71),G=n(26),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var X=s.forwardRef((function(e,t){var n,i=e.prefixCls,c=e.inputPrefixCls,u=e.className,d=e.size,f=e.suffix,h=e.enterButton,p=void 0!==h&&h,m=e.addonAfter,g=e.loading,b=e.disabled,v=e.onSearch,y=e.onChange,w=e.onCompositionStart,k=e.onCompositionEnd,_=Q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),O=s.useContext(l.b),x=O.getPrefixCls,C=O.direction,j=s.useContext(S.b),T=s.useRef(!1),N=x("input-search",i),A=x("input",c),M=Object(P.c)(N,C).compactSize||d||j,I=s.useRef(null),D=function(e){var t;document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input)&&e.preventDefault()},L=function(e){var t,n;v&&v(null===(n=null===(t=I.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},z="boolean"===typeof p?s.createElement(q.a,null):null,F="".concat(N,"-button"),V=p||{},B=V.type&&!0===V.type.__ANT_BUTTON;n=B||"button"===V.type?Object(G.a)(V,Object(r.a)({onMouseDown:D,onClick:function(e){var t,n;null===(n=null===(t=null===V||void 0===V?void 0:V.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),L(e)},key:"enterButton"},B?{className:F,size:M}:{})):s.createElement($.a,{className:F,type:p?"primary":void 0,size:M,disabled:b,key:"enterButton",onMouseDown:D,onClick:L,loading:g,icon:z},p),m&&(n=[n,Object(G.a)(m,{key:"addonAfter"})]);var H=a()(N,Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(N,"-rtl"),"rtl"===C),"".concat(N,"-").concat(M),!!M),"".concat(N,"-with-button"),!!p),u);return s.createElement(R,Object(r.a)({ref:Object(E.a)(I,t),onPressEnter:function(e){T.current||g||L(e)}},_,{size:M,onCompositionStart:function(e){T.current=!0,null===w||void 0===w||w(e)},onCompositionEnd:function(e){T.current=!1,null===k||void 0===k||k(e)},prefixCls:A,addonAfter:n,suffix:f,onChange:function(e){e&&e.target&&"click"===e.type&&v&&v(e.target.value,e),y&&y(e)},className:H,disabled:b}))})),J=n(272),Z=n(27),ee=n(25),te=n(37),ne=n(38),re=n(50),oe=Object(re.a)("text","input");var ie=function(e){Object(te.a)(n,e);var t=Object(ne.a)(n);function n(){return Object(Z.a)(this,n),t.apply(this,arguments)}return Object(ee.a)(n,[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.value,r=t.disabled,i=t.readOnly,c=t.handleReset,l=t.suffix,u=!r&&!i&&n,d="".concat(e,"-clear-icon");return s.createElement(h.a,{onClick:c,onMouseDown:function(e){return e.preventDefault()},className:a()(Object(o.a)(Object(o.a)({},"".concat(d,"-hidden"),!u),"".concat(d,"-has-suffix"),!!l),d),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(e,t,n){var r=this.props,i=r.value,c=r.allowClear,l=r.className,u=r.focused,d=r.style,f=r.direction,h=r.bordered,p=r.hidden,m=r.status,g=n.status,b=n.hasFeedback;if(!c)return Object(G.a)(t,{value:i});var v,y=a()("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),Object(T.b)("".concat(e,"-affix-wrapper"),Object(T.a)(g,m),b),Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(e,"-affix-wrapper-focused"),u),"".concat(e,"-affix-wrapper-rtl"),"rtl"===f),"".concat(e,"-affix-wrapper-borderless"),!h),"".concat(l),!((v=this.props).addonBefore||v.addonAfter)&&l));return s.createElement("span",{className:y,style:d,hidden:p},Object(G.a)(t,{style:null,value:i}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this;return s.createElement(u.b.Consumer,null,(function(t){var n=e.props,r=n.prefixCls,o=n.inputType,i=n.element;if(o===oe[0])return e.renderTextAreaWithClearIcon(r,i,t)}))}}]),n}(s.Component),ae=ie,se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ce(e,t){return Object(y.a)(e||"").slice(0,t).join("")}function le(e,t,n,r){var o=n;return e?o=ce(n,r):Object(y.a)(t||"").length<n.length&&Object(y.a)(n||"").length>r&&(o=t),o}var ue=s.forwardRef((function(e,t){var n=e.prefixCls,i=e.bordered,c=void 0===i||i,d=e.showCount,h=void 0!==d&&d,p=e.maxLength,m=e.className,g=e.style,b=e.size,v=e.disabled,k=e.onCompositionStart,x=e.onCompositionEnd,C=e.onChange,E=e.onFocus,P=e.onBlur,N=e.status,A=se(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),R=s.useContext(l.b),I=R.getPrefixCls,D=R.direction,L=s.useContext(S.b),z=s.useContext(j.b),F=null!==v&&void 0!==v?v:z,V=s.useContext(u.b),B=V.status,H=V.hasFeedback,W=V.isFormItemInput,U=V.feedbackIcon,K=Object(T.a)(B,N),Y=s.useRef(null),q=s.useRef(null),$=s.useState(!1),G=Object(w.a)($,2),Q=G[0],X=G[1],Z=s.useState(!1),ee=Object(w.a)(Z,2),te=ee[0],ne=ee[1],re=s.useRef(),oe=s.useRef(0),ie=Object(O.a)(A.defaultValue,{value:A.value}),ue=Object(w.a)(ie,2),de=ue[0],fe=ue[1],he=A.hidden,pe=function(e,t){void 0===A.value&&(fe(e),null===t||void 0===t||t())},me=Number(p)>0;s.useEffect((function(){ne((function(e){return!F&&e}))}),[F]);var ge=I("input",n);s.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=Y.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;!function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(null===(n=null===(t=Y.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=Y.current)||void 0===e?void 0:e.blur()}}}));var be=s.createElement(J.a,Object(r.a)({},Object(_.a)(A,["allowClear"]),{disabled:F,className:a()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(ge,"-borderless"),!c),m,m&&!h),"".concat(ge,"-sm"),"small"===L||"small"===b),"".concat(ge,"-lg"),"large"===L||"large"===b),Object(T.b)(ge,K)),style:h?{resize:null===g||void 0===g?void 0:g.resize}:g,prefixCls:ge,onCompositionStart:function(e){X(!0),re.current=de,oe.current=e.currentTarget.selectionStart,null===k||void 0===k||k(e)},onChange:function(e){var t=e.target.value;!Q&&me&&(t=le(e.target.selectionStart>=p+1||e.target.selectionStart===t.length||!e.target.selectionStart,de,t,p));pe(t),M(e.currentTarget,e,C,t)},onBlur:function(e){ne(!1),null===P||void 0===P||P(e)},onFocus:function(e){ne(!0),null===E||void 0===E||E(e)},onCompositionEnd:function(e){var t;X(!1);var n=e.currentTarget.value;me&&(n=le(oe.current>=p+1||oe.current===(null===(t=re.current)||void 0===t?void 0:t.length),re.current,n,p));n!==de&&(pe(n),M(e.currentTarget,e,C,n)),null===x||void 0===x||x(e)},ref:Y})),ve=function(e){return"undefined"===typeof e||null===e?"":String(e)}(de);Q||!me||null!==A.value&&void 0!==A.value||(ve=ce(ve,p));var ye=s.createElement(ae,Object(r.a)({disabled:F,focused:te},A,{prefixCls:ge,direction:D,inputType:"text",value:ve,element:be,handleReset:function(e){var t,n,r;pe(""),null===(t=Y.current)||void 0===t||t.focus(),M(null===(r=null===(n=Y.current)||void 0===n?void 0:n.resizableTextArea)||void 0===r?void 0:r.textArea,e,C)},ref:q,bordered:c,status:N,style:h?void 0:g}));if(h||H){var we=Object(y.a)(ve).length,ke="";return ke="object"===Object(f.a)(h)?h.formatter({value:ve,count:we,maxLength:p}):"".concat(we).concat(me?" / ".concat(p):""),s.createElement("div",{hidden:he,className:a()("".concat(ge,"-textarea"),Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(ge,"-textarea-rtl"),"rtl"===D),"".concat(ge,"-textarea-show-count"),h),"".concat(ge,"-textarea-in-form-item"),W),Object(T.b)("".concat(ge,"-textarea"),K,H),m),style:g,"data-count":ke},ye,H&&s.createElement("span",{className:"".concat(ge,"-textarea-suffix")},U))}return ye})),de=R;de.Group=d,de.Search=X,de.TextArea=ue,de.Password=Y;t.a=de},function(e,t,n){"use strict";var r=n(4),o=n(8),i=n(413),a=n(3),s=["xs","sm","md","lg","xl"];function c(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(276),u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=n(46),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(v.e)(e.main,o):"dark"===t&&(e.dark=Object(v.b)(e.main,i)))}function _(e){return Math.round(1e5*e)/1e5}function O(e){return _(e)}var x={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?C:r,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,d=void 0===u?300:u,f=n.fontWeightRegular,h=void 0===f?400:f,p=n.fontWeightMedium,m=void 0===p?500:p,g=n.fontWeightBold,b=void 0===g?700:g,v=n.htmlFontSize,y=void 0===v?16:v,w=n.allVariants,k=n.pxToRem,E=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var j=l/14,S=k||function(e){return"".concat(e/y*j,"rem")},P=function(e,t,n,r,o){return Object(a.a)({fontFamily:s,fontWeight:e,fontSize:S(t),lineHeight:n},s===C?{letterSpacing:"".concat(_(r/t),"em")}:{},o,w)},T={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(h,48,1.167,0),h4:P(h,34,1.235,.25),h5:P(h,24,1.334,0),h6:P(m,20,1.6,.15),subtitle1:P(h,16,1.75,.15),subtitle2:P(m,14,1.57,.1),body1:P(h,16,1.5,.15),body2:P(h,14,1.43,.15),button:P(m,14,1.75,.4,x),caption:P(h,12,1.66,.4),overline:P(h,12,2.66,1,x)};return Object(i.a)(Object(a.a)({htmlFontSize:y,pxToRem:S,round:O,fontFamily:s,fontSize:l,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:m,fontWeightBold:b},T),E,{clone:!1})}function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var S=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4},T=n(488);var N=n(82),A=n(174);function M(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,_=void 0===r?{}:r,O=e.palette,x=void 0===O?{}:O,C=e.spacing,j=e.typography,M=void 0===j?{}:j,R=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),I=function(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,r=e.secondary,s=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,c=e.error,_=void 0===c?{light:p[300],main:p[500],dark:p[700]}:c,O=e.warning,x=void 0===O?{light:m[300],main:m[500],dark:m[700]}:O,C=e.info,E=void 0===C?{light:g[300],main:g[500],dark:g[700]}:C,j=e.success,S=void 0===j?{light:b[300],main:b[500],dark:b[700]}:j,P=e.type,T=void 0===P?"light":P,N=e.contrastThreshold,A=void 0===N?3:N,M=e.tonalOffset,R=void 0===M?.2:M,I=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return Object(v.d)(e,w.text.primary)>=A?w.text.primary:y.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return k(e,"light",n,R),k(e,"dark",r,R),e.contrastText||(e.contrastText=D(e.main)),e},z={dark:w,light:y};return Object(i.a)(Object(a.a)({common:u,type:T,primary:L(n),secondary:L(s,"A400","A200","A700"),error:L(_),warning:L(x),info:L(E),success:L(S),grey:d,contrastThreshold:A,getContrastText:D,augmentColor:L,tonalOffset:R},z[T]),I)}(x),D=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,c=e.step,l=void 0===c?5:c,u=Object(o.a)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function f(e,t){var r=s.indexOf(t);return r===s.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:t)-l/100).concat(i,")")}return Object(a.a)({keys:s,values:n,up:d,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(i,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)}(n),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(T.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(C),z=Object(i.a)({breakpoints:D,direction:"ltr",mixins:c(D,L,_),overrides:{},palette:I,props:{},shadows:S,typography:E(I,M),spacing:L,shape:P,transitions:N.a,zIndex:A.a},R),F=arguments.length,V=new Array(F>1?F-1:0),B=1;B<F;B++)V[B-1]=arguments[B];return z=V.reduce((function(e,t){return Object(i.a)(e,t)}),z)}t.a=M},function(e,t,n){"use strict";var r=n(3),o=n(6),i=n(1),a=n.n(i),s=n(270),c=n(5),l=n(7),u=n.n(l),d=n(11);var f=0;var h=Object(c.a)({},i).useId,p=h?function(e){var t=h();return e||t}:function(e){var t=i.useState("ssr-id"),n=Object(o.a)(t,2),r=n[0],a=n[1];return i.useEffect((function(){var e=f;f+=1,a("rc_unique_".concat(e))}),[]),e||r},m=n(93),g=n(69),b=n(52);function v(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,s=e.motionName;return i.createElement(b.b,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var s=e.className,l=e.style;return i.createElement("div",Object(r.a)({ref:o,style:Object(c.a)(Object(c.a)({},l),n),className:u()("".concat(t,"-mask"),s)},a))}))}function y(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function w(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var k=i.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),_={width:0,height:0,overflow:"hidden",outline:"none"};var O=a.a.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,s=e.style,l=e.title,d=e.ariaId,f=e.footer,h=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,b=e.bodyStyle,v=e.bodyProps,y=e.modalRender,w=e.onMouseDown,O=e.onMouseUp,x=e.holderRef,C=e.visible,E=e.forceRender,j=e.width,S=e.height,P=Object(i.useRef)(),T=Object(i.useRef)();a.a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===T.current?P.current.focus():e||t!==P.current||T.current.focus()}}}));var N,A,M,R={};void 0!==j&&(R.width=j),void 0!==S&&(R.height=S),f&&(N=a.a.createElement("div",{className:"".concat(n,"-footer")},f)),l&&(A=a.a.createElement("div",{className:"".concat(n,"-header")},a.a.createElement("div",{className:"".concat(n,"-title"),id:d},l))),h&&(M=a.a.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(n,"-close")},p||a.a.createElement("span",{className:"".concat(n,"-close-x")})));var I=a.a.createElement("div",{className:"".concat(n,"-content")},M,A,a.a.createElement("div",Object(r.a)({className:"".concat(n,"-body"),style:b},v),g),N);return a.a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?d:null,"aria-modal":"true",ref:x,style:Object(c.a)(Object(c.a)({},s),R),className:u()(n,o),onMouseDown:w,onMouseUp:O},a.a.createElement("div",{tabIndex:0,ref:P,style:_,"aria-hidden":"true"}),a.a.createElement(k,{shouldUpdate:C||E},y?y(I):I),a.a.createElement("div",{tabIndex:0,ref:T,style:_,"aria-hidden":"true"}))})),x=i.forwardRef((function(e,t){var n=e.prefixCls,a=e.title,s=e.style,l=e.className,d=e.visible,f=e.forceRender,h=e.destroyOnClose,p=e.motionName,m=e.ariaId,g=e.onVisibleChanged,v=e.mousePosition,y=Object(i.useRef)(),k=i.useState(),_=Object(o.a)(k,2),x=_[0],C=_[1],E={};function j(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=w(o),n.top+=w(o,!0),n}(y.current);C(v?"".concat(v.x-e.left,"px ").concat(v.y-e.top,"px"):"")}return x&&(E.transformOrigin=x),i.createElement(b.b,{visible:d,onVisibleChanged:g,onAppearPrepare:j,onEnterPrepare:j,forceRender:f,motionName:p,removeOnLeave:h,ref:y},(function(o,d){var f=o.className,h=o.style;return i.createElement(O,Object(r.a)({},e,{ref:t,title:a,ariaId:m,prefixCls:n,holderRef:d,style:Object(c.a)(Object(c.a)(Object(c.a)({},h),s),E),className:u()(l,f)}))}))}));x.displayName="Content";var C=x;function E(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,s=e.visible,l=void 0!==s&&s,f=e.keyboard,h=void 0===f||f,b=e.focusTriggerAfterClose,w=void 0===b||b,k=e.wrapStyle,_=e.wrapClassName,O=e.wrapProps,x=e.onClose,E=e.afterClose,j=e.transitionName,S=e.animation,P=e.closable,T=void 0===P||P,N=e.mask,A=void 0===N||N,M=e.maskTransitionName,R=e.maskAnimation,I=e.maskClosable,D=void 0===I||I,L=e.maskStyle,z=e.maskProps,F=e.rootClassName,V=Object(i.useRef)(),B=Object(i.useRef)(),H=Object(i.useRef)(),W=i.useState(l),U=Object(o.a)(W,2),K=U[0],Y=U[1],q=p();function $(e){null===x||void 0===x||x(e)}var G=Object(i.useRef)(!1),Q=Object(i.useRef)(),X=null;return D&&(X=function(e){G.current?G.current=!1:B.current===e.target&&$(e)}),Object(i.useEffect)((function(){l&&(Y(!0),Object(m.a)(B.current,document.activeElement)||(V.current=document.activeElement))}),[l]),Object(i.useEffect)((function(){return function(){clearTimeout(Q.current)}}),[]),i.createElement("div",Object(r.a)({className:u()("".concat(n,"-root"),F)},Object(g.a)(e,{data:!0})),i.createElement(v,{prefixCls:n,visible:A&&l,motionName:y(n,M,R),style:Object(c.a)({zIndex:a},L),maskProps:z}),i.createElement("div",Object(r.a)({tabIndex:-1,onKeyDown:function(e){if(h&&e.keyCode===d.a.ESC)return e.stopPropagation(),void $(e);l&&e.keyCode===d.a.TAB&&H.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),_),ref:B,onClick:X,style:Object(c.a)(Object(c.a)({zIndex:a},k),{},{display:K?null:"none"})},O),i.createElement(C,Object(r.a)({},e,{onMouseDown:function(){clearTimeout(Q.current),G.current=!0},onMouseUp:function(){Q.current=setTimeout((function(){G.current=!1}))},ref:H,closable:T,ariaId:q,prefixCls:n,visible:l&&K,onClose:$,onVisibleChanged:function(e){if(e)!function(){var e;Object(m.a)(B.current,document.activeElement)||null===(e=H.current)||void 0===e||e.focus()}();else{if(Y(!1),A&&V.current&&w){try{V.current.focus({preventScroll:!0})}catch(t){}V.current=null}K&&(null===E||void 0===E||E())}},motionName:y(n,j,S)}))))}var j=function(e){var t=e.visible,n=e.getContainer,a=e.forceRender,c=e.destroyOnClose,l=void 0!==c&&c,u=e.afterClose,d=i.useState(t),f=Object(o.a)(d,2),h=f[0],p=f[1];return i.useEffect((function(){t&&p(!0)}),[t]),a||!l||h?i.createElement(s.a,{open:t||a||h,autoDestroy:!1,getContainer:n,autoLock:t||h},i.createElement(E,Object(r.a)({},e,{destroyOnClose:l,afterClose:function(){null===u||void 0===u||u(),p(!1)}}))):null};j.displayName="Dialog";var S=j;t.a=S},function(e,t,n){"use strict";var r=n(6),o=n(1),i=n(22),a=n(47),s=(n(17),n(28)),c=o.createContext(null),l=n(9),u=n(39),d=[];var f=n(98),h=n(116);var p="rc-util-locker-".concat(Date.now()),m=0;function g(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(p,"_").concat(m)})),i=Object(r.a)(n,1)[0];Object(u.a)((function(){if(t){var e=Object(h.b)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Object(f.b)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else Object(f.a)(i);return function(){Object(f.a)(i)}}),[t,i])}var b=!1;var v=function(e){return!1!==e&&(Object(a.a)()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)};var y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,h=e.getContainer,p=(e.debug,e.autoDestroy),m=void 0===p||p,y=e.children,w=o.useState(n),k=Object(r.a)(w,2),_=k[0],O=k[1],x=_||n;o.useEffect((function(){(m||n)&&O(n)}),[n,m]);var C=o.useState((function(){return v(h)})),E=Object(r.a)(C,2),j=E[0],S=E[1];o.useEffect((function(){var e=v(h);S(null!==e&&void 0!==e?e:null)}));var P=function(e,t){var n=o.useState((function(){return Object(a.a)()?document.createElement("div"):null})),i=Object(r.a)(n,1)[0],s=o.useRef(!1),f=o.useContext(c),h=o.useState(d),p=Object(r.a)(h,2),m=p[0],g=p[1],b=f||(s.current?void 0:function(e){g((function(t){return[e].concat(Object(l.a)(t))}))});function v(){i.parentElement||document.body.appendChild(i),s.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),s.current=!1}return Object(u.a)((function(){return e?f?f(v):v():y(),y}),[e]),Object(u.a)((function(){m.length&&(m.forEach((function(e){return e()})),g(d))}),[m]),[i,b]}(x&&!j),T=Object(r.a)(P,2),N=T[0],A=T[1],M=null!==j&&void 0!==j?j:N;g(f&&n&&Object(a.a)()&&(M===N||M===document.body));var R=null;y&&Object(s.c)(y)&&t&&(R=y.ref);var I=Object(s.d)(R,t);if(!x||!Object(a.a)()||void 0===j)return null;var D,L=!1===M||("boolean"===typeof D&&(b=D),b),z=y;return t&&(z=o.cloneElement(y,{ref:I})),o.createElement(c.Provider,{value:A},L?z:Object(i.createPortal)(z,M))}));t.a=y},function(e,t,n){"use strict";var r=n(4),o=n(5),i=n(6),a=n(8),s=n(1),c=n(96),l=n(7),u=n.n(l),d={adjustX:1,adjustY:1},f=[0,0],h={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},p=n(11),m=n(23),g=n(181),b=p.a.ESC,v=p.a.TAB;var y=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function w(e,t){var n=e.arrow,l=void 0!==n&&n,d=e.prefixCls,f=void 0===d?"rc-dropdown":d,p=e.transitionName,w=e.animation,k=e.align,_=e.placement,O=void 0===_?"bottomLeft":_,x=e.placements,C=void 0===x?h:x,E=e.getPopupContainer,j=e.showAction,S=e.hideAction,P=e.overlayClassName,T=e.overlayStyle,N=e.visible,A=e.trigger,M=void 0===A?["hover"]:A,R=e.autoFocus,I=Object(a.a)(e,y),D=s.useState(),L=Object(i.a)(D,2),z=L[0],F=L[1],V="visible"in e?N:z,B=s.useRef(null);s.useImperativeHandle(t,(function(){return B.current})),function(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=s.useRef(!1),c=function(){var e,i,a,s;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),n(!1),"function"===typeof o&&o(!1))},l=function(){var e,t,n,o,i=Object(g.a)(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.getElement)||void 0===o?void 0:o.call(n))[0];return!!(null===i||void 0===i?void 0:i.focus)&&(i.focus(),a.current=!0,!0)},u=function(e){switch(e.keyCode){case b:c();break;case v:var t=!1;a.current||(t=l()),t?e.preventDefault():c()}};s.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Object(m.a)(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}({visible:V,setTriggerVisible:F,triggerRef:B,onVisibleChange:e.onVisibleChange,autoFocus:R});var H=function(){var t=function(){var t=e.overlay;return"function"===typeof t?t():t}();return s.createElement(s.Fragment,null,l&&s.createElement("div",{className:"".concat(f,"-arrow")}),t)},W=S;return W||-1===M.indexOf("contextMenu")||(W=["click"]),s.createElement(c.a,Object(o.a)(Object(o.a)({builtinPlacements:C},I),{},{prefixCls:f,ref:B,popupClassName:u()(P,Object(r.a)({},"".concat(f,"-show-arrow"),l)),popupStyle:T,action:M,showAction:j,hideAction:W||[],popupPlacement:O,popupAlign:k,popupTransitionName:p,popupAnimation:w,popupVisible:V,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof e.overlay?H:H(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;F(t),"function"===typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;F(!1),n&&n(t)},getPopupContainer:E}),function(){var t=e.children,n=t.props?t.props:{},r=u()(n.className,function(){var t=e.openClassName;return void 0!==t?t:"".concat(f,"-open")}());return V&&t?s.cloneElement(t,{className:r}):t}())}var k=s.forwardRef(w);t.a=k},function(e,t,n){"use strict";var r,o=n(3),i=n(27),a=n(25),s=n(37),c=n(38),l=n(1),u=n(4),d=n(5),f=n(10),h=n(6),p=n(8),m=n(64),g=n(39),b=n(23),v=n(33),y=n(7),w=n.n(y),k=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],_={};function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_[n])return _[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:k.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(_[n]=s),s}(e,t),a=i.paddingSize,s=i.borderSize,c=i.boxSizing,l=i.sizingStyle;r.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var u,d=void 0,f=void 0,h=r.scrollHeight;if("border-box"===c?h+=s:"content-box"===c&&(h-=a),null!==n||null!==o){r.value=" ";var p=r.scrollHeight-a;null!==n&&(d=p*n,"border-box"===c&&(d=d+a+s),h=Math.max(d,h)),null!==o&&(f=p*o,"border-box"===c&&(f=f+a+s),u=h>f?"":"hidden",h=Math.min(f,h))}var m={height:h,overflowY:u,resize:"none"};return d&&(m.minHeight=d),f&&(m.maxHeight=f),m}var x=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],C=l.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-textarea":n,i=(e.onPressEnter,e.defaultValue),a=e.value,s=e.autoSize,c=e.onResize,y=e.className,k=e.style,_=e.disabled,C=e.onChange,E=(e.onInternalAutoSize,Object(p.a)(e,x)),j=Object(v.a)(i,{value:a,postState:function(e){return null!==e&&void 0!==e?e:""}}),S=Object(h.a)(j,2),P=S[0],T=S[1],N=l.useRef();l.useImperativeHandle(t,(function(){return{textArea:N.current}}));var A=l.useMemo((function(){return s&&"object"===Object(f.a)(s)?[s.minRows,s.maxRows]:[]}),[s]),M=Object(h.a)(A,2),R=M[0],I=M[1],D=!!s,L=l.useState(2),z=Object(h.a)(L,2),F=z[0],V=z[1],B=l.useState(),H=Object(h.a)(B,2),W=H[0],U=H[1],K=function(){V(0)};Object(g.a)((function(){D&&K()}),[a,R,I,D]),Object(g.a)((function(){if(0===F)V(1);else if(1===F){var e=O(N.current,!1,R,I);V(2),U(e)}else!function(){try{if(document.activeElement===N.current){var e=N.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;N.current.setSelectionRange(t,n),N.current.scrollTop=r}}catch(o){}}()}),[F]);var Y=l.useRef(),q=function(){b.a.cancel(Y.current)};l.useEffect((function(){return q}),[]);var $=D?W:null,G=Object(d.a)(Object(d.a)({},k),$);return 0!==F&&1!==F||(G.overflowY="hidden",G.overflowX="hidden"),l.createElement(m.a,{onResize:function(e){2===F&&(null===c||void 0===c||c(e),s&&(q(),Y.current=Object(b.a)((function(){K()}))))},disabled:!(s||c)},l.createElement("textarea",Object(o.a)({},E,{ref:N,style:G,className:w()(r,y,Object(u.a)({},"".concat(r,"-disabled"),_)),disabled:_,value:P,onChange:function(e){T(e.target.value),null===C||void 0===C||C(e)}})))})),E=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(C,Object(o.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l.Component);t.a=E},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(3),o=n(4),i=n(6),a=n(7),s=n.n(a),c=n(51),l=n(1),u=n(66),d=n(185);function f(e){var t=e.className,n=e.direction,i=e.index,a=e.marginDirection,s=e.children,c=e.split,u=e.wrap,d=l.useContext(m),f=d.horizontalSize,h=d.verticalSize,p=d.latestIndex,g={};return d.supportFlexGap||("vertical"===n?i<p&&(g={marginBottom:f/(c?2:1)}):g=Object(r.a)(Object(r.a)({},i<p&&Object(o.a)({},a,f/(c?2:1))),u&&{paddingBottom:h})),null===s||void 0===s?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:g},s),i<p&&c&&l.createElement("span",{className:"".concat(t,"-split"),style:g},c))}var h=n(55),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=l.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),g={small:8,middle:16,large:24};var b=function(e){var t=l.useContext(u.b),n=t.getPrefixCls,a=t.space,h=t.direction,b=e.size,v=void 0===b?(null===a||void 0===a?void 0:a.size)||"small":b,y=e.align,w=e.className,k=e.children,_=e.direction,O=void 0===_?"horizontal":_,x=e.prefixCls,C=e.split,E=e.style,j=e.wrap,S=void 0!==j&&j,P=p(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),T=Object(d.a)(),N=l.useMemo((function(){return(Array.isArray(v)?v:[v,v]).map((function(e){return function(e){return"string"===typeof e?g[e]:e||0}(e)}))}),[v]),A=Object(i.a)(N,2),M=A[0],R=A[1],I=Object(c.a)(k,{keepEmpty:!0}),D=void 0===y&&"horizontal"===O?"center":y,L=n("space",x),z=s()(L,"".concat(L,"-").concat(O),Object(o.a)(Object(o.a)({},"".concat(L,"-rtl"),"rtl"===h),"".concat(L,"-align-").concat(D),D),w),F="".concat(L,"-item"),V="rtl"===h?"marginLeft":"marginRight",B=0,H=I.map((function(e,t){null!==e&&void 0!==e&&(B=t);var n=e&&e.key||"".concat(F,"-").concat(t);return l.createElement(f,{className:F,key:n,direction:O,index:t,marginDirection:V,split:C,wrap:S},e)})),W=l.useMemo((function(){return{horizontalSize:M,verticalSize:R,latestIndex:B,supportFlexGap:T}}),[M,R,B,T]);if(0===I.length)return null;var U={};return S&&(U.flexWrap="wrap",T||(U.marginBottom=-R)),T&&(U.columnGap=M,U.rowGap=R),l.createElement("div",Object(r.a)({className:z,style:Object(r.a)(Object(r.a)({},U),E)},P),l.createElement(m.Provider,{value:W},H))};b.Compact=h.b;t.b=b},function(e,t,n){"use strict";n(53);var r=n(3),o=n(4),i=n(204),a=n(206),s=n(114),c=n(155),l=n(205),u=n(7),d=n.n(u),f=n(201),h=n(1),p=n(20),m=n(6),g=n(134),b=n(66);var v,y,w,k={},_=4.5,O=24,x=24,C="",E="topRight",j=!1;function S(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function P(e,t){var n=e.placement,r=void 0===n?E:n,i=e.top,a=e.bottom,s=e.getContainer,c=void 0===s?v:s,l=e.prefixCls,u=Object(p.b)(),h=u.getPrefixCls,m=u.getIconPrefixCls,g=h("notification",l||C),b=m(),y="".concat(g,"-").concat(r),_=k[y];if(_)Promise.resolve(_).then((function(e){t({prefixCls:"".concat(g,"-notice"),iconPrefixCls:b,instance:e})}));else{var O=d()("".concat(g,"-").concat(r),Object(o.a)({},"".concat(g,"-rtl"),!0===j));k[y]=new Promise((function(e){f.a.newInstance({prefixCls:g,className:O,style:S(r,i,a),getContainer:c,maxCount:w},(function(n){e(n),t({prefixCls:"".concat(g,"-notice"),iconPrefixCls:b,instance:n})}))}))}}var T={success:i.a,info:l.a,error:a.a,warning:c.a};function N(e,t,n){var r=e.duration,i=e.icon,a=e.type,c=e.description,l=e.message,u=e.btn,f=e.onClose,m=e.onClick,g=e.key,b=e.style,v=e.className,w=e.closeIcon,k=void 0===w?y:w,O=e.props,x=void 0===r?_:r,C=null;i?C=h.createElement("span",{className:"".concat(t,"-icon")},e.icon):a&&(C=h.createElement(T[a]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(a)}));var E="undefined"===typeof k?h.createElement("span",{className:"".concat(t,"-close-x")},h.createElement(s.a,{className:"".concat(t,"-close-icon")})):k,j=!c&&C?h.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:h.createElement(p.a,{iconPrefixCls:n},h.createElement("div",{className:C?"".concat(t,"-with-icon"):"",role:"alert"},C,h.createElement("div",{className:"".concat(t,"-message")},j,l),h.createElement("div",{className:"".concat(t,"-description")},c),u?h.createElement("span",{className:"".concat(t,"-btn")},u):null)),duration:x,closable:!0,closeIcon:E,onClose:f,onClick:m,key:g,style:b||{},className:d()(v,Object(o.a)({},"".concat(t,"-").concat(a),!!a)),props:O}}var A,M,R={open:function(e){P(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(N(e,n,r))}))},close:function(e){Object.keys(k).forEach((function(t){return Promise.resolve(k[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,s=e.prefixCls;void 0!==s&&(C=s),void 0!==t&&(_=t),void 0!==n?E=n:e.rtl&&(E="topLeft"),void 0!==r&&(x=r),void 0!==o&&(O=o),void 0!==i&&(v=i),void 0!==a&&(y=a),void 0!==e.rtl&&(j=e.rtl),void 0!==e.maxCount&&(w=e.maxCount)},destroy:function(){Object.keys(k).forEach((function(e){Promise.resolve(k[e]).then((function(e){e.destroy()})),delete k[e]}))}};["success","info","warning","error"].forEach((function(e){R[e]=function(t){return R.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),R.warn=R.warning,R.useNotification=(A=P,M=N,function(){var e,t=null,n={add:function(e,n){null===t||void 0===t||t.component.add(e,n)}},o=Object(g.a)(n),i=Object(m.a)(o,2),a=i[0],s=i[1],c=h.useRef({});return c.current.open=function(n){var o=n.prefixCls,i=e("notification",o);A(Object(r.a)(Object(r.a)({},n),{prefixCls:i}),(function(e){var r=e.prefixCls,o=e.instance;t=o,a(M(n,r))}))},["success","info","warning","error"].forEach((function(e){c.current[e]=function(t){return c.current.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),[c.current,h.createElement(b.a,{key:"holder"},(function(t){return e=t.getPrefixCls,s}))]});t.a=R},function(e,t,n){"use strict";var r=n(3),o=n(1),i=function(e){return e?"function"===typeof e?e():e:null},a=n(60),s=n(66),c=n(113),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},u=function(e){var t=e.title,n=e.content,r=e.prefixCls;return o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},i(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},i(n)))},d=o.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,d=e.content,f=e._overlay,h=e.placement,p=void 0===h?"top":h,m=e.trigger,g=void 0===m?"hover":m,b=e.mouseEnterDelay,v=void 0===b?.1:b,y=e.mouseLeaveDelay,w=void 0===y?.1:y,k=e.overlayStyle,_=void 0===k?{}:k,O=l(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),x=o.useContext(s.b).getPrefixCls,C=x("popover",n),E=x(),j=o.useMemo((function(){return f||(i||d?o.createElement(u,{prefixCls:C,title:i,content:d}):null)}),[f,i,d,C]);return o.createElement(c.a,Object(r.a)({placement:p,trigger:g,mouseEnterDelay:v,mouseLeaveDelay:w,overlayStyle:_},O,{prefixCls:C,ref:t,overlay:j,transitionName:Object(a.c)(E,"zoom-big",O.transitionName)}))}));t.a=d},function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n.n(i),s=n(22),c=n(15),l=n(40),u=n(72),d=n(19),f=!0,h=!1,p=null,m={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function g(e){e.metaKey||e.altKey||e.ctrlKey||(f=!0)}function b(){f=!1}function v(){"hidden"===this.visibilityState&&h&&(f=!0)}function y(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return f||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!m[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function w(){h=!0,window.clearTimeout(p),p=window.setTimeout((function(){h=!1}),100)}function k(){return{isFocusVisible:y,onBlurVisible:w,ref:i.useCallback((function(e){var t,n=s.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",g,!0),t.addEventListener("mousedown",b,!0),t.addEventListener("pointerdown",b,!0),t.addEventListener("touchstart",b,!0),t.addEventListener("visibilitychange",v,!0))}),[])}}var _=n(9),O=n(56),x=n(13),C=n(63),E=n(140);function j(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function S(e,t,n){return null!=n[t]?n[t]:e.props[t]}function P(e,t,n){var r=j(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var l=o[c][r];s[o[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if(Object(i.isValidElement)(s)){var c=a in t,l=a in r,u=t[a],d=Object(i.isValidElement)(u)&&!u.props.in;!l||c&&!d?l||!c||d?l&&c&&Object(i.isValidElement)(u)&&(o[a]=Object(i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:S(s,"exit",e),enter:S(s,"enter",e)})):o[a]=Object(i.cloneElement)(s,{in:!1}):o[a]=Object(i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:S(s,"exit",e),enter:S(s,"enter",e)})}})),o}var T=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},N=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(x.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(C.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,j(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:S(e,"appear",n),enter:S(e,"enter",n),exit:S(e,"exit",n)})}))):P(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=j(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(O.a)(e,["component","childFactory"]),o=this.state.contextValue,i=T(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(E.a.Provider,{value:o},i):a.a.createElement(E.a.Provider,{value:o},a.a.createElement(t,r,i))},t}(a.a.Component);N.propTypes={},N.defaultProps={component:"div",childFactory:function(e){return e}};var A=N,M="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var R=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,d=e.onExited,f=void 0===d?function(){}:d,h=e.timeout,p=i.useState(!1),m=p[0],g=p[1],b=Object(c.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),v={width:s,height:s,top:-s/2+a,left:-s/2+o},y=Object(c.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),w=Object(u.a)(f);return M((function(){if(!l){g(!0);var e=setTimeout(w,h);return function(){clearTimeout(e)}}}),[w,l,h]),i.createElement("span",{className:b,style:v},i.createElement("span",{className:y}))},I=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,l=e.className,u=Object(o.a)(e,["center","classes","className"]),d=i.useState([]),f=d[0],h=d[1],p=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[f]);var g=i.useRef(!1),b=i.useRef(null),v=i.useRef(null),y=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(b.current)}}),[]);var w=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(_.a)(e),[i.createElement(R,{key:p.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),p.current+=1,m.current=a}),[s]),k=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var u,d,f,h=l?null:y.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(p.width/2),d=Math.round(p.height/2);else{var m=e.touches?e.touches[0]:e,k=m.clientX,_=m.clientY;u=Math.round(k-p.left),d=Math.round(_-p.top)}if(s)(f=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(f+=1);else{var O=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,x=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(O,2)+Math.pow(x,2))}e.touches?null===v.current&&(v.current=function(){w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:n})},b.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[a,w]),O=i.useCallback((function(){k({},{pulsate:!0})}),[k]),x=i.useCallback((function(e,t){if(clearTimeout(b.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(b.current=setTimeout((function(){x(e,t)})));v.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:O,start:k,stop:x}}),[O,k,x]),i.createElement("span",Object(r.a)({className:Object(c.a)(s.root,l),ref:y},u),i.createElement(A,{component:null,exit:!0},f))})),D=Object(d.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(I)),L=i.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,d=e.centerRipple,f=void 0!==d&&d,h=e.children,p=e.classes,m=e.className,g=e.component,b=void 0===g?"button":g,v=e.disabled,y=void 0!==v&&v,w=e.disableRipple,_=void 0!==w&&w,O=e.disableTouchRipple,x=void 0!==O&&O,C=e.focusRipple,E=void 0!==C&&C,j=e.focusVisibleClassName,S=e.onBlur,P=e.onClick,T=e.onFocus,N=e.onFocusVisible,A=e.onKeyDown,M=e.onKeyUp,R=e.onMouseDown,I=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,F=e.onTouchMove,V=e.onTouchStart,B=e.onDragLeave,H=e.tabIndex,W=void 0===H?0:H,U=e.TouchRippleProps,K=e.type,Y=void 0===K?"button":K,q=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null);var G=i.useRef(null),Q=i.useState(!1),X=Q[0],J=Q[1];y&&X&&J(!1);var Z=k(),ee=Z.isFocusVisible,te=Z.onBlurVisible,ne=Z.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;return Object(u.a)((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),$.current.focus()}}}),[]),i.useEffect((function(){X&&E&&!_&&G.current.pulsate()}),[_,E,X]);var oe=re("start",R),ie=re("stop",B),ae=re("stop",L),se=re("stop",(function(e){X&&e.preventDefault(),I&&I(e)})),ce=re("start",V),le=re("stop",z),ue=re("stop",F),de=re("stop",(function(e){X&&(te(e),J(!1)),S&&S(e)}),!1),fe=Object(u.a)((function(e){$.current||($.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),T&&T(e)})),he=function(){var e=s.findDOMNode($.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},pe=i.useRef(!1),me=Object(u.a)((function(e){E&&!pe.current&&X&&G.current&&" "===e.key&&(pe.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!y&&(e.preventDefault(),P&&P(e))})),ge=Object(u.a)((function(e){E&&" "===e.key&&G.current&&X&&!e.defaultPrevented&&(pe.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),M&&M(e),P&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&P(e)})),be=b;"button"===be&&q.href&&(be="a");var ve={};"button"===be?(ve.type=Y,ve.disabled=y):("a"===be&&q.href||(ve.role="button"),ve["aria-disabled"]=y);var ye=Object(l.a)(a,t),we=Object(l.a)(ne,$),ke=Object(l.a)(ye,we),_e=i.useState(!1),Oe=_e[0],xe=_e[1];i.useEffect((function(){xe(!0)}),[]);var Ce=Oe&&!_&&!y;return i.createElement(be,Object(r.a)({className:Object(c.a)(p.root,m,X&&[p.focusVisible,j],y&&p.disabled),onBlur:de,onClick:P,onFocus:fe,onKeyDown:me,onKeyUp:ge,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:ke,tabIndex:y?-1:W},ve,q),h,Ce?i.createElement(D,Object(r.a)({ref:G,center:f},U)):null)}));t.a=Object(d.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(L)},,,,,,,,,function(e,t,n){"use strict";var r=n(210),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,c=60112;t.Suspense=60113;var l=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),c=d("react.forward_ref"),t.Suspense=d("react.suspense"),l=d("react.memo"),u=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var y=v.prototype=new b;y.constructor=v,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var C=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0}}if(c)return a=a(c=e),e=""===r?"."+E(c,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),j(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=r+E(s=e[l],l);c+=j(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),l=0;!(s=e.next()).done;)c+=j(s=s.value,t,n,u=r+E(s,l++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function S(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function N(){var e=T.current;if(null===e)throw Error(h(321));return e}var A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:S,forEach:function(e,t,n){S(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return S(e,(function(){t++})),t},toArray:function(e){return S(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(1),o=n(210),i=n(288);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,c={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(c[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=b.hasOwnProperty(t)?b[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!h.call(m,e)||!h.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,O=60106,x=60107,C=60108,E=60114,j=60109,S=60110,P=60112,T=60113,N=60120,A=60115,M=60116,R=60121,I=60128,D=60129,L=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),O=F("react.portal"),x=F("react.fragment"),C=F("react.strict_mode"),E=F("react.profiler"),j=F("react.provider"),S=F("react.context"),P=F("react.forward_ref"),T=F("react.suspense"),N=F("react.suspense_list"),A=F("react.memo"),M=F("react.lazy"),R=F("react.block"),F("react.scope"),I=F("react.opaque.id"),D=F("react.debug_trace_mode"),L=F("react.offscreen"),z=F("react.legacy_hidden")}var V,B="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var U=!1;function K(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Y(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1);case 11:return e=K(e.type.render,!1);case 22:return e=K(e.type._render,!1);case 1:return e=K(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case O:return"Portal";case E:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return q(e.type);case R:return q(e._render);case M:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function le(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var _e=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oe(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,je=null,Se=null;function Pe(e){if(e=no(e)){if("function"!==typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=oo(t),Ee(e.stateNode,e.type,t))}}function Te(e){je?Se?Se.push(e):Se=[e]:je=e}function Ne(){if(je){var e=je,t=Se;if(Se=je=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ae(e,t){return e(t)}function Me(e,t,n,r,o){return e(t,n,r,o)}function Re(){}var Ie=Ae,De=!1,Le=!1;function ze(){null===je&&null===Se||(Re(),Ne())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ve=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(me){Ve=!1}function He(e,t,n,r,o,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(u){this.onError(u)}}var We=!1,Ue=null,Ke=!1,Ye=null,qe={onError:function(e){We=!0,Ue=e}};function $e(e,t,n,r,o,i,a,s,c){We=!1,Ue=null,He.apply(qe,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ge(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,st=null,ct=null,lt=new Map,ut=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=no(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=to(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){bt(e)&&n.delete(t)}function yt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&bt(at)&&(at=null),null!==st&&bt(st)&&(st=null),null!==ct&&bt(ct)&&(ct=null),lt.forEach(vt),ut.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,yt)))}function kt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==ct&&wt(ct,e),lt.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ot={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},xt={},Ct={};function Et(e){if(xt[e])return xt[e];if(!Ot[e])return e;var t,n=Ot[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return xt[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete Ot.animationend.animation,delete Ot.animationiteration.animation,delete Ot.animationstart.animation),"TransitionEvent"in window||delete Ot.transitionend.transition);var jt=Et("animationend"),St=Et("animationiteration"),Pt=Et("animationstart"),Tt=Et("transitionend"),Nt=new Map,At=new Map,Mt=["abort","abort",jt,"animationEnd",St,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),Nt.set(r,o),l(o,[r])}}(0,i.unstable_now)();var It=8;function Dt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=It=15;else if(0!==(i=134217727&n)){var c=i&~a;0!==c?(r=Dt(c),o=It):0!==(s&=i)&&(r=Dt(s),o=It)}else 0!==(i=n&~a)?(r=Dt(i),o=It):0!==s&&(r=Dt(s),o=It);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Dt(t),o<=It)return t;It=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Vt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Kt|0)|0},Ut=Math.log,Kt=Math.LN2;var Yt=i.unstable_UserBlockingPriority,qt=i.unstable_runWithPriority,$t=!0;function Gt(e,t,n,r){De||Re();var o=Xt,i=De;De=!0;try{Me(o,e,t,n,r)}finally{(De=i)||ze()}}function Qt(e,t,n,r){qt(Yt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if($t)if((o=0===(4&t))&&0<it.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&pt(e,r);else{if(o){if(-1<ft.indexOf(e))return e=ht(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=mt(at,e,t,n,r,o),!0;case"dragenter":return st=mt(st,e,t,n,r,o),!0;case"mouseover":return ct=mt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lt.set(i,mt(lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ut.set(i,mt(ut.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;pt(e,r)}Rr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Ce(r);if(null!==(o=to(o))){var i=Ge(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Qe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Rr(e,t,r,o,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var cn,ln,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=o({},dn,{view:0,detail:0}),pn=sn(hn),mn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(cn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=cn=0,un=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=sn(mn),bn=sn(o({},mn,{dataTransfer:0})),vn=sn(o({},hn,{relatedTarget:0})),yn=sn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=sn(wn),_n=sn(o({},dn,{data:0})),On={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function jn(){return En}var Sn=o({},hn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=sn(Sn),Tn=sn(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=sn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),An=sn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=sn(Mn),In=[9,13,27,32],Dn=d&&"CompositionEvent"in window,Ln=null;d&&"documentMode"in document&&(Ln=document.documentMode);var zn=d&&"TextEvent"in window&&!Ln,Fn=d&&(!Dn||Ln&&8<Ln&&11>=Ln),Vn=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Dr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Gn=null;function Qn(e){Sr(e,0)}function Xn(e){if(X(ro(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){$n&&($n.detachEvent("onpropertychange",or),Gn=$n=null)}function or(e){if("value"===e.propertyName&&Xn(Gn)){var t=[];if(qn(t,Gn,e,Ce(e)),e=Qn,De)e(t);else{De=!0;try{Ae(e,t)}finally{De=!1,ze()}}}}function ir(e,t,n){"focusin"===e?(rr(),Gn=n,($n=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Gn)}function sr(e,t){if("click"===e)return Xn(t)}function cr(e,t){if("input"===e||"change"===e)return Xn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,wr=null,kr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Dr(yr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(Mt,2);for(var Or="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<Or.length;xr++)At.set(Or[xr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,c,l){if($e.apply(this,arguments),We){if(!We)throw Error(a(198));var u=Ue;We=!1,Ue=null,Ke||(Ke=!0,Ye=u)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;jr(o,s,l),i=c}else for(a=0;a<r.length;a++){if(c=(s=r[a]).instance,l=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;jr(o,s,l),i=c}}}if(Ke)throw e=Ye,Ke=!1,Ye=null,e}function Pr(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){Er.has(t)||Ar(t,!1,e,null),Ar(t,!0,e,null)})))}function Ar(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=io(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Mr(i,e,o,t),a.add(s))}function Mr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Gt;break;case 1:o=Qt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=to(s)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ie(e,t,n)}finally{Le=!1,ze()}}((function(){var r=i,o=Ce(n),a=[];e:{var s=Nt.get(e);if(void 0!==s){var c=fn,l=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":c=Pn;break;case"focusin":l="focus",c=vn;break;case"focusout":l="blur",c=vn;break;case"beforeblur":case"afterblur":c=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Nn;break;case jt:case St:case Pt:c=yn;break;case Tt:c=An;break;case"scroll":c=pn;break;case"wheel":c=Rn;break;case"copy":case"cut":case"paste":c=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Fe(p,f))&&u.push(Ir(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!to(l)&&!l[Zr])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?to(l):null)&&(l!==(d=Ge(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=gn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==c?s:ro(c),h=null==l?s:ro(l),(s=new u(m,p+"leave",c,n,o)).target=d,s.relatedTarget=h,m=null,to(o)===r&&((u=new u(f,p+"enter",l,n,o)).target=h,u.relatedTarget=d,m=u),d=m,c&&l)e:{for(f=l,p=0,h=u=c;h;h=Lr(h))p++;for(h=0,m=f;m;m=Lr(m))h++;for(;0<p-h;)u=Lr(u),p--;for(;0<h-p;)f=Lr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Lr(u),f=Lr(f)}u=null}else u=null;null!==c&&zr(a,s,c,u,!1),null!==l&&null!==d&&zr(a,d,l,u,!0)}if("select"===(c=(s=r?ro(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var g=Jn;else if(Yn(s))if(Zn)g=cr;else{g=ar;var b=ir}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?qn(a,g,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&oe(s,"number",s.value)),b=r?ro(r):window,e){case"focusin":(Yn(b)||"true"===b.contentEditable)&&(vr=b,yr=r,wr=null);break;case"focusout":wr=yr=vr=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,_r(a,n,o);break;case"selectionchange":if(br)break;case"keydown":case"keyup":_r(a,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Un?Hn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Fn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==y?"onCompositionEnd"===y&&Un&&(v=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Un=!0)),0<(b=Dr(r,y)).length&&(y=new _n(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=Wn(n))&&(y.data=v))),(v=zn?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Dn&&Hn(e,t)?(e=nn(),tn=en=Zt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Dr(r,"onBeforeInput")).length&&(o=new _n("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Sr(a,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Ir(e,i,o)),null!=(i=Fe(e,t))&&r.push(Ir(e,i,o))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,o?null!=(c=Fe(n,i))&&a.unshift(Ir(n,c,s)):o||null!=(c=Fe(n,i))&&a.push(Ir(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var Vr=null,Br=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"===typeof setTimeout?setTimeout:void 0,Kr="function"===typeof clearTimeout?clearTimeout:void 0;function Yr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var Qr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Qr,Jr="__reactProps$"+Qr,Zr="__reactContainer$"+Qr,eo="__reactEvents$"+Qr;function to(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Xr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function no(e){return!(e=e[Xr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oo(e){return e[Jr]||null}function io(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var ao=[],so=-1;function co(e){return{current:e}}function lo(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function uo(e,t){so++,ao[so]=e.current,e.current=t}var fo={},ho=co(fo),po=co(!1),mo=fo;function go(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vo(){lo(po),lo(ho)}function yo(e,t,n){if(ho.current!==fo)throw Error(a(168));uo(ho,t),uo(po,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,mo=ho.current,uo(ho,e),uo(po,po.current),!0}function _o(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,lo(po),lo(ho),uo(ho,e)):lo(po),uo(po,n)}var Oo=null,xo=null,Co=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,jo=i.unstable_cancelCallback,So=i.unstable_shouldYield,Po=i.unstable_requestPaint,To=i.unstable_now,No=i.unstable_getCurrentPriorityLevel,Ao=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Do=i.unstable_IdlePriority,Lo={},zo=void 0!==Po?Po:function(){},Fo=null,Vo=null,Bo=!1,Ho=To(),Wo=1e4>Ho?To:function(){return To()-Ho};function Uo(){switch(No()){case Ao:return 99;case Mo:return 98;case Ro:return 97;case Io:return 96;case Do:return 95;default:throw Error(a(332))}}function Ko(e){switch(e){case 99:return Ao;case 98:return Mo;case 97:return Ro;case 96:return Io;case 95:return Do;default:throw Error(a(332))}}function Yo(e,t){return e=Ko(e),Co(e,t)}function qo(e,t,n){return e=Ko(e),Eo(e,t,n)}function $o(){if(null!==Vo){var e=Vo;Vo=null,jo(e)}Go()}function Go(){if(!Bo&&null!==Fo){Bo=!0;var e=0;try{var t=Fo;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fo=null}catch(n){throw null!==Fo&&(Fo=Fo.slice(e+1)),Eo(Ao,$o),n}finally{Bo=!1}}}var Qo=k.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=co(null),Zo=null,ei=null,ti=null;function ni(){ti=ei=Zo=null}function ri(e){var t=Jo.current;lo(Jo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){Zo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Zo)throw Error(a(308));ei=t,Zo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var si=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,c=i.shared.pending;if(null!==c){i.shared.pending=null;var l=c,u=l.next;l.next=null,null===s?a=u:s.next=u,s=l;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==a){for(f=i.baseState,s=0,d=u=l=null;;){c=a.lane;var h=a.eventTime;if((r&c)===c){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(c=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,c);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(c="function"===typeof(p=m.payload)?p.call(h,f,c):p)||void 0===c)break e;f=o({},f,c);break e;case 2:si=!0}}null!==a.callback&&(e.flags|=32,null===(c=i.effects)?i.effects=[a]:c.push(a))}else h={eventTime:h,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,s|=c;if(null===(a=a.next)){if(null===(c=i.shared.pending))break;a=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Bs|=s,e.lanes=s,e.memoizedState=f}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var mi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bi={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fc(),o=hc(e),i=ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),pc(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fc(),o=hc(e),i=ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),pc(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fc(),r=hc(e),o=ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),di(e,o),pc(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,i))}function yi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"===typeof i&&null!==i?i=ai(i):(o=bo(t)?mo:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?go(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bi.enqueueReplaceState(t,t.state,null)}function ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=mi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=ai(i):(i=bo(t)?mo:ho.current,o.context=go(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&bi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var _i=Array.isArray;function Oi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===mi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Yc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Qc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Oi(e,t,n),r.return=e,r):((r=qc(n.type,n.key,n.props,null,e.mode,r)).ref=Oi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=$c(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Qc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=qc(t.type,t.key,t.props,null,e.mode,n)).ref=Oi(e,null,t),n.return=e,n;case O:return(t=Xc(t,e.mode,n)).return=e,t}if(_i(t)||H(t))return(t=$c(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===x?d(e,t,n.props.children,r,o):l(e,t,n,r):null;case O:return n.key===o?u(e,t,n,r):null}if(_i(n)||H(n))return null!==o?null:d(e,t,n,r,null);xi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,o,r.key):l(t,e,r,o);case O:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(_i(r)||H(r))return d(t,e=e.get(n)||null,r,o,null);xi(t,r)}return null}function m(o,a,s,c){for(var l=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=h(o,d,s[m],c);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,m),null===u?l=b:u.sibling=b,u=b,d=g}if(m===s.length)return n(o,d),l;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],c))&&(a=i(d,a,m),null===u?l=d:u.sibling=d,u=d);return l}for(d=r(o,d);m<s.length;m++)null!==(g=p(d,o,m,s[m],c))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?l=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),l}function g(o,s,c,l){var u=H(c);if("function"!==typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,b=null,v=c.next();null!==m&&!v.done;g++,v=c.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=h(o,m,v.value,l);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(o,m),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=c.next())null!==(v=f(o,v.value,l))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(o,m);!v.done;g++,v=c.next())null!==(v=p(m,o,g,v.value,l))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,c){var l="object"===typeof i&&null!==i&&i.type===x&&null===i.key;l&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case _:e:{for(u=i.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(i.type===x){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=Oi(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===x?((r=$c(i.props.children,e.mode,c,i.key)).return=e,e=r):((c=qc(i.type,i.key,i.props,null,e.mode,c)).ref=Oi(e,r,i),c.return=e,e=c)}return s(e);case O:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xc(i,e.mode,c)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Qc(i,e.mode,c)).return=e,e=r),s(e);if(_i(i))return m(e,r,i,c);if(H(i))return g(e,r,i,c);if(u&&xi(e,i),"undefined"===typeof i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var Ei=Ci(!0),ji=Ci(!1),Si={},Pi=co(Si),Ti=co(Si),Ni=co(Si);function Ai(e){if(e===Si)throw Error(a(174));return e}function Mi(e,t){switch(uo(Ni,t),uo(Ti,e),uo(Pi,Si),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Pi),uo(Pi,t)}function Ri(){lo(Pi),lo(Ti),lo(Ni)}function Ii(e){Ai(Ni.current);var t=Ai(Pi.current),n=he(t,e.type);t!==n&&(uo(Ti,e),uo(Pi,n))}function Di(e){Ti.current===e&&(lo(Pi),lo(Ti))}var Li=co(0);function zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fi=null,Vi=null,Bi=!1;function Hi(e,t){var n=Uc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Wi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Bi){var t=Vi;if(t){var n=t;if(!Wi(e,t)){if(!(t=qr(n.nextSibling))||!Wi(e,t))return e.flags=-1025&e.flags|2,Bi=!1,void(Fi=e);Hi(Fi,n)}Fi=e,Vi=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Bi=!1,Fi=e}}function Ki(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fi=e}function Yi(e){if(e!==Fi)return!1;if(!Bi)return Ki(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wr(t,e.memoizedProps))for(t=Vi;t;)Hi(e,t),t=qr(t.nextSibling);if(Ki(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Vi=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vi=null}}else Vi=Fi?qr(e.stateNode.nextSibling):null;return!0}function qi(){Vi=Fi=null,Bi=!1}var $i=[];function Gi(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var Qi=k.ReactCurrentDispatcher,Xi=k.ReactCurrentBatchConfig,Ji=0,Zi=null,ea=null,ta=null,na=!1,ra=!1;function oa(){throw Error(a(321))}function ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,o,i){if(Ji=i,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qi.current=null===e||null===e.memoizedState?Aa:Ma,e=n(r,o),ra){i=0;do{if(ra=!1,!(25>i))throw Error(a(301));i+=1,ta=ea=null,t.updateQueue=null,Qi.current=Ra,e=n(r,o)}while(ra)}if(Qi.current=Na,t=null!==ea&&null!==ea.next,Ji=0,ta=ea=Zi=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Zi.memoizedState=ta=e:ta=ta.next=e,ta}function ca(){if(null===ea){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Zi.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Zi.memoizedState=ta=e:ta=ta.next=e}return ta}function la(e,t){return"function"===typeof t?t(e):t}function ua(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var c=s=i=null,l=o;do{var u=l.lane;if((Ji&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=d,i=r):c=c.next=d,Zi.lanes|=u,Bs|=u}l=l.next}while(null!==l&&l!==o);null===c?i=r:c.next=s,lr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);lr(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function fa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,$i.push(t))),e)return n(t._source);throw $i.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ms;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),c=Qi.current,l=c.useState((function(){return fa(o,t,n)})),u=l[1],d=l[0];l=ta;var f=e.memoizedState,h=f.refs,p=h.getSnapshot,m=f.source;f=f.subscribe;var g=Zi;return e.memoizedState={refs:h,source:t,subscribe:r},c.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=i(t._source);if(!lr(s,e)){e=n(t._source),lr(d,e)||(u(e),e=hc(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var c=31-Wt(a),l=1<<c;r[c]|=e,a&=~l}}}),[n,t,r]),c.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hc(g);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),lr(p,n)&&lr(m,t)&&lr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:d}).dispatch=u=Ta.bind(null,Zi,e),l.queue=e,l.baseQueue=null,d=fa(o,t,n),l.memoizedState=l.baseState=d),d}function pa(e,t,n){return ha(ca(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:e}).dispatch=Ta.bind(null,Zi,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zi.updateQueue)?(t={lastEffect:null},Zi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ba(e){return e={current:e},sa().memoizedState=e}function va(){return ca().memoizedState}function ya(e,t,n,r){var o=sa();Zi.flags|=e,o.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ea){var a=ea.memoizedState;if(i=a.destroy,null!==r&&ia(r,a.deps))return void ga(t,n,i,r)}Zi.flags|=e,o.memoizedState=ga(1|t,n,i,r)}function ka(e,t){return ya(516,4,e,t)}function _a(e,t){return wa(516,4,e,t)}function Oa(e,t){return wa(4,2,e,t)}function xa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,xa.bind(null,t,e),n)}function Ea(){}function ja(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Uo();Yo(98>n?98:n,(function(){e(!0)})),Yo(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Ta(e,t,n){var r=fc(),o=hc(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Zi||null!==a&&a===Zi)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=a(s,n);if(i.eagerReducer=a,i.eagerState=c,lr(c,s))return}catch(l){}pc(e,o,r)}}var Na={readContext:ai,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Aa={readContext:ai,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ya(4,2,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Zi,e),[r.memoizedState,e]},useRef:ba,useState:ma,useDebugValue:Ea,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return ka((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return ba(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Bi){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&Zi.mode)&&(Zi.flags|=516,ga(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ai,useCallback:ja,useContext:ai,useEffect:_a,useImperativeHandle:Ca,useLayoutEffect:Oa,useMemo:Sa,useReducer:ua,useRef:va,useState:function(){return ua(la)},useDebugValue:Ea,useDeferredValue:function(e){var t=ua(la),n=t[0],r=t[1];return _a((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ua(la)[0];return[va().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return ua(la)[0]},unstable_isNewReconciler:!1},Ra={readContext:ai,useCallback:ja,useContext:ai,useEffect:_a,useImperativeHandle:Ca,useLayoutEffect:Oa,useMemo:Sa,useReducer:da,useRef:va,useState:function(){return da(la)},useDebugValue:Ea,useDeferredValue:function(e){var t=da(la),n=t[0],r=t[1];return _a((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=da(la)[0];return[va().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return da(la)[0]},unstable_isNewReconciler:!1},Ia=k.ReactCurrentOwner,Da=!1;function La(e,t,n,r){t.child=null===e?ji(t,null,n,r):Ei(t,e.child,n,r)}function za(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=aa(e,t,n,r,i,o),null===e||Da?(t.flags|=1,La(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Fa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Kc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=Yc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,o,i){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(i&o))return t.lanes=e.lanes,is(e,t,i);0!==(16384&e.flags)&&(Da=!0)}return Wa(e,t,n,r,i)}function Ba(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_c(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_c(t,e),null;t.memoizedState={baseLanes:0},_c(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_c(t,r);return La(e,t,o,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Wa(e,t,n,r,o){var i=bo(n)?mo:ho.current;return i=go(t,i),ii(t,o),n=aa(e,t,n,r,i,o),null===e||Da?(t.flags|=1,La(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ua(e,t,n,r,o){if(bo(n)){var i=!0;ko(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),yi(t,n,r),ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ai(l):l=go(t,l=bo(n)?mo:ho.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||c!==l)&&wi(t,a,r,l),si=!1;var f=t.memoizedState;a.state=f,hi(t,r,a,o),c=t.memoizedState,s!==r||f!==c||po.current||si?("function"===typeof u&&(gi(t,n,u,r),c=t.memoizedState),(s=si||vi(t,n,s,r,f,c,l))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,li(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Xo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=ai(c):c=go(t,c=bo(n)?mo:ho.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==c)&&wi(t,a,r,c),si=!1,f=t.memoizedState,a.state=f,hi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||po.current||si?("function"===typeof h&&(gi(t,n,h,r),p=t.memoizedState),(l=si||vi(t,n,l,r,f,p,c))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ka(e,t,n,r,i,o)}function Ka(e,t,n,r,o,i){Ha(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&_o(t,n,!1),is(e,t,i);r=t.stateNode,Ia.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):La(e,t,s,i),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Ya(e){var t=e.stateNode;t.pendingContext?yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yo(0,t.context,!1),Mi(e,t.containerInfo)}var qa,$a,Ga,Qa,Xa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,o=t.pendingProps,i=Li.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),uo(Li,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=Za(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof o.unstable_expectedLoadTime?(e=Za(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Gc({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Gc(t,o,0,null),n=$c(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=Yc(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Yc(a,s),null!==e?r=Yc(e,r):(r=$c(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(La(e,t,r.children,n),0!==(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(uo(Li,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Yc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Bi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bo(t.type)&&vo(),null;case 3:return Ri(),lo(po),lo(ho),Gi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Yi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),$a(t),null;case 5:Di(t);var i=Ai(Ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ga(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ai(Pi.current),Yi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Jr]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Pr(Cr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":ce(r,s),Pr("invalid",r)}for(var l in Oe(n,s),e=null,s)s.hasOwnProperty(l)&&(i=s[l],"children"===l?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):c.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Pr("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===de.html&&(e=fe(n)),e===de.html?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Xr]=t,e[Jr]=r,qa(e,t,!1,!1),t.stateNode=e,l=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Pr(Cr[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Pr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ce(e,r),i=se(e,r),Pr("invalid",e);break;default:i=r}Oe(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?ke(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"===typeof d&&be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(c.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Pr("scroll",e):null!=d&&w(e,s,d,l))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Fr)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ai(Ni.current),Ai(Pi.current),Yi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return lo(Li),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Yi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Li.current)?0===zs&&(zs=3):(0!==zs&&3!==zs||(zs=4),null===Ms||0===(134217727&Bs)&&0===(134217727&Hs)||vc(Ms,Is))),(r||n)&&(t.flags|=4),null);case 4:return Ri(),$a(t),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(lo(Li),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(l=r.rendering))if(s)as(r,!1);else{if(0!==zs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=zi(e))){for(t.flags|=64,as(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return uo(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Wo()>Ys&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=zi(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Bi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>Ys&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=Li.current,uo(Li,s?1&t|2:1&t),n):null;case 23:case 24:return Oc(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function cs(e){switch(e.tag){case 1:bo(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),lo(po),lo(ho),Gi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Di(e),null;case 13:return lo(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(Li),null;case 4:return Ri(),null;case 10:return ri(e),null;case 23:case 24:return Oc(),null;default:return null}}function ls(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(){},Ga=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ai(Pi.current);var a,s=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(d in Oe(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var l=i[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(c.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(l=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==l&&(null!=u||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(c.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Pr("scroll",e),s||l===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===I?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Xs=r),us(0,t)},n}function hs(e,t,n){(n=ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Vc(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Yr(t.stateNode.containerInfo))}throw Error(a(163))}function bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Lc(n,e),Dc(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(a(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ys(e,t){if(xo&&"function"===typeof xo.onCommitFiberUnmount)try{xo.onCommitFiberUnmount(Oo,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Lc(t,n);else{r=t;try{o()}catch(i){Vc(r,i)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Vc(t,i)}break;case 5:ms(t);break;case 4:Cs(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ks(e){return 5===e.tag||3===e.tag||4===e.tag}function _s(e){e:{for(var t=e.return;null!==t;){if(ks(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ks(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Os(e,n,t):xs(e,n,t)}function Os(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Os(e,t,n),e=e.sibling;null!==e;)Os(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Cs(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,c=o,l=c;;)if(ys(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,c=o.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(ys(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,o),t=xe(e,r),o=0;o<i.length;o+=2){var s=i[o],c=i[o+1];"style"===s?ke(n,c):"dangerouslySetInnerHTML"===s?ge(n,c):"children"===s?be(n,c):w(n,s,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ks=Wo(),vs(t.child,!0)),void js(t);case 19:return void js(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(a(163))}function js(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach((function(t){var r=Hc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ps=Math.ceil,Ts=k.ReactCurrentDispatcher,Ns=k.ReactCurrentOwner,As=0,Ms=null,Rs=null,Is=0,Ds=0,Ls=co(0),zs=0,Fs=null,Vs=0,Bs=0,Hs=0,Ws=0,Us=null,Ks=0,Ys=1/0;function qs(){Ys=Wo()+500}var $s,Gs=null,Qs=!1,Xs=null,Js=null,Zs=!1,ec=null,tc=90,nc=[],rc=[],oc=null,ic=0,ac=null,sc=-1,cc=0,lc=0,uc=null,dc=!1;function fc(){return 0!==(48&As)?Wo():-1!==sc?sc:sc=Wo()}function hc(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Uo()?1:2;if(0===cc&&(cc=Vs),0!==Qo.transition){0!==lc&&(lc=null!==Us?Us.pendingLanes:0),e=cc;var t=4186112&~lc;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!==(4&As)&&98===e?e=Ft(12,cc):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),cc),e}function pc(e,t,n){if(50<ic)throw ic=0,ac=null,Error(a(185));if(null===(e=mc(e,t)))return null;Ht(e,t,n),e===Ms&&(Hs|=t,4===zs&&vc(e,Is));var r=Uo();1===t?0!==(8&As)&&0===(48&As)?yc(e):(gc(e,n),0===As&&(qs(),$o())):(0===(4&As)||98!==r&&99!==r||(null===oc?oc=new Set([e]):oc.add(e)),gc(e,n)),Us=e}function mc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-Wt(s),l=1<<c,u=i[c];if(-1===u){if(0===(l&r)||0!==(l&o)){u=t,Dt(l);var d=It;i[c]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);s&=~l}if(r=Lt(e,e===Ms?Is:0),t=It,0===r)null!==n&&(n!==Lo&&jo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Lo&&jo(n)}15===t?(n=yc.bind(null,e),null===Fo?(Fo=[n],Vo=Eo(Ao,Go)):Fo.push(n),n=Lo):14===t?n=qo(99,yc.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=qo(n,bc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bc(e){if(sc=-1,lc=cc=0,0!==(48&As))throw Error(a(327));var t=e.callbackNode;if(Ic()&&e.callbackNode!==t)return null;var n=Lt(e,e===Ms?Is:0);if(0===n)return null;var r=n,o=As;As|=16;var i=Ec();for(Ms===e&&Is===r||(qs(),xc(e,r));;)try{Pc();break}catch(c){Cc(e,c)}if(ni(),Ts.current=i,As=o,null!==Rs?r=0:(Ms=null,Is=0,r=zs),0!==(Vs&Hs))xc(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(n=zt(e))&&(r=jc(e,n))),1===r)throw t=Fs,xc(e,0),vc(e,n),gc(e,Wo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ac(e);break;case 3:if(vc(e,n),(62914560&n)===n&&10<(r=Ks+500-Wo())){if(0!==Lt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){fc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Ac.bind(null,e),r);break}Ac(e);break;case 4:if(vc(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Wt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Wo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=Ur(Ac.bind(null,e),n);break}Ac(e);break;default:throw Error(a(329))}}return gc(e,Wo()),e.callbackNode===t?bc.bind(null,e):null}function vc(e,t){for(t&=~Ws,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function yc(e){if(0!==(48&As))throw Error(a(327));if(Ic(),e===Ms&&0!==(e.expiredLanes&Is)){var t=Is,n=jc(e,t);0!==(Vs&Hs)&&(n=jc(e,t=Lt(e,t)))}else n=jc(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,Yr(e.containerInfo)),0!==(t=zt(e))&&(n=jc(e,t))),1===n)throw n=Fs,xc(e,0),vc(e,t),gc(e,Wo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e),gc(e,Wo()),null}function wc(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(qs(),$o())}}function kc(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(qs(),$o())}}function _c(e,t){uo(Ls,Ds),Ds|=t,Vs|=t}function Oc(){Ds=Ls.current,lo(Ls)}function xc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Kr(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vo();break;case 3:Ri(),lo(po),lo(ho),Gi();break;case 5:Di(r);break;case 4:Ri();break;case 13:case 19:lo(Li);break;case 10:ri(r);break;case 23:case 24:Oc()}n=n.return}Ms=e,Rs=Yc(e.current,null),Is=Ds=Vs=t,zs=0,Fs=null,Ws=Hs=Bs=0}function Cc(e,t){for(;;){var n=Rs;try{if(ni(),Qi.current=Na,na){for(var r=Zi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}na=!1}if(Ji=0,ta=ea=Zi=null,ra=!1,Ns.current=null,null===n||null===n.return){zs=1,Fs=t,Rs=null;break}e:{var i=e,a=n.return,s=n,c=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Li.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=f.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=f.updateQueue;if(null===g){var b=new Set;b.add(l),f.updateQueue=b}else g.add(l);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=ui(-1,1);v.tag=2,di(s,v)}s.lanes|=1;break e}c=void 0,s=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ds,c=new Set,y.set(l,c)):void 0===(c=y.get(l))&&(c=new Set,y.set(l,c)),!c.has(s)){c.add(s);var w=Bc.bind(null,i,l,s);l.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);c=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zs&&(zs=2),c=ls(c,s),f=a;do{switch(f.tag){case 3:i=c,f.flags|=4096,t&=-t,f.lanes|=t,fi(f,fs(0,i,t));break e;case 1:i=c;var k=f.type,_=f.stateNode;if(0===(64&f.flags)&&("function"===typeof k.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Js||!Js.has(_)))){f.flags|=4096,t&=-t,f.lanes|=t,fi(f,hs(f,i,t));break e}}f=f.return}while(null!==f)}Nc(n)}catch(O){t=O,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function Ec(){var e=Ts.current;return Ts.current=Na,null===e?Na:e}function jc(e,t){var n=As;As|=16;var r=Ec();for(Ms===e&&Is===t||xc(e,t);;)try{Sc();break}catch(o){Cc(e,o)}if(ni(),As=n,Ts.current=r,null!==Rs)throw Error(a(261));return Ms=null,Is=0,zs}function Sc(){for(;null!==Rs;)Tc(Rs)}function Pc(){for(;null!==Rs&&!So();)Tc(Rs)}function Tc(e){var t=$s(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,null===t?Nc(e):Rs=t,Ns.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Ds)))return void(Rs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ds)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cs(t)))return n.flags&=2047,void(Rs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===zs&&(zs=5)}function Ac(e){var t=Uo();return Yo(99,Mc.bind(null,e,t)),null}function Mc(e,t){do{Ic()}while(null!==ec);if(0!==(48&As))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<i;){var l=31-Wt(i),u=1<<l;o[l]=0,s[l]=-1,c[l]=-1,i&=~u}if(null!==oc&&0===(24&r)&&oc.has(e)&&oc.delete(e),e===Ms&&(Rs=Ms=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=As,As|=32,Ns.current=null,Vr=$t,gr(s=mr())){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else e:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&0!==u.rangeCount){c=u.anchorNode,i=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch(E){c=null;break e}var d=0,f=-1,h=-1,p=0,m=0,g=s,b=null;t:for(;;){for(var v;g!==c||0!==i&&3!==g.nodeType||(f=d+i),g!==l||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)b=g,g=v;for(;;){if(g===s)break t;if(b===c&&++p===i&&(f=d),b===l&&++m===u&&(h=d),null!==(v=g.nextSibling))break;b=(g=b).parentNode}g=v}c=-1===f||-1===h?null:{start:f,end:h}}else c=null;c=c||{start:0,end:0}}else c=null;Br={focusedElem:s,selectionRange:c},$t=!1,uc=null,dc=!1,Gs=r;do{try{Rc()}catch(E){if(null===Gs)throw Error(a(330));Vc(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);uc=null,Gs=r;do{try{for(s=e;null!==Gs;){var y=Gs.flags;if(16&y&&be(Gs.stateNode,""),128&y){var w=Gs.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&y){case 2:_s(Gs),Gs.flags&=-3;break;case 6:_s(Gs),Gs.flags&=-3,Es(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,Es(Gs.alternate,Gs);break;case 4:Es(Gs.alternate,Gs);break;case 8:Cs(s,c=Gs);var _=c.alternate;ws(c),null!==_&&ws(_)}Gs=Gs.nextEffect}}catch(E){if(null===Gs)throw Error(a(330));Vc(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);if(k=Br,w=mr(),y=k.focusedElem,s=k.selectionRange,w!==y&&y&&y.ownerDocument&&pr(y.ownerDocument.documentElement,y)){null!==s&&gr(y)&&(w=s.start,void 0===(k=s.end)&&(k=w),"selectionStart"in y?(y.selectionStart=w,y.selectionEnd=Math.min(k,y.value.length)):(k=(w=y.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),c=y.textContent.length,_=Math.min(s.start,c),s=void 0===s.end?_:Math.min(s.end,c),!k.extend&&_>s&&(c=s,s=_,_=c),c=hr(y,_),i=hr(y,s),c&&i&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==i.node||k.focusOffset!==i.offset)&&((w=w.createRange()).setStart(c.node,c.offset),k.removeAllRanges(),_>s?(k.addRange(w),k.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),k.addRange(w))))),w=[];for(k=y;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<w.length;y++)(k=w[y]).element.scrollLeft=k.left,k.element.scrollTop=k.top}$t=!!Vr,Br=Vr=null,e.current=n,Gs=r;do{try{for(y=e;null!==Gs;){var O=Gs.flags;if(36&O&&bs(y,Gs.alternate,Gs),128&O){w=void 0;var x=Gs.ref;if(null!==x){var C=Gs.stateNode;Gs.tag,w=C,"function"===typeof x?x(w):x.current=w}}Gs=Gs.nextEffect}}catch(E){if(null===Gs)throw Error(a(330));Vc(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,zo(),As=o}else e.current=n;if(Zs)Zs=!1,ec=e,tc=t;else for(Gs=r;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((O=Gs).sibling=null,O.stateNode=null),Gs=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===ac?ic++:(ic=0,ac=e):ic=0,n=n.stateNode,xo&&"function"===typeof xo.onCommitFiberRoot)try{xo.onCommitFiberRoot(Oo,n,void 0,64===(64&n.current.flags))}catch(E){}if(gc(e,Wo()),Qs)throw Qs=!1,e=Xs,Xs=null,e;return 0!==(8&As)||$o(),null}function Rc(){for(;null!==Gs;){var e=Gs.alternate;dc||null===uc||(0!==(8&Gs.flags)?Ze(Gs,uc)&&(dc=!0):13===Gs.tag&&Ss(e,Gs)&&Ze(Gs,uc)&&(dc=!0));var t=Gs.flags;0!==(256&t)&&gs(e,Gs),0===(512&t)||Zs||(Zs=!0,qo(97,(function(){return Ic(),null}))),Gs=Gs.nextEffect}}function Ic(){if(90!==tc){var e=97<tc?97:tc;return tc=90,Yo(e,zc)}return!1}function Dc(e,t){nc.push(t,e),Zs||(Zs=!0,qo(97,(function(){return Ic(),null})))}function Lc(e,t){rc.push(t,e),Zs||(Zs=!0,qo(97,(function(){return Ic(),null})))}function zc(){if(null===ec)return!1;var e=ec;if(ec=null,0!==(48&As))throw Error(a(331));var t=As;As|=32;var n=rc;rc=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(l){if(null===i)throw Error(a(330));Vc(i,l)}}for(n=nc,nc=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var c=o.create;o.destroy=c()}catch(l){if(null===i)throw Error(a(330));Vc(i,l)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return As=t,$o(),!0}function Fc(e,t,n){di(e,t=fs(0,t=ls(n,t),1)),t=fc(),null!==(e=mc(e,1))&&(Ht(e,1,t),gc(e,t))}function Vc(e,t){if(3===e.tag)Fc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var o=hs(n,e=ls(t,e),1);if(di(n,o),o=fc(),null!==(n=mc(n,1)))Ht(n,1,o),gc(n,o);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Bc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fc(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(Is&n)===n&&(4===zs||3===zs&&(62914560&Is)===Is&&500>Wo()-Ks?xc(e,0):Ws|=n),gc(e,t)}function Hc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Uo()?1:2:(0===cc&&(cc=Vs),0===(t=Vt(62914560&~cc))&&(t=4194304))),n=fc(),null!==(e=mc(e,t))&&(Ht(e,t,n),gc(e,n))}function Wc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uc(e,t,n,r){return new Wc(e,t,n,r)}function Kc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yc(e,t){var n=e.alternate;return null===n?((n=Uc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qc(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Kc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return $c(n.children,o,i,t);case D:s=8,o|=16;break;case C:s=8,o|=1;break;case E:return(e=Uc(12,n,t,8|o)).elementType=E,e.type=E,e.lanes=i,e;case T:return(e=Uc(13,n,t,o)).type=T,e.elementType=T,e.lanes=i,e;case N:return(e=Uc(19,n,t,o)).elementType=N,e.lanes=i,e;case L:return Gc(n,o,i,t);case z:return(e=Uc(24,n,t,o)).elementType=z,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:s=10;break e;case S:s=9;break e;case P:s=11;break e;case A:s=14;break e;case M:s=16,r=null;break e;case R:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Uc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function $c(e,t,n,r){return(e=Uc(7,e,r,t)).lanes=n,e}function Gc(e,t,n,r){return(e=Uc(23,e,r,t)).elementType=L,e.lanes=n,e}function Qc(e,t,n){return(e=Uc(6,e,null,t)).lanes=n,e}function Xc(e,t,n){return(t=Uc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jc(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Zc(e,t,n,r){var o=t.current,i=fc(),s=hc(o);e:if(n){t:{if(Ge(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(bo(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(bo(l)){n=wo(n,l,c);break e}}n=c}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),pc(o,s,i),s}function el(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nl(e,t){tl(e,t),(e=e.alternate)&&tl(e,t)}function rl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jc(e,t,null!=n&&!0===n.hydrate),t=Uc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[Zr]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function il(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=el(a);s.call(e)}}Zc(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var c=o;o=function(){var e=el(a);c.call(e)}}kc((function(){Zc(t,a,e,o)}))}return el(a)}function al(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}$s=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||po.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:Ya(t),qi();break;case 5:Ii(t);break;case 1:bo(t.type)&&ko(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;uo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(uo(Li,1&Li.current),null!==(t=is(e,t,n))?t.sibling:null);uo(Li,1&Li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),uo(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return is(e,t,n)}Da=0!==(16384&e.flags)}else Da=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,ho.current),ii(t,n),o=aa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(r)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&gi(t,r,s,e),o.updater=bi,t.stateNode=o,o._reactInternals=t,ki(t,r,e,n),t=Ka(null,t,r,!0,i,n)}else t.tag=0,La(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Kc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===A)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=Wa(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=za(null,t,o,e,n);break e;case 14:t=Fa(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Ya(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)qi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Vi=qr(t.stateNode.containerInfo.firstChild),Fi=t,i=Bi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],$i.push(i);for(n=ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else La(e,t,r,n),qi();t=t.child}return t;case 5:return Ii(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Wr(r,o)?s=null:null!==i&&Wr(r,i)&&(t.flags|=16),Ha(e,t),La(e,t,s,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Ja(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):La(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return La(e,t,t.pendingProps,n),t.child;case 8:case 12:return La(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var c=t.type._context;if(uo(Jo,c._currentValue),c._currentValue=i,null!==s)if(c=s.value,0===(i=lr(c,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,i):1073741823))){if(s.children===o.children&&!po.current){t=is(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===c.tag&&((u=ui(-1,n&-n)).tag=2,di(c,u)),c.lanes|=n,null!==(u=c.alternate)&&(u.lanes|=n),oi(c.return,n),l.lanes|=n;break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}La(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.flags|=1,La(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Fa(e,t,o,i=Xo(o.type,i),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,bo(r)?(e=!0,ko(t)):e=!1,ii(t,n),yi(t,r,o),ki(t,r,o,n),Ka(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag))},rl.prototype.render=function(e){Zc(e,this._internalRoot,null,null)},rl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zc(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(pc(e,4,fc()),nl(e,4))},tt=function(e){13===e.tag&&(pc(e,67108864,fc()),nl(e,67108864))},nt=function(e){if(13===e.tag){var t=fc(),n=hc(e);pc(e,n,t),nl(e,n)}},rt=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oo(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=wc,Me=function(e,t,n,r,o){var i=As;As|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{0===(As=i)&&(qs(),$o())}},Re=function(){0===(49&As)&&(function(){if(null!==oc){var e=oc;oc=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gc(e,Wo())}))}$o()}(),Ic())},Ie=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(qs(),$o())}};var sl={Events:[no,ro,oo,Te,Ne,Ic,{current:!1}]},cl={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ll={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ul.isDisabled&&ul.supportsFiber)try{Oo=ul.inject(ll),xo=ul}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,t.createPortal=al,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!==(48&n))return e(t);As|=1;try{if(e)return Yo(99,e.bind(null,t))}finally{As=n,$o()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(kc((function(){il(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=wc,t.unstable_createPortal=function(e,t){return al(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return il(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(289)},function(e,t,n){"use strict";var r,o,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,d=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(f,0),n}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},o=function(e,t){d=setTimeout(e,t)},i=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var m=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://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,b=null,v=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+y;try{b(!0,e)?_.postMessage(null):(g=!1,b=null)}catch(n){throw _.postMessage(null),n}}else g=!1},r=function(e){b=e,g||(g=!0,_.postMessage(null))},o=function(e,n){v=h((function(){e(t.unstable_now())}),n)},i=function(){p(v),v=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>E(a,n))void 0!==c&&0>E(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>E(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],S=[],P=1,T=null,N=3,A=!1,M=!1,R=!1;function I(e){for(var t=x(S);null!==t;){if(null===t.callback)C(S);else{if(!(t.startTime<=e))break;C(S),t.sortIndex=t.expirationTime,O(j,t)}t=x(S)}}function D(e){if(R=!1,I(e),!M)if(null!==x(j))M=!0,r(L);else{var t=x(S);null!==t&&o(D,t.startTime-e)}}function L(e,n){M=!1,R&&(R=!1,i()),A=!0;var r=N;try{for(I(n),T=x(j);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"===typeof a){T.callback=null,N=T.priorityLevel;var s=a(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?T.callback=s:T===x(j)&&C(j),I(n)}else C(j);T=x(j)}if(null!==T)var c=!0;else{var l=x(S);null!==l&&o(D,l.startTime-n),c=!1}return c}finally{T=null,N=r,A=!1}}var z=a;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(){M||A||(M=!0,r(L))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(j)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,O(S,e),null===x(j)&&e===x(S)&&(R?i():R=!0,o(D,a-s))):(e.sortIndex=c,O(j,e),M||A||(M=!0,r(L))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},,function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,s=60114,c=60109,l=60110,u=60112,d=60113,f=60120,h=60115,p=60116,m=60121,g=60122,b=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),o=w("react.portal"),i=w("react.fragment"),a=w("react.strict_mode"),s=w("react.profiler"),c=w("react.provider"),l=w("react.context"),u=w("react.forward_ref"),d=w("react.suspense"),f=w("react.suspense_list"),h=w("react.memo"),p=w("react.lazy"),m=w("react.block"),g=w("react.server.block"),b=w("react.fundamental"),v=w("react.debug_trace_mode"),y=w("react.legacy_hidden")}function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case h:case c:return e;default:return t}}case o:return t}}}var _=c,O=r,x=u,C=i,E=p,j=h,S=o,P=s,T=a,N=d;t.ContextConsumer=l,t.ContextProvider=_,t.Element=O,t.ForwardRef=x,t.Fragment=C,t.Lazy=E,t.Memo=j,t.Portal=S,t.Profiler=P,t.StrictMode=T,t.Suspense=N,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return k(e)===l},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===u},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===p},t.isMemo=function(e){return k(e)===h},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===v||e===a||e===d||e===f||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===b||e.$$typeof===m||e[0]===g)},t.typeOf=k},function(e,t,n){"use strict";e.exports=n(293)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case b:case g:case l:return e;default:return t}}case i:return t}}}function O(e){return _(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||_(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===b},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===c||e===s||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===w||e.$$typeof===k||e.$$typeof===v)},t.typeOf=_},function(e,t,n){"use strict";var r,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case a:case c:case s:case h:case p:return e;default:switch(e=e&&e.$$typeof){case d:case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===f},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===c},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===h},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===c||e===s||e===h||e===p||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=v},function(e,t,n){var r=n(296),o=n(146);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(297),o=n(234),i=n(331),a=n(335),s=n(357),c=n(166),l=n(235),u=n(236),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,b){var v=c(e),y=c(t),w=v?f:s(e),k=y?f:s(t),_=(w=w==d?h:w)==h,O=(k=k==d?h:k)==h,x=w==k;if(x&&l(e)){if(!l(t))return!1;v=!0,_=!1}if(x&&!_)return b||(b=new r),v||u(e)?o(e,t,n,m,g,b):i(e,t,w,n,m,g,b);if(!(1&n)){var C=_&&p.call(e,"__wrapped__"),E=O&&p.call(t,"__wrapped__");if(C||E){var j=C?e.value():e,S=E?t.value():t;return b||(b=new r),g(j,S,n,m,b)}}return!!x&&(b||(b=new r),a(e,t,n,m,g,b))}},function(e,t,n){var r=n(160),o=n(303),i=n(304),a=n(305),s=n(306),c=n(307);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(161),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(161);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(161);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(161);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(160);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(160),o=n(211),i=n(233);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(230),o=n(311),i=n(163),a=n(232),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(162),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(312),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(95)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(315),o=n(160),i=n(211);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(316),o=n(317),i=n(318),a=n(319),s=n(320);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(164);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(164),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(164),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(164);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(165);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(165);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(165);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(165);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(233),o=n(327),i=n(328);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(162),o=n(332),i=n(229),a=n(234),s=n(333),c=n(334),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(h(e),h(t),r,l,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(95).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(336),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=l[d];if(!(c?f in t:o.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<u;){var b=e[f=l[d]],v=t[f];if(i)var y=c?i(v,b,f,t,e,s):i(b,v,f,e,t,s);if(!(void 0===y?b===v||a(b,v,n,i,s):y)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(337),o=n(339),i=n(342);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(338),o=n(166);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(340),o=n(341),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(343),o=n(352),i=n(356);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(344),o=n(345),i=n(166),a=n(235),s=n(348),c=n(236),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),h=n||u||d||f,p=h?r(e.length,String):[],m=p.length;for(var g in e)!t&&!l.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(346),o=n(146),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(145),o=n(146);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(145),o=n(237),i=n(146),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(231),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(212)(e))},function(e,t,n){var r=n(353),o=n(354),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(355)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(230),o=n(237);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(358),o=n(211),i=n(359),a=n(360),s=n(361),c=n(145),l=n(232),u="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",m=l(r),g=l(o),b=l(i),v=l(a),y=l(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=p||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return p;case g:return u;case b:return d;case v:return f;case y:return h}return t}),e.exports=w},function(e,t,n){var r=n(126)(n(95),"DataView");e.exports=r},function(e,t,n){var r=n(126)(n(95),"Promise");e.exports=r},function(e,t,n){var r=n(126)(n(95),"Set");e.exports=r},function(e,t,n){var r=n(126)(n(95),"WeakMap");e.exports=r},function(e,t,n){var r=n(127),o=n(364);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(365)("toUpperCase");e.exports=r},function(e,t,n){var r=n(240),o=n(167),i=n(241),a=n(127);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="\\ud800-\\udfff",r="["+n+"]",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+o+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",d=u+l+("(?:\\u200d(?:"+[a,s,c].join("|")+")"+u+l+")*"),f="(?:"+[a+o+"?",o,s,c,r].join("|")+")",h=RegExp(i+"(?="+i+")|"+f+d,"g");e.exports=function(e){return e.match(h)||[]}},function(e,t,n){var r=n(370),o=n(371),i=n(374),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t,n){var r=n(372),o=n(127),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},function(e,t,n){var r=n(373)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(375),o=n(376),i=n(127),a=n(377);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\ud800-\\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+a+"]",c="\\d+",l="["+r+"]",u="["+o+"]",d="[^"+n+a+c+r+o+i+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+i+"]",m="(?:"+u+"|"+d+")",g="(?:"+p+"|"+d+")",b="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",w="[\\ufe0e\\ufe0f]?",k=w+y+("(?:\\u200d(?:"+["[^"+n+"]",f,h].join("|")+")"+w+y+")*"),_="(?:"+[l,f,h].join("|")+")"+k,O=RegExp([p+"?"+u+"+"+b+"(?="+[s,p,"$"].join("|")+")",g+"+"+v+"(?="+[s,p+m,"$"].join("|")+")",p+"?"+m+"+"+b,p+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c,_].join("|"),"g");e.exports=function(e){return e.match(O)||[]}},function(e,t,n){var r=n(95);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(380),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){"use strict";n(210);var r=n(1),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(384)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case b:case g:case l:return e;default:return t}}case i:return t}}}function O(e){return _(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=b,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||_(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===b},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===c||e===s||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===w||e.$$typeof===k||e.$$typeof===v)},t.typeOf=_},function(e,t,n){"use strict";var r=n(386);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:o};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,n){"use strict";var r=n(79),o=n(243),i=n(388),a=n(249);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(213));c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(250),c.CancelToken=n(402),c.isCancel=n(248),c.all=function(e){return Promise.all(e)},c.spread=n(403),c.isAxiosError=n(404),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(79),o=n(244),i=n(389),a=n(390),s=n(249),c=n(400),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(p){h(p);break}}try{o=a(d)}catch(p){return Promise.reject(p)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(79);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(79),o=n(391),i=n(248),a=n(213);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(79),o=n(213);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},function(e,t,n){"use strict";var r=n(79);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(247);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(79);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(396),o=n(397);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(79),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(79);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(401),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(250);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t,n){var r=n(407)("length");e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t){var n="\\ud800-\\udfff",r="["+n+"]",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+o+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",d=u+l+("(?:\\u200d(?:"+[a,s,c].join("|")+")"+u+l+")*"),f="(?:"+[a+o+"?",o,s,c,r].join("|")+")",h=RegExp(i+"(?="+i+")|"+f+d,"g");e.exports=function(e){for(var t=h.lastIndex=0;h.test(e);)++t;return t}},function(e,t,n){var r=n(242),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(10);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";var r=n(1),o=n(22),i=n(99),a=n(40);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,c=r.forwardRef((function(e,t){var n=e.children,c=e.container,l=e.disablePortal,u=void 0!==l&&l,d=e.onRendered,f=r.useState(null),h=f[0],p=f[1],m=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||p(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(c)||document.body)}),[c,u]),s((function(){if(h&&!u)return Object(i.a)(t,h),function(){Object(i.a)(t,null)}}),[t,h,u]),s((function(){d&&(h||u)&&d()}),[d,h,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:m}):n:h?o.createPortal(n,h):h}));t.a=c},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(10),a=n(6),s=n(7),c=n.n(s),l=n(1),u=n(66),d=n(185),f=n(90),h=n(50),p=n(193),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object(h.a)("top","middle","bottom","stretch"),Object(h.a)("start","end","center","space-around","space-between","space-evenly");function g(e,t){var n=l.useState("string"===typeof e?e:""),r=Object(a.a)(n,2),o=r[0],s=r[1];return l.useEffect((function(){!function(){if("string"===typeof e&&s(e),"object"===Object(i.a)(e))for(var n=0;n<f.b.length;n++){var r=f.b[n];if(t[r]){var o=e[r];if(void 0!==o)return void s(o)}}}()}),[JSON.stringify(e),t]),o}var b=l.forwardRef((function(e,t){var n=e.prefixCls,s=e.justify,h=e.align,b=e.className,v=e.style,y=e.children,w=e.gutter,k=void 0===w?0:w,_=e.wrap,O=m(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),x=l.useContext(u.b),C=x.getPrefixCls,E=x.direction,j=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),S=Object(a.a)(j,2),P=S[0],T=S[1],N=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=Object(a.a)(N,2),M=A[0],R=A[1],I=g(h,M),D=g(s,M),L=Object(d.a)(),z=l.useRef(k);l.useEffect((function(){var e=f.a.subscribe((function(e){R(e);var t=z.current||0;(!Array.isArray(t)&&"object"===Object(i.a)(t)||Array.isArray(t)&&("object"===Object(i.a)(t[0])||"object"===Object(i.a)(t[1])))&&T(e)}));return function(){return f.a.unsubscribe(e)}}),[]);var F=C("row",n),V=function(){var e=[void 0,void 0];return(Array.isArray(k)?k:[k,void 0]).forEach((function(t,n){if("object"===Object(i.a)(t))for(var r=0;r<f.b.length;r++){var o=f.b[r];if(P[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e}(),B=c()(F,Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(F,"-no-wrap"),!1===_),"".concat(F,"-").concat(D),D),"".concat(F,"-").concat(I),I),"".concat(F,"-rtl"),"rtl"===E),b),H={},W=null!=V[0]&&V[0]>0?V[0]/-2:void 0,U=null!=V[1]&&V[1]>0?V[1]/-2:void 0;if(W&&(H.marginLeft=W,H.marginRight=W),L){var K=Object(a.a)(V,2);H.rowGap=K[1]}else U&&(H.marginTop=U,H.marginBottom=U);var Y=Object(a.a)(V,2),q=Y[0],$=Y[1],G=l.useMemo((function(){return{gutter:[q,$],wrap:_,supportFlexGap:L}}),[q,$,_,L]);return l.createElement(p.a.Provider,{value:G},l.createElement("div",Object(r.a)({},O,{className:B,style:Object(r.a)(Object(r.a)({},H),v),ref:t}),y))}));t.a=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(8),o=n(3),i=n(1),a=n.n(i),s=n(68),c=n(449),l={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(222),d=n(476),f=-1e9;n(10);var h=n(413);var p={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,m=t.Component,g=t.defaultTheme,b=void 0===g?p:g,v=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),y=function(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(c){throw c}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=Object(o.a)({},i);return Object.keys(a).forEach((function(e){s[e]=Object(h.a)(s[e],a[e])})),s},options:{}}}(e),w=n||i||"makeStyles";y.options={index:f+=1,name:n,meta:w,classNamePrefix:w};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(u.a)()||b,r=Object(o.a)({},a.a.useContext(d.a),v),i=a.a.useRef(),f=a.a.useRef();!function(e,t){var n,r=a.a.useRef([]),o=a.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var a={name:n,state:{},stylesCreator:y,stylesOptions:r,theme:t};return function(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,u=e.name;if(!i.disableGeneration){var d=l.get(i.sheetsManager,a,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},l.set(i.sheetsManager,a,r,d));var f=Object(o.a)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var h=i.sheetsRegistry;if(0===d.refs){var p;i.sheetsCache&&(p=l.get(i.sheetsCache,a,r));var m=a.create(r,u);p||((p=i.jss.createStyleSheet(m,Object(o.a)({link:!1},f))).attach(),i.sheetsCache&&l.set(i.sheetsCache,a,r,p)),h&&h.add(p),d.staticSheet=p,d.dynamicStyles=Object(s.d)(m)}if(d.dynamicStyles){var g=i.jss.createStyleSheet(d.dynamicStyles,Object(o.a)({link:!0},f));g.update(t),g.attach(),n.dynamicSheet=g,n.classes=Object(c.a)({baseClasses:d.staticSheet.classes,newClasses:g.classes}),h&&h.add(g)}else n.classes=d.staticSheet.classes;d.refs+=1}}(a,e),f.current=!1,i.current=a,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=l.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(l.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(a)}}),[t,y]),a.a.useEffect((function(){f.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),f.current=!0}));var h=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Object(c.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,m);return h}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1),a=n(15),s=n(19),c=n(46),l=n(277),u=n(36),d=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,f=void 0===d?"default":d,h=e.component,p=void 0===h?"button":h,m=e.disabled,g=void 0!==m&&m,b=e.disableElevation,v=void 0!==b&&b,y=e.disableFocusRipple,w=void 0!==y&&y,k=e.endIcon,_=e.focusVisibleClassName,O=e.fullWidth,x=void 0!==O&&O,C=e.size,E=void 0===C?"medium":C,j=e.startIcon,S=e.type,P=void 0===S?"button":S,T=e.variant,N=void 0===T?"text":T,A=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=j&&i.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(u.a)(E))])},j),R=k&&i.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(u.a)(E))])},k);return i.createElement(l.a,Object(o.a)({className:Object(a.a)(s.root,s[N],c,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(N).concat(Object(u.a)(f))],"medium"!==E&&[s["".concat(N,"Size").concat(Object(u.a)(E))],s["size".concat(Object(u.a)(E))]],v&&s.disableElevation,g&&s.disabled,x&&s.fullWidth),component:p,disabled:g,focusRipple:!w,focusVisibleClassName:Object(a.a)(s.focusVisible,_),ref:t,type:P},A),i.createElement("span",{className:s.label},M,n,R))}));t.a=Object(s.a)((function(e){return{root:Object(o.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(c.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(c.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(c.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(36),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,d=e.className,f=e.color,h=void 0===f?"initial":f,p=e.component,m=e.display,g=void 0===m?"initial":m,b=e.gutterBottom,v=void 0!==b&&b,y=e.noWrap,w=void 0!==y&&y,k=e.paragraph,_=void 0!==k&&k,O=e.variant,x=void 0===O?"body1":O,C=e.variantMapping,E=void 0===C?l:C,j=Object(o.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=p||(_?"p":E[x]||l[x])||"span";return i.createElement(S,Object(r.a)({className:Object(a.a)(u.root,d,"inherit"!==x&&u[x],"initial"!==h&&u["color".concat(Object(c.a)(h))],w&&u.noWrap,v&&u.gutterBottom,_&&u.paragraph,"inherit"!==s&&u["align".concat(Object(c.a)(s))],"initial"!==g&&u["display".concat(Object(c.a)(g))]),ref:t},j))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(259),s=n(222),c=n(414),l=n(94),u=n(99),d=n(40);function f(e){return"function"===typeof e?e():e}var h="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,p={},m=i.forwardRef((function(e,t){var n=e.anchorEl,m=e.children,g=e.container,b=e.disablePortal,v=void 0!==b&&b,y=e.keepMounted,w=void 0!==y&&y,k=e.modifiers,_=e.open,O=e.placement,x=void 0===O?"bottom":O,C=e.popperOptions,E=void 0===C?p:C,j=e.popperRef,S=e.style,P=e.transition,T=void 0!==P&&P,N=Object(o.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),A=i.useRef(null),M=Object(d.a)(A,t),R=i.useRef(null),I=Object(d.a)(R,j),D=i.useRef(I);h((function(){D.current=I}),[I]),i.useImperativeHandle(j,(function(){return R.current}),[]);var L=i.useState(!0),z=L[0],F=L[1],V=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(x,Object(s.a)()),B=i.useState(V),H=B[0],W=B[1];i.useEffect((function(){R.current&&R.current.update()}));var U=i.useCallback((function(){if(A.current&&n&&_){R.current&&(R.current.destroy(),D.current(null));var e=function(e){W(e.placement)},t=(f(n),new a.a(f(n),A.current,Object(r.a)({placement:V},E,{modifiers:Object(r.a)({},v?{}:{preventOverflow:{boundariesElement:"window"}},k,E.modifiers),onCreate:Object(l.a)(e,E.onCreate),onUpdate:Object(l.a)(e,E.onUpdate)})));D.current(t)}}),[n,v,k,_,V,E]),K=i.useCallback((function(e){Object(u.a)(M,e),U()}),[M,U]),Y=function(){R.current&&(R.current.destroy(),D.current(null))};if(i.useEffect((function(){return function(){Y()}}),[]),i.useEffect((function(){_||T||Y()}),[_,T]),!w&&!_&&(!T||z))return null;var q={placement:H};return T&&(q.TransitionProps={in:_,onEnter:function(){F(!1)},onExited:function(){F(!0),Y()}}),i.createElement(c.a,{disablePortal:v,container:g},i.createElement("div",Object(r.a)({ref:K,role:"tooltip"},N,{style:Object(r.a)({position:"fixed",top:0,left:0,display:_||!w||T?null:"none"},S)}),"function"===typeof m?m(q):m))}));t.a=m},function(e,t,n){"use strict";var r=n(3),o=n(6),i=n(8),a=n(1),s=n(223),c=n(75),l=n(73),u=n(40);function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},h=a.forwardRef((function(e,t){var n=e.children,h=e.disableStrictModeCompat,p=void 0!==h&&h,m=e.in,g=e.onEnter,b=e.onEntered,v=e.onEntering,y=e.onExit,w=e.onExited,k=e.onExiting,_=e.style,O=e.timeout,x=void 0===O?"auto":O,C=e.TransitionComponent,E=void 0===C?s.a:C,j=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=a.useRef(),P=a.useRef(),T=Object(c.a)(),N=T.unstable_strictMode&&!p,A=a.useRef(null),M=Object(u.a)(n.ref,t),R=Object(u.a)(N?A:void 0,M),I=function(e){return function(t,n){if(e){var r=N?[A.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},D=I(v),L=I((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:_,timeout:x},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===x?(n=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=n):n=o,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:i}),T.transitions.create("transform",{duration:.666*n,delay:i})].join(","),g&&g(e,t)})),z=I(b),F=I(k),V=I((function(e){var t,n=Object(l.a)({style:_,timeout:x},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===x?(t=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:o}),T.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=d(.75),y&&y(e)})),B=I(w);return a.useEffect((function(){return function(){clearTimeout(S.current)}}),[]),a.createElement(E,Object(r.a)({appear:!0,in:m,nodeRef:N?A:void 0,onEnter:L,onEntered:z,onEntering:D,onExit:V,onExited:B,onExiting:F,addEndListener:function(e,t){var n=N?e:t;"auto"===x&&(S.current=setTimeout(n,P.current||0))},timeout:"auto"===x?null:x},j),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:d(.75),visibility:"exited"!==e||m?void 0:"hidden"},f[e],_,n.props.style),ref:R},t))}))}));h.muiSupportAuto=!0,t.a=h},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1),a=n(15),s=n(19),c=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,l=void 0===c?"div":c,u=e.square,d=void 0!==u&&u,f=e.elevation,h=void 0===f?1:f,p=e.variant,m=void 0===p?"elevation":p,g=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(l,Object(o.a)({className:Object(a.a)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(h)],!d&&n.rounded),ref:t},g))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(c)},function(e,t,n){"use strict";var r=n(1),o=n(22),i=n(61),a=n(40),s=n(72);function c(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,l=void 0!==n&&n,u=e.mouseEvent,d=void 0===u?"onClick":u,f=e.onClickAway,h=e.touchEvent,p=void 0===h?"onTouchEnd":h,m=r.useRef(!1),g=r.useRef(null),b=r.useRef(!1),v=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){b.current=!0}),0),function(){b.current=!1}}),[]);var y=r.useCallback((function(e){g.current=o.findDOMNode(e)}),[]),w=Object(a.a)(t.ref,y),k=Object(s.a)((function(e){var t=v.current;if(v.current=!1,b.current&&g.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(m.current)m.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(g.current)>-1;else n=!Object(i.a)(g.current).documentElement.contains(e.target)||g.current.contains(e.target);n||!l&&t||f(e)}})),_=function(e){return function(n){v.current=!0;var r=t.props[e];r&&r(n)}},O={ref:w};return!1!==p&&(O[p]=_(p)),r.useEffect((function(){if(!1!==p){var e=c(p),t=Object(i.a)(g.current),n=function(){m.current=!0};return t.addEventListener(e,k),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,k),t.removeEventListener("touchmove",n)}}}),[k,p]),!1!==d&&(O[d]=_(d)),r.useEffect((function(){if(!1!==d){var e=c(d),t=Object(i.a)(g.current);return t.addEventListener(e,k),function(){t.removeEventListener(e,k)}}}),[k,d]),r.createElement(r.Fragment,null,r.cloneElement(t,O))}},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(46),l=n(277),u=n(36),d=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,d=e.classes,f=e.className,h=e.color,p=void 0===h?"default":h,m=e.disabled,g=void 0!==m&&m,b=e.disableFocusRipple,v=void 0!==b&&b,y=e.size,w=void 0===y?"medium":y,k=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(l.a,Object(r.a)({className:Object(a.a)(d.root,f,"default"!==p&&d["color".concat(Object(u.a)(p))],g&&d.disabled,"small"===w&&d["size".concat(Object(u.a)(w))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!v,disabled:g,ref:t},k),i.createElement("span",{className:d.label},c))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(c.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},function(e,t,n){"use strict";var r=n(3),o=n(416),i=n(111);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(36),l=44,u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"primary":u,f=e.disableShrink,h=void 0!==f&&f,p=e.size,m=void 0===p?40:p,g=e.style,b=e.thickness,v=void 0===b?3.6:b,y=e.value,w=void 0===y?0:y,k=e.variant,_=void 0===k?"indeterminate":k,O=Object(o.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),x={},C={},E={};if("determinate"===_||"static"===_){var j=2*Math.PI*((l-v)/2);x.strokeDasharray=j.toFixed(3),E["aria-valuenow"]=Math.round(w),x.strokeDashoffset="".concat(((100-w)/100*j).toFixed(3),"px"),C.transform="rotate(-90deg)"}return i.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"inherit"!==d&&n["color".concat(Object(c.a)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[_]),style:Object(r.a)({width:m,height:m},C,g),ref:t,role:"progressbar"},E,O),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(l," ").concat(l)},i.createElement("circle",{className:Object(a.a)(n.circle,h&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[_]),style:x,cx:l,cy:l,r:(l-v)/2,fill:"none",strokeWidth:v})))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(u)},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(36),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,u=void 0===l?"inherit":l,d=e.component,f=void 0===d?"span":d,h=e.fontSize,p=void 0===h?"medium":h,m=Object(o.a)(e,["classes","className","color","component","fontSize"]);return i.createElement(f,Object(r.a)({className:Object(a.a)("material-icons",n.root,s,"inherit"!==u&&n["color".concat(Object(c.a)(u))],"default"!==p&&"medium"!==p&&n["fontSize".concat(Object(c.a)(p))]),"aria-hidden":!0,ref:t},m))}));l.muiName="Icon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(l)},function(e,t,n){"use strict";var r=n(153);t.a=r.a},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1),a=n(15),s=n(19),c=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var d=i.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,c=e.alignItems,l=void 0===c?"stretch":c,u=e.classes,d=e.className,f=e.component,h=void 0===f?"div":f,p=e.container,m=void 0!==p&&p,g=e.direction,b=void 0===g?"row":g,v=e.item,y=void 0!==v&&v,w=e.justify,k=e.justifyContent,_=void 0===k?"flex-start":k,O=e.lg,x=void 0!==O&&O,C=e.md,E=void 0!==C&&C,j=e.sm,S=void 0!==j&&j,P=e.spacing,T=void 0===P?0:P,N=e.wrap,A=void 0===N?"wrap":N,M=e.xl,R=void 0!==M&&M,I=e.xs,D=void 0!==I&&I,L=e.zeroMinWidth,z=void 0!==L&&L,F=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),V=Object(a.a)(u.root,d,m&&[u.container,0!==T&&u["spacing-xs-".concat(String(T))]],y&&u.item,z&&u.zeroMinWidth,"row"!==b&&u["direction-xs-".concat(String(b))],"wrap"!==A&&u["wrap-xs-".concat(String(A))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==(w||_)&&u["justify-content-xs-".concat(String(w||_))],!1!==D&&u["grid-xs-".concat(String(D))],!1!==S&&u["grid-sm-".concat(String(S))],!1!==E&&u["grid-md-".concat(String(E))],!1!==x&&u["grid-lg-".concat(String(x))],!1!==R&&u["grid-xl-".concat(String(R))]);return i.createElement(h,Object(o.a)({className:V,ref:t},F))})),f=Object(s.a)((function(e){return Object(o.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(u(o,2)),width:"calc(100% + ".concat(u(o),")"),"& > $item":{padding:u(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(o.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(d);t.a=f},function(e,t,n){"use strict";var r=n(415);t.a=r.a},function(e,t,n){"use strict";var r=n(3),o=n(6),i=n(8),a=n(1),s=n(15),c=n(223),l=n(19),u=n(82),d=n(73),f=n(75),h=n(40),p=a.forwardRef((function(e,t){var n=e.children,l=e.classes,p=e.className,m=e.collapsedHeight,g=e.collapsedSize,b=void 0===g?"0px":g,v=e.component,y=void 0===v?"div":v,w=e.disableStrictModeCompat,k=void 0!==w&&w,_=e.in,O=e.onEnter,x=e.onEntered,C=e.onEntering,E=e.onExit,j=e.onExited,S=e.onExiting,P=e.style,T=e.timeout,N=void 0===T?u.b.standard:T,A=e.TransitionComponent,M=void 0===A?c.a:A,R=Object(i.a)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),I=Object(f.a)(),D=a.useRef(),L=a.useRef(null),z=a.useRef(),F="number"===typeof(m||b)?"".concat(m||b,"px"):m||b;a.useEffect((function(){return function(){clearTimeout(D.current)}}),[]);var V=I.unstable_strictMode&&!k,B=a.useRef(null),H=Object(h.a)(t,V?B:void 0),W=function(e){return function(t,n){if(e){var r=V?[B.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},U=W((function(e,t){e.style.height=F,O&&O(e,t)})),K=W((function(e,t){var n=L.current?L.current.clientHeight:0,r=Object(d.a)({style:P,timeout:N},{mode:"enter"}).duration;if("auto"===N){var o=I.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),z.current=o}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),C&&C(e,t)})),Y=W((function(e,t){e.style.height="auto",x&&x(e,t)})),q=W((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),E&&E(e)})),$=W(j),G=W((function(e){var t=L.current?L.current.clientHeight:0,n=Object(d.a)({style:P,timeout:N},{mode:"exit"}).duration;if("auto"===N){var r=I.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=F,S&&S(e)}));return a.createElement(M,Object(r.a)({in:_,onEnter:U,onEntered:Y,onEntering:K,onExit:q,onExited:$,onExiting:G,addEndListener:function(e,t){var n=V?e:t;"auto"===N&&(D.current=setTimeout(n,z.current||0))},nodeRef:V?B:void 0,timeout:"auto"===N?null:N},R),(function(e,t){return a.createElement(y,Object(r.a)({className:Object(s.a)(l.root,l.container,p,{entered:l.entered,exited:!_&&"0px"===F&&l.hidden}[e]),style:Object(r.a)({minHeight:F},P),ref:H},t),a.createElement("div",{className:l.wrapper,ref:L},a.createElement("div",{className:l.wrapperInner},n)))}))}));p.muiSupportAuto=!0,t.a=Object(l.a)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(p)},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(22),s=n(136),c=n(223),l=n(40),u=n(75),d=n(82),f=n(73);function h(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var p={enter:d.b.enteringScreen,exit:d.b.leavingScreen},m=i.forwardRef((function(e,t){var n=e.children,d=e.direction,m=void 0===d?"down":d,g=e.in,b=e.onEnter,v=e.onEntered,y=e.onEntering,w=e.onExit,k=e.onExited,_=e.onExiting,O=e.style,x=e.timeout,C=void 0===x?p:x,E=e.TransitionComponent,j=void 0===E?c.a:E,S=Object(o.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),P=Object(u.a)(),T=i.useRef(null),N=i.useCallback((function(e){T.current=a.findDOMNode(e)}),[]),A=Object(l.a)(n.ref,N),M=Object(l.a)(A,t),R=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},I=R((function(e,t){h(m,e),Object(f.b)(e),b&&b(e,t)})),D=R((function(e,t){var n=Object(f.a)({timeout:C,style:O},{mode:"enter"});e.style.webkitTransition=P.transitions.create("-webkit-transform",Object(r.a)({},n,{easing:P.transitions.easing.easeOut})),e.style.transition=P.transitions.create("transform",Object(r.a)({},n,{easing:P.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)})),L=R(v),z=R(_),F=R((function(e){var t=Object(f.a)({timeout:C,style:O},{mode:"exit"});e.style.webkitTransition=P.transitions.create("-webkit-transform",Object(r.a)({},t,{easing:P.transitions.easing.sharp})),e.style.transition=P.transitions.create("transform",Object(r.a)({},t,{easing:P.transitions.easing.sharp})),h(m,e),w&&w(e)})),V=R((function(e){e.style.webkitTransition="",e.style.transition="",k&&k(e)})),B=i.useCallback((function(){T.current&&h(m,T.current)}),[m]);return i.useEffect((function(){if(!g&&"down"!==m&&"right"!==m){var e=Object(s.a)((function(){T.current&&h(m,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[m,g]),i.useEffect((function(){g||B()}),[g,B]),i.createElement(j,Object(r.a)({nodeRef:T,onEnter:I,onEntered:L,onEntering:D,onExit:F,onExited:V,onExiting:z,appear:!0,in:g,timeout:C},S),(function(e,t){return i.cloneElement(n,Object(r.a)({ref:M,style:Object(r.a)({visibility:"exited"!==e||g?void 0:"hidden"},O,n.props.style)},t))}))}));t.a=m},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(46),l=i.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,c=e.classes,l=e.className,u=e.component,d=void 0===u?"hr":u,f=e.flexItem,h=void 0!==f&&f,p=e.light,m=void 0!==p&&p,g=e.orientation,b=void 0===g?"horizontal":g,v=e.role,y=void 0===v?"hr"!==d?"separator":void 0:v,w=e.variant,k=void 0===w?"fullWidth":w,_=Object(o.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(d,Object(r.a)({className:Object(a.a)(c.root,l,"fullWidth"!==k&&c[k],s&&c.absolute,h&&c.flexItem,m&&c.light,"vertical"===b&&c.vertical),role:y,ref:t},_))}));t.a=Object(s.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(c.a)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)},function(e,t,n){"use strict";var r=n(3),o=n(1),i=n.n(o),a=n(176),s=n(222),c=n(177);t.a=function(e){var t=e.children,n=e.theme,o=Object(s.a)(),l=i.a.useMemo((function(){var e=null===o?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(o,n);return null!=e&&(e[c.a]=null!==o),e}),[n,o]);return i.a.createElement(a.a.Provider,{value:l},t)}},function(e,t,n){"use strict";var r=n(3),o=n(1),i=n(19),a={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(r.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};t.a=Object(i.a)((function(e){return{"@global":{html:a,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,o.createElement(o.Fragment,null,n)}))},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(4),a=n(1),s=n(15),c=n(19),l=n(36),u=a.forwardRef((function(e,t){var n=e.classes,i=e.className,c=e.component,u=void 0===c?"div":c,d=e.disableGutters,f=void 0!==d&&d,h=e.fixed,p=void 0!==h&&h,m=e.maxWidth,g=void 0===m?"lg":m,b=Object(o.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return a.createElement(u,Object(r.a)({className:Object(s.a)(n.root,i,p&&n.fixed,f&&n.disableGutters,!1!==g&&n["maxWidth".concat(Object(l.a)(String(g)))]),ref:t},b))}));t.a=Object(c.a)((function(e){return{root:Object(i.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(i.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(i.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(i.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(i.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(i.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(u)},function(e,t,n){"use strict";var r=n(10),o=n(4),i=n(3),a=n(6),s=n(7),c=n.n(s),l=n(5),u=n(9),d=n(1),f=n.n(d),h=n(112),p=n(69),m=n(168),g=n(110),b=n.n(g),v=n(17),y=n(64),w=n(116);var k=function(e){return null};var _=function(e){return null},O=n(8),x=n(28),C="RC_TABLE_KEY";function E(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function j(e,t){if(!t&&"number"!==typeof t)return e;for(var n=E(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;r=r[n[o]]}return r}function S(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},o=r.key,i=r.dataIndex,a=o||E(i).join("-")||C;n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function P(e){return null!==e&&void 0!==e}var T=d.createContext(!1),N=n(39),A=n(80);var M=function(){var e=d.createContext(null);return{Context:e,Provider:function(t){var n=t.value,r=t.children,o=d.useRef(n);o.current=n;var i=d.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),s=Object(a.a)(i,1)[0];return Object(N.a)((function(){s.listeners.forEach((function(e){e(n)}))}),[n]),d.createElement(e.Provider,{value:s},r)}}}(),R=d.createContext(null),I=d.createContext({renderWithProps:!1}),D=["colSpan","rowSpan","style","className"];function L(e,t){var n,i,s,u=e.prefixCls,f=e.className,h=e.record,p=e.index,m=e.renderIndex,g=e.dataIndex,b=e.render,v=e.children,y=e.component,w=void 0===y?"td":y,k=e.colSpan,_=e.rowSpan,C=e.fixLeft,E=e.fixRight,S=e.firstFixLeft,N=e.lastFixLeft,A=e.firstFixRight,M=e.lastFixRight,L=e.appendNode,z=e.additionalProps,F=void 0===z?{}:z,V=e.ellipsis,B=e.align,H=e.rowType,W=e.isSticky,U=e.hovering,K=e.onHover,Y="".concat(u,"-cell"),q=d.useContext(I),$=d.useContext(T),G=d.useContext(R).allColumnsFixedLeft,Q=d.useMemo((function(){if(P(v))return[v];var e,t=j(h,g),n=t,o=void 0;if(b){var i=b(t,h,m);!(e=i)||"object"!==Object(r.a)(e)||Array.isArray(e)||d.isValidElement(e)?n=i:(n=i.children,o=i.props,q.renderWithProps=!0)}return[n,o]}),[q.renderWithProps?Math.random():0,v,g,q,h,b,m]),X=Object(a.a)(Q,2),J=X[0],Z=X[1],ee=J;"object"!==Object(r.a)(ee)||Array.isArray(ee)||d.isValidElement(ee)||(ee=null),V&&(N||A)&&(ee=d.createElement("span",{className:"".concat(Y,"-content")},ee));var te=Z||{},ne=te.colSpan,re=te.rowSpan,oe=te.style,ie=te.className,ae=Object(O.a)(te,D),se=null!==(n=void 0!==ne?ne:k)&&void 0!==n?n:1,ce=null!==(i=void 0!==re?re:_)&&void 0!==i?i:1;if(0===se||0===ce)return null;var le={},ue="number"===typeof C&&$,de="number"===typeof E&&$;ue&&(le.position="sticky",le.left=C),de&&(le.position="sticky",le.right=E);var fe={};B&&(fe.textAlign=B);var he,pe=function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"===typeof o||"number"===typeof o?t=o.toString():d.isValidElement(o)&&"string"===typeof o.props.children&&(t=o.props.children)),t}({rowType:H,ellipsis:V,children:J}),me=Object(l.a)(Object(l.a)(Object(l.a)({title:pe},ae),F),{},{colSpan:1!==se?se:null,rowSpan:1!==ce?ce:null,className:c()(Y,f,(s={},Object(o.a)(s,"".concat(Y,"-fix-left"),ue&&$),Object(o.a)(s,"".concat(Y,"-fix-left-first"),S&&$),Object(o.a)(s,"".concat(Y,"-fix-left-last"),N&&$),Object(o.a)(s,"".concat(Y,"-fix-left-all"),N&&G&&$),Object(o.a)(s,"".concat(Y,"-fix-right"),de&&$),Object(o.a)(s,"".concat(Y,"-fix-right-first"),A&&$),Object(o.a)(s,"".concat(Y,"-fix-right-last"),M&&$),Object(o.a)(s,"".concat(Y,"-ellipsis"),V),Object(o.a)(s,"".concat(Y,"-with-append"),L),Object(o.a)(s,"".concat(Y,"-fix-sticky"),(ue||de)&&W&&$),Object(o.a)(s,"".concat(Y,"-row-hover"),!Z&&U),s),F.className,ie),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},F.style),fe),le),oe),onMouseEnter:function(e){var t;h&&K(p,p+ce-1),null===F||void 0===F||null===(t=F.onMouseEnter)||void 0===t||t.call(F,e)},onMouseLeave:function(e){var t;h&&K(-1,-1),null===F||void 0===F||null===(t=F.onMouseLeave)||void 0===t||t.call(F,e)},ref:(he=w,"string"===typeof he||Object(x.c)(he)?t:null)});return d.createElement(w,me,L,ee)}var z=d.forwardRef(L);z.displayName="Cell";var F=["expanded","className","hovering"],V=d.memo(z,(function(e,t){return t.shouldCellUpdate?F.every((function(n){return e[n]===t[n]}))&&!t.shouldCellUpdate(t.record,e.record):b()(e,t)})),B=d.forwardRef((function(e,t){var n=e.index,r=e.additionalProps,o=void 0===r?{}:r,s=e.colSpan,c=e.rowSpan,l=o.colSpan,u=o.rowSpan,f=null!==s&&void 0!==s?s:l,h=null!==c&&void 0!==c?c:u,p=function(e,t){var n=Object(A.a)(t),r=d.useContext(null===e||void 0===e?void 0:e.Context),o=r||{},i=o.listeners,s=o.getValue,c=d.useState((function(){return n(r?s():null)})),l=Object(a.a)(c,2),u=l[0],f=l[1];return Object(N.a)((function(){if(r)return i.add(e),function(){i.delete(e)};function e(e){f((function(t){var r=n(e);return b()(t,r)?t:r}))}}),[r]),u}(M,(function(e){var t=function(e,t,n,r){return e<=r&&e+t-1>=n}(n,h||1,null===e||void 0===e?void 0:e.startRow,null===e||void 0===e?void 0:e.endRow);return{onHover:null===e||void 0===e?void 0:e.onHover,hovering:t}})),m=p.onHover,g=p.hovering;return d.createElement(V,Object(i.a)({},e,{colSpan:f,rowSpan:h,hovering:g,ref:t,onHover:m}))}));B.displayName="WrappedCell";var H=B,W=d.createContext(null);function U(e,t,n,r,o){var i,a,s=n[e]||{},c=n[t]||{};"left"===s.fixed?i=r.left[e]:"right"===c.fixed&&(a=r.right[t]);var l=!1,u=!1,d=!1,f=!1,h=n[t+1],p=n[e-1];if("rtl"===o){if(void 0!==i)f=!(p&&"left"===p.fixed);else if(void 0!==a){d=!(h&&"right"===h.fixed)}}else if(void 0!==i){l=!(h&&"left"===h.fixed)}else if(void 0!==a){u=!(p&&"right"===p.fixed)}return{fixLeft:i,fixRight:a,lastFixLeft:l,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function K(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,s=e.cellComponent,c=e.onHeaderRow,l=e.index,u=d.useContext(W),f=u.prefixCls,h=u.direction;c&&(t=c(n.map((function(e){return e.column})),l));var p=S(n.map((function(e){return e.column})));return d.createElement(a,t,n.map((function(e,t){var n,a=e.column,c=U(e.colStart,e.colEnd,o,r,h);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),d.createElement(H,Object(i.a)({},e,{ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:f,key:p[t]},c,{additionalProps:n,rowType:"header"}))})))}K.displayName="HeaderRow";var Y=K;var q=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=d.useContext(W),a=i.prefixCls,s=i.getComponent,c=d.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,s=n.children;return s&&s.length>0&&(a=e(s,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),l=s(["header","wrapper"],"thead"),u=s(["header","row"],"tr"),f=s(["header","cell"],"th");return d.createElement(l,{className:"".concat(a,"-thead")},c.map((function(e,n){return d.createElement(Y,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:f,onHeaderRow:o,index:n})})))},$=d.createContext(null);var G=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,s=e.colSpan,c=e.isEmpty,l=d.useContext(W).scrollbarSize,u=d.useContext($),f=u.fixHeader,h=u.fixColumn,p=u.componentWidth,m=u.horizonScroll;return d.useMemo((function(){var e=n;return(c?m:h)&&(e=d.createElement("div",{style:{width:p-(f?l:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==p&&e)),d.createElement(r,{className:i,style:{display:a?null:"none"}},d.createElement(H,{component:o,prefixCls:t,colSpan:s},e))}),[n,r,i,a,s,c,l,p,h,f,m])},Q=d.createContext(null);function X(e){var t=e.className,n=e.style,r=e.record,o=e.index,s=e.renderIndex,u=e.rowKey,f=e.rowExpandable,h=e.expandedKeys,p=e.onRow,m=e.indent,g=void 0===m?0:m,b=e.rowComponent,v=e.cellComponent,y=e.childrenColumnName,w=d.useContext(W),k=w.prefixCls,_=w.fixedInfoList,O=d.useContext(R),x=O.flattenColumns,C=O.expandableType,E=O.expandRowByClick,j=O.onTriggerExpand,P=O.rowClassName,T=O.expandedRowClassName,N=O.indentSize,A=O.expandIcon,M=O.expandedRowRender,I=O.expandIconColumnIndex,D=d.useState(!1),L=Object(a.a)(D,2),z=L[0],F=L[1],V=h&&h.has(e.recordKey);d.useEffect((function(){V&&F(!0)}),[V]);var B="row"===C&&(!f||f(r)),U="nest"===C,K=y&&r&&r[y],Y=B||U,q=d.useRef(j);q.current=j;var $,Q=function(){q.current.apply(q,arguments)},X=null===p||void 0===p?void 0:p(r,o);"string"===typeof P?$=P:"function"===typeof P&&($=P(r,o,g));var J,Z=S(x),ee=d.createElement(b,Object(i.a)({},X,{"data-row-key":u,className:c()(t,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(g),$,X&&X.className),style:Object(l.a)(Object(l.a)({},n),X?X.style:null),onClick:function(e){var t;E&&Y&&Q(r,e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null===X||void 0===X||null===(t=X.onClick)||void 0===t||t.call.apply(t,[X,e].concat(o))}}),x.map((function(e,t){var n,a,c=e.render,l=e.dataIndex,u=e.className,f=Z[t],h=_[t];return t===(I||0)&&U&&(n=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(N*g,"px")},className:"".concat(k,"-row-indent indent-level-").concat(g)}),A({prefixCls:k,expanded:V,expandable:K,record:r,onExpand:Q}))),e.onCell&&(a=e.onCell(r,o)),d.createElement(H,Object(i.a)({className:u,ellipsis:e.ellipsis,align:e.align,component:v,prefixCls:k,key:f,record:r,index:o,renderIndex:s,dataIndex:l,render:c,shouldCellUpdate:e.shouldCellUpdate,expanded:n&&V},h,{appendNode:n,additionalProps:a}))})));if(B&&(z||V)){var te=M(r,o,g+1,V),ne=T&&T(r,o,g);J=d.createElement(G,{expanded:V,className:c()("".concat(k,"-expanded-row"),"".concat(k,"-expanded-row-level-").concat(g+1),ne),prefixCls:k,component:b,cellComponent:v,colSpan:x.length,isEmpty:!1},te)}return d.createElement(d.Fragment,null,ee,J)}X.displayName="BodyRow";var J=X;function Z(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var s=o(e),c=null===r||void 0===r?void 0:r.has(s);if(e&&Array.isArray(e[n])&&c)for(var l=0;l<e[n].length;l+=1){var d=Z(e[n][l],t+1,n,r,o,l);a.push.apply(a,Object(u.a)(d))}return a}function ee(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),d.createElement(y.a,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function te(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(y.a.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return d.createElement(ee,{key:e,columnKey:e,onColumnResize:r})}))))}function ne(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,i=e.onRow,s=e.rowExpandable,c=e.emptyNode,l=e.childrenColumnName,f=d.useContext(Q).onColumnResize,h=d.useContext(W),p=h.prefixCls,m=h.getComponent,g=d.useContext(R).flattenColumns,b=function(e,t,n,r){return d.useMemo((function(){if(null===n||void 0===n?void 0:n.size){for(var o=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){var a=e[i];o.push.apply(o,Object(u.a)(Z(a,0,t,n,r,i)))}return o}return null===e||void 0===e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r])}(t,l,o,n),v=d.useRef({renderWithProps:!1}),y=d.useState(-1),w=Object(a.a)(y,2),k=w[0],_=w[1],O=d.useState(-1),x=Object(a.a)(O,2),C=x[0],E=x[1],j=d.useCallback((function(e,t){_(e),E(t)}),[]),P=d.useMemo((function(){var e,a=m(["body","wrapper"],"tbody"),u=m(["body","row"],"tr"),h=m(["body","cell"],"td");e=t.length?b.map((function(e,t){var r=e.record,a=e.indent,c=e.index,f=n(r,t);return d.createElement(J,{key:f,rowKey:f,record:r,recordKey:f,index:t,renderIndex:c,rowComponent:u,cellComponent:h,expandedKeys:o,onRow:i,getRowKey:n,rowExpandable:s,childrenColumnName:l,indent:a})})):d.createElement(G,{expanded:!0,className:"".concat(p,"-placeholder"),prefixCls:p,component:u,cellComponent:h,colSpan:g.length,isEmpty:!0},c);var v=S(g);return d.createElement(a,{className:"".concat(p,"-tbody")},r&&d.createElement(te,{prefixCls:p,columnsKey:v,onColumnResize:f}),e)}),[t,p,i,r,o,n,m,c,g,l,f,s,b]);return d.createElement(I.Provider,{value:v.current},d.createElement(M.Provider,{value:{startRow:k,endRow:C,onHover:j}},P))}var re=d.memo(ne);re.displayName="Body";var oe=re,ie=n(51),ae=["expandable"],se="RC_TABLE_INTERNAL_COL_DEFINE";var ce={},le=["children"],ue=["fixed"];function de(e){return Object(ie.a)(e).filter((function(e){return d.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=Object(O.a)(n,le),i=Object(l.a)({key:t},o);return r&&(i.children=de(r)),i}))}function fe(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat(Object(u.a)(e),Object(u.a)(fe(o).map((function(e){return Object(l.a)({fixed:r},e)})))):[].concat(Object(u.a)(e),[Object(l.a)(Object(l.a)({},t),{},{fixed:r})])}),[])}var he=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,s=e.expandedKeys,c=e.columnTitle,u=e.getRowKey,f=e.onTriggerExpand,h=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,b=e.expandRowByClick,v=e.columnWidth,y=e.fixed,w=d.useMemo((function(){return r||de(i)}),[r,i]),k=d.useMemo((function(){if(a){var e,t=w.slice();if(!t.includes(ce)){var r=m||0;r>=0&&t.splice(r,0,ce)}0;var i=t.indexOf(ce);t=t.filter((function(e,t){return e!==ce||t===i}));var l,g=w[i];l="left"!==y&&!y||m?"right"!==y&&!y||m!==w.length?g?g.fixed:null:"right":"left";var k=(e={},Object(o.a)(e,se,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Object(o.a)(e,"title",c),Object(o.a)(e,"fixed",l),Object(o.a)(e,"className","".concat(n,"-row-expand-icon-cell")),Object(o.a)(e,"width",v),Object(o.a)(e,"render",(function(e,t,r){var o=u(t,r),i=s.has(o),a=!p||p(t),c=h({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:f});return b?d.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e);return t.map((function(e){return e===ce?k:e}))}return w.filter((function(e){return e!==ce}))}),[a,w,u,s,h,g]),_=d.useMemo((function(){var e=k;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,k,g]),x=d.useMemo((function(){return"rtl"===g?function(e){return e.map((function(e){var t=e.fixed,n=Object(O.a)(e,ue),r=t;return"left"===t?r="right":"right"===t&&(r="left"),Object(l.a)({fixed:r},n)}))}(fe(_)):fe(_)}),[_,g]);return[_,x]};function pe(e){var t=Object(d.useRef)(e),n=Object(d.useState)({}),r=Object(a.a)(n,2)[1],o=Object(d.useRef)(null),i=Object(d.useRef)([]);return Object(d.useEffect)((function(){return function(){o.current=null}}),[]),[t.current,function(e){i.current.push(e);var n=Promise.resolve();o.current=n,n.then((function(){if(o.current===n){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&r({})}}))}]}var me=function(e,t,n){return Object(d.useMemo)((function(){for(var r=[],o=[],i=0,a=0,s=0;s<t;s+=1)if("rtl"===n){o[s]=a,a+=e[s]||0;var c=t-s-1;r[c]=i,i+=e[c]||0}else{r[s]=i,i+=e[s]||0;var l=t-s-1;o[l]=a,a+=e[l]||0}return{left:r,right:o}}),[e,t,n])},ge=["columnType"];var be=function(e){for(var t=e.colWidths,n=e.columns,r=[],o=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var s=t[a],c=n&&n[a],l=c&&c[se];if(s||l||o){var u=l||{},f=(u.columnType,Object(O.a)(u,ge));r.unshift(d.createElement("col",Object(i.a)({key:a,style:{width:s}},f))),o=!0}}return d.createElement("colgroup",null,r)};var ve=function(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)},ye=d.createContext({});var we=["children"];function ke(e){return e.children}ke.Row=function(e){var t=e.children,n=Object(O.a)(e,we);return d.createElement("tr",n,t)},ke.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,s=e.rowSpan,c=e.align,l=d.useContext(W),u=l.prefixCls,f=l.direction,h=d.useContext(ye),p=h.scrollColumnIndex,m=h.stickyOffsets,g=n+a-1+1===p?a+1:a,b=U(n,n+g-1,h.flattenColumns,m,f);return d.createElement(H,Object(i.a)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:g,rowSpan:s,render:function(){return r}},b))};var _e=ke;var Oe=function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=d.useContext(W).prefixCls,i=r.length-1,a=r[i],s=d.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null===a||void 0===a?void 0:a.scrollbar)?i:null}}),[a,r,i,n]);return d.createElement(ye.Provider,{value:s},d.createElement("tfoot",{className:"".concat(o,"-summary")},t))},xe=_e;function Ce(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,s=e.expandable,l="".concat(n,"-row-expand-icon");if(!s)return d.createElement("span",{className:c()(l,"".concat(n,"-row-spaced"))});return d.createElement("span",{className:c()(l,(t={},Object(o.a)(t,"".concat(n,"-row-expanded"),a),Object(o.a)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}var Ee=n(89),je=n(216),Se=function(e,t){var n,r,i=e.scrollBodyRef,s=e.onScroll,u=e.offsetScroll,f=e.container,h=d.useContext(W).prefixCls,p=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,g=p&&m*(m/p),b=d.useRef(),v=pe({scrollLeft:0,isHiddenScrollBar:!1}),y=Object(a.a)(v,2),k=y[0],_=y[1],O=d.useRef({delta:0,x:0}),x=d.useState(!1),C=Object(a.a)(x,2),E=C[0],j=C[1],S=function(){j(!1)},P=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(E&&0!==n){var r=O.current.x+e.pageX-O.current.x-O.current.delta;r<=0&&(r=0),r+g>=m&&(r=m-g),s({scrollLeft:r/m*(p+2)}),O.current.x=e.pageX}else E&&j(!1)},T=function(){if(i.current){var e=Object(je.a)(i.current).top,t=e+i.current.offsetHeight,n=f===window?document.documentElement.scrollTop+window.innerHeight:Object(je.a)(f).top+f.clientHeight;t-Object(w.a)()<=n||e>=n-u?_((function(e){return Object(l.a)(Object(l.a)({},e),{},{isHiddenScrollBar:!0})})):_((function(e){return Object(l.a)(Object(l.a)({},e),{},{isHiddenScrollBar:!1})}))}},N=function(e){_((function(t){return Object(l.a)(Object(l.a)({},t),{},{scrollLeft:e/p*m||0})}))};return d.useImperativeHandle(t,(function(){return{setScrollLeft:N}})),d.useEffect((function(){var e=Object(Ee.a)(document.body,"mouseup",S,!1),t=Object(Ee.a)(document.body,"mousemove",P,!1);return T(),function(){e.remove(),t.remove()}}),[g,E]),d.useEffect((function(){var e=Object(Ee.a)(f,"scroll",T,!1),t=Object(Ee.a)(window,"resize",T,!1);return function(){e.remove(),t.remove()}}),[f]),d.useEffect((function(){k.isHiddenScrollBar||_((function(e){var t=i.current;return t?Object(l.a)(Object(l.a)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[k.isHiddenScrollBar]),p<=m||!g||k.isHiddenScrollBar?null:d.createElement("div",{style:{height:Object(w.a)(),width:m,bottom:u},className:"".concat(h,"-sticky-scroll")},d.createElement("div",{onMouseDown:function(e){e.persist(),O.current.delta=e.pageX-k.scrollLeft,O.current.x=0,j(!0),e.preventDefault()},ref:b,className:c()("".concat(h,"-sticky-scroll-bar"),Object(o.a)({},"".concat(h,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(k.scrollLeft,"px, 0, 0)")}}))},Pe=d.forwardRef(Se),Te=n(47),Ne=Object(Te.a)()?window:null;var Ae=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Me=d.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,s=e.colWidths,f=e.columCount,h=e.stickyOffsets,p=e.direction,m=e.fixHeader,g=e.stickyTopOffset,b=e.stickyBottomOffset,v=e.stickyClassName,y=e.onScroll,w=e.maxContentScroll,k=e.children,_=Object(O.a)(e,Ae),C=d.useContext(W),E=C.prefixCls,j=C.scrollbarSize,S=C.isSticky,P=S&&!m?0:j,T=d.useRef(null),N=d.useCallback((function(e){Object(x.b)(t,e),Object(x.b)(T,e)}),[]);d.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(y({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=T.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=T.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var A=d.useMemo((function(){return a.every((function(e){return e.width>=0}))}),[a]),M=a[a.length-1],R={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},I=Object(d.useMemo)((function(){return P?[].concat(Object(u.a)(i),[R]):i}),[P,i]),D=Object(d.useMemo)((function(){return P?[].concat(Object(u.a)(a),[R]):a}),[P,a]),L=Object(d.useMemo)((function(){var e=h.right,t=h.left;return Object(l.a)(Object(l.a)({},h),{},{left:"rtl"===p?[].concat(Object(u.a)(t.map((function(e){return e+P}))),[0]):t,right:"rtl"===p?e:[].concat(Object(u.a)(e.map((function(e){return e+P}))),[0]),isSticky:S})}),[P,h,S]),z=function(e,t){return Object(d.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n}),[e.join("_"),t])}(s,f);return d.createElement("div",{style:Object(l.a)({overflow:"hidden"},S?{top:g,bottom:b}:{}),ref:N,className:c()(n,Object(o.a)({},v,!!v))},d.createElement("table",{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!w||A)&&d.createElement(be,{colWidths:z?[].concat(Object(u.a)(z),[P]):[],columCount:f+1,columns:D}),k(Object(l.a)(Object(l.a)({},_),{},{stickyOffsets:L,columns:I,flattenColumns:D}))))}));Me.displayName="FixedHolder";var Re=Me,Ie=[],De={},Le="rc-table-internal-hook",ze=d.memo((function(e){return e.children}),(function(e,t){return!!b()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function Fe(e){var t,n=e.prefixCls,s=e.className,f=e.rowClassName,g=e.style,b=e.data,k=e.rowKey,_=e.scroll,x=e.tableLayout,C=e.direction,E=e.title,N=e.footer,A=e.summary,M=e.id,I=e.showHeader,D=e.components,L=e.emptyText,z=e.onRow,F=e.onHeaderRow,V=e.internalHooks,B=e.transformColumns,H=e.internalRefs,K=e.sticky,Y=b||Ie,G=!!Y.length;var X=d.useCallback((function(e,t){return j(D||{},e)||t}),[D]),J=d.useMemo((function(){return"function"===typeof k?k:function(e){return e&&e[k]}}),[k]),Z=function(e){var t,n=e.expandable,r=Object(O.a)(e,ae);return!1===(t="expandable"in e?Object(l.a)(Object(l.a)({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),ee=Z.expandIcon,te=Z.expandedRowKeys,ne=Z.defaultExpandedRowKeys,re=Z.defaultExpandAllRows,ie=Z.expandedRowRender,se=Z.columnTitle,ce=Z.onExpand,le=Z.onExpandedRowsChange,ue=Z.expandRowByClick,de=Z.rowExpandable,fe=Z.expandIconColumnIndex,ge=Z.expandedRowClassName,ye=Z.childrenColumnName,we=Z.indentSize,ke=ee||Ce,xe=ye||"children",Ee=d.useMemo((function(){return ie?"row":!!(e.expandable&&V===Le&&e.expandable.__PARENT_RENDER_ICON__||Y.some((function(e){return e&&"object"===Object(r.a)(e)&&e[xe]})))&&"nest"}),[!!ie,Y]),je=d.useState((function(){return ne||(re?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(Y,J,xe):[])})),Se=Object(a.a)(je,2),Te=Se[0],Ae=Se[1],Me=d.useMemo((function(){return new Set(te||Te||[])}),[te,Te]),Fe=d.useCallback((function(e){var t,n=J(e,Y.indexOf(e)),r=Me.has(n);r?(Me.delete(n),t=Object(u.a)(Me)):t=[].concat(Object(u.a)(Me),[n]),Ae(t),ce&&ce(!r,e),le&&le(t)}),[J,Me,Y,ce,le]);var Ve,Be,He,We=d.useState(0),Ue=Object(a.a)(We,2),Ke=Ue[0],Ye=Ue[1],qe=he(Object(l.a)(Object(l.a)(Object(l.a)({},e),Z),{},{expandable:!!ie,columnTitle:se,expandedKeys:Me,getRowKey:J,onTriggerExpand:Fe,expandIcon:ke,expandIconColumnIndex:fe,direction:C}),V===Le?B:null),$e=Object(a.a)(qe,2),Ge=$e[0],Qe=$e[1],Xe=d.useMemo((function(){return{columns:Ge,flattenColumns:Qe}}),[Ge,Qe]),Je=d.useRef(),Ze=d.useRef(),et=d.useRef(),tt=d.useRef(),nt=d.useRef(),rt=d.useState(!1),ot=Object(a.a)(rt,2),it=ot[0],at=ot[1],st=d.useState(!1),ct=Object(a.a)(st,2),lt=ct[0],ut=ct[1],dt=pe(new Map),ft=Object(a.a)(dt,2),ht=ft[0],pt=ft[1],mt=S(Qe).map((function(e){return ht.get(e)})),gt=d.useMemo((function(){return mt}),[mt.join("_")]),bt=me(gt,Qe.length,C),vt=_&&P(_.y),yt=_&&P(_.x)||Boolean(Z.fixed),wt=yt&&Qe.some((function(e){return e.fixed})),kt=d.useRef(),_t=function(e,t){var n="object"===Object(r.a)(e)?e:{},o=n.offsetHeader,i=void 0===o?0:o,a=n.offsetSummary,s=void 0===a?0:a,c=n.offsetScroll,l=void 0===c?0:c,u=n.getContainer,f=(void 0===u?function(){return Ne}:u)()||Ne;return d.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:s,offsetScroll:l,container:f}}),[l,i,s,t,f])}(K,n),Ot=_t.isSticky,xt=_t.offsetHeader,Ct=_t.offsetSummary,Et=_t.offsetScroll,jt=_t.stickyClassName,St=_t.container,Pt=null===A||void 0===A?void 0:A(Y),Tt=(vt||Ot)&&d.isValidElement(Pt)&&Pt.type===_e&&Pt.props.fixed;vt&&(Be={overflowY:"scroll",maxHeight:_.y}),yt&&(Ve={overflowX:"auto"},vt||(Be={overflowY:"hidden"}),He={width:!0===(null===_||void 0===_?void 0:_.x)?"auto":null===_||void 0===_?void 0:_.x,minWidth:"100%"});var Nt=d.useCallback((function(e,t){Object(h.a)(Je.current)&&pt((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),At=function(e){var t=Object(d.useRef)(e||null),n=Object(d.useRef)();function r(){window.clearTimeout(n.current)}return Object(d.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Mt=Object(a.a)(At,2),Rt=Mt[0],It=Mt[1];function Dt(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var Lt=function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===C,i="number"===typeof r?r:n.scrollLeft,a=n||De;It()&&It()!==a||(Rt(a),Dt(i,Ze.current),Dt(i,et.current),Dt(i,nt.current),Dt(i,null===(t=kt.current)||void 0===t?void 0:t.setScrollLeft));if(n){var s=n.scrollWidth,c=n.clientWidth;if(s===c)return at(!1),void ut(!1);o?(at(-i<s-c),ut(-i>0)):(at(i>0),ut(i<s-c))}},zt=function(){yt&&et.current?Lt({currentTarget:et.current}):(at(!1),ut(!1))},Ft=d.useRef(!1);d.useEffect((function(){Ft.current&&zt()}),[yt,b,Ge.length]),d.useEffect((function(){Ft.current=!0}),[]);var Vt=d.useState(0),Bt=Object(a.a)(Vt,2),Ht=Bt[0],Wt=Bt[1],Ut=d.useState(!0),Kt=Object(a.a)(Ut,2),Yt=Kt[0],qt=Kt[1];d.useEffect((function(){et.current instanceof Element?Wt(Object(w.b)(et.current).width):Wt(Object(w.b)(tt.current).width),qt(Object(m.a)("position","sticky"))}),[]),d.useEffect((function(){V===Le&&H&&(H.body.current=et.current)}));var $t,Gt=X(["table"],"table"),Qt=d.useMemo((function(){return x||(wt?"max-content"===(null===_||void 0===_?void 0:_.x)?"auto":"fixed":vt||Ot||Qe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[vt,wt,Qe,x,Ot]),Xt={colWidths:gt,columCount:Qe.length,stickyOffsets:bt,onHeaderRow:F,fixHeader:vt,scroll:_},Jt=d.useMemo((function(){return G?null:"function"===typeof L?L():L}),[G,L]),Zt=d.createElement(oe,{data:Y,measureColumnWidth:vt||yt||Ot,expandedKeys:Me,rowExpandable:de,getRowKey:J,onRow:z,emptyNode:Jt,childrenColumnName:xe}),en=d.createElement(be,{colWidths:Qe.map((function(e){return e.width})),columns:Qe}),tn=X(["body"]);if(vt||Ot){var nn;"function"===typeof tn?(nn=tn(Y,{scrollbarSize:Ht,ref:et,onScroll:Lt}),Xt.colWidths=Qe.map((function(e,t){var n=e.width,r=t===Ge.length-1?n-Ht:n;return"number"!==typeof r||Number.isNaN(r)?(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):nn=d.createElement("div",{style:Object(l.a)(Object(l.a)({},Ve),Be),onScroll:Lt,ref:et,className:c()("".concat(n,"-body"))},d.createElement(Gt,{style:Object(l.a)(Object(l.a)({},He),{},{tableLayout:Qt})},en,Zt,!Tt&&Pt&&d.createElement(Oe,{stickyOffsets:bt,flattenColumns:Qe},Pt)));var rn=Object(l.a)(Object(l.a)(Object(l.a)({noData:!Y.length,maxContentScroll:yt&&"max-content"===_.x},Xt),Xe),{},{direction:C,stickyClassName:jt,onScroll:Lt});$t=d.createElement(d.Fragment,null,!1!==I&&d.createElement(Re,Object(i.a)({},rn,{stickyTopOffset:xt,className:"".concat(n,"-header"),ref:Ze}),(function(e){return d.createElement(d.Fragment,null,d.createElement(q,e),"top"===Tt&&d.createElement(Oe,e,Pt))})),nn,Tt&&"top"!==Tt&&d.createElement(Re,Object(i.a)({},rn,{stickyBottomOffset:Ct,className:"".concat(n,"-summary"),ref:nt}),(function(e){return d.createElement(Oe,e,Pt)})),Ot&&d.createElement(Pe,{ref:kt,offsetScroll:Et,scrollBodyRef:et,onScroll:Lt,container:St}))}else $t=d.createElement("div",{style:Object(l.a)(Object(l.a)({},Ve),Be),className:c()("".concat(n,"-content")),onScroll:Lt,ref:et},d.createElement(Gt,{style:Object(l.a)(Object(l.a)({},He),{},{tableLayout:Qt})},en,!1!==I&&d.createElement(q,Object(i.a)({},Xt,Xe)),Zt,Pt&&d.createElement(Oe,{stickyOffsets:bt,flattenColumns:Qe},Pt)));var on=Object(p.a)(e,{aria:!0,data:!0}),an=d.createElement("div",Object(i.a)({className:c()(n,s,(t={},Object(o.a)(t,"".concat(n,"-rtl"),"rtl"===C),Object(o.a)(t,"".concat(n,"-ping-left"),it),Object(o.a)(t,"".concat(n,"-ping-right"),lt),Object(o.a)(t,"".concat(n,"-layout-fixed"),"fixed"===x),Object(o.a)(t,"".concat(n,"-fixed-header"),vt),Object(o.a)(t,"".concat(n,"-fixed-column"),wt),Object(o.a)(t,"".concat(n,"-scroll-horizontal"),yt),Object(o.a)(t,"".concat(n,"-has-fix-left"),Qe[0]&&Qe[0].fixed),Object(o.a)(t,"".concat(n,"-has-fix-right"),Qe[Qe.length-1]&&"right"===Qe[Qe.length-1].fixed),t)),style:g,id:M,ref:Je},on),d.createElement(ze,{pingLeft:it,pingRight:lt,props:Object(l.a)(Object(l.a)({},e),{},{stickyOffsets:bt,mergedExpandedKeys:Me})},E&&d.createElement(ve,{className:"".concat(n,"-title")},E(Y)),d.createElement("div",{ref:tt,className:"".concat(n,"-container")},$t),N&&d.createElement(ve,{className:"".concat(n,"-footer")},N(Y))));yt&&(an=d.createElement(y.a,{onResize:function(e){var t=e.width;t!==Ke&&(zt(),Ye(Je.current?Je.current.offsetWidth:t))}},an));var sn=d.useMemo((function(){return{prefixCls:n,getComponent:X,scrollbarSize:Ht,direction:C,fixedInfoList:Qe.map((function(e,t){return U(t,t,Qe,bt,C)})),isSticky:Ot}}),[n,X,Ht,C,Qe,bt,Ot]),cn=d.useMemo((function(){return Object(l.a)(Object(l.a)({},Xe),{},{tableLayout:Qt,rowClassName:f,expandedRowClassName:ge,expandIcon:ke,expandableType:Ee,expandRowByClick:ue,expandedRowRender:ie,onTriggerExpand:Fe,expandIconColumnIndex:fe,indentSize:we,allColumnsFixedLeft:Xe.flattenColumns.every((function(e){return"left"===e.fixed}))})}),[Xe,Qt,f,ge,ke,Ee,ue,ie,Fe,fe,we]),ln=d.useMemo((function(){return{componentWidth:Ke,fixHeader:vt,fixColumn:wt,horizonScroll:yt}}),[Ke,vt,wt,yt]),un=d.useMemo((function(){return{onColumnResize:Nt}}),[Nt]);return d.createElement(T.Provider,{value:Yt},d.createElement(W.Provider,{value:sn},d.createElement(R.Provider,{value:cn},d.createElement($.Provider,{value:ln},d.createElement(Q.Provider,{value:un},an)))))}Fe.EXPAND_COLUMN=ce,Fe.Column=_,Fe.ColumnGroup=k,Fe.Summary=xe,Fe.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Ve=Fe,Be=n(32),He=n(66),We=n(187),Ue=n(49),Ke=n(129),Ye=n(81).a,qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},$e=n(18),Ge=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:qe}))};Ge.displayName="DoubleLeftOutlined";var Qe=d.forwardRef(Ge),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Je=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:Xe}))};Je.displayName="DoubleRightOutlined";var Ze=d.forwardRef(Je),et=n(154),tt=n(121),nt=n(27),rt=n(25),ot=n(37),it=n(38),at=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=c()(n,"".concat(n,"-").concat(e.page),(t={},Object(o.a)(t,"".concat(n,"-active"),e.active),Object(o.a)(t,"".concat(n,"-disabled"),!e.page),Object(o.a)(t,e.className,!!e.className),t));return f.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",f.a.createElement("a",{rel:"nofollow"},e.page)))},st=13,ct=38,lt=40,ut=function(e){Object(ot.a)(n,e);var t=Object(it.a)(n);function n(){var e;Object(nt.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,o=n.quickGo,i=n.rootPrefixCls,a=e.state.goInputText;r||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==st&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(rt.a)(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,a=t.quickGo,s=t.goButton,c=t.selectComponentClass,l=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,h=this.state.goInputText,p="".concat(o,"-options"),m=c,g=null,b=null,v=null;if(!i&&!a)return null;var y=this.getPageSizeOptions();if(i&&m){var w=y.map((function(t,n){return f.a.createElement(m.Option,{key:n,value:t.toString()},(l||e.buildOptionText)(t))}));g=f.a.createElement(m,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},w)}return a&&(s&&(v="boolean"===typeof s?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(p,"-quick-jumper-button")},r.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),b=f.a.createElement("div",{className:"".concat(p,"-quick-jumper")},r.jump_to,f.a.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),f.a.createElement("li",{className:"".concat(p)},g,b)}}]),n}(f.a.Component);ut.defaultProps={pageSizeOptions:["10","20","50","100"]};var dt=ut;function ft(){}function ht(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function pt(e,t,n){var r="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var mt=function(e){Object(ot.a)(n,e);var t=Object(it.a)(n);function n(e){var r;Object(nt.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(pt(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||f.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(o=f.a.createElement(e,Object(l.a)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var t=r.props.total;return ht(e)&&e!==r.state.current&&ht(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==ct&&e.keyCode!==lt||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===st?r.handleChange(t):e.keyCode===ct?r.handleChange(t-1):e.keyCode===lt&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=pt(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,s=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var l=pt(void 0,r.state,r.props),u=e;return e>l?u=l:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return s},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<pt(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==st&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var o=e.onChange!==ft;"current"in e&&!o&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var i=e.defaultCurrent;"current"in e&&(i=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),i=Math.min(i,pt(a,void 0,e)),r.state={current:i,currentInputValue:i,pageSize:a},r}return Object(rt.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=pt(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(d.isValidElement)(r)?Object(d.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(d.isValidElement)(r)?Object(d.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,a=t.style,s=t.disabled,l=t.hideOnSinglePage,u=t.total,h=t.locale,p=t.showQuickJumper,m=t.showLessItems,g=t.showTitle,b=t.showTotal,v=t.simple,y=t.itemRender,w=t.showPrevNextJumpers,k=t.jumpPrevIcon,_=t.jumpNextIcon,O=t.selectComponentClass,x=t.selectPrefixCls,C=t.pageSizeOptions,E=this.state,j=E.current,S=E.pageSize,P=E.currentInputValue;if(!0===l&&u<=S)return null;var T=pt(void 0,this.state,this.props),N=[],A=null,M=null,R=null,I=null,D=null,L=p&&p.goButton,z=m?1:2,F=j-1>0?j-1:0,V=j+1<T?j+1:T,B=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),H=b&&f.a.createElement("li",{className:"".concat(n,"-total-text")},b(u,[0===u?0:(j-1)*S+1,j*S>u?u:j*S]));if(v)return L&&(D="boolean"===typeof L?f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},h.jump_to_confirm):f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},L),D=f.a.createElement("li",{title:g?"".concat(h.jump_to).concat(j,"/").concat(T):null,className:"".concat(n,"-simple-pager")},D)),f.a.createElement("ul",Object(i.a)({className:c()(n,"".concat(n,"-simple"),Object(o.a)({},"".concat(n,"-disabled"),s),r),style:a,ref:this.savePaginationNode},B),H,f.a.createElement("li",{title:g?h.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:c()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(F)),f.a.createElement("li",{title:g?"".concat(j,"/").concat(T):null,className:"".concat(n,"-simple-pager")},f.a.createElement("input",{type:"text",value:P,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),f.a.createElement("span",{className:"".concat(n,"-slash")},"/"),T),f.a.createElement("li",{title:g?h.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:c()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),D);if(T<=3+2*z){var W={locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};T||N.push(f.a.createElement(at,Object(i.a)({},W,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var U=1;U<=T;U+=1){var K=j===U;N.push(f.a.createElement(at,Object(i.a)({},W,{key:U,page:U,active:K})))}}else{var Y=m?h.prev_3:h.prev_5,q=m?h.next_3:h.next_5;w&&(A=f.a.createElement("li",{title:g?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:c()("".concat(n,"-jump-prev"),Object(o.a)({},"".concat(n,"-jump-prev-custom-icon"),!!k))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(k,"prev page"))),M=f.a.createElement("li",{title:g?q:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:c()("".concat(n,"-jump-next"),Object(o.a)({},"".concat(n,"-jump-next-custom-icon"),!!_))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(_,"next page")))),I=f.a.createElement(at,{locale:h,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:g,itemRender:y}),R=f.a.createElement(at,{locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var $=Math.max(1,j-z),G=Math.min(j+z,T);j-1<=z&&(G=1+2*z),T-j<=z&&($=T-2*z);for(var Q=$;Q<=G;Q+=1){var X=j===Q;N.push(f.a.createElement(at,{locale:h,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:X,showTitle:g,itemRender:y}))}j-1>=2*z&&3!==j&&(N[0]=Object(d.cloneElement)(N[0],{className:"".concat(n,"-item-after-jump-prev")}),N.unshift(A)),T-j>=2*z&&j!==T-2&&(N[N.length-1]=Object(d.cloneElement)(N[N.length-1],{className:"".concat(n,"-item-before-jump-next")}),N.push(M)),1!==$&&N.unshift(R),G!==T&&N.push(I)}var J=!this.hasPrev()||!T,Z=!this.hasNext()||!T;return f.a.createElement("ul",Object(i.a)({className:c()(n,r,Object(o.a)({},"".concat(n,"-disabled"),s)),style:a,ref:this.savePaginationNode},B),H,f.a.createElement("li",{title:g?h.prev_page:null,onClick:this.prev,tabIndex:J?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(n,"-prev"),Object(o.a)({},"".concat(n,"-disabled"),J)),"aria-disabled":J},this.renderPrev(F)),N,f.a.createElement("li",{title:g?h.next_page:null,onClick:this.next,tabIndex:Z?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(n,"-next"),Object(o.a)({},"".concat(n,"-disabled"),Z)),"aria-disabled":Z},this.renderNext(V)),f.a.createElement(dt,{disabled:s,locale:h,rootPrefixCls:n,selectComponentClass:O,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:j,pageSize:S,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=pt(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(f.a.Component);mt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ft,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ft,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var gt=mt,bt=n(179),vt=n(67),yt=n(157),wt=function(e){return d.createElement(yt.a,Object(i.a)({},e,{size:"small"}))},kt=function(e){return d.createElement(yt.a,Object(i.a)({},e,{size:"middle"}))};wt.Option=yt.a.Option,kt.Option=yt.a.Option;var _t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ot=function(e){var t=e.prefixCls,n=e.selectPrefixCls,r=e.className,a=e.size,s=e.locale,l=e.selectComponentClass,u=e.responsive,f=e.showSizeChanger,h=_t(e,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),p=Object(Ke.a)(u).xs,m=d.useContext(He.b),g=m.getPrefixCls,b=m.direction,v=m.pagination,y=void 0===v?{}:v,w=g("pagination",t),k=null!==f&&void 0!==f?f:y.showSizeChanger;return d.createElement(vt.a,{componentName:"Pagination",defaultLocale:bt.a},(function(e){var t=Object(i.a)(Object(i.a)({},e),s),f="small"===a||!(!p||a||!u),m=g("select",n),v=c()(Object(o.a)(Object(o.a)({},"".concat(w,"-mini"),f),"".concat(w,"-rtl"),"rtl"===b),r);return d.createElement(gt,Object(i.a)({},function(){var e=d.createElement("span",{className:"".concat(w,"-item-ellipsis")},"\u2022\u2022\u2022"),t=d.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},d.createElement(et.a,null)),n=d.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},d.createElement(tt.a,null)),r=d.createElement("a",{className:"".concat(w,"-item-link")},d.createElement("div",{className:"".concat(w,"-item-container")},d.createElement(Qe,{className:"".concat(w,"-item-link-icon")}),e)),o=d.createElement("a",{className:"".concat(w,"-item-link")},d.createElement("div",{className:"".concat(w,"-item-container")},d.createElement(Ze,{className:"".concat(w,"-item-link-icon")}),e));if("rtl"===b){var i=[n,t];t=i[0],n=i[1];var a=[o,r];r=a[0],o=a[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}}(),h,{prefixCls:w,selectPrefixCls:m,className:v,selectComponentClass:l||(f?wt:kt),locale:t,showSizeChanger:k}))}))},xt=n(258),Ct=n.n(xt),Et=n(26),jt=n(50),St=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Pt=(Object(jt.a)("small","default","large"),null);var Tt=function(e){var t=e.spinPrefixCls,n=e.spinning,r=void 0===n||n,s=e.delay,l=e.className,u=e.size,f=void 0===u?"default":u,h=e.tip,p=e.wrapperClassName,m=e.style,g=e.children,b=St(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),v=d.useState((function(){return r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,s)})),y=Object(a.a)(v,2),w=y[0],k=y[1];d.useEffect((function(){var e=Ct()((function(){k(r)}),s);return e(),function(){var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}),[s,r]);var _=function(n){var r=n.direction,a=c()(t,Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(t,"-sm"),"small"===f),"".concat(t,"-lg"),"large"===f),"".concat(t,"-spinning"),w),"".concat(t,"-show-text"),!!h),"".concat(t,"-rtl"),"rtl"===r),l),s=Object(Be.a)(b,["indicator","prefixCls"]),u=d.createElement("div",Object(i.a)({},s,{style:m,className:a,"aria-live":"polite","aria-busy":w}),function(e,t){var n=t.indicator,r="".concat(e,"-dot");return null===n?null:Object(Et.c)(n)?Object(Et.a)(n,{className:c()(n.props.className,r)}):Object(Et.c)(Pt)?Object(Et.a)(Pt,{className:c()(Pt.props.className,r)}):d.createElement("span",{className:c()(r,"".concat(e,"-dot-spin"))},d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}),d.createElement("i",{className:"".concat(e,"-dot-item")}))}(t,e),h?d.createElement("div",{className:"".concat(t,"-text")},h):null);if("undefined"!==typeof g){var v=c()("".concat(t,"-container"),Object(o.a)({},"".concat(t,"-blur"),w));return d.createElement("div",Object(i.a)({},s,{className:c()("".concat(t,"-nested-loading"),p)}),w&&d.createElement("div",{key:"loading"},u),d.createElement("div",{className:v,key:"container"},g))}return u};return d.createElement(He.a,null,_)},Nt=function(e){var t=e.prefixCls,n=(0,d.useContext(He.b).getPrefixCls)("spin",t),r=Object(i.a)(Object(i.a)({},e),{spinPrefixCls:n});return d.createElement(Tt,Object(i.a)({},r))};Nt.setDefaultIndicator=function(e){Pt=e};var At=Nt,Mt=n(23);function Rt(e){return null!==e&&void 0!==e&&e===e.window}function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,i=t.duration,a=void 0===i?450:i,s=r(),c=function(e,t){var n,r;if("undefined"===typeof window)return 0;var o=t?"scrollTop":"scrollLeft",i=0;return Rt(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!Rt(e)&&"number"!==typeof i&&(i=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),i}(s,!0),l=Date.now();Object(Mt.a)((function t(){var n=Date.now()-l,r=function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);Rt(s)?s.scrollTo(window.pageXOffset,r):s instanceof Document||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=r:s.scrollTop=r,n<a?Object(Mt.a)(t):"function"===typeof o&&o()}))}var Dt=function(e){return null};var Lt=function(e){return null};var zt=function(e){return function(t){var n=t.prefixCls,r=t.onExpand,i=t.record,a=t.expanded,s=t.expandable,l="".concat(n,"-row-expand-icon");return d.createElement("button",{type:"button",onClick:function(e){r(i,e),e.stopPropagation()},className:c()(l,Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(l,"-spaced"),!s),"".concat(l,"-expanded"),s&&a),"".concat(l,"-collapsed"),s&&!a)),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};function Ft(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Vt(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function Bt(e,t){return"function"===typeof e?e(t):e}var Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Wt=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:Ht}))};Wt.displayName="FilterFilled";var Ut=d.forwardRef(Wt),Kt=n(217),Yt=n.n(Kt),qt=n(71),$t=n(33),Gt=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],Qt=Object(d.forwardRef)((function(e,t){var n,r=e.prefixCls,s=void 0===r?"rc-checkbox":r,u=e.className,f=e.style,h=e.checked,p=e.disabled,m=e.defaultChecked,g=void 0!==m&&m,b=e.type,v=void 0===b?"checkbox":b,y=e.onChange,w=Object(O.a)(e,Gt),k=Object(d.useRef)(null),_=Object($t.a)(g,{value:h}),x=Object(a.a)(_,2),C=x[0],E=x[1];Object(d.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=k.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=k.current)||void 0===e||e.blur()},input:k.current}}));var j=c()(s,u,(n={},Object(o.a)(n,"".concat(s,"-checked"),C),Object(o.a)(n,"".concat(s,"-disabled"),p),n));return d.createElement("span",{className:j,style:f},d.createElement("input",Object(i.a)({},w,{className:"".concat(s,"-input"),ref:k,onChange:function(t){p||("checked"in e||E(t.target.checked),null===y||void 0===y||y({target:Object(l.a)(Object(l.a)({},e),{},{type:v,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:p,checked:!!C,type:v})),d.createElement("span",{className:"".concat(s,"-inner")}))})),Xt=n(24),Jt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Zt=d.createContext(null),en=function(e,t){var n=e.defaultValue,r=e.children,s=e.options,l=void 0===s?[]:s,f=e.prefixCls,h=e.className,p=e.style,m=e.onChange,g=Jt(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),b=d.useContext(He.b),v=b.getPrefixCls,y=b.direction,w=d.useState(g.value||n||[]),k=Object(a.a)(w,2),_=k[0],O=k[1],x=d.useState([]),C=Object(a.a)(x,2),E=C[0],j=C[1];d.useEffect((function(){"value"in g&&O(g.value||[])}),[g.value]);var S=function(){return l.map((function(e){return"string"===typeof e||"number"===typeof e?{label:e,value:e}:e}))},P=v("checkbox",f),T="".concat(P,"-group"),N=Object(Be.a)(g,["value","disabled"]);l&&l.length>0&&(r=S().map((function(e){return d.createElement(sn,{prefixCls:P,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:_.includes(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var t=_.indexOf(e.value),n=Object(u.a)(_);-1===t?n.push(e.value):n.splice(t,1),"value"in g||O(n);var r=S();null===m||void 0===m||m(n.filter((function(e){return E.includes(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:_,disabled:g.disabled,name:g.name,registerValue:function(e){j((function(t){return[].concat(Object(u.a)(t),[e])}))},cancelValue:function(e){j((function(t){return t.filter((function(t){return t!==e}))}))}},M=c()(T,Object(o.a)({},"".concat(T,"-rtl"),"rtl"===y),h);return d.createElement("div",Object(i.a)({className:M,style:p},N,{ref:t}),d.createElement(Zt.Provider,{value:A},r))},tn=d.forwardRef(en),nn=d.memo(tn),rn=n(58),on=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},an=function(e,t){var n,r=e.prefixCls,a=e.className,s=e.children,l=e.indeterminate,u=void 0!==l&&l,f=e.style,h=e.onMouseEnter,p=e.onMouseLeave,m=e.skipGroup,g=void 0!==m&&m,b=e.disabled,v=on(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),y=d.useContext(He.b),w=y.getPrefixCls,k=y.direction,_=d.useContext(Zt),O=Object(d.useContext)(Xt.b).isFormItemInput,x=Object(d.useContext)(rn.b),C=null!==(n=(null===_||void 0===_?void 0:_.disabled)||b)&&void 0!==n?n:x,E=d.useRef(v.value);d.useEffect((function(){null===_||void 0===_||_.registerValue(v.value)}),[]),d.useEffect((function(){if(!g)return v.value!==E.current&&(null===_||void 0===_||_.cancelValue(E.current),null===_||void 0===_||_.registerValue(v.value),E.current=v.value),function(){return null===_||void 0===_?void 0:_.cancelValue(v.value)}}),[v.value]);var j=w("checkbox",r),S=Object(i.a)({},v);_&&!g&&(S.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),_.toggleOption&&_.toggleOption({label:s,value:v.value})},S.name=_.name,S.checked=_.value.includes(v.value));var P=c()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(j,"-wrapper"),!0),"".concat(j,"-rtl"),"rtl"===k),"".concat(j,"-wrapper-checked"),S.checked),"".concat(j,"-wrapper-disabled"),C),"".concat(j,"-wrapper-in-form-item"),O),a),T=c()(Object(o.a)({},"".concat(j,"-indeterminate"),u)),N=u?"mixed":void 0;return d.createElement("label",{className:P,style:f,onMouseEnter:h,onMouseLeave:p},d.createElement(Qt,Object(i.a)({"aria-checked":N},S,{prefixCls:j,className:T,disabled:C,ref:t})),void 0!==s&&d.createElement("span",null,s))};var sn=d.forwardRef(an),cn=sn;cn.Group=nn,cn.__ANT_CHECKBOX=!0;var ln=cn,un=n(271),dn=n(195),fn=n(118),hn=n(184),pn=n(199),mn=n(55),gn=n(273),bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},vn=function(e){var t=d.useContext(He.b),n=t.getPopupContainer,r=t.getPrefixCls,o=t.direction,s=e.prefixCls,l=e.type,u=void 0===l?"default":l,f=e.danger,h=e.disabled,p=e.loading,m=e.onClick,g=e.htmlType,b=e.children,v=e.className,y=e.menu,w=e.arrow,k=e.autoFocus,_=e.overlay,O=e.trigger,x=e.align,C=e.visible,E=e.open,j=e.onVisibleChange,S=e.onOpenChange,P=e.placement,T=e.getPopupContainer,N=e.href,A=e.icon,M=void 0===A?d.createElement(pn.a,null):A,R=e.title,I=e.buttonsRender,D=void 0===I?function(e){return e}:I,L=e.mouseEnterDelay,z=e.mouseLeaveDelay,F=e.overlayClassName,V=e.overlayStyle,B=e.destroyPopupOnHide,H=bn(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),W=r("dropdown-button",s),U={menu:y,arrow:w,autoFocus:k,align:x,disabled:h,trigger:h?[]:O,onOpenChange:S||j,getPopupContainer:T||n,mouseEnterDelay:L,mouseLeaveDelay:z,overlayClassName:F,overlayStyle:V,destroyPopupOnHide:B},K=Object(mn.c)(W,o),Y=K.compactSize,q=K.compactItemClassnames,$=c()(W,q,v);"overlay"in e&&(U.overlay=_),"open"in e?U.open=E:"visible"in e&&(U.open=C),U.placement="placement"in e?P:"rtl"===o?"bottomLeft":"bottomRight";var G=D([d.createElement(qt.a,{type:u,danger:f,disabled:h,loading:p,onClick:m,htmlType:g,href:N,title:R},b),d.createElement(qt.a,{type:u,danger:f,icon:M})]),Q=Object(a.a)(G,2),X=Q[0],J=Q[1];return d.createElement(gn.b.Compact,Object(i.a)({className:$,size:Y,block:!0},H),X,d.createElement(kn,Object(i.a)({},U),J))};vn.__ANT_BUTTON=!0;var yn=vn,wn=(Object(jt.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),function(e){var t=d.useContext(He.b),n=t.getPopupContainer,s=t.getPrefixCls,l=t.direction;var u,f=e.menu,h=e.arrow,p=e.prefixCls,m=e.children,g=e.trigger,b=e.disabled,v=e.dropdownRender,y=e.getPopupContainer,w=e.overlayClassName,k=e.visible,_=e.open,O=e.onVisibleChange,x=e.onOpenChange,C=e.mouseEnterDelay,E=void 0===C?.15:C,j=e.mouseLeaveDelay,S=void 0===j?.1:j,P=e.autoAdjustOverflow,T=void 0===P||P,N=s("dropdown",p),M=d.Children.only(m),R=Object(Et.a)(M,{className:c()("".concat(N,"-trigger"),Object(o.a)({},"".concat(N,"-rtl"),"rtl"===l),M.props.className),disabled:b}),I=b?[]:g;I&&I.includes("contextMenu")&&(u=!0);var D=Object($t.a)(!1,{value:void 0!==_?_:k}),L=Object(a.a)(D,2),z=L[0],F=L[1],V=Object(A.a)((function(e){null===O||void 0===O||O(e),null===x||void 0===x||x(e),F(e)})),B=c()(w,Object(o.a)({},"".concat(N,"-rtl"),"rtl"===l)),H=Object(hn.a)({arrowPointAtCenter:"object"===Object(r.a)(h)&&h.pointAtCenter,autoAdjustOverflow:T}),W=d.useCallback((function(){F(!1)}),[]);return d.createElement(un.a,Object(i.a)({alignPoint:u},e,{mouseEnterDelay:E,mouseLeaveDelay:S,visible:z,builtinPlacements:H,arrow:!!h,overlayClassName:B,prefixCls:N,getPopupContainer:y||n,transitionName:function(){var t=s(),n=e.placement,r=void 0===n?"":n,o=e.transitionName;return void 0!==o?o:r.includes("top")?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:I,overlay:function(){var t,n=e.overlay;return t=(null===f||void 0===f?void 0:f.items)?d.createElement(dn.a,Object(i.a)({},f)):"function"===typeof n?n():n,v&&(t=v(t)),t=d.Children.only("string"===typeof t?d.createElement("span",null,t):t),d.createElement(fn.a,{prefixCls:"".concat(N,"-menu"),expandIcon:d.createElement("span",{className:"".concat(N,"-menu-submenu-arrow")},d.createElement(tt.a,{className:"".concat(N,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:W,validator:function(e){e.mode}},d.createElement(mn.a,null,t))},placement:function(){var t=e.placement;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===l?"bottomRight":"bottomLeft"}(),onVisibleChange:V}),R)});wn.Button=yn;var kn=wn,_n=kn,On=n(107);var xn=d.createContext(null),Cn=xn.Provider,En=xn,jn=d.createContext(null),Sn=jn.Provider,Pn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Tn=function(e,t){var n,r,a=d.useContext(En),s=d.useContext(jn),l=d.useContext(He.b),u=l.getPrefixCls,f=l.direction,h=d.useRef(),p=Object(x.a)(t,h),m=Object(d.useContext)(Xt.b).isFormItemInput,g=e.prefixCls,b=e.className,v=e.children,y=e.style,w=Pn(e,["prefixCls","className","children","style"]),k=u("radio",g),_="button"===((null===a||void 0===a?void 0:a.optionType)||s)?"".concat(k,"-button"):k,O=Object(i.a)({},w),C=d.useContext(rn.b);a&&(O.name=a.name,O.onChange=function(t){var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null===a||void 0===a?void 0:a.onChange)||void 0===r||r.call(a,t)},O.checked=e.value===a.value,O.disabled=null!==(n=O.disabled)&&void 0!==n?n:a.disabled),O.disabled=null!==(r=O.disabled)&&void 0!==r?r:C;var E=c()("".concat(_,"-wrapper"),Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(_,"-wrapper-checked"),O.checked),"".concat(_,"-wrapper-disabled"),O.disabled),"".concat(_,"-wrapper-rtl"),"rtl"===f),"".concat(_,"-wrapper-in-form-item"),m),b);return d.createElement("label",{className:E,style:y,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},d.createElement(Qt,Object(i.a)({},O,{type:"radio",prefixCls:_,ref:p})),void 0!==v?d.createElement("span",null,v):null)};var Nn=d.forwardRef(Tn),An=d.forwardRef((function(e,t){var n=d.useContext(He.b),r=n.getPrefixCls,s=n.direction,l=d.useContext(Ue.b),u=Object($t.a)(e.defaultValue,{value:e.value}),f=Object(a.a)(u,2),h=f[0],p=f[1],m=e.prefixCls,g=e.className,b=void 0===g?"":g,v=e.options,y=e.buttonStyle,w=void 0===y?"outline":y,k=e.disabled,_=e.children,O=e.size,x=e.style,C=e.id,E=e.onMouseEnter,j=e.onMouseLeave,S=e.onFocus,P=e.onBlur,T=r("radio",m),N="".concat(T,"-group"),A=_;v&&v.length>0&&(A=v.map((function(e){return"string"===typeof e||"number"===typeof e?d.createElement(Nn,{key:e.toString(),prefixCls:T,disabled:k,value:e,checked:h===e},e):d.createElement(Nn,{key:"radio-group-value-options-".concat(e.value),prefixCls:T,disabled:e.disabled||k,value:e.value,checked:h===e.value,style:e.style},e.label)})));var M=O||l,R=c()(N,"".concat(N,"-").concat(w),Object(o.a)(Object(o.a)({},"".concat(N,"-").concat(M),M),"".concat(N,"-rtl"),"rtl"===s),b);return d.createElement("div",Object(i.a)({},function(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}(e),{className:R,style:x,onMouseEnter:E,onMouseLeave:j,onFocus:S,onBlur:P,id:C,ref:t}),d.createElement(Cn,{value:{onChange:function(t){var n=h,r=t.target.value;"value"in e||p(r);var o=e.onChange;o&&r!==n&&o(t)},value:h,disabled:e.disabled,name:e.name,optionType:e.optionType}},A))})),Mn=d.memo(An),Rn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},In=function(e,t){var n=d.useContext(He.b).getPrefixCls,r=e.prefixCls,o=Rn(e,["prefixCls"]),a=n("radio",r);return d.createElement(Sn,{value:"button"},d.createElement(Nn,Object(i.a)({prefixCls:a},o,{type:"radio",ref:t})))},Dn=d.forwardRef(In),Ln=Nn;Ln.Button=Dn,Ln.Group=Mn,Ln.__ANT_RADIO=!0;var zn=Ln,Fn=n(196),Vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Bn=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:Vn}))};Bn.displayName="HolderOutlined";var Hn=d.forwardRef(Bn),Wn=n(60);function Un(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.prefixCls,i=e.indent,a=e.direction,s=void 0===a?"ltr":a,c="ltr"===s?"left":"right",l="ltr"===s?"right":"left",u=Object(o.a)(Object(o.a)({},c,-n*i+4),l,0);switch(t){case-1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[c]=i+4}return f.a.createElement("div",{style:u,className:"".concat(r,"-drop-indicator")})}var Kn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Yn=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:Kn}))};Yn.displayName="CaretDownFilled";var qn=d.forwardRef(Yn),$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Gn=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:$n}))};Gn.displayName="FileOutlined";var Qn=d.forwardRef(Gn),Xn=n(92),Jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Zn=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:Jn}))};Zn.displayName="MinusSquareOutlined";var er=d.forwardRef(Zn),tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},nr=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:tr}))};nr.displayName="PlusSquareOutlined";var rr=d.forwardRef(nr);var or=d.forwardRef((function(e,t){var n=d.useContext(He.b),a=n.getPrefixCls,s=n.direction,l=n.virtual,u=e.prefixCls,f=e.className,h=e.showIcon,p=void 0!==h&&h,m=e.showLine,g=e.switcherIcon,b=e.blockNode,v=void 0!==b&&b,y=e.children,w=e.checkable,k=void 0!==w&&w,_=e.selectable,O=void 0===_||_,x=e.draggable,C=e.motion,E=void 0===C?Object(i.a)(Object(i.a)({},Wn.a),{motionAppear:!1}):C,j=a("tree",u),S=Object(i.a)(Object(i.a)({},e),{checkable:k,selectable:O,showIcon:p,motion:E,blockNode:v,showLine:Boolean(m),dropIndicatorRender:Un}),P=d.useMemo((function(){if(!x)return!1;var e={};switch(Object(r.a)(x)){case"function":e.nodeDraggable=x;break;case"object":e=Object(i.a)({},x)}return!1!==e.icon&&(e.icon=e.icon||d.createElement(Hn,null)),e}),[x]);return d.createElement(Fn.b,Object(i.a)({itemHeight:20,ref:t,virtual:l},S,{prefixCls:j,className:c()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(j,"-icon-hide"),!p),"".concat(j,"-block-node"),v),"".concat(j,"-unselectable"),!O),"".concat(j,"-rtl"),"rtl"===s),f),direction:s,checkable:k?d.createElement("span",{className:"".concat(j,"-checkbox-inner")}):k,selectable:O,switcherIcon:function(e){return function(e,t,n,o){var i,a=o.isLeaf,s=o.expanded;if(o.loading)return d.createElement(Xn.a,{className:"".concat(e,"-switcher-loading-icon")});if(n&&"object"===Object(r.a)(n)&&(i=n.showLeafIcon),a){if(!n)return null;if("boolean"!==typeof i&&i){var l="function"===typeof i?i(o):i,u="".concat(e,"-switcher-line-custom-icon");return Object(Et.c)(l)?Object(Et.a)(l,{className:c()(l.props.className||"",u)}):l}return i?d.createElement(Qn,{className:"".concat(e,"-switcher-line-icon")}):d.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var f="".concat(e,"-switcher-icon"),h="function"===typeof t?t(o):t;return Object(Et.c)(h)?Object(Et.a)(h,{className:c()(h.props.className||"",f)}):h||(n?s?d.createElement(er,{className:"".concat(e,"-switcher-line-icon")}):d.createElement(rr,{className:"".concat(e,"-switcher-line-icon")}):d.createElement(qn,{className:f}))}(j,g,m,e)},draggable:P}),y)})),ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ar=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:ir}))};ar.displayName="FolderOpenOutlined";var sr=d.forwardRef(ar),cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},lr=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:cr}))};lr.displayName="FolderOutlined";var ur,dr=d.forwardRef(lr),fr=n(44),hr=n(29);function pr(e,t){e.forEach((function(e){var n=e.key,r=e.children;!1!==t(n,e)&&pr(r||[],t)}))}function mr(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,o=e.endKey,i=[],a=ur.None;if(r&&r===o)return[r];if(!r||!o)return[];return pr(t,(function(e){if(a===ur.End)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),a===ur.None)a=ur.Start;else if(a===ur.Start)return a=ur.End,!1}else a===ur.Start&&i.push(e);return n.includes(e)})),i}function gr(e,t){var n=Object(u.a)(t),r=[];return pr(e,(function(e,t){var o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(ur||(ur={}));var br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function vr(e){var t=e.isLeaf,n=e.expanded;return t?d.createElement(Qn,null):n?d.createElement(sr,null):d.createElement(dr,null)}function yr(e){var t=e.treeData,n=e.children;return t||Object(hr.c)(n)}var wr=function(e,t){var n=e.defaultExpandAll,r=e.defaultExpandParent,s=e.defaultExpandedKeys,l=br(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),f=d.useRef(),h=d.useRef(),p=d.useState(l.selectedKeys||l.defaultSelectedKeys||[]),m=Object(a.a)(p,2),g=m[0],b=m[1],v=d.useState((function(){return function(){var e=Object(hr.a)(yr(l)).keyEntities;return n?Object.keys(e):r?Object(fr.e)(l.expandedKeys||s||[],e):l.expandedKeys||s}()})),y=Object(a.a)(v,2),w=y[0],k=y[1];d.useEffect((function(){"selectedKeys"in l&&b(l.selectedKeys)}),[l.selectedKeys]),d.useEffect((function(){"expandedKeys"in l&&k(l.expandedKeys)}),[l.expandedKeys]);var _=d.useContext(He.b),O=_.getPrefixCls,x=_.direction,C=l.prefixCls,E=l.className,j=l.showIcon,S=void 0===j||j,P=l.expandAction,T=void 0===P?"click":P,N=br(l,["prefixCls","className","showIcon","expandAction"]),A=O("tree",C),M=c()("".concat(A,"-directory"),Object(o.a)({},"".concat(A,"-directory-rtl"),"rtl"===x),E);return d.createElement(or,Object(i.a)({icon:vr,ref:t,blockNode:!0},N,{showIcon:S,expandAction:T,prefixCls:A,className:M,expandedKeys:w,selectedKeys:g,onSelect:function(e,t){var n,r,o=l.multiple,a=t.node,s=t.nativeEvent,c=a.key,d=void 0===c?"":c,p=yr(l),m=Object(i.a)(Object(i.a)({},t),{selected:!0}),g=(null===s||void 0===s?void 0:s.ctrlKey)||(null===s||void 0===s?void 0:s.metaKey),v=null===s||void 0===s?void 0:s.shiftKey;o&&g?(r=e,f.current=d,h.current=r,m.selectedNodes=gr(p,r)):o&&v?(r=Array.from(new Set([].concat(Object(u.a)(h.current||[]),Object(u.a)(mr({treeData:p,expandedKeys:w,startKey:d,endKey:f.current}))))),m.selectedNodes=gr(p,r)):(r=[d],f.current=d,h.current=r,m.selectedNodes=gr(p,r)),null===(n=l.onSelect)||void 0===n||n.call(l,r,m),"selectedKeys"in l||b(r)},onExpand:function(e,t){var n;return"expandedKeys"in l||k(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))};var kr=d.forwardRef(wr),_r=or;_r.DirectoryTree=kr,_r.TreeNode=Fn.a;var Or=_r,xr=n(130);var Cr=n(139),Er=n(267);var jr=function(e){var t=e.value,n=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,i=e.locale;return r?d.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},d.createElement(Er.a,{prefix:d.createElement(Cr.a,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},Sr=n(11),Pr=function(e){e.keyCode===Sr.a.ENTER&&e.stopPropagation()},Tr=function(e){return d.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()},onKeyDown:Pr},e.children)};function Nr(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Ar(e){var t=e.filters,n=e.prefixCls,r=e.filteredKeys,o=e.filterMultiple,i=e.searchValue,a=e.filterSearch;return t.map((function(e,t){var s=String(e.value);if(e.children)return{key:s||t,label:e.text,popupClassName:"".concat(n,"-dropdown-submenu"),children:Ar({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};var c=o?ln:zn,l={key:void 0!==e.value?s:t,label:d.createElement(d.Fragment,null,d.createElement(c,{checked:r.includes(s)}),d.createElement("span",null,e.text))};return i.trim()?"function"===typeof a?a(i,e)?l:null:Nr(i,e.text)?l:null:l}))}function Mr(e){return e||[]}var Rr=function(e){var t,n,r=e.tablePrefixCls,s=e.prefixCls,l=e.column,u=e.dropdownPrefixCls,f=e.columnKey,h=e.filterMultiple,p=e.filterMode,m=void 0===p?"menu":p,g=e.filterSearch,b=void 0!==g&&g,v=e.filterState,y=e.triggerFilter,w=e.locale,k=e.children,_=e.getPopupContainer,O=l.filterDropdownOpen,x=l.onFilterDropdownOpenChange,C=l.filterDropdownVisible,E=l.onFilterDropdownVisibleChange,j=l.filterResetToDefaultFilteredValue,S=l.defaultFilteredValue,P=d.useState(!1),T=Object(a.a)(P,2),N=T[0],A=T[1],M=!(!v||!(null===(t=v.filteredKeys)||void 0===t?void 0:t.length)&&!v.forceFiltered),R=function(e){A(e),null===x||void 0===x||x(e),null===E||void 0===E||E(e)};n="boolean"===typeof O?O:"boolean"===typeof C?C:N;var I=null===v||void 0===v?void 0:v.filteredKeys,D=function(e){var t=d.useRef(e),n=Object(xr.a)();return[function(){return t.current},function(e){t.current=e,n()}]}(Mr(I)),L=Object(a.a)(D,2),z=L[0],F=L[1],V=function(e){var t=e.selectedKeys;F(t)},B=function(e,t){var n=t.node,r=t.checked;V(h?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};d.useEffect((function(){N&&V({selectedKeys:Mr(I)})}),[I]);var H=d.useState([]),W=Object(a.a)(H,2),U=W[0],K=W[1],Y=function(e){K(e)},q=d.useState(""),$=Object(a.a)(q,2),G=$[0],Q=$[1],X=function(e){var t=e.target.value;Q(t)};d.useEffect((function(){N||Q("")}),[N]);var J,Z,ee=function(e){var t=e&&e.length?e:null;return null!==t||v&&v.filteredKeys?Yt()(t,null===v||void 0===v?void 0:v.filteredKeys)?null:void y({column:l,key:f,filteredKeys:t}):null},te=function(){R(!1),ee(z())},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},t=e.confirm,n=e.closeDropdown;t&&ee([]),n&&R(!1),Q(""),F(j?(S||[]).map((function(e){return String(e)})):[])},re=c()(Object(o.a)({},"".concat(u,"-menu-without-submenu"),!(l.filters||[]).some((function(e){return e.children})))),oe=function(e){if(e.target.checked){var t=Lr(null===l||void 0===l?void 0:l.filters).map((function(e){return String(e)}));F(t)}else F([])},ie=function e(t){return(t.filters||[]).map((function(t,n){var r=String(t.value),o={title:t.text,key:void 0!==t.value?r:String(n)};return t.children&&(o.children=e({filters:t.children})),o}))},ae=function e(t){var n;return Object(i.a)(Object(i.a)({},t),{text:t.title,value:t.key,children:(null===(n=t.children)||void 0===n?void 0:n.map((function(t){return e(t)})))||[]})};if("function"===typeof l.filterDropdown)J=l.filterDropdown({prefixCls:"".concat(u,"-custom"),setSelectedKeys:function(e){return V({selectedKeys:e})},selectedKeys:z(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&R(!1),ee(z())},clearFilters:ne,filters:l.filters,visible:n,close:function(){R(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{var se=z()||[];J=d.createElement(d.Fragment,null,0===(l.filters||[]).length?d.createElement(On.a,{image:On.a.PRESENTED_IMAGE_SIMPLE,description:w.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===m?d.createElement(d.Fragment,null,d.createElement(jr,{filterSearch:b,value:G,onChange:X,tablePrefixCls:r,locale:w}),d.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},h?d.createElement(ln,{checked:se.length===Lr(l.filters).length,indeterminate:se.length>0&&se.length<Lr(l.filters).length,className:"".concat(r,"-filter-dropdown-checkall"),onChange:oe},w.filterCheckall):null,d.createElement(Or,{checkable:!0,selectable:!1,blockNode:!0,multiple:h,checkStrictly:!h,className:"".concat(u,"-menu"),onCheck:B,checkedKeys:se,selectedKeys:se,showIcon:!1,treeData:ie({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:G.trim()?function(e){return"function"===typeof b?b(G,ae(e)):Nr(G,e.title)}:void 0}))):d.createElement(d.Fragment,null,d.createElement(jr,{filterSearch:b,value:G,onChange:X,tablePrefixCls:r,locale:w}),d.createElement(dn.a,{selectable:!0,multiple:h,prefixCls:"".concat(u,"-menu"),className:re,onSelect:V,onDeselect:V,selectedKeys:se,getPopupContainer:_,openKeys:U,onOpenChange:Y,items:Ar({filters:l.filters||[],filterSearch:b,prefixCls:s,filteredKeys:z(),filterMultiple:h,searchValue:G})})),d.createElement("div",{className:"".concat(s,"-dropdown-btns")},d.createElement(qt.a,{type:"link",size:"small",disabled:j?Yt()((S||[]).map((function(e){return String(e)})),se):0===se.length,onClick:function(){return ne()}},w.filterReset),d.createElement(qt.a,{type:"primary",size:"small",onClick:te},w.filterConfirm)))}l.filterDropdown&&(J=d.createElement(fn.a,{selectable:void 0},J)),Z="function"===typeof l.filterIcon?l.filterIcon(M):l.filterIcon?l.filterIcon:d.createElement(Ut,null);var ce=d.useContext(He.b).direction;return d.createElement("div",{className:"".concat(s,"-column")},d.createElement("span",{className:"".concat(r,"-column-title")},k),d.createElement(_n,{dropdownRender:function(){return d.createElement(Tr,{className:"".concat(s,"-dropdown")},J)},trigger:["click"],open:n,onOpenChange:function(e){e&&void 0!==I&&F(Mr(I)),R(e),e||l.filterDropdown||te()},getPopupContainer:_,placement:"rtl"===ce?"bottomLeft":"bottomRight"},d.createElement("span",{role:"button",tabIndex:-1,className:c()("".concat(s,"-trigger"),{active:M}),onClick:function(e){e.stopPropagation()}},Z)))};function Ir(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i,a=Vt(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var s=e.filteredValue;"filterDropdown"in e||(s=null!==(i=null===s||void 0===s?void 0:s.map(String))&&void 0!==i?i:s),r.push({column:e,key:Ft(e,a),filteredKeys:s,forceFiltered:e.filtered})}else r.push({column:e,key:Ft(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Object(u.a)(r),Object(u.a)(Ir(e.children,t,a))))})),r}function Dr(e,t,n,r,o,a,s,c){return n.map((function(n,l){var u=Vt(l,c),f=n.filterMultiple,h=void 0===f||f,p=n.filterMode,m=n.filterSearch,g=n;if(g.filters||g.filterDropdown){var b=Ft(g,u),v=r.find((function(e){var t=e.key;return b===t}));g=Object(i.a)(Object(i.a)({},g),{title:function(r){return d.createElement(Rr,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:g,columnKey:b,filterState:v,filterMultiple:h,filterMode:p,filterSearch:m,triggerFilter:o,locale:s,getPopupContainer:a},Bt(n.title,r))}})}return"children"in g&&(g=Object(i.a)(Object(i.a)({},g),{children:Dr(e,t,g.children,r,o,a,s,u)})),g}))}function Lr(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,r=e.children;t.push(n),r&&(t=[].concat(Object(u.a)(t),Object(u.a)(Lr(r))))})),t}function zr(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys,o=e.column,i=n,a=o.filters;if(o.filterDropdown)t[i]=r||null;else if(Array.isArray(r)){var s=Lr(a);t[i]=s.filter((function(e){return r.includes(String(e))}))}else t[i]=null})),t}function Fr(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=Lr(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}var Vr=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,o=e.onFilterChange,i=e.getPopupContainer,s=e.locale,c=d.useState((function(){return Ir(r,!0)})),l=Object(a.a)(c,2),u=l[0],f=l[1],h=d.useMemo((function(){var e=Ir(r,!1),t=!0;return e.forEach((function(e){void 0!==e.filteredKeys?t=!1:!1})),t?u:e}),[r,u]),p=d.useMemo((function(){return zr(h)}),[h]),m=function(e){var t=h.filter((function(t){return t.key!==e.key}));t.push(e),f(t),o(zr(t),t)};return[function(e){return Dr(t,n,e,h,m,i,s)},h,p]};var Br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Hr=10;function Wr(e,t,n){var o=t&&"object"===Object(r.a)(t)?t:{},s=o.total,c=void 0===s?0:s,l=Br(o,["total"]),u=Object(d.useState)((function(){return{current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:Hr}})),f=Object(a.a)(u,2),h=f[0],p=f[1],m=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(h,l,{total:c>0?c:e}),g=Math.ceil((c||e)/m.pageSize);m.current>g&&(m.current=g||1);var b=function(e,t){p({current:null!==e&&void 0!==e?e:1,pageSize:t||m.pageSize})};return!1===t?[{},function(){}]:[Object(i.a)(Object(i.a)({},m),{onChange:function(e,r){var o;t&&(null===(o=t.onChange)||void 0===o||o.call(t,e,r)),b(e,r),n(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),b]}var Ur=n(131),Kr=n(200),Yr=n(117),qr={},$r="SELECT_ALL",Gr="SELECT_INVERT",Qr="SELECT_NONE",Xr=[];function Jr(e,t){var n=[];return(e||[]).forEach((function(e){n.push(e),e&&"object"===Object(r.a)(e)&&t in e&&(n=[].concat(Object(u.a)(n),Object(u.a)(Jr(e[t],t))))})),n}function Zr(e,t){var n=e||{},r=n.preserveSelectedRowKeys,s=n.selectedRowKeys,c=n.defaultSelectedRowKeys,l=n.getCheckboxProps,f=n.onChange,h=n.onSelect,p=n.onSelectAll,m=n.onSelectInvert,g=n.onSelectNone,b=n.onSelectMultiple,v=n.columnWidth,y=n.type,w=n.selections,k=n.fixed,_=n.renderCell,O=n.hideSelectAll,x=n.checkStrictly,C=void 0===x||x,E=t.prefixCls,j=t.data,S=t.pageData,P=t.getRecordByKey,T=t.getRowKey,N=t.expandType,A=t.childrenColumnName,M=t.locale,R=t.getPopupContainer,I=Object($t.a)(s||c||Xr,{value:s}),D=Object(a.a)(I,2),L=D[0],z=D[1],F=d.useRef(new Map),V=Object(d.useCallback)((function(e){if(r){var t=new Map;e.forEach((function(e){var n=P(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)})),F.current=t}}),[P,r]);d.useEffect((function(){V(L)}),[L]);var B=Object(d.useMemo)((function(){return C?{keyEntities:null}:Object(hr.a)(j,{externalGetKey:T,childrenPropName:A})}),[j,T,C,A]).keyEntities,H=Object(d.useMemo)((function(){return Jr(S,A)}),[S,A]),W=Object(d.useMemo)((function(){var e=new Map;return H.forEach((function(t,n){var r=T(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[H,T,l]),U=Object(d.useCallback)((function(e){var t;return!!(null===(t=W.get(T(e)))||void 0===t?void 0:t.disabled)}),[W,T]),K=Object(d.useMemo)((function(){if(C)return[L||[],[]];var e=Object(Yr.a)(L,!0,B,U);return[e.checkedKeys||[],e.halfCheckedKeys]}),[L,C,B,U]),Y=Object(a.a)(K,2),q=Y[0],$=Y[1],G=Object(d.useMemo)((function(){var e="radio"===y?q.slice(0,1):q;return new Set(e)}),[q,y]),Q=Object(d.useMemo)((function(){return"radio"===y?new Set:new Set($)}),[$,y]),X=Object(d.useState)(null),J=Object(a.a)(X,2),Z=J[0],ee=J[1];d.useEffect((function(){e||z(Xr)}),[!!e]);var te=Object(d.useCallback)((function(e,t){var n,o;V(e),r?(n=e,o=e.map((function(e){return F.current.get(e)}))):(n=[],o=[],e.forEach((function(e){var t=P(e);void 0!==t&&(n.push(e),o.push(t))}))),z(n),null===f||void 0===f||f(n,o,{type:t})}),[z,P,f,r]),ne=Object(d.useCallback)((function(e,t,n,r){if(h){var o=n.map((function(e){return P(e)}));h(P(e),t,o,r)}te(n,"single")}),[h,P,te]),re=Object(d.useMemo)((function(){return!w||O?null:(!0===w?[$r,Gr,Qr]:w).map((function(e){return e===$r?{key:"all",text:M.selectionAll,onSelect:function(){te(j.map((function(e,t){return T(e,t)})).filter((function(e){var t=W.get(e);return!(null===t||void 0===t?void 0:t.disabled)||G.has(e)})),"all")}}:e===Gr?{key:"invert",text:M.selectInvert,onSelect:function(){var e=new Set(G);S.forEach((function(t,n){var r=T(t,n),o=W.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));var t=Array.from(e);m&&m(t),te(t,"invert")}}:e===Qr?{key:"none",text:M.selectNone,onSelect:function(){null===g||void 0===g||g(),te(Array.from(G).filter((function(e){var t=W.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e})).map((function(e){return Object(i.a)(Object(i.a)({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),ee(null)}})}))}),[w,G,S,T,m,te]);return[Object(d.useCallback)((function(t){var n;if(!e)return t.filter((function(e){return e!==qr}));var r,a,s=Object(u.a)(t),c=new Set(G),l=H.map(T).filter((function(e){return!W.get(e).disabled})),f=l.every((function(e){return c.has(e)})),h=l.some((function(e){return c.has(e)}));if("radio"!==y){var m;if(re){var g={getPopupContainer:R,items:re.map((function(e,t){var n=e.key,r=e.text,o=e.onSelect;return{key:n||t,onClick:function(){null===o||void 0===o||o(l)},label:r}}))};m=d.createElement("div",{className:"".concat(E,"-selection-extra")},d.createElement(_n,{menu:g,getPopupContainer:R},d.createElement("span",null,d.createElement(Kr.a,null))))}var w=H.map((function(e,t){var n=T(e,t),r=W.get(n)||{};return Object(i.a)({checked:c.has(n)},r)})).filter((function(e){return e.disabled})),x=!!w.length&&w.length===H.length,j=x&&w.every((function(e){return e.checked})),S=x&&w.some((function(e){return e.checked}));r=!O&&d.createElement("div",{className:"".concat(E,"-selection")},d.createElement(ln,{checked:x?j:!!H.length&&f,indeterminate:x?!j&&S:!f&&h,onChange:function(){var e=[];f?l.forEach((function(t){c.delete(t),e.push(t)})):l.forEach((function(t){c.has(t)||(c.add(t),e.push(t))}));var t=Array.from(c);null===p||void 0===p||p(!f,t.map((function(e){return P(e)})),e.map((function(e){return P(e)}))),te(t,"all"),ee(null)},disabled:0===H.length||x,"aria-label":m?"Custom selection":"Select all",skipGroup:!0}),m)}a="radio"===y?function(e,t,n){var r=T(t,n),o=c.has(r);return{node:d.createElement(zn,Object(i.a)({},W.get(r),{checked:o,onClick:function(e){return e.stopPropagation()},onChange:function(e){c.has(r)||ne(r,!0,[r],e.nativeEvent)}})),checked:o}}:function(e,t,n){var r,o,a=T(t,n),s=c.has(a),f=Q.has(a),h=W.get(a);return o="nest"===N?f:null!==(r=null===h||void 0===h?void 0:h.indeterminate)&&void 0!==r?r:f,{node:d.createElement(ln,Object(i.a)({},h,{indeterminate:o,checked:s,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,o=-1;if(n&&C){var i=new Set([Z,a]);l.some((function(e,t){if(i.has(e)){if(-1!==r)return o=t,!0;r=t}return!1}))}if(-1!==o&&r!==o&&C){var d=l.slice(r,o+1),f=[];s?d.forEach((function(e){c.has(e)&&(f.push(e),c.delete(e))})):d.forEach((function(e){c.has(e)||(f.push(e),c.add(e))}));var h=Array.from(c);null===b||void 0===b||b(!s,h.map((function(e){return P(e)})),f.map((function(e){return P(e)}))),te(h,"multiple")}else{var p=q;if(C){var m=s?Object(fr.b)(p,a):Object(fr.a)(p,a);ne(a,!s,m,t)}else{var g=Object(Yr.a)([].concat(Object(u.a)(p),[a]),!0,B,U),v=g.checkedKeys,y=g.halfCheckedKeys,w=v;if(s){var k=new Set(v);k.delete(a),w=Object(Yr.a)(Array.from(k),{checked:!1,halfCheckedKeys:y},B,U).checkedKeys}ne(a,!s,w,t)}}ee(s?null:a)}})),checked:s}};if(!s.includes(qr))if(0===s.findIndex((function(e){var t;return"EXPAND_COLUMN"===(null===(t=e[se])||void 0===t?void 0:t.columnType)}))){var A=s,M=Object(Ur.a)(A),I=M[0],D=M.slice(1);s=[I,qr].concat(Object(u.a)(D))}else s=[qr].concat(Object(u.a)(s));var L=s.indexOf(qr),z=(s=s.filter((function(e,t){return e!==qr||t===L})))[L-1],F=s[L+1],V=k;void 0===V&&(void 0!==(null===F||void 0===F?void 0:F.fixed)?V=F.fixed:void 0!==(null===z||void 0===z?void 0:z.fixed)&&(V=z.fixed)),V&&z&&"EXPAND_COLUMN"===(null===(n=z[se])||void 0===n?void 0:n.columnType)&&void 0===z.fixed&&(z.fixed=V);var K=Object(o.a)({fixed:V,width:v,className:"".concat(E,"-selection-column"),title:e.columnTitle||r,render:function(e,t,n){var r=a(e,t,n),o=r.node,i=r.checked;return _?_(i,t,n,o):o}},se,{className:"".concat(E,"-selection-col")});return s.map((function(e){return e===qr?K:e}))}),[T,H,e,q,G,Q,v,re,N,Z,W,b,ne,U]),G]}var eo={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},to=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:eo}))};to.displayName="CaretDownOutlined";var no=d.forwardRef(to),ro={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},oo=function(e,t){return d.createElement($e.a,Object(l.a)(Object(l.a)({},e),{},{ref:t,icon:ro}))};oo.displayName="CaretUpOutlined";var io=d.forwardRef(oo),ao=n(113),so="ascend",co="descend";function lo(e){return"object"===Object(r.a)(e.sorter)&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function uo(e){return"function"===typeof e?e:!(!e||"object"!==Object(r.a)(e)||!e.compare)&&e.compare}function fo(e,t,n){var r=[];function o(e,t){r.push({column:e,key:Ft(e,t),multiplePriority:lo(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=Vt(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Object(u.a)(r),Object(u.a)(fo(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:Ft(e,a),multiplePriority:lo(e),sortOrder:e.defaultSortOrder}))})),r}function ho(e,t,n,a,s,l,u,f){return(t||[]).map((function(t,h){var p=Vt(h,f),m=t;if(m.sorter){var g=m.sortDirections||s,b=void 0===m.showSorterTooltip?u:m.showSorterTooltip,v=Ft(m,p),y=n.find((function(e){return e.key===v})),w=y?y.sortOrder:null,k=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(g,w),_=g.includes(so)&&d.createElement(io,{className:c()("".concat(e,"-column-sorter-up"),{active:w===so}),role:"presentation"}),O=g.includes(co)&&d.createElement(no,{className:c()("".concat(e,"-column-sorter-down"),{active:w===co}),role:"presentation"}),x=l||{},C=x.cancelSort,E=x.triggerAsc,j=x.triggerDesc,S=C;k===co?S=j:k===so&&(S=E);var P="object"===Object(r.a)(b)?b:{title:S};m=Object(i.a)(Object(i.a)({},m),{className:c()(m.className,Object(o.a)({},"".concat(e,"-column-sort"),w)),title:function(n){var r=d.createElement("div",{className:"".concat(e,"-column-sorters")},d.createElement("span",{className:"".concat(e,"-column-title")},Bt(t.title,n)),d.createElement("span",{className:c()("".concat(e,"-column-sorter"),Object(o.a)({},"".concat(e,"-column-sorter-full"),!(!_||!O)))},d.createElement("span",{className:"".concat(e,"-column-sorter-inner")},_,O)));return b?d.createElement(ao.a,Object(i.a)({},P),r):r},onHeaderCell:function(n){var r=t.onHeaderCell&&t.onHeaderCell(n)||{},o=r.onClick,i=r.onKeyDown;r.onClick=function(e){a({column:t,key:v,sortOrder:k,multiplePriority:lo(t)}),null===o||void 0===o||o(e)},r.onKeyDown=function(e){e.keyCode===Sr.a.ENTER&&(a({column:t,key:v,sortOrder:k,multiplePriority:lo(t)}),null===i||void 0===i||i(e))};var s=function(e,t){var n=Bt(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),l=null===s||void 0===s?void 0:s.toString();return w?r["aria-sort"]="ascend"===w?"ascending":"descending":r["aria-label"]=l||"",r.className=c()(r.className,"".concat(e,"-column-has-sorters")),r.tabIndex=0,t.ellipsis&&(r.title=(null!==s&&void 0!==s?s:"").toString()),r}})}return"children"in m&&(m=Object(i.a)(Object(i.a)({},m),{children:ho(e,m.children,n,a,s,l,u,p)})),m}))}function po(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function mo(e){var t=e.filter((function(e){return e.sortOrder})).map(po);return 0===t.length&&e.length?Object(i.a)(Object(i.a)({},po(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function go(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),a=e.slice(),s=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return uo(t)&&n}));return s.length?a.sort((function(e,t){for(var n=0;n<s.length;n+=1){var r=s[n],o=r.column.sorter,i=r.sortOrder,a=uo(o);if(a&&i){var c=a(e,t,i);if(0!==c)return i===so?c:-c}}return 0})).map((function(e){var r=e[n];return r?Object(i.a)(Object(i.a)({},e),Object(o.a)({},n,go(r,t,n))):e})):a}function bo(e,t){return e.map((function(e){var n=Object(i.a)({},e);return n.title=Bt(e.title,t),"children"in n&&(n.children=bo(n.children,t)),n}))}function vo(e){return[d.useCallback((function(t){return bo(t,e)}),[e])]}var yo=[];function wo(e,t){var n=e.prefixCls,s=e.className,l=e.style,f=e.size,h=e.bordered,p=e.dropdownPrefixCls,m=e.dataSource,g=e.pagination,b=e.rowSelection,v=e.rowKey,y=void 0===v?"key":v,w=e.rowClassName,k=e.columns,_=e.children,O=e.childrenColumnName,x=e.onChange,C=e.getPopupContainer,E=e.loading,j=e.expandIcon,S=e.expandable,P=e.expandedRowRender,T=e.expandIconColumnIndex,N=e.indentSize,A=e.scroll,M=e.sortDirections,R=e.locale,I=e.showSorterTooltip,D=void 0===I||I;[["filterDropdownVisible","filterDropdownOpen"],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange"]].forEach((function(e){var t=Object(a.a)(e,2);t[0],t[1]}));var L=d.useMemo((function(){return k||de(_)}),[k,_]),z=d.useMemo((function(){return L.some((function(e){return e.responsive}))}),[L]),F=Object(Ke.a)(z),V=d.useMemo((function(){var e=new Set(Object.keys(F).filter((function(e){return F[e]})));return L.filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[L,F]),B=Object(Be.a)(e,["className","style","columns"]),H=d.useContext(Ue.b),W=d.useContext(He.b),U=W.locale,K=void 0===U?Ye:U,Y=W.renderEmpty,q=W.direction,$=f||H,G=Object(i.a)(Object(i.a)({},K.Table),R),Q=m||yo,X=d.useContext(He.b).getPrefixCls,J=X("table",n),Z=X("dropdown",p),ee=Object(i.a)({childrenColumnName:O,expandIconColumnIndex:T},S),te=ee.childrenColumnName,ne=void 0===te?"children":te,re=d.useMemo((function(){return Q.some((function(e){return null===e||void 0===e?void 0:e[ne]}))?"nest":P||S&&S.expandedRowRender?"row":null}),[Q]),oe={body:d.useRef()},ie=d.useMemo((function(){return"function"===typeof y?y:function(e){return null===e||void 0===e?void 0:e[y]}}),[y]),ae=function(e,t,n){var o=d.useRef({});return[function(i){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){var a=new Map;function s(e){e.forEach((function(e,o){var i=n(e,o);a.set(i,e),e&&"object"===Object(r.a)(e)&&t in e&&s(e[t]||[])}))}s(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return o.current.kvMap.get(i)}]}(Q,ne,ie),se=Object(a.a)(ae,1)[0],ce={},le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(i.a)(Object(i.a)({},ce),e);n&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),g&&g.onChange&&g.onChange(1,r.pagination.pageSize)),A&&!1!==A.scrollToFirstRowOnChange&&oe.body.current&&It(0,{getContainer:function(){return oe.body.current}}),null===x||void 0===x||x(r.pagination,r.filters,r.sorter,{currentDataSource:Fr(go(Q,r.sorterStates,ne),r.filterStates),action:t})},ue=function(e){var t=e.prefixCls,n=e.mergedColumns,r=e.onSorterChange,o=e.sortDirections,s=e.tableLocale,c=e.showSorterTooltip,l=d.useState(fo(n,!0)),f=Object(a.a)(l,2),h=f[0],p=f[1],m=d.useMemo((function(){var e=!0,t=fo(n,!1);if(!t.length)return h;var r=[];function o(t){e?r.push(t):r.push(Object(i.a)(Object(i.a)({},t),{sortOrder:null}))}var a=null;return t.forEach((function(t){null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,h]),g=d.useMemo((function(){var e=m.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[m]);function b(e){var t;t=!1!==e.multiplePriority&&m.length&&!1!==m[0].multiplePriority?[].concat(Object(u.a)(m.filter((function(t){return t.key!==e.key}))),[e]):[e],p(t),r(mo(t),t)}return[function(e){return ho(t,e,m,b,o,s,c)},m,g,function(){return mo(m)}]}({prefixCls:J,mergedColumns:V,onSorterChange:function(e,t){le({sorter:e,sorterStates:t},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:G,showSorterTooltip:D}),fe=Object(a.a)(ue,4),he=fe[0],pe=fe[1],me=fe[2],ge=fe[3],be=d.useMemo((function(){return go(Q,pe,ne)}),[Q,pe]);ce.sorter=ge(),ce.sorterStates=pe;var ve=Vr({prefixCls:J,locale:G,dropdownPrefixCls:Z,mergedColumns:V,onFilterChange:function(e,t){le({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C}),ye=Object(a.a)(ve,3),we=ye[0],ke=ye[1],_e=ye[2],Oe=Fr(be,ke);ce.filters=_e,ce.filterStates=ke;var xe=vo(d.useMemo((function(){var e={};return Object.keys(_e).forEach((function(t){null!==_e[t]&&(e[t]=_e[t])})),Object(i.a)(Object(i.a)({},me),{filters:e})}),[me,_e])),Ce=Object(a.a)(xe,1)[0],Ee=Wr(Oe.length,g,(function(e,t){le({pagination:Object(i.a)(Object(i.a)({},ce.pagination),{current:e,pageSize:t})},"paginate")})),je=Object(a.a)(Ee,2),Se=je[0],Pe=je[1];ce.pagination=!1===g?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},o=e&&"object"===Object(r.a)(e)?e:{};return Object.keys(o).forEach((function(e){var r=t[e];"function"!==typeof r&&(n[e]=r)})),n}(g,Se),ce.resetPagination=Pe;var Te=d.useMemo((function(){if(!1===g||!Se.pageSize)return Oe;var e=Se.current,t=void 0===e?1:e,n=Se.total,r=Se.pageSize,o=void 0===r?Hr:r;return Oe.length<n?Oe.length>o?Oe.slice((t-1)*o,t*o):Oe:Oe.slice((t-1)*o,t*o)}),[!!g,Oe,Se&&Se.current,Se&&Se.pageSize,Se&&Se.total]),Ne=Zr(b,{prefixCls:J,data:Oe,pageData:Te,getRowKey:ie,getRecordByKey:se,expandType:re,childrenColumnName:ne,locale:G,getPopupContainer:C}),Ae=Object(a.a)(Ne,2),Me=Ae[0],Re=Ae[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||j||zt(G),"nest"===re&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=b?1:0:ee.expandIconColumnIndex>0&&b&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof N?N:15);var Ie,De,ze,Fe=d.useCallback((function(e){return Ce(Me(we(he(e))))}),[he,we,Me]);if(!1!==g&&(null===Se||void 0===Se?void 0:Se.total)){var qe;qe=Se.size?Se.size:"small"===$||"middle"===$?"small":void 0;var $e=function(e){return d.createElement(Ot,Object(i.a)({},Se,{className:c()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),Se.className),size:qe}))},Ge="rtl"===q?"left":"right",Qe=Se.position;if(null!==Qe&&Array.isArray(Qe)){var Xe=Qe.find((function(e){return e.includes("top")})),Je=Qe.find((function(e){return e.includes("bottom")})),Ze=Qe.every((function(e){return"none"==="".concat(e)}));Xe||Je||Ze||(De=$e(Ge)),Xe&&(Ie=$e(Xe.toLowerCase().replace("top",""))),Je&&(De=$e(Je.toLowerCase().replace("bottom","")))}else De=$e(Ge)}"boolean"===typeof E?ze={spinning:E}:"object"===Object(r.a)(E)&&(ze=Object(i.a)({spinning:!0},E));var et=c()("".concat(J,"-wrapper"),Object(o.a)({},"".concat(J,"-wrapper-rtl"),"rtl"===q),s);return d.createElement("div",{ref:t,className:et,style:l},d.createElement(At,Object(i.a)({spinning:!1},ze),Ie,d.createElement(Ve,Object(i.a)({},B,{columns:V,direction:q,expandable:ee,prefixCls:J,className:c()(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(J,"-middle"),"middle"===$),"".concat(J,"-small"),"small"===$),"".concat(J,"-bordered"),h),"".concat(J,"-empty"),0===Q.length)),data:Te,rowKey:ie,rowClassName:function(e,t,n){var r;return r="function"===typeof w?c()(w(e,t,n)):c()(w),c()(Object(o.a)({},"".concat(J,"-row-selected"),Re.has(ie(e,t))),r)},emptyText:R&&R.emptyText||(Y||We.a)("Table"),internalHooks:Le,internalRefs:oe,transformColumns:Fe})),De))}var ko=d.forwardRef(wo);ko.SELECTION_COLUMN=qr,ko.EXPAND_COLUMN=Ve.EXPAND_COLUMN,ko.SELECTION_ALL=$r,ko.SELECTION_INVERT=Gr,ko.SELECTION_NONE=Qr,ko.Column=Dt,ko.ColumnGroup=Lt,ko.Summary=xe;var _o=ko;t.a=_o},function(e,t,n){"use strict";var r=n(62),o=n.n(r),i=n(17),a={getNow:function(){return o()()},getFixedDate:function(e){return o()(e,"YYYY-MM-DD")},getEndDate:function(e){return e.clone().endOf("month")},getWeekDay:function(e){var t=e.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.clone().add(t,"year")},addMonth:function(e,t){return e.clone().add(t,"month")},addDate:function(e,t){return e.clone().add(t,"day")},setYear:function(e,t){return e.clone().year(t)},setMonth:function(e,t){return e.clone().month(t)},setDate:function(e,t){return e.clone().date(t)},setHour:function(e,t){return e.clone().hour(t)},setMinute:function(e,t){return e.clone().minute(t)},setSecond:function(e,t){return e.clone().second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return o()().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.clone().locale(e).weekday(0)},getWeek:function(e,t){return t.clone().locale(e).week()},getShortWeekDays:function(e){return o()().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return o()().locale(e).localeData().monthsShort()},format:function(e,t,n){return t.clone().locale(e).format(n)},parse:function(e,t,n){for(var r=[],a=0;a<n.length;a+=1){var s=n[a],c=t;if(s.includes("wo")||s.includes("Wo")){var l=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),u=c.match(/[-\d]+/g);l&&u?(s=l.join(""),c=u.join("")):r.push(s.replace(/o/g,""))}var d=o()(c,s,e,!0);if(d.isValid())return d}for(var f=0;f<r.length;f+=1){var h=o()(t,r[f],e,!1);if(h.isValid())return Object(i.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),h}return null}}},s=n(3),c=n(50),l=n(1),u=n(71);var d=n(4),f=n(6),h=n(114),p=n(7),m=n.n(p),g=n(32),b=n(66),v=n(119),y=n(198),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},k=function(e){var t=e.prefixCls,n=e.className,r=e.checked,o=e.onChange,i=e.onClick,a=w(e,["prefixCls","className","checked","onChange","onClick"]),c=(0,l.useContext(b.b).getPrefixCls)("tag",t),u=m()(c,Object(d.a)(Object(d.a)({},"".concat(c,"-checkable"),!0),"".concat(c,"-checkable-checked"),r),n);return l.createElement("span",Object(s.a)({},a,{className:u,onClick:function(e){null===o||void 0===o||o(!r),null===i||void 0===i||i(e)}}))},_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=new RegExp("^(".concat(v.a.join("|"),")(-inverse)?$")),x=new RegExp("^(".concat(v.b.join("|"),")$")),C=function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.children,a=e.icon,c=e.color,u=e.onClose,p=e.closeIcon,v=e.closable,w=void 0!==v&&v,k=_(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),C=l.useContext(b.b),E=C.getPrefixCls,j=C.direction,S=l.useState(!0),P=Object(f.a)(S,2),T=P[0],N=P[1];l.useEffect((function(){"visible"in k&&N(k.visible)}),[k.visible]);var A=function(){return!!c&&(O.test(c)||x.test(c))},M=Object(s.a)({backgroundColor:c&&!A()?c:void 0},o),R=A(),I=E("tag",n),D=m()(I,Object(d.a)(Object(d.a)(Object(d.a)(Object(d.a)({},"".concat(I,"-").concat(c),R),"".concat(I,"-has-color"),c&&!R),"".concat(I,"-hidden"),!T),"".concat(I,"-rtl"),"rtl"===j),r),L=function(e){e.stopPropagation(),null===u||void 0===u||u(e),e.defaultPrevented||"visible"in k||N(!1)},z="onClick"in k||i&&"a"===i.type,F=Object(g.a)(k,["visible"]),V=a||null,B=V?l.createElement(l.Fragment,null,V,l.createElement("span",null,i)):i,H=l.createElement("span",Object(s.a)({},F,{ref:t,className:D,style:M}),B,w?p?l.createElement("span",{className:"".concat(I,"-close-icon"),onClick:L},p):l.createElement(h.a,{className:"".concat(I,"-close-icon"),onClick:L}):null);return z?l.createElement(y.a,null,H):H},E=l.forwardRef(C);E.CheckableTag=k;var j=E;var S=n(5),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},T=n(18),N=function(e,t){return l.createElement(T.a,Object(S.a)(Object(S.a)({},e),{},{ref:t,icon:P}))};N.displayName="CalendarOutlined";var A=l.forwardRef(N),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},R=function(e,t){return l.createElement(T.a,Object(S.a)(Object(S.a)({},e),{},{ref:t,icon:M}))};R.displayName="ClockCircleOutlined";var I=l.forwardRef(R),D=n(77),L={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},z=function(e,t){return l.createElement(T.a,Object(S.a)(Object(S.a)({},e),{},{ref:t,icon:L}))};z.displayName="SwapRightOutlined";var F=l.forwardRef(z),V=n(27),B=n(25),H=n(37),W=n(38),U=n(33),K=n(10),Y=n(11),q=l.createContext({}),$={visibility:"hidden"};var G=function(e){var t=e.prefixCls,n=e.prevIcon,r=void 0===n?"\u2039":n,o=e.nextIcon,i=void 0===o?"\u203a":o,a=e.superPrevIcon,s=void 0===a?"\xab":a,c=e.superNextIcon,u=void 0===c?"\xbb":c,d=e.onSuperPrev,f=e.onSuperNext,h=e.onPrev,p=e.onNext,m=e.children,g=l.useContext(q),b=g.hideNextBtn,v=g.hidePrevBtn;return l.createElement("div",{className:t},d&&l.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:v?$:{}},s),h&&l.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:v?$:{}},r),l.createElement("div",{className:"".concat(t,"-view")},m),p&&l.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(t,"-next-btn"),style:b?$:{}},i),f&&l.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:b?$:{}},u))};var Q=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecades,i=e.onNextDecades;if(l.useContext(q).hideHeader)return null;var a="".concat(t,"-header"),c=n.getYear(r),u=Math.floor(c/me)*me,d=u+me-1;return l.createElement(G,Object(s.a)({},e,{prefixCls:a,onSuperPrev:o,onSuperNext:i}),u,"-",d)};function X(e,t,n,r,o){var i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o)}function J(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n))}function Z(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),i=e.getDate(o),a=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(a,"-").concat(i)}function ee(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,o=e.picker,i=e.rowNum,a=e.colNum,s=e.prefixColumn,c=e.rowClassName,u=e.baseDate,f=e.getCellClassName,h=e.getCellText,p=e.getCellNode,g=e.getCellDate,b=e.generateConfig,v=e.titleCell,y=e.headerCells,w=l.useContext(q),k=w.onDateMouseEnter,_=w.onDateMouseLeave,O=w.mode,x="".concat(t,"-cell"),C=[],E=0;E<i;E+=1){for(var j=[],P=void 0,T=function(){var e,t=g(u,E*a+N),i=Pe({cellDate:t,mode:O,disabledDate:n,generateConfig:b});0===N&&(P=t,s&&j.push(s(P)));var c=v&&v(t);j.push(l.createElement("td",{key:N,title:c,className:m()(x,Object(S.a)((e={},Object(d.a)(e,"".concat(x,"-disabled"),i),Object(d.a)(e,"".concat(x,"-start"),1===h(t)||"year"===o&&Number(c)%10===0),Object(d.a)(e,"".concat(x,"-end"),c===Z(b,t)||"year"===o&&Number(c)%10===9),e),f(t))),onClick:function(){i||r(t)},onMouseEnter:function(){!i&&k&&k(t)},onMouseLeave:function(){!i&&_&&_(t)}},p?p(t):l.createElement("div",{className:"".concat(x,"-inner")},h(t))))},N=0;N<a;N+=1)T();C.push(l.createElement("tr",{key:E,className:c&&c(P)},j))}return l.createElement("div",{className:"".concat(t,"-body")},l.createElement("table",{className:"".concat(t,"-content")},y&&l.createElement("thead",null,l.createElement("tr",null,y)),l.createElement("tbody",null,C)))}var te=function(e){var t=pe-1,n=e.prefixCls,r=e.viewDate,o=e.generateConfig,i="".concat(n,"-cell"),a=o.getYear(r),c=Math.floor(a/pe)*pe,u=Math.floor(a/me)*me,f=u+me-1,h=o.setYear(r,u-Math.ceil((12*pe-me)/2));return l.createElement(ee,Object(s.a)({},e,{rowNum:4,colNum:3,baseDate:h,getCellText:function(e){var n=o.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,r=o.getYear(e),a=r+t;return n={},Object(d.a)(n,"".concat(i,"-in-view"),u<=r&&a<=f),Object(d.a)(n,"".concat(i,"-selected"),r===c),n},getCellDate:function(e,t){return o.addYear(e,t*pe)}}))},ne=n(9),re=n(23),oe=n(112),ie=new Map;function ae(e,t,n){if(ie.get(e)&&cancelAnimationFrame(ie.get(e)),n<=0)ie.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var r=(t-e.scrollTop)/n*10;ie.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==t&&ae(e,t,n-10)})))}}function se(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,s=e.which,c=e.ctrlKey,l=e.metaKey;switch(s){case Y.a.LEFT:if(c||l){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case Y.a.RIGHT:if(c||l){if(r)return r(1),!0}else if(n)return n(1),!0;break;case Y.a.UP:if(o)return o(-1),!0;break;case Y.a.DOWN:if(o)return o(1),!0;break;case Y.a.PAGE_UP:if(i)return i(-1),!0;break;case Y.a.PAGE_DOWN:if(i)return i(1),!0;break;case Y.a.ENTER:if(a)return a(),!0}return!1}function ce(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function le(e,t,n){var r="time"===e?8:10,o="function"===typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var ue=null,de=new Set;var fe={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function he(e,t){return e.some((function(e){return e&&e.contains(t)}))}var pe=10,me=10*pe;var ge=function(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,o=e.viewDate,i=e.operationRef,a=e.onSelect,c=e.onPanelChange,u="".concat(t,"-decade-panel");i.current={onKeyDown:function(e){return se(e,{onLeftRight:function(e){a(r.addYear(o,e*pe),"key")},onCtrlLeftRight:function(e){a(r.addYear(o,e*me),"key")},onUpDown:function(e){a(r.addYear(o,e*pe*3),"key")},onEnter:function(){c("year",o)}})}};var d=function(e){var t=r.addYear(o,e*me);n(t),c(null,t)};return l.createElement("div",{className:u},l.createElement(Q,Object(s.a)({},e,{prefixCls:t,onPrevDecades:function(){d(-1)},onNextDecades:function(){d(1)}})),l.createElement(te,Object(s.a)({},e,{prefixCls:t,onSelect:function(e){a(e,"mouse"),c("year",e)}})))};function be(e,t){return!e&&!t||!(!e||!t)&&void 0}function ve(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)}function ye(e,t){return Math.floor(e.getMonth(t)/3)+1}function we(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:ve(e,t,n)&&ye(e,t)===ye(e,n)}function ke(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:ve(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function _e(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function Oe(e,t,n,r){var o=be(n,r);return"boolean"===typeof o?o:ve(e,n,r)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function xe(e,t,n){return _e(e,t,n)&&function(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function Ce(e,t,n,r){return!!(t&&n&&r)&&(!_e(e,t,r)&&!_e(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function je(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"===typeof o?o(e):n.locale.format(r.locale,e,o)}function Se(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!==typeof o[0]?n.locale.parse(r.locale,e,o):null}function Pe(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){for(var a=n;a<=i;){var s=void 0;switch(e){case"date":if(s=o.setDate(t,a),!r(s))return!1;break;case"month":if(!Pe({cellDate:s=o.setMonth(t,a),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!Pe({cellDate:s=o.setYear(t,a),mode:"year",generateConfig:o,disabledDate:r}))return!1}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return i("date",1,o.getDate(o.getEndDate(t)));case"quarter":var a=3*Math.floor(o.getMonth(t)/3);return i("month",a,a+2);case"year":return i("month",0,11);case"decade":var s=o.getYear(t),c=Math.floor(s/pe)*pe;return i("year",c,c+pe-1)}}var Te=function(e){if(l.useContext(q).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.format,a="".concat(t,"-header");return l.createElement(G,{prefixCls:a},o?je(o,{locale:r,format:i,generateConfig:n}):"\xa0")},Ne=n(84);function Ae(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(e);return r}function Me(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function Re(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function Ie(e,t){return e?e[t]:null}function De(e,t,n){var r=[Ie(e,0),Ie(e,1)];return r[n]="function"===typeof t?t(r[n]):t,r[0]||r[1]?r:null}var Le=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,i=e.active,a=e.hideDisabledOptions,s="".concat(t,"-cell"),c=l.useContext(q).open,u=Object(l.useRef)(null),f=Object(l.useRef)(new Map),h=Object(l.useRef)();return Object(l.useLayoutEffect)((function(){var e=f.current.get(o);e&&!1!==c&&ae(u.current,e.offsetTop,120)}),[o]),Object(l.useLayoutEffect)((function(){if(c){var e=f.current.get(o);e&&(h.current=function(e,t){var n;return function r(){Object(oe.a)(e)?t():n=Object(re.a)((function(){r()}))}(),function(){re.a.cancel(n)}}(e,(function(){ae(u.current,e.offsetTop,0)})))}return function(){var e;null===(e=h.current)||void 0===e||e.call(h)}}),[c]),l.createElement("ul",{className:m()("".concat(t,"-column"),Object(d.a)({},"".concat(t,"-column-active"),i)),ref:u,style:{position:"relative"}},n.map((function(e){var t;return a&&e.disabled?null:l.createElement("li",{key:e.value,ref:function(t){f.current.set(e.value,t)},className:m()(s,(t={},Object(d.a)(t,"".concat(s,"-disabled"),e.disabled),Object(d.a)(t,"".concat(s,"-selected"),o===e.value),t)),onClick:function(){e.disabled||r(e.value)}},l.createElement("div",{className:"".concat(s,"-inner")},e.label))})))};function ze(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function Fe(e,t,n,r){for(var o=[],i=n>=1?0|n:1,a=e;a<=t;a+=i)o.push({label:Ae(a,2),value:a,disabled:(r||[]).includes(a)});return o}var Ve=function(e){var t,n=e.generateConfig,r=e.prefixCls,o=e.operationRef,i=e.activeColumnIndex,a=e.value,s=e.showHour,c=e.showMinute,u=e.showSecond,d=e.use12Hours,h=e.hourStep,p=void 0===h?1:h,m=e.minuteStep,g=void 0===m?1:m,b=e.secondStep,v=void 0===b?1:b,y=e.disabledHours,w=e.disabledMinutes,k=e.disabledSeconds,_=e.disabledTime,O=e.hideDisabledOptions,x=e.onSelect,C=[],E="".concat(r,"-content"),j="".concat(r,"-time-panel"),P=a?n.getHour(a):-1,T=P,N=a?n.getMinute(a):-1,A=a?n.getSecond(a):-1,M=n.getNow(),R=l.useMemo((function(){if(_){var e=_(M);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[y,w,k]}),[y,w,k,_,M]),I=Object(f.a)(R,3),D=I[0],L=I[1],z=I[2],F=Fe(0,23,p,D&&D()),V=Object(Ne.a)((function(){return F}),F,ze);d&&(t=T>=12,T%=12);var B=l.useMemo((function(){if(!d)return[!1,!1];var e=[!0,!0];return V.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[d,V]),H=Object(f.a)(B,2),W=H[0],U=H[1],K=l.useMemo((function(){return d?V.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":Ae(t,2);return Object(S.a)(Object(S.a)({},e),{},{label:n,value:t})})):V}),[d,t,V]),Y=Fe(0,59,g,L&&L(P)),q=Fe(0,59,v,z&&z(P,N)),$=function(e){var t=e.value,n=e.generateConfig,r=e.disabledMinutes,o=e.disabledSeconds,i=e.minutes,a=e.seconds,s=e.use12Hours;return function(e,c,l,u){var d=t||n.getNow(),f=Math.max(0,c),h=Math.max(0,l),p=Math.max(0,u),m=r&&r(f);if(null===m||void 0===m?void 0:m.includes(h)){var g=i.find((function(e){return!m.includes(e.value)}));if(!g)return null;h=g.value}var b=o&&o(f,h);if(null===b||void 0===b?void 0:b.includes(p)){var v=a.find((function(e){return!b.includes(e.value)}));if(!v)return null;p=v.value}return X(n,d,s&&e?f+12:f,h,p)}}({value:a,generateConfig:n,disabledMinutes:L,disabledSeconds:z,minutes:Y,seconds:q,use12Hours:d});function G(e,t,n,r,o){!1!==e&&C.push({node:l.cloneElement(t,{prefixCls:j,value:n,active:i===C.length,onSelect:o,units:r,hideDisabledOptions:O}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=C[i];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var a=t.units[(n+e*o+r)%r];if(!0!==a.disabled){t.onSelect(a.value);break}}}},G(s,l.createElement(Le,{key:"hour"}),T,K,(function(e){x($(t,e,N,A),"mouse")})),G(c,l.createElement(Le,{key:"minute"}),N,Y,(function(e){x($(t,T,e,A),"mouse")})),G(u,l.createElement(Le,{key:"second"}),A,q,(function(e){x($(t,T,N,e),"mouse")}));var Q=-1;return"boolean"===typeof t&&(Q=t?1:0),G(!0===d,l.createElement(Le,{key:"12hours"}),Q,[{label:"AM",value:0,disabled:W},{label:"PM",value:1,disabled:U}],(function(e){x($(!!e,T,N,A),"mouse")})),l.createElement("div",{className:E},C.map((function(e){return e.node})))};var Be=function(e){var t=e.generateConfig,n=e.format,r=void 0===n?"HH:mm:ss":n,o=e.prefixCls,i=e.active,a=e.operationRef,c=e.showHour,u=e.showMinute,h=e.showSecond,p=e.use12Hours,g=void 0!==p&&p,b=e.onSelect,v=e.value,y="".concat(o,"-time-panel"),w=l.useRef(),k=l.useState(-1),_=Object(f.a)(k,2),O=_[0],x=_[1],C=[c,u,h,g].filter((function(e){return!1!==e})).length;return a.current={onKeyDown:function(e){return se(e,{onLeftRight:function(e){x((O+e+C)%C)},onUpDown:function(e){-1===O?x(0):w.current&&w.current.onUpDown(e)},onEnter:function(){b(v||t.getNow(),"key"),x(-1)}})},onBlur:function(){x(-1)}},l.createElement("div",{className:m()(y,Object(d.a)({},"".concat(y,"-active"),i))},l.createElement(Te,Object(s.a)({},e,{format:r,prefixCls:o})),l.createElement(Ve,Object(s.a)({},e,{prefixCls:o,activeColumnIndex:O,operationRef:w})))},He=l.createContext({});function We(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,o=e.hoverRangedValue,i=e.isInView,a=e.isSameCell,s=e.offsetCell,c=e.today,l=e.value;return function(e){var u,f=s(e,-1),h=s(e,1),p=Ie(r,0),m=Ie(r,1),g=Ie(o,0),b=Ie(o,1),v=Ce(n,g,b,e);function y(e){return a(p,e)}function w(e){return a(m,e)}var k=a(g,e),_=a(b,e),O=(v||_)&&(!i(f)||w(f)),x=(v||k)&&(!i(h)||y(h));return u={},Object(d.a)(u,"".concat(t,"-in-view"),i(e)),Object(d.a)(u,"".concat(t,"-in-range"),Ce(n,p,m,e)),Object(d.a)(u,"".concat(t,"-range-start"),y(e)),Object(d.a)(u,"".concat(t,"-range-end"),w(e)),Object(d.a)(u,"".concat(t,"-range-start-single"),y(e)&&!m),Object(d.a)(u,"".concat(t,"-range-end-single"),w(e)&&!p),Object(d.a)(u,"".concat(t,"-range-start-near-hover"),y(e)&&(a(f,g)||Ce(n,g,b,f))),Object(d.a)(u,"".concat(t,"-range-end-near-hover"),w(e)&&(a(h,b)||Ce(n,g,b,h))),Object(d.a)(u,"".concat(t,"-range-hover"),v),Object(d.a)(u,"".concat(t,"-range-hover-start"),k),Object(d.a)(u,"".concat(t,"-range-hover-end"),_),Object(d.a)(u,"".concat(t,"-range-hover-edge-start"),O),Object(d.a)(u,"".concat(t,"-range-hover-edge-end"),x),Object(d.a)(u,"".concat(t,"-range-hover-edge-start-near-range"),O&&a(f,m)),Object(d.a)(u,"".concat(t,"-range-hover-edge-end-near-range"),x&&a(h,p)),Object(d.a)(u,"".concat(t,"-today"),a(c,e)),Object(d.a)(u,"".concat(t,"-selected"),a(l,e)),u}}var Ue=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.prefixColumn,o=e.locale,i=e.rowCount,a=e.viewDate,c=e.value,u=e.dateRender,d=l.useContext(He),f=d.rangedValue,h=d.hoverRangedValue,p=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,n,a),m="".concat(t,"-cell"),g=n.locale.getWeekFirstDay(o.locale),b=n.getNow(),v=[],y=o.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(o.locale):[]);r&&v.push(l.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var w=0;w<7;w+=1)v.push(l.createElement("th",{key:w},y[(w+g)%7]));var k=We({cellPrefixCls:m,today:b,value:c,generateConfig:n,rangedValue:r?null:f,hoverRangedValue:r?null:h,isSameCell:function(e,t){return _e(n,e,t)},isInView:function(e){return ke(n,e,a)},offsetCell:function(e,t){return n.addDate(e,t)}}),_=u?function(e){return u(e,b)}:void 0;return l.createElement(ee,Object(s.a)({},e,{rowNum:i,colNum:7,baseDate:p,getCellNode:_,getCellText:n.getDate,getCellClassName:k,getCellDate:n.addDate,titleCell:function(e){return je(e,{locale:o,format:"YYYY-MM-DD",generateConfig:n})},headerCells:v}))};var Ke=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextMonth,a=e.onPrevMonth,c=e.onNextYear,u=e.onPrevYear,d=e.onYearClick,f=e.onMonthClick;if(l.useContext(q).hideHeader)return null;var h="".concat(t,"-header"),p=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),m=n.getMonth(o),g=l.createElement("button",{type:"button",key:"year",onClick:d,tabIndex:-1,className:"".concat(t,"-year-btn")},je(o,{locale:r,format:r.yearFormat,generateConfig:n})),b=l.createElement("button",{type:"button",key:"month",onClick:f,tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?je(o,{locale:r,format:r.monthFormat,generateConfig:n}):p[m]),v=r.monthBeforeYear?[b,g]:[g,b];return l.createElement(G,Object(s.a)({},e,{prefixCls:h,onSuperPrev:u,onPrev:a,onNext:i,onSuperNext:c}),v)};var Ye=function(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.keyboardConfig,i=e.active,a=e.operationRef,c=e.generateConfig,u=e.value,f=e.viewDate,h=e.onViewDateChange,p=e.onPanelChange,g=e.onSelect,b="".concat(t,"-").concat(r,"-panel");a.current={onKeyDown:function(e){return se(e,Object(S.a)({onLeftRight:function(e){g(c.addDate(u||f,e),"key")},onCtrlLeftRight:function(e){g(c.addYear(u||f,e),"key")},onUpDown:function(e){g(c.addDate(u||f,7*e),"key")},onPageUpDown:function(e){g(c.addMonth(u||f,e),"key")}},o))}};var v=function(e){var t=c.addYear(f,e);h(t),p(null,t)},y=function(e){var t=c.addMonth(f,e);h(t),p(null,t)};return l.createElement("div",{className:m()(b,Object(d.a)({},"".concat(b,"-active"),i))},l.createElement(Ke,Object(s.a)({},e,{prefixCls:t,value:u,viewDate:f,onPrevYear:function(){v(-1)},onNextYear:function(){v(1)},onPrevMonth:function(){y(-1)},onNextMonth:function(){y(1)},onMonthClick:function(){p("month",f)},onYearClick:function(){p("year",f)}})),l.createElement(Ue,Object(s.a)({},e,{onSelect:function(e){return g(e,"mouse")},prefixCls:t,value:u,viewDate:f,rowCount:6})))},qe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");var $e=function(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,o=e.value,i=e.defaultValue,a=e.disabledTime,c=e.showTime,u=e.onSelect,h="".concat(t,"-datetime-panel"),p=l.useState(null),g=Object(f.a)(p,2),b=g[0],v=g[1],y=l.useRef({}),w=l.useRef({}),k="object"===Object(K.a)(c)?Object(S.a)({},c):{},_=function(e){w.current.onBlur&&w.current.onBlur(e),v(null)};n.current={onKeyDown:function(e){if(e.which===Y.a.TAB){var t=function(e){var t=qe.indexOf(b)+e;return qe[t]||null}(e.shiftKey?-1:1);return v(t),t&&e.preventDefault(),!0}if(b){var n="date"===b?y:w;return n.current&&n.current.onKeyDown&&n.current.onKeyDown(e),!0}return!![Y.a.LEFT,Y.a.RIGHT,Y.a.UP,Y.a.DOWN].includes(e.which)&&(v("date"),!0)},onBlur:_,onClose:_};var O=function(e,t){var n=e;"date"===t&&!o&&k.defaultValue?(n=r.setHour(n,r.getHour(k.defaultValue)),n=r.setMinute(n,r.getMinute(k.defaultValue)),n=r.setSecond(n,r.getSecond(k.defaultValue))):"time"===t&&!o&&i&&(n=r.setYear(n,r.getYear(i)),n=r.setMonth(n,r.getMonth(i)),n=r.setDate(n,r.getDate(i))),u&&u(n,"mouse")},x=a?a(o||null):{};return l.createElement("div",{className:m()(h,Object(d.a)({},"".concat(h,"-active"),b))},l.createElement(Ye,Object(s.a)({},e,{operationRef:y,active:"date"===b,onSelect:function(e){O(J(r,e,o||"object"!==Object(K.a)(c)?null:c.defaultValue),"date")}})),l.createElement(Be,Object(s.a)({},e,{format:void 0},k,x,{disabledTime:null,defaultValue:void 0,operationRef:w,active:"time"===b,onSelect:function(e){O(e,"time")}})))};var Ge=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i="".concat(t,"-cell"),a="".concat(t,"-week-panel-row");return l.createElement(Ye,Object(s.a)({},e,{panelName:"week",prefixColumn:function(e){return l.createElement("td",{key:"week",className:m()(i,"".concat(i,"-week"))},n.locale.getWeek(r.locale,e))},rowClassName:function(e){return m()(a,Object(d.a)({},"".concat(a,"-selected"),Oe(n,r.locale,o,e)))},keyboardConfig:{onLeftRight:null}}))};var Qe=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,c=e.onYearClick;if(l.useContext(q).hideHeader)return null;var u="".concat(t,"-header");return l.createElement(G,Object(s.a)({},e,{prefixCls:u,onSuperPrev:a,onSuperNext:i}),l.createElement("button",{type:"button",onClick:c,className:"".concat(t,"-year-btn")},je(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var Xe=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=e.monthCellRender,c=l.useContext(He),u=c.rangedValue,d=c.hoverRangedValue,f=We({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:i,rangedValue:u,hoverRangedValue:d,isSameCell:function(e,t){return ke(i,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return i.addMonth(e,t)}}),h=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),p=i.setMonth(o,0),m=a?function(e){return a(e,n)}:void 0;return l.createElement(ee,Object(s.a)({},e,{rowNum:4,colNum:3,baseDate:p,getCellNode:m,getCellText:function(e){return n.monthFormat?je(e,{locale:n,format:n.monthFormat,generateConfig:i}):h[i.getMonth(e)]},getCellClassName:f,getCellDate:i.addMonth,titleCell:function(e){return je(e,{locale:n,format:"YYYY-MM",generateConfig:i})}}))};var Je=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.onPanelChange,u=e.onSelect,d="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return se(e,{onLeftRight:function(e){u(o.addMonth(i||a,e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e),"key")},onUpDown:function(e){u(o.addMonth(i||a,3*e),"key")},onEnter:function(){c("date",i||a)}})}};var f=function(e){var t=o.addYear(a,e);r(t),c(null,t)};return l.createElement("div",{className:d},l.createElement(Qe,Object(s.a)({},e,{prefixCls:t,onPrevYear:function(){f(-1)},onNextYear:function(){f(1)},onYearClick:function(){c("year",a)}})),l.createElement(Xe,Object(s.a)({},e,{prefixCls:t,onSelect:function(e){u(e,"mouse"),c("date",e)}})))};var Ze=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextYear,a=e.onPrevYear,c=e.onYearClick;if(l.useContext(q).hideHeader)return null;var u="".concat(t,"-header");return l.createElement(G,Object(s.a)({},e,{prefixCls:u,onSuperPrev:a,onSuperNext:i}),l.createElement("button",{type:"button",onClick:c,className:"".concat(t,"-year-btn")},je(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var et=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,i=e.generateConfig,a=l.useContext(He),c=a.rangedValue,u=a.hoverRangedValue,d=We({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(e,t){return we(i,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return i.addMonth(e,3*t)}}),f=i.setDate(i.setMonth(o,0),1);return l.createElement(ee,Object(s.a)({},e,{rowNum:1,colNum:4,baseDate:f,getCellText:function(e){return je(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:d,getCellDate:function(e,t){return i.addMonth(e,3*t)},titleCell:function(e){return je(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:i})}}))};var tt=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.onPanelChange,u=e.onSelect,d="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return se(e,{onLeftRight:function(e){u(o.addMonth(i||a,3*e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e),"key")},onUpDown:function(e){u(o.addYear(i||a,e),"key")}})}};var f=function(e){var t=o.addYear(a,e);r(t),c(null,t)};return l.createElement("div",{className:d},l.createElement(Ze,Object(s.a)({},e,{prefixCls:t,onPrevYear:function(){f(-1)},onNextYear:function(){f(1)},onYearClick:function(){c("year",a)}})),l.createElement(et,Object(s.a)({},e,{prefixCls:t,onSelect:function(e){u(e,"mouse")}})))};var nt=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecade,i=e.onNextDecade,a=e.onDecadeClick;if(l.useContext(q).hideHeader)return null;var c="".concat(t,"-header"),u=n.getYear(r),d=Math.floor(u/ot)*ot,f=d+ot-1;return l.createElement(G,Object(s.a)({},e,{prefixCls:c,onSuperPrev:o,onSuperNext:i}),l.createElement("button",{type:"button",onClick:a,className:"".concat(t,"-decade-btn")},d,"-",f))};var rt=function(e){var t=e.prefixCls,n=e.value,r=e.viewDate,o=e.locale,i=e.generateConfig,a=l.useContext(He),c=a.rangedValue,u=a.hoverRangedValue,d="".concat(t,"-cell"),f=i.getYear(r),h=Math.floor(f/ot)*ot,p=h+ot-1,m=i.setYear(r,h-Math.ceil((12-ot)/2)),g=We({cellPrefixCls:d,value:n,generateConfig:i,rangedValue:c,hoverRangedValue:u,isSameCell:function(e,t){return ve(i,e,t)},isInView:function(e){var t=i.getYear(e);return h<=t&&t<=p},offsetCell:function(e,t){return i.addYear(e,t)}});return l.createElement(ee,Object(s.a)({},e,{rowNum:4,colNum:3,baseDate:m,getCellText:i.getYear,getCellClassName:g,getCellDate:i.addYear,titleCell:function(e){return je(e,{locale:o,format:"YYYY",generateConfig:i})}}))},ot=10;var it=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,i=e.value,a=e.viewDate,c=e.sourceMode,u=e.onSelect,d=e.onPanelChange,f="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return se(e,{onLeftRight:function(e){u(o.addYear(i||a,e),"key")},onCtrlLeftRight:function(e){u(o.addYear(i||a,e*ot),"key")},onUpDown:function(e){u(o.addYear(i||a,3*e),"key")},onEnter:function(){d("date"===c?"date":"month",i||a)}})}};var h=function(e){var t=o.addYear(a,10*e);r(t),d(null,t)};return l.createElement("div",{className:f},l.createElement(nt,Object(s.a)({},e,{prefixCls:t,onPrevDecade:function(){h(-1)},onNextDecade:function(){h(1)},onDecadeClick:function(){d("decade",a)}})),l.createElement(rt,Object(s.a)({},e,{prefixCls:t,onSelect:function(e){d("date"===c?"date":"month",e),u(e,"mouse")}})))};function at(e,t,n){return n?l.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function st(e){var t,n,r=e.prefixCls,o=e.rangeList,i=void 0===o?[]:o,a=e.components,s=void 0===a?{}:a,c=e.needConfirmButton,u=e.onNow,d=e.onOk,f=e.okDisabled,h=e.showNow,p=e.locale;if(i.length){var m=s.rangeItem||"span";t=l.createElement(l.Fragment,null,i.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseEnter,i=e.onMouseLeave;return l.createElement("li",{key:t,className:"".concat(r,"-preset")},l.createElement(m,{onClick:n,onMouseEnter:o,onMouseLeave:i},t))})))}if(c){var g=s.button||"button";u&&!t&&!1!==h&&(t=l.createElement("li",{className:"".concat(r,"-now")},l.createElement("a",{className:"".concat(r,"-now-btn"),onClick:u},p.now))),n=c&&l.createElement("li",{className:"".concat(r,"-ok")},l.createElement(g,{disabled:f,onClick:d},p.ok))}return t||n?l.createElement("ul",{className:"".concat(r,"-ranges")},t,n):null}var ct=["date","month"];var lt=function(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.className,a=e.style,c=e.locale,u=e.generateConfig,h=e.value,p=e.defaultValue,g=e.pickerValue,b=e.defaultPickerValue,v=e.disabledDate,y=e.mode,w=e.picker,k=void 0===w?"date":w,_=e.tabIndex,O=void 0===_?0:_,x=e.showNow,C=e.showTime,E=e.showToday,j=e.renderExtraFooter,P=e.hideHeader,T=e.onSelect,N=e.onChange,A=e.onPanelChange,M=e.onMouseDown,R=e.onPickerValueChange,I=e.onOk,D=e.components,L=e.direction,z=e.hourStep,F=void 0===z?1:z,V=e.minuteStep,B=void 0===V?1:V,H=e.secondStep,W=void 0===H?1:H,$="date"===k&&!!C||"time"===k,G=24%F===0,Q=60%B===0,Z=60%W===0,ee=l.useContext(q),te=ee.operationRef,ne=ee.panelRef,re=ee.onSelect,oe=ee.hideRanges,ie=ee.defaultOpenValue,ae=l.useContext(He),se=ae.inRange,ce=ae.panelPosition,le=ae.rangedValue,ue=ae.hoverRangedValue,de=l.useRef({}),he=l.useRef(!0),pe=Object(U.a)(null,{value:h,defaultValue:p,postState:function(e){return!e&&ie&&"time"===k?ie:e}}),me=Object(f.a)(pe,2),be=me[0],ve=me[1],ye=Object(U.a)(null,{value:g,defaultValue:b||be,postState:function(e){var t=u.getNow();if(!e)return t;if(!be&&C){var n="object"===Object(K.a)(C)?C.defaultValue:p;return J(u,Array.isArray(e)?e[0]:e,n||t)}return Array.isArray(e)?e[0]:e}}),we=Object(f.a)(ye,2),ke=we[0],_e=we[1],Oe=function(e){_e(e),R&&R(e)},Ce=function(e){var t=fe[k];return t?t(e):e},Ee=Object(U.a)((function(){return"time"===k?"time":Ce("date")}),{value:y}),je=Object(f.a)(Ee,2),Se=je[0],Pe=je[1];l.useEffect((function(){Pe(k)}),[k]);var Te,Ne=l.useState((function(){return Se})),Ae=Object(f.a)(Ne,2),Me=Ae[0],Re=Ae[1],Ie=function(e,t){(Se===k||arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&(ve(e),T&&T(e),re&&re(e,t),!N||xe(u,e,be)||(null===v||void 0===v?void 0:v(e))||N(e))},De=function(e){if(de.current&&de.current.onKeyDown){var t=!0,n=e.which;if([Y.a.LEFT,Y.a.RIGHT,Y.a.UP,Y.a.DOWN,Y.a.PAGE_UP,Y.a.PAGE_DOWN,Y.a.ENTER].includes(n)&&(e.preventDefault(),n!==Y.a.ENTER&&0===O&&(t=function(e){if(ct.includes(Se)){var t,n,r="date"===Se;switch(n=e===Y.a.PAGE_UP||e===Y.a.PAGE_DOWN?r?u.addMonth:u.addYear:r?u.addDate:u.addMonth,e){case Y.a.LEFT:case Y.a.PAGE_UP:t=n(ke,-1);break;case Y.a.RIGHT:case Y.a.PAGE_DOWN:t=n(ke,1);break;case Y.a.UP:case Y.a.DOWN:t=n(ke,Number("".concat(e===Y.a.UP?"-":"").concat(r?7:3)))}if(t)return!(null===v||void 0===v?void 0:v(t))}return!0}(n))),t)return de.current.onKeyDown(e)}return Object(i.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1};te&&"right"!==ce&&(te.current={onKeyDown:De,onClose:function(){de.current&&de.current.onClose&&de.current.onClose()}}),l.useEffect((function(){h&&!he.current&&_e(h)}),[h]),l.useEffect((function(){he.current=!1}),[]);var Le,ze,Fe,Ve=Object(S.a)(Object(S.a)({},e),{},{operationRef:de,prefixCls:r,viewDate:ke,value:be,onViewDateChange:Oe,sourceMode:Me,onPanelChange:function(e,t){var n=Ce(e||Se);Re(Se),Pe(n),A&&(Se!==n||xe(u,ke,ke))&&A(t,n)},disabledDate:v});switch(delete Ve.onChange,delete Ve.onSelect,Se){case"decade":Te=l.createElement(ge,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;case"year":Te=l.createElement(it,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;case"month":Te=l.createElement(Je,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;case"quarter":Te=l.createElement(tt,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;case"week":Te=l.createElement(Ge,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;case"time":delete Ve.showTime,Te=l.createElement(Be,Object(s.a)({},Ve,"object"===Object(K.a)(C)?C:null,{onSelect:function(e,t){Oe(e),Ie(e,t)}}));break;default:Te=C?l.createElement($e,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}})):l.createElement(Ye,Object(s.a)({},Ve,{onSelect:function(e,t){Oe(e),Ie(e,t)}}))}if(oe||(Le=at(r,Se,j),ze=st({prefixCls:r,components:D,needConfirmButton:$,okDisabled:!be||v&&v(be),locale:c,showNow:x,onNow:$&&function(){var e=u.getNow(),t=function(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a<e)return[a,60-o,60-i];var s=Math.floor(t/o)*o;return s<t?[a,s,60-i]:[a,s,Math.floor(n/i)*i]}(u.getHour(e),u.getMinute(e),u.getSecond(e),G?F:1,Q?B:1,Z?W:1),n=X(u,e,t[0],t[1],t[2]);Ie(n,"submit")},onOk:function(){be&&(Ie(be,"submit",!0),I&&I(be))}})),E&&"date"===Se&&"date"===k&&!C){var We=u.getNow(),Ue="".concat(r,"-today-btn"),Ke=v&&v(We);Fe=l.createElement("a",{className:m()(Ue,Ke&&"".concat(Ue,"-disabled")),"aria-disabled":Ke,onClick:function(){Ke||Ie(We,"mouse",!0)}},c.today)}return l.createElement(q.Provider,{value:Object(S.a)(Object(S.a)({},ee),{},{mode:Se,hideHeader:"hideHeader"in e?P:ee.hideHeader,hidePrevBtn:se&&"right"===ce,hideNextBtn:se&&"left"===ce})},l.createElement("div",{tabIndex:O,className:m()("".concat(r,"-panel"),o,(t={},Object(d.a)(t,"".concat(r,"-panel-has-range"),le&&le[0]&&le[1]),Object(d.a)(t,"".concat(r,"-panel-has-range-hover"),ue&&ue[0]&&ue[1]),Object(d.a)(t,"".concat(r,"-panel-rtl"),"rtl"===L),t)),style:a,onKeyDown:De,onBlur:function(e){de.current&&de.current.onBlur&&de.current.onBlur(e)},onMouseDown:M,ref:ne},Te,Le||ze||Fe?l.createElement("div",{className:"".concat(r,"-footer")},Le,ze,Fe):null))},ut=n(96),dt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var ft=function(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,i=e.visible,a=e.dropdownClassName,s=e.dropdownAlign,c=e.transitionName,u=e.getPopupContainer,f=e.children,h=e.range,p=e.popupPlacement,g=e.direction,b="".concat(n,"-dropdown");return l.createElement(ut.a,{showAction:[],hideAction:[],popupPlacement:void 0!==p?p:"rtl"===g?"bottomRight":"bottomLeft",builtinPlacements:dt,prefixCls:b,popupTransitionName:c,popup:r,popupAlign:s,popupVisible:i,popupClassName:m()(a,(t={},Object(d.a)(t,"".concat(b,"-range"),h),Object(d.a)(t,"".concat(b,"-rtl"),"rtl"===g),t)),popupStyle:o,getPopupContainer:u},f)};function ht(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeyDown,a=e.onKeyDown,s=e.blurToCancel,c=e.onSubmit,u=e.onCancel,d=e.onFocus,h=e.onBlur,p=e.currentFocusedKey,m=e.key,g=void 0===m?"start":m,b=Object(l.useState)(!1),v=Object(f.a)(b,2),y=v[0],w=v[1],k=Object(l.useState)(!1),_=Object(f.a)(k,2),O=_[0],x=_[1],C=Object(l.useRef)(),E=Object(l.useRef)(!1),j=Object(l.useRef)(!1),S=Object(l.useRef)(!1),P={onMouseDown:function(){w(!0),o(!0)},onKeyDown:function(e){if(a(e,(function(){S.current=!0})),!S.current){switch(e.which){case Y.a.ENTER:return t?!1!==c()&&w(!0):o(!0),void e.preventDefault();case Y.a.TAB:return void(y&&t&&!e.shiftKey?(w(!1),e.preventDefault()):!y&&t&&!i(e)&&e.shiftKey&&(w(!0),e.preventDefault()));case Y.a.ESC:return w(!0),void u()}t||[Y.a.SHIFT].includes(e.which)?y||i(e):o(!0)}},onFocus:function(e){w(!0),x(!0),p&&(p.current=g),clearTimeout(C.current),d&&d(e)},onBlur:function(e){!E.current&&r(document.activeElement)?(s?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&u()}),0):t&&(o(!1),j.current&&c()),x(!1),p?(p.current="",C.current=setTimeout((function(){p.current||null===h||void 0===h||h(e)}),100)):null===h||void 0===h||h(e)):E.current=!1}};return Object(l.useEffect)((function(){j.current=!1}),[t]),Object(l.useEffect)((function(){j.current=!0}),[n]),Object(l.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e),i=r(n);t?i?O&&!i||o(!1):(E.current=!0,requestAnimationFrame((function(){E.current=!1}))):O&&!i&&(E.current=!0)},!ue&&"undefined"!==typeof window&&window.addEventListener&&(ue=function(e){Object(ne.a)(de).forEach((function(t){t(e)}))},window.addEventListener("mousedown",ue)),de.add(e),function(){de.delete(e),0===de.size&&(window.removeEventListener("mousedown",ue),ue=null)};var e})),Object(l.useEffect)((function(){return function(){return clearTimeout(C.current)}}),[]),[P,{focused:O,typing:y}]}function pt(e){var t=e.valueTexts,n=e.onTextChange,r=l.useState(""),o=Object(f.a)(r,2),i=o[0],a=o[1],s=l.useRef([]);function c(){a(s.current[0])}return s.current=t,l.useEffect((function(){t.every((function(e){return e!==i}))&&c()}),[t.join("||")]),[i,function(e){a(e),n(e)},c]}var mt=n(91);function gt(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return Object(Ne.a)((function(){if(!e)return[[""],""];for(var t="",i=[],a=0;a<n.length;a+=1){var s=n[a],c=je(e,{generateConfig:r,locale:o,format:s});i.push(c),0===a&&(t=c)}return[i,t]}),[e,n,o],(function(e,t){return!xe(r,e[0],t[0])||!Object(mt.a)(e[1],t[1],!0)||!Object(mt.a)(e[2],t[2],!0)}))}function bt(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,i=Object(l.useState)(null),a=Object(f.a)(i,2),s=a[0],c=a[1],u=Object(l.useRef)(null);function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(u.current),t?c(e):u.current=requestAnimationFrame((function(){c(e)}))}var h=gt(s,{formatList:n,generateConfig:r,locale:o}),p=Object(f.a)(h,2)[1];function m(){d(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return Object(l.useEffect)((function(){m(!0)}),[e]),Object(l.useEffect)((function(){return function(){return cancelAnimationFrame(u.current)}}),[]),[p,function(e){d(e)},m]}function vt(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.id,a=e.tabIndex,c=e.style,u=e.className,h=e.dropdownClassName,p=e.dropdownAlign,g=e.popupStyle,b=e.transitionName,v=e.generateConfig,y=e.locale,w=e.inputReadOnly,k=e.allowClear,_=e.autoFocus,O=e.showTime,x=e.picker,C=void 0===x?"date":x,E=e.format,j=e.use12Hours,P=e.value,T=e.defaultValue,N=e.open,A=e.defaultOpen,M=e.defaultOpenValue,R=e.suffixIcon,I=e.clearIcon,D=e.disabled,L=e.disabledDate,z=e.placeholder,F=e.getPopupContainer,V=e.pickerRef,B=e.panelRender,H=e.onChange,W=e.onOpenChange,K=e.onFocus,Y=e.onBlur,$=e.onMouseDown,G=e.onMouseUp,Q=e.onMouseEnter,X=e.onMouseLeave,J=e.onContextMenu,Z=e.onClick,ee=e.onKeyDown,te=e.onSelect,ne=e.direction,re=e.autoComplete,oe=void 0===re?"off":re,ie=e.inputRender,ae=l.useRef(null),se="date"===C&&!!O||"time"===C;var ue=Me(ce(E,C,O,j)),de=l.useRef(null),fe=l.useRef(null),pe=l.useRef(null),me=Object(U.a)(null,{value:P,defaultValue:T}),ge=Object(f.a)(me,2),be=ge[0],ve=ge[1],ye=l.useState(be),we=Object(f.a)(ye,2),ke=we[0],_e=we[1],Oe=l.useRef(null),Ce=Object(U.a)(!1,{value:N,defaultValue:A,postState:function(e){return!D&&e},onChange:function(e){W&&W(e),!e&&Oe.current&&Oe.current.onClose&&Oe.current.onClose()}}),Ee=Object(f.a)(Ce,2),Pe=Ee[0],Te=Ee[1],Ne=gt(ke,{formatList:ue,generateConfig:v,locale:y}),Ae=Object(f.a)(Ne,2),Ie=Ae[0],De=Ae[1],Le=pt({valueTexts:Ie,onTextChange:function(e){var t=Se(e,{locale:y,formatList:ue,generateConfig:v});!t||L&&L(t)||_e(t)}}),ze=Object(f.a)(Le,3),Fe=ze[0],Ve=ze[1],Be=ze[2],He=function(e){_e(e),ve(e),H&&!xe(v,be,e)&&H(e,e?je(e,{generateConfig:v,locale:y,format:ue[0]}):"")},We=function(e){D&&e||Te(e)},Ue=ht({blurToCancel:se,open:Pe,value:Fe,triggerOpen:We,forwardKeyDown:function(e){return Pe&&Oe.current&&Oe.current.onKeyDown?Oe.current.onKeyDown(e):(Object(i.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!he([de.current,fe.current,pe.current],e)},onSubmit:function(){return!(!ke||L&&L(ke))&&(He(ke),We(!1),Be(),!0)},onCancel:function(){We(!1),_e(be),Be()},onKeyDown:function(e,t){null===ee||void 0===ee||ee(e,t)},onFocus:K,onBlur:Y}),Ke=Object(f.a)(Ue,2),Ye=Ke[0],qe=Ke[1],$e=qe.focused,Ge=qe.typing;l.useEffect((function(){Pe||(_e(be),Ie.length&&""!==Ie[0]?De!==Fe&&Be():Ve(""))}),[Pe,Ie]),l.useEffect((function(){Pe||Be()}),[C]),l.useEffect((function(){_e(be)}),[be]),V&&(V.current={focus:function(){ae.current&&ae.current.focus()},blur:function(){ae.current&&ae.current.blur()}});var Qe=bt(Fe,{formatList:ue,generateConfig:v,locale:y}),Xe=Object(f.a)(Qe,3),Je=Xe[0],Ze=Xe[1],et=Xe[2],tt=Object(S.a)(Object(S.a)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),nt=l.createElement(lt,Object(s.a)({},tt,{generateConfig:v,className:m()(Object(d.a)({},"".concat(r,"-panel-focused"),!Ge)),value:ke,locale:y,tabIndex:-1,onSelect:function(e){null===te||void 0===te||te(e),_e(e)},direction:ne,onPanelChange:function(t,n){var r=e.onPanelChange;et(!0),null===r||void 0===r||r(t,n)}}));B&&(nt=B(nt));var rt,ot,it=l.createElement("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},nt);R&&(rt=l.createElement("span",{className:"".concat(r,"-suffix")},R)),k&&be&&!D&&(ot=l.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),He(null),We(!1)},className:"".concat(r,"-clear"),role:"button"},I||l.createElement("span",{className:"".concat(r,"-clear-btn")})));var at=Object(S.a)(Object(S.a)(Object(S.a)({id:o,tabIndex:a,disabled:D,readOnly:w||"function"===typeof ue[0]||!Ge,value:Je||Fe,onChange:function(e){Ve(e.target.value)},autoFocus:_,placeholder:z,ref:ae,title:Fe},Ye),{},{size:le(C,ue[0],v)},Re(e)),{},{autoComplete:oe}),st=ie?ie(at):l.createElement("input",at);var ct="rtl"===ne?"bottomRight":"bottomLeft";return l.createElement(q.Provider,{value:{operationRef:Oe,hideHeader:"time"===C,panelRef:de,onSelect:function(e,t){("submit"===t||"key"!==t&&!se)&&(He(e),We(!1))},open:Pe,defaultOpenValue:M,onDateMouseEnter:Ze,onDateMouseLeave:et}},l.createElement(ft,{visible:Pe,popupElement:it,popupStyle:g,prefixCls:r,dropdownClassName:h,dropdownAlign:p,getPopupContainer:F,transitionName:b,popupPlacement:ct,direction:ne},l.createElement("div",{ref:pe,className:m()(r,u,(t={},Object(d.a)(t,"".concat(r,"-disabled"),D),Object(d.a)(t,"".concat(r,"-focused"),$e),Object(d.a)(t,"".concat(r,"-rtl"),"rtl"===ne),t)),style:c,onMouseDown:$,onMouseUp:G,onMouseEnter:Q,onMouseLeave:X,onContextMenu:J,onClick:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===Z||void 0===Z||Z.apply(void 0,t),ae.current&&(ae.current.focus(),We(!0))}},l.createElement("div",{className:m()("".concat(r,"-input"),Object(d.a)({},"".concat(r,"-input-placeholder"),!!Je)),ref:fe},st,rt,ot))))}var yt=function(e){Object(H.a)(n,e);var t=Object(W.a)(n);function n(){var e;Object(V.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).pickerRef=l.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(B.a)(n,[{key:"render",value:function(){return l.createElement(vt,Object(s.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(l.Component),wt=yt;function kt(e,t,n,r){var o=Ee(e,n,r,1);function i(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return i((function(e,t){return function(e,t,n){var r=be(t,n);return"boolean"===typeof r?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(r,e,t)}));case"quarter":case"month":return i((function(e,t){return ve(r,e,t)}));default:return i((function(e,t){return ke(r,e,t)}))}}function _t(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,i=l.useState((function(){return[Ie(r,0),Ie(r,1)]})),a=Object(f.a)(i,2),s=a[0],c=a[1],u=l.useState(null),d=Object(f.a)(u,2),h=d[0],p=d[1],m=Ie(t,0),g=Ie(t,1);return[function(e){return s[e]?s[e]:Ie(h,e)||function(e,t,n,r){var o=Ie(e,0),i=Ie(e,1);if(0===t)return o;if(o&&i)switch(kt(o,i,n,r)){case"same":case"closing":return o;default:return Ee(i,n,r,-1)}return o}(t,e,n,o)||m||g||o.getNow()},function(e,n){if(e){var r=De(h,e,n);c(De(s,null,n)||[null,null]);var o=(n+1)%2;Ie(t,o)||(r=De(r,e,o)),p(r)}else(m||g)&&p(null)}]}function Ot(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function xt(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function Ct(e){var t,n,r,o=e.prefixCls,a=void 0===o?"rc-picker":o,c=e.id,u=e.style,h=e.className,p=e.popupStyle,g=e.dropdownClassName,b=e.transitionName,v=e.dropdownAlign,y=e.getPopupContainer,w=e.generateConfig,k=e.locale,_=e.placeholder,O=e.autoFocus,x=e.disabled,C=e.format,E=e.picker,j=void 0===E?"date":E,P=e.showTime,T=e.use12Hours,N=e.separator,A=void 0===N?"~":N,M=e.value,R=e.defaultValue,I=e.defaultPickerValue,D=e.open,L=e.defaultOpen,z=e.disabledDate,F=e.disabledTime,V=e.dateRender,B=e.panelRender,H=e.ranges,W=e.allowEmpty,Y=e.allowClear,$=e.suffixIcon,G=e.clearIcon,Q=e.pickerRef,X=e.inputReadOnly,J=e.mode,Z=e.renderExtraFooter,ee=e.onChange,te=e.onOpenChange,ne=e.onPanelChange,re=e.onCalendarChange,oe=e.onFocus,ie=e.onBlur,ae=e.onMouseDown,se=e.onMouseUp,ue=e.onMouseEnter,de=e.onMouseLeave,fe=e.onClick,pe=e.onOk,me=e.onKeyDown,ge=e.components,be=e.order,ve=e.direction,ke=e.activePickerIndex,Ce=e.autoComplete,Pe=void 0===Ce?"off":Ce,Te="date"===j&&!!P||"time"===j,Ne=Object(l.useRef)({}),Ae=Object(l.useRef)(null),Le=Object(l.useRef)(null),ze=Object(l.useRef)(null),Fe=Object(l.useRef)(null),Ve=Object(l.useRef)(null),Be=Object(l.useRef)(null),We=Object(l.useRef)(null),Ue=Object(l.useRef)(null);var Ke=Me(ce(C,j,P,T)),Ye=Object(U.a)(0,{value:ke}),qe=Object(f.a)(Ye,2),$e=qe[0],Ge=qe[1],Qe=Object(l.useRef)(null),Xe=l.useMemo((function(){return Array.isArray(x)?x:[x||!1,x||!1]}),[x]),Je=Object(U.a)(null,{value:M,defaultValue:R,postState:function(e){return"time"!==j||be?Ot(e,w):e}}),Ze=Object(f.a)(Je,2),et=Ze[0],tt=Ze[1],nt=_t({values:et,picker:j,defaultDates:I,generateConfig:w}),rt=Object(f.a)(nt,2),ot=rt[0],it=rt[1],ct=Object(U.a)(et,{postState:function(e){var t=e;if(Xe[0]&&Xe[1])return t;for(var n=0;n<2;n+=1)!Xe[n]||t||Ie(t,n)||Ie(W,n)||(t=De(t,w.getNow(),n));return t}}),ut=Object(f.a)(ct,2),dt=ut[0],mt=ut[1],vt=Object(U.a)([j,j],{value:J}),yt=Object(f.a)(vt,2),wt=yt[0],kt=yt[1];Object(l.useEffect)((function(){kt([j,j])}),[j]);var Ct=function(e,t){kt(e),ne&&ne(t,e)},Et=function(e,t,n){var r=e.picker,o=e.locale,i=e.selectedValue,a=e.disabledDate,s=e.disabled,c=e.generateConfig,u=Ie(i,0),d=Ie(i,1);function f(e){return c.locale.getWeekFirstDate(o.locale,e)}function h(e){return 100*c.getYear(e)+c.getMonth(e)}function p(e){return 10*c.getYear(e)+ye(c,e)}return[l.useCallback((function(e){if(a&&a(e))return!0;if(s[1]&&d)return!_e(c,e,d)&&c.isAfter(e,d);if(t&&d)switch(r){case"quarter":return p(e)>p(d);case"month":return h(e)>h(d);case"week":return f(e)>f(d);default:return!_e(c,e,d)&&c.isAfter(e,d)}return!1}),[a,s[1],d,t]),l.useCallback((function(e){if(a&&a(e))return!0;if(s[0]&&u)return!_e(c,e,d)&&c.isAfter(u,e);if(n&&u)switch(r){case"quarter":return p(e)<p(u);case"month":return h(e)<h(u);case"week":return f(e)<f(u);default:return!_e(c,e,u)&&c.isAfter(u,e)}return!1}),[a,s[0],u,n])]}({picker:j,selectedValue:dt,locale:k,disabled:Xe,disabledDate:z,generateConfig:w},Ne.current[1],Ne.current[0]),jt=Object(f.a)(Et,2),St=jt[0],Pt=jt[1],Tt=Object(U.a)(!1,{value:D,defaultValue:L,postState:function(e){return!Xe[$e]&&e},onChange:function(e){te&&te(e),!e&&Qe.current&&Qe.current.onClose&&Qe.current.onClose()}}),Nt=Object(f.a)(Tt,2),At=Nt[0],Mt=Nt[1],Rt=At&&0===$e,It=At&&1===$e,Dt=Object(l.useState)(0),Lt=Object(f.a)(Dt,2),zt=Lt[0],Ft=Lt[1];Object(l.useEffect)((function(){!At&&Ae.current&&Ft(Ae.current.offsetWidth)}),[At]);var Vt=l.useRef();function Bt(e,t){if(e)clearTimeout(Vt.current),Ne.current[t]=!0,Ge(t),Mt(e),At||it(null,t);else if($e===t){Mt(e);var n=Ne.current;Vt.current=setTimeout((function(){n===Ne.current&&(Ne.current={})}))}}function Ht(e){Bt(!0,e),setTimeout((function(){var t=[Be,We][e];t.current&&t.current.focus()}),0)}function Wt(e,t){var n=e,r=Ie(n,0),o=Ie(n,1);r&&o&&w.isAfter(r,o)&&("week"===j&&!Oe(w,k.locale,r,o)||"quarter"===j&&!we(w,r,o)||"week"!==j&&"quarter"!==j&&"time"!==j&&!_e(w,r,o)?(0===t?(n=[r,null],o=null):(r=null,n=[null,o]),Ne.current=Object(d.a)({},t,!0)):"time"===j&&!1===be||(n=Ot(n,w))),mt(n);var i=n&&n[0]?je(n[0],{generateConfig:w,locale:k,format:Ke[0]}):"",a=n&&n[1]?je(n[1],{generateConfig:w,locale:k,format:Ke[0]}):"";re&&re(n,[i,a],{range:0===t?"start":"end"});var s=xt(r,0,Xe,W),c=xt(o,1,Xe,W);(null===n||s&&c)&&(tt(n),!ee||xe(w,Ie(et,0),r)&&xe(w,Ie(et,1),o)||ee(n,[i,a]));var l=null;0!==t||Xe[1]?1!==t||Xe[0]||(l=0):l=1,null===l||l===$e||Ne.current[l]&&Ie(n,l)||!Ie(n,t)?Bt(!1,t):Ht(l)}var Ut=function(e){return At&&Qe.current&&Qe.current.onKeyDown?Qe.current.onKeyDown(e):(Object(i.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Kt={formatList:Ke,generateConfig:w,locale:k},Yt=gt(Ie(dt,0),Kt),qt=Object(f.a)(Yt,2),$t=qt[0],Gt=qt[1],Qt=gt(Ie(dt,1),Kt),Xt=Object(f.a)(Qt,2),Jt=Xt[0],Zt=Xt[1],en=function(e,t){var n=Se(e,{locale:k,formatList:Ke,generateConfig:w});n&&!(0===t?St:Pt)(n)&&(mt(De(dt,n,t)),it(n,t))},tn=pt({valueTexts:$t,onTextChange:function(e){return en(e,0)}}),nn=Object(f.a)(tn,3),rn=nn[0],on=nn[1],an=nn[2],sn=pt({valueTexts:Jt,onTextChange:function(e){return en(e,1)}}),cn=Object(f.a)(sn,3),ln=cn[0],un=cn[1],dn=cn[2],fn=Object(l.useState)(null),hn=Object(f.a)(fn,2),pn=hn[0],mn=hn[1],gn=Object(l.useState)(null),bn=Object(f.a)(gn,2),vn=bn[0],yn=bn[1],wn=bt(rn,{formatList:Ke,generateConfig:w,locale:k}),kn=Object(f.a)(wn,3),_n=kn[0],On=kn[1],xn=kn[2],Cn=bt(ln,{formatList:Ke,generateConfig:w,locale:k}),En=Object(f.a)(Cn,3),jn=En[0],Sn=En[1],Pn=En[2],Tn=function(e,t){return{blurToCancel:Te,forwardKeyDown:Ut,onBlur:ie,isClickOutside:function(e){return!he([Le.current,ze.current,Fe.current,Ae.current],e)},onFocus:function(t){Ge(e),oe&&oe(t)},triggerOpen:function(t){Bt(t,e)},onSubmit:function(){if(!dt||z&&z(dt[e]))return!1;Wt(dt,e),t()},onCancel:function(){Bt(!1,e),mt(et),t()}}},Nn=Object(l.useRef)(""),An=ht(Object(S.a)(Object(S.a)({},Tn(0,an)),{},{open:Rt,value:rn,currentFocusedKey:Nn,key:"start",onKeyDown:function(e,t){null===me||void 0===me||me(e,t)}})),Mn=Object(f.a)(An,2),Rn=Mn[0],In=Mn[1],Dn=In.focused,Ln=In.typing,zn=ht(Object(S.a)(Object(S.a)({},Tn(1,dn)),{},{open:It,value:ln,currentFocusedKey:Nn,key:"end",onKeyDown:function(e,t){null===me||void 0===me||me(e,t)}})),Fn=Object(f.a)(zn,2),Vn=Fn[0],Bn=Fn[1],Hn=Bn.focused,Wn=Bn.typing,Un=et&&et[0]?je(et[0],{locale:k,format:"YYYYMMDDHHmmss",generateConfig:w}):"",Kn=et&&et[1]?je(et[1],{locale:k,format:"YYYYMMDDHHmmss",generateConfig:w}):"";Object(l.useEffect)((function(){At||(mt(et),$t.length&&""!==$t[0]?Gt!==rn&&an():on(""),Jt.length&&""!==Jt[0]?Zt!==ln&&dn():un(""))}),[At,$t,Jt]),Object(l.useEffect)((function(){mt(et)}),[Un,Kn]),Q&&(Q.current={focus:function(){Be.current&&Be.current.focus()},blur:function(){Be.current&&Be.current.blur(),We.current&&We.current.blur()}});var Yn=Object.keys(H||{}).map((function(e){var t=H[e],n="function"===typeof t?t():t;return{label:e,onClick:function(){Wt(n,null),Bt(!1,$e)},onMouseEnter:function(){mn(n)},onMouseLeave:function(){mn(null)}}}));function qn(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;At&&vn&&vn[0]&&vn[1]&&w.isAfter(vn[1],vn[0])&&(r=vn);var o=P;if(P&&"object"===Object(K.a)(P)&&P.defaultValue){var i=P.defaultValue;o=Object(S.a)(Object(S.a)({},P),{},{defaultValue:Ie(i,$e)||void 0})}var c=null;return V&&(c=function(e,t){return V(e,t,{range:$e?"end":"start"})}),l.createElement(He.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:pn||dt,hoverRangedValue:r}},l.createElement(lt,Object(s.a)({},e,n,{dateRender:c,showTime:o,mode:wt[$e],generateConfig:w,style:void 0,direction:ve,disabledDate:0===$e?St:Pt,disabledTime:function(e){return!!F&&F(e,0===$e?"start":"end")},className:m()(Object(d.a)({},"".concat(a,"-panel-focused"),0===$e?!Ln:!Wn)),value:Ie(dt,$e),locale:k,tabIndex:-1,onPanelChange:function(e,n){0===$e&&xn(!0),1===$e&&Pn(!0),Ct(De(wt,n,$e),De(dt,e,$e));var r=e;"right"===t&&wt[$e]===n&&(r=Ee(r,n,w,-1)),it(r,$e)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Ie(dt,0===$e?1:0)})))}var $n=0,Gn=0;if($e&&ze.current&&Ve.current&&Le.current){$n=ze.current.offsetWidth+Ve.current.offsetWidth;var Qn=Ue.current.offsetLeft>$n?Ue.current.offsetLeft-$n:Ue.current.offsetLeft;Le.current.offsetWidth&&Ue.current.offsetWidth&&$n>Le.current.offsetWidth-Ue.current.offsetWidth-("rtl"===ve?0:Qn)&&(Gn=$n)}var Xn="rtl"===ve?{right:$n}:{left:$n};var Jn,Zn,er=l.createElement("div",{className:m()("".concat(a,"-range-wrapper"),"".concat(a,"-").concat(j,"-range-wrapper")),style:{minWidth:zt}},l.createElement("div",{ref:Ue,className:"".concat(a,"-range-arrow"),style:Xn}),function(){var e,t=at(a,wt[$e],Z),n=st({prefixCls:a,components:ge,needConfirmButton:Te,okDisabled:!Ie(dt,$e)||z&&z(dt[$e]),locale:k,rangeList:Yn,onOk:function(){Ie(dt,$e)&&(Wt(dt,$e),pe&&pe(dt))}});if("time"===j||P)e=qn();else{var r=ot($e),o=Ee(r,j,w),i=wt[$e]===j,s=qn(!!i&&"left",{pickerValue:r,onPickerValueChange:function(e){it(e,$e)}}),c=qn("right",{pickerValue:o,onPickerValueChange:function(e){it(Ee(e,j,w,-1),$e)}});e="rtl"===ve?l.createElement(l.Fragment,null,c,i&&s):l.createElement(l.Fragment,null,s,i&&c)}var u=l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(a,"-panels")},e),(t||n)&&l.createElement("div",{className:"".concat(a,"-footer")},t,n));return B&&(u=B(u)),l.createElement("div",{className:"".concat(a,"-panel-container"),style:{marginLeft:Gn},ref:Le,onMouseDown:function(e){e.preventDefault()}},u)}());$&&(Jn=l.createElement("span",{className:"".concat(a,"-suffix")},$)),Y&&(Ie(et,0)&&!Xe[0]||Ie(et,1)&&!Xe[1])&&(Zn=l.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=et;Xe[0]||(t=De(t,null,0)),Xe[1]||(t=De(t,null,1)),Wt(t,null),Bt(!1,$e)},className:"".concat(a,"-clear")},G||l.createElement("span",{className:"".concat(a,"-clear-btn")})));var tr={size:le(j,Ke[0],w)},nr=0,rr=0;ze.current&&Fe.current&&Ve.current&&(0===$e?rr=ze.current.offsetWidth:(nr=$n,rr=Fe.current.offsetWidth));var or="rtl"===ve?{right:nr}:{left:nr};return l.createElement(q.Provider,{value:{operationRef:Qe,hideHeader:"time"===j,onDateMouseEnter:function(e){yn(De(dt,e,$e)),0===$e?On(e):Sn(e)},onDateMouseLeave:function(){yn(De(dt,null,$e)),0===$e?xn():Pn()},hideRanges:!0,onSelect:function(e,t){var n=De(dt,e,$e);"submit"===t||"key"!==t&&!Te?(Wt(n,$e),0===$e?xn():Pn()):mt(n)},open:At}},l.createElement(ft,{visible:At,popupElement:er,popupStyle:p,prefixCls:a,dropdownClassName:g,dropdownAlign:v,getPopupContainer:y,transitionName:b,range:!0,direction:ve},l.createElement("div",Object(s.a)({ref:Ae,className:m()(a,"".concat(a,"-range"),h,(t={},Object(d.a)(t,"".concat(a,"-disabled"),Xe[0]&&Xe[1]),Object(d.a)(t,"".concat(a,"-focused"),0===$e?Dn:Hn),Object(d.a)(t,"".concat(a,"-rtl"),"rtl"===ve),t)),style:u,onClick:function(e){fe&&fe(e),At||Be.current.contains(e.target)||We.current.contains(e.target)||(Xe[0]?Xe[1]||Ht(1):Ht(0))},onMouseEnter:ue,onMouseLeave:de,onMouseDown:function(e){ae&&ae(e),!At||!Dn&&!Hn||Be.current.contains(e.target)||We.current.contains(e.target)||e.preventDefault()},onMouseUp:se},Re(e)),l.createElement("div",{className:m()("".concat(a,"-input"),(n={},Object(d.a)(n,"".concat(a,"-input-active"),0===$e),Object(d.a)(n,"".concat(a,"-input-placeholder"),!!_n),n)),ref:ze},l.createElement("input",Object(s.a)({id:c,disabled:Xe[0],readOnly:X||"function"===typeof Ke[0]||!Ln,value:_n||rn,onChange:function(e){on(e.target.value)},autoFocus:O,placeholder:Ie(_,0)||"",ref:Be},Rn,tr,{autoComplete:Pe}))),l.createElement("div",{className:"".concat(a,"-range-separator"),ref:Ve},A),l.createElement("div",{className:m()("".concat(a,"-input"),(r={},Object(d.a)(r,"".concat(a,"-input-active"),1===$e),Object(d.a)(r,"".concat(a,"-input-placeholder"),!!jn),r)),ref:Fe},l.createElement("input",Object(s.a)({disabled:Xe[1],readOnly:X||"function"===typeof Ke[0]||!Wn,value:jn||ln,onChange:function(e){un(e.target.value)},placeholder:Ie(_,1)||"",ref:We},Vn,tr,{autoComplete:Pe}))),l.createElement("div",{className:"".concat(a,"-active-bar"),style:Object(S.a)(Object(S.a)({},or),{},{width:rr,position:"absolute"})}),Jn,Zn)))}var Et=function(e){Object(H.a)(n,e);var t=Object(W.a)(n);function n(){var e;Object(V.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).pickerRef=l.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(B.a)(n,[{key:"render",value:function(){return l.createElement(Ct,Object(s.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(l.Component),jt=Et,St=wt,Pt=n(58),Tt=n(49),Nt=n(24),At=n(55),Mt=n(67),Rt=n(59),It=n(115);function Dt(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function Lt(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function zt(e,t){var n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}var Ft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Bt={button:function(e){return l.createElement(u.a,Object(s.a)({size:"small",type:"primary"},e))},rangeItem:function(e){return l.createElement(j,Object(s.a)({color:"blue"},e))}};function Ht(e){var t,n=e.format,r=e.picker,o=e.showHour,i=e.showMinute,a=e.showSecond,c=e.use12Hours,l=(t=n,t?Array.isArray(t)?t:[t]:[])[0],u=Object(s.a)({},e);return l&&"string"===typeof l&&(l.includes("s")||void 0!==a||(u.showSecond=!1),l.includes("m")||void 0!==i||(u.showMinute=!1),l.includes("H")||l.includes("h")||void 0!==o||(u.showHour=!1),(l.includes("a")||l.includes("A"))&&void 0===c&&(u.use12Hours=!0)),"time"===r?u:("function"===typeof l&&delete u.format,{showTime:u})}Object(c.a)("bottomLeft","bottomRight","topLeft","topRight");var Wt=function(e){var t=function(e){function t(t,n){var r=Object(l.forwardRef)((function(n,r){var o=n.prefixCls,i=n.getPopupContainer,a=n.className,c=n.size,u=n.bordered,f=void 0===u||u,h=n.placement,p=n.placeholder,g=n.popupClassName,v=n.dropdownClassName,y=n.disabled,w=n.status,k=Vt(n,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),_=Object(l.useContext)(b.b),O=_.getPrefixCls,x=_.direction,C=_.getPopupContainer,E=O("picker",o),j=Object(At.c)(E,x),S=j.compactSize,P=j.compactItemClassnames,T=l.useRef(null),N=n.format,M=n.showTime;Object(l.useImperativeHandle)(r,(function(){return{focus:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}}));var R={showToday:!0},L={};t&&(L.picker=t);var z=t||n.picker;L=Object(s.a)(Object(s.a)(Object(s.a)({},L),M?Ht(Object(s.a)({format:N,picker:z},M)):{}),"time"===z?Ht(Object(s.a)(Object(s.a)({format:N},n),{picker:z})):{});var F=O(),V=l.useContext(Tt.b),B=S||c||V,H=l.useContext(Pt.b),W=null!==y&&void 0!==y?y:H,U=Object(l.useContext)(Nt.b),K=U.hasFeedback,Y=U.status,q=U.feedbackIcon,$=l.createElement(l.Fragment,null,"time"===z?l.createElement(I,null):l.createElement(A,null),K&&q);return l.createElement(Mt.a,{componentName:"DatePicker",defaultLocale:It.a},(function(t){var r=Object(s.a)(Object(s.a)({},t),n.locale);return l.createElement(St,Object(s.a)({ref:T,placeholder:Dt(z,r,p),suffixIcon:$,dropdownAlign:zt(x,h),clearIcon:l.createElement(D.a,null),prevIcon:l.createElement("span",{className:"".concat(E,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(E,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(E,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(E,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(F,"-slide-up")},R,k,L,{locale:r.lang,className:m()(Object(d.a)(Object(d.a)({},"".concat(E,"-").concat(B),B),"".concat(E,"-borderless"),!f),Object(Rt.b)(E,Object(Rt.a)(Y,w),K),P,a),prefixCls:E,getPopupContainer:i||C,generateConfig:e,components:Bt,direction:x,disabled:W,dropdownClassName:g||v}))}))}));return n&&(r.displayName=n),r}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),n=t.DatePicker,r=t.WeekPicker,o=t.MonthPicker,i=t.YearPicker,a=t.TimePicker,c=t.QuarterPicker,u=function(e){return Object(l.forwardRef)((function(t,n){var r=t.prefixCls,o=t.getPopupContainer,i=t.className,a=t.placement,c=t.size,u=t.disabled,f=t.bordered,h=void 0===f||f,p=t.placeholder,g=t.popupClassName,v=t.dropdownClassName,y=t.status,w=Ft(t,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),k=l.useRef(null),_=Object(l.useContext)(b.b),O=_.getPrefixCls,x=_.direction,C=_.getPopupContainer,E=O("picker",r),j=Object(At.c)(E,x),S=j.compactSize,P=j.compactItemClassnames,T=t.format,N=t.showTime,M=t.picker,R=O(),L={};L=Object(s.a)(Object(s.a)(Object(s.a)({},L),N?Ht(Object(s.a)({format:T,picker:M},N)):{}),"time"===M?Ht(Object(s.a)(Object(s.a)({format:T},t),{picker:M})):{});var z=l.useContext(Tt.b),V=S||c||z,B=l.useContext(Pt.b),H=null!==u&&void 0!==u?u:B,W=Object(l.useContext)(Nt.b),U=W.hasFeedback,K=W.status,Y=W.feedbackIcon,q=l.createElement(l.Fragment,null,"time"===M?l.createElement(I,null):l.createElement(A,null),U&&Y);return Object(l.useImperativeHandle)(n,(function(){return{focus:function(){var e;return null===(e=k.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=k.current)||void 0===e?void 0:e.blur()}}})),l.createElement(Mt.a,{componentName:"DatePicker",defaultLocale:It.a},(function(n){var r=Object(s.a)(Object(s.a)({},n),t.locale);return l.createElement(jt,Object(s.a)({separator:l.createElement("span",{"aria-label":"to",className:"".concat(E,"-separator")},l.createElement(F,null)),disabled:H,ref:k,dropdownAlign:zt(x,a),placeholder:Lt(M,r,p),suffixIcon:q,clearIcon:l.createElement(D.a,null),prevIcon:l.createElement("span",{className:"".concat(E,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(E,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(E,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(E,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(R,"-slide-up")},w,L,{className:m()(Object(d.a)(Object(d.a)({},"".concat(E,"-").concat(V),V),"".concat(E,"-borderless"),!h),Object(Rt.b)(E,Object(Rt.a)(K,y),U),P,i),locale:r.lang,prefixCls:E,getPopupContainer:o||C,generateConfig:e,components:Bt,direction:x,dropdownClassName:g||v}))}))}))}(e),f=n;return f.WeekPicker=r,f.MonthPicker=o,f.YearPicker=i,f.RangePicker=u,f.TimePicker=a,f.QuarterPicker=c,f}(a);t.a=Wt},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(276);function l(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var u=n(152),d=n(36),f=n(40),h=n(136);function p(e,t){return parseInt(e[t],10)||0}var m="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},b=i.forwardRef((function(e,t){var n=e.onChange,a=e.rows,s=e.rowsMax,c=e.rowsMin,l=e.maxRows,u=e.minRows,d=void 0===u?1:u,b=e.style,v=e.value,y=Object(o.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=l||s,k=a||c||d,_=i.useRef(null!=v).current,O=i.useRef(null),x=Object(f.a)(t,O),C=i.useRef(null),E=i.useRef(0),j=i.useState({}),S=j[0],P=j[1],T=i.useCallback((function(){var t=O.current,n=window.getComputedStyle(t),r=C.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=p(n,"padding-bottom")+p(n,"padding-top"),a=p(n,"border-bottom-width")+p(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var c=r.scrollHeight-i,l=s;k&&(l=Math.max(Number(k)*c,l)),w&&(l=Math.min(Number(w)*c,l));var u=(l=Math.max(l,c))+("border-box"===o?i+a:0),d=Math.abs(l-s)<=1;P((function(e){return E.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(E.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[w,k,e.placeholder]);i.useEffect((function(){var e=Object(h.a)((function(){E.current=0,T()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[T]),m((function(){T()})),i.useEffect((function(){E.current=0}),[v]);return i.createElement(i.Fragment,null,i.createElement("textarea",Object(r.a)({value:v,onChange:function(e){E.current=0,_||T(),n&&n(e)},ref:x,rows:k,style:Object(r.a)({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},b)},y)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:Object(r.a)({},g,b)}))}));function v(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(v(e.value)&&""!==e.value||t&&v(e.defaultValue)&&""!==e.defaultValue)}var w="undefined"===typeof window?i.useEffect:i.useLayoutEffect,k=i.forwardRef((function(e,t){var n=e["aria-describedby"],s=e.autoComplete,h=e.autoFocus,p=e.classes,m=e.className,g=(e.color,e.defaultValue),v=e.disabled,k=e.endAdornment,_=(e.error,e.fullWidth),O=void 0!==_&&_,x=e.id,C=e.inputComponent,E=void 0===C?"input":C,j=e.inputProps,S=void 0===j?{}:j,P=e.inputRef,T=(e.margin,e.multiline),N=void 0!==T&&T,A=e.name,M=e.onBlur,R=e.onChange,I=e.onClick,D=e.onFocus,L=e.onKeyDown,z=e.onKeyUp,F=e.placeholder,V=e.readOnly,B=e.renderSuffix,H=e.rows,W=e.rowsMax,U=e.rowsMin,K=e.maxRows,Y=e.minRows,q=e.startAdornment,$=e.type,G=void 0===$?"text":$,Q=e.value,X=Object(o.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),J=null!=S.value?S.value:Q,Z=i.useRef(null!=J).current,ee=i.useRef(),te=i.useCallback((function(e){0}),[]),ne=Object(f.a)(S.ref,te),re=Object(f.a)(P,ne),oe=Object(f.a)(ee,re),ie=i.useState(!1),ae=ie[0],se=ie[1],ce=Object(u.b)();var le=l({props:e,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ce?ce.focused:ae,i.useEffect((function(){!ce&&v&&ae&&(se(!1),M&&M())}),[ce,v,ae,M]);var ue=ce&&ce.onFilled,de=ce&&ce.onEmpty,fe=i.useCallback((function(e){y(e)?ue&&ue():de&&de()}),[ue,de]);w((function(){Z&&fe({value:J})}),[J,fe,Z]);i.useEffect((function(){fe(ee.current)}),[]);var he=E,pe=Object(r.a)({},S,{ref:oe});"string"!==typeof he?pe=Object(r.a)({inputRef:oe,type:G},pe,{ref:null}):N?!H||K||Y||W||U?(pe=Object(r.a)({minRows:H||Y,rowsMax:W,maxRows:K},pe),he=b):he="textarea":pe=Object(r.a)({type:G},pe);return i.useEffect((function(){ce&&ce.setAdornedStart(Boolean(q))}),[ce,q]),i.createElement("div",Object(r.a)({className:Object(a.a)(p.root,p["color".concat(Object(d.a)(le.color||"primary"))],m,le.disabled&&p.disabled,le.error&&p.error,O&&p.fullWidth,le.focused&&p.focused,ce&&p.formControl,N&&p.multiline,q&&p.adornedStart,k&&p.adornedEnd,"dense"===le.margin&&p.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),I&&I(e)},ref:t},X),q,i.createElement(u.a.Provider,{value:null},i.createElement(he,Object(r.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:s,autoFocus:h,defaultValue:g,disabled:le.disabled,id:x,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:A,placeholder:F,readOnly:V,required:le.required,rows:H,value:J,onKeyDown:L,onKeyUp:z},pe,{className:Object(a.a)(p.input,S.className,le.disabled&&p.disabled,N&&p.inputMultiline,le.hiddenLabel&&p.inputHiddenLabel,q&&p.inputAdornedStart,k&&p.inputAdornedEnd,"search"===G&&p.inputTypeSearch,"dense"===le.margin&&p.inputMarginDense),onBlur:function(e){M&&M(e),S.onBlur&&S.onBlur(e),ce&&ce.onBlur?ce.onBlur(e):se(!1)},onChange:function(e){if(!Z){var t=e.target||ee.current;if(null==t)throw new Error(Object(c.a)(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];S.onChange&&S.onChange.apply(S,[e].concat(r)),R&&R.apply(void 0,[e].concat(r))},onFocus:function(e){le.disabled?e.stopPropagation():(D&&D(e),S.onFocus&&S.onFocus(e),ce&&ce.onFocus?ce.onFocus(e):se(!0))}}))),k,B?B(Object(r.a)({},le,{startAdornment:q})):null)})),_=Object(s.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(r.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(k),O=n(483),x=n(449),C=n(6),E=n(10),j=(n(109),n(61)),S=n(22),P=n(192),T=n(94),N=n(482),A=n(454),M=n(455);function R(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function I(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function D(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function L(e){return"function"===typeof e?e():e}var z=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,c=e.anchorOrigin,l=void 0===c?{vertical:"top",horizontal:"left"}:c,u=e.anchorPosition,d=e.anchorReference,f=void 0===d?"anchorEl":d,p=e.children,m=e.classes,g=e.className,b=e.container,v=e.elevation,y=void 0===v?8:v,w=e.getContentAnchorEl,k=e.marginThreshold,_=void 0===k?16:k,O=e.onEnter,x=e.onEntered,C=e.onEntering,E=e.onExit,z=e.onExited,F=e.onExiting,V=e.open,B=e.PaperProps,H=void 0===B?{}:B,W=e.transformOrigin,U=void 0===W?{vertical:"top",horizontal:"left"}:W,K=e.TransitionComponent,Y=void 0===K?A.a:K,q=e.transitionDuration,$=void 0===q?"auto":q,G=e.TransitionProps,Q=void 0===G?{}:G,X=Object(o.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=i.useRef(),Z=i.useCallback((function(e){if("anchorPosition"===f)return u;var t=L(s),n=(t&&1===t.nodeType?t:Object(j.a)(J.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+R(n,r),left:n.left+I(n,l.horizontal)}}),[s,l.horizontal,l.vertical,u,f]),ee=i.useCallback((function(e){var t=0;if(w&&"anchorEl"===f){var n=w(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,f,w]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:R(e,U.vertical)+t,horizontal:I(e,U.horizontal)}}),[U.horizontal,U.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===f)return{top:null,left:null,transformOrigin:D(r)};var o=Z(t),i=o.top-r.vertical,a=o.left-r.horizontal,c=i+n.height,l=a+n.width,u=Object(P.a)(L(s)),d=u.innerHeight-_,h=u.innerWidth-_;if(i<_){var p=i-_;i-=p,r.vertical+=p}else if(c>d){var m=c-d;i-=m,r.vertical+=m}if(a<_){var g=a-_;a-=g,r.horizontal+=g}else if(l>h){var b=l-h;a-=b,r.horizontal+=b}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:D(r)}}),[s,f,Z,ee,te,_]),re=i.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){J.current=S.findDOMNode(e)}),[]);i.useEffect((function(){V&&re()})),i.useImperativeHandle(n,(function(){return V?{updatePosition:function(){re()}}:null}),[V,re]),i.useEffect((function(){if(V){var e=Object(h.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[V,re]);var ie=$;"auto"!==$||Y.muiSupportAuto||(ie=void 0);var ae=b||(s?Object(j.a)(L(s)).body:void 0);return i.createElement(N.a,Object(r.a)({container:ae,open:V,ref:t,BackdropProps:{invisible:!0},className:Object(a.a)(m.root,g)},X),i.createElement(Y,Object(r.a)({appear:!0,in:V,onEnter:O,onEntered:x,onExit:E,onExited:z,onExiting:F,timeout:ie},Q,{onEntering:Object(T.a)((function(e,t){C&&C(e,t),re()}),Q.onEntering)}),i.createElement(M.a,Object(r.a)({elevation:y,ref:oe},H,{className:Object(a.a)(m.paper,H.className)}),p)))})),F=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(z),V=n(484),B=n(99),H=n(75),W={vertical:"top",horizontal:"right"},U={vertical:"top",horizontal:"left"},K=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,c=e.children,l=e.classes,u=e.disableAutoFocusItem,d=void 0!==u&&u,f=e.MenuListProps,h=void 0===f?{}:f,p=e.onClose,m=e.onEntering,g=e.open,b=e.PaperProps,v=void 0===b?{}:b,y=e.PopoverClasses,w=e.transitionDuration,k=void 0===w?"auto":w,_=e.TransitionProps,O=(_=void 0===_?{}:_).onEntering,x=Object(o.a)(_,["onEntering"]),C=e.variant,E=void 0===C?"selectedMenu":C,j=Object(o.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),P=Object(H.a)(),T=s&&!d&&g,N=i.useRef(null),A=i.useRef(null),M=-1;i.Children.map(c,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==E&&e.props.selected||-1===M)&&(M=t))}));var R=i.Children.map(c,(function(e,t){return t===M?i.cloneElement(e,{ref:function(t){A.current=S.findDOMNode(t),Object(B.a)(e.ref,t)}}):e}));return i.createElement(F,Object(r.a)({getContentAnchorEl:function(){return A.current},classes:y,onClose:p,TransitionProps:Object(r.a)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,P),m&&m(e,t),O&&O(e,t)}},x),anchorOrigin:"rtl"===P.direction?W:U,transformOrigin:"rtl"===P.direction?W:U,PaperProps:Object(r.a)({},v,{classes:Object(r.a)({},v.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:k},j),i.createElement(V.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===M||d),autoFocusItem:T,variant:E},h,{className:Object(a.a)(l.list,h.className)}),R))})),Y=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(K),q=n(191);function $(e,t){return"object"===Object(E.a)(t)&&null!==t?e===t:String(e)===String(t)}var G=i.forwardRef((function(e,t){var n=e["aria-label"],s=e.autoFocus,l=e.autoWidth,u=e.children,h=e.classes,p=e.className,m=e.defaultValue,g=e.disabled,b=e.displayEmpty,v=e.IconComponent,w=e.inputRef,k=e.labelId,_=e.MenuProps,O=void 0===_?{}:_,x=e.multiple,E=e.name,S=e.onBlur,P=e.onChange,T=e.onClose,N=e.onFocus,A=e.onOpen,M=e.open,R=e.readOnly,I=e.renderValue,D=e.SelectDisplayProps,L=void 0===D?{}:D,z=e.tabIndex,F=(e.type,e.value),V=e.variant,B=void 0===V?"standard":V,H=Object(o.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),W=Object(q.a)({controlled:F,default:m,name:"Select"}),U=Object(C.a)(W,2),K=U[0],G=U[1],Q=i.useRef(null),X=i.useState(null),J=X[0],Z=X[1],ee=i.useRef(null!=M).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],se=Object(f.a)(t,w);i.useImperativeHandle(se,(function(){return{focus:function(){J.focus()},node:Q.current,value:K}}),[J,K]),i.useEffect((function(){s&&J&&J.focus()}),[s,J]),i.useEffect((function(){if(J){var e=Object(j.a)(J).getElementById(k);if(e){var t=function(){getSelection().isCollapsed&&J.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[k,J]);var ce,le,ue=function(e,t){e?A&&A(t):T&&T(t),ee||(re(l?null:J.clientWidth),ae(e))},de=i.Children.toArray(u),fe=function(e){return function(t){var n;if(x||ue(!1,t),x){n=Array.isArray(K)?K.slice():[];var r=K.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),K!==n&&(G(n),P&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:E}}),P(t,e)))}},he=null!==J&&(ee?M:ie);delete H["aria-invalid"];var pe=[],me=!1;(y({value:K})||b)&&(I?ce=I(K):me=!0);var ge=de.map((function(e){if(!i.isValidElement(e))return null;var t;if(x){if(!Array.isArray(K))throw new Error(Object(c.a)(2));(t=K.some((function(t){return $(t,e.props.value)})))&&me&&pe.push(e.props.children)}else(t=$(K,e.props.value))&&me&&(le=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(ce=x?pe.join(", "):le);var be,ve=ne;!l&&ee&&J&&(ve=J.clientWidth),be="undefined"!==typeof z?z:g?null:0;var ye=L.id||(E?"mui-component-select-".concat(E):void 0);return i.createElement(i.Fragment,null,i.createElement("div",Object(r.a)({className:Object(a.a)(h.root,h.select,h.selectMenu,h[B],p,g&&h.disabled),ref:Z,tabIndex:be,role:"button","aria-disabled":g?"true":void 0,"aria-expanded":he?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[k,ye].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))}},onMouseDown:g||R?null:function(e){0===e.button&&(e.preventDefault(),J.focus(),ue(!0,e))},onBlur:function(e){!he&&S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:K,name:E}}),S(e))},onFocus:N},L,{id:ye}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ce)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ce),i.createElement("input",Object(r.a)({value:Array.isArray(K)?K.join(","):K,name:E,ref:Q,"aria-hidden":!0,onChange:function(e){var t=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=de[t];G(n.props.value),P&&P(e,n)}},tabIndex:-1,className:h.nativeInput,autoFocus:s},H)),i.createElement(v,{className:Object(a.a)(h.icon,h["icon".concat(Object(d.a)(B))],he&&h.iconOpen,g&&h.disabled)}),i.createElement(Y,Object(r.a)({id:"menu-".concat(E||""),anchorEl:J,open:he,onClose:function(e){ue(!1,e)}},O,{MenuListProps:Object(r.a)({"aria-labelledby":k,role:"listbox",disableListWrap:!0},O.MenuListProps),PaperProps:Object(r.a)({},O.PaperProps,{style:Object(r.a)({minWidth:ve},null!=O.PaperProps?O.PaperProps.style:null)})}),ge))})),Q=n(137),X=n(85),J=Object(X.a)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Z=i.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,c=e.fullWidth,l=void 0!==c&&c,u=e.inputComponent,d=void 0===u?"input":u,f=e.multiline,h=void 0!==f&&f,p=e.type,m=void 0===p?"text":p,g=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(_,Object(r.a)({classes:Object(r.a)({},s,{root:Object(a.a)(s.root,!n&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:t,type:m},g))}));Z.muiName="Input";var ee=Object(s.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Z),te=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.disabled,l=e.IconComponent,u=e.inputRef,f=e.variant,h=void 0===f?"standard":f,p=Object(o.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",Object(r.a)({className:Object(a.a)(n.root,n.select,n[h],s,c&&n.disabled),disabled:c,ref:u||t},p)),e.multiple?null:i.createElement(l,{className:Object(a.a)(n.icon,n["icon".concat(Object(d.a)(h))],c&&n.disabled)}))})),ne=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},re=i.createElement(ee,null),oe=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,c=void 0===s?J:s,u=e.input,d=void 0===u?re:u,f=e.inputProps,h=(e.variant,Object(o.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=l({props:e,muiFormControl:Object(Q.a)(),states:["variant"]});return i.cloneElement(d,Object(r.a)({inputComponent:te,inputProps:Object(r.a)({children:n,classes:a,IconComponent:c,variant:p.variant,type:void 0},f,d?d.props.inputProps:{}),ref:t},h))}));oe.muiName="Select";Object(s.a)(ne,{name:"MuiNativeSelect"})(oe);var ie=i.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,c=e.fullWidth,l=void 0!==c&&c,u=e.inputComponent,d=void 0===u?"input":u,f=e.multiline,h=void 0!==f&&f,p=e.type,m=void 0===p?"text":p,g=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(_,Object(r.a)({classes:Object(r.a)({},s,{root:Object(a.a)(s.root,!n&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:t,type:m},g))}));ie.muiName="Input";var ae=Object(s.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(ie),se=n(4),ce=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,l=e.labelWidth,u=e.notched,f=e.style,h=Object(o.a)(e,["children","classes","className","label","labelWidth","notched","style"]),p="rtl"===Object(H.a)().direction?"right":"left";if(void 0!==c)return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:t,style:f},h),i.createElement("legend",{className:Object(a.a)(n.legendLabelled,u&&n.legendNotched)},c?i.createElement("span",null,c):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var m=l>0?.75*l+8:.01;return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(se.a)({},"padding".concat(Object(d.a)(p)),8),f),className:Object(a.a)(n.root,s),ref:t},h),i.createElement("legend",{className:n.legend,style:{width:u?m:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),le=Object(s.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(ce),ue=i.forwardRef((function(e,t){var n=e.classes,s=e.fullWidth,c=void 0!==s&&s,l=e.inputComponent,u=void 0===l?"input":l,d=e.label,f=e.labelWidth,h=void 0===f?0:f,p=e.multiline,m=void 0!==p&&p,g=e.notched,b=e.type,v=void 0===b?"text":b,y=Object(o.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(_,Object(r.a)({renderSuffix:function(e){return i.createElement(le,{className:n.notchedOutline,label:d,labelWidth:h,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:c,inputComponent:u,multiline:m,ref:t,type:v},y))}));ue.muiName="Input";var de=Object(s.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(ue),fe=ne,he=i.createElement(ee,null),pe=i.createElement(ae,null),me=i.forwardRef((function e(t,n){var a=t.autoWidth,s=void 0!==a&&a,c=t.children,u=t.classes,d=t.displayEmpty,f=void 0!==d&&d,h=t.IconComponent,p=void 0===h?J:h,m=t.id,g=t.input,b=t.inputProps,v=t.label,y=t.labelId,w=t.labelWidth,k=void 0===w?0:w,_=t.MenuProps,O=t.multiple,C=void 0!==O&&O,E=t.native,j=void 0!==E&&E,S=t.onClose,P=t.onOpen,T=t.open,N=t.renderValue,A=t.SelectDisplayProps,M=t.variant,R=void 0===M?"standard":M,I=Object(o.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),D=j?te:G,L=l({props:t,muiFormControl:Object(Q.a)(),states:["variant"]}).variant||R,z=g||{standard:he,outlined:i.createElement(de,{label:v,labelWidth:k}),filled:pe}[L];return i.cloneElement(z,Object(r.a)({inputComponent:D,inputProps:Object(r.a)({children:c,IconComponent:p,variant:L,type:void 0,multiple:C},j?{id:m}:{autoWidth:s,displayEmpty:f,labelId:y,MenuProps:_,onClose:S,onOpen:P,open:T,renderValue:N,SelectDisplayProps:Object(r.a)({id:m},A)},b,{classes:b?Object(x.a)({baseClasses:u,newClasses:b.classes,Component:e}):u},g?g.props.inputProps:{}),ref:n},I))}));me.muiName="Select";var ge=Object(s.a)(fe,{name:"MuiSelect"})(me),be=n(46);var ve=i.createContext();var ye=i.createContext(),we=i.forwardRef((function(e,t){var n,s,c=e.align,l=void 0===c?"inherit":c,u=e.classes,f=e.className,h=e.component,p=e.padding,m=e.scope,g=e.size,b=e.sortDirection,v=e.variant,y=Object(o.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),w=i.useContext(ve),k=i.useContext(ye),_=k&&"head"===k.variant;h?(s=h,n=_?"columnheader":"cell"):s=_?"th":"td";var O=m;!O&&_&&(O="col");var x=p||(w&&w.padding?w.padding:"normal"),C=g||(w&&w.size?w.size:"medium"),E=v||k&&k.variant,j=null;return b&&(j="asc"===b?"ascending":"descending"),i.createElement(s,Object(r.a)({ref:t,className:Object(a.a)(u.root,u[E],f,"inherit"!==l&&u["align".concat(Object(d.a)(l))],"normal"!==x&&u["padding".concat(Object(d.a)(x))],"medium"!==C&&u["size".concat(Object(d.a)(C))],"head"===E&&w&&w.stickyHeader&&u.stickyHeader),"aria-sort":j,role:n,scope:O},y))})),ke=Object(s.a)((function(e){return{root:Object(r.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(be.e)(Object(be.a)(e.palette.divider,1),.88):Object(be.b)(Object(be.a)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(we),_e=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,l=void 0===c?"div":c,u=e.disableGutters,d=void 0!==u&&u,f=e.variant,h=void 0===f?"regular":f,p=Object(o.a)(e,["classes","className","component","disableGutters","variant"]);return i.createElement(l,Object(r.a)({className:Object(a.a)(n.root,n[h],s,!d&&n.gutters),ref:t},p))})),Oe=Object(s.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(se.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(_e),xe=n(452),Ce=Object(X.a)(i.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ee=Object(X.a)(i.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),je=n(457),Se=i.createElement(Ee,null),Pe=i.createElement(Ce,null),Te=i.createElement(Ce,null),Ne=i.createElement(Ee,null),Ae=i.forwardRef((function(e,t){var n=e.backIconButtonProps,a=e.count,s=e.nextIconButtonProps,c=e.onChangePage,l=void 0===c?function(){}:c,u=e.onPageChange,d=void 0===u?function(){}:u,f=e.page,h=e.rowsPerPage,p=Object(o.a)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","onPageChange","page","rowsPerPage"]),m=Object(H.a)();return i.createElement("div",Object(r.a)({ref:t},p),i.createElement(je.a,Object(r.a)({onClick:function(e){l(e,f-1),d(e,f-1)},disabled:0===f,color:"inherit"},n),"rtl"===m.direction?Se:Pe),i.createElement(je.a,Object(r.a)({onClick:function(e){l(e,f+1),d(e,f+1)},disabled:-1!==a&&f>=Math.ceil(a/h)-1,color:"inherit"},s),"rtl"===m.direction?Te:Ne))}));function Me(e){var t=i.useState(e),n=t[0],r=t[1],o=e||n;return i.useEffect((function(){null==n&&r("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}var Re=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},Ie=[10,25,50,100],De=i.forwardRef((function(e,t){var n,s=e.ActionsComponent,c=void 0===s?Ae:s,l=e.backIconButtonProps,u=e.backIconButtonText,d=void 0===u?"Previous page":u,f=e.classes,h=e.className,p=e.colSpan,m=e.component,g=void 0===m?ke:m,b=e.count,v=e.labelDisplayedRows,y=void 0===v?Re:v,w=e.labelRowsPerPage,k=void 0===w?"Rows per page:":w,x=e.nextIconButtonProps,C=e.nextIconButtonText,E=void 0===C?"Next page":C,j=e.onChangePage,S=e.onPageChange,P=e.onChangeRowsPerPage,T=e.onRowsPerPageChange,N=e.page,A=e.rowsPerPage,M=e.rowsPerPageOptions,R=void 0===M?Ie:M,I=e.SelectProps,D=void 0===I?{}:I,L=Object(o.a)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onPageChange","onChangeRowsPerPage","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps"]),z=P||T;g!==ke&&"td"!==g||(n=p||1e3);var F=Me(),V=Me(),B=D.native?"option":O.a;return i.createElement(g,Object(r.a)({className:Object(a.a)(f.root,h),colSpan:n,ref:t},L),i.createElement(Oe,{className:f.toolbar},i.createElement("div",{className:f.spacer}),R.length>1&&i.createElement(xe.a,{color:"inherit",variant:"body2",className:f.caption,id:V},k),R.length>1&&i.createElement(ge,Object(r.a)({classes:{select:f.select,icon:f.selectIcon},input:i.createElement(_,{className:Object(a.a)(f.input,f.selectRoot)}),value:A,onChange:z,id:F,labelId:V},D),R.map((function(e){return i.createElement(B,{className:f.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),i.createElement(xe.a,{color:"inherit",variant:"body2",className:f.caption},y({from:0===b?0:N*A+1,to:-1!==b?Math.min(b,(N+1)*A):(N+1)*A,count:-1===b?-1:b,page:N})),i.createElement(c,{className:f.actions,backIconButtonProps:Object(r.a)({title:d,"aria-label":d},l),count:b,nextIconButtonProps:Object(r.a)({title:E,"aria-label":E},x),onChangePage:j,onPageChange:S,page:N,rowsPerPage:A})))}));t.a=Object(s.a)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(De)},function(e,t,n){"use strict";var r=n(24),o=n(4),i=n(3),a=n(9),s=n(7),c=n.n(s),l=n(52),u=n(1),d=n(66),f=n(60),h=n(6);function p(e){var t=u.useState(e),n=Object(h.a)(t,2),r=n[0],o=n[1];return u.useEffect((function(){var t=setTimeout((function(){o(e)}),e.length?0:10);return function(){clearTimeout(t)}}),[e]),r}var m=[];function g(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"===typeof e?e:"".concat(n,"-").concat(r),error:e,errorStatus:t}}function b(e){var t=e.help,n=e.helpStatus,s=e.errors,h=void 0===s?m:s,b=e.warnings,v=void 0===b?m:b,y=e.className,w=e.fieldId,k=e.onVisibleChanged,_=u.useContext(r.c).prefixCls,O=u.useContext(d.b).getPrefixCls,x="".concat(_,"-item-explain"),C=O(),E=p(h),j=p(v),S=u.useMemo((function(){return void 0!==t&&null!==t?[g(t,n,"help")]:[].concat(Object(a.a)(E.map((function(e,t){return g(e,"error","error",t)}))),Object(a.a)(j.map((function(e,t){return g(e,"warning","warning",t)}))))}),[t,n,E,j]),P={};return w&&(P.id="".concat(w,"_help")),u.createElement(l.b,{motionDeadline:f.a.motionDeadline,motionName:"".concat(C,"-show-help"),visible:!!S.length,onVisibleChanged:k},(function(e){var t=e.className,n=e.style;return u.createElement("div",Object(i.a)({},P,{className:c()(x,t,y),style:n,role:"alert"}),u.createElement(l.a,Object(i.a)({keys:S},f.a,{motionName:"".concat(C,"-show-help-item"),component:!1}),(function(e){var t=e.key,n=e.error,r=e.errorStatus,i=e.className,a=e.style;return u.createElement("div",{key:t,className:c()(i,Object(o.a)({},"".concat(x,"-").concat(r),r)),style:a},n)})))}))}var v=n(10),y=n(76),w=n(58),k=n(49),_=n(188);function O(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function C(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return x(n.overflowY,t)||x(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 E(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var j=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,c="function"==typeof a?a:function(e){return e!==a};if(!O(e))throw new TypeError("Invalid target");for(var l,u,d=document.scrollingElement||document.documentElement,f=[],h=e;O(h)&&c(h);){if((h=null==(u=(l=h).parentElement)?l.getRootNode().host||null:u)===d){f.push(h);break}null!=h&&h===document.body&&C(h)&&!C(document.documentElement)||null!=h&&C(h,s)&&f.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,w=v.width,k=v.top,_=v.right,x=v.bottom,j=v.left,S="start"===o||"nearest"===o?k:"end"===o?x:k+y/2,P="center"===i?j+w/2:"end"===i?_:j,T=[],N=0;N<f.length;N++){var A=f[N],M=A.getBoundingClientRect(),R=M.height,I=M.width,D=M.top,L=M.right,z=M.bottom,F=M.left;if("if-needed"===r&&k>=0&&j>=0&&x<=m&&_<=p&&k>=D&&x<=z&&j>=F&&_<=L)return T;var V=getComputedStyle(A),B=parseInt(V.borderLeftWidth,10),H=parseInt(V.borderTopWidth,10),W=parseInt(V.borderRightWidth,10),U=parseInt(V.borderBottomWidth,10),K=0,Y=0,q="offsetWidth"in A?A.offsetWidth-A.clientWidth-B-W:0,$="offsetHeight"in A?A.offsetHeight-A.clientHeight-H-U:0,G="offsetWidth"in A?0===A.offsetWidth?0:I/A.offsetWidth:0,Q="offsetHeight"in A?0===A.offsetHeight?0:R/A.offsetHeight:0;if(d===A)K="start"===o?S:"end"===o?S-m:"nearest"===o?E(b,b+m,m,H,U,b+S,b+S+y,y):S-m/2,Y="start"===i?P:"center"===i?P-p/2:"end"===i?P-p:E(g,g+p,p,B,W,g+P,g+P+w,w),K=Math.max(0,K+b),Y=Math.max(0,Y+g);else{K="start"===o?S-D-H:"end"===o?S-z+U+$:"nearest"===o?E(D,z,R,H,U+$,S,S+y,y):S-(D+R/2)+$/2,Y="start"===i?P-F-B:"center"===i?P-(F+I/2)+q/2:"end"===i?P-L+W+q:E(F,L,I,B,W+q,P,P+w,w);var X=A.scrollLeft,J=A.scrollTop;S+=J-(K=Math.max(0,Math.min(J+K/Q,A.scrollHeight-R/Q+$))),P+=X-(Y=Math.max(0,Math.min(X+Y/G,A.scrollWidth-I/G+q)))}T.push({el:A,top:K,left:Y})}return T};function S(e){return e===Object(e)&&0!==Object.keys(e).length}var P=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(S(t)&&"function"===typeof t.behavior)return t.behavior(n?j(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:S(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(j(e,r),r.behavior)}},T=["parentNode"],N="form_item";function A(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function M(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):T.includes(n)?"".concat(N,"_").concat(n):n}}function R(e){return A(e).join("_")}function I(e){var t=Object(y.g)(),n=Object(h.a)(t,1)[0],r=u.useRef({}),o=u.useMemo((function(){return null!==e&&void 0!==e?e:Object(i.a)(Object(i.a)({},n),{__INTERNAL__:{itemRef:function(e){return function(t){var n=R(e);t?r.current[n]=t:delete r.current[n]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=M(A(e),o.__INTERNAL__.name),r=n?document.getElementById(n):null;r&&P(r,Object(i.a)({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=R(e);return r.current[t]}})}),[e,n]);return[o]}var D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},L=function(e,t){var n=u.useContext(k.b),a=u.useContext(w.b),s=u.useContext(d.b),l=s.getPrefixCls,f=s.direction,p=s.form,m=e.prefixCls,g=e.className,b=void 0===g?"":g,O=e.size,x=void 0===O?n:O,C=e.disabled,E=void 0===C?a:C,j=e.form,S=e.colon,P=e.labelAlign,T=e.labelWrap,N=e.labelCol,A=e.wrapperCol,M=e.hideRequiredMark,R=e.layout,L=void 0===R?"horizontal":R,z=e.scrollToFirstError,F=e.requiredMark,V=e.onFinishFailed,B=e.name,H=D(e,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),W=u.useContext(_.a),U=Object(u.useMemo)((function(){return void 0!==F?F:p&&void 0!==p.requiredMark?p.requiredMark:!M}),[M,F,p]),K=null!==S&&void 0!==S?S:null===p||void 0===p?void 0:p.colon,Y=l("form",m),q=c()(Y,Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(Y,"-").concat(L),!0),"".concat(Y,"-hide-required-mark"),!1===U),"".concat(Y,"-rtl"),"rtl"===f),"".concat(Y,"-").concat(x),x),b),$=I(j),G=Object(h.a)($,1)[0],Q=G.__INTERNAL__;Q.name=B;var X=Object(u.useMemo)((function(){return{name:B,labelAlign:P,labelCol:N,labelWrap:T,wrapperCol:A,vertical:"vertical"===L,colon:K,requiredMark:U,itemRef:Q.itemRef,form:G}}),[B,P,N,A,L,K,U,G]);u.useImperativeHandle(t,(function(){return G}));return u.createElement(w.a,{disabled:E},u.createElement(k.a,{size:x},u.createElement(r.d,Object(i.a)({},{validateMessages:W}),u.createElement(r.a.Provider,{value:X},u.createElement(y.f,Object(i.a)({id:B},H,{name:B,onFinishFailed:function(e){null===V||void 0===V||V(e);var t={block:"nearest"};z&&e.errorFields.length&&("object"===Object(v.a)(z)&&(t=z),G.scrollToField(e.errorFields[0].name,t))},form:G,className:q}))))))},z=u.forwardRef(L),F=n(70),V=n(28),B=function(){return{status:Object(u.useContext)(r.b).status}},H=n(26),W=n(50),U=n(23);var K=n(202),Y=n(77),q=n(203),$=n(92),G=n(39),Q=n(32),X=n(415),J=n(5),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ee=n(18),te=function(e,t){return u.createElement(ee.a,Object(J.a)(Object(J.a)({},e),{},{ref:t,icon:Z}))};te.displayName="QuestionCircleOutlined";var ne=u.forwardRef(te),re=n(153),oe=n(67),ie=n(81),ae=n(113),se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ce=function(e){var t=e.prefixCls,n=e.label,a=e.htmlFor,s=e.labelCol,l=e.labelAlign,d=e.colon,f=e.required,p=e.requiredMark,m=e.tooltip,g=Object(oe.b)("Form"),b=Object(h.a)(g,1)[0];return n?u.createElement(r.a.Consumer,{key:"label"},(function(e){var r,h=e.vertical,g=e.labelAlign,y=e.labelCol,w=e.labelWrap,k=e.colon,_=s||y||{},O=l||g,x="".concat(t,"-item-label"),C=c()(x,"left"===O&&"".concat(x,"-left"),_.className,Object(o.a)({},"".concat(x,"-wrap"),!!w)),E=n,j=!0===d||!1!==k&&!1!==d;j&&!h&&"string"===typeof n&&""!==n.trim()&&(E=n.replace(/[:|\uff1a]\s*$/,""));var S=function(e){return e?"object"!==Object(v.a)(e)||u.isValidElement(e)?{title:e}:e:null}(m);if(S){var P=S.icon,T=void 0===P?u.createElement(ne,null):P,N=se(S,["icon"]),A=u.createElement(ae.a,Object(i.a)({},N),u.cloneElement(T,{className:"".concat(t,"-item-tooltip"),title:""}));E=u.createElement(u.Fragment,null,E,A)}"optional"!==p||f||(E=u.createElement(u.Fragment,null,E,u.createElement("span",{className:"".concat(t,"-item-optional"),title:""},(null===b||void 0===b?void 0:b.optional)||(null===(r=ie.a.Form)||void 0===r?void 0:r.optional))));var M=c()(Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(t,"-item-required"),f),"".concat(t,"-item-required-mark-optional"),"optional"===p),"".concat(t,"-item-no-colon"),!j));return u.createElement(re.a,Object(i.a)({},_,{className:C}),u.createElement("label",{htmlFor:a,className:M,title:"string"===typeof n?n:""},E))})):null},le=function(e){var t=e.prefixCls,n=e.status,o=e.wrapperCol,a=e.children,s=e.errors,l=e.warnings,d=e._internalItemRender,f=e.extra,h=e.help,p=e.fieldId,m=e.marginBottom,g=e.onErrorVisibleChanged,v="".concat(t,"-item"),y=u.useContext(r.a),w=o||y.wrapperCol||{},k=c()("".concat(v,"-control"),w.className),_=u.useMemo((function(){return Object(i.a)({},y)}),[y]);delete _.labelCol,delete _.wrapperCol;var O=u.createElement("div",{className:"".concat(v,"-control-input")},u.createElement("div",{className:"".concat(v,"-control-input-content")},a)),x=u.useMemo((function(){return{prefixCls:t,status:n}}),[t,n]),C=null!==m||s.length||l.length?u.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},u.createElement(r.c.Provider,{value:x},u.createElement(b,{fieldId:p,errors:s,warnings:l,help:h,helpStatus:n,className:"".concat(v,"-explain-connected"),onVisibleChanged:g})),!!m&&u.createElement("div",{style:{width:0,height:m}})):null,E={};p&&(E.id="".concat(p,"_extra"));var j=f?u.createElement("div",Object(i.a)({},E,{className:"".concat(v,"-extra")}),f):null,S=d&&"pro_table_render"===d.mark&&d.render?d.render(e,{input:O,errorList:C,extra:j}):u.createElement(u.Fragment,null,O,C,j);return u.createElement(r.a.Provider,{value:_},u.createElement(re.a,Object(i.a)({},w,{className:k}),S))},ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},de={success:K.a,warning:q.a,error:Y.a,validating:$.a};function fe(e){var t=e.prefixCls,n=e.className,a=e.style,s=e.help,l=e.errors,d=e.warnings,f=e.validateStatus,m=e.meta,g=e.hasFeedback,b=e.hidden,v=e.children,y=e.fieldId,w=e.isRequired,k=e.onSubItemMetaChange,_=ue(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),O="".concat(t,"-item"),x=u.useContext(r.a).requiredMark,C=u.useRef(null),E=p(l),j=p(d),S=void 0!==s&&null!==s,P=!!(S||l.length||d.length),T=u.useState(null),N=Object(h.a)(T,2),A=N[0],M=N[1];Object(G.a)((function(){if(P&&C.current){var e=getComputedStyle(C.current);M(parseInt(e.marginBottom,10))}}),[P]);var R="";void 0!==f?R=f:m.validating?R="validating":E.length?R="error":j.length?R="warning":m.touched&&(R="success");var I=u.useMemo((function(){var e;if(g){var t=R&&de[R];e=t?u.createElement("span",{className:c()("".concat(O,"-feedback-icon"),"".concat(O,"-feedback-icon-").concat(R))},u.createElement(t,null)):null}return{status:R,hasFeedback:g,feedbackIcon:e,isFormItemInput:!0}}),[R,g]),D=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},O,!0),"".concat(O,"-with-help"),S||E.length||j.length),"".concat(n),!!n),"".concat(O,"-has-feedback"),R&&g),"".concat(O,"-has-success"),"success"===R),"".concat(O,"-has-warning"),"warning"===R),"".concat(O,"-has-error"),"error"===R),"".concat(O,"-is-validating"),"validating"===R),"".concat(O,"-hidden"),b);return u.createElement("div",{className:c()(D),style:a,ref:C},u.createElement(X.a,Object(i.a)({className:"".concat(O,"-row")},Object(Q.a)(_,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),u.createElement(ce,Object(i.a)({htmlFor:y,required:w,requiredMark:x},e,{prefixCls:t})),u.createElement(le,Object(i.a)({},e,m,{errors:E,warnings:j,prefixCls:t,status:R,help:s,marginBottom:A,onErrorVisibleChanged:function(e){e||M(null)}}),u.createElement(r.f.Provider,{value:k},u.createElement(r.b.Provider,{value:I},v)))),!!A&&u.createElement("div",{className:"".concat(O,"-margin-offset"),style:{marginBottom:-A}}))}Object(W.a)("success","warning","error","validating","");var he=u.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((function(e,n){return e===t.childProps[n]}))}));var pe=function(e){var t=e.name,n=e.noStyle,o=e.dependencies,s=e.prefixCls,c=e.shouldUpdate,l=e.rules,f=e.children,p=e.required,m=e.label,g=e.messageVariables,b=e.trigger,w=void 0===b?"onChange":b,k=e.validateTrigger,_=e.hidden,O=Object(u.useContext)(d.b).getPrefixCls,x=Object(u.useContext)(r.a).name,C="function"===typeof f,E=Object(u.useContext)(r.f),j=Object(u.useContext)(y.b).validateTrigger,S=void 0!==k?k:j,P=function(e){return!(void 0===e||null===e)}(t),T=O("form",s),N=u.useContext(y.e),R=u.useRef(),I=function(e){var t=u.useState(e),n=Object(h.a)(t,2),r=n[0],o=n[1],i=Object(u.useRef)(null),a=Object(u.useRef)([]),s=Object(u.useRef)(!1);return u.useEffect((function(){return s.current=!1,function(){s.current=!0,U.a.cancel(i.current),i.current=null}}),[]),[r,function(e){s.current||(null===i.current&&(a.current=[],i.current=Object(U.a)((function(){i.current=null,o((function(e){var t=e;return a.current.forEach((function(e){t=e(t)})),t}))}))),a.current.push(e))}]}({}),D=Object(h.a)(I,2),L=D[0],z=D[1],B=Object(F.a)((function(){return{errors:[],warnings:[],touched:!1,validating:!1,validated:!1,name:[]}})),W=Object(h.a)(B,2),K=W[0],Y=W[1],q=function(e,t){z((function(n){var r=Object(i.a)({},n),o=[].concat(Object(a.a)(e.name.slice(0,-1)),Object(a.a)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},$=u.useMemo((function(){var e=Object(a.a)(K.errors),t=Object(a.a)(K.warnings);return Object.values(L).forEach((function(n){e.push.apply(e,Object(a.a)(n.errors||[])),t.push.apply(t,Object(a.a)(n.warnings||[]))})),[e,t]}),[L,K.errors,K.warnings]),G=Object(h.a)($,2),Q=G[0],X=G[1],J=function(){var e=u.useContext(r.a).itemRef,t=u.useRef({});return function(n,r){var o=r&&"object"===Object(v.a)(r)&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Object(V.a)(e(n),o)),t.current.ref}}();function Z(t,r,o){return n&&!_?t:u.createElement(fe,Object(i.a)({key:"row"},e,{prefixCls:T,fieldId:r,isRequired:o,errors:Q,warnings:X,meta:K,onSubItemMetaChange:q}),t)}if(!P&&!C&&!o)return Z(f);var ee={};return"string"===typeof m?ee.label=m:t&&(ee.label=String(t)),g&&(ee=Object(i.a)(Object(i.a)({},ee),g)),u.createElement(y.a,Object(i.a)({},e,{messageVariables:ee,trigger:w,validateTrigger:S,onMetaChange:function(e){var t=null===N||void 0===N?void 0:N.getKey(e.name);if(Y(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,validated:!1,name:[]}:e,!0),n&&E){var r=e.name;if(e.destroy)r=R.current||r;else if(void 0!==t){var o=Object(h.a)(t,2),i=o[0],s=o[1];r=[i].concat(Object(a.a)(s)),R.current=r}E(e,r)}}}),(function(n,r,s){var d=A(t).length&&r?r.name:[],h=M(d,x),m=void 0!==p?p:!(!l||!l.some((function(e){if(e&&"object"===Object(v.a)(e)&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){var t=e(s);return t&&t.required&&!t.warningOnly}return!1}))),g=Object(i.a)({},n),b=null;if(Array.isArray(f)&&P)b=f;else if(C&&(!c&&!o||P));else if(!o||C||P)if(Object(H.c)(f)){var y=Object(i.a)(Object(i.a)({},f.props),g);if(y.id||(y.id=h),e.help||Q.length>0||X.length>0||e.extra){var k=[];(e.help||Q.length>0)&&k.push("".concat(h,"_help")),e.extra&&k.push("".concat(h,"_extra")),y["aria-describedby"]=k.join(" ")}Q.length>0&&(y["aria-invalid"]="true"),m&&(y["aria-required"]="true"),Object(V.c)(f)&&(y.ref=J(d,f)),new Set([].concat(Object(a.a)(A(w)),Object(a.a)(A(S)))).forEach((function(e){y[e]=function(){for(var t,n,r,o,i,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];null===(r=g[e])||void 0===r||(t=r).call.apply(t,[g].concat(s)),null===(i=(o=f.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(s))}}));var _=[y["aria-required"],y["aria-invalid"],y["aria-describedby"]];b=u.createElement(he,{value:g[e.valuePropName||"value"],update:f,childProps:_},Object(H.a)(f,y))}else b=C&&(c||o)&&!P?f(s):f;else;return Z(b,h,m)}))};pe.useStatus=B;var me=pe,ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},be=function(e){var t=e.prefixCls,n=e.children,o=ge(e,["prefixCls","children"]),a=(0,u.useContext(d.b).getPrefixCls)("form",t),s=u.useMemo((function(){return{prefixCls:a,status:"error"}}),[a]);return u.createElement(y.d,Object(i.a)({},o),(function(e,t,o){return u.createElement(r.c.Provider,{value:s},n(e.map((function(e){return Object(i.a)(Object(i.a)({},e),{fieldKey:e.key})})),t,{errors:o.errors,warnings:o.warnings}))}))};var ve=z;ve.Item=me,ve.List=be,ve.ErrorList=b,ve.useForm=I,ve.useFormInstance=function(){return Object(u.useContext)(r.a).form},ve.useWatch=y.h,ve.Provider=r.d,ve.create=function(){};t.a=ve},function(e,t,n){"use strict";var r=n(3),o=n(1),i=n(130),a=n(26),s=n(4),c=n(7),l=n.n(c),u=n(66),d=n(10),f=n(32),h=function(e){var t=e.prefixCls,n=e.className,i=e.style,a=e.size,c=e.shape,u=l()(Object(s.a)(Object(s.a)({},"".concat(t,"-lg"),"large"===a),"".concat(t,"-sm"),"small"===a)),d=l()(Object(s.a)(Object(s.a)(Object(s.a)({},"".concat(t,"-circle"),"circle"===c),"".concat(t,"-square"),"square"===c),"".concat(t,"-round"),"round"===c)),f=o.useMemo((function(){return"number"===typeof a?{width:a,height:a,lineHeight:"".concat(a,"px")}:{}}),[a]);return o.createElement("span",{className:l()(t,u,d,n),style:Object(r.a)(Object(r.a)({},f),i)})},p=function(e){var t=e.prefixCls,n=e.className,i=e.active,a=e.shape,c=void 0===a?"circle":a,d=e.size,p=void 0===d?"default":d,m=(0,o.useContext(u.b).getPrefixCls)("skeleton",t),g=Object(f.a)(e,["prefixCls","className"]),b=l()(m,"".concat(m,"-element"),Object(s.a)({},"".concat(m,"-active"),i),n);return o.createElement("div",{className:b},o.createElement(h,Object(r.a)({prefixCls:"".concat(m,"-avatar"),shape:c,size:p},g)))},m=function(e){var t=e.prefixCls,n=e.className,i=e.active,a=e.block,c=void 0!==a&&a,d=e.size,p=void 0===d?"default":d,m=(0,o.useContext(u.b).getPrefixCls)("skeleton",t),g=Object(f.a)(e,["prefixCls"]),b=l()(m,"".concat(m,"-element"),Object(s.a)(Object(s.a)({},"".concat(m,"-active"),i),"".concat(m,"-block"),c),n);return o.createElement("div",{className:b},o.createElement(h,Object(r.a)({prefixCls:"".concat(m,"-button"),size:p},g)))},g=n(5),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},v=n(18),y=function(e,t){return o.createElement(v.a,Object(g.a)(Object(g.a)({},e),{},{ref:t,icon:b}))};y.displayName="DotChartOutlined";var w=o.forwardRef(y),k=function(e){var t=e.prefixCls,n=e.className,r=e.style,i=e.active,a=e.children,c=(0,o.useContext(u.b).getPrefixCls)("skeleton",t),d=l()(c,"".concat(c,"-element"),Object(s.a)({},"".concat(c,"-active"),i),n),f=null!==a&&void 0!==a?a:o.createElement(w,null);return o.createElement("div",{className:d},o.createElement("div",{className:l()("".concat(c,"-image"),n),style:r},f))},_=function(e){var t=e.prefixCls,n=e.className,r=e.style,i=e.active,a=(0,o.useContext(u.b).getPrefixCls)("skeleton",t),c=l()(a,"".concat(a,"-element"),Object(s.a)({},"".concat(a,"-active"),i),n);return o.createElement("div",{className:c},o.createElement("div",{className:l()("".concat(a,"-image"),n),style:r},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(a,"-image-svg")},o.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(a,"-image-path")}))))},O=function(e){var t=e.prefixCls,n=e.className,i=e.active,a=e.block,c=e.size,d=void 0===c?"default":c,p=(0,o.useContext(u.b).getPrefixCls)("skeleton",t),m=Object(f.a)(e,["prefixCls"]),g=l()(p,"".concat(p,"-element"),Object(s.a)(Object(s.a)({},"".concat(p,"-active"),i),"".concat(p,"-block"),a),n);return o.createElement("div",{className:g},o.createElement(h,Object(r.a)({prefixCls:"".concat(p,"-input"),size:d},m)))},x=n(9),C=function(e){var t=function(t){var n=e.width,r=e.rows,o=void 0===r?2:r;return Array.isArray(n)?n[t]:o-1===t?n:void 0},n=e.prefixCls,r=e.className,i=e.style,a=e.rows,s=Object(x.a)(Array(a)).map((function(e,n){return o.createElement("li",{key:n,style:{width:t(n)}})}));return o.createElement("ul",{className:l()(n,r),style:i},s)},E=function(e){var t=e.prefixCls,n=e.className,i=e.width,a=e.style;return o.createElement("h3",{className:l()(t,n),style:Object(r.a)({width:i},a)})};function j(e){return e&&"object"===Object(d.a)(e)?e:{}}var S=function(e){var t=e.prefixCls,n=e.loading,i=e.className,a=e.style,c=e.children,d=e.avatar,f=void 0!==d&&d,p=e.title,m=void 0===p||p,g=e.paragraph,b=void 0===g||g,v=e.active,y=e.round,w=o.useContext(u.b),k=w.getPrefixCls,_=w.direction,O=k("skeleton",t);if(n||!("loading"in e)){var x,S,P=!!f,T=!!m,N=!!b;if(P){var A=Object(r.a)(Object(r.a)({prefixCls:"".concat(O,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(T,N)),j(f));x=o.createElement("div",{className:"".concat(O,"-header")},o.createElement(h,Object(r.a)({},A)))}if(T||N){var M,R;if(T){var I=Object(r.a)(Object(r.a)({prefixCls:"".concat(O,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(P,N)),j(m));M=o.createElement(E,Object(r.a)({},I))}if(N){var D=Object(r.a)(Object(r.a)({prefixCls:"".concat(O,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(P,T)),j(b));R=o.createElement(C,Object(r.a)({},D))}S=o.createElement("div",{className:"".concat(O,"-content")},M,R)}var L=l()(O,Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},"".concat(O,"-with-avatar"),P),"".concat(O,"-active"),v),"".concat(O,"-rtl"),"rtl"===_),"".concat(O,"-round"),y),i);return o.createElement("div",{className:L,style:a},x,S)}return"undefined"!==typeof c?c:null};S.Button=m,S.Avatar=p,S.Input=O,S.Image=_,S.Node=k;var P=S,T=n(261),N=n.n(T),A=function(e){var t,n=e.value,r=e.formatter,i=e.precision,a=e.decimalSeparator,s=e.groupSeparator,c=void 0===s?"":s,l=e.prefixCls;if("function"===typeof r)t=r(n);else{var u=String(n),d=u.match(/^(-?)(\d*)(\.(\d+))?$/);if(d&&"-"!==u){var f=d[1],h=d[2]||"0",p=d[4]||"";h=h.replace(/\B(?=(\d{3})+(?!\d))/g,c),"number"===typeof i&&(p=N()(p,i,"0").slice(0,i>0?i:0)),p&&(p="".concat(a).concat(p)),t=[o.createElement("span",{key:"int",className:"".concat(l,"-content-value-int")},f,h),p&&o.createElement("span",{key:"decimal",className:"".concat(l,"-content-value-decimal")},p)]}else t=u}return o.createElement("span",{className:"".concat(l,"-content-value")},t)},M=Object(u.c)({prefixCls:"statistic"})((function(e){var t=e.prefixCls,n=e.className,i=e.style,a=e.valueStyle,c=e.value,u=void 0===c?0:c,d=e.title,f=e.valueRender,h=e.prefix,p=e.suffix,m=e.loading,g=void 0!==m&&m,b=e.direction,v=e.onMouseEnter,y=e.onMouseLeave,w=e.decimalSeparator,k=void 0===w?".":w,_=e.groupSeparator,O=void 0===_?",":_,x=o.createElement(A,Object(r.a)({decimalSeparator:k,groupSeparator:O},e,{value:u})),C=l()(t,Object(s.a)({},"".concat(t,"-rtl"),"rtl"===b),n);return o.createElement("div",{className:C,style:i,onMouseEnter:v,onMouseLeave:y},d&&o.createElement("div",{className:"".concat(t,"-title")},d),o.createElement(P,{paragraph:!1,loading:g,className:"".concat(t,"-skeleton")},o.createElement("div",{style:a,className:"".concat(t,"-content")},h&&o.createElement("span",{className:"".concat(t,"-content-prefix")},h),f?f(x):x,p&&o.createElement("span",{className:"".concat(t,"-content-suffix")},p))))})),R=n(6),I=n(262),D=n.n(I),L=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function z(e,t){var n=t.format,r=void 0===n?"":n,o=new Date(e).getTime(),i=Date.now();return function(e,t){var n=e,r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),i=t.replace(r,"[]"),a=L.reduce((function(e,t){var r=Object(R.a)(t,2),o=r[0],i=r[1];if(e.includes(o)){var a=Math.floor(n/i);return n-=a*i,e.replace(new RegExp("".concat(o,"+"),"g"),(function(e){var t=e.length;return D()(a.toString(),t,"0")}))}return e}),i),s=0;return a.replace(r,(function(){var e=o[s];return s+=1,e}))}(Math.max(o-i,0),r)}var F=function(e){var t=e.value,n=e.format,s=void 0===n?"HH:mm:ss":n,c=e.onChange,l=e.onFinish,u=Object(i.a)(),d=o.useRef(null),f=function(){var e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(d.current=setInterval((function(){u(),null===c||void 0===c||c(e-Date.now()),e<Date.now()&&(null===l||void 0===l||l(),d.current&&(clearInterval(d.current),d.current=null))}),33.333333333333336))};o.useEffect((function(){return f(),function(){d.current&&(clearInterval(d.current),d.current=null)}}),[t]);return o.createElement(M,Object(r.a)({},e,{valueRender:function(e){return Object(a.a)(e,{title:void 0})},formatter:function(e,t){return z(e,Object(r.a)(Object(r.a)({},t),{format:s}))}}))},V=o.memo(F);M.Countdown=V;t.a=M},function(e,t,n){"use strict";var r=n(9),o=n(3),i=n(105);function a(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function s(e){var t=function(t){var n=e(t);return t.css?Object(o.a)({},Object(i.a)(n,e(Object(o.a)({theme:t.theme},t.css))),a(t.css,[e.filterProps])):t.sx?Object(o.a)({},Object(i.a)(n,e(Object(o.a)({theme:t.theme},t.sx))),a(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Object(r.a)(e.filterProps)),t}var c=s;var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Object(i.a)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r},u=n(4),d=n(172);function f(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var h=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=f(e.theme,o)||{};return Object(d.a)(e,n,(function(e){var t;return"function"===typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=f(a,e)||e,i&&(t=i(t))),!1===r?t:Object(u.a)({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function p(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var m=l(h({prop:"border",themeKey:"borders",transform:p}),h({prop:"borderTop",themeKey:"borders",transform:p}),h({prop:"borderRight",themeKey:"borders",transform:p}),h({prop:"borderBottom",themeKey:"borders",transform:p}),h({prop:"borderLeft",themeKey:"borders",transform:p}),h({prop:"borderColor",themeKey:"palette"}),h({prop:"borderRadius",themeKey:"shape"})),g=l(h({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),h({prop:"display"}),h({prop:"overflow"}),h({prop:"textOverflow"}),h({prop:"visibility"}),h({prop:"whiteSpace"})),b=l(h({prop:"flexBasis"}),h({prop:"flexDirection"}),h({prop:"flexWrap"}),h({prop:"justifyContent"}),h({prop:"alignItems"}),h({prop:"alignContent"}),h({prop:"order"}),h({prop:"flex"}),h({prop:"flexGrow"}),h({prop:"flexShrink"}),h({prop:"alignSelf"}),h({prop:"justifyItems"}),h({prop:"justifySelf"})),v=l(h({prop:"gridGap"}),h({prop:"gridColumnGap"}),h({prop:"gridRowGap"}),h({prop:"gridColumn"}),h({prop:"gridRow"}),h({prop:"gridAutoFlow"}),h({prop:"gridAutoColumns"}),h({prop:"gridAutoRows"}),h({prop:"gridTemplateColumns"}),h({prop:"gridTemplateRows"}),h({prop:"gridTemplateAreas"}),h({prop:"gridArea"})),y=l(h({prop:"position"}),h({prop:"zIndex",themeKey:"zIndex"}),h({prop:"top"}),h({prop:"right"}),h({prop:"bottom"}),h({prop:"left"})),w=l(h({prop:"color",themeKey:"palette"}),h({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),k=h({prop:"boxShadow",themeKey:"shadows"});function _(e){return e<=1?"".concat(100*e,"%"):e}var O=h({prop:"width",transform:_}),x=h({prop:"maxWidth",transform:_}),C=h({prop:"minWidth",transform:_}),E=h({prop:"height",transform:_}),j=h({prop:"maxHeight",transform:_}),S=h({prop:"minHeight",transform:_}),P=(h({prop:"size",cssProperty:"width",transform:_}),h({prop:"size",cssProperty:"height",transform:_}),l(O,x,C,E,j,S,h({prop:"boxSizing"}))),T=n(488),N=l(h({prop:"fontFamily",themeKey:"typography"}),h({prop:"fontSize",themeKey:"typography"}),h({prop:"fontStyle",themeKey:"typography"}),h({prop:"fontWeight",themeKey:"typography"}),h({prop:"letterSpacing"}),h({prop:"lineHeight"}),h({prop:"textAlign"})),A=n(8),M=n(1),R=n.n(M),I=n(15),D=n(86),L=n.n(D),z=n(416);function F(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,i=Object(A.a)(n,["name"]);var a,s=r,c="function"===typeof t?function(e){return{root:function(n){return t(Object(o.a)({theme:e},n))}}}:{root:t},l=Object(z.a)(c,Object(o.a)({Component:e,name:r||e.displayName,classNamePrefix:s},i));t.filterProps&&(a=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=R.a.forwardRef((function(t,n){var r=t.children,i=t.className,s=t.clone,c=t.component,u=Object(A.a)(t,["children","className","clone","component"]),d=l(t),f=Object(I.a)(d.root,i),h=u;if(a&&(h=function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(h,a)),s)return R.a.cloneElement(r,Object(o.a)({className:Object(I.a)(r.props.className,f)},h));if("function"===typeof r)return r(Object(o.a)({className:f},h));var p=c||e;return R.a.createElement(p,Object(o.a)({ref:n,className:f},h),r)}));return L()(u,e),u}}var V=n(111),B=function(e){var t=F(e);return function(e,n){return t(e,Object(o.a)({defaultTheme:V.a},n))}},H=c(l(m,g,b,v,y,w,k,P,T.b,N)),W=B("div")(H,{name:"MuiBox"});t.a=W},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ve})),n.d(t,"b",(function(){return Be}));var r=n(3),o=n(8),i=n(1),a=n.n(i),s=n(177),c=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var l=n(68),u=Date.now(),d="fnValues"+u,f="fnStyle"+ ++u,h=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=Object(l.c)(e,{},n);return r[f]=t,r},onProcessStyle:function(e,t){if(d in t||f in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[d]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[f];i&&(o.style=i(e)||{});var a=o[d];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},p="@global",m="@global ",g=function(){function e(e,t,n){for(var o in this.type="global",this.at=p,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new l.a(Object(r.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),b=function(){function e(e,t,n){this.type="global",this.at=p,this.isProcessed=!1,this.key=e,this.options=n;var o=e.substr(8);this.rule=n.jss.createRule(o,t,Object(r.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),v=/\s*,\s*/g;function y(e,t){for(var n=e.split(v),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var w=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===p)return new g(e,t,n);if("@"===e[0]&&e.substr(0,8)===m)return new b(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,o=e.style,i=o?o[p]:null;if(i){for(var a in i)t.addRule(a,i[a],Object(r.a)({},n,{selector:y(a,e.selector)}));delete o[p]}}(e,t),function(e,t){var n=e.options,o=e.style;for(var i in o)if("@"===i[0]&&i.substr(0,p.length)===p){var a=y(i.substr(p.length),e.selector);t.addRule(a,o[i],Object(r.a)({},n,{selector:a})),delete o[i]}}(e,t))}}},k=/\s*,\s*/g,_=/&/g,O=/\$([\w-]+)/g;var x=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(k),r=e.split(k),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var c=r[s];o&&(o+=", "),o+=-1!==c.indexOf("&")?c.replace(_,a):a+" "+c}return o}function n(e,t,n){if(n)return Object(r.a)({},n,{index:n.index+1});var o=e.options.nestingLevel;o=void 0===o?1:o+1;var i=Object(r.a)({},e.options,{nestingLevel:o,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(o,i,a){if("style"!==i.type)return o;var s,c,l=i,u=l.options.parent;for(var d in o){var f=-1!==d.indexOf("&"),h="@"===d[0];if(f||h){if(s=n(l,u,s),f){var p=t(d,l.selector);c||(c=e(u,a)),p=p.replace(O,c);var m=l.key+"-"+d;"replaceRule"in u?u.replaceRule(m,o[d],Object(r.a)({},s,{selector:p})):u.addRule(m,o[d],Object(r.a)({},s,{selector:p}))}else h&&u.addRule(d,{},s).addRule(l.key,o[d],{selector:l.selector});delete o[d]}}return o}}},C=/[A-Z]/g,E=/^ms-/,j={};function S(e){return"-"+e.toLowerCase()}var P=function(e){if(j.hasOwnProperty(e))return j[e];var t=e.replace(C,S);return j[e]=E.test(t)?"-"+t:t};function T(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:P(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(T):t.fallbacks=T(e.fallbacks)),t}var N=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=T(e[t]);return e}return T(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=P(t);return t===r?e:(n.prop(r,e),null)}}},A=l.e&&CSS?CSS.px:"px",M=l.e&&CSS?CSS.ms:"ms",R=l.e&&CSS?CSS.percent:"%";function I(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var D=I({"animation-delay":M,"animation-duration":M,"background-position":A,"background-position-x":A,"background-position-y":A,"background-size":A,border:A,"border-bottom":A,"border-bottom-left-radius":A,"border-bottom-right-radius":A,"border-bottom-width":A,"border-left":A,"border-left-width":A,"border-radius":A,"border-right":A,"border-right-width":A,"border-top":A,"border-top-left-radius":A,"border-top-right-radius":A,"border-top-width":A,"border-width":A,"border-block":A,"border-block-end":A,"border-block-end-width":A,"border-block-start":A,"border-block-start-width":A,"border-block-width":A,"border-inline":A,"border-inline-end":A,"border-inline-end-width":A,"border-inline-start":A,"border-inline-start-width":A,"border-inline-width":A,"border-start-start-radius":A,"border-start-end-radius":A,"border-end-start-radius":A,"border-end-end-radius":A,margin:A,"margin-bottom":A,"margin-left":A,"margin-right":A,"margin-top":A,"margin-block":A,"margin-block-end":A,"margin-block-start":A,"margin-inline":A,"margin-inline-end":A,"margin-inline-start":A,padding:A,"padding-bottom":A,"padding-left":A,"padding-right":A,"padding-top":A,"padding-block":A,"padding-block-end":A,"padding-block-start":A,"padding-inline":A,"padding-inline-end":A,"padding-inline-start":A,"mask-position-x":A,"mask-position-y":A,"mask-size":A,height:A,width:A,"min-height":A,"max-height":A,"min-width":A,"max-width":A,bottom:A,left:A,top:A,right:A,inset:A,"inset-block":A,"inset-block-end":A,"inset-block-start":A,"inset-inline":A,"inset-inline-end":A,"inset-inline-start":A,"box-shadow":A,"text-shadow":A,"column-gap":A,"column-rule":A,"column-rule-width":A,"column-width":A,"font-size":A,"font-size-delta":A,"letter-spacing":A,"text-decoration-thickness":A,"text-indent":A,"text-stroke":A,"text-stroke-width":A,"word-spacing":A,motion:A,"motion-offset":A,outline:A,"outline-offset":A,"outline-width":A,perspective:A,"perspective-origin-x":R,"perspective-origin-y":R,"transform-origin":R,"transform-origin-x":R,"transform-origin-y":R,"transform-origin-z":R,"transition-delay":M,"transition-duration":M,"vertical-align":A,"flex-basis":A,"shape-margin":A,size:A,gap:A,grid:A,"grid-gap":A,"row-gap":A,"grid-row-gap":A,"grid-column-gap":A,"grid-template-rows":A,"grid-template-columns":A,"grid-auto-rows":A,"grid-auto-columns":A,"box-shadow-x":A,"box-shadow-y":A,"box-shadow-blur":A,"box-shadow-spread":A,"font-line-height":A,"text-shadow-x":A,"text-shadow-y":A,"text-shadow-blur":A});function L(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=L(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=L(o,t[o],n);else for(var i in t)t[i]=L(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||D[e];return!a||0===t&&a===A?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var z=function(e){void 0===e&&(e={});var t=I(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=L(r,e[r],t);return e},onChangeValue:function(e,n){return L(n,e,t)}}},F=n(122),V=n(9),B="",H="",W="",U="",K=F.a&&"ontouchstart"in document.documentElement;if(F.a){var Y={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},q=document.createElement("p").style;for(var $ in Y)if($+"Transform"in q){B=$,H=Y[$];break}"Webkit"===B&&"msHyphens"in q&&(B="ms",H=Y.ms,U="edge"),"Webkit"===B&&"-apple-trailing-word"in q&&(W="apple")}var G={js:B,css:H,vendor:W,browser:U,isTouch:K};var Q={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===G.js?"-webkit-"+e:G.css+e)}},X={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===G.js?G.css+"print-"+e:e)}},J=/[-\s]+(.)?/g;function Z(e,t){return t?t.toUpperCase():""}function ee(e){return e.replace(J,Z)}function te(e){return ee("-"+e)}var ne,re={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===G.js){var n="mask-image";if(ee(n)in t)return e;if(G.js+te(n)in t)return G.css+e}return e}},oe={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G.vendor||G.isTouch?e:G.css+e)}},ie={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:G.css+e)}},ae={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:G.css+e)}},se={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===G.js||"ms"===G.js&&"edge"!==G.browser?G.css+e:e)}},ce={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===G.js||"ms"===G.js||"apple"===G.vendor?G.css+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===G.js?"WebkitColumn"+te(e)in t&&G.css+"column-"+e:"Moz"===G.js&&("page"+te(e)in t&&"page-"+e))}},ue={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===G.js)return e;var n=e.replace("-inline","");return G.js+te(n)in t&&G.css+n}},de={supportedProperty:function(e,t){return ee(e)in t&&e}},fe={supportedProperty:function(e,t){var n=te(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:G.js+n in t?G.css+e:"Webkit"!==G.js&&"Webkit"+n in t&&"-webkit-"+e}},he={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===G.js?""+G.css+e:e)}},pe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===G.js?G.css+"scroll-chaining":e)}},me={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ge={supportedProperty:function(e,t){var n=me[e];return!!n&&(G.js+te(n)in t&&G.css+n)}},be={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(be),ye=function(e){return G.css+e},we=[Q,X,re,oe,ie,ae,se,ce,le,ue,de,fe,he,pe,ge,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=be[e];if(!Array.isArray(o))return G.js+te(o)in t&&G.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(G.js+te(o[0])in t))return!1;return o.map(ye)}return!1}}],ke=we.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),_e=we.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(V.a)(t.noPrefill)),e}),[]),Oe={};if(F.a){ne=document.createElement("p");var xe=window.getComputedStyle(document.documentElement,"");for(var Ce in xe)isNaN(Ce)||(Oe[xe[Ce]]=xe[Ce]);_e.forEach((function(e){return delete Oe[e]}))}function Ee(e,t){if(void 0===t&&(t={}),!ne)return e;if(null!=Oe[e])return Oe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ne.style);for(var n=0;n<ke.length&&(Oe[e]=ke[n](e,ne.style,t),!Oe[e]);n++);try{ne.style[e]=""}catch(r){return!1}return Oe[e]}var je,Se={},Pe={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Te=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ne(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ee(t):", "+Ee(n);return r||(t||n)}function Ae(e,t){var n=t;if(!je||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Se[r])return Se[r];try{je.style[e]=n}catch(o){return Se[r]=!1,!1}if(Pe[e])n=n.replace(Te,Ne);else if(""===je.style[e]&&("-ms-flex"===(n=G.css+n)&&(je.style[e]="-ms-flexbox"),je.style[e]=n,""===je.style[e]))return Se[r]=!1,!1;return je.style[e]="",Se[r]=n,Se[r]}F.a&&(je=document.createElement("p"));var Me=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Ee(n);i&&i!==n&&(o=!0);var a=!1,s=Ae(i,Object(l.f)(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===G.js?n:"@"+G.css+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ae(t,Object(l.f)(e))||e}}};var Re=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Ie(){return{plugins:[h(),w(),x(),N(),z(),"undefined"===typeof window?null:Me(),Re()]}}var De,Le=Object(l.b)(Ie()),ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),u=0,d=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==c.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[s.a]&&""===a?"".concat(i,"-").concat(d()):i}return"".concat(l).concat(o).concat(d())}}(),Fe={disableGeneration:!1,generateClassName:ze,jss:Le,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Ve=a.a.createContext(Fe);function Be(e){var t=e.children,n=e.injectFirst,i=void 0!==n&&n,s=e.disableGeneration,c=void 0!==s&&s,u=Object(o.a)(e,["children","injectFirst","disableGeneration"]),d=a.a.useContext(Ve),f=Object(r.a)({},d,{disableGeneration:c},u);if(!f.jss.options.insertionPoint&&i&&"undefined"!==typeof window){if(!De){var h=document.head;De=document.createComment("mui-inject-first"),h.insertBefore(De,h.firstChild)}f.jss=Object(l.b)({plugins:Ie().plugins,insertionPoint:De})}return a.a.createElement(Ve.Provider,{value:f},t)}},function(e,t,n){"use strict";var r=n(9),o=n(3),i=n(204),a=n(206),s=n(155),c=n(205),l=n(141),u=n(1),d=n(20),f=n(4),h=n(7),p=n.n(h),m=n(6),g=n(70),b=n(71),v=n(138);function y(e){return!(!e||!e.then)}var w,k=function(e){var t=u.useRef(!1),n=u.useRef(null),r=Object(g.a)(!1),i=Object(m.a)(r,2),a=i[0],s=i[1],c=e.close,l=function(){null===c||void 0===c||c.apply(void 0,arguments)};u.useEffect((function(){var t=null;return e.autoFocus&&(t=setTimeout((function(){var e;null===(e=n.current)||void 0===e||e.focus()}))),function(){t&&clearTimeout(t)}}),[]);var d=e.type,f=e.children,h=e.prefixCls,p=e.buttonProps;return u.createElement(b.a,Object(o.a)({},Object(v.a)(d),{onClick:function(n){var r=e.actionFn;if(!t.current)if(t.current=!0,r){var o;if(e.emitEvent){if(o=r(n),e.quitOnNullishReturnValue&&!y(o))return t.current=!1,void l(n)}else if(r.length)o=r(c),t.current=!1;else if(!(o=r()))return void l();!function(e){y(e)&&(s(!0),e.then((function(){s(!1,!0),l.apply(void 0,arguments),t.current=!1}),(function(e){return s(!1,!0),t.current=!1,Promise.reject(e)})))}(o)}else l()},loading:a,prefixCls:h},p,{ref:n}),f)},_=n(60),O=n(114),x=n(269),C=n(66),E=n(24),j=n(67),S=n(55),P=n(186),T=n(120),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object(P.a)()&&document.documentElement.addEventListener("click",(function(e){w={x:e.pageX,y:e.pageY},setTimeout((function(){w=null}),100)}),!0);var A=function(e){var t,n=u.useContext(C.b),r=n.getPopupContainer,i=n.getPrefixCls,a=n.direction,s=function(t){var n=e.onCancel;null===n||void 0===n||n(t)},c=function(t){var n=e.onOk;null===n||void 0===n||n(t)},l=e.prefixCls,d=e.footer,h=e.visible,m=e.open,g=void 0!==m&&m,y=e.wrapClassName,k=e.centered,P=e.getContainer,A=e.closeIcon,M=e.focusTriggerAfterClose,R=void 0===M||M,I=e.width,D=void 0===I?520:I,L=N(e,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),z=i("modal",l),F=i(),V=u.createElement(j.a,{componentName:"Modal",defaultLocale:Object(T.b)()},(function(t){var n=e.okText,r=e.okType,i=void 0===r?"primary":r,a=e.cancelText,l=e.confirmLoading,d=void 0!==l&&l;return u.createElement(u.Fragment,null,u.createElement(b.a,Object(o.a)({onClick:s},e.cancelButtonProps),a||t.cancelText),u.createElement(b.a,Object(o.a)({},Object(v.a)(i),{loading:d,onClick:c},e.okButtonProps),null!==n&&void 0!==n?n:t.okText))})),B=u.createElement("span",{className:"".concat(z,"-close-x")},A||u.createElement(O.a,{className:"".concat(z,"-close-icon")})),H=p()(y,Object(f.a)(Object(f.a)({},"".concat(z,"-centered"),!!k),"".concat(z,"-wrap-rtl"),"rtl"===a));return u.createElement(S.a,null,u.createElement(E.e,{status:!0,override:!0},u.createElement(x.a,Object(o.a)({width:D},L,{getContainer:void 0===P?r:P,prefixCls:z,wrapClassName:H,footer:void 0===d?V:d,visible:g||h,mousePosition:null!==(t=L.mousePosition)&&void 0!==t?t:w,onClose:s,closeIcon:B,focusTriggerAfterClose:R,transitionName:Object(_.c)(F,"zoom",e.transitionName),maskTransitionName:Object(_.c)(F,"fade",e.maskTransitionName)}))))},M=function(e){var t=e.icon,n=e.onCancel,r=e.onOk,o=e.close,i=e.zIndex,a=e.afterClose,s=e.visible,c=e.open,l=e.keyboard,h=e.centered,m=e.getContainer,g=e.maskStyle,b=e.okText,v=e.okButtonProps,y=e.cancelText,w=e.cancelButtonProps,O=e.direction,x=e.prefixCls,C=e.wrapClassName,E=e.rootPrefixCls,j=e.iconPrefixCls,S=e.bodyStyle,P=e.closable,T=void 0!==P&&P,N=e.closeIcon,M=e.modalRender,R=e.focusTriggerAfterClose;var I=e.okType||"primary",D="".concat(x,"-confirm"),L=!("okCancel"in e)||e.okCancel,z=e.width||416,F=e.style||{},V=void 0===e.mask||e.mask,B=void 0!==e.maskClosable&&e.maskClosable,H=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),W=p()(D,"".concat(D,"-").concat(e.type),Object(f.a)({},"".concat(D,"-rtl"),"rtl"===O),e.className),U=L&&u.createElement(k,{actionFn:n,close:o,autoFocus:"cancel"===H,buttonProps:w,prefixCls:"".concat(E,"-btn")},y);return u.createElement(d.a,{prefixCls:E,iconPrefixCls:j,direction:O},u.createElement(A,{prefixCls:x,className:W,wrapClassName:p()(Object(f.a)({},"".concat(D,"-centered"),!!e.centered),C),onCancel:function(){return null===o||void 0===o?void 0:o({triggerCancel:!0})},open:c||s,title:"",footer:"",transitionName:Object(_.c)(E,"zoom",e.transitionName),maskTransitionName:Object(_.c)(E,"fade",e.maskTransitionName),mask:V,maskClosable:B,maskStyle:g,style:F,bodyStyle:S,width:z,zIndex:i,afterClose:a,keyboard:l,centered:h,getContainer:m,closable:T,closeIcon:N,modalRender:M,focusTriggerAfterClose:R},u.createElement("div",{className:"".concat(D,"-body-wrapper")},u.createElement("div",{className:"".concat(D,"-body")},t,void 0===e.title?null:u.createElement("span",{className:"".concat(D,"-title")},e.title),u.createElement("div",{className:"".concat(D,"-content")},e.content)),u.createElement("div",{className:"".concat(D,"-btns")},U,u.createElement(k,{type:I,actionFn:r,close:o,autoFocus:"ok"===H,buttonProps:v,prefixCls:"".concat(E,"-btn")},b)))))},R=[],I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},D="";function L(e){var t,n=document.createDocumentFragment(),i=Object(o.a)(Object(o.a)({},e),{close:c,open:!0});function a(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=o.some((function(e){return e&&e.triggerCancel}));e.onCancel&&a&&e.onCancel.apply(e,[function(){}].concat(Object(r.a)(o.slice(1))));for(var s=0;s<R.length;s++){if(R[s]===c){R.splice(s,1);break}}Object(l.b)(n)}function s(e){var r=e.okText,i=e.cancelText,a=e.prefixCls,s=I(e,["okText","cancelText","prefixCls"]);clearTimeout(t),t=setTimeout((function(){var e=Object(T.b)(),t=Object(d.b)(),c=t.getPrefixCls,f=t.getIconPrefixCls,h=c(void 0,D),p=a||"".concat(h,"-modal"),m=f();Object(l.a)(u.createElement(M,Object(o.a)({},s,{prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:r||(s.okCancel?e.okText:e.justOkText),cancelText:i||e.cancelText})),n)}))}function c(){for(var t=this,n=arguments.length,r=new Array(n),c=0;c<n;c++)r[c]=arguments[c];(i=Object(o.a)(Object(o.a)({},i),{open:!1,afterClose:function(){"function"===typeof e.afterClose&&e.afterClose(),a.apply(t,r)}})).visible&&delete i.visible,s(i)}return s(i),R.push(c),{destroy:c,update:function(e){s(i="function"===typeof e?e(i):Object(o.a)(Object(o.a)({},i),e))}}}function z(e){return Object(o.a)(Object(o.a)({icon:u.createElement(s.a,null),okCancel:!1},e),{type:"warning"})}function F(e){return Object(o.a)(Object(o.a)({icon:u.createElement(c.a,null),okCancel:!1},e),{type:"info"})}function V(e){return Object(o.a)(Object(o.a)({icon:u.createElement(i.a,null),okCancel:!1},e),{type:"success"})}function B(e){return Object(o.a)(Object(o.a)({icon:u.createElement(a.a,null),okCancel:!1},e),{type:"error"})}function H(e){return Object(o.a)(Object(o.a)({icon:u.createElement(s.a,null),okCancel:!0},e),{type:"confirm"})}var W=n(81),U=function(e,t){var n=e.afterClose,i=e.config,a=u.useState(!0),s=Object(m.a)(a,2),c=s[0],l=s[1],d=u.useState(i),f=Object(m.a)(d,2),h=f[0],p=f[1],g=u.useContext(C.b),b=g.direction,v=g.getPrefixCls,y=v("modal"),w=v(),k=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.some((function(e){return e&&e.triggerCancel}));h.onCancel&&o&&h.onCancel.apply(h,[function(){}].concat(Object(r.a)(t.slice(1))))};return u.useImperativeHandle(t,(function(){return{destroy:k,update:function(e){p((function(t){return Object(o.a)(Object(o.a)({},t),e)}))}}})),u.createElement(j.a,{componentName:"Modal",defaultLocale:W.a.Modal},(function(e){return u.createElement(M,Object(o.a)({prefixCls:y,rootPrefixCls:w},h,{close:k,open:c,afterClose:n,okText:h.okText||(h.okCancel?e.okText:e.justOkText),direction:b,cancelText:h.cancelText||e.cancelText}))}))},K=u.forwardRef(U),Y=0,q=u.memo(u.forwardRef((function(e,t){var n=function(){var e=u.useState([]),t=Object(m.a)(e,2),n=t[0],o=t[1];return[n,u.useCallback((function(e){return o((function(t){return[].concat(Object(r.a)(t),[e])})),function(){o((function(t){return t.filter((function(t){return t!==e}))}))}}),[])]}(),o=Object(m.a)(n,2),i=o[0],a=o[1];return u.useImperativeHandle(t,(function(){return{patchElement:a}}),[]),u.createElement(u.Fragment,null,i)})));function $(e){return L(z(e))}var G=A;G.useModal=function(){var e=u.useRef(null),t=u.useState([]),n=Object(m.a)(t,2),o=n[0],i=n[1];u.useEffect((function(){o.length&&(Object(r.a)(o).forEach((function(e){e()})),i([]))}),[o]);var a=u.useCallback((function(t){return function(n){var o;Y+=1;var a,s=u.createRef(),c=u.createElement(K,{key:"modal-".concat(Y),config:t(n),ref:s,afterClose:function(){null===a||void 0===a||a()}});return a=null===(o=e.current)||void 0===o?void 0:o.patchElement(c),{destroy:function(){function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():i((function(t){return[].concat(Object(r.a)(t),[e])}))},update:function(e){function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():i((function(e){return[].concat(Object(r.a)(e),[t])}))}}}}),[]);return[u.useMemo((function(){return{info:a(F),success:a(V),error:a(B),warning:a(z),confirm:a(H)}}),[]),u.createElement(q,{ref:e})]},G.info=function(e){return L(F(e))},G.success=function(e){return L(V(e))},G.error=function(e){return L(B(e))},G.warning=$,G.warn=$,G.confirm=function(e){return L(H(e))},G.destroyAll=function(){for(;R.length;){var e=R.pop();e&&e()}},G.config=function(e){var t=e.rootPrefixCls;D=t};t.a=G},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1),a=n(15),s=n(46),c=n(19),l=n(455),u=n(85),d=Object(u.a)(i.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),f=Object(u.a)(i.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),h=Object(u.a)(i.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),p=Object(u.a)(i.createElement("path",{d:"M11,9H13V7H11M12,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,2M11,17H13V11H11V17Z"}),"InfoOutlined"),m=Object(u.a)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),g=n(457),b=n(36),v={success:i.createElement(d,{fontSize:"inherit"}),warning:i.createElement(f,{fontSize:"inherit"}),error:i.createElement(h,{fontSize:"inherit"}),info:i.createElement(p,{fontSize:"inherit"})},y=i.createElement(m,{fontSize:"small"}),w=i.forwardRef((function(e,t){var n=e.action,s=e.children,c=e.classes,u=e.className,d=e.closeText,f=void 0===d?"Close":d,h=e.color,p=e.icon,m=e.iconMapping,w=void 0===m?v:m,k=e.onClose,_=e.role,O=void 0===_?"alert":_,x=e.severity,C=void 0===x?"success":x,E=e.variant,j=void 0===E?"standard":E,S=Object(r.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return i.createElement(l.a,Object(o.a)({role:O,square:!0,elevation:0,className:Object(a.a)(c.root,c["".concat(j).concat(Object(b.a)(h||C))],u),ref:t},S),!1!==p?i.createElement("div",{className:c.icon},p||w[C]||v[C]):null,i.createElement("div",{className:c.message},s),null!=n?i.createElement("div",{className:c.action},n):null,null==n&&k?i.createElement("div",{className:c.action},i.createElement(g.a,{size:"small","aria-label":f,title:f,color:"inherit",onClick:k},y)):null)}));t.a=Object(c.a)((function(e){var t="light"===e.palette.type?s.b:s.e,n="light"===e.palette.type?s.e:s.b;return{root:Object(o.a)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(w)},function(e,t,n){"use strict";var r=n(4),o=n(10),i=n(3),a=n(7),s=n.n(a),c=n(52),l=n(1),u=n(66),d=n(26),f=n(119);function h(e){return f.a.includes(e)}var p=function(e){var t=e.className,n=e.prefixCls,o=e.style,a=e.color,c=e.children,d=e.text,f=e.placement,p=void 0===f?"end":f,m=l.useContext(u.b),g=m.getPrefixCls,b=m.direction,v=g("ribbon",n),y=h(a),w=s()(v,"".concat(v,"-placement-").concat(p),Object(r.a)(Object(r.a)({},"".concat(v,"-rtl"),"rtl"===b),"".concat(v,"-color-").concat(a),y),t),k={},_={};return a&&!y&&(k.background=a,_.color=a),l.createElement("div",{className:"".concat(v,"-wrapper")},c,l.createElement("div",{className:w,style:Object(i.a)(Object(i.a)({},k),o)},l.createElement("span",{className:"".concat(v,"-text")},d),l.createElement("div",{className:"".concat(v,"-corner"),style:_})))},m=n(6);function g(e){var t,n=e.prefixCls,r=e.value,o=e.current,i=e.offset,a=void 0===i?0:i;return a&&(t={position:"absolute",top:"".concat(a,"00%"),left:0}),l.createElement("span",{style:t,className:s()("".concat(n,"-only-unit"),{current:o})},r)}function b(e,t,n){for(var r=e,o=0;(r+10)%10!==t;)r+=n,o+=n;return o}function v(e){var t,n,r=e.prefixCls,o=e.count,a=e.value,s=Number(a),c=Math.abs(o),u=l.useState(s),d=Object(m.a)(u,2),f=d[0],h=d[1],p=l.useState(c),v=Object(m.a)(p,2),y=v[0],w=v[1],k=function(){h(s),w(c)};if(l.useEffect((function(){var e=setTimeout((function(){k()}),1e3);return function(){clearTimeout(e)}}),[s]),f===s||Number.isNaN(s)||Number.isNaN(f))t=[l.createElement(g,Object(i.a)({},e,{key:s,current:!0}))],n={transition:"none"};else{t=[];for(var _=s+10,O=[],x=s;x<=_;x+=1)O.push(x);var C=O.findIndex((function(e){return e%10===f}));t=O.map((function(t,n){var r=t%10;return l.createElement(g,Object(i.a)({},e,{key:t,value:r,offset:n-C,current:n===C}))})),n={transform:"translateY(".concat(-b(f,s,y<c?1:-1),"00%)")}}return l.createElement("span",{className:"".concat(r,"-only"),style:n,onTransitionEnd:k},t)}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=function(e){var t=e.prefixCls,n=e.count,r=e.className,o=e.motionClassName,a=e.style,c=e.title,f=e.show,h=e.component,p=void 0===h?"sup":h,m=e.children,g=y(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),b=(0,l.useContext(u.b).getPrefixCls)("scroll-number",t),w=Object(i.a)(Object(i.a)({},g),{"data-show":f,style:a,className:s()(b,r,o),title:c}),k=n;if(n&&Number(n)%1===0){var _=String(n).split("");k=_.map((function(e,t){return l.createElement(v,{prefixCls:b,count:Number(n),value:e,key:_.length-t})}))}return a&&a.borderColor&&(w.style=Object(i.a)(Object(i.a)({},a),{boxShadow:"0 0 0 1px ".concat(a.borderColor," inset")})),m?Object(d.a)(m,(function(e){return{className:s()("".concat(b,"-custom-component"),null===e||void 0===e?void 0:e.className,o)}})):l.createElement(p,w,k)},k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_=function(e){var t=e.prefixCls,n=e.scrollNumberPrefixCls,a=e.children,f=e.status,p=e.text,m=e.color,g=e.count,b=void 0===g?null:g,v=e.overflowCount,y=void 0===v?99:v,_=e.dot,O=void 0!==_&&_,x=e.size,C=void 0===x?"default":x,E=e.title,j=e.offset,S=e.style,P=e.className,T=e.showZero,N=void 0!==T&&T,A=k(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),M=l.useContext(u.b),R=M.getPrefixCls,I=M.direction,D=R("badge",t),L=b>y?"".concat(y,"+"):b,z="0"===L||0===L,F=(null!==f&&void 0!==f||null!==m&&void 0!==m)&&(null===b||z&&!N),V=O&&!z,B=V?"":L,H=Object(l.useMemo)((function(){return(null===B||void 0===B||""===B||z&&!N)&&!V}),[B,z,N,V]),W=Object(l.useRef)(b);H||(W.current=b);var U=W.current,K=Object(l.useRef)(B);H||(K.current=B);var Y=K.current,q=Object(l.useRef)(V);H||(q.current=V);var $=Object(l.useMemo)((function(){if(!j)return Object(i.a)({},S);var e={marginTop:j[1]};return"rtl"===I?e.left=parseInt(j[0],10):e.right=-parseInt(j[0],10),Object(i.a)(Object(i.a)({},e),S)}),[I,j,S]),G=null!==E&&void 0!==E?E:"string"===typeof U||"number"===typeof U?U:void 0,Q=H||!p?null:l.createElement("span",{className:"".concat(D,"-status-text")},p),X=U&&"object"===Object(o.a)(U)?Object(d.a)(U,(function(e){return{style:Object(i.a)(Object(i.a)({},$),e.style)}})):void 0,J=s()(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(D,"-status-dot"),F),"".concat(D,"-status-").concat(f),!!f),"".concat(D,"-status-").concat(m),h(m))),Z={};m&&!h(m)&&(Z.background=m);var ee=s()(D,Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(D,"-status"),F),"".concat(D,"-not-a-wrapper"),!a),"".concat(D,"-rtl"),"rtl"===I),P);if(!a&&F){var te=$.color;return l.createElement("span",Object(i.a)({},A,{className:ee,style:$}),l.createElement("span",{className:J,style:Z}),p&&l.createElement("span",{style:{color:te},className:"".concat(D,"-status-text")},p))}return l.createElement("span",Object(i.a)({},A,{className:ee}),a,l.createElement(c.b,{visible:!H,motionName:"".concat(D,"-zoom"),motionAppear:!1,motionDeadline:1e3},(function(e){var t=e.className,o=R("scroll-number",n),a=q.current,c=s()(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},"".concat(D,"-dot"),a),"".concat(D,"-count"),!a),"".concat(D,"-count-sm"),"small"===C),"".concat(D,"-multiple-words"),!a&&Y&&Y.toString().length>1),"".concat(D,"-status-").concat(f),!!f),"".concat(D,"-status-").concat(m),h(m))),u=Object(i.a)({},$);return m&&!h(m)&&((u=u||{}).background=m),l.createElement(w,{prefixCls:o,show:!H,motionClassName:t,className:c,count:Y,title:G,style:u,key:"scrollNumber"},X)})),Q)};_.Ribbon=p;t.a=_},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(6),c=n(191),l=n(137),u=n(19),d=n(457),f=i.forwardRef((function(e,t){var n=e.autoFocus,u=e.checked,f=e.checkedIcon,h=e.classes,p=e.className,m=e.defaultChecked,g=e.disabled,b=e.icon,v=e.id,y=e.inputProps,w=e.inputRef,k=e.name,_=e.onBlur,O=e.onChange,x=e.onFocus,C=e.readOnly,E=e.required,j=e.tabIndex,S=e.type,P=e.value,T=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),N=Object(c.a)({controlled:u,default:Boolean(m),name:"SwitchBase",state:"checked"}),A=Object(s.a)(N,2),M=A[0],R=A[1],I=Object(l.a)(),D=g;I&&"undefined"===typeof D&&(D=I.disabled);var L="checkbox"===S||"radio"===S;return i.createElement(d.a,Object(r.a)({component:"span",className:Object(a.a)(h.root,p,M&&h.checked,D&&h.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){x&&x(e),I&&I.onFocus&&I.onFocus(e)},onBlur:function(e){_&&_(e),I&&I.onBlur&&I.onBlur(e)},ref:t},T),i.createElement("input",Object(r.a)({autoFocus:n,checked:u,defaultChecked:m,className:h.input,disabled:D,id:L&&v,name:k,onChange:function(e){var t=e.target.checked;R(t),O&&O(e,t)},readOnly:C,ref:w,required:E,tabIndex:j,type:S,value:P},y)),M?f:b)})),h=Object(u.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(f),p=n(85),m=Object(p.a)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),g=Object(p.a)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),b=n(46),v=Object(p.a)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),y=n(36),w=i.createElement(g,null),k=i.createElement(m,null),_=i.createElement(v,null),O=i.forwardRef((function(e,t){var n=e.checkedIcon,s=void 0===n?w:n,c=e.classes,l=e.color,u=void 0===l?"secondary":l,d=e.icon,f=void 0===d?k:d,p=e.indeterminate,m=void 0!==p&&p,g=e.indeterminateIcon,b=void 0===g?_:g,v=e.inputProps,O=e.size,x=void 0===O?"medium":O,C=Object(o.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),E=m?b:f,j=m?b:s;return i.createElement(h,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(c.root,c["color".concat(Object(y.a)(u))],m&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:u,inputProps:Object(r.a)({"data-indeterminate":m},v),icon:i.cloneElement(E,{fontSize:void 0===E.props.fontSize&&"small"===x?x:E.props.fontSize}),checkedIcon:i.cloneElement(j,{fontSize:void 0===j.props.fontSize&&"small"===x?x:j.props.fontSize}),ref:t},C))}));t.a=Object(u.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(b.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(b.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(O)},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(10),a=n(6),s=n(7),c=n.n(s),l=n(64),u=n(28),d=n(1),f=n(66),h=n(129),p=n(90),m=d.createContext("default"),g=function(e){var t=e.children,n=e.size;return d.createElement(m.Consumer,null,(function(e){return d.createElement(m.Provider,{value:n||e},t)}))},b=m,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=function(e,t){var n=d.useContext(b),s=d.useState(1),m=Object(a.a)(s,2),g=m[0],y=m[1],w=d.useState(!1),k=Object(a.a)(w,2),_=k[0],O=k[1],x=d.useState(!0),C=Object(a.a)(x,2),E=C[0],j=C[1],S=d.useRef(null),P=d.useRef(null),T=Object(u.a)(t,S),N=d.useContext(f.b).getPrefixCls,A=function(){if(P.current&&S.current){var t=P.current.offsetWidth,n=S.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&y(n-2*o<t?(n-2*o)/t:1)}}};d.useEffect((function(){O(!0)}),[]),d.useEffect((function(){j(!0),y(1)}),[e.src]),d.useEffect((function(){A()}),[e.gap]);var M,R=e.prefixCls,I=e.shape,D=void 0===I?"circle":I,L=e.size,z=void 0===L?"default":L,F=e.src,V=e.srcSet,B=e.icon,H=e.className,W=e.alt,U=e.draggable,K=e.children,Y=e.crossOrigin,q=v(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),$="default"===z?n:z,G=Object.keys("object"===Object(i.a)($)&&$||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),Q=Object(h.a)(G),X=d.useMemo((function(){if("object"!==Object(i.a)($))return{};var e=p.b.find((function(e){return Q[e]})),t=$[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:B?t/2:18}:{}}),[Q,$]),J=N("avatar",R),Z=c()(Object(o.a)(Object(o.a)({},"".concat(J,"-lg"),"large"===$),"".concat(J,"-sm"),"small"===$)),ee=d.isValidElement(F),te=c()(J,Z,Object(o.a)(Object(o.a)(Object(o.a)({},"".concat(J,"-").concat(D),!!D),"".concat(J,"-image"),ee||F&&E),"".concat(J,"-icon"),!!B),H),ne="number"===typeof $?{width:$,height:$,lineHeight:"".concat($,"px"),fontSize:B?$/2:18}:{};if("string"===typeof F&&E)M=d.createElement("img",{src:F,draggable:U,srcSet:V,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&j(!1)},alt:W,crossOrigin:Y});else if(ee)M=F;else if(B)M=B;else if(_||1!==g){var re="scale(".concat(g,") translateX(-50%)"),oe={msTransform:re,WebkitTransform:re,transform:re},ie="number"===typeof $?{lineHeight:"".concat($,"px")}:{};M=d.createElement(l.a,{onResize:A},d.createElement("span",{className:"".concat(J,"-string"),ref:P,style:Object(r.a)(Object(r.a)({},ie),oe)},K))}else M=d.createElement("span",{className:"".concat(J,"-string"),style:{opacity:0},ref:P},K);return delete q.onError,delete q.gap,d.createElement("span",Object(r.a)({},q,{style:Object(r.a)(Object(r.a)(Object(r.a)({},ne),X),q.style),className:te,ref:T}),M)};var w=d.forwardRef(y),k=n(51),_=n(275),O=n(26),x=function(e){var t=d.useContext(f.b),n=t.getPrefixCls,r=t.direction,i=e.prefixCls,a=e.className,s=void 0===a?"":a,l=e.maxCount,u=e.maxStyle,h=e.size,p=n("avatar-group",i),m=c()(p,Object(o.a)({},"".concat(p,"-rtl"),"rtl"===r),s),b=e.children,v=e.maxPopoverPlacement,y=void 0===v?"top":v,x=e.maxPopoverTrigger,C=void 0===x?"hover":x,E=Object(k.a)(b).map((function(e,t){return Object(O.a)(e,{key:"avatar-key-".concat(t)})})),j=E.length;if(l&&l<j){var S=E.slice(0,l),P=E.slice(l,j);return S.push(d.createElement(_.a,{key:"avatar-popover-key",content:P,trigger:C,placement:y,overlayClassName:"".concat(p,"-popover")},d.createElement(w,{style:u},"+".concat(j-l)))),d.createElement(g,{size:h},d.createElement("div",{className:m,style:e.style},S))}return d.createElement(g,{size:h},d.createElement("div",{className:m,style:e.style},E))},C=w;C.Group=x;t.a=C},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1),a=n(22),s=n(222),c=n(451),l=n(61),u=n(414),d=n(94),f=n(40),h=n(72),p=n(174),m=n(27),g=n(25),b=n(9),v=n(190),y=n(192);function w(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function k(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(b.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&w(e,o)}))}function O(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function x(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(y.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Object(v.a)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(k(i)+a,"px"),n=Object(l.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(k(e)+a,"px")}))}var s=i.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){Object(m.a)(this,e),this.modals=[],this.containers=[]}return Object(g.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&w(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);_(t,e.mountNode,e.modalRef,r,!0);var o=O(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=x(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&w(e.modalRef,!0),_(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&w(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var E=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,s=void 0!==o&&o,c=e.disableRestoreFocus,u=void 0!==c&&c,d=e.getDoc,h=e.isEnabled,p=e.open,m=i.useRef(),g=i.useRef(null),b=i.useRef(null),v=i.useRef(),y=i.useRef(null),w=i.useCallback((function(e){y.current=a.findDOMNode(e)}),[]),k=Object(f.a)(t.ref,w),_=i.useRef();return i.useEffect((function(){_.current=p}),[p]),!_.current&&p&&"undefined"!==typeof window&&(v.current=d().activeElement),i.useEffect((function(){if(p){var e=Object(l.a)(y.current);r||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){null!==y.current&&(e.hasFocus()&&!s&&h()&&!m.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():m.current=!1)},n=function(t){!s&&h()&&9===t.keyCode&&e.activeElement===y.current&&(m.current=!0,t.shiftKey?b.current.focus():g.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[r,s,u,h,p]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:k}),i.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))},j={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},S=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,c=Object(r.a)(e,["invisible","open"]);return s?i.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},c,{style:Object(o.a)({},j.root,a?j.invisible:{},c.style)})):null}));var P=new C,T=i.forwardRef((function(e,t){var n=Object(s.a)(),m=Object(c.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),g=m.BackdropComponent,b=void 0===g?S:g,v=m.BackdropProps,y=m.children,k=m.closeAfterTransition,_=void 0!==k&&k,O=m.container,x=m.disableAutoFocus,C=void 0!==x&&x,j=m.disableBackdropClick,T=void 0!==j&&j,N=m.disableEnforceFocus,A=void 0!==N&&N,M=m.disableEscapeKeyDown,R=void 0!==M&&M,I=m.disablePortal,D=void 0!==I&&I,L=m.disableRestoreFocus,z=void 0!==L&&L,F=m.disableScrollLock,V=void 0!==F&&F,B=m.hideBackdrop,H=void 0!==B&&B,W=m.keepMounted,U=void 0!==W&&W,K=m.manager,Y=void 0===K?P:K,q=m.onBackdropClick,$=m.onClose,G=m.onEscapeKeyDown,Q=m.onRendered,X=m.open,J=Object(r.a)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=i.useState(!0),ee=Z[0],te=Z[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=Object(f.a)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),se=function(){return Object(l.a)(re.current)},ce=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},le=function(){Y.mount(ce(),{disableScrollLock:V}),oe.current.scrollTop=0},ue=Object(h.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(O)||se().body;Y.add(ce(),e),oe.current&&le()})),de=i.useCallback((function(){return Y.isTopModal(ce())}),[Y]),fe=Object(h.a)((function(e){re.current=e,e&&(Q&&Q(),X&&de()?le():w(oe.current,!0))})),he=i.useCallback((function(){Y.remove(ce())}),[Y]);if(i.useEffect((function(){return function(){he()}}),[he]),i.useEffect((function(){X?ue():ae&&_||he()}),[X,he,ae,_,ue]),!U&&!X&&(!ae||ee))return null;var pe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:p.a}),me={};return void 0===y.props.tabIndex&&(me.tabIndex=y.props.tabIndex||"-1"),ae&&(me.onEnter=Object(d.a)((function(){te(!1)}),y.props.onEnter),me.onExited=Object(d.a)((function(){te(!0),_&&he()}),y.props.onExited)),i.createElement(u.a,{ref:fe,container:O,disablePortal:D},i.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&de()&&(G&&G(e),R||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},role:"presentation"},J,{style:Object(o.a)({},pe.root,!X&&ee?pe.hidden:{},J.style)}),H?null:i.createElement(b,Object(o.a)({open:X,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!T&&$&&$(e,"backdropClick"))}},v)),i.createElement(E,{disableEnforceFocus:A,disableAutoFocus:C,disableRestoreFocus:z,getDoc:se,isEnabled:de,open:X},i.cloneElement(y,me))))}));t.a=T},function(e,t,n){"use strict";var r=n(8),o=n(4),i=n(3),a=n(1),s=n(15),c=n(19),l=n(277);var u=n(40),d=n(142),f=n(22),h="undefined"===typeof window?a.useEffect:a.useLayoutEffect,p=a.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,c=e.autoFocus,p=void 0!==c&&c,m=e.button,g=void 0!==m&&m,b=e.children,v=e.classes,y=e.className,w=e.component,k=e.ContainerComponent,_=void 0===k?"li":k,O=e.ContainerProps,x=(O=void 0===O?{}:O).className,C=Object(r.a)(O,["className"]),E=e.dense,j=void 0!==E&&E,S=e.disabled,P=void 0!==S&&S,T=e.disableGutters,N=void 0!==T&&T,A=e.divider,M=void 0!==A&&A,R=e.focusVisibleClassName,I=e.selected,D=void 0!==I&&I,L=Object(r.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),z=a.useContext(d.a),F={dense:j||z.dense||!1,alignItems:o},V=a.useRef(null);h((function(){p&&V.current&&V.current.focus()}),[p]);var B,H,W=a.Children.toArray(b),U=W.length&&(B=W[W.length-1],H=["ListItemSecondaryAction"],a.isValidElement(B)&&-1!==H.indexOf(B.type.muiName)),K=a.useCallback((function(e){V.current=f.findDOMNode(e)}),[]),Y=Object(u.a)(K,t),q=Object(i.a)({className:Object(s.a)(v.root,y,F.dense&&v.dense,!N&&v.gutters,M&&v.divider,P&&v.disabled,g&&v.button,"center"!==o&&v.alignItemsFlexStart,U&&v.secondaryAction,D&&v.selected),disabled:P},L),$=w||"li";return g&&(q.component=w||"div",q.focusVisibleClassName=Object(s.a)(v.focusVisible,R),$=l.a),U?($=q.component||w?$:"div","li"===_&&("li"===$?$="div":"li"===q.component&&(q.component="div")),a.createElement(d.a.Provider,{value:F},a.createElement(_,Object(i.a)({className:Object(s.a)(v.container,x),ref:Y},C),a.createElement($,q,W),W.pop()))):a.createElement(d.a.Provider,{value:F},a.createElement($,Object(i.a)({ref:Y},q),W))})),m=Object(c.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(p),g=a.forwardRef((function(e,t){var n,o=e.classes,c=e.className,l=e.component,u=void 0===l?"li":l,d=e.disableGutters,f=void 0!==d&&d,h=e.ListItemClasses,p=e.role,g=void 0===p?"menuitem":p,b=e.selected,v=e.tabIndex,y=Object(r.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==v?v:-1),a.createElement(m,Object(i.a)({button:!0,role:g,tabIndex:n,component:u,selected:b,disableGutters:f,classes:Object(i.a)({dense:o.dense},h),className:Object(s.a)(o.root,c,b&&o.selected,!f&&o.gutters),ref:t},y))}));t.a=Object(c.a)((function(e){return{root:Object(i.a)({},e.typography.body1,Object(o.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(i.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(g)},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=(n(109),n(22)),s=n(61),c=n(15),l=n(19),u=n(142),d=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.className,l=e.component,d=void 0===l?"ul":l,f=e.dense,h=void 0!==f&&f,p=e.disablePadding,m=void 0!==p&&p,g=e.subheader,b=Object(o.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),v=i.useMemo((function(){return{dense:h}}),[h]);return i.createElement(u.a.Provider,{value:v},i.createElement(d,Object(r.a)({className:Object(c.a)(a.root,s,h&&a.dense,!m&&a.padding,g&&a.subheader),ref:t},b),g,n))})),f=Object(l.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(d),h=n(190),p=n(40);function m(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function g(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function b(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function v(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&b(s,i)&&!c)return void s.focus();s=o(e,s,n)}}var y="undefined"===typeof window?i.useEffect:i.useLayoutEffect,w=i.forwardRef((function(e,t){var n=e.actions,c=e.autoFocus,l=void 0!==c&&c,u=e.autoFocusItem,d=void 0!==u&&u,w=e.children,k=e.className,_=e.disabledItemsFocusable,O=void 0!==_&&_,x=e.disableListWrap,C=void 0!==x&&x,E=e.onKeyDown,j=e.variant,S=void 0===j?"selectedMenu":j,P=Object(o.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),T=i.useRef(null),N=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});y((function(){l&&T.current.focus()}),[l]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!T.current.style.width;if(e.clientHeight<T.current.clientHeight&&n){var r="".concat(Object(h.a)(!0),"px");T.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,T.current.style.width="calc(100% + ".concat(r,")")}return T.current}}}),[]);var A=i.useCallback((function(e){T.current=a.findDOMNode(e)}),[]),M=Object(p.a)(A,t),R=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===R)&&(R=t))}));var I=i.Children.map(w,(function(e,t){if(t===R){var n={};return d&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===S&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(f,Object(r.a)({role:"menu",ref:M,className:k,onKeyDown:function(e){var t=T.current,n=e.key,r=Object(s.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),v(t,r,C,O,m);else if("ArrowUp"===n)e.preventDefault(),v(t,r,C,O,g);else if("Home"===n)e.preventDefault(),v(t,null,C,O,m);else if("End"===n)e.preventDefault(),v(t,null,C,O,g);else if(1===n.length){var o=N.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var c=r&&!o.repeating&&b(r,o);o.previousKeyMatched&&(c||v(t,r,!1,O,m,o))?e.preventDefault():o.previousKeyMatched=!1}E&&E(e)},tabIndex:l?0:-1},P),I)}));t.a=w},function(e,t,n){"use strict";var r=n(8),o=n(4),i=n(3),a=n(1),s=n(15),c=n(19),l=n(82),u=n(456),d=n(72),f=n(36),h=n(94),p=n(454),m=n(455),g=n(46),b=a.forwardRef((function(e,t){var n=e.action,o=e.classes,c=e.className,l=e.message,u=e.role,d=void 0===u?"alert":u,f=Object(r.a)(e,["action","classes","className","message","role"]);return a.createElement(m.a,Object(i.a)({role:d,square:!0,elevation:6,className:Object(s.a)(o.root,c),ref:t},f),a.createElement("div",{className:o.message},l),n?a.createElement("div",{className:o.action},n):null)})),v=Object(c.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(g.c)(e.palette.background.default,t);return{root:Object(i.a)({},e.typography.body2,Object(o.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(b),y=a.forwardRef((function(e,t){var n=e.action,o=e.anchorOrigin,c=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,m=o.horizontal,g=e.autoHideDuration,b=void 0===g?null:g,y=e.children,w=e.classes,k=e.className,_=e.ClickAwayListenerProps,O=e.ContentProps,x=e.disableWindowBlurListener,C=void 0!==x&&x,E=e.message,j=e.onClose,S=e.onEnter,P=e.onEntered,T=e.onEntering,N=e.onExit,A=e.onExited,M=e.onExiting,R=e.onMouseEnter,I=e.onMouseLeave,D=e.open,L=e.resumeHideDuration,z=e.TransitionComponent,F=void 0===z?p.a:z,V=e.transitionDuration,B=void 0===V?{enter:l.b.enteringScreen,exit:l.b.leavingScreen}:V,H=e.TransitionProps,W=Object(r.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),U=a.useRef(),K=a.useState(!0),Y=K[0],q=K[1],$=Object(d.a)((function(){j&&j.apply(void 0,arguments)})),G=Object(d.a)((function(e){j&&null!=e&&(clearTimeout(U.current),U.current=setTimeout((function(){$(null,"timeout")}),e))}));a.useEffect((function(){return D&&G(b),function(){clearTimeout(U.current)}}),[D,b,G]);var Q=function(){clearTimeout(U.current)},X=a.useCallback((function(){null!=b&&G(null!=L?L:.5*b)}),[b,L,G]);return a.useEffect((function(){if(!C&&D)return window.addEventListener("focus",X),window.addEventListener("blur",Q),function(){window.removeEventListener("focus",X),window.removeEventListener("blur",Q)}}),[C,X,D]),!D&&Y?null:a.createElement(u.a,Object(i.a)({onClickAway:function(e){j&&j(e,"clickaway")}},_),a.createElement("div",Object(i.a)({className:Object(s.a)(w.root,w["anchorOrigin".concat(Object(f.a)(c)).concat(Object(f.a)(m))],k),onMouseEnter:function(e){R&&R(e),Q()},onMouseLeave:function(e){I&&I(e),X()},ref:t},W),a.createElement(F,Object(i.a)({appear:!0,in:D,onEnter:Object(h.a)((function(){q(!1)}),S),onEntered:P,onEntering:T,onExit:N,onExited:Object(h.a)((function(){q(!0)}),A),onExiting:M,timeout:B,direction:"top"===c?"down":"up"},H),y||a.createElement(v,Object(i.a)({message:E,action:n},O)))))}));t.a=Object(c.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},c={bottom:24},l={right:24},u={left:24},d={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(i.a)({},t,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({},s,d))),anchorOriginBottomCenter:Object(i.a)({},n,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({},c,d))),anchorOriginTopRight:Object(i.a)({},t,r,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({left:"auto"},s,l))),anchorOriginBottomRight:Object(i.a)({},n,r,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({left:"auto"},c,l))),anchorOriginTopLeft:Object(i.a)({},t,a,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({right:"auto"},s,u))),anchorOriginBottomLeft:Object(i.a)({},n,a,Object(o.a)({},e.breakpoints.up("sm"),Object(i.a)({right:"auto"},c,u)))}}),{flip:!1,name:"MuiSnackbar"})(y)},function(e,t,n){"use strict";var r=n(3),o=n(8),i=n(1),a=n(15),s=n(19),c=n(6),l=n(223),u=n(82),d=n(75),f=n(73),h=n(40),p={entering:{opacity:1},entered:{opacity:1}},m={enter:u.b.enteringScreen,exit:u.b.leavingScreen},g=i.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,u=e.in,g=e.onEnter,b=e.onEntered,v=e.onEntering,y=e.onExit,w=e.onExited,k=e.onExiting,_=e.style,O=e.TransitionComponent,x=void 0===O?l.a:O,C=e.timeout,E=void 0===C?m:C,j=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),S=Object(d.a)(),P=S.unstable_strictMode&&!s,T=i.useRef(null),N=Object(h.a)(n.ref,t),A=Object(h.a)(P?T:void 0,N),M=function(e){return function(t,n){if(e){var r=P?[T.current,t]:[t,n],o=Object(c.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},R=M(v),I=M((function(e,t){Object(f.b)(e);var n=Object(f.a)({style:_,timeout:E},{mode:"enter"});e.style.webkitTransition=S.transitions.create("opacity",n),e.style.transition=S.transitions.create("opacity",n),g&&g(e,t)})),D=M(b),L=M(k),z=M((function(e){var t=Object(f.a)({style:_,timeout:E},{mode:"exit"});e.style.webkitTransition=S.transitions.create("opacity",t),e.style.transition=S.transitions.create("opacity",t),y&&y(e)})),F=M(w);return i.createElement(x,Object(r.a)({appear:!0,in:u,nodeRef:P?T:void 0,onEnter:I,onEntered:D,onEntering:R,onExit:z,onExited:F,onExiting:L,timeout:E},j),(function(e,t){return i.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},p[e],_,n.props.style),ref:A},t))}))})),b=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.invisible,u=void 0!==l&&l,d=e.open,f=e.transitionDuration,h=e.TransitionComponent,p=void 0===h?g:h,m=Object(o.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(p,Object(r.a)({in:d,timeout:f},m),i.createElement("div",{className:Object(a.a)(s.root,c,u&&s.invisible),"aria-hidden":!0,ref:t},n))}));t.a=Object(s.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(b)},function(e,t,n){"use strict";var r=n(5),o=n(1),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=n(18),s=function(e,t){return o.createElement(a.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:i}))};s.displayName="UserOutlined";t.a=o.forwardRef(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(6),o=n(172),i=n(105);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=Object(r.a)(t,2),o=n[0],i=n[1],l=a[o],u=s[i]||"";return Array.isArray(u)?u.map((function(e){return l+e})):[l+u]})),u=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function d(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function f(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function h(e){var t=d(e.theme);return Object.keys(e).map((function(n){if(-1===u.indexOf(n))return null;var r=f(l(n),t),i=e[n];return Object(o.a)(e,i,r)})).reduce(i.a,{})}h.propTypes={},h.filterProps=u;t.b=h}]]); //# sourceMappingURL=2.d50255c4.chunk.js.map