@emailmaker/emailmaker 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/asset-manifest.json +32 -30
- package/emailmaker-esm.js +1 -1
- package/emailmaker.js +1 -1
- package/iframe/css/sandbox.css +20 -2
- package/iframe/{iframe-eblock.a19b4b005600512ad57d.html → iframe-eblock.c516d87b9fc19e67c43a.html} +1 -1
- package/iframe/{iframe.a19b4b005600512ad57d.html → iframe.c516d87b9fc19e67c43a.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/js/1477.46df6668.js +2 -0
- package/static/js/1481.cd1a0886.js +1 -0
- package/static/js/1729.48808a7e.chunk.js +1 -0
- package/static/js/1813.e0bee286.js +1 -0
- package/static/js/{1821.dafa50f8.js → 1821.3a961d73.js} +1 -1
- package/static/js/{2208.5f05988a.js → 2208.f73122ba.js} +1 -1
- package/static/js/{3430.bec16278.js → 3430.0fd120a4.js} +1 -1
- package/static/js/{3710.193d2d5a.chunk.js → 3710.0baf371f.chunk.js} +1 -1
- package/static/js/{5130.785486e8.js → 5130.0a524bcd.js} +2 -2
- package/static/js/{5974.b325ee33.chunk.js → 5974.b84228a5.chunk.js} +2 -2
- package/static/js/6003.8d228b96.js +1 -0
- package/static/js/6430.0f6c23d8.js +2 -0
- package/static/js/{4384.d7dc931a.js.LICENSE.txt → 6430.0f6c23d8.js.LICENSE.txt} +0 -7
- package/static/js/6453.bbda855c.js +1 -0
- package/static/js/7159.56dbb0aa.js +2 -0
- package/static/js/7159.56dbb0aa.js.LICENSE.txt +13 -0
- package/static/js/{8458.004e0f0c.js → 8458.f8ef5e55.js} +1 -1
- package/static/js/8689.5ec8c633.chunk.js +1 -0
- package/static/js/{9593.8a0e7a2e.js → 9202.de849f35.js} +2 -2
- package/static/js/{9593.8a0e7a2e.js.LICENSE.txt → 9202.de849f35.js.LICENSE.txt} +0 -7
- package/static/js/9689.a67829e8.js +1 -0
- package/static/js/{emailmaker_core.7cf76221.js → emailmaker_core.22b19970.js} +1 -1
- package/translations.pot +7 -7
- package/static/js/1472.4f1f2346.js +0 -1
- package/static/js/1729.b71e4a99.chunk.js +0 -1
- package/static/js/2896.ce4941ab.js +0 -2
- package/static/js/2896.ce4941ab.js.LICENSE.txt +0 -6
- package/static/js/353.3e6b29fb.js +0 -1
- package/static/js/3593.f09ad9a7.js +0 -1
- package/static/js/4384.d7dc931a.js +0 -2
- package/static/js/7698.28da948c.js +0 -1
- package/static/js/8689.63fa1dc3.chunk.js +0 -1
- package/static/js/9878.cca6854e.js +0 -2
- /package/static/js/{9878.cca6854e.js.LICENSE.txt → 1477.46df6668.js.LICENSE.txt} +0 -0
- /package/static/js/{5130.785486e8.js.LICENSE.txt → 5130.0a524bcd.js.LICENSE.txt} +0 -0
- /package/static/js/{5974.b325ee33.chunk.js.LICENSE.txt → 5974.b84228a5.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7698],{71503:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function s(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,{Ay:()=>J,wG:()=>P});var c=n(86308);const l={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}};const u=function(e){return{}.toString.call(e).includes("Object")};var d={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},f=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(d),h={config:function(e){return e||f("configIsRequired"),u(e)||f("configType"),e.urls?(console.warn(d.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};const v=h;const p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};const m=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),o(o({},t),n)};var g={type:"cancelation",msg:"operation is manually canceled"};const y=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(g):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n};var A,b,C=c.A.create({config:l,isInitialized:!1,resolve:null,reject:null,monaco:null}),w=(b=2,function(e){if(Array.isArray(e))return e}(A=C)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(A,b)||function(e,t){if(e){if("string"===typeof e)return s(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)?s(e,t):void 0}}(A,b)||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.")}()),E=w[0],k=w[1];function x(e){return document.body.appendChild(e)}function _(e){var t=E((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function S(){var e=E((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){N(t),e.resolve(t)}),(function(t){e.reject(t)}))}function N(e){E().monaco||k({monaco:e})}var F=new Promise((function(e,t){return k({resolve:e,reject:t})})),M={config:function(e){var t=v.config(e),n=t.monaco,r=a(t,["monaco"]);k((function(e){return{config:m(e.config,r),monaco:n}}))},init:function(){var e=E((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(k({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),y(F);if(window.monaco&&window.monaco.editor)return N(window.monaco),e.resolve(window.monaco),y(F);p(x,_)(S)}return y(F)},__getMonacoInstance:function(){return E((function(e){return e.monaco}))}};const P=M;var R=n(92810),I=n(59018),O=n.n(I);function V(){return V=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},V.apply(this,arguments)}const L={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};const T=function({content:e}){return R.createElement("div",{style:L},e)},j={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function D({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:a}){return R.createElement("section",V({style:{...j.wrapper,width:e,height:t}},a),!n&&R.createElement(T,{content:r}),R.createElement("div",{ref:i,style:{...j.fullWidth,...!n&&j.hide},className:o}))}D.propTypes={width:O().oneOfType([O().number,O().string]).isRequired,height:O().oneOfType([O().number,O().string]).isRequired,loading:O().oneOfType([O().element,O().string]).isRequired,isEditorReady:O().bool.isRequired,className:O().string,wrapperProps:O().object};const H=D;const z=(0,R.memo)(H);const W=function(e){(0,R.useEffect)(e,[])};const U=function(e,t,n=!0){const r=(0,R.useRef)(!0);(0,R.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function $(){}function Y(e,t,n,r){return function(e,t){return e.editor.getModel(X(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r&&X(e,r))}(e,t,n,r)}function X(e,t){return e.Uri.parse(t)}function B({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:s,keepCurrentModifiedModel:c,theme:l,loading:u,options:d,height:f,width:h,className:v,wrapperProps:p,beforeMount:m,onMount:g}){const[y,A]=(0,R.useState)(!1),[b,C]=(0,R.useState)(!0),w=(0,R.useRef)(null),E=(0,R.useRef)(null),k=(0,R.useRef)(null),x=(0,R.useRef)(g),_=(0,R.useRef)(m);W((()=>{const e=P.init();return e.then((e=>(E.current=e)&&C(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>w.current?function(){const e=w.current.getModel();var t,n;s||null===(t=e.original)||void 0===t||t.dispose();c||null===(n=e.modified)||void 0===n||n.dispose();w.current.dispose()}():e.cancel()})),U((()=>{const e=w.current.getModifiedEditor();e.getOption(E.current.editor.EditorOption.readOnly)?e.setValue(t):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),U((()=>{w.current.getModel().original.setValue(e)}),[e],y),U((()=>{const{original:e,modified:t}=w.current.getModel();E.current.editor.setModelLanguage(e,r||n),E.current.editor.setModelLanguage(t,i||n)}),[n,r,i],y),U((()=>{E.current.editor.setTheme(l)}),[l],y),U((()=>{w.current.updateOptions(d)}),[d],y);const S=(0,R.useCallback)((()=>{_.current(E.current);const s=Y(E.current,e,r||n,o),c=Y(E.current,t,i||n,a);w.current.setModel({original:s,modified:c})}),[n,t,i,e,r,o,a]),N=(0,R.useCallback)((()=>{w.current=E.current.editor.createDiffEditor(k.current,{automaticLayout:!0,...d}),S(),E.current.editor.setTheme(l),A(!0)}),[d,l,S]);return(0,R.useEffect)((()=>{y&&x.current(w.current,E.current)}),[y]),(0,R.useEffect)((()=>{!b&&!y&&N()}),[b,y,N]),R.createElement(z,{width:h,height:f,isEditorReady:y,loading:u,_ref:k,className:v,wrapperProps:p})}B.propTypes={original:O().string,modified:O().string,language:O().string,originalLanguage:O().string,modifiedLanguage:O().string,originalModelPath:O().string,modifiedModelPath:O().string,keepCurrentOriginalModel:O().bool,keepCurrentModifiedModel:O().bool,theme:O().string,loading:O().oneOfType([O().element,O().string]),options:O().object,width:O().oneOfType([O().number,O().string]),height:O().oneOfType([O().number,O().string]),className:O().string,wrapperProps:O().object,beforeMount:O().func,onMount:O().func},B.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:$,onMount:$};const K=function(e){const t=(0,R.useRef)();return(0,R.useEffect)((()=>{t.current=e}),[e]),t.current},q=new Map;function G({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:a,line:s,loading:c,options:l,overrideServices:u,saveViewState:d,keepCurrentModel:f,width:h,height:v,className:p,wrapperProps:m,beforeMount:g,onMount:y,onChange:A,onValidate:b}){const[C,w]=(0,R.useState)(!1),[E,k]=(0,R.useState)(!0),x=(0,R.useRef)(null),_=(0,R.useRef)(null),S=(0,R.useRef)(null),N=(0,R.useRef)(y),F=(0,R.useRef)(g),M=(0,R.useRef)(null),I=(0,R.useRef)(r),O=K(o),V=(0,R.useRef)(!1);W((()=>{const e=P.init();return e.then((e=>(x.current=e)&&k(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>_.current?function(){var e,t;null===(e=M.current)||void 0===e||e.dispose(),f?d&&q.set(o,_.current.saveViewState()):null===(t=_.current.getModel())||void 0===t||t.dispose();_.current.dispose()}():e.cancel()})),U((()=>{const n=Y(x.current,e||r,t||i,o);n!==_.current.getModel()&&(d&&q.set(O,_.current.saveViewState()),_.current.setModel(n),d&&_.current.restoreViewState(q.get(o)))}),[o],C),U((()=>{_.current.updateOptions(l)}),[l],C),U((()=>{_.current.getOption(x.current.editor.EditorOption.readOnly)?_.current.setValue(r):r!==_.current.getValue()&&(_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),_.current.pushUndoStop())}),[r],C),U((()=>{x.current.editor.setModelLanguage(_.current.getModel(),i)}),[i],C),U((()=>{void 0!==s&&_.current.revealLine(s)}),[s],C),U((()=>{x.current.editor.setTheme(a)}),[a],C);const L=(0,R.useCallback)((()=>{if(!V.current){F.current(x.current);const s=o||n,c=Y(x.current,r||e,t||i,s);_.current=x.current.editor.create(S.current,{model:c,automaticLayout:!0,...l},u),d&&_.current.restoreViewState(q.get(s)),x.current.editor.setTheme(a),w(!0),V.current=!0}}),[e,t,n,r,i,o,l,u,d,a]);return(0,R.useEffect)((()=>{C&&N.current(_.current,x.current)}),[C]),(0,R.useEffect)((()=>{!E&&!C&&L()}),[E,C,L]),I.current=r,(0,R.useEffect)((()=>{var e,t;C&&A&&(null===(e=M.current)||void 0===e||e.dispose(),M.current=null===(t=_.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{A(_.current.getValue(),e)})))}),[C,A]),(0,R.useEffect)((()=>{if(C){const e=x.current.editor.onDidChangeMarkers((e=>{var t;const n=null===(t=_.current.getModel())||void 0===t?void 0:t.uri;if(n){if(e.find((e=>e.path===n.path))){const e=x.current.editor.getModelMarkers({resource:n});null===b||void 0===b||b(e)}}}));return()=>{null===e||void 0===e||e.dispose()}}}),[C,b]),R.createElement(z,{width:h,height:v,isEditorReady:C,loading:c,_ref:S,className:p,wrapperProps:m})}G.propTypes={defaultValue:O().string,defaultPath:O().string,defaultLanguage:O().string,value:O().string,language:O().string,path:O().string,theme:O().string,line:O().number,loading:O().oneOfType([O().element,O().string]),options:O().object,overrideServices:O().object,saveViewState:O().bool,keepCurrentModel:O().bool,width:O().oneOfType([O().number,O().string]),height:O().oneOfType([O().number,O().string]),className:O().string,wrapperProps:O().object,beforeMount:O().func,onMount:O().func,onChange:O().func,onValidate:O().func},G.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:$,onMount:$,onValidate:$};const Z=G;const J=(0,R.memo)(Z)},75637:(e,t,n)=>{"use strict";n.d(t,{Q1:()=>y,ZC:()=>x,Ay:()=>L});var r=n(96790),i=n(46585),o=n(43009),a=n(92810),s=n(25501),c=n(61971),l=n(19943),u=n(10571),d=n(30057),f=n(68731),h=n(38086),v=n(71080),p=["b"],m=["v"],g=function(e){return Math.round(Number(e||0))},y=function(e){(0,u.A)(n,e);var t=(0,d.A)(n);function n(e){return(0,c.A)(this,n),t.call(this,function(e){if(e&&"object"===(0,h.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,f.A)(t,p);return(0,s.A)((0,s.A)({},r),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,l.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=g(100*e.s),n=g(100*e.b),r=g(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv();"object"===(0,h.A)(this.originalInput)&&this.originalInput&&"h"in this.originalInput&&(e=this.originalInput);var t=e,n=(t.v,(0,f.A)(t,m));return(0,s.A)((0,s.A)({},n),{},{b:e.v})}}]),n}(v.q),A=function(e){return e instanceof y?e:new y(e)},b=A("#1677ff"),C=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,i=e.color,o=e.type,a=r.current.getBoundingClientRect(),c=a.width,l=a.height,u=n.current.getBoundingClientRect(),d=u.width/2,f=u.height/2,h=(t.x+d)/c,v=1-(t.y+f)/l,p=i.toHsb(),m=h,g=(t.x+d)/c*360;if(o)switch(o){case"hue":return A((0,s.A)((0,s.A)({},p),{},{h:g<=0?0:g}));case"alpha":return A((0,s.A)((0,s.A)({},p),{},{a:m<=0?0:m}))}return A({h:p.h,s:h<=0?0:h,b:v>=1?1:v,a:p.a})},w=function(e,t,n,r){var i=e.current.getBoundingClientRect(),o=i.width,a=i.height,s=t.current.getBoundingClientRect(),c=s.width,l=s.height,u=c/2,d=l/2,f=n.toHsb();if((0!==c||0!==l)&&c===l){if(r)switch(r){case"hue":return{x:f.h/360*o-u,y:-d/3};case"alpha":return{x:f.a/1*o-u,y:-d/3}}return{x:f.s*o-u,y:(1-f.b)*a-d}}},E=n(38883),k=n.n(E);const x=function(e){var t=e.color,n=e.prefixCls,r=e.className,i=e.style,o=e.onClick,s="".concat(n,"-color-block");return a.createElement("div",{className:k()(s,r),style:i,onClick:o},a.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};const _=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,i=e.direction,s=e.onDragChange,c=e.onDragChangeComplete,l=e.calculate,u=e.color,d=e.disabledDrag,f=(0,a.useState)(t||{x:0,y:0}),h=(0,o.A)(f,2),v=h[0],p=h[1],m=(0,a.useRef)(null),g=(0,a.useRef)(null),y=(0,a.useRef)({flag:!1});(0,a.useEffect)((function(){if(!1===y.current.flag){var e=null===l||void 0===l?void 0:l(r);e&&p(e)}}),[u,r]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}}),[]);var A=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),o=t.pageX,a=t.pageY,c=r.current.getBoundingClientRect(),l=c.x,u=c.y,d=c.width,f=c.height,h=n.current.getBoundingClientRect(),m=h.width,g=h.height,y=m/2,A=g/2,b=Math.max(0,Math.min(o-l,d))-y,C=Math.max(0,Math.min(a-u,f))-A,w={x:b,y:"x"===i?v.y:C};if(0===m&&0===g||m!==g)return!1;p(w),null===s||void 0===s||s(w)},b=function(e){e.preventDefault(),A(e)},C=function(e){e.preventDefault(),y.current.flag=!1,document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null===c||void 0===c||c()};return[v,function(e){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),d||(A(e),y.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.addEventListener("touchmove",b),document.addEventListener("touchend",C),m.current=b,g.current=C)}]};const S=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,o=e.prefixCls;return a.createElement("div",{className:k()("".concat(o,"-handler"),(0,i.A)({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})};const N=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,s.A)({position:"relative"},n)},t)};const F=(0,a.forwardRef)((function(e,t){var n=e.children,r=e.offset;return a.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}));const M=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,i=e.onChangeComplete,s=e.disabled,c=(0,a.useRef)(),l=(0,a.useRef)(),u=(0,a.useRef)(t),d=_({color:t,containerRef:c,targetRef:l,calculate:function(e){return w(e,l,t)},onDragChange:function(e){var r=C({offset:e,targetRef:l,containerRef:c,color:t});u.current=r,n(r)},onDragChangeComplete:function(){return null===i||void 0===i?void 0:i(u.current)},disabledDrag:s}),f=(0,o.A)(d,2),h=f[0],v=f[1];return a.createElement("div",{ref:c,className:"".concat(r,"-select"),onMouseDown:v,onTouchStart:v},a.createElement(N,{prefixCls:r},a.createElement(F,{offset:h,ref:l},a.createElement(S,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const P=function(e){var t=e.colors,n=e.children,r=e.direction,i=void 0===r?"to right":r,o=e.type,s=e.prefixCls,c=(0,a.useMemo)((function(){return t.map((function(e,n){var r=A(e);return"alpha"===o&&n===t.length-1&&r.setAlpha(1),r.toRgbString()})).join(",")}),[t,o]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},n)};const R=function(e){var t=e.gradientColors,n=e.direction,r=e.type,i=void 0===r?"hue":r,s=e.color,c=e.value,l=e.onChange,u=e.onChangeComplete,d=e.disabled,f=e.prefixCls,h=(0,a.useRef)(),v=(0,a.useRef)(),p=(0,a.useRef)(s),m=_({color:s,targetRef:v,containerRef:h,calculate:function(e){return w(e,v,s,i)},onDragChange:function(e){var t=C({offset:e,targetRef:v,containerRef:h,color:s,type:i});p.current=t,l(t)},onDragChangeComplete:function(){null===u||void 0===u||u(p.current,i)},direction:"x",disabledDrag:d}),g=(0,o.A)(m,2),y=g[0],A=g[1];return a.createElement("div",{ref:h,className:k()("".concat(f,"-slider"),"".concat(f,"-slider-").concat(i)),onMouseDown:A,onTouchStart:A},a.createElement(N,{prefixCls:f},a.createElement(F,{offset:y,ref:v},a.createElement(S,{size:"small",color:c,prefixCls:f})),a.createElement(P,{colors:t,direction:n,type:i,prefixCls:f})))};function I(e){return void 0!==e}const O=function(e,t){var n=t.defaultValue,r=t.value,i=(0,a.useState)((function(){var t;return t=I(r)?r:I(n)?n:e,A(t)})),s=(0,o.A)(i,2),c=s[0],l=s[1];return(0,a.useEffect)((function(){r&&l(A(r))}),[r]),[c,l]};var V=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const L=(0,a.forwardRef)((function(e,t){var n=e.value,s=e.defaultValue,c=e.prefixCls,l=void 0===c?"rc-color-picker":c,u=e.onChange,d=e.onChangeComplete,f=e.className,h=e.style,v=e.panelRender,p=e.disabledAlpha,m=void 0!==p&&p,g=e.disabled,y=void 0!==g&&g,C=O(b,{value:n,defaultValue:s}),w=(0,o.A)(C,2),E=w[0],_=w[1],S=(0,a.useMemo)((function(){var e=A(E.toRgbString());return e.setAlpha(1),e.toRgbString()}),[E]),N=k()("".concat(l,"-panel"),f,(0,i.A)({},"".concat(l,"-panel-disabled"),y)),F={prefixCls:l,onChangeComplete:d,disabled:y},P=function(e,t){n||_(e),null===u||void 0===u||u(e,t)},I=a.createElement(a.Fragment,null,a.createElement(M,(0,r.A)({color:E,onChange:P},F)),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:k()("".concat(l,"-slider-group"),(0,i.A)({},"".concat(l,"-slider-group-disabled-alpha"),m))},a.createElement(R,(0,r.A)({gradientColors:V,color:E,value:"hsl(".concat(E.toHsb().h,",100%, 50%)"),onChange:function(e){return P(e,"hue")}},F)),!m&&a.createElement(R,(0,r.A)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:E,value:E.toRgbString(),onChange:function(e){return P(e,"alpha")}},F))),a.createElement(x,{color:E.toRgbString(),prefixCls:l})));return a.createElement("div",{className:N,style:h,ref:t},"function"===typeof v?v(I):I)}))},69143:(e,t,n)=>{"use strict";n.d(t,{q6:()=>l,Ho:()=>h,NT:()=>u});var r=n(43009),i=n(14030),o=n(3203),a=n(99876),s=n(92810),c=n(22587);function l(e){var t=s.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,i=e.children,a=s.useRef(n);a.current=n;var l=s.useState((function(){return{getValue:function(){return a.current},listeners:new Set}})),u=(0,r.A)(l,1)[0];return(0,o.A)((function(){(0,c.unstable_batchedUpdates)((function(){u.listeners.forEach((function(e){e(n)}))}))}),[n]),s.createElement(t.Provider,{value:u},i)},defaultValue:e}}function u(e,t){var n=(0,i.A)("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),c=s.useContext(null===e||void 0===e?void 0:e.Context),l=c||{},u=l.listeners,d=l.getValue,f=s.useRef();f.current=n(c?d():null===e||void 0===e?void 0:e.defaultValue);var h=s.useState({}),v=(0,r.A)(h,2)[1];return(0,o.A)((function(){if(c)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,a.A)(f.current,t,!0)||v({})}}),[c]),f.current}var d=n(96790),f=n(31381);function h(){var e=s.createContext(null);function t(){return s.useContext(e)}return{makeImmutable:function(n,r){var i=(0,f.f3)(n),o=function(o,a){var c=i?{ref:a}:{},l=s.useRef(0),u=s.useRef(o);return null!==t()?s.createElement(n,(0,d.A)({},o,c)):(r&&!r(u.current,o)||(l.current+=1),u.current=o,s.createElement(e.Provider,{value:l.current},s.createElement(n,(0,d.A)({},o,c))))};return i?s.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,f.f3)(e),i=function(n,i){var o=r?{ref:i}:{};return t(),s.createElement(e,(0,d.A)({},n,o))};return r?s.memo(s.forwardRef(i),n):s.memo(i,n)},useImmutableMark:t}}var v=h();v.makeImmutable,v.responseImmutable,v.useImmutableMark},86033:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,Mg:()=>d});var r=n(61971),i=n(19943),o=n(46585),a=n(64768),s=function(){function e(t){if((0,r.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"negative",void 0),(0,o.A)(this,"integer",void 0),(0,o.A)(this,"decimal",void 0),(0,o.A)(this,"decimalLen",void 0),(0,o.A)(this,"empty",void 0),(0,o.A)(this,"nan",void 0),(0,a.Im)(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if((0,a.Yf)(n)&&(n=Number(n)),n="string"===typeof n?n:(0,a.yH)(n),(0,a.yb)(n)){var i=(0,a.OM)(n);this.negative=i.negative;var s=i.trimStr.split(".");this.integer=BigInt(s[0]);var c=s[1]||"0";this.decimal=BigInt(c),this.decimalLen=c.length}else this.nan=!0}}return(0,i.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),s=r(i),c=(0,a.OM)(o),l=c.negativeStr,u=c.trimStr,d="".concat(l).concat(u.padStart(s+1,"0"));return new e("".concat(d.slice(0,-s),".").concat(d.slice(-s)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":(0,a.OM)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),c=function(){function e(t){(0,r.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"number",void 0),(0,o.A)(this,"empty",void 0),(0,a.Im)(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,i.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max((0,a.i5)(this.number),(0,a.i5)(n));return new e(r.toFixed(i))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max((0,a.i5)(this.number),(0,a.i5)(n));return new e(r.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":(0,a.yH)(this.number):this.origin}}]),e}(),l=n(1182);function u(e){return(0,l.r)()?new s(e):new c(e)}function d(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=(0,a.OM)(e),o=i.negativeStr,s=i.integerStr,c=i.decimalStr,l="".concat(t).concat(c),f="".concat(o).concat(s);if(n>=0){var h=Number(c[n]);return h>=5&&!r?d(u(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-h)).toString(),t,n,r):0===n?f:"".concat(f).concat(t).concat(c.padEnd(n,"0").slice(0,n))}return".0"===l?f:"".concat(f).concat(l)}},59673:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});const r=n(86033).Ay},64768:(e,t,n)=>{"use strict";n.d(t,{Im:()=>i,OM:()=>o,Yf:()=>a,i5:()=>s,yH:()=>c,yb:()=>l});var r=n(1182);function i(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function o(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function a(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function s(e){var t=String(e);if(a(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!==r&&void 0!==r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&l(t)?t.length-t.indexOf(".")-1:0}function c(e){var t=String(e);if(a(e)){if(e>Number.MAX_SAFE_INTEGER)return String((0,r.r)()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String((0,r.r)()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(s(t))}return o(t).fullStr}function l(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}},1182:(e,t,n)=>{"use strict";function r(){return"function"===typeof BigInt}n.d(t,{r:()=>r})},57853:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(43009),i=n(92810),o=n(22587),a=n(82412),s=(n(81180),n(31381));const c=i.createContext(null);var l=n(77482),u=n(3203),d=[];var f=n(30423),h=n(93393);var v="rc-util-locker-".concat(Date.now()),p=0;function m(e){var t=!!e,n=i.useState((function(){return p+=1,"".concat(v,"_").concat(p)})),o=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(0,h.A)(),n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,f.m6)(o);return function(){(0,f.m6)(o)}}),[t,o])}var g=!1;var y=function(e){return!1!==e&&((0,a.A)()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)};const A=i.forwardRef((function(e,t){var n=e.open,f=e.autoLock,h=e.getContainer,v=(e.debug,e.autoDestroy),p=void 0===v||v,A=e.children,b=i.useState(n),C=(0,r.A)(b,2),w=C[0],E=C[1],k=w||n;i.useEffect((function(){(p||n)&&E(n)}),[n,p]);var x=i.useState((function(){return y(h)})),_=(0,r.A)(x,2),S=_[0],N=_[1];i.useEffect((function(){var e=y(h);N(null!==e&&void 0!==e?e:null)}));var F=function(e,t){var n=i.useState((function(){return(0,a.A)()?document.createElement("div"):null})),o=(0,r.A)(n,1)[0],s=i.useRef(!1),f=i.useContext(c),h=i.useState(d),v=(0,r.A)(h,2),p=v[0],m=v[1],g=f||(s.current?void 0:function(e){m((function(t){return[e].concat((0,l.A)(t))}))});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function A(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),s.current=!1}return(0,u.A)((function(){return e?f?f(y):y():A(),A}),[e]),(0,u.A)((function(){p.length&&(p.forEach((function(e){return e()})),m(d))}),[p]),[o,g]}(k&&!S),M=(0,r.A)(F,2),P=M[0],R=M[1],I=null!==S&&void 0!==S?S:P;m(f&&n&&(0,a.A)()&&(I===P||I===document.body));var O=null;A&&(0,s.f3)(A)&&t&&(O=A.ref);var V=(0,s.xK)(O,t);if(!k||!(0,a.A)()||void 0===S)return null;var L,T=!1===I||("boolean"===typeof L&&(g=L),g),j=A;return t&&(j=i.cloneElement(A,{ref:V})),i.createElement(c.Provider,{value:R},T?j:(0,o.createPortal)(j,I))}))},20142:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(25501),i=n(43009),o=n(68731),a=n(57853),s=n(38883),c=n.n(s),l=n(86460),u=n(32334),d=n(60391),f=n(14030),h=n(22157),v=n(3203),p=n(32604),m=n(92810),g=n(96790),y=n(23516),A=n(31381);function b(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,u=void 0===l?0:l,d=i.y,f=void 0===d?0:d,h=m.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],g=n.points[1],y=p[0],A=p[1],b=g[0],C=g[1];y!==b&&["t","b"].includes(y)?"t"===y?v.top=0:v.bottom=0:v.top=f,A!==C&&["l","r"].includes(A)?"l"===A?v.left=0:v.right=0:v.left=u}return m.createElement("div",{ref:h,className:c()("".concat(t,"-arrow"),a),style:v},s)}function C(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?m.createElement(y.Ay,(0,g.A)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})})):null}const w=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const E=m.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,h=e.keepDom,p=e.fresh,E=e.onClick,k=e.mask,x=e.arrow,_=e.arrowPos,S=e.align,N=e.motion,F=e.maskMotion,M=e.forceRender,P=e.getPopupContainer,R=e.autoDestroy,I=e.portal,O=e.zIndex,V=e.onMouseEnter,L=e.onMouseLeave,T=e.onPointerEnter,j=e.ready,D=e.offsetX,H=e.offsetY,z=e.offsetR,W=e.offsetB,U=e.onAlign,$=e.onPrepare,Y=e.stretch,X=e.targetWidth,B=e.targetHeight,K="function"===typeof n?n():n,q=f||h,G=(null===P||void 0===P?void 0:P.length)>0,Z=m.useState(!P||!G),J=(0,i.A)(Z,2),Q=J[0],ee=J[1];if((0,v.A)((function(){!Q&&G&&u&&ee(!0)}),[Q,G,u]),!Q)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(j||!f){var re,ie=S.points,oe=S.dynamicInset||(null===(re=S._experimental)||void 0===re?void 0:re.dynamicInset),ae=oe&&"r"===ie[0][1],se=oe&&"b"===ie[0][0];ae?(ne.right=z,ne.left=te):(ne.left=D,ne.right=te),se?(ne.bottom=W,ne.top=te):(ne.top=H,ne.bottom=te)}var ce={};return Y&&(Y.includes("height")&&B?ce.height=B:Y.includes("minHeight")&&B&&(ce.minHeight=B),Y.includes("width")&&X?ce.width=X:Y.includes("minWidth")&&X&&(ce.minWidth=X)),f||(ce.pointerEvents="none"),m.createElement(I,{open:M||q,getContainer:P&&function(){return P(u)},autoDestroy:R},m.createElement(C,{prefixCls:a,open:f,zIndex:O,mask:k,motion:F}),m.createElement(l.A,{onResize:U,disabled:!f},(function(e){return m.createElement(y.Ay,(0,g.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:$,onEnterPrepare:$,visible:f,onVisibleChanged:function(e){var t;null===N||void 0===N||null===(t=N.onVisibleChanged)||void 0===t||t.call(N,e),d(e)}}),(function(n,i){var l=n.className,u=n.style,d=c()(a,l,o);return m.createElement("div",{ref:(0,A.K4)(e,t,i),className:d,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},ne),ce),u),{},{boxSizing:"border-box",zIndex:O},s),onMouseEnter:V,onMouseLeave:L,onPointerEnter:T,onClick:E},x&&m.createElement(b,{prefixCls:a,arrow:x,arrowPos:_,align:S}),m.createElement(w,{cache:!f&&!p},K))}))})))}));const k=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,A.f3)(n),o=m.useCallback((function(e){(0,A.Xf)(t,r?r(e):e)}),[r]),a=(0,A.xK)(o,n.ref);return i?m.cloneElement(n,{ref:a}):n}));const x=m.createContext(null);function _(e){return e?Array.isArray(e)?e:[e]:[]}var S=n(86998);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function F(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function M(e){return e.ownerDocument.defaultView}function P(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=M(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function I(e){return R(parseFloat(e),0)}function O(e,t){var n=(0,r.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=M(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,v=I(o),p=I(a),m=I(s),g=I(c),y=R(Math.round(l.width/f*1e3)/1e3),A=R(Math.round(l.height/u*1e3)/1e3),b=(f-h-m-g)*y,C=(u-d-v-p)*A,w=v*A,E=p*A,k=m*y,x=g*y,_=0,S=0;if("clip"===r){var N=I(i);_=N*y,S=N*A}var F=l.x+k-_,P=l.y+w-S,O=F+l.width+2*_-k-x-b,V=P+l.height+2*S-w-E-C;n.left=Math.max(n.left,F),n.top=Math.max(n.top,P),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,V)}})),n}function V(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function L(e,t){var n=t||[],r=(0,i.A)(n,2),o=r[0],a=r[1];return[V(e.width,o),V(e.height,a)]}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function D(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var H=n(77482);n(81180);var z=n(83201);var W=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,g=t.children,y=t.action,A=void 0===y?"hover":y,b=t.showAction,C=t.hideAction,w=t.popupVisible,I=t.defaultPopupVisible,V=t.onPopupVisibleChange,U=t.afterPopupVisibleChange,$=t.mouseEnterDelay,Y=t.mouseLeaveDelay,X=void 0===Y?.1:Y,B=t.focusDelay,K=t.blurDelay,q=t.mask,G=t.maskClosable,Z=void 0===G||G,J=t.getPopupContainer,Q=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,ie=t.popupStyle,oe=t.popupPlacement,ae=t.builtinPlacements,se=void 0===ae?{}:ae,ce=t.popupAlign,le=t.zIndex,ue=t.stretch,de=t.getPopupClassNameFromAlign,fe=t.fresh,he=t.alignPoint,ve=t.onPopupClick,pe=t.onPopupAlign,me=t.arrow,ge=t.popupMotion,ye=t.maskMotion,Ae=t.popupTransitionName,be=t.popupAnimation,Ce=t.maskTransitionName,we=t.maskAnimation,Ee=t.className,ke=t.getTriggerDOMNode,xe=(0,o.A)(t,W),_e=ee||te||!1,Se=m.useState(!1),Ne=(0,i.A)(Se,2),Fe=Ne[0],Me=Ne[1];(0,v.A)((function(){Me((0,p.A)())}),[]);var Pe=m.useRef({}),Re=m.useContext(x),Ie=m.useMemo((function(){return{registerSubPopup:function(e,t){Pe.current[e]=t,null===Re||void 0===Re||Re.registerSubPopup(e,t)}}}),[Re]),Oe=(0,h.A)(),Ve=m.useState(null),Le=(0,i.A)(Ve,2),Te=Le[0],je=Le[1],De=(0,f.A)((function(e){(0,u.f)(e)&&Te!==e&&je(e),null===Re||void 0===Re||Re.registerSubPopup(Oe,e)})),He=m.useState(null),ze=(0,i.A)(He,2),We=ze[0],Ue=ze[1],$e=m.useRef(null),Ye=(0,f.A)((function(e){(0,u.f)(e)&&We!==e&&(Ue(e),$e.current=e)})),Xe=m.Children.only(g),Be=(null===Xe||void 0===Xe?void 0:Xe.props)||{},Ke={},qe=(0,f.A)((function(e){var t,n,r=We;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=(0,d.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null===Te||void 0===Te?void 0:Te.contains(e))||(null===(n=(0,d.j)(Te))||void 0===n?void 0:n.host)===e||e===Te||Object.values(Pe.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),Ge=F(s,ge,be,Ae),Ze=F(s,ye,we,Ce),Je=m.useState(I||!1),Qe=(0,i.A)(Je,2),et=Qe[0],tt=Qe[1],nt=null!==w&&void 0!==w?w:et,rt=(0,f.A)((function(e){void 0===w&&tt(e)}));(0,v.A)((function(){tt(w||!1)}),[w]);var it=m.useRef(nt);it.current=nt;var ot=m.useRef([]);ot.current=[];var at=(0,f.A)((function(e){var t;rt(e),(null!==(t=ot.current[ot.current.length-1])&&void 0!==t?t:nt)!==e&&(ot.current.push(e),null===V||void 0===V||V(e))})),st=m.useRef(),ct=function(){clearTimeout(st.current)},lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ct(),0===t?at(e):st.current=setTimeout((function(){at(e)}),1e3*t)};m.useEffect((function(){return ct}),[]);var ut=m.useState(!1),dt=(0,i.A)(ut,2),ft=dt[0],ht=dt[1];(0,v.A)((function(e){e&&!nt||ht(!0)}),[nt]);var vt=m.useState(null),pt=(0,i.A)(vt,2),mt=pt[0],gt=pt[1],yt=m.useState([0,0]),At=(0,i.A)(yt,2),bt=At[0],Ct=At[1],wt=function(e){Ct([e.clientX,e.clientY])},Et=function(e,t,n,o,a,s,c){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),d=(0,i.A)(l,2),h=d[0],p=d[1],g=m.useRef(0),y=m.useMemo((function(){return t?P(t):[]}),[t]),A=m.useRef({});e||(A.current={});var b=(0,f.A)((function(){if(t&&n&&e){var l,d,f,h=t,v=h.ownerDocument,m=M(h).getComputedStyle(h),g=m.width,b=m.height,C=m.position,w=h.style.left,E=h.style.top,k=h.style.right,x=h.style.bottom,_=(0,r.A)((0,r.A)({},a[o]),s),N=v.createElement("div");if(null===(l=h.parentElement)||void 0===l||l.appendChild(N),N.style.left="".concat(h.offsetLeft,"px"),N.style.top="".concat(h.offsetTop,"px"),N.style.position=C,N.style.height="".concat(h.offsetHeight,"px"),N.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var F=n.getBoundingClientRect();f={x:F.x,y:F.y,width:F.width,height:F.height}}var P=h.getBoundingClientRect(),I=v.documentElement,V=I.clientWidth,H=I.clientHeight,z=I.scrollWidth,W=I.scrollHeight,U=I.scrollTop,$=I.scrollLeft,Y=P.height,X=P.width,B=f.height,K=f.width,q={left:0,top:0,right:V,bottom:H},G={left:-$,top:-U,right:z-$,bottom:W-U},Z=_.htmlRegion,J="visible",Q="visibleFirst";"scroll"!==Z&&Z!==Q&&(Z=J);var ee=Z===Q,te=O(G,y),ne=O(q,y),re=Z===J?ne:te,ie=ee?ne:re;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var oe=h.getBoundingClientRect();h.style.left=w,h.style.top=E,h.style.right=k,h.style.bottom=x,null===(d=h.parentElement)||void 0===d||d.removeChild(N);var ae=R(Math.round(X/parseFloat(g)*1e3)/1e3),se=R(Math.round(Y/parseFloat(b)*1e3)/1e3);if(0===ae||0===se||(0,u.f)(n)&&!(0,S.A)(n))return;var ce=_.offset,le=_.targetOffset,ue=L(P,ce),de=(0,i.A)(ue,2),fe=de[0],he=de[1],ve=L(f,le),pe=(0,i.A)(ve,2),me=pe[0],ge=pe[1];f.x-=me,f.y-=ge;var ye=_.points||[],Ae=(0,i.A)(ye,2),be=Ae[0],Ce=T(Ae[1]),we=T(be),Ee=j(f,Ce),ke=j(P,we),xe=(0,r.A)({},_),_e=Ee.x-ke.x+fe,Se=Ee.y-ke.y+he;function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re,r=P.x+e,i=P.y+t,o=r+X,a=i+Y,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var Ne,Fe,Me,Pe,Re=bt(_e,Se),Ie=bt(_e,Se,ne),Oe=j(f,["t","l"]),Ve=j(P,["t","l"]),Le=j(f,["b","r"]),Te=j(P,["b","r"]),je=_.overflow||{},De=je.adjustX,He=je.adjustY,ze=je.shiftX,We=je.shiftY,Ue=function(e){return"boolean"===typeof e?e:e>=0};function Ct(){Ne=P.y+Se,Fe=Ne+Y,Me=P.x+_e,Pe=Me+X}Ct();var $e=Ue(He),Ye=we[0]===Ce[0];if($e&&"t"===we[0]&&(Fe>ie.bottom||A.current.bt)){var Xe=Se;Ye?Xe-=Y-B:Xe=Oe.y-Te.y-he;var Be=bt(_e,Xe),Ke=bt(_e,Xe,ne);Be>Re||Be===Re&&(!ee||Ke>=Ie)?(A.current.bt=!0,Se=Xe,he=-he,xe.points=[D(we,0),D(Ce,0)]):A.current.bt=!1}if($e&&"b"===we[0]&&(Ne<ie.top||A.current.tb)){var qe=Se;Ye?qe+=Y-B:qe=Le.y-Ve.y-he;var Ge=bt(_e,qe),Ze=bt(_e,qe,ne);Ge>Re||Ge===Re&&(!ee||Ze>=Ie)?(A.current.tb=!0,Se=qe,he=-he,xe.points=[D(we,0),D(Ce,0)]):A.current.tb=!1}var Je=Ue(De),Qe=we[1]===Ce[1];if(Je&&"l"===we[1]&&(Pe>ie.right||A.current.rl)){var et=_e;Qe?et-=X-K:et=Oe.x-Te.x-fe;var tt=bt(et,Se),nt=bt(et,Se,ne);tt>Re||tt===Re&&(!ee||nt>=Ie)?(A.current.rl=!0,_e=et,fe=-fe,xe.points=[D(we,1),D(Ce,1)]):A.current.rl=!1}if(Je&&"r"===we[1]&&(Me<ie.left||A.current.lr)){var rt=_e;Qe?rt+=X-K:rt=Le.x-Ve.x-fe;var it=bt(rt,Se),ot=bt(rt,Se,ne);it>Re||it===Re&&(!ee||ot>=Ie)?(A.current.lr=!0,_e=rt,fe=-fe,xe.points=[D(we,1),D(Ce,1)]):A.current.lr=!1}Ct();var at=!0===ze?0:ze;"number"===typeof at&&(Me<ne.left&&(_e-=Me-ne.left-fe,f.x+K<ne.left+at&&(_e+=f.x-ne.left+K-at)),Pe>ne.right&&(_e-=Pe-ne.right-fe,f.x>ne.right-at&&(_e+=f.x-ne.right+at)));var st=!0===We?0:We;"number"===typeof st&&(Ne<ne.top&&(Se-=Ne-ne.top-he,f.y+B<ne.top+st&&(Se+=f.y-ne.top+B-st)),Fe>ne.bottom&&(Se-=Fe-ne.bottom-he,f.y>ne.bottom-st&&(Se+=f.y-ne.bottom+st)));var ct=P.x+_e,lt=ct+X,ut=P.y+Se,dt=ut+Y,ft=f.x,ht=ft+K,vt=f.y,pt=vt+B,mt=(Math.max(ct,ft)+Math.min(lt,ht))/2-ct,gt=(Math.max(ut,vt)+Math.min(dt,pt))/2-ut;null===c||void 0===c||c(t,xe);var yt=oe.right-P.x-(_e+P.width),At=oe.bottom-P.y-(Se+P.height);p({ready:!0,offsetX:_e/ae,offsetY:Se/se,offsetR:yt/ae,offsetB:At/se,arrowX:mt/ae,arrowY:gt/se,scaleX:ae,scaleY:se,align:xe})}})),C=function(){p((function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})}))};return(0,v.A)(C,[o]),(0,v.A)((function(){e||C()}),[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&b()}))}]}(nt,Te,he?bt:We,oe,se,ce,pe),kt=(0,i.A)(Et,11),xt=kt[0],_t=kt[1],St=kt[2],Nt=kt[3],Ft=kt[4],Mt=kt[5],Pt=kt[6],Rt=kt[7],It=kt[8],Ot=kt[9],Vt=kt[10],Lt=function(e,t,n,r){return m.useMemo((function(){var i=_(null!==n&&void 0!==n?n:t),o=_(null!==r&&void 0!==r?r:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(Fe,A,b,C),Tt=(0,i.A)(Lt,2),jt=Tt[0],Dt=Tt[1],Ht=jt.has("click"),zt=Dt.has("click")||Dt.has("contextMenu"),Wt=(0,f.A)((function(){ft||Vt()}));!function(e,t,n,r,i){(0,v.A)((function(){if(e&&t&&n){var o=n,a=P(t),s=P(o),c=M(o),l=new Set([c].concat((0,H.A)(a),(0,H.A)(s)));function u(){r(),i()}return l.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(nt,We,Te,Wt,(function(){it.current&&he&&zt&<(!1)})),(0,v.A)((function(){Wt()}),[bt,oe]),(0,v.A)((function(){!nt||null!==se&&void 0!==se&&se[oe]||Wt()}),[JSON.stringify(ce)]);var Ut=m.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(N(null===(s=e[c])||void 0===s?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(c)}return""}(se,s,Ot,he);return c()(e,null===de||void 0===de?void 0:de(Ot))}),[Ot,de,se,s,he]);m.useImperativeHandle(n,(function(){return{nativeElement:$e.current,forceAlign:Wt}}));var $t=m.useState(0),Yt=(0,i.A)($t,2),Xt=Yt[0],Bt=Yt[1],Kt=m.useState(0),qt=(0,i.A)(Kt,2),Gt=qt[0],Zt=qt[1],Jt=function(){if(ue&&We){var e=We.getBoundingClientRect();Bt(e.width),Zt(e.height)}};function Qt(e,t,n,r){Ke[e]=function(i){var o;null===r||void 0===r||r(i),lt(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];null===(o=Be[e])||void 0===o||o.call.apply(o,[Be,i].concat(s))}}(0,v.A)((function(){mt&&(Vt(),mt(),gt(null))}),[mt]),(Ht||zt)&&(Ke.onClick=function(e){var t;it.current&&zt?lt(!1):!it.current&&Ht&&(wt(e),lt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Be.onClick)||void 0===t||t.call.apply(t,[Be,e].concat(r))}),function(e,t,n,r,o,a,s,c){var l=m.useRef(e),u=m.useRef(!1);l.current!==e&&(u.current=!0,l.current=e),m.useEffect((function(){var e=(0,z.A)((function(){u.current=!1}));return function(){z.A.cancel(e)}}),[e]),m.useEffect((function(){if(t&&r&&(!o||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=s(n)},function(t){var n=t.target;u.current||!l.current||e||s(n)||c(!1)}]},f=e(),h=(0,i.A)(f,2),v=h[0],p=h[1],m=e(),g=(0,i.A)(m,2),y=g[0],A=g[1],b=M(r);b.addEventListener("mousedown",v,!0),b.addEventListener("click",p,!0),b.addEventListener("contextmenu",p,!0);var C=(0,d.j)(n);return C&&(C.addEventListener("mousedown",y,!0),C.addEventListener("click",A,!0),C.addEventListener("contextmenu",A,!0)),function(){b.removeEventListener("mousedown",v,!0),b.removeEventListener("click",p,!0),b.removeEventListener("contextmenu",p,!0),C&&(C.removeEventListener("mousedown",y,!0),C.removeEventListener("click",A,!0),C.removeEventListener("contextmenu",A,!0))}}}),[t,n,r,o,a])}(nt,zt,We,Te,q,Z,qe,lt);var en,tn,nn=jt.has("hover"),rn=Dt.has("hover");nn&&(Qt("onMouseEnter",!0,$,(function(e){wt(e)})),Qt("onPointerEnter",!0,$,(function(e){wt(e)})),en=function(){(nt||ft)&<(!0,$)},he&&(Ke.onMouseMove=function(e){var t;null===(t=Be.onMouseMove)||void 0===t||t.call(Be,e)})),rn&&(Qt("onMouseLeave",!1,X),Qt("onPointerLeave",!1,X),tn=function(){lt(!1,X)}),jt.has("focus")&&Qt("onFocus",!0,B),Dt.has("focus")&&Qt("onBlur",!1,K),jt.has("contextMenu")&&(Ke.onContextMenu=function(e){var t;it.current&&Dt.has("contextMenu")?lt(!1):(wt(e),lt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Be.onContextMenu)||void 0===t||t.call.apply(t,[Be,e].concat(r))}),Ee&&(Ke.className=c()(Be.className,Ee));var on=(0,r.A)((0,r.A)({},Be),Ke),an={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){xe[e]&&(an[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=on[e])||void 0===t||t.call.apply(t,[on].concat(r)),xe[e].apply(xe,r)})}));var sn=m.cloneElement(Xe,(0,r.A)((0,r.A)({},on),an)),cn={x:Mt,y:Pt},ln=me?(0,r.A)({},!0!==me?me:{}):null;return m.createElement(m.Fragment,null,m.createElement(l.A,{disabled:!nt,ref:Ye,onResize:function(){Jt(),Wt()}},m.createElement(k,{getTriggerDOMNode:ke},sn)),m.createElement(x.Provider,{value:Ie},m.createElement(E,{portal:e,ref:De,prefixCls:s,popup:ne,className:c()(re,Ut),style:ie,target:We,onMouseEnter:en,onMouseLeave:tn,onPointerEnter:en,zIndex:le,open:nt,keepDom:ft,fresh:fe,onClick:ve,mask:q,motion:Ge,maskMotion:Ze,onVisibleChanged:function(e){ht(!1),Vt(),null===U||void 0===U||U(e)},onPrepare:function(){return new Promise((function(e){Jt(),gt((function(){return e}))}))},forceRender:Q,autoDestroy:_e,getPopupContainer:J,align:Ot,arrow:ln,arrowPos:cn,ready:xt,offsetX:_t,offsetY:St,offsetR:Nt,offsetB:Ft,onAlign:Wt,stretch:ue,targetWidth:Xt/Rt,targetHeight:Gt/It})))}))}(a.A)},56691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLMonacoLinter=void 0;const r=n(71899);t.HTMLMonacoLinter=class{constructor(e,t,n){this.editor=e,this.monaco=t,this.ruleset=n}lint(){var e;const t=this.editor.getValue();if("html"===(null===(e=this.editor.getModel())||void 0===e?void 0:e.getLanguageId())){const e=new r.HTMLMonacoMarks(t,this.ruleset,this.editor.getModel()||void 0).getEditorMarks(this.monaco),n=this.editor.getModel();if(null===n)throw new Error("Your model still does't exist.");this.monaco.editor.setModelMarkers(n,"owner",e)}}watch(){this.lint(),this.editor.onDidChangeModelContent((e=>{this.lint()}))}}},71899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLMonacoMarks=void 0;const r=n(18507),i=n(91874),o={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0};t.HTMLMonacoMarks=class{constructor(e,t=o,n){this.html=e,this.ruleset=t,this.linterResponse=this.lint(),this.model=n}lint(){return r.HTMLHint.verify(this.html,this.ruleset)}getEditorMarks(e){return this.linterResponse.map((t=>({startLineNumber:t.line,startColumn:t.col,endLineNumber:t.line,endColumn:""!==t.evidence?t.col+t.evidence.length:void 0!==this.model?this.model.getLineLength(t.line):t.col+1,message:t.message,severity:e.MarkerSeverity[(0,i.capitalize)(t.type)]})))}getLinterResponse(){return this.linterResponse}}},887:(e,t,n)=>{"use strict";t.Ay=void 0;var r=n(71899);var i=n(56691);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return i.HTMLMonacoLinter}})},91874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0;t.capitalize=e=>{const t=e.split(" ");for(var n=0;n<t.length;n++)t[n]=t[n].charAt(0).toUpperCase()+t[n].slice(1);return t.join(" ")}},2417:(e,t,n)=>{const r=n(70069);e.exports=function(e,t){t=t||{};const i={pretty:!1,fuzzy:!1,stringify:!1,format:"raw",domain:"messages",charset:"utf8",fullMF:!1,mfOptions:{}};for(const n in i)t[n]="undefined"!==typeof t[n]?t[n]:i[n];let o={},a={};if("mf"===t.format){const n=e.toString().includes('"Plural-Forms:')?t.mfOptions:Object.assign({},{pluralFunction:()=>0},t.mfOptions);return a=Object.keys(n).length>0?r.parsePo(e,n):r.parsePo(e),t.fullMF?t.stringify?JSON.stringify(a,null,t.pretty?" ":null):a:(a&&(a.translations&&a.translations[""]?(o=a.translations[""],Object.keys(a.translations).forEach((function(e){""===e?Object.keys(a.translations[""]).forEach((function(e){o[e]=a.translations[""][e]})):o[e]=a.translations[e]}))):o=a.translations||{}),t.stringify?JSON.stringify(o,null,t.pretty?" ":null):o)}const s=n(23763).po.parse(e,i.charset),c=s.translations;if(Object.keys(c).forEach((function(e){const n=s.translations[e],r=s.headers?s.headers["plural-forms"]:"";Object.keys(n).forEach((function(i,o){const s=n[i],c=e.length?e+"\x04"+i:i,l=s.comments&&s.comments.flag&&null!==s.comments.flag.match(/fuzzy/);l&&!t.fuzzy||("jed"===t.format?a[c]=[s.msgid_plural?s.msgid_plural:null].concat(s.msgstr):"nplurals=1; plural=0;"===r?(msgstr=s.msgid_plural?[s.msgstr]:s.msgstr,a[c]=[s.msgid_plural?s.msgid_plural:null].concat(msgstr)):a[c]=[s.msgid_plural?s.msgid_plural:null].concat(s.msgstr)),t["fallback-to-msgid"]&&(l&&!t.fuzzy||""===s.msgstr[0])&&(a[c]=[s.msgid_plural?s.msgid_plural:null].concat(s.msgid_plural?[i,s.msgid_plural]:[i]))}))})),s.headers&&(a[""]=s.headers),"mf"===t.format&&delete a[""],0===t.format.indexOf("jed")){const e={domain:t.domain,locale_data:{}};if("jed"===t.format)for(const t in a)if(a.hasOwnProperty(t)&&""!==t){for(let e=2;e<a[t].length;e++)""===a[t][e]&&(a[t][e]=a[t][0]);a[t].shift()}e.locale_data[t.domain]=a,e.locale_data[t.domain][""]={domain:t.domain,plural_forms:a[""]["plural-forms"],lang:a[""].language},a=e}return t.stringify?JSON.stringify(a,null,t.pretty?" ":null):a}},23763:(e,t,n)=>{"use strict";var r=n(48117);e.exports={po:{parse:r.parse,createParseStream:r.stream,compile:n(99563)},mo:{parse:n(98596),compile:n(85758)}}},85758:(e,t,n)=>{"use strict";var r=n(81443).Buffer,i=n(78117),o=n(98510);function a(e){this._table=e||{},this._table.headers=this._table.headers||{},this._table.translations=this._table.translations||{},this._translations=[],this._writeFunc="writeUInt32LE",this._handleCharset()}e.exports=function(e){return new a(e).compile()},a.prototype.MAGIC=2500072158,a.prototype._handleCharset=function(){var e=(this._table.headers["content-type"]||"text/plain").split(";"),t=e.shift(),n=o.formatCharset(this._table.charset),r=[];r=e.map((function(e){var t=e.split("="),r=t.shift().trim(),i=t.join("=");return"charset"===r.toLowerCase()?(n||(n=o.formatCharset(i.trim()||"utf-8")),"charset="+n):e})),n||(n=this._table.charset||"utf-8",r.push("charset="+n)),this._table.charset=n,this._table.headers["content-type"]=t+"; "+r.join("; "),this._charset=n},a.prototype._generateList=function(){var e=[];return e.push({msgid:r.alloc(0),msgstr:i.convert(o.generateHeader(this._table.headers),this._charset)}),Object.keys(this._table.translations).forEach(function(t){"object"===typeof this._table.translations[t]&&Object.keys(this._table.translations[t]).forEach(function(n){if("object"===typeof this._table.translations[t][n]&&(""!==t||""!==n)){var r,o=this._table.translations[t][n].msgid_plural,a=n;t&&(a=t+"\x04"+a),o&&(a+="\0"+o),r=[].concat(this._table.translations[t][n].msgstr||[]).join("\0"),e.push({msgid:i.convert(a,this._charset),msgstr:i.convert(r,this._charset)})}}.bind(this))}.bind(this)),e},a.prototype._calculateSize=function(e){var t,n=0,r=0;return e.forEach((function(e){n+=e.msgid.length+1,r+=e.msgstr.length+1})),t=28+8*e.length+8*e.length+n+r,{msgid:n,msgstr:r,total:t}},a.prototype._build=function(e,t){var n,i,o=r.alloc(t.total),a=0;for(o[this._writeFunc](this.MAGIC,0),o[this._writeFunc](0,4),o[this._writeFunc](e.length,8),o[this._writeFunc](28,12),o[this._writeFunc](28+8*e.length,16),o[this._writeFunc](0,20),o[this._writeFunc](28+8*e.length*2,24),a=28+16*e.length,n=0,i=e.length;n<i;n++)e[n].msgid.copy(o,a),o[this._writeFunc](e[n].msgid.length,28+8*n),o[this._writeFunc](a,28+8*n+4),o[a+e[n].msgid.length]=0,a+=e[n].msgid.length+1;for(n=0,i=e.length;n<i;n++)e[n].msgstr.copy(o,a),o[this._writeFunc](e[n].msgstr.length,28+8*e.length+8*n),o[this._writeFunc](a,28+8*e.length+8*n+4),o[a+e[n].msgstr.length]=0,a+=e[n].msgstr.length+1;return o},a.prototype.compile=function(){var e=this._generateList(),t=this._calculateSize(e);return e.sort((function(e,t){return e.msgid>t.msgid?1:e.msgid<t.msgid?-1:0})),this._build(e,t)}},98596:(e,t,n)=>{"use strict";var r=n(78117),i=n(98510);function o(e,t){this._fileContents=e,this._writeFunc="writeUInt32LE",this._readFunc="readUInt32LE",this._charset=t||"iso-8859-1",this._table={charset:this._charset,headers:void 0,translations:{}}}e.exports=function(e,t){return new o(e,t).parse()},o.prototype.MAGIC=2500072158,o.prototype._checkMagick=function(){return this._fileContents.readUInt32LE(0)===this.MAGIC?(this._readFunc="readUInt32LE",this._writeFunc="writeUInt32LE",!0):this._fileContents.readUInt32BE(0)===this.MAGIC&&(this._readFunc="readUInt32BE",this._writeFunc="writeUInt32BE",!0)},o.prototype._loadTranslationTable=function(){for(var e,t,n,i,o=this._offsetOriginals,a=this._offsetTranslations,s=0;s<this._total;s++)t=this._fileContents[this._readFunc](o),o+=4,e=this._fileContents[this._readFunc](o),o+=4,n=this._fileContents.slice(e,e+t),t=this._fileContents[this._readFunc](a),a+=4,e=this._fileContents[this._readFunc](a),a+=4,i=this._fileContents.slice(e,e+t),s||n.toString()||this._handleCharset(i),n=r.convert(n,"utf-8",this._charset).toString("utf-8"),i=r.convert(i,"utf-8",this._charset).toString("utf-8"),this._addString(n,i);this._fileContents=null},o.prototype._handleCharset=function(e){var t;(t=e.toString().match(/[; ]charset\s*=\s*([\w-]+)/i))&&(this._charset=this._table.charset=i.formatCharset(t[1],this._charset)),e=r.convert(e,"utf-8",this._charset).toString("utf-8"),this._table.headers=i.parseHeader(e)},o.prototype._addString=function(e,t){var n,r,i,o={};(e=e.split("\x04")).length>1?(r=e.shift(),o.msgctxt=r):r="",n=(e=e.join("\x04")).split("\0"),e=n.shift(),o.msgid=e,(i=n.join("\0"))&&(o.msgid_plural=i),t=t.split("\0"),o.msgstr=[].concat(t||[]),this._table.translations[r]||(this._table.translations[r]={}),this._table.translations[r][e]=o},o.prototype.parse=function(){return!!this._checkMagick()&&(this._revision=this._fileContents[this._readFunc](4),this._total=this._fileContents[this._readFunc](8),this._offsetOriginals=this._fileContents[this._readFunc](12),this._offsetTranslations=this._fileContents[this._readFunc](16),this._loadTranslationTable(),this._table)}},99563:(e,t,n)=>{"use strict";var r=n(81443).Buffer,i=n(78117),o=n(98510);function a(e,t){return e.msgid>t.msgid?1:t.msgid>e.msgid?-1:0}function s(e,t){this._table=e||{},this._table.headers=this._table.headers||{},this._table.translations=this._table.translations||{},this._options=t||{},"foldLength"in this._options||(this._options.foldLength=76),"sort"in this._options||(this._options.sort=!1),this._translations=[],this._handleCharset()}e.exports=function(e,t){return new s(e,t).compile()},s.prototype._drawComments=function(e){var t=[];return[{key:"translator",prefix:"# "},{key:"reference",prefix:"#: "},{key:"extracted",prefix:"#. "},{key:"flag",prefix:"#, "},{key:"previous",prefix:"#| "}].forEach((function(n){e[n.key]&&e[n.key].split(/\r?\n|\r/).forEach((function(e){t.push(n.prefix+e)}))})),t.join("\n")},s.prototype._drawBlock=function(e,t){var n=[],r=(t=t||{}).comments||e.comments,i=t.msgctxt||e.msgctxt,o=t.msgid||e.msgid,a=t.msgid_plural||e.msgid_plural,s=[].concat(t.msgstr||e.msgstr);return r&&(r=this._drawComments(r))&&n.push(r),i&&n.push(this._addPOString("msgctxt",i)),n.push(this._addPOString("msgid",o||"")),a?(n.push(this._addPOString("msgid_plural",a)),s.forEach(function(e,t){n.push(this._addPOString("msgstr["+t+"]",e||""))}.bind(this))):n.push(this._addPOString("msgstr",s[0]||"")),n.join("\n")},s.prototype._addPOString=function(e,t){e=(e||"").toString();var n=[t=(t||"").toString().replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\n/g,"\\n")];return this._options.foldLength>0&&(n=o.foldLine(t,this._options.foldLength)),n.length<2?e+' "'+(n.shift()||"")+'"':e+' ""\n"'+n.join('"\n"')+'"'},s.prototype._handleCharset=function(){var e=(this._table.headers["content-type"]||"text/plain").split(";"),t=e.shift(),n=o.formatCharset(this._table.charset),r=[];r=e.map((function(e){var t=e.split("="),r=t.shift().trim(),i=t.join("=");return"charset"===r.toLowerCase()?(n||(n=o.formatCharset(i.trim()||"utf-8")),"charset="+n):e})),n||(n=this._table.charset||"utf-8",r.push("charset="+n)),this._table.charset=n,this._table.headers["content-type"]=t+"; "+r.join("; "),this._charset=n},s.prototype.compile=function(){var e=[],t=this._table.translations[""]&&this._table.translations[""][""]||{};return Object.keys(this._table.translations).forEach(function(t){"object"===typeof this._table.translations[t]&&Object.keys(this._table.translations[t]).forEach(function(n){"object"===typeof this._table.translations[t][n]&&(""===t&&""===n||e.push(this._table.translations[t][n]))}.bind(this))}.bind(this)),!1!==this._options.sort&&(e="function"===typeof this._options.sort?e.sort(this._options.sort):e.sort(a)),(e=e.map(function(e){return this._drawBlock(e)}.bind(this))).unshift(this._drawBlock(t,{msgstr:o.generateHeader(this._table.headers)})),"utf-8"===this._charset||"ascii"===this._charset?r.from(e.join("\n\n"),"utf-8"):i.convert(e.join("\n\n"),this._charset)}},48117:(e,t,n)=>{"use strict";var r=n(33825).Buffer,i=n(78117),o=n(98510),a=n(49896).Transform,s=n(26683);function c(e,t){this._charset=t||"iso-8859-1",this._lex=[],this._escaped=!1,this._node={},this._state=this.states.none,"string"===typeof e?(this._charset="utf-8",this._fileContents=e):this._handleCharset(e)}function l(e,t){!t&&e&&"object"===typeof e&&(t=e,e=void 0),this.defaultCharset=e,this._parser=!1,this._tokens={},this._cache=[],this._cacheSize=0,this.initialTreshold=t.initialTreshold||2048,a.call(this,t),this._writableState.objectMode=!1,this._readableState.objectMode=!0}e.exports.parse=function(e,t){return new c(e,t).parse()},e.exports.stream=function(e,t){return new l(e,t)},c.prototype.parse=function(){return this._lexer(this._fileContents),this._finalize(this._lex)},c.prototype._handleCharset=function(e){var t,n,r=(e||"").toString(),i="";(t=r.search(/^\s*msgid/im))>=0&&(t+=r.substr(t+5).search(/^\s*(msgid|msgctxt)/im))&&(i=r.substr(0,t)),(n=i.match(/[; ]charset\s*=\s*([\w-]+)(?:[\s;]|\\n)*"\s*$/im))&&(this._charset=o.formatCharset(n[1],this._charset)),"utf-8"===this._charset?this._fileContents=r:this._fileContents=this._toString(e)},c.prototype._toString=function(e){return i.convert(e,"utf-8",this._charset).toString("utf-8")},c.prototype.states={none:1,comments:2,key:3,string:4},c.prototype.types={comments:1,key:2,string:3},c.prototype.symbols={quotes:/["']/,comments:/#/,whitespace:/\s/,key:/[\w\-[\]]/},c.prototype._lexer=function(e){for(var t,n=0,r=e.length;n<r;n++)switch(t=e.charAt(n),this._state){case this.states.none:t.match(this.symbols.quotes)?(this._node={type:this.types.string,value:"",quote:t},this._lex.push(this._node),this._state=this.states.string):t.match(this.symbols.comments)?(this._node={type:this.types.comments,value:""},this._lex.push(this._node),this._state=this.states.comments):t.match(this.symbols.whitespace)||(this._node={type:this.types.key,value:t},this._lex.push(this._node),this._state=this.states.key);break;case this.states.comments:"\n"===t?this._state=this.states.none:"\r"!==t&&(this._node.value+=t);break;case this.states.string:if(this._escaped){switch(t){case"t":this._node.value+="\t";break;case"n":this._node.value+="\n";break;case"r":this._node.value+="\r";break;default:this._node.value+=t}this._escaped=!1}else{if(t===this._node.quote)this._state=this.states.none;else{if("\\"===t){this._escaped=!0;break}this._node.value+=t}this._escaped=!1}break;case this.states.key:t.match(this.symbols.key)?this._node.value+=t:(this._state=this.states.none,n--)}},c.prototype._joinStringValues=function(e){for(var t,n=[],r=0,i=e.length;r<i;r++)t&&e[r].type===this.types.string&&t.type===this.types.string?t.value+=e[r].value:t&&e[r].type===this.types.comments&&t.type===this.types.comments?t.value+="\n"+e[r].value:(n.push(e[r]),t=e[r]);return n},c.prototype._parseComments=function(e){e.forEach(function(e){var t;e&&e.type===this.types.comments&&(t={translator:[],extracted:[],reference:[],flag:[],previous:[]},(e.value||"").split(/\n/).forEach((function(e){switch(e.charAt(0)||""){case":":t.reference.push(e.substr(1).trim());break;case".":t.extracted.push(e.substr(1).replace(/^\s+/,""));break;case",":t.flag.push(e.substr(1).replace(/^\s+/,""));break;case"|":t.previous.push(e.substr(1).replace(/^\s+/,""));break;default:t.translator.push(e.replace(/^\s+/,""))}})),e.value={},Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.value[n]=t[n].join("\n"))})))}.bind(this))},c.prototype._handleKeys=function(e){for(var t,n=[],r=0,i=e.length;r<i;r++)e[r].type===this.types.key?(t={key:e[r].value},r&&e[r-1].type===this.types.comments&&(t.comments=e[r-1].value),t.value="",n.push(t)):e[r].type===this.types.string&&t&&(t.value+=e[r].value);return n},c.prototype._handleValues=function(e){for(var t,n,r,i=[],o=0,a=e.length;o<a;o++)"msgctxt"===e[o].key.toLowerCase()?(n=e[o].value,r=e[o].comments):"msgid"===e[o].key.toLowerCase()?(t={msgid:e[o].value},n&&(t.msgctxt=n),r&&(t.comments=r),e[o].comments&&!t.comments&&(t.comments=e[o].comments),n=!1,r=!1,i.push(t)):"msgid_plural"===e[o].key.toLowerCase()?(t&&(t.msgid_plural=e[o].value),e[o].comments&&!t.comments&&(t.comments=e[o].comments),n=!1,r=!1):"msgstr"===e[o].key.substr(0,6).toLowerCase()&&(t&&(t.msgstr=(t.msgstr||[]).concat(e[o].value)),e[o].comments&&!t.comments&&(t.comments=e[o].comments),n=!1,r=!1);return i},c.prototype._normalize=function(e){for(var t,n={charset:this._charset,headers:void 0,translations:{}},r=0,i=e.length;r<i;r++)t=e[r].msgctxt||"",n.translations[t]||(n.translations[t]={}),n.headers||t||e[r].msgid||(n.headers=o.parseHeader(e[r].msgstr[0])),n.translations[t][e[r].msgid]=e[r];return n},c.prototype._finalize=function(e){var t=this._joinStringValues(e);return this._parseComments(t),t=this._handleKeys(t),t=this._handleValues(t),this._normalize(t)},s.inherits(l,a),l.prototype._transform=function(e,t,n){var i,o=0;if(!e||!e.length)return n();if(this._parser)this._cacheSize&&(this._cache.push(e),this._cacheSize+=e.length,e=r.concat(this._cache,this._cacheSize),this._cacheSize=0,this._cache=[]);else{if(this._cache.push(e),this._cacheSize+=e.length,this._cacheSize<this.initialTreshold)return setImmediate(n);this._cacheSize&&(e=r.concat(this._cache,this._cacheSize),this._cacheSize=0,this._cache=[]),this._parser=new c(e,this.defaultCharset)}for(i=e.length-1;i>=0&&e[i]>=128;i--)o++;o&&(this._cache=[e.slice(e.length-o)],this._cacheSize=this._cache[0].length,e=e.slice(0,e.length-o)),e.length&&this._parser._lexer(this._parser._toString(e)),setImmediate(n)},l.prototype._flush=function(e){var t;this._cacheSize&&(t=r.concat(this._cache,this._cacheSize)),!this._parser&&t&&(this._parser=new c(t,this.defaultCharset)),t&&this._parser._lexer(this._parser._toString(t)),this._parser&&this.push(this._parser._finalize(this._parser._lex)),setImmediate(e)}},98510:e=>{"use strict";e.exports.parseHeader=function(e){var t=(e||"").split("\n"),n={};return t.forEach((function(e){var t=e.trim().split(":"),r=(t.shift()||"").trim().toLowerCase(),i=t.join(":").trim();r&&(n[r]=i)})),n},e.exports.generateHeader=function(e){var t=[];return Object.keys(e||{}).forEach((function(n){n&&t.push((n||"").toLowerCase().trim().replace(/^(MIME|POT?(?=-)|[a-z])|-[a-z]/gi,(function(e){return e.toUpperCase()}))+": "+(e[n]||"").trim())})),t.join("\n")+(t.length?"\n":"")},e.exports.formatCharset=function(e,t){return(e||"iso-8859-1").toString().toLowerCase().replace(/^utf[-_]?(\d+)$/,"utf-$1").replace(/^win(?:dows)?[-_]?(\d+)$/,"windows-$1").replace(/^latin[-_]?(\d+)$/,"iso-8859-$1").replace(/^(us[-_]?)?ascii$/,"ascii").replace(/^charset$/,t||"iso-8859-1").trim()},e.exports.foldLine=function(e,t){t=t||76;var n,r=[],i="",o=0,a=e.length;for(;o<a;){for(i=e.substr(o,t);"\\"===i.substr(-1)&&o+i.length<a;)i+=e.charAt(o+i.length);((n=/.*?\\n/.exec(i))||o+i.length<a&&((n=/.*\s+/.exec(i))&&/[^\s]/.test(n[0])||(n=/.*[\x21-\x2f0-9\x5b-\x60\x7b-\x7e]+/.exec(i))&&/[^\x21-\x2f0-9\x5b-\x60\x7b-\x7e]/.test(n[0])))&&(i=n[0]),r.push(i),o+=i.length}return r}},80076:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},80972:(e,t,n)=>{"use strict";var r=n(6408);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,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:o,resetWarningCache:i};return n.PropTypes=n,n}},59018:(e,t,n)=>{e.exports=n(80972)()},6408:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G,A:()=>Q});var r=n(96790),i=n(25501),o=n(77482),a=n(43009),s=n(68731),c=n(44977),l=n(1377),u=n(14030),d=n(42099),f=n(92810);const h=f.createContext(null);var v=n(38086),p=n(46585),m="__rc_cascader_search_mark__",g=function(e,t,n){var r=n.label;return t.some((function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())}))},y=function(e,t,n,r){return t.map((function(e){return e[r.label]})).join(" / ")};var A="__RC_CASCADER_SPLIT__",b="SHOW_PARENT",C="SHOW_CHILD";function w(e){return e.join(A)}function E(e){return e.map(w)}function k(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function x(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function _(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function S(e,t){return e.map((function(e){var n;return null===(n=e[m])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function N(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function F(e,t,n){var r=new Set(e),i=t();return e.filter((function(e){var t=i[e],o=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===C?!(a&&a.some((function(e){return e.key&&r.has(e.key)}))):!(o&&!o.node.disabled&&r.has(o.key)))}))}function M(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t,o=[],a=function(){var t,a,c,l=e[s],u=null===(t=i)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return r?String(t)===String(l):t===l})),d=-1!==u?null===(a=i)||void 0===a?void 0:a[u]:null;o.push({value:null!==(c=null===d||void 0===d?void 0:d[n.value])&&void 0!==c?c:l,index:u,option:d}),i=null===d||void 0===d?void 0:d[n.children]},s=0;s<e.length;s+=1)a();return o}function P(e,t){return f.useCallback((function(n){var r=[],i=[];return n.forEach((function(n){M(n,e,t).every((function(e){return e.option}))?i.push(n):r.push(n)})),[i,r]}),[e,t])}var R=n(43888);const I=function(e,t){var n=f.useRef({options:null,info:null});return f.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=(0,R.cG)(e,{fieldNames:t,initWrapper:function(e){return(0,i.A)((0,i.A)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value]})).join(A);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities}),[t,e])};function O(e,t){var n=f.useMemo((function(){return t||[]}),[t]),r=I(n,e),i=f.useCallback((function(t){var n=r();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[r,e]);return[n,r,i]}n(81180);var V=n(91126);function L(e,t,n,r,i,a,s,c){return function(l){if(e){var u=w(l),d=E(n),f=E(r),h=d.includes(u),v=i.some((function(e){return w(e)===u})),p=n,m=i;if(v&&!h)m=i.filter((function(e){return w(e)!==u}));else{var g,y=h?d.filter((function(e){return e!==u})):[].concat((0,o.A)(d),[u]),A=a();if(h)g=(0,V.p)(y,{checked:!1,halfCheckedKeys:f},A).checkedKeys;else g=(0,V.p)(y,!0,A).checkedKeys;var b=F(g,a,c);p=s(b)}t([].concat((0,o.A)(m),(0,o.A)(p)))}else t(l)}}function T(e,t,n,r,i){return f.useMemo((function(){var o=i(t),s=(0,a.A)(o,2),c=s[0],l=s[1];if(!e||!t.length)return[c,[],l];var u=E(c),d=n(),f=(0,V.p)(u,!0,d),h=f.checkedKeys,v=f.halfCheckedKeys;return[r(h),r(v),l]}),[e,t,n,r,i])}var j=n(38883),D=n.n(j);const H=f.memo((function(e){return e.children}),(function(e,t){return!t.open}));function z(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,c=f.useContext(h).checkable,l="boolean"!==typeof c?c:null;return f.createElement("span",{className:D()("".concat(n),(t={},(0,p.A)(t,"".concat(n,"-checked"),r),(0,p.A)(t,"".concat(n,"-indeterminate"),!r&&i),(0,p.A)(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},l)}var W="__cascader_fix_label__";function U(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,s=e.onToggleOpen,c=e.onSelect,l=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,v=e.loadingKeys,g=e.isSelectable,y=e.searchValue,A="".concat(t,"-menu"),b="".concat(t,"-menu-item"),C=f.useContext(h),E=C.fieldNames,k=C.changeOnSelect,_=C.expandTrigger,S=C.expandIcon,N=C.loadingIcon,F=C.dropdownMenuColumnStyle,M="hover"===_,P=f.useMemo((function(){return r.map((function(e){var t,n=e.disabled,r=e.disableCheckbox,i=e[m],s=null!==(t=e[W])&&void 0!==t?t:e[E.label],c=e[E.value],l=x(e,E),f=i?i.map((function(e){return e[E.value]})):[].concat((0,o.A)(a),[c]),h=w(f);return{disabled:n,label:s,value:c,isLeaf:l,isLoading:v.includes(h),checked:u.has(h),halfChecked:d.has(h),option:e,disableCheckbox:r,fullPath:f,fullPathKey:h}}))}),[r,u,E,d,v,a]);return f.createElement("ul",{className:A,role:"menu"},P.map((function(e){var r,a,u=e.disabled,d=e.label,h=e.value,v=e.isLeaf,m=e.isLoading,A=e.checked,C=e.halfChecked,w=e.option,E=e.fullPath,x=e.fullPathKey,_=e.disableCheckbox,P=function(){if(!u&&!y){var e=(0,o.A)(E);M&&v&&e.pop(),l(e)}},R=function(){g(w)&&c(E,v)};return"string"===typeof w.title?a=w.title:"string"===typeof d&&(a=d),f.createElement("li",{key:x,className:D()(b,(r={},(0,p.A)(r,"".concat(b,"-expand"),!v),(0,p.A)(r,"".concat(b,"-active"),i===h||i===x),(0,p.A)(r,"".concat(b,"-disabled"),u),(0,p.A)(r,"".concat(b,"-loading"),m),r)),style:F,role:"menuitemcheckbox",title:a,"aria-checked":A,"data-path-key":x,onClick:function(){P(),_||n&&!v||R()},onDoubleClick:function(){k&&s(!1)},onMouseEnter:function(){M&&P()},onMouseDown:function(e){e.preventDefault()}},n&&f.createElement(z,{prefixCls:"".concat(t,"-checkbox"),checked:A,halfChecked:C,disabled:u||_,disableCheckbox:_,onClick:function(e){_||(e.stopPropagation(),R())}}),f.createElement("div",{className:"".concat(b,"-content")},d),!m&&S&&!v&&f.createElement("div",{className:"".concat(b,"-expand-icon")},S),m&&N&&f.createElement("div",{className:"".concat(b,"-loading-icon")},N))})))}var $=n(73442);const Y=function(e,t,n,r,i,s,c){var l=c.direction,u=c.searchValue,d=c.toggleOpen,h=c.open,v="rtl"===l,p=f.useMemo((function(){for(var e=-1,i=t,o=[],a=[],s=r.length,c=S(t,n),l=function(t){var s=i.findIndex((function(e,i){return(c[i]?w(c[i]):e[n.value])===r[t]}));if(-1===s)return 1;e=s,o.push(e),a.push(r[t]),i=i[e][n.children]},u=0;u<s&&i&&!l(u);u+=1);for(var d=t,f=0;f<o.length-1;f+=1)d=d[o[f]][n.children];return[a,e,d,c]}),[r,n,t]),g=(0,a.A)(p,4),y=g[0],A=g[1],b=g[2],C=g[3],E=function(e){i(e)},k=function(){if(y.length>1){var e=y.slice(0,-1);E(e)}else d(!1)},x=function(){var e,t=((null===(e=b[A])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var r=[].concat((0,o.A)(y),[t[n.value]]);E(r)}};f.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case $.A.UP:case $.A.DOWN:var r=0;t===$.A.UP?r=-1:t===$.A.DOWN&&(r=1),0!==r&&function(e){var t=b.length,r=A;-1===r&&e<0&&(r=t);for(var i=0;i<t;i+=1){var o=b[r=(r+e+t)%t];if(o&&!o.disabled){var a=y.slice(0,-1).concat(C[r]?w(C[r]):o[n.value]);return void E(a)}}}(r);break;case $.A.LEFT:if(u)break;v?x():k();break;case $.A.RIGHT:if(u)break;v?k():x();break;case $.A.BACKSPACE:u||k();break;case $.A.ENTER:if(y.length){var i=b[A],o=(null===i||void 0===i?void 0:i[m])||[];o.length?s(o.map((function(e){return e[n.value]})),o[o.length-1]):s(y,b[A])}break;case $.A.ESC:d(!1),h&&e.stopPropagation()}},onKeyUp:function(){}}}))};const X=f.forwardRef((function(e,t){var n,s,c,l=e.prefixCls,u=e.multiple,d=e.searchValue,v=e.toggleOpen,m=e.notFoundContent,g=e.direction,y=e.open,b=f.useRef(),C="rtl"===g,k=f.useContext(h),N=k.options,F=k.values,P=k.halfValues,R=k.fieldNames,I=k.changeOnSelect,O=k.onSelect,V=k.searchOptions,L=k.dropdownPrefixCls,T=k.loadData,j=k.expandTrigger,z=L||l,$=f.useState([]),X=(0,a.A)($,2),B=X[0],K=X[1];f.useEffect((function(){B.length&&B.forEach((function(e){var t=M(e.split(A),N,R,!0).map((function(e){return e.option})),n=t[t.length-1];(!n||n[R.children]||x(n,R))&&K((function(t){return t.filter((function(t){return t!==e}))}))}))}),[N,B,R]);var q=f.useMemo((function(){return new Set(E(F))}),[F]),G=f.useMemo((function(){return new Set(E(P))}),[P]),Z=function(e,t){var n=f.useContext(h).values,r=f.useState([]),i=(0,a.A)(r,2),o=i[0],s=i[1];return f.useEffect((function(){if(t&&!e){var r=n[0];s(r||[])}}),[t]),[o,s]}(u,y),J=(0,a.A)(Z,2),Q=J[0],ee=J[1],te=function(e){ee(e),function(e){if(T&&!d){var t=M(e,N,R).map((function(e){return e.option})),n=t[t.length-1];if(n&&!x(n,R)){var r=w(e);K((function(e){return[].concat((0,o.A)(e),[r])})),T(t)}}}(e)},ne=function(e){var t=e.disabled,n=x(e,R);return!t&&(n||I||u)},re=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];O(e),!u&&(t||I&&("hover"===j||n))&&v(!1)},ie=f.useMemo((function(){return d?V:N}),[d,V,N]),oe=f.useMemo((function(){for(var e=[{options:ie}],t=ie,n=S(t,R),r=function(){var r=Q[i],o=t.find((function(e,t){return(n[t]?w(n[t]):e[R.value])===r})),a=null===o||void 0===o?void 0:o[R.children];if(null===a||void 0===a||!a.length)return 1;t=a,e.push({options:a})},i=0;i<Q.length&&!r();i+=1);return e}),[ie,Q,R]);Y(t,ie,R,Q,te,(function(e,t){ne(t)&&re(e,x(t,R),!0)}),{direction:g,searchValue:d,toggleOpen:v,open:y}),f.useEffect((function(){for(var e=0;e<Q.length;e+=1){var t,n=w(Q.slice(0,e+1)),r=null===(t=b.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));r&&_(r)}}),[Q]);var ae=!(null!==(n=oe[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),se=[(s={},(0,p.A)(s,R.value,"__EMPTY__"),(0,p.A)(s,W,m),(0,p.A)(s,"disabled",!0),s)],ce=(0,i.A)((0,i.A)({},e),{},{multiple:!ae&&u,onSelect:re,onActive:te,onToggleOpen:v,checkedSet:q,halfCheckedSet:G,loadingKeys:B,isSelectable:ne}),le=(ae?[{options:se}]:oe).map((function(e,t){var n=Q.slice(0,t),i=Q[t];return f.createElement(U,(0,r.A)({key:t},ce,{searchValue:d,prefixCls:z,options:e.options,prevValuePath:n,activeValue:i}))}));return f.createElement(H,{open:y},f.createElement("div",{className:D()("".concat(z,"-menus"),(c={},(0,p.A)(c,"".concat(z,"-menu-empty"),ae),(0,p.A)(c,"".concat(z,"-rtl"),C),c)),ref:b},le))}));const B=f.forwardRef((function(e,t){var n=(0,c.Vm)();return f.createElement(X,(0,r.A)({},e,n,{ref:t}))}));var K=n(37192);function q(){}function G(e){var t,n=e,r=n.prefixCls,i=void 0===r?"rc-cascader":r,o=n.style,s=n.className,c=n.options,l=n.checkable,u=n.defaultValue,d=n.value,v=n.fieldNames,m=n.changeOnSelect,g=n.onChange,y=n.showCheckedStrategy,A=n.loadData,b=n.expandTrigger,C=n.expandIcon,w=void 0===C?">":C,E=n.loadingIcon,x=n.direction,_=n.notFoundContent,S=void 0===_?"Not Found":_,F=!!l,R=(0,K.vz)(u,{value:d,postState:N}),I=(0,a.A)(R,2),V=I[0],j=I[1],H=f.useMemo((function(){return k(v)}),[JSON.stringify(v)]),z=O(H,c),W=(0,a.A)(z,3),U=W[0],$=W[1],Y=W[2],B=P(U,H),G=T(F,V,$,Y,B),Z=(0,a.A)(G,3),J=Z[0],Q=Z[1],ee=Z[2],te=(0,K._q)((function(e){if(j(e),g){var t=N(e),n=t.map((function(e){return M(e,U,H).map((function(e){return e.option}))})),r=F?t:t[0],i=F?n:n[0];g(r,i)}})),ne=L(F,te,J,Q,ee,$,Y,y),re=(0,K._q)((function(e){ne(e)})),ie=f.useMemo((function(){return{options:U,fieldNames:H,values:J,halfValues:Q,changeOnSelect:m,onSelect:re,checkable:l,searchOptions:[],dropdownPrefixCls:null,loadData:A,expandTrigger:b,expandIcon:w,loadingIcon:E,dropdownMenuColumnStyle:null}}),[U,H,J,Q,m,re,l,A,b,w,E]),oe="".concat(i,"-panel"),ae=!U.length;return f.createElement(h.Provider,{value:ie},f.createElement("div",{className:D()(oe,(t={},(0,p.A)(t,"".concat(oe,"-rtl"),"rtl"===x),(0,p.A)(t,"".concat(oe,"-empty"),ae),t),s),style:o},ae?S:f.createElement(X,{prefixCls:i,searchValue:null,multiple:F,toggleOpen:q,open:!0,direction:x})))}var Z=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"],J=f.forwardRef((function(e,t){var n=e.id,A=e.prefixCls,C=void 0===A?"rc-cascader":A,x=e.fieldNames,_=e.defaultValue,S=e.value,R=e.changeOnSelect,I=e.onChange,V=e.displayRender,j=e.checkable,D=e.autoClearSearchValue,H=void 0===D||D,z=e.searchValue,W=e.onSearch,U=e.showSearch,$=e.expandTrigger,Y=e.options,X=e.dropdownPrefixCls,K=e.loadData,q=e.popupVisible,G=e.open,J=e.popupClassName,Q=e.dropdownClassName,ee=e.dropdownMenuColumnStyle,te=e.dropdownStyle,ne=e.popupPlacement,re=e.placement,ie=e.onDropdownVisibleChange,oe=e.onPopupVisibleChange,ae=e.expandIcon,se=void 0===ae?">":ae,ce=e.loadingIcon,le=e.children,ue=e.dropdownMatchSelectWidth,de=void 0!==ue&&ue,fe=e.showCheckedStrategy,he=void 0===fe?b:fe,ve=(0,s.A)(e,Z),pe=(0,l.Ay)(n),me=!!j,ge=(0,d.A)(_,{value:S,postState:N}),ye=(0,a.A)(ge,2),Ae=ye[0],be=ye[1],Ce=f.useMemo((function(){return k(x)}),[JSON.stringify(x)]),we=O(Ce,Y),Ee=(0,a.A)(we,3),ke=Ee[0],xe=Ee[1],_e=Ee[2],Se=(0,d.A)("",{value:z,postState:function(e){return e||""}}),Ne=(0,a.A)(Se,2),Fe=Ne[0],Me=Ne[1],Pe=function(e){return f.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,v.A)(e)&&(t=(0,i.A)((0,i.A)({},t),e)),t.limit<=0&&delete t.limit,[!0,t]}),[e])}(U),Re=(0,a.A)(Pe,2),Ie=Re[0],Oe=Re[1],Ve=function(e,t,n,r,a,s){var c=a.filter,l=void 0===c?g:c,u=a.render,d=void 0===u?y:u,h=a.limit,v=void 0===h?50:h,A=a.sort;return f.useMemo((function(){var a=[];return e?(function t(c,u){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c.forEach((function(c){if(!(!A&&!1!==v&&v>0&&a.length>=v)){var h,g=[].concat((0,o.A)(u),[c]),y=c[n.children],b=f||c.disabled;y&&0!==y.length&&!s||l(e,g,{label:n.label})&&a.push((0,i.A)((0,i.A)({},c),{},(h={disabled:b},(0,p.A)(h,n.label,d(e,g,r,n)),(0,p.A)(h,m,g),(0,p.A)(h,n.children,void 0),h))),y&&t(c[n.children],g,b)}}))}(t,[]),A&&a.sort((function(t,r){return A(t[m],r[m],e,n)})),!1!==v&&v>0?a.slice(0,v):a):[]}),[e,t,n,r,d,s,l,A,v])}(Fe,ke,Ce,X||C,Oe,R),Le=P(ke,Ce),Te=T(me,Ae,xe,_e,Le),je=(0,a.A)(Te,3),De=je[0],He=je[1],ze=je[2],We=function(e,t,n,r,i){return f.useMemo((function(){var a=i||function(e){var t=r?e.slice(-1):e;return t.every((function(e){return["string","number"].includes((0,v.A)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var r=f.isValidElement(t)?f.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat((0,o.A)(e),[" / ",r])}),[])};return e.map((function(e){var r,i=M(e,t,n),o=a(i.map((function(e){var t,r=e.option,i=e.value;return null!==(t=null===r||void 0===r?void 0:r[n.label])&&void 0!==t?t:i})),i.map((function(e){return e.option}))),s=w(e);return{label:o,value:s,key:s,valueCells:e,disabled:null===(r=i[i.length-1])||void 0===r||null===(r=r.option)||void 0===r?void 0:r.disabled}}))}),[e,t,n,i,r])}(f.useMemo((function(){var e=F(E(De),xe,he);return[].concat((0,o.A)(ze),(0,o.A)(_e(e)))}),[De,xe,_e,ze,he]),ke,Ce,me,V),Ue=(0,u.A)((function(e){if(be(e),I){var t=N(e),n=t.map((function(e){return M(e,ke,Ce).map((function(e){return e.option}))})),r=me?t:t[0],i=me?n:n[0];I(r,i)}})),$e=L(me,Ue,De,He,ze,xe,_e,he),Ye=(0,u.A)((function(e){me&&!H||Me(""),$e(e)})),Xe=void 0!==G?G:q,Be=Q||J,Ke=re||ne;var qe=f.useMemo((function(){return{options:ke,fieldNames:Ce,values:De,halfValues:He,changeOnSelect:R,onSelect:Ye,checkable:j,searchOptions:Ve,dropdownPrefixCls:X,loadData:K,expandTrigger:$,expandIcon:se,loadingIcon:ce,dropdownMenuColumnStyle:ee}}),[ke,Ce,De,He,R,Ye,j,Ve,X,K,$,se,ce,ee]),Ge=!(Fe?Ve:ke).length,Ze=Fe&&Oe.matchInputWidth||Ge?{}:{minWidth:"auto"};return f.createElement(h.Provider,{value:qe},f.createElement(c.g3,(0,r.A)({},ve,{ref:t,id:pe,prefixCls:C,autoClearSearchValue:H,dropdownMatchSelectWidth:de,dropdownStyle:(0,i.A)((0,i.A)({},Ze),te),displayValues:We,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;Ye(n)}else Ue([])},mode:me?"multiple":void 0,searchValue:Fe,onSearch:function(e,t){Me(e),"blur"!==t.source&&W&&W(e)},showSearch:Ie,OptionList:B,emptyOptions:Ge,open:Xe,dropdownClassName:Be,placement:Ke,onDropdownVisibleChange:function(e){null===ie||void 0===ie||ie(e),null===oe||void 0===oe||oe(e)},getRawInputElement:function(){return le}})))}));J.SHOW_PARENT=b,J.SHOW_CHILD=C,J.Panel=G;const Q=J},88495:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(96790),i=n(25501),o=n(46585),a=n(43009),s=n(68731),c=n(38883),l=n.n(c),u=n(42099),d=n(92810),f=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"];const h=(0,d.forwardRef)((function(e,t){var n,c=e.prefixCls,h=void 0===c?"rc-checkbox":c,v=e.className,p=e.style,m=e.checked,g=e.disabled,y=e.defaultChecked,A=void 0!==y&&y,b=e.type,C=void 0===b?"checkbox":b,w=e.title,E=e.onChange,k=(0,s.A)(e,f),x=(0,d.useRef)(null),_=(0,u.A)(A,{value:m}),S=(0,a.A)(_,2),N=S[0],F=S[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=x.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=x.current)||void 0===e||e.blur()},input:x.current}}));var M=l()(h,v,(n={},(0,o.A)(n,"".concat(h,"-checked"),N),(0,o.A)(n,"".concat(h,"-disabled"),g),n));return d.createElement("span",{className:M,title:w,style:p},d.createElement("input",(0,r.A)({},k,{className:"".concat(h,"-input"),ref:x,onChange:function(t){g||("checked"in e||F(t.target.checked),null===E||void 0===E||E({target:(0,i.A)((0,i.A)({},e),{},{type:C,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:g,checked:!!N,type:C})),d.createElement("span",{className:"".concat(h,"-inner")}))}))},39462:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(43009),i=n(77482),o=n(38086),a=n(38883),s=n.n(a),c=n(42099),l=n(81180),u=n(92810),d=n(96790),f=n(68731),h=n(66408),v=n(46585),p=n(23516),m=n(73442),g=u.forwardRef((function(e,t){var n,i=e.prefixCls,o=e.forceRender,a=e.className,c=e.style,l=e.children,d=e.isActive,f=e.role,h=u.useState(d||o),p=(0,r.A)(h,2),m=p[0],g=p[1];return u.useEffect((function(){(o||d)&&g(!0)}),[o,d]),m?u.createElement("div",{ref:t,className:s()("".concat(i,"-content"),(n={},(0,v.A)(n,"".concat(i,"-content-active"),d),(0,v.A)(n,"".concat(i,"-content-inactive"),!d),n),a),style:c,role:f},u.createElement("div",{className:"".concat(i,"-content-box")},l)):null}));g.displayName="PanelContent";const y=g;var A=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"];const b=u.forwardRef((function(e,t){var n,r,i=e.showArrow,o=void 0===i||i,a=e.headerClass,c=e.isActive,l=e.onItemClick,h=e.forceRender,g=e.className,b=e.prefixCls,C=e.collapsible,w=e.accordion,E=e.panelKey,k=e.extra,x=e.header,_=e.expandIcon,S=e.openMotion,N=e.destroyInactivePanel,F=e.children,M=(0,f.A)(e,A),P="disabled"===C,R="header"===C,I="icon"===C,O=null!==k&&void 0!==k&&"boolean"!==typeof k,V=function(){null===l||void 0===l||l(E)},L="function"===typeof _?_(e):u.createElement("i",{className:"arrow"});L&&(L=u.createElement("div",{className:"".concat(b,"-expand-icon"),onClick:["header","icon"].includes(C)?V:void 0},L));var T=s()((n={},(0,v.A)(n,"".concat(b,"-item"),!0),(0,v.A)(n,"".concat(b,"-item-active"),c),(0,v.A)(n,"".concat(b,"-item-disabled"),P),n),g),j={className:s()(a,(r={},(0,v.A)(r,"".concat(b,"-header"),!0),(0,v.A)(r,"".concat(b,"-header-collapsible-only"),R),(0,v.A)(r,"".concat(b,"-icon-collapsible-only"),I),r)),"aria-expanded":c,"aria-disabled":P,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==m.A.ENTER&&e.which!==m.A.ENTER||V()}};return R||I||(j.onClick=V,j.role=w?"tab":"button",j.tabIndex=P?-1:0),u.createElement("div",(0,d.A)({},M,{ref:t,className:T}),u.createElement("div",j,o&&L,u.createElement("span",{className:"".concat(b,"-header-text"),onClick:"header"===C?V:void 0},x),O&&u.createElement("div",{className:"".concat(b,"-extra")},k)),u.createElement(p.Ay,(0,d.A)({visible:c,leavedClassName:"".concat(b,"-content-hidden")},S,{forceRender:h,removeOnLeave:N}),(function(e,t){var n=e.className,r=e.style;return u.createElement(y,{ref:t,prefixCls:b,className:n,style:r,isActive:c,forceRender:h,role:w?"tabpanel":void 0},F)})))}));var C=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const w=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,i=t.collapsible,o=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,c=t.openMotion,l=t.expandIcon;return e.map((function(e,t){var h=e.children,v=e.label,p=e.key,m=e.collapsible,g=e.onItemClick,y=e.destroyInactivePanel,A=(0,f.A)(e,C),w=String(null!==p&&void 0!==p?p:t),E=null!==m&&void 0!==m?m:i,k=null!==y&&void 0!==y?y:o,x=!1;return x=r?s[0]===w:s.indexOf(w)>-1,u.createElement(b,(0,d.A)({},A,{prefixCls:n,key:w,panelKey:w,isActive:x,accordion:r,openMotion:c,expandIcon:l,header:v,collapsible:E,onItemClick:function(e){"disabled"!==E&&(a(e),null===g||void 0===g||g(e))},destroyInactivePanel:k}),h)}))}(e,n):(0,h.A)(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,i=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,l=n.openMotion,d=n.expandIcon,f=e.key||String(t),h=e.props,v=h.header,p=h.headerClass,m=h.destroyInactivePanel,g=h.collapsible,y=h.onItemClick,A=!1;A=i?c[0]===f:c.indexOf(f)>-1;var b=null!==g&&void 0!==g?g:o,C={key:f,panelKey:f,header:v,headerClass:p,isActive:A,prefixCls:r,destroyInactivePanel:null!==m&&void 0!==m?m:a,openMotion:l,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==b&&(s(e),null===y||void 0===y||y(e))},expandIcon:d,collapsible:b};return"string"===typeof e.type?e:(Object.keys(C).forEach((function(e){"undefined"===typeof C[e]&&delete C[e]})),u.cloneElement(e,C))}(e,t,n)}))};function E(e){var t=e;if(!Array.isArray(t)){var n=(0,o.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var k=u.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,a=e.destroyInactivePanel,d=void 0!==a&&a,f=e.style,h=e.accordion,v=e.className,p=e.children,m=e.collapsible,g=e.openMotion,y=e.expandIcon,A=e.activeKey,b=e.defaultActiveKey,C=e.onChange,k=e.items,x=s()(o,v),_=(0,c.A)([],{value:A,onChange:function(e){return null===C||void 0===C?void 0:C(e)},defaultValue:b,postState:E}),S=(0,r.A)(_,2),N=S[0],F=S[1];(0,l.Ay)(!p,"`children` will be removed in next major version. Please use `items` instead.");var M=w(k,p,{prefixCls:o,accordion:h,openMotion:g,expandIcon:y,collapsible:m,destroyInactivePanel:d,onItemClick:function(e){return F((function(){return h?N[0]===e?[]:[e]:N.indexOf(e)>-1?N.filter((function(t){return t!==e})):[].concat((0,i.A)(N),[e])}))},activeKey:N});return u.createElement("div",{ref:t,className:x,style:f,role:h?"tablist":void 0},M)}));const x=Object.assign(k,{Panel:b}),_=x;x.Panel},66870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C,A:()=>S});var r=n(96790),i=n(43009),o=n(57853),a=n(92810),s=a.createContext({}),c=n(25501),l=n(38883),u=n.n(l),d=n(50542),f=n(22157),h=n(73442),v=n(59511);function p(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var i=e.document;"number"!==typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}var g=n(23516),y=n(31381);const A=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var b={width:0,height:0,overflow:"hidden",outline:"none"};const C=a.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,o=e.style,l=e.title,d=e.ariaId,f=e.footer,h=e.closable,v=e.closeIcon,p=e.onClose,m=e.children,g=e.bodyStyle,C=e.bodyProps,w=e.modalRender,E=e.onMouseDown,k=e.onMouseUp,x=e.holderRef,_=e.visible,S=e.forceRender,N=e.width,F=e.height,M=e.classNames,P=e.styles,R=a.useContext(s).panel,I=(0,y.xK)(x,R),O=(0,a.useRef)(),V=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=O.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===V.current?O.current.focus():e||t!==O.current||V.current.focus()}}}));var L,T,j,D={};void 0!==N&&(D.width=N),void 0!==F&&(D.height=F),f&&(L=a.createElement("div",{className:u()("".concat(n,"-footer"),null===M||void 0===M?void 0:M.footer),style:(0,c.A)({},null===P||void 0===P?void 0:P.footer)},f)),l&&(T=a.createElement("div",{className:u()("".concat(n,"-header"),null===M||void 0===M?void 0:M.header),style:(0,c.A)({},null===P||void 0===P?void 0:P.header)},a.createElement("div",{className:"".concat(n,"-title"),id:d},l))),h&&(j=a.createElement("button",{type:"button",onClick:p,"aria-label":"Close",className:"".concat(n,"-close")},v||a.createElement("span",{className:"".concat(n,"-close-x")})));var H=a.createElement("div",{className:u()("".concat(n,"-content"),null===M||void 0===M?void 0:M.content),style:null===P||void 0===P?void 0:P.content},j,T,a.createElement("div",(0,r.A)({className:u()("".concat(n,"-body"),null===M||void 0===M?void 0:M.body),style:(0,c.A)((0,c.A)({},g),null===P||void 0===P?void 0:P.body)},C),m),L);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?d:null,"aria-modal":"true",ref:I,style:(0,c.A)((0,c.A)({},o),D),className:u()(n,i),onMouseDown:E,onMouseUp:k},a.createElement("div",{tabIndex:0,ref:O,style:b,"aria-hidden":"true"}),a.createElement(A,{shouldUpdate:_||S},w?w(H):H),a.createElement("div",{tabIndex:0,ref:V,style:b,"aria-hidden":"true"}))}));var w=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,s=e.style,l=e.className,d=e.visible,f=e.forceRender,h=e.destroyOnClose,v=e.motionName,p=e.ariaId,y=e.onVisibleChanged,A=e.mousePosition,b=(0,a.useRef)(),w=a.useState(),E=(0,i.A)(w,2),k=E[0],x=E[1],_={};function S(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=m(i),n.top+=m(i,!0),n}(b.current);x(A?"".concat(A.x-e.left,"px ").concat(A.y-e.top,"px"):"")}return k&&(_.transformOrigin=k),a.createElement(g.Ay,{visible:d,onVisibleChanged:y,onAppearPrepare:S,onEnterPrepare:S,forceRender:f,motionName:v,removeOnLeave:h,ref:b},(function(i,d){var f=i.className,h=i.style;return a.createElement(C,(0,r.A)({},e,{ref:t,title:o,ariaId:p,prefixCls:n,holderRef:d,style:(0,c.A)((0,c.A)((0,c.A)({},h),s),_),className:u()(l,f)}))}))}));w.displayName="Content";const E=w;function k(e){var t=e.prefixCls,n=e.style,i=e.visible,o=e.maskProps,s=e.motionName,l=e.className;return a.createElement(g.Ay,{key:"mask",visible:i,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var s=e.className,d=e.style;return a.createElement("div",(0,r.A)({ref:i,style:(0,c.A)((0,c.A)({},d),n),className:u()("".concat(t,"-mask"),s,l)},o))}))}n(81180);function x(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,s=e.visible,l=void 0!==s&&s,m=e.keyboard,g=void 0===m||m,y=e.focusTriggerAfterClose,A=void 0===y||y,b=e.wrapStyle,C=e.wrapClassName,w=e.wrapProps,x=e.onClose,_=e.afterOpenChange,S=e.afterClose,N=e.transitionName,F=e.animation,M=e.closable,P=void 0===M||M,R=e.mask,I=void 0===R||R,O=e.maskTransitionName,V=e.maskAnimation,L=e.maskClosable,T=void 0===L||L,j=e.maskStyle,D=e.maskProps,H=e.rootClassName,z=e.classNames,W=e.styles;var U=(0,a.useRef)(),$=(0,a.useRef)(),Y=(0,a.useRef)(),X=a.useState(l),B=(0,i.A)(X,2),K=B[0],q=B[1],G=(0,f.A)();function Z(e){null===x||void 0===x||x(e)}var J=(0,a.useRef)(!1),Q=(0,a.useRef)(),ee=null;return T&&(ee=function(e){J.current?J.current=!1:$.current===e.target&&Z(e)}),(0,a.useEffect)((function(){l&&(q(!0),(0,d.A)($.current,document.activeElement)||(U.current=document.activeElement))}),[l]),(0,a.useEffect)((function(){return function(){clearTimeout(Q.current)}}),[]),a.createElement("div",(0,r.A)({className:u()("".concat(n,"-root"),H)},(0,v.A)(e,{data:!0})),a.createElement(k,{prefixCls:n,visible:I&&l,motionName:p(n,O,V),style:(0,c.A)((0,c.A)({zIndex:o},j),null===W||void 0===W?void 0:W.mask),maskProps:D,className:null===z||void 0===z?void 0:z.mask}),a.createElement("div",(0,r.A)({tabIndex:-1,onKeyDown:function(e){if(g&&e.keyCode===h.A.ESC)return e.stopPropagation(),void Z(e);l&&e.keyCode===h.A.TAB&&Y.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),C,null===z||void 0===z?void 0:z.wrapper),ref:$,onClick:ee,style:(0,c.A)((0,c.A)((0,c.A)({zIndex:o},b),null===W||void 0===W?void 0:W.wrapper),{},{display:K?null:"none"})},w),a.createElement(E,(0,r.A)({},e,{onMouseDown:function(){clearTimeout(Q.current),J.current=!0},onMouseUp:function(){Q.current=setTimeout((function(){J.current=!1}))},ref:Y,closable:P,ariaId:G,prefixCls:n,visible:l&&K,onClose:Z,onVisibleChanged:function(e){if(e)!function(){var e;(0,d.A)($.current,document.activeElement)||null===(e=Y.current)||void 0===e||e.focus()}();else{if(q(!1),I&&U.current&&A){try{U.current.focus({preventScroll:!0})}catch(t){}U.current=null}K&&(null===S||void 0===S||S())}null===_||void 0===_||_(e)},motionName:p(n,N,F)}))))}var _=function(e){var t=e.visible,n=e.getContainer,c=e.forceRender,l=e.destroyOnClose,u=void 0!==l&&l,d=e.afterClose,f=e.panelRef,h=a.useState(t),v=(0,i.A)(h,2),p=v[0],m=v[1],g=a.useMemo((function(){return{panel:f}}),[f]);return a.useEffect((function(){t&&m(!0)}),[t]),c||!u||p?a.createElement(s.Provider,{value:g},a.createElement(o.A,{open:t||c||p,autoDestroy:!1,getContainer:n,autoLock:t||p},a.createElement(x,(0,r.A)({},e,{destroyOnClose:u,afterClose:function(){null===d||void 0===d||d(),m(!1)}})))):null};_.displayName="Dialog";const S=_},45009:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(96790),i=n(46585),o=n(43009),a=n(68731),s=n(20142),c=n(38883),l=n.n(c),u=n(31381),d=n(92810),f=n(73442),h=n(83201),v=f.A.ESC,p=f.A.TAB;const m=(0,d.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=(0,d.useMemo)((function(){return"function"===typeof n?n():n}),[n]),a=(0,u.K4)(t,null===o||void 0===o?void 0:o.ref);return d.createElement(d.Fragment,null,r&&d.createElement("div",{className:"".concat(i,"-arrow")}),d.cloneElement(o,{ref:(0,u.f3)(o)?a:void 0}))}));var g={adjustX:1,adjustY:1},y=[0,0];const A={topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:g,offset:[0,4],targetOffset:y}};var b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function C(e,t){var n,c=e.arrow,f=void 0!==c&&c,g=e.prefixCls,y=void 0===g?"rc-dropdown":g,C=e.transitionName,w=e.animation,E=e.align,k=e.placement,x=void 0===k?"bottomLeft":k,_=e.placements,S=void 0===_?A:_,N=e.getPopupContainer,F=e.showAction,M=e.hideAction,P=e.overlayClassName,R=e.overlayStyle,I=e.visible,O=e.trigger,V=void 0===O?["hover"]:O,L=e.autoFocus,T=e.overlay,j=e.children,D=e.onVisibleChange,H=(0,a.A)(e,b),z=d.useState(),W=(0,o.A)(z,2),U=W[0],$=W[1],Y="visible"in e?I:U,X=d.useRef(null),B=d.useRef(null),K=d.useRef(null);d.useImperativeHandle(t,(function(){return X.current}));var q=function(e){$(e),null===D||void 0===D||D(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),s=function(){var e,i;t&&(null===(e=n.current)||void 0===e||null===(i=e.focus)||void 0===i||i.call(e),null===r||void 0===r||r(!1))},c=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus)&&(o.current.focus(),a.current=!0,!0)},l=function(e){switch(e.keyCode){case v:s();break;case p:var t=!1;a.current||(t=c()),t?e.preventDefault():s()}};d.useEffect((function(){return t?(window.addEventListener("keydown",l),i&&(0,h.A)(c,3),function(){window.removeEventListener("keydown",l),a.current=!1}):function(){a.current=!1}}),[t])}({visible:Y,triggerRef:K,onVisibleChange:q,autoFocus:L,overlayRef:B});var G=function(){return d.createElement(m,{ref:B,overlay:T,prefixCls:y,arrow:f})},Z=d.cloneElement(j,{className:l()(null===(n=j.props)||void 0===n?void 0:n.className,Y&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(y,"-open")}()),ref:(0,u.f3)(j)?(0,u.K4)(K,j.ref):void 0}),J=M;return J||-1===V.indexOf("contextMenu")||(J=["click"]),d.createElement(s.A,(0,r.A)({builtinPlacements:S},H,{prefixCls:y,ref:X,popupClassName:l()(P,(0,i.A)({},"".concat(y,"-show-arrow"),f)),popupStyle:R,action:V,showAction:F,hideAction:J,popupPlacement:x,popupAlign:E,popupTransitionName:C,popupAnimation:w,popupVisible:Y,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof T?G:G(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:N}),Z)}const w=d.forwardRef(C)},20100:(e,t,n)=>{"use strict";n.d(t,{D0:()=>K,_z:()=>C,Op:()=>ie,B8:()=>q,EF:()=>w,Ay:()=>fe,mN:()=>ne,FH:()=>ue});var r=n(92810),i=n(96790),o=n(68731),a=n(27077),s=n(90529),c=n(25501),l=n(77482),u=n(61971),d=n(19943),f=n(96767),h=n(10571),v=n(30057),p=n(46585),m=n(66408),g=n(99876),y=n(81180),A="RC_FORM_INTERNAL_HOOKS",b=function(){(0,y.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const C=r.createContext({getFieldValue:b,getFieldsValue:b,getFieldError:b,getFieldWarning:b,getFieldsError:b,isFieldsTouched:b,isFieldTouched:b,isFieldValidating:b,isFieldsValidating:b,resetFields:b,setFields:b,setFieldValue:b,setFieldsValue:b,validateFields:b,submit:b,getInternalHooks:function(){return b(),{dispatch:b,initEntityValue:b,registerField:b,useSubscribe:b,setInitialValues:b,destroyForm:b,setCallbacks:b,registerWatch:b,getFields:b,setValidateMessages:b,setPreserve:b,getInitialValue:b}}});const w=r.createContext(null);function E(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}var k=n(61212),x="'${name}' is not a valid ${type}",_={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:x,method:x,array:x,object:x,number:x,date:x,boolean:x,integer:x,float:x,regexp:x,email:x,url:x,hex:x},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}"}},S=n(48858),N=k.A;function F(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var M="CODE_LOGIC_ERROR";function P(e,t,n,r,i){return R.apply(this,arguments)}function R(){return R=(0,s.A)((0,a.A)().mark((function e(t,n,i,o,s){var u,d,f,h,v,m,g,y,A;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(u=(0,c.A)({},i)).ruleIndex,N.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(M)}}),f=null,u&&"array"===u.type&&u.defaultField&&(f=u.defaultField,delete u.defaultField),h=new N((0,p.A)({},t,[u])),v=(0,S.h)(_,o.validateMessages),h.messages(v),m=[],e.prev=10,e.next=13,Promise.resolve(h.validate((0,p.A)({},t,n),(0,c.A)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(m=e.t0.errors.map((function(e,t){var n=e.message,i=n===M?v.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(t)}):i})));case 18:if(m.length||!f){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return P("".concat(t,".").concat(n),e,f,o,s)})));case 21:return g=e.sent,e.abrupt("return",g.reduce((function(e,t){return[].concat((0,l.A)(e),(0,l.A)(t))}),[]));case 23:return y=(0,c.A)((0,c.A)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},s),A=m.map((function(e){return"string"===typeof e?F(e,y):e})),e.abrupt("return",A);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),R.apply(this,arguments)}function I(e,t,n,r,i,o){var l,u=e.join("."),d=n.map((function(e,t){var n=e.validator,r=(0,c.A)((0,c.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=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(){(0,y.Ay)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,t)}))}));i=o&&"function"===typeof o.then&&"function"===typeof o.catch,(0,y.Ay)(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,o=t.ruleIndex;return!!n===!!i?r-o:n?1:-1}));if(!0===i)l=new Promise(function(){var e=(0,s.A)((0,a.A)().mark((function e(n,i){var s,c,l;return(0,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,P(u,t,c,r,o);case 5:if(!(l=e.sent).length){e.next=9;break}return i([{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 P(u,t,e,r,o).then((function(t){return{errors:t,rule:e}}))}));l=(i?function(e){return V.apply(this,arguments)}(f):function(e){return O.apply(this,arguments)}(f)).then((function(e){return Promise.reject(e)}))}return l.catch((function(e){return e})),l}function O(){return(O=(0,s.A)((0,a.A)().mark((function e(t){return(0,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,(0,l.A)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(){return(V=(0,s.A)((0,a.A)().mark((function e(t){var n;return(0,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 L=n(38086),T=n(99366);function j(e){return E(e)}function D(e,t){var n={};return t.forEach((function(t){var r=(0,T.A)(e,t);n=(0,S.A)(n,t,r)})),n}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return z(t,e,n)}))}function z(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 W(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,L.A)(t.target)&&e in t.target?t.target[e]:t}function U(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat((0,l.A)(e.slice(0,n)),[i],(0,l.A)(e.slice(n,t)),(0,l.A)(e.slice(t+1,r))):o<0?[].concat((0,l.A)(e.slice(0,t)),(0,l.A)(e.slice(t+1,n+1)),[i],(0,l.A)(e.slice(n+1,r))):e}var $=["name"],Y=[];function X(e,t,n,r,i,o){return"function"===typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var B=function(e){(0,h.A)(n,e);var t=(0,v.A)(n);function n(e){var i;((0,u.A)(this,n),i=t.call(this,e),(0,p.A)((0,f.A)(i),"state",{resetCount:0}),(0,p.A)((0,f.A)(i),"cancelRegisterFunc",null),(0,p.A)((0,f.A)(i),"mounted",!1),(0,p.A)((0,f.A)(i),"touched",!1),(0,p.A)((0,f.A)(i),"dirty",!1),(0,p.A)((0,f.A)(i),"validatePromise",void 0),(0,p.A)((0,f.A)(i),"prevValidating",void 0),(0,p.A)((0,f.A)(i),"errors",Y),(0,p.A)((0,f.A)(i),"warnings",Y),(0,p.A)((0,f.A)(i),"cancelRegister",(function(){var e=i.props,t=e.preserve,n=e.isListField,r=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,j(r)),i.cancelRegisterFunc=null})),(0,p.A)((0,f.A)(i),"getNamePath",(function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,l.A)(r),(0,l.A)(t)):[]})),(0,p.A)((0,f.A)(i),"getRules",(function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(r):e}))})),(0,p.A)((0,f.A)(i),"refresh",(function(){i.mounted&&i.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,p.A)((0,f.A)(i),"metaCache",null),(0,p.A)((0,f.A)(i),"triggerMetaEvent",(function(e){var t=i.props.onMetaChange;if(t){var n=(0,c.A)((0,c.A)({},i.getMeta()),{},{destroy:e});(0,g.A)(i.metaCache,n)||t(n),i.metaCache=n}else i.metaCache=null})),(0,p.A)((0,f.A)(i),"onStoreChange",(function(e,t,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,c=r.onReset,l=n.store,u=i.getNamePath(),d=i.getValue(e),f=i.getValue(l),h=t&&H(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Y,i.warnings=Y,i.triggerMetaEvent()),n.type){case"reset":if(!t||h)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Y,i.warnings=Y,i.triggerMetaEvent(),null===c||void 0===c||c(),void i.refresh();break;case"remove":if(o)return void i.reRender();break;case"setField":var v=n.data;if(h)return"touched"in v&&(i.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(i.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(i.errors=v.errors||Y),"warnings"in v&&(i.warnings=v.warnings||Y),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in v&&H(t,u,!0))return void i.reRender();if(o&&!u.length&&X(o,e,l,d,f,n))return void i.reRender();break;case"dependenciesUpdate":if(s.map(j).some((function(e){return H(n.relatedFields,e)})))return void i.reRender();break;default:if(h||(!s.length||u.length||o)&&X(o,e,l,d,f,n))return void i.reRender()}!0===o&&i.reRender()})),(0,p.A)((0,f.A)(i),"validateRules",(function(e){var t=i.getNamePath(),n=i.getValue(),r=e||{},o=r.triggerName,c=r.validateOnly,u=void 0!==c&&c,d=Promise.resolve().then((0,s.A)((0,a.A)().mark((function r(){var s,c,u,f,h,v,p;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(s=i.props,c=s.validateFirst,u=void 0!==c&&c,f=s.messageVariables,h=s.validateDebounce,v=i.getRules(),o&&(v=v.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||E(t).includes(o)}))),!h||!o){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,h)}));case 8:if(i.validatePromise===d){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=I(t,n,v,e,u,f)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y;if(i.validatePromise===d){var t;i.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,i=e.errors,o=void 0===i?Y:i;t?r.push.apply(r,(0,l.A)(o)):n.push.apply(n,(0,l.A)(o))})),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return u||(i.validatePromise=d,i.dirty=!0,i.errors=Y,i.warnings=Y,i.triggerMetaEvent(),i.reRender()),d})),(0,p.A)((0,f.A)(i),"isFieldValidating",(function(){return!!i.validatePromise})),(0,p.A)((0,f.A)(i),"isFieldTouched",(function(){return i.touched})),(0,p.A)((0,f.A)(i),"isFieldDirty",(function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(A).getInitialValue)(i.getNamePath())})),(0,p.A)((0,f.A)(i),"getErrors",(function(){return i.errors})),(0,p.A)((0,f.A)(i),"getWarnings",(function(){return i.warnings})),(0,p.A)((0,f.A)(i),"isListField",(function(){return i.props.isListField})),(0,p.A)((0,f.A)(i),"isList",(function(){return i.props.isList})),(0,p.A)((0,f.A)(i),"isPreserve",(function(){return i.props.preserve})),(0,p.A)((0,f.A)(i),"getMeta",(function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}})),(0,p.A)((0,f.A)(i),"getOnlyChild",(function(e){if("function"===typeof e){var t=i.getMeta();return(0,c.A)((0,c.A)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.A)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,p.A)((0,f.A)(i),"getValue",(function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return(0,T.A)(e||t(!0),n)})),(0,p.A)((0,f.A)(i),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.trigger,r=t.validateTrigger,o=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=void 0!==r?r:u.validateTrigger,f=i.getNamePath(),h=u.getInternalHooks,v=u.getFieldsValue,m=h(A).dispatch,g=i.getValue(),y=l||function(e){return(0,p.A)({},s,e)},b=e[n],C=(0,c.A)((0,c.A)({},e),y(g));return C[n]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=o?o.apply(void 0,n):W.apply(void 0,[s].concat(n)),a&&(e=a(e,g,v(!0))),m({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},E(d||[]).forEach((function(e){var t=C[e];C[e]=function(){t&&t.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&m({type:"validateField",namePath:f,triggerName:e})}})),C})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(A).initEntityValue)((0,f.A)(i));return i}return(0,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)(A).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,i=this.getOnlyChild(n),o=i.child;return i.isFunction?e=o:r.isValidElement(o)?e=r.cloneElement(o,this.getControlled(o.props)):((0,y.Ay)(!o,"`children` of Field is not validate ReactElement."),e=o),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);(0,p.A)(B,"contextType",C),(0,p.A)(B,"defaultProps",{trigger:"onChange",valuePropName:"value"});const K=function(e){var t=e.name,n=(0,o.A)(e,$),a=r.useContext(C),s=r.useContext(w),c=void 0!==t?j(t):void 0,l="keep";return n.isListField||(l="_".concat((c||[]).join("_"))),r.createElement(B,(0,i.A)({key:l,name:c,isListField:!!s},n,{fieldContext:a}))};const q=function(e){var t=e.name,n=e.initialValue,i=e.children,o=e.rules,a=e.validateTrigger,s=e.isListField,u=r.useContext(C),d=r.useContext(w),f=r.useRef({keys:[],id:0}).current,h=r.useMemo((function(){var e=j(u.prefixName)||[];return[].concat((0,l.A)(e),(0,l.A)(j(t)))}),[u.prefixName,t]),v=r.useMemo((function(){return(0,c.A)((0,c.A)({},u),{},{prefixName:h})}),[u,h]),p=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 i?((0,y.Ay)(!1,"Form.List only accepts function as children."),null):r.createElement(w.Provider,{value:p},r.createElement(C.Provider,{value:v},r.createElement(K,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,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,o=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((0,l.A)(f.keys.slice(0,t)),[f.id],(0,l.A)(f.keys.slice(t))),o([].concat((0,l.A)(n.slice(0,t)),[e],(0,l.A)(n.slice(t))))):(f.keys=[].concat((0,l.A)(f.keys),[f.id]),o([].concat((0,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)})),o(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=U(f.keys,e,t),o(U(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),i(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)}))))};var G=n(43009);var Z="__@field_split__";function J(e){return e.map((function(e){return"".concat((0,L.A)(e),":").concat(e)})).join(Z)}const Q=function(){function e(){(0,u.A)(this,e),(0,p.A)(this,"kvs",new Map)}return(0,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(0,l.A)(this.kvs.entries()).map((function(t){var n=(0,G.A)(t,2),r=n[0],i=n[1],o=r.split(Z);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,G.A)(t,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{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}();var ee=["name"],te=(0,d.A)((function e(t){var n=this;(0,u.A)(this,e),(0,p.A)(this,"formHooked",!1),(0,p.A)(this,"forceRootUpdate",void 0),(0,p.A)(this,"subscribable",!0),(0,p.A)(this,"store",{}),(0,p.A)(this,"fieldEntities",[]),(0,p.A)(this,"initialValues",{}),(0,p.A)(this,"callbacks",{}),(0,p.A)(this,"validateMessages",null),(0,p.A)(this,"preserve",null),(0,p.A)(this,"lastValidatePromise",null),(0,p.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}})),(0,p.A)(this,"getInternalHooks",(function(e){return e===A?(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}):((0,y.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,p.A)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,p.A)(this,"prevWithoutPreserves",null),(0,p.A)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,i=(0,S.h)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;i=(0,S.A)(i,n,(0,T.A)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}})),(0,p.A)(this,"destroyForm",(function(){var e=new Q;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),(0,p.A)(this,"getInitialValue",(function(e){var t=(0,T.A)(n.initialValues,e);return e.length?(0,S.h)(t):t})),(0,p.A)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,p.A)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,p.A)(this,"setPreserve",(function(e){n.preserve=e})),(0,p.A)(this,"watchList",[]),(0,p.A)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,p.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)}))}})),(0,p.A)(this,"timeoutId",null),(0,p.A)(this,"warningUnhooked",(function(){0})),(0,p.A)(this,"updateStore",(function(e){n.store=e})),(0,p.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})),(0,p.A)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Q;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,p.A)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=j(e);return t.get(n)||{INVALIDATE_NAME_PATH:j(e)}}))})),(0,p.A)(this,"getFieldsValue",(function(e,t){var r,i,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,i=t):e&&"object"===(0,L.A)(e)&&(o=e.strict,i=e.filter),!0===r&&!i)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(o){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(i){var u="getMeta"in e?e.getMeta():null;i(u)&&s.push(l)}else s.push(l)})),D(n.store,s.map(j))})),(0,p.A)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=j(e);return(0,T.A)(n.store,t)})),(0,p.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:j(e[n]),errors:[],warnings:[]}}))})),(0,p.A)(this,"getFieldError",(function(e){n.warningUnhooked();var t=j(e);return n.getFieldsError([t])[0].errors})),(0,p.A)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=j(e);return n.getFieldsError([t])[0].warnings})),(0,p.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 i,o=t[0],a=t[1],s=!1;0===t.length?i=null:1===t.length?Array.isArray(o)?(i=o.map(j),s=!1):(i=null,s=o):(i=o.map(j),s=a);var c=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!i)return s?c.every(u):c.some(u);var d=new Q;i.forEach((function(e){d.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();i.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&d.update(n,(function(t){return[].concat((0,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)})),(0,p.A)(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),(0,p.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(j);return t.some((function(e){var t=e.getNamePath();return H(r,t)&&e.isFieldValidating()}))})),(0,p.A)(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),(0,p.A)(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Q,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}}));var i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=i).push.apply(n,(0,l.A)((0,l.A)(r).map((function(e){return e.entity}))))}))):i=r,i.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))(0,y.Ay)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=t.get(i);if(o&&o.size>1)(0,y.Ay)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);r.isListField()||e.skipExist&&void 0!==a||n.updateStore((0,S.A)(n.store,i,(0,l.A)(o)[0].value))}}}}))})),(0,p.A)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,S.h)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(j);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,S.A)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,p.A)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var i=e.name,a=(0,o.A)(e,ee),s=j(i);r.push(s),"value"in a&&n.updateStore((0,S.A)(n.store,s,a.value)),n.notifyObservers(t,[s],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,p.A)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),i=(0,c.A)((0,c.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))})),(0,p.A)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,T.A)(n.store,r)&&n.updateStore((0,S.A)(n.store,r,t))}})),(0,p.A)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),(0,p.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,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!z(e.getNamePath(),t)}))){var s=n.store;n.updateStore((0,S.A)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),(0,p.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 i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}})),(0,p.A)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var i=(0,c.A)((0,c.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()})),(0,p.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((0,l.A)(r))}),r})),(0,p.A)(this,"updateValue",(function(e,t){var r=j(e),i=n.store;n.updateStore((0,S.A)(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(D(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,l.A)(o)))})),(0,p.A)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,S.h)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,p.A)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),(0,p.A)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],i=new Q;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=j(t);i.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){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r})),(0,p.A)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Q;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var a=i.filter((function(t){var n=t.name;return H(e,n)}));a.length&&r(a,i)}})),(0,p.A)(this,"validateFields",(function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(j):[],s=[],u=String(Date.now()),d=new Set,f=i||{},h=f.recursive,v=f.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!v||e.isFieldDirty())){var t=e.getNamePath();if(d.add(t.join(u)),!o||H(a,t,h)){var r=e.validateRules((0,c.A)({validateMessages:(0,c.A)((0,c.A)({},_),n.validateMessages)},i));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,(0,l.A)(n)):r.push.apply(r,(0,l.A)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(s);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(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return d.has(e.join(u))}));return n.triggerOnFieldsChange(g),m})),(0,p.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}));const ne=function(e){var t=r.useRef(),n=r.useState({}),i=(0,G.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new te((function(){i({})}));t.current=o.getForm()}return[t.current]};var re=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ie=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,a=r.useContext(re),s=r.useRef({});return r.createElement(re.Provider,{value:(0,c.A)((0,c.A)({},a),{},{validateMessages:(0,c.A)((0,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){i&&i(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=(0,c.A)((0,c.A)({},s.current),{},(0,p.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.A)({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},o)};const oe=re;var ae=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const 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,v=void 0===h?"form":h,p=e.validateMessages,m=e.validateTrigger,g=void 0===m?"onChange":m,y=e.onValuesChange,b=e.onFieldsChange,E=e.onFinish,k=e.onFinishFailed,x=(0,o.A)(e,ae),_=r.useContext(oe),S=ne(u),N=(0,G.A)(S,1)[0],F=N.getInternalHooks(A),M=F.useSubscribe,P=F.setInitialValues,R=F.setCallbacks,I=F.setValidateMessages,O=F.setPreserve,V=F.destroyForm;r.useImperativeHandle(t,(function(){return N})),r.useEffect((function(){return _.registerForm(n,N),function(){_.unregisterForm(n)}}),[_,N,n]),I((0,c.A)((0,c.A)({},_.validateMessages),p)),R({onValuesChange:y,onFieldsChange:function(e){if(_.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];b.apply(void 0,[e].concat(r))}},onFinish:function(e){_.triggerFormFinish(n,e),E&&E(e)},onFinishFailed:k}),O(d);var T,j=r.useRef(null);P(a,!j.current),j.current||(j.current=!0),r.useEffect((function(){return V}),[]);var D="function"===typeof f;D?T=f(N.getFieldsValue(!0),N):T=f;M(!D);var H=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,L.A)(e)||"object"!==(0,L.A)(t))return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return(0,l.A)(i).every((function(n){var r=e[n],i=t[n];return"function"===typeof r&&"function"===typeof i||r===i}))})(H.current||[],s||[])||N.setFields(s||[]),H.current=s}),[s,N]);var z=r.useMemo((function(){return(0,c.A)((0,c.A)({},N),{},{validateTrigger:g})}),[N,g]),W=r.createElement(w.Provider,{value:null},r.createElement(C.Provider,{value:z},T));return!1===v?W:r.createElement(v,(0,i.A)({},x,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),N.submit()},onReset:function(e){var t;e.preventDefault(),N.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),W)};function ce(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var le=function(){};const ue=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],o=void 0===i?[]:i,a=t[1],s=void 0===a?{}:a,c=function(e){return e&&!!e._init}(s)?{form:s}:s,l=c.form,u=(0,r.useState)(),d=(0,G.A)(u,2),f=d[0],h=d[1],v=(0,r.useMemo)((function(){return ce(f)}),[f]),p=(0,r.useRef)(v);p.current=v;var m=(0,r.useContext)(C),g=l||m,y=g&&g._init,b=j(o),w=(0,r.useRef)(b);return w.current=b,le(b),(0,r.useEffect)((function(){if(y){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(A).registerWatch)((function(e,t){var n=(0,T.A)(c.preserve?t:e,w.current),r=ce(n);p.current!==r&&(p.current=r,h(n))})),n=(0,T.A)(c.preserve?e(!0):e(),w.current);return f!==n&&h(n),t}}),[y]),f};var de=r.forwardRef(se);de.FormProvider=ie,de.Field=K,de.List=q,de.useForm=ne,de.useWatch=ue;const fe=de},67018:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(96790),i=n(25501),o=n(46585),a=n(43009),s=n(38086),c=n(68731),l=n(38883),u=n.n(l),d=n(64048),f=n(42099),h=n(92810),v=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],p=h.createContext(null),m=0;function g(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=(0,h.useState)(n?"loading":"normal"),o=(0,a.A)(i,2),s=o[0],c=o[1],l=(0,h.useRef)(!1),u="error"===s;(0,h.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&c("error")})),function(){e=!1}}),[t]),(0,h.useEffect)((function(){n&&!l.current?c("loading"):u&&c("normal")}),[t]);var d=function(){c("normal")};return[function(e){l.current=!1,"loading"===s&&null!==e&&void 0!==e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,d())},u&&r?{src:r}:{onLoad:d,src:t},s]}var y=n(66870),A=n(62594),b=n(73442),C=n(81180);function w(e,t,n,r){var i=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,o.A)({},e,a);if(t<0&&i<r)return(0,o.A)({},e,-a)}else if(t<0||i>r)return(0,o.A)({},e,t<0?a:-a);return{}}var E=n(99876),k=n(83201),x={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};var _=n(57853),S=n(23516);const N=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,a=e.prefixCls,s=e.rootClassName,c=e.icons,l=e.countRender,d=e.showSwitch,f=e.showProgress,v=e.current,m=e.transform,g=e.count,y=e.scale,A=e.minScale,C=e.maxScale,w=e.closeIcon,E=e.onSwitchLeft,k=e.onSwitchRight,x=e.onClose,N=e.onZoomIn,F=e.onZoomOut,M=e.onRotateRight,P=e.onRotateLeft,R=e.onFlipX,I=e.onFlipY,O=e.toolbarRender,V=(0,h.useContext)(p),L=c.rotateLeft,T=c.rotateRight,j=c.zoomIn,D=c.zoomOut,H=c.close,z=c.left,W=c.right,U=c.flipX,$=c.flipY,Y="".concat(a,"-operations-operation");h.useEffect((function(){var e=function(e){e.keyCode===b.A.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var X=[{icon:$,onClick:I,type:"flipY"},{icon:U,onClick:R,type:"flipX"},{icon:L,onClick:P,type:"rotateLeft"},{icon:T,onClick:M,type:"rotateRight"},{icon:D,onClick:F,type:"zoomOut",disabled:y===A},{icon:j,onClick:N,type:"zoomIn",disabled:y===C}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,s=e.disabled;return h.createElement("div",{className:u()(Y,(t={},(0,o.A)(t,"".concat(a,"-operations-operation-").concat(i),!0),(0,o.A)(t,"".concat(a,"-operations-operation-disabled"),!!s),t)),onClick:r,key:i},n)})),B=h.createElement("div",{className:"".concat(a,"-operations")},X);return h.createElement(S.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return h.createElement(_.A,{open:!0,getContainer:null!==r&&void 0!==r?r:document.body},h.createElement("div",{className:u()("".concat(a,"-operations-wrapper"),t,s),style:n},null===w?null:h.createElement("button",{className:"".concat(a,"-close"),onClick:x},w||H),d&&h.createElement(h.Fragment,null,h.createElement("div",{className:u()("".concat(a,"-switch-left"),(0,o.A)({},"".concat(a,"-switch-left-disabled"),0===v)),onClick:E},z),h.createElement("div",{className:u()("".concat(a,"-switch-right"),(0,o.A)({},"".concat(a,"-switch-right-disabled"),v===g-1)),onClick:k},W)),h.createElement("div",{className:"".concat(a,"-footer")},f&&h.createElement("div",{className:"".concat(a,"-progress")},l?l(v+1,g):"".concat(v+1," / ").concat(g)),O?O(B,(0,i.A)({icons:{flipYIcon:X[0],flipXIcon:X[1],rotateLeftIcon:X[2],rotateRightIcon:X[3],zoomOutIcon:X[4],zoomInIcon:X[5]},actions:{onFlipY:I,onFlipX:R,onRotateLeft:P,onRotateRight:M,onZoomOut:F,onZoomIn:N},transform:m},V?{current:v,total:g}:{})):B)))}))};var F=["fallback","src","imgRef"],M=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],P=function(e){var t=e.fallback,n=e.src,i=e.imgRef,o=(0,c.A)(e,F),s=g({src:n,fallback:t}),l=(0,a.A)(s,2),u=l[0],d=l[1];return h.createElement("img",(0,r.A)({ref:function(e){i.current=e,u(e)}},o,d))};const R=function(e){var t=e.prefixCls,n=e.src,s=e.alt,l=e.fallback,f=e.movable,v=void 0===f||f,m=e.onClose,g=e.visible,_=e.icons,S=void 0===_?{}:_,F=e.rootClassName,R=e.closeIcon,I=e.getContainer,O=e.current,V=void 0===O?0:O,L=e.count,T=void 0===L?1:L,j=e.countRender,D=e.scaleStep,H=void 0===D?.5:D,z=e.minScale,W=void 0===z?1:z,U=e.maxScale,$=void 0===U?50:U,Y=e.transitionName,X=void 0===Y?"zoom":Y,B=e.maskTransitionName,K=void 0===B?"fade":B,q=e.imageRender,G=e.imgCommonProps,Z=e.toolbarRender,J=e.onTransform,Q=e.onChange,ee=(0,c.A)(e,M),te=(0,h.useRef)(),ne=(0,h.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),re=(0,h.useState)(!1),ie=(0,a.A)(re,2),oe=ie[0],ae=ie[1],se=(0,h.useContext)(p),ce=se&&T>1,le=se&&T>=1,ue=function(e,t,n,r){var o=(0,h.useRef)(null),s=(0,h.useRef)([]),c=(0,h.useState)(x),l=(0,a.A)(c,2),u=l[0],f=l[1],v=function(e,t){null===o.current&&(s.current=[],o.current=(0,k.A)((function(){f((function(e){var n=e;return s.current.forEach((function(e){n=(0,i.A)((0,i.A)({},n),e)})),o.current=null,null===r||void 0===r||r({transform:n,action:t}),n}))}))),s.current.push((0,i.A)((0,i.A)({},u),e))};return{transform:u,resetTransform:function(e){f(x),r&&!(0,E.A)(x,u)&&r({transform:x,action:e})},updateTransform:v,dispatchZoomChange:function(r,i,o,a){var s=e.current,c=s.width,l=s.height,f=s.offsetWidth,h=s.offsetHeight,p=s.offsetLeft,m=s.offsetTop,g=r,y=u.scale*r;y>n?(g=n/u.scale,y=n):y<t&&(g=t/u.scale,y=t);var A=null!==o&&void 0!==o?o:innerWidth/2,b=null!==a&&void 0!==a?a:innerHeight/2,C=g-1,w=C*c*.5,E=C*l*.5,k=C*(A-u.x-p),x=C*(b-u.y-m),_=u.x-(k-w),S=u.y-(x-E);if(r<1&&1===y){var N=f*y,F=h*y,M=(0,d.XV)(),P=M.width,R=M.height;N<=P&&F<=R&&(_=0,S=0)}v({x:_,y:S,scale:y},i)}}}(te,W,$,J),de=ue.transform,fe=ue.resetTransform,he=ue.updateTransform,ve=ue.dispatchZoomChange,pe=(0,h.useState)(!0),me=(0,a.A)(pe,2),ge=me[0],ye=me[1],Ae=de.rotate,be=de.scale,Ce=de.x,we=de.y,Ee=u()((0,o.A)({},"".concat(t,"-moving"),oe));(0,h.useEffect)((function(){ge||ye(!0)}),[ge]);var ke=function(e){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),V>0&&(ye(!1),fe("prev"),null===Q||void 0===Q||Q(V-1,V))},xe=function(e){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),V<T-1&&(ye(!1),fe("next"),null===Q||void 0===Q||Q(V+1,V))},_e=function(){if(g&&oe){ae(!1);var e=ne.current,t=e.transformX,n=e.transformY;if(!(Ce!==t&&we!==n))return;var r=te.current.offsetWidth*be,o=te.current.offsetHeight*be,a=te.current.getBoundingClientRect(),s=a.left,c=a.top,l=Ae%180!==0,u=function(e,t,n,r){var o=(0,d.XV)(),a=o.width,s=o.height,c=null;return e<=a&&t<=s?c={x:0,y:0}:(e>a||t>s)&&(c=(0,i.A)((0,i.A)({},w("x",n,e,a)),w("y",r,t,s))),c}(l?o:r,l?r:o,s,c);u&&he((0,i.A)({},u),"dragRebound")}},Se=function(e){g&&oe&&he({x:e.pageX-ne.current.deltaX,y:e.pageY-ne.current.deltaY},"move")},Ne=function(e){g&&ce&&(e.keyCode===b.A.LEFT?ke():e.keyCode===b.A.RIGHT&&xe())};(0,h.useEffect)((function(){var e,t,n,r;if(v){n=(0,A.A)(window,"mouseup",_e,!1),r=(0,A.A)(window,"mousemove",Se,!1);try{window.top!==window.self&&(e=(0,A.A)(window.top,"mouseup",_e,!1),t=(0,A.A)(window.top,"mousemove",Se,!1))}catch(i){(0,C.$e)(!1,"[rc-image] ".concat(i))}}return function(){var i,o,a,s;null===(i=n)||void 0===i||i.remove(),null===(o=r)||void 0===o||o.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=t)||void 0===s||s.remove()}}),[g,oe,Ce,we,Ae,v]),(0,h.useEffect)((function(){var e=(0,A.A)(window,"keydown",Ne,!1);return function(){e.remove()}}),[g,ce,V]);var Fe=h.createElement(P,(0,r.A)({},G,{width:e.width,height:e.height,imgRef:te,className:"".concat(t,"-img"),alt:s,style:{transform:"translate3d(".concat(de.x,"px, ").concat(de.y,"px, 0) scale3d(").concat(de.flipX?"-":"").concat(be,", ").concat(de.flipY?"-":"").concat(be,", 1) rotate(").concat(Ae,"deg)"),transitionDuration:!ge&&"0s"},fallback:l,src:n,onWheel:function(e){if(g&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*H;e.deltaY>0&&(n=1/n),ve(n,"wheel",e.clientX,e.clientY)}},onMouseDown:function(e){v&&0===e.button&&(e.preventDefault(),e.stopPropagation(),ne.current={deltaX:e.pageX-de.x,deltaY:e.pageY-de.y,transformX:de.x,transformY:de.y},ae(!0))},onDoubleClick:function(e){g&&(1!==be?he({x:0,y:0,scale:1},"doubleClick"):ve(1+H,"doubleClick",e.clientX,e.clientY))}}));return h.createElement(h.Fragment,null,h.createElement(y.A,(0,r.A)({transitionName:X,maskTransitionName:K,closable:!1,keyboard:!0,prefixCls:t,onClose:m,visible:g,classNames:{wrapper:Ee},rootClassName:F,getContainer:I},ee,{afterClose:function(){fe("close")}}),h.createElement("div",{className:"".concat(t,"-img-wrapper")},q?q(Fe,(0,i.A)({transform:de},se?{current:V}:{})):Fe)),h.createElement(N,{visible:g,transform:de,maskTransitionName:K,closeIcon:R,getContainer:I,prefixCls:t,rootClassName:F,icons:S,countRender:j,showSwitch:ce,showProgress:le,current:V,count:T,scale:be,minScale:W,maxScale:$,toolbarRender:Z,onSwitchLeft:ke,onSwitchRight:xe,onZoomIn:function(){ve(1+H,"zoomIn")},onZoomOut:function(){ve(1/(1+H),"zoomOut")},onRotateRight:function(){he({rotate:Ae+90},"rotateRight")},onRotateLeft:function(){he({rotate:Ae-90},"rotateLeft")},onFlipX:function(){he({flipX:!de.flipX},"flipX")},onFlipY:function(){he({flipY:!de.flipY},"flipY")},onClose:m}))};var I=n(77482);var O=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],V=["src"];var L=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],T=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],j=function(e){var t=e.src,n=e.alt,l=e.onPreviewClose,y=e.prefixCls,A=void 0===y?"rc-image":y,b=e.previewPrefixCls,C=void 0===b?"".concat(A,"-preview"):b,w=e.placeholder,E=e.fallback,k=e.width,x=e.height,_=e.style,S=e.preview,N=void 0===S||S,F=e.className,M=e.onClick,P=e.onError,I=e.wrapperClassName,O=e.wrapperStyle,V=e.rootClassName,j=(0,c.A)(e,L),D=w&&!0!==w,H="object"===(0,s.A)(N)?N:{},z=H.src,W=H.visible,U=void 0===W?void 0:W,$=H.onVisibleChange,Y=void 0===$?l:$,X=H.getContainer,B=void 0===X?void 0:X,K=H.mask,q=H.maskClassName,G=H.movable,Z=H.icons,J=H.scaleStep,Q=H.minScale,ee=H.maxScale,te=H.imageRender,ne=H.toolbarRender,re=(0,c.A)(H,T),ie=null!==z&&void 0!==z?z:t,oe=(0,f.A)(!!U,{value:U,onChange:Y}),ae=(0,a.A)(oe,2),se=ae[0],ce=ae[1],le=g({src:t,isCustomPlaceholder:D,fallback:E}),ue=(0,a.A)(le,3),de=ue[0],fe=ue[1],he=ue[2],ve=(0,h.useState)(null),pe=(0,a.A)(ve,2),me=pe[0],ge=pe[1],ye=(0,h.useContext)(p),Ae=!!N,be=u()(A,I,V,(0,o.A)({},"".concat(A,"-error"),"error"===he)),Ce=(0,h.useMemo)((function(){var t={};return v.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),v.map((function(t){return e[t]}))),we=function(e,t){var n=h.useState((function(){return String(m+=1)})),r=(0,a.A)(n,1)[0],i=h.useContext(p),o={data:t,canPreview:e};return h.useEffect((function(){if(i)return i.register(r,o)}),[]),h.useEffect((function(){i&&i.register(r,o)}),[e,t]),r}(Ae,(0,h.useMemo)((function(){return(0,i.A)((0,i.A)({},Ce),{},{src:ie})}),[ie,Ce]));return h.createElement(h.Fragment,null,h.createElement("div",(0,r.A)({},j,{className:be,onClick:Ae?function(e){var t=(0,d.A3)(e.target),n=t.left,r=t.top;ye?ye.onPreview(we,n,r):(ge({x:n,y:r}),ce(!0)),null===M||void 0===M||M(e)}:M,style:(0,i.A)({width:k,height:x},O)}),h.createElement("img",(0,r.A)({},Ce,{className:u()("".concat(A,"-img"),(0,o.A)({},"".concat(A,"-img-placeholder"),!0===w),F),style:(0,i.A)({height:x},_),ref:de},fe,{width:k,height:x,onError:P})),"loading"===he&&h.createElement("div",{"aria-hidden":"true",className:"".concat(A,"-placeholder")},w),K&&Ae&&h.createElement("div",{className:u()("".concat(A,"-mask"),q),style:{display:"none"===(null===_||void 0===_?void 0:_.display)?"none":void 0}},K)),!ye&&Ae&&h.createElement(R,(0,r.A)({"aria-hidden":!se,visible:se,prefixCls:C,onClose:function(){ce(!1),ge(null)},mousePosition:me,src:ie,alt:n,fallback:E,getContainer:B,icons:Z,movable:G,scaleStep:J,minScale:Q,maxScale:ee,rootClassName:V,imageRender:te,imgCommonProps:Ce,toolbarRender:ne},re)))};j.PreviewGroup=function(e){var t,n=e.previewPrefixCls,l=void 0===n?"rc-image-preview":n,u=e.children,d=e.icons,m=void 0===d?{}:d,g=e.items,y=e.preview,A=e.fallback,b="object"===(0,s.A)(y)?y:{},C=b.visible,w=b.onVisibleChange,E=b.getContainer,k=b.current,x=b.movable,_=b.minScale,S=b.maxScale,N=b.countRender,F=b.closeIcon,M=b.onChange,P=b.onTransform,L=b.toolbarRender,T=b.imageRender,j=(0,c.A)(b,O),D=function(e){var t=h.useState({}),n=(0,a.A)(t,2),r=n[0],s=n[1],c=h.useCallback((function(e,t){return s((function(n){return(0,i.A)((0,i.A)({},n),{},(0,o.A)({},e,t))})),function(){s((function(t){var n=(0,i.A)({},t);return delete n[e],n}))}}),[]);return[h.useMemo((function(){return e?e.map((function(e){if("string"===typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat((0,I.A)(v)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(r).reduce((function(e,t){var n=r[t],i=n.canPreview,o=n.data;return i&&e.push({data:o,id:t}),e}),[])}),[e,r]),c]}(g),H=(0,a.A)(D,2),z=H[0],W=H[1],U=(0,f.A)(0,{value:k}),$=(0,a.A)(U,2),Y=$[0],X=$[1],B=(0,h.useState)(!1),K=(0,a.A)(B,2),q=K[0],G=K[1],Z=(null===(t=z[Y])||void 0===t?void 0:t.data)||{},J=Z.src,Q=(0,c.A)(Z,V),ee=(0,f.A)(!!C,{value:C,onChange:function(e,t){null===w||void 0===w||w(e,t,Y)}}),te=(0,a.A)(ee,2),ne=te[0],re=te[1],ie=(0,h.useState)(null),oe=(0,a.A)(ie,2),ae=oe[0],se=oe[1],ce=h.useCallback((function(e,t,n){var r=z.findIndex((function(t){return t.id===e}));re(!0),se({x:t,y:n}),X(r<0?0:r),G(!0)}),[z]);h.useEffect((function(){ne?q||X(0):G(!1)}),[ne]);var le=h.useMemo((function(){return{register:W,onPreview:ce}}),[W,ce]);return h.createElement(p.Provider,{value:le},u,h.createElement(R,(0,r.A)({"aria-hidden":!ne,movable:x,visible:ne,prefixCls:l,closeIcon:F,onClose:function(){re(!1),se(null)},mousePosition:ae,imgCommonProps:Q,src:J,fallback:A,icons:m,minScale:_,maxScale:S,getContainer:E,current:Y,count:z.length,countRender:N,onTransform:P,toolbarRender:L,imageRender:T,onChange:function(e,t){X(e),null===M||void 0===M||M(e,t)}},j)))},j.displayName="Image";const D=j}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8689],{90854:(t,e,n)=>{n.d(e,{A6:()=>u,BF:()=>l,Cn:()=>d,Lv:()=>g,ST:()=>f,TM:()=>o,b6:()=>w,d1:()=>N,ih:()=>h,ir:()=>y,rq:()=>b,uE:()=>a,vq:()=>s,wz:()=>p});const r=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function o(t){return"<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"}const c=Object.create(null);function i(t,e){const n=c[t]||(c[t]=Object.create(null));let r=n[e];if("boolean"!==typeof r){const o=document.createElement(t)[e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((t,e)=>e.toUpperCase()))];r=n[e]="undefined"!==typeof o&&"boolean"!==typeof o}return r}function s(t){return t.nodeType===Node.ELEMENT_NODE}function a(t){return s(t)&&!t.ownerSVGElement}function u(t){return"IMG"===t.tagName}function l(t){return"FORM"===t.tagName}function f(t){return"STYLE"===t.tagName}function p(t){return t.nodeType===Node.DOCUMENT_NODE}function d(t){return t.nodeType===Node.COMMENT_NODE}const m=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function h(t){const e=w(t).matchAll(m);if(e)for(const n of e){const[,t,,e,r]=n;return{open:t,close:r,content:e}}}function y(t){return t.nodeType===Node.TEXT_NODE}function g(t){return"TABLE"===t.tagName}async function b(t,e=5e3){return"undefined"===typeof t.complete||t.complete?getComputedStyle(t):new Promise(((n,r)=>{setTimeout(n,e),t.onload=()=>n(getComputedStyle(t)),t.onerror=t=>console.log(t)}))}function w(t){if(s(t))return function(t){var e;const n=(null===(e=Object.getOwnPropertyDescriptor(t,"$$tagName"))||void 0===e?void 0:e.value)||t.tagName.toLowerCase(),o=function(t){const e=t.tagName.toLowerCase();let n="";for(const r of t.attributes){const t=r.name,o=r.value;n+=""!==o||"em"===t||i(e,t)?` ${t}="${o.replaceAll('"',"'")}"`:` ${t}`}return n}(t);return r.has(n.toLowerCase())?`<${n}${o}>`:f(t)?`<${n}${o}>${t.innerHTML}</${n}>`:`<${n}${o}>${function(t){let e="";for(const n of t.childNodes)e+=w(n);return e}(t)}</${n}>`}(t);if(p(t))return[...t.childNodes].map((t=>w(t))).join("");if(function(t){return t.nodeType===Node.DOCUMENT_TYPE_NODE}(t))return o(t);const e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function N(t,e){for(const c of t.childNodes)c.remove();let n=e.find((t=>function(t){return"HTML"===t.tagName}(t))),r=e.find((t=>function(t){return"BODY"===t.tagName}(t))),o=t;n||(n=t.createElement("html"),t.appendChild(n),o=n,r||(r=t.createElement("body"),n.appendChild(r),o=r));for(const c of e)o===t&&y(c)?o.appendChild(t.createComment(`%%%{{{${c.data}}}}%%%`)):o.appendChild(c)}},58689:(t,e,n)=>{n.d(e,{$l:()=>m,An:()=>N,Ay:()=>h,Mp:()=>S,PJ:()=>E,SR:()=>x,T5:()=>L,bc:()=>A,gZ:()=>O,pH:()=>d,qy:()=>T});var r=n(60564),o=n.n(r),c=n(44335),i=n(45053),s=n(90854),a=n(84007),u=n(71210),l=n(88896);const f=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,p="data:message/rfc822 eml,";async function d(t,e,n,r,o){var c={Subject:t,"X-Unsent":1,"Content-Type":"function"===typeof o?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(c).reduce(((t,e)=>`${t}${e}:${c[e]}\n`),p)}\n${"function"===typeof o?await C(e,n,r,o):(await(0,l.X)(Object.keys(o).map((async t=>`\n--boundary-string\nContent-Type: ${t}\n\n${await C(e,n,r,o[t])}\n\n\n`)))).join("")+"----boundary_string--"}`}function m(t){const e=t.replace("\\","/").split("/");return e[e.length-1]}function h(t){return m(t).split(".")}function y(t){return x(t).then((t=>O(t)))}function g(t,e){const n=document.createElement("iframe");n.style.position="absolute",n.style.left="-10000px",document.body.appendChild(n);const r=n.contentWindow.document;try{if(e){const[t,r]=e;void 0!==t&&n.setAttribute("width",String(t)),void 0!==r&&n.setAttribute("height",String(r))}const o=(0,a.$$)(t);(0,s.d1)(r,o)}catch(o){console.log(o)}return[n,()=>document.body.removeChild(n)]}function b(t){return t.replace("<script","<___script").replace("<\/script>","</___script>")}const w=new i.uI((t=>{t.escape("<script","<\/script>",(t=>b(t))).unescape("<___script","</___script>",(t=>t.replace("<___script","<script").replace("</___script>","<\/script>"))),t.escape("<script","/>",(t=>b(t))).unescape("<___script","/>",(t=>t.replace("<___script","<script"))),(0,i.Hk)(t)}));async function N(t,e,n){t=w.getEscapedText(t);const[r,o]=g(t,n);try{const n=r.contentDocument;try{await e(n,t)}catch(c){console.log(c)}const o=n.querySelectorAll("tbody");for(const t of o)t.replaceWith(...t.childNodes);n.querySelectorAll("em-replace").forEach((t=>{if(t.hasAttribute("text")&&(t.insertAdjacentHTML("beforebegin",t.getAttribute("text")),t.parentNode.removeChild(t)),t.hasAttribute("src")){const e=t.querySelector("img");e.setAttribute("src",t.getAttribute("src")),t.replaceWith(e)}})),t=(0,s.b6)(n)}catch(c){}finally{o()}return w.getUnescapedText(t)}function $(t,e,n){try{if("function"===typeof n){var r=[];return String.prototype.replace.call(t,e,(function(){return r.push(n.apply(void 0,arguments)),""})),(0,l.X)(r).then((function(n){return String.prototype.replace.call(t,e,(function(){return n.shift()}))}))}return Promise.resolve(String.prototype.replace.call(t,e,n))}catch(o){return Promise.reject(o)}}async function A(t,e,n,r){const o=new Map;return t=await N(t,(async(t,r)=>{await async function(t,e,n=new Map){const r=t=>{let r=n.get(t);return r||(r=e(t),n.set(t,r)),r};function o(t){return $(t,f,((t,e="",n)=>r(n).then((t=>`url(${e}${t}${e})`))))}async function c(t){const e=t.getAttribute("style");if(e){const n=await o(e);e!==n&&t.setAttribute("style",n)}}const i=document.createNodeIterator(t,NodeFilter.SHOW_ALL),u=[];for(;;){const t=i.nextNode();if(null===t)break;if((0,s.vq)(t)){u.push(c(t));const e=t.getAttribute("background");if(e&&u.push(r(e).then((n=>{t.setAttribute("background",n||e)}))),(0,s.A6)(t)){const e=t.getAttribute("src");e&&u.push(r(e).then((n=>t.src=n||e)))}if((0,s.ST)(t)){const e=t.sheet.cssRules,n=[];for(const t of e){const{cssText:e}=t;e&&n.push(o(e))}u.push((0,l.X)(n).then((n=>{n.some(((t,n)=>e[n].cssText!==t))&&(t.innerHTML=n.join("\n"))})))}}else if((0,s.Cn)(t)){const e=(0,s.ih)(t),n=null===e||void 0===e?void 0:e.content;n&&u.push($(n,/<v:fill.*>/gi,(async t=>{const e=await $(t,/src="([^"]*)"/gi,(async(t,e)=>`src="${await r(e)||e}"`));return $(e,/src='([^']*)'/gi,(async(t,e)=>`src='${await r(e)||e}'`))})).then((r=>{n!==r&&t.replaceWith((0,a.$$)(`${e.open}${r}${e.close}`)[0])})))}}return(0,l.X)(u)}(t,e,o),n&&n(t,r)}),r),t}const T=800;function _(t,e){let n=t.getAttribute("href");if(n&&t.protocol.startsWith("http")){const r=function(t){const e=new Map;let n=0;for(;n>=0;)if(n=t.indexOf("\x3c!--",n),n>=0){const r=t.indexOf("--\x3e",n);e.set(t.substring(n,r+3),(0,u.l)()),n=r}return e}(n);r.forEach(((t,e)=>{n=n.replaceAll(e,t)}));const o=n.indexOf("#");let c=o>=0?n.substring(0,o):n,i=o>=0?n.substring(o+1):"";const s=n.indexOf("?"),a=s>=0?c.substring(s+1):"";if(c=s>=0?c.substring(0,s):c,t.host!==document.location.host){const o=new Map(a.split("&").filter((t=>t.indexOf("=")>=0)).map((t=>t.split("=")))),s=Object.keys(e);let u=a;for(const t of s)e[t]&&!o.has(t)&&(u=u+(u?"&":"")+`${t}=${e[t]}`);u!==a&&(n=c+(u?`?${u}`:"")+(i?`#${i}`:""),r.forEach(((t,e)=>{n=n.replaceAll(t,e)})),t.setAttribute("href",n))}}}async function E(t,e,n,r){let[o,c]=e||[T];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=await N(t,(e=>{const o=e.querySelectorAll("a");for(const t of o)_(t,n);if(r)return r(e,t)}),[o,c])}async function C(t,e,n,r){let[o,c]=e||[T];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=(t=await N(t,(async e=>{const o=e.querySelectorAll("*");for(const t of o)if((0,s.A6)(t)){const e=await(0,s.rq)(t);if(e){const n=parseInt(e.height),r=parseInt(e.width);isNaN(n)||t.setAttribute("height",String(n)),isNaN(r)||t.getAttribute("width")||t.setAttribute("width",String(r))}}else if((0,s.Lv)(t)){const e=parseInt(getComputedStyle(t).width);isNaN(e)||"BODY"===t.parentElement.tagName||t.setAttribute("width",String(e))}else"TD"===t.tagName||"A"===t.tagName&&_(t,n);if(r)return r(e,t)}),[o,c])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const v="images";async function S(t,e,n,r=y,i){let[s,a]=e||[T];"number"===typeof s&&(s+="px"),"number"===typeof a&&(a+="px");const u=new(o()),l=u.folder(v),f=new Set,p=await A(t,(async t=>{const e=await r(t);let[n,o=c.getExtension(e.type)]=h(t),i=`${n}.${o}`,s=1;for(;f.has(i);)i=`${n}(${++s}).${o}`;return f.add(i),l.file(i,e),`${v}/${i}`}),((t,e)=>{const r=t.querySelectorAll("a");for(const o of r)_(o,n);if(i)return i(t,e)}),[s,a]);return u.file("index.html",new Blob([p],{type:"text/html;charset=utf-8"})),u.generateAsync({type:"blob"})}function x(t){const e=new Image;return e.crossOrigin="anonymous",new Promise(((n,r)=>{e.onload=()=>n(e),e.onerror=r,e.src=t}))}function O(t,e="image/png",n){const r=document.createElement("canvas");r.width=t.width,r.height=t.height;return r.getContext("2d").drawImage(t,0,0),new Promise(((t,o)=>r.toBlob((e=>e?t(e):o("blob is null")),e,n)))}function M(t){var e;const n=null===(e=t.ownerDocument)||void 0===e?void 0:e.body;if(n&&function(t,e){do{if(t===e)return!0;t=t.parentNode}while(t);return!1}(t,n)){if((0,s.vq)(t)){if("IMG"===t.tagName)return"";if("SPAN"===t.tagName&&t.classList.contains("preheader"))return""}if("#text"===t.nodeName)return t.textContent}return t.childNodes?[...t.childNodes].map(M).join(""):""}function L(t){const[e,n]=g(t);try{return M(e.contentDocument.body).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}finally{n()}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9878.cca6854e.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9878],{84362:(t,e,r)=>{"use strict";var n=r(91002)(),o=r(4545)("Object.prototype.toString"),c=function(t){return!(n&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},i=function(t){return!!c(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},a=function(){return c(arguments)}();c.isLegacyArguments=i,t.exports=a?c:i},41248:t=>{function e(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},35786:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(d){d!==r&&(o=null)}else o=null;var c=/^\s*class\b/,i=function(t){try{var e=n.call(t);return c.test(e)}catch(r){return!1}},a=function(t){try{return!i(t)&&(n.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,f="function"===typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),s=function(){return!1};if("object"===typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(s=function(t){if((l||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(r){}return!1})}t.exports=o?function(t){if(s(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{o(t,null,e)}catch(n){if(n!==r)return!1}return!i(t)&&a(t)}:function(t){if(s(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(f)return a(t);if(i(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},33962:(t,e,r)=>{"use strict";var n,o=Object.prototype.toString,c=Function.prototype.toString,i=/^\s*(?:function)?\*/,a=r(91002)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!==typeof t)return!1;if(i.test(c.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if("undefined"===typeof n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},2566:(t,e,r)=>{"use strict";var n=r(88317);t.exports=function(t){return!!n(t)}},99211:(t,e,r)=>{var n=r(9766),o=function(t){var e="",r=Object.keys(t);return r.forEach((function(o,c){var i=t[o];(function(t){return/[height|width]$/.test(t)})(o=n(o))&&"number"===typeof i&&(i+="px"),e+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",c<r.length-1&&(e+=" and ")})),e};t.exports=function(t){var e="";return"string"===typeof t?t:t instanceof Array?(t.forEach((function(r,n){e+=o(r),n<t.length-1&&(e+=", ")})),e):o(t)}},48409:(t,e,r)=>{!function(){var e=r(29981),n=r(80985).utf8,o=r(41248),c=r(80985).bin,i=function(t,r){t.constructor==String?t=r&&"binary"===r.encoding?c.stringToBytes(t):n.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var a=e.bytesToWords(t),u=8*t.length,f=1732584193,l=-271733879,s=-1732584194,p=271733878,d=0;d<a.length;d++)a[d]=16711935&(a[d]<<8|a[d]>>>24)|4278255360&(a[d]<<24|a[d]>>>8);a[u>>>5]|=128<<u%32,a[14+(u+64>>>9<<4)]=u;var y=i._ff,h=i._gg,g=i._hh,b=i._ii;for(d=0;d<a.length;d+=16){var v=f,m=l,A=s,x=p;f=y(f,l,s,p,a[d+0],7,-680876936),p=y(p,f,l,s,a[d+1],12,-389564586),s=y(s,p,f,l,a[d+2],17,606105819),l=y(l,s,p,f,a[d+3],22,-1044525330),f=y(f,l,s,p,a[d+4],7,-176418897),p=y(p,f,l,s,a[d+5],12,1200080426),s=y(s,p,f,l,a[d+6],17,-1473231341),l=y(l,s,p,f,a[d+7],22,-45705983),f=y(f,l,s,p,a[d+8],7,1770035416),p=y(p,f,l,s,a[d+9],12,-1958414417),s=y(s,p,f,l,a[d+10],17,-42063),l=y(l,s,p,f,a[d+11],22,-1990404162),f=y(f,l,s,p,a[d+12],7,1804603682),p=y(p,f,l,s,a[d+13],12,-40341101),s=y(s,p,f,l,a[d+14],17,-1502002290),f=h(f,l=y(l,s,p,f,a[d+15],22,1236535329),s,p,a[d+1],5,-165796510),p=h(p,f,l,s,a[d+6],9,-1069501632),s=h(s,p,f,l,a[d+11],14,643717713),l=h(l,s,p,f,a[d+0],20,-373897302),f=h(f,l,s,p,a[d+5],5,-701558691),p=h(p,f,l,s,a[d+10],9,38016083),s=h(s,p,f,l,a[d+15],14,-660478335),l=h(l,s,p,f,a[d+4],20,-405537848),f=h(f,l,s,p,a[d+9],5,568446438),p=h(p,f,l,s,a[d+14],9,-1019803690),s=h(s,p,f,l,a[d+3],14,-187363961),l=h(l,s,p,f,a[d+8],20,1163531501),f=h(f,l,s,p,a[d+13],5,-1444681467),p=h(p,f,l,s,a[d+2],9,-51403784),s=h(s,p,f,l,a[d+7],14,1735328473),f=g(f,l=h(l,s,p,f,a[d+12],20,-1926607734),s,p,a[d+5],4,-378558),p=g(p,f,l,s,a[d+8],11,-2022574463),s=g(s,p,f,l,a[d+11],16,1839030562),l=g(l,s,p,f,a[d+14],23,-35309556),f=g(f,l,s,p,a[d+1],4,-1530992060),p=g(p,f,l,s,a[d+4],11,1272893353),s=g(s,p,f,l,a[d+7],16,-155497632),l=g(l,s,p,f,a[d+10],23,-1094730640),f=g(f,l,s,p,a[d+13],4,681279174),p=g(p,f,l,s,a[d+0],11,-358537222),s=g(s,p,f,l,a[d+3],16,-722521979),l=g(l,s,p,f,a[d+6],23,76029189),f=g(f,l,s,p,a[d+9],4,-640364487),p=g(p,f,l,s,a[d+12],11,-421815835),s=g(s,p,f,l,a[d+15],16,530742520),f=b(f,l=g(l,s,p,f,a[d+2],23,-995338651),s,p,a[d+0],6,-198630844),p=b(p,f,l,s,a[d+7],10,1126891415),s=b(s,p,f,l,a[d+14],15,-1416354905),l=b(l,s,p,f,a[d+5],21,-57434055),f=b(f,l,s,p,a[d+12],6,1700485571),p=b(p,f,l,s,a[d+3],10,-1894986606),s=b(s,p,f,l,a[d+10],15,-1051523),l=b(l,s,p,f,a[d+1],21,-2054922799),f=b(f,l,s,p,a[d+8],6,1873313359),p=b(p,f,l,s,a[d+15],10,-30611744),s=b(s,p,f,l,a[d+6],15,-1560198380),l=b(l,s,p,f,a[d+13],21,1309151649),f=b(f,l,s,p,a[d+4],6,-145523070),p=b(p,f,l,s,a[d+11],10,-1120210379),s=b(s,p,f,l,a[d+2],15,718787259),l=b(l,s,p,f,a[d+9],21,-343485551),f=f+v>>>0,l=l+m>>>0,s=s+A>>>0,p=p+x>>>0}return e.endian([f,l,s,p])};i._ff=function(t,e,r,n,o,c,i){var a=t+(e&r|~e&n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._gg=function(t,e,r,n,o,c,i){var a=t+(e&n|r&~n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._hh=function(t,e,r,n,o,c,i){var a=t+(e^r^n)+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._ii=function(t,e,r,n,o,c,i){var a=t+(r^(e|~n))+(o>>>0)+i;return(a<<c|a>>>32-c)+e},i._blocksize=16,i._digestsize=16,t.exports=function(t,r){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var n=e.wordsToBytes(i(t,r));return r&&r.asBytes?n:r&&r.asString?c.bytesToString(n):e.bytesToHex(n)}}()},99694:t=>{t.exports=function(t,e){var r,n,o=0;function c(){var c,i,a=r,u=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(i=0;i<u;i++)if(a.args[i]!==arguments[i]){a=a.next;continue t}return a!==r&&(a===n&&(n=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(c=new Array(u),i=0;i<u;i++)c[i]=arguments[i];return a={args:c,val:t.apply(null,c)},r?(r.prev=a,a.next=r):n=a,o===e.maxSize?(n=n.prev).next=null:o++,r=a,a.val}return e=e||{},c.clear=function(){r=null,n=null,o=0},c}},62813:(t,e,r)=>{"use strict";r.d(e,{o4:()=>W});var n=r(33825).Buffer;const o="3.7.2",c=o,i="function"===typeof atob,a="function"===typeof btoa,u="function"===typeof n,f="function"===typeof TextDecoder?new TextDecoder:void 0,l="function"===typeof TextEncoder?new TextEncoder:void 0,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),p=(t=>{let e={};return t.forEach(((t,r)=>e[t]=r)),e})(s),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,y=String.fromCharCode.bind(String),h="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=(t=>t))=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),g=t=>t.replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_")),b=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),v=t=>{let e,r,n,o,c="";const i=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,c+=s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}return i?c.slice(0,i-3)+"===".substring(i):c},m=a?t=>btoa(t):u?t=>n.from(t,"binary").toString("base64"):v,A=u?t=>n.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(y.apply(null,t.subarray(r,r+4096)));return m(e.join(""))},x=(t,e=!1)=>e?g(A(t)):A(t),w=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?y(192|e>>>6)+y(128|63&e):y(224|e>>>12&15)+y(128|e>>>6&63)+y(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return y(240|e>>>18&7)+y(128|e>>>12&63)+y(128|e>>>6&63)+y(128|63&e)},j=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C=t=>t.replace(j,w),S=u?t=>n.from(t,"utf8").toString("base64"):l?t=>A(l.encode(t)):t=>m(C(t)),T=(t,e=!1)=>e?g(S(t)):S(t),O=t=>T(t,!0),E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,F=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return y(55296+(e>>>10))+y(56320+(1023&e));case 3:return y((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return y((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},R=t=>t.replace(E,F),B=t=>{if(t=t.replace(/\s+/g,""),!d.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,o="";for(let c=0;c<t.length;)e=p[t.charAt(c++)]<<18|p[t.charAt(c++)]<<12|(r=p[t.charAt(c++)])<<6|(n=p[t.charAt(c++)]),o+=64===r?y(e>>16&255):64===n?y(e>>16&255,e>>8&255):y(e>>16&255,e>>8&255,255&e);return o},U=i?t=>atob(b(t)):u?t=>n.from(t,"base64").toString("binary"):B,_=u?t=>h(n.from(t,"base64")):t=>h(U(t),(t=>t.charCodeAt(0))),I=t=>_(J(t)),D=u?t=>n.from(t,"base64").toString("utf8"):f?t=>f.decode(_(t)):t=>R(U(t)),J=t=>b(t.replace(/[-_]/g,(t=>"-"==t?"+":"/"))),k=t=>D(J(t)),z=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),L=function(){const t=(t,e)=>Object.defineProperty(String.prototype,t,z(e));t("fromBase64",(function(){return k(this)})),t("toBase64",(function(t){return T(this,t)})),t("toBase64URI",(function(){return T(this,!0)})),t("toBase64URL",(function(){return T(this,!0)})),t("toUint8Array",(function(){return I(this)}))},P=function(){const t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,z(e));t("toBase64",(function(t){return x(this,t)})),t("toBase64URI",(function(){return x(this,!0)})),t("toBase64URL",(function(){return x(this,!0)}))},W={version:o,VERSION:c,atob:U,atobPolyfill:B,btoa:m,btoaPolyfill:v,fromBase64:k,toBase64:T,encode:T,encodeURI:O,encodeURL:O,utob:C,btou:R,decode:k,isValid:t=>{if("string"!==typeof t)return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},fromUint8Array:x,toUint8Array:I,extendString:L,extendUint8Array:P,extendBuiltins:()=>{L(),P()}}},49211:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}r.d(e,{A:()=>c});var o=function t(e,r){function o(t,o,c){if("undefined"!==typeof document){"number"===typeof(c=n({},r,c)).expires&&(c.expires=new Date(Date.now()+864e5*c.expires)),c.expires&&(c.expires=c.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in c)c[a]&&(i+="; "+a,!0!==c[a]&&(i+="="+c[a].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+i}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var c=r[o].split("="),i=c.slice(1).join("=");try{var a=decodeURIComponent(c[0]);if(n[a]=e.read(i,a),t===a)break}catch(u){}}return t?n[t]:n}},remove:function(t,e){o(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const c=o},47271:(t,e,r)=>{"use strict";r.d(e,{iU:()=>l});new TextEncoder;const n=new TextDecoder;const o=t=>{let e=t;e instanceof Uint8Array&&(e=n.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r})(e)}catch(r){throw new TypeError("The input to be decoded is not correctly encoded.")}};class c extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){var e;super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(e=Error.captureStackTrace)||void 0===e||e.call(Error,this,this.constructor)}}class i extends c{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}Symbol.asyncIterator;const a=crypto;a.getRandomValues.bind(a);function u(t){if("object"!==typeof(e=t)||null===e||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;let r=t;for(;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}Symbol();const f=o;function l(t){if("string"!==typeof t)throw new i("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:r}=t.split(".");if(5===r)throw new i("Only JWTs using Compact JWS serialization can be decoded");if(3!==r)throw new i("Invalid JWT");if(!e)throw new i("JWTs must contain a payload");let o,c;try{o=f(e)}catch(a){throw new i("Failed to base64url decode the payload")}try{c=JSON.parse(n.decode(o))}catch(l){throw new i("Failed to parse the decoded payload as JSON")}if(!u(c))throw new i("Invalid JWT Claims Set");return c}}}]);
|
|
File without changes
|
|
File without changes
|
/package/static/js/{5974.b325ee33.chunk.js.LICENSE.txt → 5974.b84228a5.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|