| 1 |
(()=>{var e,t,n={6988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>X});var r=n(1413),o=n(9439),i=n(4942),a=n(4925),l=n(7363),u=n.n(l),s=n(4184),c=n.n(s);const f=(0,l.createContext)({});var d=n(1002);function p(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function h(e){return e<=1?"".concat(100*Number(e),"%"):e}function m(e){return 1===e.length?"0"+e:String(e)}function v(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y(e){return g(e)/255}function g(e){return parseInt(e,16)}var b={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function w(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,u=null,s=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(b[e])e=b[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=C.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=C.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=C.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=C.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=C.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=C.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=C.hex8.exec(e))return{r:g(n[1]),g:g(n[2]),b:g(n[3]),a:y(n[4]),format:t?"name":"hex8"};if(n=C.hex6.exec(e))return{r:g(n[1]),g:g(n[2]),b:g(n[3]),format:t?"name":"hex"};if(n=C.hex4.exec(e))return{r:g(n[1]+n[1]),g:g(n[2]+n[2]),b:g(n[3]+n[3]),a:y(n[4]+n[4]),format:t?"name":"hex8"};if(n=C.hex3.exec(e))return{r:g(n[1]+n[1]),g:g(n[2]+n[2]),b:g(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(k(e.r)&&k(e.g)&&k(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*p(t,255),g:255*p(n,255),b:255*p(r,255)},s=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):k(e.h)&&k(e.s)&&k(e.v)?(a=h(e.s),l=h(e.v),o=function(e,t,n){e=6*p(e,360),t=p(t,100),n=p(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6;return{r:255*[n,a,i,i,l,n][u],g:255*[l,n,n,a,i,i][u],b:255*[i,i,l,n,n,a][u]}}(e.h,a,l),s=!0,c="hsv"):k(e.h)&&k(e.s)&&k(e.l)&&(a=h(e.s),u=h(e.l),o=function(e,t,n){var r,o,i;if(e=p(e,360),t=p(t,100),n=p(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=v(l,a,e+1/3),o=v(l,a,e),i=v(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,u),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(i),{ok:s,format:e.format||c,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var E="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),x="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),O="[\\s|\\(]+(".concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")[,|\\s]+(").concat(E,")\\s*\\)?"),C={CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+x),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+x),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+x),hsva:new RegExp("hsva"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function k(e){return Boolean(C.CSS_UNIT.exec(String(e)))}var _=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function q(e){var t=function(e,t,n){e=p(e,255),t=p(t,255),n=p(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,u=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:u,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function S(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var o=[m(Math.round(e).toString(16)),m(Math.round(t).toString(16)),m(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}(t,n,r,!1))}function P(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function T(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function N(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function A(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function j(e){for(var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=[],r=w(e),o=5;o>0;o-=1){var i=q(r),a=S(w({h:T(i,o,!0),s:N(i,o,!0),v:A(i,o,!0)}));n.push(a)}n.push(S(r));for(var l=1;l<=4;l+=1){var u=q(r),s=S(w({h:T(u,l),s:N(u,l),v:A(u,l)}));n.push(s)}return"dark"===t.theme?_.map((function(e){var r=e.index,o=e.opacity;return S(P(w(t.backgroundColor||"#141414"),w(n[r]),100*o))})):n}var M={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},L={},R={};Object.keys(M).forEach((function(e){L[e]=j(M[e]),L[e].primary=L[e][5],R[e]=j(M[e],{theme:"dark",backgroundColor:"#141414"}),R[e].primary=R[e][5]}));L.red,L.volcano,L.gold,L.orange,L.yellow,L.lime,L.green,L.cyan,L.blue,L.geekblue,L.purple,L.magenta,L.grey;var D=n(334),Z=n(4958);function I(e){return"object"===(0,d.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,d.Z)(e.icon)||"function"==typeof e.icon)}function F(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t["class"];else t[n]=r;return t}),{})}function H(e,t,n){return n?u().createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},F(e.attrs)),n),(e.children||[]).map((function(n,r){return H(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):u().createElement(e.tag,(0,r.Z)({key:t},F(e.attrs)),(e.children||[]).map((function(n,r){return H(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function V(e){return j(e)[0]}function B(e){return e?Array.isArray(e)?e:[e]:[]}var U="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",z=["icon","className","onClick","style","primaryColor","secondaryColor"],Y={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var $=function(e){var t,n,o=e.icon,i=e.className,u=e.onClick,s=e.style,c=e.primaryColor,d=e.secondaryColor,p=(0,a.Z)(e,z),h=Y;if(c&&(h={primaryColor:c,secondaryColor:d||V(c)}),function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:U,t=(0,l.useContext)(f).csp;(0,l.useEffect)((function(){(0,Z.hq)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=I(o),n="icon should be icon definiton, but got ".concat(o),(0,D.ZP)(t,"[@ant-design/icons] ".concat(n)),!I(o))return null;var m=o;return m&&"function"==typeof m.icon&&(m=(0,r.Z)((0,r.Z)({},m),{},{icon:m.icon(h.primaryColor,h.secondaryColor)})),H(m.icon,"svg-".concat(m.name),(0,r.Z)({className:i,onClick:u,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};$.displayName="IconReact",$.getTwoToneColors=function(){return(0,r.Z)({},Y)},$.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Y.primaryColor=t,Y.secondaryColor=n||V(t),Y.calculated=!!n};const W=$;function G(e){var t=B(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return W.setTwoToneColors({primaryColor:r,secondaryColor:i})}var K=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];G("#1890ff");var Q=l.forwardRef((function(e,t){var n,u=e.className,s=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,m=e.onClick,v=e.twoToneColor,y=(0,a.Z)(e,K),g=l.useContext(f).prefixCls,b=void 0===g?"anticon":g,w=c()(b,(n={},(0,i.Z)(n,"".concat(b,"-").concat(s.name),!!s.name),(0,i.Z)(n,"".concat(b,"-spin"),!!d||"loading"===s.name),n),u),E=h;E===undefined&&m&&(E=-1);var x=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:undefined,O=B(v),C=(0,o.Z)(O,2),k=C[0],_=C[1];return l.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":s.name},y),{},{ref:t,tabIndex:E,onClick:m,className:w}),l.createElement(W,{icon:s,primaryColor:k,secondaryColor:_,style:x}))}));Q.displayName="AntdIcon",Q.getTwoToneColor=function(){var e=W.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Q.setTwoToneColor=G;const X=Q},2599:(e,t,n)=>{"use strict"; |
| 2 |
/** |
| 3 |
* @remix-run/router v1.0.3 |
| 4 |
* |
| 5 |
* Copyright (c) Remix Software Inc. |
| 6 |
* |
| 7 |
* This source code is licensed under the MIT license found in the |
| 8 |
* LICENSE.md file in the root directory of this source tree. |
| 9 |
* |
| 10 |
* @license MIT |
| 11 |
*/ |
| 12 |
function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o;n.d(t,{RQ:()=>T,WK:()=>Z,Zn:()=>C,Zq:()=>S,aU:()=>o,cP:()=>f,fp:()=>v,kG:()=>k,p7:()=>V,pC:()=>P,q_:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function a(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=f(e.location.hash.substr(1));return s("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:c(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function u(e){return{usr:e.state,key:e.key}}function s(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?f(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e){let t="undefined"!=typeof window&&"undefined"!=typeof window.location&&"null"!==window.location.origin?window.location.origin:"unknown://unknown",n="string"==typeof e?e:c(e);return new URL(n,t)}function p(e,t,n,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:f=!1}=a,p=l.history,h=o.Pop,m=null;function v(){h=o.Pop,m&&m({action:h,location:y.location})}let y={get action(){return h},get location(){return e(l,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(i,v),m=e,()=>{l.removeEventListener(i,v),m=null}},createHref:e=>t(l,e),encodeLocation(e){let t=d(c(e));return r({},e,{pathname:t.pathname,search:t.search,hash:t.hash})},push:function(e,t){h=o.Push;let r=s(y.location,e,t);n&&n(r,e);let i=u(r),a=y.createHref(r);try{p.pushState(i,"",a)}catch(c){l.location.assign(a)}f&&m&&m({action:h,location:y.location})},replace:function(e,t){h=o.Replace;let r=s(y.location,e,t);n&&n(r,e);let i=u(r),a=y.createHref(r);p.replaceState(i,"",a),f&&m&&m({action:h,location:y.location})},go:e=>p.go(e)};return y}var h;function m(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=new Set),e.map(((e,o)=>{let i=[...t,o],a="string"==typeof e.id?e.id:i.join("-");if(k(!0!==e.index||!e.children,"Cannot specify children on an index route"),k(!n.has(a),'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),n.add(a),function(e){return!0===e.index}(e)){return r({},e,{id:a})}return r({},e,{id:a,children:e.children?m(e.children,i,n):undefined})}))}function v(e,t,n){void 0===n&&(n="/");let r=C(("string"==typeof t?f(t):t).pathname||"/",n);if(null==r)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e)i=E(o[e],O(r));return i}function y(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,o)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(k(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let a=T([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(k(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),y(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:w(a,e.index),routesMeta:l})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));const g=/^:\w+$/,b=e=>"*"===e;function w(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=-2),t&&(r+=2),n.filter((e=>!b(e))).reduce(((e,t)=>e+(g.test(t)?3:""===t?1:10)),r)}function E(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",s=x({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!s)return null;Object.assign(r,s.params);let c=a.route;i.push({params:r,pathname:T([o,s.pathname]),pathnameBase:N(T([o,s.pathnameBase])),route:c}),"/"!==s.pathnameBase&&(o=T([o,s.pathnameBase]))}return i}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);_("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");return[new RegExp(o,t?undefined:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return _(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function O(e){try{return decodeURI(e)}catch(t){return _(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function C(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function k(e,t){if(!1===e||null==e)throw new Error(t)}function _(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function q(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function S(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function P(e,t,n,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=f(e):(i=r({},e),k(!i.pathname||!i.pathname.includes("?"),q("?","pathname","search",i)),k(!i.pathname||!i.pathname.includes("#"),q("#","pathname","hash",i)),k(!i.search||!i.search.includes("#"),q("#","search","hash",i)));let a,l=""===e||""===i.pathname,u=l?"/":i.pathname;if(o||null==u)a=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?f(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:A(r),hash:j(o)}}(i,a),c=u&&"/"!==u&&u.endsWith("/"),d=(l||"."===u)&&n.endsWith("/");return s.pathname.endsWith("/")||!c&&!d||(s.pathname+="/"),s}const T=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class M extends Error{}class L{constructor(e){let t;this.pendingKeys=new Set,this.subscriber=undefined,k(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,n)=>t=n)),this.controller=new AbortController;let n=()=>t(new M("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})}),{})}trackPromise(e,t){if(!(t instanceof Promise))return t;this.pendingKeys.add(e);let n=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(n,e,null,t)),(t=>this.onSettle(n,e,t)));return n["catch"]((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof M)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys["delete"](t),this.done&&this.unlistenAbortSignal();const o=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),o&&o(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),o&&o(!1),r)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach(((e,t)=>this.pendingKeys["delete"](t)));let e=this.subscriber;e&&e(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise((t=>{this.subscribe((r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)}))}))}return t}get done(){return 0===this.pendingKeys.size}get unwrappedData(){return k(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:R(r)})}),{})}}function R(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}class D{constructor(e,t,n){this.status=e,this.statusText=t||"",this.data=n}}function Z(e){return e instanceof D}const I={state:"idle",location:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},F={state:"idle",data:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},H=!("undefined"!=typeof window&&"undefined"!=typeof window.document&&"undefined"!=typeof window.document.createElement);function V(e){k(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=m(e.routes),n=null,i=new Set,a=null,l=null,u=null,c=!1,f=v(t,e.history.location,e.basename),d=null;if(null==f){let{matches:e,route:n,error:r}=oe(t);f=e,d={[n.id]:r}}let p,h,y=!f.some((e=>e.route.loader))||null!=e.hydrationData,g={historyAction:e.history.action,location:e.history.location,matches:f,initialized:y,navigation:I,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||d,fetchers:new Map},b=o.Pop,w=!1,E=!1,x=!1,O=[],C=[],_=new Map,q=0,S=-1,P=new Map,T=new Set,N=new Map,A=new Map;function j(e){g=r({},g,e),i.forEach((e=>e(g)))}function M(t,n){var i;j(r({},null!=g.actionData&&null!=g.navigation.formMethod&&"loading"===g.navigation.state&&(null==(i=g.navigation.formAction)?void 0:i.split("?")[0])===t.pathname?{}:{actionData:null},n,n.loaderData?{loaderData:te(g.loaderData,n.loaderData,n.matches||[])}:{},{historyAction:b,location:t,initialized:!0,navigation:I,revalidation:"idle",restoreScrollPosition:!g.navigation.formData&&le(t,n.matches||g.matches),preventScrollReset:w})),E||b===o.Pop||(b===o.Push?e.history.push(t,t.state):b===o.Replace&&e.history.replace(t,t.state)),b=o.Pop,w=!1,E=!1,x=!1,O=[],C=[]}async function L(n,i,c){h&&h.abort(),h=null,b=n,E=!0===(c&&c.startUninterruptedRevalidation),function(e,t){if(a&&l&&u){let n=t.map((e=>he(e,g.loaderData))),r=l(e,n)||e.key;a[r]=u()}}(g.location,g.matches),w=!0===(c&&c.preventScrollReset);let f=c&&c.overrideNavigation,d=v(t,i,e.basename);if(!d){let{matches:e,route:n,error:r}=oe(t);return re(),void M(i,{matches:e,loaderData:{},errors:{[n.id]:r}})}if(m=g.location,y=i,m.pathname===y.pathname&&m.search===y.search&&m.hash!==y.hash)return void M(i,{matches:d});var m,y;h=new AbortController;let P,L,R=Q(i,h.signal,c&&c.submission);if(c&&c.pendingError)L={[ne(d).route.id]:c.pendingError};else if(c&&c.submission){let e=await async function(e,t,n,i,a){let l;B(),j({navigation:r({state:"submitting",location:t},n)});let u=me(i,t);if(u.route.action){if(l=await K("action",e,u,i,p.basename),e.signal.aborted)return{shortCircuited:!0}}else l=ie(t);if(ce(l)){let e=r({state:"loading",location:s(g.location,l.location)},n);return await Z(l,e,a&&a.replace),{shortCircuited:!0}}if(se(l)){let e=ne(i,u.route.id);return!0!==(a&&a.replace)&&(b=o.Push),{pendingActionError:{[e.route.id]:l.error}}}if(ue(l))throw new Error("defer() is not supported in actions");return{pendingActionData:{[u.route.id]:l.data}}}(R,i,c.submission,d,{replace:c.replace});if(e.shortCircuited)return;P=e.pendingActionData,L=e.pendingActionError,f=r({state:"loading",location:i},c.submission)}let{shortCircuited:D,loaderData:I,errors:F}=await async function(e,t,n,o,i,a,l,u){let s=o;if(!s){s={state:"loading",location:t,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined}}let[c,f]=$(g,n,i,t,x,O,C,l,u,N);if(re((e=>!(n&&n.some((t=>t.route.id===e)))||c&&c.some((t=>t.route.id===e)))),0===c.length&&0===f.length)return M(t,{matches:n,loaderData:te(g.loaderData,{},n),errors:u||null,actionData:l||null}),{shortCircuited:!0};E||(f.forEach((e=>{let[t]=e,n=g.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};g.fetchers.set(t,r)})),j(r({navigation:s,actionData:l||g.actionData||null},f.length>0?{fetchers:new Map(g.fetchers)}:{})));S=++q,f.forEach((e=>{let[t]=e;return _.set(t,h)}));let{results:d,loaderResults:p,fetcherResults:m}=await V(g.matches,n,c,f,e);if(e.signal.aborted)return{shortCircuited:!0};f.forEach((e=>{let[t]=e;return _["delete"](t)}));let v=ae(d);if(v){let e=z(g,v);return await Z(v,e,a),{shortCircuited:!0}}let{loaderData:y,errors:b}=ee(g,n,c,p,u,f,m,A);A.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&A["delete"](t)}))})),function(){let e=[];for(let t of T){let n=g.fetchers.get(t);k(n,"Expected fetcher: "+t),"loading"===n.state&&(T["delete"](t),e.push(t))}X(e)}();let w=J(S);return r({loaderData:y,errors:b},w||f.length>0?{fetchers:new Map(g.fetchers)}:{})}(R,i,d,f,c&&c.submission,c&&c.replace,P,L);D||(h=null,M(i,{matches:d,loaderData:I,errors:F}))}function R(e){return g.fetchers.get(e)||F}async function Z(e,t,n){e.revalidate&&(x=!0),k(t.location,"Expected a location on the redirect navigation"),h=null;let r=!0===n?o.Replace:o.Push;await L(r,t.location,{overrideNavigation:t})}async function V(e,t,n,r,o){let i=await Promise.all([...n.map((e=>K("loader",o,e,t,p.basename))),...r.map((e=>{let[,t,n,r]=e;return K("loader",Q(t,o.signal),n,r,p.basename)}))]),a=i.slice(0,n.length),l=i.slice(n.length);return await Promise.all([fe(e,n,a,o.signal,!1,g.loaderData),fe(e,r.map((e=>{let[,,t]=e;return t})),l,o.signal,!0)]),{results:i,loaderResults:a,fetcherResults:l}}function B(){x=!0,O.push(...re()),N.forEach(((e,t)=>{_.has(t)&&(C.push(t),G(t))}))}function Y(e,t,n){let r=ne(g.matches,t);W(e),j({errors:{[r.route.id]:n},fetchers:new Map(g.fetchers)})}function W(e){_.has(e)&&G(e),N["delete"](e),P["delete"](e),T["delete"](e),g.fetchers["delete"](e)}function G(e){let t=_.get(e);k(t,"Expected fetch controller: "+e),t.abort(),_["delete"](e)}function X(e){for(let t of e){let e={state:"idle",data:R(t).data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};g.fetchers.set(t,e)}}function J(e){let t=[];for(let[n,r]of P)if(r<e){let e=g.fetchers.get(n);k(e,"Expected fetcher: "+n),"loading"===e.state&&(G(n),P["delete"](n),t.push(n))}return X(t),t.length>0}function re(e){let t=[];return A.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),A["delete"](r))})),t}function le(e,t){if(a&&l&&u){let n=t.map((e=>he(e,g.loaderData))),r=l(e,n)||e.key,o=a[r];if("number"==typeof o)return o}return null}return p={get basename(){return e.basename},get state(){return g},get routes(){return t},initialize:function(){return n=e.history.listen((e=>{let{action:t,location:n}=e;return L(t,n)})),g.initialized||L(o.Pop,g.location),p},subscribe:function(e){return i.add(e),()=>i["delete"](e)},enableScrollRestoration:function(e,t,n){if(a=e,u=t,l=n||(e=>e.key),!c&&g.navigation===I){c=!0;let e=le(g.location,g.matches);null!=e&&j({restoreScrollPosition:e})}return()=>{a=null,u=null,l=null}},navigate:async function(t,n){if("number"==typeof t)return void e.history.go(t);let{path:r,submission:i,error:a}=U(t,n),l=s(g.location,r,n&&n.state);l=e.history.encodeLocation(l);let u=!0===(n&&n.replace)||null!=i?o.Replace:o.Push,c=n&&"preventScrollReset"in n?!0===n.preventScrollReset:undefined;return await L(u,l,{submission:i,pendingError:a,preventScrollReset:c,replace:n&&n.replace})},fetch:function(n,o,i,a){if(H)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");_.has(n)&&G(n);let l=v(t,i,e.basename);if(!l)return void Y(n,o,new D(404,"Not Found",null));let{path:u,submission:c}=U(i,a,!0),f=me(l,u);c?async function(n,o,i,a,l,u){if(B(),N["delete"](n),!a.route.action){let{error:e}=ie(i);return void Y(n,o,e)}let c=g.fetchers.get(n),f=r({state:"submitting"},u,{data:c&&c.data});g.fetchers.set(n,f),j({fetchers:new Map(g.fetchers)});let d=new AbortController,m=Q(i,d.signal,u);_.set(n,d);let y=await K("action",m,a,l,p.basename);if(m.signal.aborted)return void(_.get(n)===d&&_["delete"](n));if(ce(y)){_["delete"](n),T.add(n);let e=r({state:"loading"},u,{data:undefined});g.fetchers.set(n,e),j({fetchers:new Map(g.fetchers)});let t=r({state:"loading",location:s(g.location,y.location)},u);return void await Z(y,t)}if(se(y))return void Y(n,o,y.error);ue(y)&&k(!1,"defer() is not supported in actions");let w=g.navigation.location||g.location,E=Q(w,d.signal),L="idle"!==g.navigation.state?v(t,g.navigation.location,e.basename):g.matches;k(L,"Didn't find any matches after fetcher action");let R=++q;P.set(n,R);let D=r({state:"loading",data:y.data},u);g.fetchers.set(n,D);let[I,F]=$(g,L,u,w,x,O,C,{[a.route.id]:y.data},undefined,N);F.filter((e=>{let[t]=e;return t!==n})).forEach((e=>{let[t]=e,n=g.fetchers.get(t),r={state:"loading",data:n&&n.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};g.fetchers.set(t,r),_.set(t,d)})),j({fetchers:new Map(g.fetchers)});let{results:H,loaderResults:U,fetcherResults:W}=await V(g.matches,L,I,F,E);if(d.signal.aborted)return;P["delete"](n),_["delete"](n),F.forEach((e=>{let[t]=e;return _["delete"](t)}));let G=ae(H);if(G){let e=z(g,G);return void await Z(G,e)}let{loaderData:X,errors:ne}=ee(g,g.matches,I,U,undefined,F,W,A),re={state:"idle",data:y.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};g.fetchers.set(n,re);let oe=J(R);"loading"===g.navigation.state&&R>S?(k(b,"Expected pending action"),h&&h.abort(),M(g.navigation.location,{matches:L,loaderData:X,errors:ne,fetchers:new Map(g.fetchers)})):(j(r({errors:ne,loaderData:te(g.loaderData,X,L)},oe?{fetchers:new Map(g.fetchers)}:{})),x=!1)}(n,o,u,f,l,c):(N.set(n,[u,f,l]),async function(e,t,n,r,o){let i=g.fetchers.get(e),a={state:"loading",formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,data:i&&i.data};g.fetchers.set(e,a),j({fetchers:new Map(g.fetchers)});let l=new AbortController,u=Q(n,l.signal);_.set(e,l);let s=await K("loader",u,r,o,p.basename);ue(s)&&(s=await de(s,u.signal,!0)||s);_.get(e)===l&&_["delete"](e);if(u.signal.aborted)return;if(ce(s)){let e=z(g,s);return void await Z(s,e)}if(se(s)){let n=ne(g.matches,t);return g.fetchers["delete"](e),void j({fetchers:new Map(g.fetchers),errors:{[n.route.id]:s.error}})}k(!ue(s),"Unhandled fetcher deferred data");let c={state:"idle",data:s.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};g.fetchers.set(e,c),j({fetchers:new Map(g.fetchers)})}(n,o,u,f,l))},revalidate:function(){B(),j({revalidation:"loading"}),"submitting"!==g.navigation.state&&("idle"!==g.navigation.state?L(b||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation}):L(g.historyAction,g.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),getFetcher:R,deleteFetcher:W,dispose:function(){n&&n(),i.clear(),h&&h.abort(),g.fetchers.forEach(((e,t)=>W(t)))},_internalFetchControllers:_,_internalActiveDeferreds:A},p}const B=new Set(["POST","PUT","PATCH","DELETE"]);new Set(["GET","HEAD",...B]);function U(e,t,n){void 0===n&&(n=!1);let r="string"==typeof e?e:c(e);if(!t||!("formMethod"in t)&&!("formData"in t))return{path:r};if(null!=t.formMethod&&"get"!==t.formMethod)return{path:r,submission:{formMethod:t.formMethod,formAction:le(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData}};if(!t.formData)return{path:r};let o=f(r);try{let e=X(t.formData);n&&o.search&&pe(o.search)&&e.append("index",""),o.search="?"+e}catch(i){return{path:r,error:new D(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:c(o)}}function z(e,t){let{formMethod:n,formAction:r,formEncType:o,formData:i}=e.navigation;return{state:"loading",location:s(e.location,t.location),formMethod:n||undefined,formAction:r||undefined,formEncType:o||undefined,formData:i||undefined}}function Y(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}function $(e,t,n,r,o,i,a,l,u,s){let c=u?Object.values(u)[0]:l?Object.values(l)[0]:null,f=Y(t,u?Object.keys(u)[0]:undefined).filter(((t,a)=>null!=t.route.loader&&(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===undefined;return r||o}(e.loaderData,e.matches[a],t)||i.some((e=>e===t.route.id))||G(e.location,e.matches[a],n,r,t,o,c)))),d=[];return s&&s.forEach(((e,t)=>{let[r,i,l]=e;if(a.includes(t))d.push([t,r,i,l]);else if(o){G(r,i,n,r,i,o,c)&&d.push([t,r,i,l])}})),[f,d]}function W(e,t){let n=e.route.path;return e.pathname!==t.pathname||n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function G(e,t,n,o,i,a,l){let u=d(e),s=t.params,c=d(o),f=i.params,p=W(t,i)||u.toString()===c.toString()||u.search!==c.search||a;if(i.route.shouldRevalidate){let e=i.route.shouldRevalidate(r({currentUrl:u,currentParams:s,nextUrl:c,nextParams:f},n,{actionResult:l,defaultShouldRevalidate:p}));if("boolean"==typeof e)return e}return p}async function K(e,t,n,r,o,i,a){let l,u,s;void 0===i&&(i=!1),void 0===a&&(a=!1);let f=new Promise(((e,t)=>s=t)),p=()=>s();t.signal.addEventListener("abort",p);try{let r=n.route[e];k(r,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),u=await Promise.race([r({request:t,params:n.params}),f])}catch(m){l=h.error,u=m}finally{t.signal.removeEventListener("abort",p)}if(u instanceof Response){let e,s=u.status;if(s>=300&&s<=399){let e=u.headers.get("Location");k(e,"Redirects returned/thrown from loaders/actions must have a Location header");let a=P(e,S(r.slice(0,r.indexOf(n)+1)).map((e=>e.pathnameBase)),d(t.url).pathname);if(k(c(a),"Unable to resolve redirect location: "+u.headers.get("Location")),o){let e=a.pathname;a.pathname="/"===e?o:T([o,e])}if(e=c(a),i)throw u.headers.set("Location",e),u;return{type:h.redirect,status:s,location:e,revalidate:null!==u.headers.get("X-Remix-Revalidate")}}if(a)throw{type:l||h.data,response:u};let f=u.headers.get("Content-Type");return e=f&&f.startsWith("application/json")?await u.json():await u.text(),l===h.error?{type:l,error:new D(s,u.statusText,e),headers:u.headers}:{type:h.data,data:e,statusCode:u.status,headers:u.headers}}return l===h.error?{type:l,error:u}:u instanceof L?{type:h.deferred,deferredData:u}:{type:h.data,data:u}}function Q(e,t,n){let r=d(le(e)).toString(),o={signal:t};if(n){let{formMethod:e,formEncType:t,formData:r}=n;o.method=e.toUpperCase(),o.body="application/x-www-form-urlencoded"===t?X(r):r}return new Request(r,o)}function X(e){let t=new URLSearchParams;for(let[n,r]of e.entries())k("string"==typeof r,'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),t.append(n,r);return t}function J(e,t,n,r,o){let i,a={},l=null,u=!1,s={};return n.forEach(((n,c)=>{let f=t[c].route.id;if(k(!ce(n),"Cannot handle redirect results in processLoaderData"),se(n)){let t=ne(e,f),o=n.error;r&&(o=Object.values(r)[0],r=undefined),l=Object.assign(l||{},{[t.route.id]:o}),u||(u=!0,i=Z(n.error)?n.error.status:500),n.headers&&(s[f]=n.headers)}else ue(n)?(o&&o.set(f,n.deferredData),a[f]=n.deferredData.data):(a[f]=n.data,null==n.statusCode||200===n.statusCode||u||(i=n.statusCode),n.headers&&(s[f]=n.headers))})),r&&(l=r),{loaderData:a,errors:l,statusCode:i||200,loaderHeaders:s}}function ee(e,t,n,o,i,a,l,u){let{loaderData:s,errors:c}=J(t,n,o,i,u);for(let t=0;t<a.length;t++){let[n,,o]=a[t];k(l!==undefined&&l[t]!==undefined,"Did not find corresponding fetcher result");let i=l[t];if(se(i)){let t=ne(e.matches,o.route.id);c&&c[t.route.id]||(c=r({},c,{[t.route.id]:i.error})),e.fetchers["delete"](n)}else{if(ce(i))throw new Error("Unhandled fetcher revalidation redirect");if(ue(i))throw new Error("Unhandled fetcher deferred data");{let t={state:"idle",data:i.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};e.fetchers.set(n,t)}}}return{loaderData:s,errors:c}}function te(e,t,n){let o=r({},t);return n.forEach((n=>{let r=n.route.id;t[r]===undefined&&e[r]!==undefined&&(o[r]=e[r])})),o}function ne(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function re(e,t,n){let r=e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-"+t+"-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r,error:new D(t,n,null)}}function oe(e){return re(e,404,"Not Found")}function ie(e){let t="string"==typeof e?e:c(e);return console.warn("You're trying to submit to a route that does not have an action. To fix this, please add an `action` function to the route for ["+t+"]"),{type:h.error,error:new D(405,"Method Not Allowed","")}}function ae(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ce(n))return n}}function le(e){return c(r({},"string"==typeof e?f(e):e,{hash:""}))}function ue(e){return e.type===h.deferred}function se(e){return e.type===h.error}function ce(e){return(e&&e.type)===h.redirect}async function fe(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let l=n[a],u=t[a],s=e.find((e=>e.route.id===u.route.id)),c=null!=s&&!W(s,u)&&(i&&i[u.route.id])!==undefined;ue(l)&&(o||c)&&await de(l,r,o).then((e=>{e&&(n[a]=e||n[a])}))}}async function de(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(r){return{type:h.error,error:r}}return{type:h.data,data:e.deferredData.data}}}function pe(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function he(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function me(e,t){let n="string"==typeof t?f(t).search:t.search;if(e[e.length-1].route.index&&pe(n||""))return e[e.length-1];let r=S(e);return r[r.length-1]}},6159:(e,t,n)=>{"use strict";n.d(t,{M2:()=>i,Tm:()=>a});var r=n(7363),o=r.isValidElement;function i(e){return e&&o(e)&&e.type===r.Fragment}function a(e,t){return function(e,t,n){return o(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},3355:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},1790:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(5671),o=n(3144),i=n(7326),a=n(9340),l=n(8557),u=n(4958),s=n(2550),c=n(7363),f=n(3124),d=n(5164),p=0,h={};function m(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,n=p++,r=t;function o(){(r-=1)<=0?(e(),delete h[n]):h[n]=(0,d.Z)(o)}return h[n]=(0,d.Z)(o),n}m.cancel=function(e){e!==undefined&&(d.Z.cancel(h[e]),delete h[e])},m.ids=h;var v,y=n(6159);function g(e){return!e||null===e.offsetParent||e.hidden}function b(e){return e instanceof Document?e.body:Array.from(e.childNodes).find((function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}))}function w(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var E=function(e){(0,a.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).containerRef=c.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o,a=e.props,l=a.insertExtraNode;if(!a.disabled&&t&&!g(t)&&!t.className.includes("-leave")){e.extraNode=document.createElement("div");var s=(0,i.Z)(e).extraNode,c=e.context.getPrefixCls;s.className="".concat(c(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#fff"!==n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&"rgba(255, 255, 255, 1)"!==n&&w(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var d=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,p=null!==(o=b(d))&&void 0!==o?o:d;v=(0,u.hq)("\n [".concat(c(""),"-click-animating-without-extra-node='true']::after, .").concat(c(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}l&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!t.className.includes("disabled")){var n=function(n){if("INPUT"!==n.target.tagName&&!g(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),m.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=m((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!c.isValidElement(r))return r;var o=e.containerRef;return(0,s.Yr)(r)&&(o=(0,s.sQ)(r.ref,e.containerRef)),(0,y.Tm)(r,{ref:o})},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),v&&(v.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return c.createElement(f.C,null,this.renderWave)}}]),n}(c.Component);E.contextType=f.E_;const x=E},7403:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Z});var r=n(7462),o=n(4942),i=n(9439),a=n(1002),l=n(4184),u=n.n(l),s=n(8423),c=n(7363),f=n.n(c),d=n(3124),p=n(9098),h=n(7647),m=n(4173),v=n(6159),y=n(3355),g=n(1790),b=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},w=c.createContext(undefined);const E=function(e){var t,n=c.useContext(d.E_),i=n.getPrefixCls,a=n.direction,l=e.prefixCls,s=e.size,f=e.className,p=b(e,["prefixCls","size","className"]),h=i("btn-group",l),m="";switch(s){case"large":m="lg";break;case"small":m="sm";case"middle":case undefined:}var v=u()(h,(t={},(0,o.Z)(t,"".concat(h,"-").concat(m),m),(0,o.Z)(t,"".concat(h,"-rtl"),"rtl"===a),t),f);return c.createElement(w.Provider,{value:s},c.createElement("div",(0,r.Z)({},p,{className:v})))};var x=n(1413);const O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var C=n(6988),k=function(e,t){return c.createElement(C.Z,(0,x.Z)((0,x.Z)({},e),{},{ref:t,icon:O}))};k.displayName="LoadingOutlined";const _=c.forwardRef(k);var q=n(3441),S=function(){return{width:0,opacity:0,transform:"scale(0)"}},P=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}};const T=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?f().createElement("span",{className:"".concat(t,"-loading-icon")},f().createElement(_,null)):f().createElement(q.Z,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:S,onAppearActive:P,onEnterStart:S,onEnterActive:P,onLeaveStart:P,onLeaveActive:S},(function(e,n){var r=e.className,o=e.style;return f().createElement("span",{className:"".concat(t,"-loading-icon"),style:o,ref:n},f().createElement(_,{className:r}))}))};var N=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},A=/^[\u4e00-\u9fa5]{2}$/,j=A.test.bind(A);function M(e){return"text"===e||"link"===e}function L(e,t){var n=!1,r=[];return c.Children.forEach(e,(function(e){var t=(0,a.Z)(e),o="string"===t||"number"===t;if(n&&o){var i=r.length-1,l=r[i];r[i]="".concat(l).concat(e)}else r.push(e);n=o})),c.Children.map(r,(function(e){return function(e,t){if(null!==e&&e!==undefined){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&j(e.props.children)?(0,v.Tm)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?j(e)?c.createElement("span",null,e.split("").join(n)):c.createElement("span",null,e):(0,v.M2)(e)?c.createElement("span",null,e):e}}(e,t)}))}(0,y.b)("default","primary","ghost","dashed","link","text"),(0,y.b)("default","circle","round"),(0,y.b)("submit","button","reset");var R=function(e,t){var n,a=e.loading,l=void 0!==a&&a,f=e.prefixCls,v=e.type,y=void 0===v?"default":v,b=e.danger,E=e.shape,x=void 0===E?"default":E,O=e.size,C=e.disabled,k=e.className,_=e.children,q=e.icon,S=e.ghost,P=void 0!==S&&S,A=e.block,R=void 0!==A&&A,D=e.htmlType,Z=void 0===D?"button":D,I=N(e,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),F=c.useContext(h.Z),H=c.useContext(p.Z),V=null!=C?C:H,B=c.useContext(w),U=c.useState(!!l),z=(0,i.Z)(U,2),Y=z[0],$=z[1],W=c.useState(!1),G=(0,i.Z)(W,2),K=G[0],Q=G[1],X=c.useContext(d.E_),J=X.getPrefixCls,ee=X.autoInsertSpaceInButton,te=X.direction,ne=t||c.createRef(),re=function(){return 1===c.Children.count(_)&&!q&&!M(y)},oe="boolean"==typeof l?l:(null==l?void 0:l.delay)||!0;c.useEffect((function(){var e=null;return"number"==typeof oe?e=window.setTimeout((function(){e=null,$(oe)}),oe):$(oe),function(){e&&(window.clearTimeout(e),e=null)}}),[oe]),c.useEffect((function(){if(ne&&ne.current&&!1!==ee){var e=ne.current.textContent;re()&&j(e)?K||Q(!0):K&&Q(!1)}}),[ne]);var ie=function(t){var n=e.onClick;Y||V?t.preventDefault():null==n||n(t)},ae=J("btn",f),le=!1!==ee,ue=(0,m.ri)(ae,te),se=ue.compactSize,ce=ue.compactItemClassnames,fe={large:"lg",small:"sm",middle:undefined},de=se||B||O||F,pe=de&&fe[de]||"",he=Y?"loading":q,me=(0,s.Z)(I,["navigate"]),ve=u()(ae,(n={},(0,o.Z)(n,"".concat(ae,"-").concat(x),"default"!==x&&x),(0,o.Z)(n,"".concat(ae,"-").concat(y),y),(0,o.Z)(n,"".concat(ae,"-").concat(pe),pe),(0,o.Z)(n,"".concat(ae,"-icon-only"),!_&&0!==_&&!!he),(0,o.Z)(n,"".concat(ae,"-background-ghost"),P&&!M(y)),(0,o.Z)(n,"".concat(ae,"-loading"),Y),(0,o.Z)(n,"".concat(ae,"-two-chinese-chars"),K&&le&&!Y),(0,o.Z)(n,"".concat(ae,"-block"),R),(0,o.Z)(n,"".concat(ae,"-dangerous"),!!b),(0,o.Z)(n,"".concat(ae,"-rtl"),"rtl"===te),(0,o.Z)(n,"".concat(ae,"-disabled"),me.href!==undefined&&V),n),ce,k),ye=q&&!Y?q:c.createElement(T,{existIcon:!!q,prefixCls:ae,loading:!!Y}),ge=_||0===_?L(_,re()&&le):null;if(me.href!==undefined)return c.createElement("a",(0,r.Z)({},me,{className:ve,onClick:ie,ref:ne}),ye,ge);var be=c.createElement("button",(0,r.Z)({},I,{type:Z,className:ve,onClick:ie,disabled:V,ref:ne}),ye,ge);return M(y)?be:c.createElement(g.Z,{disabled:!!Y},be)},D=c.forwardRef(R);D.Group=E,D.__ANT_BUTTON=!0;const Z=D},9098:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7363),o=r.createContext(!1);const i=o},7647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7363),o=r.createContext(undefined);const i=o},3124:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,E_:()=>o});var r=n(7363),o=r.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}}),i=o.Consumer},348:(e,t,n)=>{"use strict";n.d(t,{z8:()=>Fi,ZP:()=>Vi,qF:()=>Hi});var r=n(7462),o=n(3355),i=n(7363),a=n.n(i),l=n(7403);var u=n(4942),s=n(9439),c=n(1413);const f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};var d=n(6988),p=function(e,t){return i.createElement(d.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:f}))};p.displayName="CloseOutlined";const h=i.forwardRef(p);var m=n(4184),v=n.n(m),y=n(8423),g=n(3124),b=(0,o.b)("success","processing","error","default","warning"),w=(0,o.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),E=n(1790),x=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const O=function(e){var t,n=e.prefixCls,o=e.className,a=e.checked,l=e.onChange,s=e.onClick,c=x(e,["prefixCls","className","checked","onChange","onClick"]),f=(0,i.useContext(g.E_).getPrefixCls)("tag",n),d=v()(f,(t={},(0,u.Z)(t,"".concat(f,"-checkable"),!0),(0,u.Z)(t,"".concat(f,"-checkable-checked"),a),t),o);return i.createElement("span",(0,r.Z)({},c,{className:d,onClick:function(e){null==l||l(!a),null==s||s(e)}}))};var C=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},k=new RegExp("^(".concat(w.join("|"),")(-inverse)?$")),_=new RegExp("^(".concat(b.join("|"),")$")),q=function(e,t){var n,o=e.prefixCls,a=e.className,l=e.style,c=e.children,f=e.icon,d=e.color,p=e.onClose,m=e.closeIcon,b=e.closable,w=void 0!==b&&b,x=C(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),O=i.useContext(g.E_),q=O.getPrefixCls,S=O.direction,P=i.useState(!0),T=(0,s.Z)(P,2),N=T[0],A=T[1];i.useEffect((function(){"visible"in x&&A(x.visible)}),[x.visible]);var j=function(){return!!d&&(k.test(d)||_.test(d))},M=(0,r.Z)({backgroundColor:d&&!j()?d:undefined},l),L=j(),R=q("tag",o),D=v()(R,(n={},(0,u.Z)(n,"".concat(R,"-").concat(d),L),(0,u.Z)(n,"".concat(R,"-has-color"),d&&!L),(0,u.Z)(n,"".concat(R,"-hidden"),!N),(0,u.Z)(n,"".concat(R,"-rtl"),"rtl"===S),n),a),Z=function(e){e.stopPropagation(),null==p||p(e),e.defaultPrevented||"visible"in x||A(!1)},I="onClick"in x||c&&"a"===c.type,F=(0,y.Z)(x,["visible"]),H=f||null,V=H?i.createElement(i.Fragment,null,H,i.createElement("span",null,c)):c,B=i.createElement("span",(0,r.Z)({},F,{ref:t,className:D,style:M}),V,w?m?i.createElement("span",{className:"".concat(R,"-close-icon"),onClick:Z},m):i.createElement(h,{className:"".concat(R,"-close-icon"),onClick:Z}):null);return I?i.createElement(E.Z,null,B):B},S=i.forwardRef(q);S.CheckableTag=O;const P=S;const T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var N=function(e,t){return i.createElement(d.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:T}))};N.displayName="CalendarOutlined";const A=i.forwardRef(N);const j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var M=function(e,t){return i.createElement(d.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:j}))};M.displayName="ClockCircleOutlined";const L=i.forwardRef(M);const R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};var D=function(e,t){return i.createElement(d.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:R}))};D.displayName="CloseCircleFilled";const Z=i.forwardRef(D);const I={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var F=function(e,t){return i.createElement(d.Z,(0,c.Z)((0,c.Z)({},e),{},{ref:t,icon:I}))};F.displayName="SwapRightOutlined";const H=i.forwardRef(F);var V=n(5671),B=n(3144),U=n(9340),z=n(8557),Y=n(334);function $(e){var t=i.useRef();t.current=e;var n=i.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var W=n(8924),G=(0,W.Z)()?i.useLayoutEffect:i.useEffect;const K=G;var Q,X=n(470);function J(e){return e!==undefined}function ee(e,t){var n,r,o,a=t||{},l=a.defaultValue,u=a.value,c=a.onChange,f=a.postState,d=(0,X.Z)((function(){var t,n=undefined;return J(u)?(n=u,t=Q.PROP):J(l)?(n="function"==typeof l?l():l,t=Q.PROP):(n="function"==typeof e?e():e,t=Q.INNER),[n,t,n]})),p=(0,s.Z)(d,2),h=p[0],m=p[1],v=J(u)?u:h[0],y=f?f(v):v;n=function(){m((function(e){var t=(0,s.Z)(e,1)[0];return[u,Q.PROP,t]}))},r=[u],o=i.useRef(!0),G((function(){if(!o.current)return n()}),r),G((function(){return o.current=!1,function(){o.current=!0}}),[]);var g=i.useRef(),b=$((function(e,t){m((function(t){var n=(0,s.Z)(t,3),r=n[0],o=n[1],i=n[2],a="function"==typeof e?e(r):e;if(a===r)return t;var l=o===Q.INNER&&g.current!==i?i:r;return[a,Q.INNER,l]}),t)})),w=$(c);return K((function(){var e=(0,s.Z)(h,3),t=e[0],n=e[1],r=e[2];t!==r&&n===Q.INNER&&(w(t,r),g.current=r)}),[h]),[y,b]}!function(e){e[e.INNER=0]="INNER",e[e.PROP=1]="PROP"}(Q||(Q={}));var te=n(1002),ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ne.F1&&t<=ne.F12)return!1;switch(t){case ne.ALT:case ne.CAPS_LOCK:case ne.CONTEXT_MENU:case ne.CTRL:case ne.DOWN:case ne.END:case ne.ESC:case ne.HOME:case ne.INSERT:case ne.LEFT:case ne.MAC_FF_META:case ne.META:case ne.NUMLOCK:case ne.NUM_CENTER:case ne.PAGE_DOWN:case ne.PAGE_UP:case ne.PAUSE:case ne.PRINT_SCREEN:case ne.RIGHT:case ne.SHIFT:case ne.UP:case ne.WIN_KEY:case ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ne.ZERO&&e<=ne.NINE)return!0;if(e>=ne.NUM_ZERO&&e<=ne.NUM_MULTIPLY)return!0;if(e>=ne.A&&e<=ne.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ne.SPACE:case ne.QUESTION_MARK:case ne.NUM_PLUS:case ne.NUM_MINUS:case ne.NUM_PERIOD:case ne.NUM_DIVISION:case ne.SEMICOLON:case ne.DASH:case ne.EQUALS:case ne.COMMA:case ne.PERIOD:case ne.SLASH:case ne.APOSTROPHE:case ne.SINGLE_QUOTE:case ne.OPEN_SQUARE_BRACKET:case ne.BACKSLASH:case ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const re=ne;const oe=i.createContext({});var ie={visibility:"hidden"};const ae=function(e){var t=e.prefixCls,n=e.prevIcon,r=void 0===n?"‹":n,o=e.nextIcon,a=void 0===o?"›":o,l=e.superPrevIcon,u=void 0===l?"«":l,s=e.superNextIcon,c=void 0===s?"»":s,f=e.onSuperPrev,d=e.onSuperNext,p=e.onPrev,h=e.onNext,m=e.children,v=i.useContext(oe),y=v.hideNextBtn,g=v.hidePrevBtn;return i.createElement("div",{className:t},f&&i.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:g?ie:{}},u),p&&i.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:g?ie:{}},r),i.createElement("div",{className:"".concat(t,"-view")},m),h&&i.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(t,"-next-btn"),style:y?ie:{}},a),d&&i.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:y?ie:{}},c))};const le=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.viewDate,a=e.onPrevDecades,l=e.onNextDecades;if(i.useContext(oe).hideHeader)return null;var u="".concat(t,"-header"),s=n.getYear(o),c=Math.floor(s/Pe)*Pe,f=c+Pe-1;return i.createElement(ae,(0,r.Z)({},e,{prefixCls:u,onSuperPrev:a,onSuperNext:l}),c,"-",f)};function ue(e,t,n,r,o){var i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o)}function se(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n))}function ce(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),i=e.getDate(o),a=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(a,"-").concat(i)}function fe(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,o=e.picker,a=e.rowNum,l=e.colNum,s=e.prefixColumn,f=e.rowClassName,d=e.baseDate,p=e.getCellClassName,h=e.getCellText,m=e.getCellNode,y=e.getCellDate,g=e.generateConfig,b=e.titleCell,w=e.headerCells,E=i.useContext(oe),x=E.onDateMouseEnter,O=E.onDateMouseLeave,C=E.mode,k="".concat(t,"-cell"),_=[],q=0;q<a;q+=1){for(var S=[],P=void 0,T=function(e){var t,a=y(d,q*l+e),f=Be({cellDate:a,mode:C,disabledDate:n,generateConfig:g});0===e&&(P=a,s&&S.push(s(P)));var w=b&&b(a);S.push(i.createElement("td",{key:e,title:w,className:v()(k,(0,c.Z)((t={},(0,u.Z)(t,"".concat(k,"-disabled"),f),(0,u.Z)(t,"".concat(k,"-start"),1===h(a)||"year"===o&&Number(w)%10==0),(0,u.Z)(t,"".concat(k,"-end"),w===ce(g,a)||"year"===o&&Number(w)%10==9),t),p(a))),onClick:function(){f||r(a)},onMouseEnter:function(){!f&&x&&x(a)},onMouseLeave:function(){!f&&O&&O(a)}},m?m(a):i.createElement("div",{className:"".concat(k,"-inner")},h(a))))},N=0;N<l;N+=1)T(N);_.push(i.createElement("tr",{key:q,className:f&&f(P)},S))}return i.createElement("div",{className:"".concat(t,"-body")},i.createElement("table",{className:"".concat(t,"-content")},w&&i.createElement("thead",null,i.createElement("tr",null,w)),i.createElement("tbody",null,_)))}const de=function(e){var t=Se-1,n=e.prefixCls,o=e.viewDate,a=e.generateConfig,l="".concat(n,"-cell"),s=a.getYear(o),c=Math.floor(s/Se)*Se,f=Math.floor(s/Pe)*Pe,d=f+Pe-1,p=a.setYear(o,f-Math.ceil((12*Se-Pe)/2));return i.createElement(fe,(0,r.Z)({},e,{rowNum:4,colNum:3,baseDate:p,getCellText:function(e){var n=a.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,r=a.getYear(e),o=r+t;return n={},(0,u.Z)(n,"".concat(l,"-in-view"),f<=r&&o<=d),(0,u.Z)(n,"".concat(l,"-selected"),r===c),n},getCellDate:function(e,t){return a.addYear(e,t*Se)}}))};var pe=n(907);function he(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var me=n(181);function ve(e){return function(e){if(Array.isArray(e))return(0,pe.Z)(e)}(e)||he(e)||(0,me.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ye=n(5164);const ge=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1};var be=new Map;function we(e,t,n){if(be.get(e)&&cancelAnimationFrame(be.get(e)),n<=0)be.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var r=(t-e.scrollTop)/n*10;be.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==t&&we(e,t,n-10)})))}}function Ee(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,l=e.which,u=e.ctrlKey,s=e.metaKey;switch(l){case re.LEFT:if(u||s){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case re.RIGHT:if(u||s){if(r)return r(1),!0}else if(n)return n(1),!0;break;case re.UP:if(o)return o(-1),!0;break;case re.DOWN:if(o)return o(1),!0;break;case re.PAGE_UP:if(i)return i(-1),!0;break;case re.PAGE_DOWN:if(i)return i(1),!0;break;case re.ENTER:if(a)return a(),!0}return!1}function xe(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function Oe(e,t,n){var r="time"===e?8:10,o="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var Ce=null,ke=new Set;var _e={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function qe(e,t){return e.some((function(e){return e&&e.contains(t)}))}var Se=10,Pe=10*Se;const Te=function(e){var t=e.prefixCls,n=e.onViewDateChange,o=e.generateConfig,a=e.viewDate,l=e.operationRef,u=e.onSelect,s=e.onPanelChange,c="".concat(t,"-decade-panel");l.current={onKeyDown:function(e){return Ee(e,{onLeftRight:function(e){u(o.addYear(a,e*Se),"key")},onCtrlLeftRight:function(e){u(o.addYear(a,e*Pe),"key")},onUpDown:function(e){u(o.addYear(a,e*Se*3),"key")},onEnter:function(){s("year",a)}})}};var f=function(e){var t=o.addYear(a,e*Pe);n(t),s(null,t)};return i.createElement("div",{className:c},i.createElement(le,(0,r.Z)({},e,{prefixCls:t,onPrevDecades:function(){f(-1)},onNextDecades:function(){f(1)}})),i.createElement(de,(0,r.Z)({},e,{prefixCls:t,onSelect:function(e){u(e,"mouse"),s("year",e)}})))};function Ne(e,t){return!e&&!t||!(!e||!t)&&undefined}function Ae(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)}function je(e,t){return Math.floor(e.getMonth(t)/3)+1}function Me(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:Ae(e,t,n)&&je(e,t)===je(e,n)}function Le(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:Ae(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Re(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function De(e,t,n,r){var o=Ne(n,r);return"boolean"==typeof o?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function Ze(e,t,n){return Re(e,t,n)&&function(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function Ie(e,t,n,r){return!!(t&&n&&r)&&(!Re(e,t,r)&&!Re(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function Fe(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function He(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"==typeof o?o(e):n.locale.format(r.locale,e,o)}function Ve(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!=typeof o[0]?n.locale.parse(r.locale,e,o):null}function Be(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){for(var a=n;a<=i;){var l=void 0;switch(e){case"date":if(l=o.setDate(t,a),!r(l))return!1;break;case"month":if(!Be({cellDate:l=o.setMonth(t,a),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!Be({cellDate:l=o.setYear(t,a),mode:"year",generateConfig:o,disabledDate:r}))return!1}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return i("date",1,o.getDate(o.getEndDate(t)));case"quarter":var a=3*Math.floor(o.getMonth(t)/3);return i("month",a,a+2);case"year":return i("month",0,11);case"decade":var l=o.getYear(t),u=Math.floor(l/Se)*Se;return i("year",u,u+Se-1)}}const Ue=function(e){if(i.useContext(oe).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.format,l="".concat(t,"-header");return i.createElement(ae,{prefixCls:l},o?He(o,{locale:r,format:a,generateConfig:n}):" ")};var ze=n(6982);const Ye=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,a=e.active,l=e.hideDisabledOptions,s="".concat(t,"-cell"),c=i.useContext(oe).open,f=(0,i.useRef)(null),d=(0,i.useRef)(new Map),p=(0,i.useRef)();return(0,i.useLayoutEffect)((function(){var e=d.current.get(o);e&&!1!==c&&we(f.current,e.offsetTop,120)}),[o]),(0,i.useLayoutEffect)((function(){if(c){var e=d.current.get(o);e&&(p.current=(t=e,n=function(){we(f.current,e.offsetTop,0)},function i(){ge(t)?n():r=(0,ye.Z)((function(){i()}))}(),function(){ye.Z.cancel(r)}))}var t,n,r;return function(){var e;null===(e=p.current)||void 0===e||e.call(p)}}),[c]),i.createElement("ul",{className:v()("".concat(t,"-column"),(0,u.Z)({},"".concat(t,"-column-active"),a)),ref:f,style:{position:"relative"}},n.map((function(e){var t;return l&&e.disabled?null:i.createElement("li",{key:e.value,ref:function(t){d.current.set(e.value,t)},className:v()(s,(t={},(0,u.Z)(t,"".concat(s,"-disabled"),e.disabled),(0,u.Z)(t,"".concat(s,"-selected"),o===e.value),t)),onClick:function(){e.disabled||r(e.value)}},i.createElement("div",{className:"".concat(s,"-inner")},e.label))})))};function $e(e,t){for(var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(e);return r}function We(e){return null===e||e===undefined?[]:Array.isArray(e)?e:[e]}function Ge(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function Ke(e,t){return e?e[t]:null}function Qe(e,t,n){var r=[Ke(e,0),Ke(e,1)];return r[n]="function"==typeof t?t(r[n]):t,r[0]||r[1]?r:null}function Xe(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function Je(e,t,n,r){for(var o=[],i=e;i<=t;i+=n)o.push({label:$e(i,2),value:i,disabled:(r||[]).includes(i)});return o}const et=function(e){var t,n=e.generateConfig,r=e.prefixCls,o=e.operationRef,a=e.activeColumnIndex,l=e.value,u=e.showHour,f=e.showMinute,d=e.showSecond,p=e.use12Hours,h=e.hourStep,m=void 0===h?1:h,v=e.minuteStep,y=void 0===v?1:v,g=e.secondStep,b=void 0===g?1:g,w=e.disabledHours,E=e.disabledMinutes,x=e.disabledSeconds,O=e.disabledTime,C=e.hideDisabledOptions,k=e.onSelect,_=[],q="".concat(r,"-content"),S="".concat(r,"-time-panel"),P=l?n.getHour(l):-1,T=P,N=l?n.getMinute(l):-1,A=l?n.getSecond(l):-1,j=n.getNow(),M=i.useMemo((function(){if(O){var e=O(j);return[e.disabledHours,e.disabledMinutes,e.disabledSeconds]}return[w,E,x]}),[w,E,x,O,j]),L=(0,s.Z)(M,3),R=L[0],D=L[1],Z=L[2],I=function(e,t,r,o){var i=l||n.getNow(),a=Math.max(0,t),u=Math.max(0,r),s=Math.max(0,o);return i=ue(n,i,p&&e?a+12:a,u,s)},F=Je(0,23,m,R&&R()),H=(0,ze.Z)((function(){return F}),F,Xe);p&&(t=T>=12,T%=12);var V=i.useMemo((function(){if(!p)return[!1,!1];var e=[!0,!0];return H.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[p,H]),B=(0,s.Z)(V,2),U=B[0],z=B[1],Y=i.useMemo((function(){return p?H.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":$e(t,2);return(0,c.Z)((0,c.Z)({},e),{},{label:n,value:t})})):H}),[p,t,H]),$=Je(0,59,y,D&&D(P)),W=Je(0,59,b,Z&&Z(P,N));function G(e,t,n,r,o){!1!==e&&_.push({node:i.cloneElement(t,{prefixCls:S,value:n,active:a===_.length,onSelect:o,units:r,hideDisabledOptions:C}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=_[a];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var i=t.units[(n+e*o+r)%r];if(!0!==i.disabled){t.onSelect(i.value);break}}}},G(u,i.createElement(Ye,{key:"hour"}),T,Y,(function(e){k(I(t,e,N,A),"mouse")})),G(f,i.createElement(Ye,{key:"minute"}),N,$,(function(e){k(I(t,T,e,A),"mouse")})),G(d,i.createElement(Ye,{key:"second"}),A,W,(function(e){k(I(t,T,N,e),"mouse")}));var K=-1;return"boolean"==typeof t&&(K=t?1:0),G(!0===p,i.createElement(Ye,{key:"12hours"}),K,[{label:"AM",value:0,disabled:U},{label:"PM",value:1,disabled:z}],(function(e){k(I(!!e,T,N,A),"mouse")})),i.createElement("div",{className:q},_.map((function(e){return e.node})))};const tt=function(e){var t=e.generateConfig,n=e.format,o=void 0===n?"HH:mm:ss":n,a=e.prefixCls,l=e.active,c=e.operationRef,f=e.showHour,d=e.showMinute,p=e.showSecond,h=e.use12Hours,m=void 0!==h&&h,y=e.onSelect,g=e.value,b="".concat(a,"-time-panel"),w=i.useRef(),E=i.useState(-1),x=(0,s.Z)(E,2),O=x[0],C=x[1],k=[f,d,p,m].filter((function(e){return!1!==e})).length;return c.current={onKeyDown:function(e){return Ee(e,{onLeftRight:function(e){C((O+e+k)%k)},onUpDown:function(e){-1===O?C(0):w.current&&w.current.onUpDown(e)},onEnter:function(){y(g||t.getNow(),"key"),C(-1)}})},onBlur:function(){C(-1)}},i.createElement("div",{className:v()(b,(0,u.Z)({},"".concat(b,"-active"),l))},i.createElement(Ue,(0,r.Z)({},e,{format:o,prefixCls:a})),i.createElement(et,(0,r.Z)({},e,{prefixCls:a,activeColumnIndex:O,operationRef:w})))};const nt=i.createContext({});function rt(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,o=e.hoverRangedValue,i=e.isInView,a=e.isSameCell,l=e.offsetCell,s=e.today,c=e.value;return function(e){var f,d=l(e,-1),p=l(e,1),h=Ke(r,0),m=Ke(r,1),v=Ke(o,0),y=Ke(o,1),g=Ie(n,v,y,e);function b(e){return a(h,e)}function w(e){return a(m,e)}var E=a(v,e),x=a(y,e),O=(g||x)&&(!i(d)||w(d)),C=(g||E)&&(!i(p)||b(p));return f={},(0,u.Z)(f,"".concat(t,"-in-view"),i(e)),(0,u.Z)(f,"".concat(t,"-in-range"),Ie(n,h,m,e)),(0,u.Z)(f,"".concat(t,"-range-start"),b(e)),(0,u.Z)(f,"".concat(t,"-range-end"),w(e)),(0,u.Z)(f,"".concat(t,"-range-start-single"),b(e)&&!m),(0,u.Z)(f,"".concat(t,"-range-end-single"),w(e)&&!h),(0,u.Z)(f,"".concat(t,"-range-start-near-hover"),b(e)&&(a(d,v)||Ie(n,v,y,d))),(0,u.Z)(f,"".concat(t,"-range-end-near-hover"),w(e)&&(a(p,y)||Ie(n,v,y,p))),(0,u.Z)(f,"".concat(t,"-range-hover"),g),(0,u.Z)(f,"".concat(t,"-range-hover-start"),E),(0,u.Z)(f,"".concat(t,"-range-hover-end"),x),(0,u.Z)(f,"".concat(t,"-range-hover-edge-start"),O),(0,u.Z)(f,"".concat(t,"-range-hover-edge-end"),C),(0,u.Z)(f,"".concat(t,"-range-hover-edge-start-near-range"),O&&a(d,m)),(0,u.Z)(f,"".concat(t,"-range-hover-edge-end-near-range"),C&&a(p,h)),(0,u.Z)(f,"".concat(t,"-today"),a(s,e)),(0,u.Z)(f,"".concat(t,"-selected"),a(c,e)),f}}const ot=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.prefixColumn,a=e.locale,l=e.rowCount,u=e.viewDate,s=e.value,c=e.dateRender,f=i.useContext(nt),d=f.rangedValue,p=f.hoverRangedValue,h=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(a.locale,n,u),m="".concat(t,"-cell"),v=n.locale.getWeekFirstDay(a.locale),y=n.getNow(),g=[],b=a.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(a.locale):[]);o&&g.push(i.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var w=0;w<7;w+=1)g.push(i.createElement("th",{key:w},b[(w+v)%7]));var E=rt({cellPrefixCls:m,today:y,value:s,generateConfig:n,rangedValue:o?null:d,hoverRangedValue:o?null:p,isSameCell:function(e,t){return Re(n,e,t)},isInView:function(e){return Le(n,e,u)},offsetCell:function(e,t){return n.addDate(e,t)}}),x=c?function(e){return c(e,y)}:undefined;return i.createElement(fe,(0,r.Z)({},e,{rowNum:l,colNum:7,baseDate:h,getCellNode:x,getCellText:n.getDate,getCellClassName:E,getCellDate:n.addDate,titleCell:function(e){return He(e,{locale:a,format:"YYYY-MM-DD",generateConfig:n})},headerCells:g}))};const it=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,a=e.viewDate,l=e.onNextMonth,u=e.onPrevMonth,s=e.onNextYear,c=e.onPrevYear,f=e.onYearClick,d=e.onMonthClick;if(i.useContext(oe).hideHeader)return null;var p="".concat(t,"-header"),h=o.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(o.locale):[]),m=n.getMonth(a),v=i.createElement("button",{type:"button",key:"year",onClick:f,tabIndex:-1,className:"".concat(t,"-year-btn")},He(a,{locale:o,format:o.yearFormat,generateConfig:n})),y=i.createElement("button",{type:"button",key:"month",onClick:d,tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?He(a,{locale:o,format:o.monthFormat,generateConfig:n}):h[m]),g=o.monthBeforeYear?[y,v]:[v,y];return i.createElement(ae,(0,r.Z)({},e,{prefixCls:p,onSuperPrev:c,onPrev:u,onNext:l,onSuperNext:s}),g)};const at=function(e){var t=e.prefixCls,n=e.panelName,o=void 0===n?"date":n,a=e.keyboardConfig,l=e.active,s=e.operationRef,f=e.generateConfig,d=e.value,p=e.viewDate,h=e.onViewDateChange,m=e.onPanelChange,y=e.onSelect,g="".concat(t,"-").concat(o,"-panel");s.current={onKeyDown:function(e){return Ee(e,(0,c.Z)({onLeftRight:function(e){y(f.addDate(d||p,e),"key")},onCtrlLeftRight:function(e){y(f.addYear(d||p,e),"key")},onUpDown:function(e){y(f.addDate(d||p,7*e),"key")},onPageUpDown:function(e){y(f.addMonth(d||p,e),"key")}},a))}};var b=function(e){var t=f.addYear(p,e);h(t),m(null,t)},w=function(e){var t=f.addMonth(p,e);h(t),m(null,t)};return i.createElement("div",{className:v()(g,(0,u.Z)({},"".concat(g,"-active"),l))},i.createElement(it,(0,r.Z)({},e,{prefixCls:t,value:d,viewDate:p,onPrevYear:function(){b(-1)},onNextYear:function(){b(1)},onPrevMonth:function(){w(-1)},onNextMonth:function(){w(1)},onMonthClick:function(){m("month",p)},onYearClick:function(){m("year",p)}})),i.createElement(ot,(0,r.Z)({},e,{onSelect:function(e){return y(e,"mouse")},prefixCls:t,value:d,viewDate:p,rowCount:6})))};var lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");const ut=function(e){var t=e.prefixCls,n=e.operationRef,o=e.generateConfig,a=e.value,l=e.defaultValue,f=e.disabledTime,d=e.showTime,p=e.onSelect,h="".concat(t,"-datetime-panel"),m=i.useState(null),y=(0,s.Z)(m,2),g=y[0],b=y[1],w=i.useRef({}),E=i.useRef({}),x="object"===(0,te.Z)(d)?(0,c.Z)({},d):{},O=function(e){E.current.onBlur&&E.current.onBlur(e),b(null)};n.current={onKeyDown:function(e){if(e.which===re.TAB){var t=(n=e.shiftKey?-1:1,r=lt.indexOf(g)+n,lt[r]||null);return b(t),t&&e.preventDefault(),!0}var n,r;if(g){var o="date"===g?w:E;return o.current&&o.current.onKeyDown&&o.current.onKeyDown(e),!0}return!![re.LEFT,re.RIGHT,re.UP,re.DOWN].includes(e.which)&&(b("date"),!0)},onBlur:O,onClose:O};var C=function(e,t){var n=e;"date"===t&&!a&&x.defaultValue?(n=o.setHour(n,o.getHour(x.defaultValue)),n=o.setMinute(n,o.getMinute(x.defaultValue)),n=o.setSecond(n,o.getSecond(x.defaultValue))):"time"===t&&!a&&l&&(n=o.setYear(n,o.getYear(l)),n=o.setMonth(n,o.getMonth(l)),n=o.setDate(n,o.getDate(l))),p&&p(n,"mouse")},k=f?f(a||null):{};return i.createElement("div",{className:v()(h,(0,u.Z)({},"".concat(h,"-active"),g))},i.createElement(at,(0,r.Z)({},e,{operationRef:w,active:"date"===g,onSelect:function(e){C(se(o,e,a||"object"!==(0,te.Z)(d)?null:d.defaultValue),"date")}})),i.createElement(tt,(0,r.Z)({},e,{format:undefined},x,k,{disabledTime:null,defaultValue:undefined,operationRef:E,active:"time"===g,onSelect:function(e){C(e,"time")}})))};const st=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,a=e.value,l="".concat(t,"-cell"),s="".concat(t,"-week-panel-row");return i.createElement(at,(0,r.Z)({},e,{panelName:"week",prefixColumn:function(e){return i.createElement("td",{key:"week",className:v()(l,"".concat(l,"-week"))},n.locale.getWeek(o.locale,e))},rowClassName:function(e){return v()(s,(0,u.Z)({},"".concat(s,"-selected"),De(n,o.locale,a,e)))},keyboardConfig:{onLeftRight:null}}))};const ct=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,a=e.viewDate,l=e.onNextYear,u=e.onPrevYear,s=e.onYearClick;if(i.useContext(oe).hideHeader)return null;var c="".concat(t,"-header");return i.createElement(ae,(0,r.Z)({},e,{prefixCls:c,onSuperPrev:u,onSuperNext:l}),i.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},He(a,{locale:o,format:o.yearFormat,generateConfig:n})))};const ft=function(e){var t=e.prefixCls,n=e.locale,o=e.value,a=e.viewDate,l=e.generateConfig,u=e.monthCellRender,s=i.useContext(nt),c=s.rangedValue,f=s.hoverRangedValue,d=rt({cellPrefixCls:"".concat(t,"-cell"),value:o,generateConfig:l,rangedValue:c,hoverRangedValue:f,isSameCell:function(e,t){return Le(l,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return l.addMonth(e,t)}}),p=n.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(n.locale):[]),h=l.setMonth(a,0),m=u?function(e){return u(e,n)}:undefined;return i.createElement(fe,(0,r.Z)({},e,{rowNum:4,colNum:3,baseDate:h,getCellNode:m,getCellText:function(e){return n.monthFormat?He(e,{locale:n,format:n.monthFormat,generateConfig:l}):p[l.getMonth(e)]},getCellClassName:d,getCellDate:l.addMonth,titleCell:function(e){return He(e,{locale:n,format:"YYYY-MM",generateConfig:l})}}))};const dt=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,a=e.generateConfig,l=e.value,u=e.viewDate,s=e.onPanelChange,c=e.onSelect,f="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return Ee(e,{onLeftRight:function(e){c(a.addMonth(l||u,e),"key")},onCtrlLeftRight:function(e){c(a.addYear(l||u,e),"key")},onUpDown:function(e){c(a.addMonth(l||u,3*e),"key")},onEnter:function(){s("date",l||u)}})}};var d=function(e){var t=a.addYear(u,e);o(t),s(null,t)};return i.createElement("div",{className:f},i.createElement(ct,(0,r.Z)({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){s("year",u)}})),i.createElement(ft,(0,r.Z)({},e,{prefixCls:t,onSelect:function(e){c(e,"mouse"),s("date",e)}})))};const pt=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,a=e.viewDate,l=e.onNextYear,u=e.onPrevYear,s=e.onYearClick;if(i.useContext(oe).hideHeader)return null;var c="".concat(t,"-header");return i.createElement(ae,(0,r.Z)({},e,{prefixCls:c,onSuperPrev:u,onSuperNext:l}),i.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},He(a,{locale:o,format:o.yearFormat,generateConfig:n})))};const ht=function(e){var t=e.prefixCls,n=e.locale,o=e.value,a=e.viewDate,l=e.generateConfig,u=i.useContext(nt),s=u.rangedValue,c=u.hoverRangedValue,f=rt({cellPrefixCls:"".concat(t,"-cell"),value:o,generateConfig:l,rangedValue:s,hoverRangedValue:c,isSameCell:function(e,t){return Me(l,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return l.addMonth(e,3*t)}}),d=l.setDate(l.setMonth(a,0),1);return i.createElement(fe,(0,r.Z)({},e,{rowNum:1,colNum:4,baseDate:d,getCellText:function(e){return He(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:l})},getCellClassName:f,getCellDate:function(e,t){return l.addMonth(e,3*t)},titleCell:function(e){return He(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:l})}}))};const mt=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,a=e.generateConfig,l=e.value,u=e.viewDate,s=e.onPanelChange,c=e.onSelect,f="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return Ee(e,{onLeftRight:function(e){c(a.addMonth(l||u,3*e),"key")},onCtrlLeftRight:function(e){c(a.addYear(l||u,e),"key")},onUpDown:function(e){c(a.addYear(l||u,e),"key")}})}};var d=function(e){var t=a.addYear(u,e);o(t),s(null,t)};return i.createElement("div",{className:f},i.createElement(pt,(0,r.Z)({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){s("year",u)}})),i.createElement(ht,(0,r.Z)({},e,{prefixCls:t,onSelect:function(e){c(e,"mouse")}})))};const vt=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.viewDate,a=e.onPrevDecade,l=e.onNextDecade,u=e.onDecadeClick;if(i.useContext(oe).hideHeader)return null;var s="".concat(t,"-header"),c=n.getYear(o),f=Math.floor(c/gt)*gt,d=f+gt-1;return i.createElement(ae,(0,r.Z)({},e,{prefixCls:s,onSuperPrev:a,onSuperNext:l}),i.createElement("button",{type:"button",onClick:u,className:"".concat(t,"-decade-btn")},f,"-",d))};const yt=function(e){var t=e.prefixCls,n=e.value,o=e.viewDate,a=e.locale,l=e.generateConfig,u=i.useContext(nt),s=u.rangedValue,c=u.hoverRangedValue,f="".concat(t,"-cell"),d=l.getYear(o),p=Math.floor(d/gt)*gt,h=p+gt-1,m=l.setYear(o,p-Math.ceil((12-gt)/2)),v=rt({cellPrefixCls:f,value:n,generateConfig:l,rangedValue:s,hoverRangedValue:c,isSameCell:function(e,t){return Ae(l,e,t)},isInView:function(e){var t=l.getYear(e);return p<=t&&t<=h},offsetCell:function(e,t){return l.addYear(e,t)}});return i.createElement(fe,(0,r.Z)({},e,{rowNum:4,colNum:3,baseDate:m,getCellText:l.getYear,getCellClassName:v,getCellDate:l.addYear,titleCell:function(e){return He(e,{locale:a,format:"YYYY",generateConfig:l})}}))};var gt=10;const bt=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,a=e.generateConfig,l=e.value,u=e.viewDate,s=e.sourceMode,c=e.onSelect,f=e.onPanelChange,d="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return Ee(e,{onLeftRight:function(e){c(a.addYear(l||u,e),"key")},onCtrlLeftRight:function(e){c(a.addYear(l||u,e*gt),"key")},onUpDown:function(e){c(a.addYear(l||u,3*e),"key")},onEnter:function(){f("date"===s?"date":"month",l||u)}})}};var p=function(e){var t=a.addYear(u,10*e);o(t),f(null,t)};return i.createElement("div",{className:d},i.createElement(vt,(0,r.Z)({},e,{prefixCls:t,onPrevDecade:function(){p(-1)},onNextDecade:function(){p(1)},onDecadeClick:function(){f("decade",u)}})),i.createElement(yt,(0,r.Z)({},e,{prefixCls:t,onSelect:function(e){f("date"===s?"date":"month",e),c(e,"mouse")}})))};function wt(e,t,n){return n?i.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function Et(e){var t,n,r=e.prefixCls,o=e.rangeList,a=void 0===o?[]:o,l=e.components,u=void 0===l?{}:l,s=e.needConfirmButton,c=e.onNow,f=e.onOk,d=e.okDisabled,p=e.showNow,h=e.locale;if(a.length){var m=u.rangeItem||"span";t=i.createElement(i.Fragment,null,a.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseEnter,a=e.onMouseLeave;return i.createElement("li",{key:t,className:"".concat(r,"-preset")},i.createElement(m,{onClick:n,onMouseEnter:o,onMouseLeave:a},t))})))}if(s){var v=u.button||"button";c&&!t&&!1!==p&&(t=i.createElement("li",{className:"".concat(r,"-now")},i.createElement("a",{className:"".concat(r,"-now-btn"),onClick:c},h.now))),n=s&&i.createElement("li",{className:"".concat(r,"-ok")},i.createElement(v,{disabled:d,onClick:f},h.ok))}return t||n?i.createElement("ul",{className:"".concat(r,"-ranges")},t,n):null}const xt=function(e){var t,n=e.prefixCls,o=void 0===n?"rc-picker":n,a=e.className,l=e.style,f=e.locale,d=e.generateConfig,p=e.value,h=e.defaultValue,m=e.pickerValue,y=e.defaultPickerValue,g=e.disabledDate,b=e.mode,w=e.picker,E=void 0===w?"date":w,x=e.tabIndex,O=void 0===x?0:x,C=e.showNow,k=e.showTime,_=e.showToday,q=e.renderExtraFooter,S=e.hideHeader,P=e.onSelect,T=e.onChange,N=e.onPanelChange,A=e.onMouseDown,j=e.onPickerValueChange,M=e.onOk,L=e.components,R=e.direction,D=e.hourStep,Z=void 0===D?1:D,I=e.minuteStep,F=void 0===I?1:I,H=e.secondStep,V=void 0===H?1:H,B="date"===E&&!!k||"time"===E,U=24%Z==0,z=60%F==0,$=60%V==0,W=i.useContext(oe),G=W.operationRef,K=W.panelRef,Q=W.onSelect,X=W.hideRanges,J=W.defaultOpenValue,ne=i.useContext(nt),ie=ne.inRange,ae=ne.panelPosition,le=ne.rangedValue,ce=ne.hoverRangedValue,fe=i.useRef({}),de=i.useRef(!0),pe=ee(null,{value:p,defaultValue:h,postState:function(e){return!e&&J&&"time"===E?J:e}}),he=(0,s.Z)(pe,2),me=he[0],ve=he[1],ye=ee(null,{value:m,defaultValue:y||me,postState:function(e){var t=d.getNow();if(!e)return t;if(!me&&k){var n="object"===(0,te.Z)(k)?k.defaultValue:h;return se(d,Array.isArray(e)?e[0]:e,n||t)}return Array.isArray(e)?e[0]:e}}),ge=(0,s.Z)(ye,2),be=ge[0],we=ge[1],Ee=function(e){we(e),j&&j(e)},xe=function(e){var t=_e[E];return t?t(e):e},Oe=ee((function(){return"time"===E?"time":xe("date")}),{value:b}),Ce=(0,s.Z)(Oe,2),ke=Ce[0],qe=Ce[1];i.useEffect((function(){qe(E)}),[E]);var Se,Pe=i.useState((function(){return ke})),Ne=(0,s.Z)(Pe,2),Ae=Ne[0],je=Ne[1],Me=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2];(ke===E||n)&&(ve(e),P&&P(e),Q&&Q(e,t),!T||Ze(d,e,me)||(null==g?void 0:g(e))||T(e))},Le=function(e){return fe.current&&fe.current.onKeyDown?([re.LEFT,re.RIGHT,re.UP,re.DOWN,re.PAGE_UP,re.PAGE_DOWN,re.ENTER].includes(e.which)&&e.preventDefault(),fe.current.onKeyDown(e)):((0,Y.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};G&&"right"!==ae&&(G.current={onKeyDown:Le,onClose:function(){fe.current&&fe.current.onClose&&fe.current.onClose()}}),i.useEffect((function(){p&&!de.current&&we(p)}),[p]),i.useEffect((function(){de.current=!1}),[]);var Re,De,Ie,Fe=(0,c.Z)((0,c.Z)({},e),{},{operationRef:fe,prefixCls:o,viewDate:be,value:me,onViewDateChange:Ee,sourceMode:Ae,onPanelChange:function(e,t){var n=xe(e||ke);je(ke),qe(n),N&&(ke!==n||Ze(d,be,be))&&N(t,n)},disabledDate:g});switch(delete Fe.onChange,delete Fe.onSelect,ke){case"decade":Se=i.createElement(Te,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;case"year":Se=i.createElement(bt,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;case"month":Se=i.createElement(dt,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;case"quarter":Se=i.createElement(mt,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;case"week":Se=i.createElement(st,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;case"time":delete Fe.showTime,Se=i.createElement(tt,(0,r.Z)({},Fe,"object"===(0,te.Z)(k)?k:null,{onSelect:function(e,t){Ee(e),Me(e,t)}}));break;default:Se=k?i.createElement(ut,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}})):i.createElement(at,(0,r.Z)({},Fe,{onSelect:function(e,t){Ee(e),Me(e,t)}}))}if(X||(Re=wt(o,ke,q),De=Et({prefixCls:o,components:L,needConfirmButton:B,okDisabled:!me||g&&g(me),locale:f,showNow:C,onNow:B&&function(){var e=d.getNow(),t=function(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a<e)return[a,60-o,60-i];var l=Math.floor(t/o)*o;return l<t?[a,l,60-i]:[a,l,Math.floor(n/i)*i]}(d.getHour(e),d.getMinute(e),d.getSecond(e),U?Z:1,z?F:1,$?V:1),n=ue(d,e,t[0],t[1],t[2]);Me(n,"submit")},onOk:function(){me&&(Me(me,"submit",!0),M&&M(me))}})),_&&"date"===ke&&"date"===E&&!k){var He=d.getNow(),Ve="".concat(o,"-today-btn"),Be=g&&g(He);Ie=i.createElement("a",{className:v()(Ve,Be&&"".concat(Ve,"-disabled")),"aria-disabled":Be,onClick:function(){Be||Me(He,"mouse",!0)}},f.today)}return i.createElement(oe.Provider,{value:(0,c.Z)((0,c.Z)({},W),{},{mode:ke,hideHeader:"hideHeader"in e?S:W.hideHeader,hidePrevBtn:ie&&"right"===ae,hideNextBtn:ie&&"left"===ae})},i.createElement("div",{tabIndex:O,className:v()("".concat(o,"-panel"),a,(t={},(0,u.Z)(t,"".concat(o,"-panel-has-range"),le&&le[0]&&le[1]),(0,u.Z)(t,"".concat(o,"-panel-has-range-hover"),ce&&ce[0]&&ce[1]),(0,u.Z)(t,"".concat(o,"-panel-rtl"),"rtl"===R),t)),style:l,onKeyDown:Le,onBlur:function(e){fe.current&&fe.current.onBlur&&fe.current.onBlur(e)},onMouseDown:A,ref:K},Se,Re||De||Ie?i.createElement("div",{className:"".concat(o,"-footer")},Re,De,Ie):null))};var Ot=n(7326),Ct=n(1533),kt=n.n(Ct),_t=n(4999),qt=n(4203),St=n(2550);function Pt(e,t,n,r){var o=kt().unstable_batchedUpdates?function(e){kt().unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}const Tt=(0,i.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,a=(0,i.useRef)(),l=(0,i.useRef)();(0,i.useImperativeHandle)(t,(function(){return{}}));var u=(0,i.useRef)(!1);return!u.current&&(0,W.Z)()&&(l.current=r(),a.current=l.current.parentNode,u.current=!0),(0,i.useEffect)((function(){null==n||n(e)})),(0,i.useEffect)((function(){return null===l.current.parentNode&&null!==a.current&&a.current.appendChild(l.current),function(){var e,t;null===(e=l.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(l.current)}}),[]),l.current?kt().createPortal(o,l.current):null}));function Nt(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var At=n(4925);var jt,Mt=n(3441);function Lt(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function Rt(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,a=e.mask,l=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var f={};return(l||s||u)&&(f=(0,c.Z)({motionAppear:!0},Lt({motion:l,prefixCls:t,transitionName:s,animation:u}))),i.createElement(Mt.Z,(0,r.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return i.createElement("div",{style:{zIndex:o},className:v()("".concat(t,"-mask"),n)})}))}function Dt(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 Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Vt(){if(jt!==undefined)return jt;jt="";var e=document.createElement("p").style;for(var t in Ht)t+"Transform"in e&&(jt=t);return jt}function Bt(){return Vt()?"".concat(Vt(),"TransitionProperty"):"transitionProperty"}function Ut(){return Vt()?"".concat(Vt(),"Transform"):"transform"}function zt(e,t){var n=Bt();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function Yt(e,t){var n=Ut();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var $t,Wt=/matrix\((.*)\)/,Gt=/matrix3d\((.*)\)/;function Kt(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Qt(e,t,n){var r=n;if("object"===It(t)){for(var o in t)t.hasOwnProperty(o)&&Qt(e,o,t[o]);return undefined}return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),e.style[t]=r,undefined):$t(e,t)}function Xt(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function Jt(e){return Xt(e)}function en(e){return Xt(e,!0)}function tn(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Jt(r),t.top+=en(r),t}function nn(e){return null!==e&&e!==undefined&&e==e.window}function rn(e){return nn(e)?e.document:9===e.nodeType?e:e.ownerDocument}var on=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),an=/^(top|right|bottom|left)$/;function ln(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function un(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function sn(e,t,n){"static"===Qt(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=ln("left",n),a=ln("top",n),l=un(i),u=un(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,c="",f=tn(e);("left"in t||"top"in t)&&(c=(s=e).style.transitionProperty||s.style[Bt()]||"",zt(e,"none")),"left"in t&&(e.style[l]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),Kt(e);var d=tn(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var m=ln(h,n),v="left"===h?r:o,y=f[h]-d[h];p[m]=m===h?v+y:v-y}Qt(e,p),Kt(e),("left"in t||"top"in t)&&zt(e,c);var g={};for(var b in t)if(t.hasOwnProperty(b)){var w=ln(b,n),E=t[b]-f[b];g[w]=b===w?p[w]+E:p[w]-E}Qt(e,g)}function cn(e,t){var n=tn(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Ut());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(Ut());if(r&&"none"!==r){var o,i=r.match(Wt);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,Yt(e,"matrix(".concat(o.join(","),")"))):((o=r.match(Gt)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,Yt(e,"matrix3d(".concat(o.join(","),")")))}else Yt(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function fn(e,t){for(var n=0;n<e.length;n++)t(e[n])}function dn(e){return"border-box"===$t(e,"boxSizing")}"undefined"!=typeof window&&($t=window.getComputedStyle?function(e,t,n){var r=n,o="",i=rn(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(on.test(n)&&!an.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var pn=["margin","border","padding"];function hn(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function mn(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var l=void 0;l="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat($t(e,l))||0}return a}var vn={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function yn(e,t,n){var r=n;if(nn(e))return"width"===t?vn.viewportWidth(e):vn.viewportHeight(e);if(9===e.nodeType)return"width"===t?vn.docWidth(e):vn.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=dn(e),l=0;(null===i||i===undefined||i<=0)&&(i=undefined,(null===(l=$t(e,t))||l===undefined||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),r===undefined&&(r=a?1:-1);var u=i!==undefined||a,s=i||l;return-1===r?u?s-mn(e,["border","padding"],o):l:u?1===r?s:s+(2===r?-mn(e,["border"],o):mn(e,["margin"],o)):l+mn(e,pn.slice(r),o)}fn(["Width","Height"],(function(e){vn["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],vn["viewport".concat(e)](n))},vn["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var gn={position:"absolute",visibility:"hidden",display:"block"};function bn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=yn.apply(undefined,t):hn(o,gn,(function(){r=yn.apply(undefined,t)})),r}function wn(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}fn(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);vn["outer".concat(t)]=function(t,n){return t&&bn(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];vn[e]=function(t,r){var o=r;return o!==undefined?t?(dn(t)&&(o+=mn(t,["padding","border"],n)),Qt(t,e,o)):undefined:t&&bn(t,e,-1)}}));var En={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:rn,offset:function(e,t,n){if(void 0===t)return tn(e);!function(e,t,n){if(n.ignoreShake){var r=tn(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),l=t.top.toFixed(0);if(o===a&&i===l)return}n.useCssRight||n.useCssBottom?sn(e,t,n):n.useCssTransform&&Ut()in document.body.style?cn(e,t):sn(e,t,n)}(e,t,n||{})},isWindow:nn,each:fn,css:Qt,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:wn,getWindowScrollLeft:function(e){return Jt(e)},getWindowScrollTop:function(e){return en(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)En.mix(e,t<0||arguments.length<=t?undefined:arguments[t]);return e},viewportWidth:0,viewportHeight:0};wn(En,vn);var xn=En.getParent;function On(e){if(En.isWindow(e)||9===e.nodeType)return null;var t,n=En.getDocument(e).body,r=En.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:xn(e);for(t=xn(e);t&&t!==n&&9!==t.nodeType;t=xn(t))if("static"!==(r=En.css(t,"position")))return t;return null}var Cn=En.getParent;function kn(e,t){for(var n={left:0,right:Infinity,top:0,bottom:Infinity},r=On(e),o=En.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,l=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===l||"visible"===En.css(r,"overflow")){if(r===a||r===l)break}else{var u=En.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=On(r)}var s=null;En.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===En.css(e,"position")&&(e.style.position="fixed"));var c=En.getWindowScrollLeft(i),f=En.getWindowScrollTop(i),d=En.viewportWidth(i),p=En.viewportHeight(i),h=l.scrollWidth,m=l.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=i.innerWidth),"hidden"===v.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(En.isWindow(e)||9===e.nodeType)return!1;var t=En.getDocument(e),n=t.body,r=null;for(r=Cn(e);r&&r!==n&&r!==t;r=Cn(r))if("fixed"===En.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,f),n.right=Math.min(n.right,c+d),n.bottom=Math.min(n.bottom,f+p);else{var y=Math.max(h,c+d);n.right=Math.min(n.right,y);var g=Math.max(m,f+p);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function _n(e){var t,n,r;if(En.isWindow(e)||9===e.nodeType){var o=En.getWindow(e);t={left:En.getWindowScrollLeft(o),top:En.getWindowScrollTop(o)},n=En.viewportWidth(o),r=En.viewportHeight(o)}else t=En.offset(e),n=En.outerWidth(e),r=En.outerHeight(e);return t.width=n,t.height=r,t}function qn(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return"c"===n?l+=i/2:"b"===n&&(l+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:l}}function Sn(e,t,n,r,o){var i=qn(t,n[1]),a=qn(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function Pn(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Tn(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Nn(e,t,n){var r=[];return En.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function An(e,t){return e[t]=-e[t],e}function jn(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Mn(e,t){e[0]=jn(e[0],t.width),e[1]=jn(e[1],t.height)}function Ln(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],l=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},c=0,f=kn(u,!(!(l=l||{})||!l.alwaysByViewport)),d=_n(u);Mn(i,d),Mn(a,t);var p=Sn(d,t,o,i,a),h=En.merge(d,p);if(f&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&Pn(p,d,f)){var m=Nn(o,/[lr]/gi,{l:"r",r:"l"}),v=An(i,0),y=An(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Sn(d,t,m,v,y),d,f)||(c=1,o=m,i=v,a=y)}if(l.adjustY&&Tn(p,d,f)){var g=Nn(o,/[tb]/gi,{t:"b",b:"t"}),b=An(i,1),w=An(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Sn(d,t,g,b,w),d,f)||(c=1,o=g,i=b,a=w)}c&&(p=Sn(d,t,o,i,a),En.mix(h,p));var E=Pn(p,d,f),x=Tn(p,d,f);if(E||x){var O=o;E&&(O=Nn(o,/[lr]/gi,{l:"r",r:"l"})),x&&(O=Nn(o,/[tb]/gi,{t:"b",b:"t"})),o=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=l.adjustX&&E,s.adjustY=l.adjustY&&x,(s.adjustX||s.adjustY)&&(h=function(e,t,n,r){var o=En.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),En.mix(o,i)}(p,d,f,s))}return h.width!==d.width&&En.css(u,"width",En.width(u)+h.width-d.width),h.height!==d.height&&En.css(u,"height",En.height(u)+h.height-d.height),En.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Rn(e,t,n){var r=n.target||t,o=_n(r),i=!function(e,t){var n=kn(e,t),r=_n(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ln(e,o,n,i)}Rn.__getOffsetParent=On,Rn.__getVisibleRectForElement=kn;var Dn=n(8446),Zn=n.n(Dn),In=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Fn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Hn="undefined"!=typeof n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Vn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Hn):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Bn=["top","right","bottom","left","width","height","size","weight"],Un="undefined"!=typeof MutationObserver,zn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Vn(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Fn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Un?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Fn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Bn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Yn=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},$n=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Hn},Wn=er(0,0,0,0);function Gn(e){return parseFloat(e)||0}function Kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Gn(e["border-"+n+"-width"])}),0)}function Qn(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Wn;var r=$n(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Gn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Gn(r.width),u=Gn(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Kn(r,"left","right")+i),Math.round(u+a)!==n&&(u-=Kn(r,"top","bottom")+a)),!function(e){return e===$n(e).document.documentElement}(e)){var s=Math.round(l+i)-t,c=Math.round(u+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(c)&&(u-=c)}return er(o.left,o.top,l,u)}var Xn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof $n(e).SVGGraphicsElement}:function(e){return e instanceof $n(e).SVGElement&&"function"==typeof e.getBBox};function Jn(e){return Fn?Xn(e)?function(e){var t=e.getBBox();return er(0,0,t.width,t.height)}(e):Qn(e):Wn}function er(e,t,n,r){return{x:e,y:t,width:n,height:r}}var tr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=er(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Jn(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),nr=function(e,t){var n,r,o,i,a,l,u,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(l.prototype),Yn(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);Yn(this,{target:e,contentRect:s})},rr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new In,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new tr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof $n(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t["delete"](e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new nr(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),or="undefined"!=typeof WeakMap?new WeakMap:new In,ir=function Bi(e){if(!(this instanceof Bi))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=zn.getInstance(),n=new rr(e,t,this);or.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){ir.prototype[e]=function(){var t;return(t=or.get(this))[e].apply(t,arguments)}}));const ar="undefined"!=typeof Hn.ResizeObserver?Hn.ResizeObserver:ir;function lr(e,t){var n=null,r=null;var o=new ar((function(e){var o=(0,s.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,l=i.height,u=Math.floor(a),c=Math.floor(l);n===u&&r===c||Promise.resolve().then((function(){t({width:u,height:c})})),n=u,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function ur(e){return"function"!=typeof e?null:e()}function sr(e){return"object"===(0,te.Z)(e)&&e?e:null}var cr=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,l=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,f=void 0===c?0:c,d=a().useRef({}),p=a().useRef(),h=a().Children.only(n),m=a().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=i,m.current.onAlign=l;var v=function(e,t){var n=a().useRef(!1),r=a().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=p.current,l=ur(n),u=sr(n);d.current.element=l,d.current.point=u,d.current.align=r;var s=document.activeElement;return l&&ge(l)?i=Rn(a,l,r):u&&(i=function(e,t,n){var r,o,i=En.getDocument(e),a=i.defaultView||i.parentWindow,l=En.getWindowScrollLeft(a),u=En.getWindowScrollTop(a),s=En.viewportWidth(a),c=En.viewportHeight(a),f={left:r="pageX"in t?t.pageX:l+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},d=r>=0&&r<=l+s&&o>=0&&o<=u+c,p=[n.points[0],"cc"];return Ln(e,f,Zt(Zt({},n),{},{points:p}),d)}(a,u,r)),function(e,t){e!==document.activeElement&&(0,_t.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),f),y=(0,s.Z)(v,2),g=y[0],b=y[1],w=a().useRef({cancel:function(){}}),E=a().useRef({cancel:function(){}});a().useEffect((function(){var e,t,n=ur(o),r=sr(o);p.current!==E.current.element&&(E.current.cancel(),E.current.element=p.current,E.current.cancel=lr(p.current,g)),d.current.element===n&&((e=d.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Zn()(d.current.align,i)||(g(),w.current.element!==n&&(w.current.cancel(),w.current.element=n,w.current.cancel=lr(n,g)))})),a().useEffect((function(){r?b():g()}),[r]);var x=a().useRef(null);return a().useEffect((function(){u?x.current||(x.current=Pt(window,"resize",g)):x.current&&(x.current.remove(),x.current=null)}),[u]),a().useEffect((function(){return function(){w.current.cancel(),E.current.cancel(),x.current&&x.current.remove(),b()}}),[]),a().useImperativeHandle(t,(function(){return{forceAlign:function(){return g(!0)}}})),a().isValidElement(h)&&(h=a().cloneElement(h,{ref:(0,St.sQ)(h.ref,p)})),h},fr=a().forwardRef(cr);fr.displayName="Align";const dr=fr;function pr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ |
| 13 |
pr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(S){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:E(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==(0,te.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return q()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:q}}function q(){return{value:undefined,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),f}},e}function hr(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){hr(i,r,o,a,l,"next",e)}function l(e){hr(i,r,o,a,l,"throw",e)}a(undefined)}))}}var vr=["measure","alignPre","align",null,"motion"];var yr=i.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,l=e.style,u=e.children,f=e.zIndex,d=e.stretch,p=e.destroyPopupOnHide,h=e.forceRender,m=e.align,y=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,x=e.onMouseLeave,O=e.onMouseDown,C=e.onTouchStart,k=e.onClick,_=(0,i.useRef)(),q=(0,i.useRef)(),S=(0,i.useState)(),P=(0,s.Z)(S,2),T=P[0],N=P[1],A=function(e){var t=i.useState({width:0,height:0}),n=(0,s.Z)(t,2),r=n[0],o=n[1];return[i.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(d),j=(0,s.Z)(A,2),M=j[0],L=j[1];var R=function(e,t){var n=(0,X.Z)(null),r=(0,s.Z)(n,2),o=r[0],a=r[1],l=(0,i.useRef)();function u(e){a(e,!0)}function c(){ye.Z.cancel(l.current)}return(0,i.useEffect)((function(){u("measure")}),[e]),(0,i.useEffect)((function(){"measure"===o&&t(),o&&(l.current=(0,ye.Z)(mr(pr().mark((function e(){var t,n;return pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=vr.indexOf(o),(n=vr[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,i.useEffect)((function(){return function(){c()}}),[]),[o,function(e){c(),l.current=(0,ye.Z)((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){d&&L(g())})),D=(0,s.Z)(R,2),Z=D[0],I=D[1],F=(0,i.useState)(0),H=(0,s.Z)(F,2),V=H[0],B=H[1],U=(0,i.useRef)();function z(){var e;null===(e=_.current)||void 0===e||e.forceAlign()}function Y(e,t){var n=b(t);T!==n&&N(n),B((function(e){return e+1})),"align"===Z&&(null==w||w(e,t))}K((function(){"alignPre"===Z&&B(0)}),[Z]),K((function(){"align"===Z&&(V<3?z():I((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})))}),[V]);var $=(0,c.Z)({},Lt(e));function W(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=$[e];$[e]=function(e,n){return I(),null==t?void 0:t(e,n)}})),i.useEffect((function(){$.motionName||"motion"!==Z||I()}),[$.motionName,Z]),i.useImperativeHandle(t,(function(){return{forceAlign:z,getElement:function(){return q.current}}}));var G=(0,c.Z)((0,c.Z)({},M),{},{zIndex:f,opacity:"motion"!==Z&&"stable"!==Z&&n?0:undefined,pointerEvents:n||"stable"===Z?undefined:"none"},l),Q=!0;null==m||!m.points||"align"!==Z&&"stable"!==Z||(Q=!1);var J=u;return i.Children.count(u)>1&&(J=i.createElement("div",{className:"".concat(o,"-content")},u)),i.createElement(Mt.Z,(0,r.Z)({visible:n,ref:q,leavedClassName:"".concat(o,"-hidden")},$,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:p,forceRender:h}),(function(e,t){var n=e.className,r=e.style,l=v()(o,a,T,n);return i.createElement(dr,{target:y||g,key:"popup",ref:_,monitorWindowResize:!0,disabled:Q,align:m,onAlign:Y},i.createElement("div",{ref:t,className:l,onMouseEnter:E,onMouseLeave:x,onMouseDownCapture:O,onTouchStartCapture:C,onClick:k,style:(0,c.Z)((0,c.Z)({},r),G)},J))}))}));yr.displayName="PopupInner";const gr=yr;var br=i.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,a=e.zIndex,l=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,f=u.popupStyle,d=u.popupMotion,p=void 0===d?{}:d,h=u.popupRender,m=e.onClick,y=i.useRef();i.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return y.current}}}));var g=(0,c.Z)({zIndex:a},f),b=l;return i.Children.count(l)>1&&(b=i.createElement("div",{className:"".concat(n,"-content")},l)),h&&(b=h(b)),i.createElement(Mt.Z,(0,r.Z)({visible:o,ref:y,removeOnLeave:!0},p),(function(e,t){var r=e.className,o=e.style,a=v()(n,s,r);return i.createElement("div",{ref:t,className:a,onClick:m,style:(0,c.Z)((0,c.Z)({},o),g)},b)}))}));br.displayName="MobilePopupInner";const wr=br;var Er=["visible","mobile"],xr=i.forwardRef((function(e,t){var n=e.visible,o=e.mobile,a=(0,At.Z)(e,Er),l=(0,i.useState)(n),u=(0,s.Z)(l,2),f=u[0],d=u[1],p=(0,i.useState)(!1),h=(0,s.Z)(p,2),m=h[0],v=h[1],y=(0,c.Z)((0,c.Z)({},a),{},{visible:f});(0,i.useEffect)((function(){d(n),n&&o&&v(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[n,o]);var g=m?i.createElement(wr,(0,r.Z)({},y,{mobile:o,ref:t})):i.createElement(gr,(0,r.Z)({},y,{ref:t}));return i.createElement("div",null,i.createElement(Rt,y),g)}));xr.displayName="Popup";const Or=xr;const Cr=i.createContext(null);function kr(){}function _r(){return""}function qr(e){return e?e.ownerDocument:window.document}var Sr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const Pr=(Tr=Tt,Nr=function(e){(0,U.Z)(n,e);var t=(0,z.Z)(n);function n(e){var o,a;return(0,V.Z)(this,n),o=t.call(this,e),(0,u.Z)((0,Ot.Z)(o),"popupRef",i.createRef()),(0,u.Z)((0,Ot.Z)(o),"triggerRef",i.createRef()),(0,u.Z)((0,Ot.Z)(o),"portalContainer",void 0),(0,u.Z)((0,Ot.Z)(o),"attachId",void 0),(0,u.Z)((0,Ot.Z)(o),"clickOutsideHandler",void 0),(0,u.Z)((0,Ot.Z)(o),"touchOutsideHandler",void 0),(0,u.Z)((0,Ot.Z)(o),"contextMenuOutsideHandler1",void 0),(0,u.Z)((0,Ot.Z)(o),"contextMenuOutsideHandler2",void 0),(0,u.Z)((0,Ot.Z)(o),"mouseDownTimeout",void 0),(0,u.Z)((0,Ot.Z)(o),"focusTime",void 0),(0,u.Z)((0,Ot.Z)(o),"preClickTime",void 0),(0,u.Z)((0,Ot.Z)(o),"preTouchTime",void 0),(0,u.Z)((0,Ot.Z)(o),"delayTimer",void 0),(0,u.Z)((0,Ot.Z)(o),"hasPopupMouseDown",void 0),(0,u.Z)((0,Ot.Z)(o),"onMouseEnter",(function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.Z)((0,Ot.Z)(o),"onMouseMove",(function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)})),(0,u.Z)((0,Ot.Z)(o),"onMouseLeave",(function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,u.Z)((0,Ot.Z)(o),"onPopupMouseEnter",(function(){o.clearDelayTimer()})),(0,u.Z)((0,Ot.Z)(o),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,_t.Z)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)})),(0,u.Z)((0,Ot.Z)(o),"onFocus",(function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))})),(0,u.Z)((0,Ot.Z)(o),"onMouseDown",(function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()})),(0,u.Z)((0,Ot.Z)(o),"onTouchStart",(function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()})),(0,u.Z)((0,Ot.Z)(o),"onBlur",(function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)})),(0,u.Z)((0,Ot.Z)(o),"onContextMenu",(function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)})),(0,u.Z)((0,Ot.Z)(o),"onContextMenuClose",(function(){o.isContextMenuToShow()&&o.close()})),(0,u.Z)((0,Ot.Z)(o),"onClick",(function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)})),(0,u.Z)((0,Ot.Z)(o),"onPopupMouseDown",(function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)})),(0,u.Z)((0,Ot.Z)(o),"onDocumentClick",(function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();(0,_t.Z)(n,t)&&!o.isContextMenuOnly()||(0,_t.Z)(r,t)||o.hasPopupMouseDown||o.close()}})),(0,u.Z)((0,Ot.Z)(o),"getRootDomNode",(function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=(0,qt.Z)(o.triggerRef.current);if(t)return t}catch(n){}return kt().findDOMNode((0,Ot.Z)(o))})),(0,u.Z)((0,Ot.Z)(o),"getPopupClassNameFromAlign",(function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,l=n.alignPoint,u=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l=i[a];if(Nt(e[l].points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(i,a,e,l)),u&&t.push(u(e)),t.join(" ")})),(0,u.Z)((0,Ot.Z)(o),"getComponent",(function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,a=e.popupClassName,l=e.onPopupAlign,u=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,f=e.popupStyle,d=e.mask,p=e.maskAnimation,h=e.maskTransitionName,m=e.maskMotion,v=e.zIndex,y=e.popup,g=e.stretch,b=e.alignPoint,w=e.mobile,E=e.forceRender,x=e.onPopupClick,O=o.state,C=O.popupVisible,k=O.point,_=o.getPopupAlign(),q={};return o.isMouseEnterToShow()&&(q.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(q.onMouseLeave=o.onPopupMouseLeave),q.onMouseDown=o.onPopupMouseDown,q.onTouchStart=o.onPopupMouseDown,i.createElement(Or,(0,r.Z)({prefixCls:t,destroyPopupOnHide:n,visible:C,point:b&&k,className:a,align:_,onAlign:l,animation:s,getClassNameFromAlign:o.getPopupClassNameFromAlign},q,{stretch:g,getRootDomNode:o.getRootDomNode,style:f,mask:d,zIndex:v,transitionName:c,maskAnimation:p,maskTransitionName:h,maskMotion:m,ref:o.popupRef,motion:u,mobile:w,forceRender:E,onClick:x}),"function"==typeof y?y():y)})),(0,u.Z)((0,Ot.Z)(o),"attachParent",(function(e){ye.Z.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=(0,ye.Z)((function(){o.attachParent(e)}))})),(0,u.Z)((0,Ot.Z)(o),"getContainer",(function(){if(!o.portalContainer){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.portalContainer=e}return o.attachParent(o.portalContainer),o.portalContainer})),(0,u.Z)((0,Ot.Z)(o),"setPoint",(function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.Z)((0,Ot.Z)(o),"handlePortalUpdate",(function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)})),(0,u.Z)((0,Ot.Z)(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},Sr.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return(0,B.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Pt(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Pt(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Pt(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Pt(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ye.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return(0,c.Z)((0,c.Z)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,o=t.alignPoint,a=t.className,l=t.autoDestroy,u=i.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,o&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var f=v()(u&&u.props&&u.props.className,a);f&&(s.className=f);var d=(0,c.Z)({},s);(0,St.Yr)(u)&&(d.ref=(0,St.sQ)(this.triggerRef,u.ref));var p,h=i.cloneElement(u,d);return(e||this.popupRef.current||r)&&(p=i.createElement(Tr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&l&&(p=null),i.createElement(Cr.Provider,{value:this.triggerContextValue},h,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return n!==undefined&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(i.Component),(0,u.Z)(Nr,"contextType",Cr),(0,u.Z)(Nr,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:_r,getDocument:qr,onPopupVisibleChange:kr,afterPopupVisibleChange:kr,onPopupAlign:kr,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),Nr);var Tr,Nr,Ar={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const jr=function(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,a=e.visible,l=e.dropdownClassName,s=e.dropdownAlign,c=e.transitionName,f=e.getPopupContainer,d=e.children,p=e.range,h=e.popupPlacement,m=e.direction,y="".concat(n,"-dropdown");return i.createElement(Pr,{showAction:[],hideAction:[],popupPlacement:h!==undefined?h:"rtl"===m?"bottomRight":"bottomLeft",builtinPlacements:Ar,prefixCls:y,popupTransitionName:c,popup:r,popupAlign:s,popupVisible:a,popupClassName:v()(l,(t={},(0,u.Z)(t,"".concat(y,"-range"),p),(0,u.Z)(t,"".concat(y,"-rtl"),"rtl"===m),t)),popupStyle:o,getPopupContainer:f},d)};function Mr(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,a=e.forwardKeyDown,l=e.onKeyDown,u=e.blurToCancel,c=e.onSubmit,f=e.onCancel,d=e.onFocus,p=e.onBlur,h=e.currentFocusedKey,m=e.key,v=void 0===m?"start":m,y=(0,i.useState)(!1),g=(0,s.Z)(y,2),b=g[0],w=g[1],E=(0,i.useState)(!1),x=(0,s.Z)(E,2),O=x[0],C=x[1],k=(0,i.useRef)(),_=(0,i.useRef)(!1),q=(0,i.useRef)(!1),S=(0,i.useRef)(!1),P={onMouseDown:function(){w(!0),o(!0)},onKeyDown:function(e){if(l(e,(function(){S.current=!0})),!S.current){switch(e.which){case re.ENTER:return t?!1!==c()&&w(!0):o(!0),void e.preventDefault();case re.TAB:return void(b&&t&&!e.shiftKey?(w(!1),e.preventDefault()):!b&&t&&!a(e)&&e.shiftKey&&(w(!0),e.preventDefault()));case re.ESC:return w(!0),void f()}t||[re.SHIFT].includes(e.which)?b||a(e):o(!0)}},onFocus:function(e){w(!0),C(!0),h&&(h.current=v),clearTimeout(k.current),d&&d(e)},onBlur:function(e){!_.current&&r(document.activeElement)?(u?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&f()}),0):t&&(o(!1),q.current&&c()),C(!1),h?(h.current="",k.current=setTimeout((function(){h.current||null==p||p(e)}),100)):null==p||p(e)):_.current=!1}};return(0,i.useEffect)((function(){q.current=!1}),[t]),(0,i.useEffect)((function(){q.current=!0}),[n]),(0,i.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t){var i=r(n);i?O&&!i||o(!1):(_.current=!0,requestAnimationFrame((function(){_.current=!1})))}},!Ce&&"undefined"!=typeof window&&window.addEventListener&&(Ce=function(e){ve(ke).forEach((function(t){t(e)}))},window.addEventListener("mousedown",Ce)),ke.add(e),function(){ke["delete"](e),0===ke.size&&(window.removeEventListener("mousedown",Ce),Ce=null)};var e})),(0,i.useEffect)((function(){return function(){return clearTimeout(k.current)}}),[]),[P,{focused:O,typing:b}]}function Lr(e){var t=e.valueTexts,n=e.onTextChange,r=i.useState(""),o=(0,s.Z)(r,2),a=o[0],l=o[1],u=i.useRef([]);function c(){l(u.current[0])}return u.current=t,i.useEffect((function(){t.every((function(e){return e!==a}))&&c()}),[t.join("||")]),[a,function(e){l(e),n(e)},c]}var Rr=n(6774),Dr=n.n(Rr);function Zr(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return(0,ze.Z)((function(){if(!e)return[[""],""];for(var t="",i=[],a=0;a<n.length;a+=1){var l=n[a],u=He(e,{generateConfig:r,locale:o,format:l});i.push(u),0===a&&(t=u)}return[i,t]}),[e,n],(function(e,t){return e[0]!==t[0]||!Dr()(e[1],t[1])}))}function Ir(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,a=(0,i.useState)(null),l=(0,s.Z)(a,2),u=l[0],c=l[1],f=(0,i.useRef)(null);function d(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];cancelAnimationFrame(f.current),t?c(e):f.current=requestAnimationFrame((function(){c(e)}))}var p=Zr(u,{formatList:n,generateConfig:r,locale:o}),h=(0,s.Z)(p,2)[1];function m(){var e=arguments.length>0&&arguments[0]!==undefined&&arguments[0];d(null,e)}return(0,i.useEffect)((function(){m(!0)}),[e]),(0,i.useEffect)((function(){return function(){return cancelAnimationFrame(f.current)}}),[]),[h,function(e){d(e)},m]}function Fr(e){var t,n=e.prefixCls,o=void 0===n?"rc-picker":n,a=e.id,l=e.tabIndex,f=e.style,d=e.className,p=e.dropdownClassName,h=e.dropdownAlign,m=e.popupStyle,y=e.transitionName,g=e.generateConfig,b=e.locale,w=e.inputReadOnly,E=e.allowClear,x=e.autoFocus,O=e.showTime,C=e.picker,k=void 0===C?"date":C,_=e.format,q=e.use12Hours,S=e.value,P=e.defaultValue,T=e.open,N=e.defaultOpen,A=e.defaultOpenValue,j=e.suffixIcon,M=e.clearIcon,L=e.disabled,R=e.disabledDate,D=e.placeholder,Z=e.getPopupContainer,I=e.pickerRef,F=e.panelRender,H=e.onChange,V=e.onOpenChange,B=e.onFocus,U=e.onBlur,z=e.onMouseDown,$=e.onMouseUp,W=e.onMouseEnter,G=e.onMouseLeave,K=e.onContextMenu,Q=e.onClick,X=e.onKeyDown,J=e.onSelect,te=e.direction,ne=e.autoComplete,re=void 0===ne?"off":ne,ie=e.inputRender,ae=i.useRef(null),le="date"===k&&!!O||"time"===k;var ue=We(xe(_,k,O,q)),se=i.useRef(null),ce=i.useRef(null),fe=i.useRef(null),de=ee(null,{value:S,defaultValue:P}),pe=(0,s.Z)(de,2),he=pe[0],me=pe[1],ve=i.useState(he),ye=(0,s.Z)(ve,2),ge=ye[0],be=ye[1],we=i.useRef(null),Ee=ee(!1,{value:T,defaultValue:N,postState:function(e){return!L&&e},onChange:function(e){V&&V(e),!e&&we.current&&we.current.onClose&&we.current.onClose()}}),Ce=(0,s.Z)(Ee,2),ke=Ce[0],_e=Ce[1],Se=Zr(ge,{formatList:ue,generateConfig:g,locale:b}),Pe=(0,s.Z)(Se,2),Te=Pe[0],Ne=Pe[1],Ae=Lr({valueTexts:Te,onTextChange:function(e){var t=Ve(e,{locale:b,formatList:ue,generateConfig:g});!t||R&&R(t)||be(t)}}),je=(0,s.Z)(Ae,3),Me=je[0],Le=je[1],Re=je[2],De=function(e){be(e),me(e),H&&!Ze(g,he,e)&&H(e,e?He(e,{generateConfig:g,locale:b,format:ue[0]}):"")},Ie=function(e){L&&e||_e(e)},Fe=Mr({blurToCancel:le,open:ke,value:Me,triggerOpen:Ie,forwardKeyDown:function(e){return ke&&we.current&&we.current.onKeyDown?we.current.onKeyDown(e):((0,Y.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!qe([se.current,ce.current,fe.current],e)},onSubmit:function(){return!(!ge||R&&R(ge))&&(De(ge),Ie(!1),Re(),!0)},onCancel:function(){Ie(!1),be(he),Re()},onKeyDown:function(e,t){null==X||X(e,t)},onFocus:B,onBlur:U}),Be=(0,s.Z)(Fe,2),Ue=Be[0],ze=Be[1],Ye=ze.focused,$e=ze.typing;i.useEffect((function(){ke||(be(he),Te.length&&""!==Te[0]?Ne!==Me&&Re():Le(""))}),[ke,Te]),i.useEffect((function(){ke||Re()}),[k]),i.useEffect((function(){be(he)}),[he]),I&&(I.current={focus:function(){ae.current&&ae.current.focus()},blur:function(){ae.current&&ae.current.blur()}});var Ke=Ir(Me,{formatList:ue,generateConfig:g,locale:b}),Qe=(0,s.Z)(Ke,3),Xe=Qe[0],Je=Qe[1],et=Qe[2],tt=(0,c.Z)((0,c.Z)({},e),{},{className:undefined,style:undefined,pickerValue:undefined,onPickerValueChange:undefined,onChange:null}),nt=i.createElement(xt,(0,r.Z)({},tt,{generateConfig:g,className:v()((0,u.Z)({},"".concat(o,"-panel-focused"),!$e)),value:ge,locale:b,tabIndex:-1,onSelect:function(e){null==J||J(e),be(e)},direction:te,onPanelChange:function(t,n){var r=e.onPanelChange;et(!0),null==r||r(t,n)}}));F&&(nt=F(nt));var rt,ot,it=i.createElement("div",{className:"".concat(o,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},nt);j&&(rt=i.createElement("span",{className:"".concat(o,"-suffix")},j)),E&&he&&!L&&(ot=i.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),De(null),Ie(!1)},className:"".concat(o,"-clear"),role:"button"},M||i.createElement("span",{className:"".concat(o,"-clear-btn")})));var at=(0,c.Z)((0,c.Z)((0,c.Z)({id:a,tabIndex:l,disabled:L,readOnly:w||"function"==typeof ue[0]||!$e,value:Xe||Me,onChange:function(e){Le(e.target.value)},autoFocus:x,placeholder:D,ref:ae,title:Me},Ue),{},{size:Oe(k,ue[0],g)},Ge(e)),{},{autoComplete:re}),lt=ie?ie(at):i.createElement("input",at);var ut="rtl"===te?"bottomRight":"bottomLeft";return i.createElement(oe.Provider,{value:{operationRef:we,hideHeader:"time"===k,panelRef:se,onSelect:function(e,t){("submit"===t||"key"!==t&&!le)&&(De(e),Ie(!1))},open:ke,defaultOpenValue:A,onDateMouseEnter:Je,onDateMouseLeave:et}},i.createElement(jr,{visible:ke,popupElement:it,popupStyle:m,prefixCls:o,dropdownClassName:p,dropdownAlign:h,getPopupContainer:Z,transitionName:y,popupPlacement:ut,direction:te},i.createElement("div",{ref:fe,className:v()(o,d,(t={},(0,u.Z)(t,"".concat(o,"-disabled"),L),(0,u.Z)(t,"".concat(o,"-focused"),Ye),(0,u.Z)(t,"".concat(o,"-rtl"),"rtl"===te),t)),style:f,onMouseDown:z,onMouseUp:$,onMouseEnter:W,onMouseLeave:G,onContextMenu:K,onClick:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==Q||Q.apply(void 0,t),ae.current&&(ae.current.focus(),Ie(!0))}},i.createElement("div",{className:v()("".concat(o,"-input"),(0,u.Z)({},"".concat(o,"-input-placeholder"),!!Xe)),ref:ce},lt,rt,ot))))}const Hr=function(e){(0,U.Z)(n,e);var t=(0,z.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).pickerRef=i.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return(0,B.Z)(n,[{key:"render",value:function(){return i.createElement(Fr,(0,r.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(i.Component);function Vr(e,t,n,r){var o=Fe(e,n,r,1);function i(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return i((function(e,t){return function(e,t,n){var r=Ne(t,n);return"boolean"==typeof r?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(r,e,t)}));case"quarter":case"month":return i((function(e,t){return Ae(r,e,t)}));default:return i((function(e,t){return Le(r,e,t)}))}}function Br(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,a=i.useState((function(){return[Ke(r,0),Ke(r,1)]})),l=(0,s.Z)(a,2),u=l[0],c=l[1],f=i.useState(null),d=(0,s.Z)(f,2),p=d[0],h=d[1],m=Ke(t,0),v=Ke(t,1);return[function(e){return u[e]?u[e]:Ke(p,e)||function(e,t,n,r){var o=Ke(e,0),i=Ke(e,1);if(0===t)return o;if(o&&i)switch(Vr(o,i,n,r)){case"same":case"closing":return o;default:return Fe(i,n,r,-1)}return o}(t,e,n,o)||m||v||o.getNow()},function(e,n){if(e){var r=Qe(p,e,n);c(Qe(u,null,n)||[null,null]);var o=(n+1)%2;Ke(t,o)||(r=Qe(r,e,o)),h(r)}else(m||v)&&h(null)}]}function Ur(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function zr(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function Yr(e){var t,n,o,a=e.prefixCls,l=void 0===a?"rc-picker":a,f=e.id,d=e.style,p=e.className,h=e.popupStyle,m=e.dropdownClassName,y=e.transitionName,g=e.dropdownAlign,b=e.getPopupContainer,w=e.generateConfig,E=e.locale,x=e.placeholder,O=e.autoFocus,C=e.disabled,k=e.format,_=e.picker,q=void 0===_?"date":_,S=e.showTime,P=e.use12Hours,T=e.separator,N=void 0===T?"~":T,A=e.value,j=e.defaultValue,M=e.defaultPickerValue,L=e.open,R=e.defaultOpen,D=e.disabledDate,Z=e.disabledTime,I=e.dateRender,F=e.panelRender,H=e.ranges,V=e.allowEmpty,B=e.allowClear,U=e.suffixIcon,z=e.clearIcon,$=e.pickerRef,W=e.inputReadOnly,G=e.mode,K=e.renderExtraFooter,Q=e.onChange,X=e.onOpenChange,J=e.onPanelChange,ne=e.onCalendarChange,re=e.onFocus,ie=e.onBlur,ae=e.onMouseDown,le=e.onMouseUp,ue=e.onMouseEnter,se=e.onMouseLeave,ce=e.onClick,fe=e.onOk,de=e.onKeyDown,pe=e.components,he=e.order,me=e.direction,ve=e.activePickerIndex,ye=e.autoComplete,ge=void 0===ye?"off":ye,be="date"===q&&!!S||"time"===q,we=(0,i.useRef)({}),Ee=(0,i.useRef)(null),Ce=(0,i.useRef)(null),ke=(0,i.useRef)(null),_e=(0,i.useRef)(null),Se=(0,i.useRef)(null),Pe=(0,i.useRef)(null),Te=(0,i.useRef)(null),Ne=(0,i.useRef)(null);var Ae=We(xe(k,q,S,P)),Le=ee(0,{value:ve}),Ie=(0,s.Z)(Le,2),Be=Ie[0],Ue=Ie[1],ze=(0,i.useRef)(null),Ye=i.useMemo((function(){return Array.isArray(C)?C:[C||!1,C||!1]}),[C]),$e=ee(null,{value:A,defaultValue:j,postState:function(e){return"time"!==q||he?Ur(e,w):e}}),Xe=(0,s.Z)($e,2),Je=Xe[0],et=Xe[1],tt=Br({values:Je,picker:q,defaultDates:M,generateConfig:w}),rt=(0,s.Z)(tt,2),ot=rt[0],it=rt[1],at=ee(Je,{postState:function(e){var t=e;if(Ye[0]&&Ye[1])return t;for(var n=0;n<2;n+=1)!Ye[n]||Ke(t,n)||Ke(V,n)||(t=Qe(t,w.getNow(),n));return t}}),lt=(0,s.Z)(at,2),ut=lt[0],st=lt[1],ct=ee([q,q],{value:G}),ft=(0,s.Z)(ct,2),dt=ft[0],pt=ft[1];(0,i.useEffect)((function(){pt([q,q])}),[q]);var ht=function(e,t){pt(e),J&&J(t,e)},mt=function(e,t,n){var r=e.picker,o=e.locale,a=e.selectedValue,l=e.disabledDate,u=e.disabled,s=e.generateConfig,c=Ke(a,0),f=Ke(a,1);function d(e){return s.locale.getWeekFirstDate(o.locale,e)}function p(e){return 100*s.getYear(e)+s.getMonth(e)}function h(e){return 10*s.getYear(e)+je(s,e)}var m=i.useCallback((function(e){if(l&&l(e))return!0;if(u[1]&&f)return!Re(s,e,f)&&s.isAfter(e,f);if(t&&f)switch(r){case"quarter":return h(e)>h(f);case"month":return p(e)>p(f);case"week":return d(e)>d(f);default:return!Re(s,e,f)&&s.isAfter(e,f)}return!1}),[l,u[1],f,t]),v=i.useCallback((function(e){if(l&&l(e))return!0;if(u[0]&&c)return!Re(s,e,f)&&s.isAfter(c,e);if(n&&c)switch(r){case"quarter":return h(e)<h(c);case"month":return p(e)<p(c);case"week":return d(e)<d(c);default:return!Re(s,e,c)&&s.isAfter(c,e)}return!1}),[l,u[0],c,n]);return[m,v]}({picker:q,selectedValue:ut,locale:E,disabled:Ye,disabledDate:D,generateConfig:w},we.current[1],we.current[0]),vt=(0,s.Z)(mt,2),yt=vt[0],gt=vt[1],bt=ee(!1,{value:L,defaultValue:R,postState:function(e){return!Ye[Be]&&e},onChange:function(e){X&&X(e),!e&&ze.current&&ze.current.onClose&&ze.current.onClose()}}),Ot=(0,s.Z)(bt,2),Ct=Ot[0],kt=Ot[1],_t=Ct&&0===Be,qt=Ct&&1===Be,St=(0,i.useState)(0),Pt=(0,s.Z)(St,2),Tt=Pt[0],Nt=Pt[1];(0,i.useEffect)((function(){!Ct&&Ee.current&&Nt(Ee.current.offsetWidth)}),[Ct]);var At=i.useRef();function jt(e,t){if(e)clearTimeout(At.current),we.current[t]=!0,Ue(t),kt(e),Ct||it(null,t);else if(Be===t){kt(e);var n=we.current;At.current=setTimeout((function(){n===we.current&&(we.current={})}))}}function Mt(e){jt(!0,e),setTimeout((function(){var t=[Pe,Te][e];t.current&&t.current.focus()}),0)}function Lt(e,t){var n=e,r=Ke(n,0),o=Ke(n,1);r&&o&&w.isAfter(r,o)&&("week"===q&&!De(w,E.locale,r,o)||"quarter"===q&&!Me(w,r,o)||"week"!==q&&"quarter"!==q&&"time"!==q&&!Re(w,r,o)?(0===t?(n=[r,null],o=null):(r=null,n=[null,o]),we.current=(0,u.Z)({},t,!0)):"time"===q&&!1===he||(n=Ur(n,w))),st(n);var i=n&&n[0]?He(n[0],{generateConfig:w,locale:E,format:Ae[0]}):"",a=n&&n[1]?He(n[1],{generateConfig:w,locale:E,format:Ae[0]}):"";ne&&ne(n,[i,a],{range:0===t?"start":"end"});var l=zr(r,0,Ye,V),s=zr(o,1,Ye,V);(null===n||l&&s)&&(et(n),!Q||Ze(w,Ke(Je,0),r)&&Ze(w,Ke(Je,1),o)||Q(n,[i,a]));var c=null;0!==t||Ye[1]?1!==t||Ye[0]||(c=0):c=1,null===c||c===Be||we.current[c]&&Ke(n,c)||!Ke(n,t)?jt(!1,t):Mt(c)}var Rt=function(e){return Ct&&ze.current&&ze.current.onKeyDown?ze.current.onKeyDown(e):((0,Y.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Dt={formatList:Ae,generateConfig:w,locale:E},Zt=Zr(Ke(ut,0),Dt),It=(0,s.Z)(Zt,2),Ft=It[0],Ht=It[1],Vt=Zr(Ke(ut,1),Dt),Bt=(0,s.Z)(Vt,2),Ut=Bt[0],zt=Bt[1],Yt=function(e,t){var n=Ve(e,{locale:E,formatList:Ae,generateConfig:w});n&&!(0===t?yt:gt)(n)&&(st(Qe(ut,n,t)),it(n,t))},$t=Lr({valueTexts:Ft,onTextChange:function(e){return Yt(e,0)}}),Wt=(0,s.Z)($t,3),Gt=Wt[0],Kt=Wt[1],Qt=Wt[2],Xt=Lr({valueTexts:Ut,onTextChange:function(e){return Yt(e,1)}}),Jt=(0,s.Z)(Xt,3),en=Jt[0],tn=Jt[1],nn=Jt[2],rn=(0,i.useState)(null),on=(0,s.Z)(rn,2),an=on[0],ln=on[1],un=(0,i.useState)(null),sn=(0,s.Z)(un,2),cn=sn[0],fn=sn[1],dn=Ir(Gt,{formatList:Ae,generateConfig:w,locale:E}),pn=(0,s.Z)(dn,3),hn=pn[0],mn=pn[1],vn=pn[2],yn=Ir(en,{formatList:Ae,generateConfig:w,locale:E}),gn=(0,s.Z)(yn,3),bn=gn[0],wn=gn[1],En=gn[2],xn=function(e,t){return{blurToCancel:be,forwardKeyDown:Rt,onBlur:ie,isClickOutside:function(e){return!qe([Ce.current,ke.current,_e.current,Ee.current],e)},onFocus:function(t){Ue(e),re&&re(t)},triggerOpen:function(t){jt(t,e)},onSubmit:function(){if(!ut||D&&D(ut[e]))return!1;Lt(ut,e),t()},onCancel:function(){jt(!1,e),st(Je),t()}}},On=(0,i.useRef)(""),Cn=Mr((0,c.Z)((0,c.Z)({},xn(0,Qt)),{},{open:_t,value:Gt,currentFocusedKey:On,key:"start",onKeyDown:function(e,t){null==de||de(e,t)}})),kn=(0,s.Z)(Cn,2),_n=kn[0],qn=kn[1],Sn=qn.focused,Pn=qn.typing,Tn=Mr((0,c.Z)((0,c.Z)({},xn(1,nn)),{},{open:qt,value:en,currentFocusedKey:On,key:"end",onKeyDown:function(e,t){null==de||de(e,t)}})),Nn=(0,s.Z)(Tn,2),An=Nn[0],jn=Nn[1],Mn=jn.focused,Ln=jn.typing,Rn=Je&&Je[0]?He(Je[0],{locale:E,format:"YYYYMMDDHHmmss",generateConfig:w}):"",Dn=Je&&Je[1]?He(Je[1],{locale:E,format:"YYYYMMDDHHmmss",generateConfig:w}):"";(0,i.useEffect)((function(){Ct||(st(Je),Ft.length&&""!==Ft[0]?Ht!==Gt&&Qt():Kt(""),Ut.length&&""!==Ut[0]?zt!==en&&nn():tn(""))}),[Ct,Ft,Ut]),(0,i.useEffect)((function(){st(Je)}),[Rn,Dn]),$&&($.current={focus:function(){Pe.current&&Pe.current.focus()},blur:function(){Pe.current&&Pe.current.blur(),Te.current&&Te.current.blur()}});var Zn=Object.keys(H||{}).map((function(e){var t=H[e],n="function"==typeof t?t():t;return{label:e,onClick:function(){Lt(n,null),jt(!1,Be)},onMouseEnter:function(){ln(n)},onMouseLeave:function(){ln(null)}}}));function In(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0],n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},o=null;Ct&&cn&&cn[0]&&cn[1]&&w.isAfter(cn[1],cn[0])&&(o=cn);var a=S;if(S&&"object"===(0,te.Z)(S)&&S.defaultValue){var s=S.defaultValue;a=(0,c.Z)((0,c.Z)({},S),{},{defaultValue:Ke(s,Be)||undefined})}var f=null;return I&&(f=function(e,t){return I(e,t,{range:Be?"end":"start"})}),i.createElement(nt.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:an||ut,hoverRangedValue:o}},i.createElement(xt,(0,r.Z)({},e,n,{dateRender:f,showTime:a,mode:dt[Be],generateConfig:w,style:undefined,direction:me,disabledDate:0===Be?yt:gt,disabledTime:function(e){return!!Z&&Z(e,0===Be?"start":"end")},className:v()((0,u.Z)({},"".concat(l,"-panel-focused"),0===Be?!Pn:!Ln)),value:Ke(ut,Be),locale:E,tabIndex:-1,onPanelChange:function(e,n){0===Be&&vn(!0),1===Be&&En(!0),ht(Qe(dt,n,Be),Qe(ut,e,Be));var r=e;"right"===t&&dt[Be]===n&&(r=Fe(r,n,w,-1)),it(r,Be)},onOk:null,onSelect:undefined,onChange:undefined,defaultValue:Ke(ut,0===Be?1:0)})))}var Fn=0,Hn=0;if(Be&&ke.current&&Se.current&&Ce.current){Fn=ke.current.offsetWidth+Se.current.offsetWidth;var Vn=Ne.current.offsetLeft>Fn?Ne.current.offsetLeft-Fn:Ne.current.offsetLeft;Ce.current.offsetWidth&&Ne.current.offsetWidth&&Fn>Ce.current.offsetWidth-Ne.current.offsetWidth-("rtl"===me?0:Vn)&&(Hn=Fn)}var Bn="rtl"===me?{right:Fn}:{left:Fn};var Un,zn,Yn=i.createElement("div",{className:v()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(q,"-range-wrapper")),style:{minWidth:Tt}},i.createElement("div",{ref:Ne,className:"".concat(l,"-range-arrow"),style:Bn}),function(){var e,t=wt(l,dt[Be],K),n=Et({prefixCls:l,components:pe,needConfirmButton:be,okDisabled:!Ke(ut,Be)||D&&D(ut[Be]),locale:E,rangeList:Zn,onOk:function(){Ke(ut,Be)&&(Lt(ut,Be),fe&&fe(ut))}});if("time"===q||S)e=In();else{var r=ot(Be),o=Fe(r,q,w),a=dt[Be]===q,u=In(!!a&&"left",{pickerValue:r,onPickerValueChange:function(e){it(e,Be)}}),s=In("right",{pickerValue:o,onPickerValueChange:function(e){it(Fe(e,q,w,-1),Be)}});e="rtl"===me?i.createElement(i.Fragment,null,s,a&&u):i.createElement(i.Fragment,null,u,a&&s)}var c=i.createElement(i.Fragment,null,i.createElement("div",{className:"".concat(l,"-panels")},e),(t||n)&&i.createElement("div",{className:"".concat(l,"-footer")},t,n));return F&&(c=F(c)),i.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Hn},ref:Ce,onMouseDown:function(e){e.preventDefault()}},c)}());U&&(Un=i.createElement("span",{className:"".concat(l,"-suffix")},U)),B&&(Ke(Je,0)&&!Ye[0]||Ke(Je,1)&&!Ye[1])&&(zn=i.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Je;Ye[0]||(t=Qe(t,null,0)),Ye[1]||(t=Qe(t,null,1)),Lt(t,null),jt(!1,Be)},className:"".concat(l,"-clear")},z||i.createElement("span",{className:"".concat(l,"-clear-btn")})));var $n={size:Oe(q,Ae[0],w)},Wn=0,Gn=0;ke.current&&_e.current&&Se.current&&(0===Be?Gn=ke.current.offsetWidth:(Wn=Fn,Gn=_e.current.offsetWidth));var Kn="rtl"===me?{right:Wn}:{left:Wn};return i.createElement(oe.Provider,{value:{operationRef:ze,hideHeader:"time"===q,onDateMouseEnter:function(e){fn(Qe(ut,e,Be)),0===Be?mn(e):wn(e)},onDateMouseLeave:function(){fn(Qe(ut,null,Be)),0===Be?vn():En()},hideRanges:!0,onSelect:function(e,t){var n=Qe(ut,e,Be);"submit"===t||"key"!==t&&!be?(Lt(n,Be),0===Be?vn():En()):st(n)},open:Ct}},i.createElement(jr,{visible:Ct,popupElement:Yn,popupStyle:h,prefixCls:l,dropdownClassName:m,dropdownAlign:g,getPopupContainer:b,transitionName:y,range:!0,direction:me},i.createElement("div",(0,r.Z)({ref:Ee,className:v()(l,"".concat(l,"-range"),p,(t={},(0,u.Z)(t,"".concat(l,"-disabled"),Ye[0]&&Ye[1]),(0,u.Z)(t,"".concat(l,"-focused"),0===Be?Sn:Mn),(0,u.Z)(t,"".concat(l,"-rtl"),"rtl"===me),t)),style:d,onClick:function(e){ce&&ce(e),Ct||Pe.current.contains(e.target)||Te.current.contains(e.target)||(Ye[0]?Ye[1]||Mt(1):Mt(0))},onMouseEnter:ue,onMouseLeave:se,onMouseDown:function(e){ae&&ae(e),!Ct||!Sn&&!Mn||Pe.current.contains(e.target)||Te.current.contains(e.target)||e.preventDefault()},onMouseUp:le},Ge(e)),i.createElement("div",{className:v()("".concat(l,"-input"),(n={},(0,u.Z)(n,"".concat(l,"-input-active"),0===Be),(0,u.Z)(n,"".concat(l,"-input-placeholder"),!!hn),n)),ref:ke},i.createElement("input",(0,r.Z)({id:f,disabled:Ye[0],readOnly:W||"function"==typeof Ae[0]||!Pn,value:hn||Gt,onChange:function(e){Kt(e.target.value)},autoFocus:O,placeholder:Ke(x,0)||"",ref:Pe},_n,$n,{autoComplete:ge}))),i.createElement("div",{className:"".concat(l,"-range-separator"),ref:Se},N),i.createElement("div",{className:v()("".concat(l,"-input"),(o={},(0,u.Z)(o,"".concat(l,"-input-active"),1===Be),(0,u.Z)(o,"".concat(l,"-input-placeholder"),!!bn),o)),ref:_e},i.createElement("input",(0,r.Z)({disabled:Ye[1],readOnly:W||"function"==typeof Ae[0]||!Ln,value:bn||en,onChange:function(e){tn(e.target.value)},placeholder:Ke(x,1)||"",ref:Te},An,$n,{autoComplete:ge}))),i.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,c.Z)((0,c.Z)({},Kn),{},{width:Gn,position:"absolute"})}),Un,zn)))}const $r=function(e){(0,U.Z)(n,e);var t=(0,z.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).pickerRef=i.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return(0,B.Z)(n,[{key:"render",value:function(){return i.createElement(Yr,(0,r.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(i.Component),Wr=Hr;var Gr=n(9098),Kr=n(7647),Qr=n(344),Xr="RC_FORM_INTERNAL_HOOKS",Jr=function(){(0,Y.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const eo=i.createContext({getFieldValue:Jr,getFieldsValue:Jr,getFieldError:Jr,getFieldWarning:Jr,getFieldsError:Jr,isFieldsTouched:Jr,isFieldTouched:Jr,isFieldValidating:Jr,isFieldsValidating:Jr,resetFields:Jr,setFields:Jr,setFieldValue:Jr,setFieldsValue:Jr,validateFields:Jr,submit:Jr,getInternalHooks:function(){return Jr(),{dispatch:Jr,initEntityValue:Jr,registerField:Jr,useSubscribe:Jr,setInitialValues:Jr,destroyForm:Jr,setCallbacks:Jr,registerWatch:Jr,getFields:Jr,setValidateMessages:Jr,setPreserve:Jr,getInitialValue:Jr}}});function to(e){return e===undefined||null===e?[]:Array.isArray(e)?e:[e]}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oo(e,t)}function io(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ao(e,t,n){return ao=io()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&oo(o,n.prototype),o},ao.apply(null,arguments)}function lo(e){var t="function"==typeof Map?new Map:undefined;return lo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ao(e,arguments,ro(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),oo(r,e)},lo(e)}var uo=/%[sdj%]/g;function so(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(uo,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function fo(e,t){return e===undefined||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function po(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var ho=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,oo(t,n),r}(lo(Error));function mo(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);po(a,n,(function(e){return r(e),e.length?i(new ho(e,so(e))):t(o)}))}));return i["catch"]((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,s=0,c=[],f=new Promise((function(t,i){var f=function(e){if(c.push.apply(c,e),++s===u)return r(c),c.length?i(new ho(c,so(c))):t(o)};l.length||(r(c),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?po(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f["catch"]((function(e){return e})),f}function vo(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(n==undefined)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&o.message!==undefined?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function yo(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=no({},e[n],r):e[n]=r}return e}var go,bo=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!fo(t,i||e.type)||r.push(co(o.messages.required,e.fullField))},wo=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Eo=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xo={integer:function(e){return xo.number(e)&&parseInt(e,10)===e},float:function(e){return xo.number(e)&&!xo.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!xo.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(wo)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(go)return go;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),u=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};u.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},u.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var s=u.v4().source,c=u.v6().source;return go=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+s+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Eo)}},Oo={required:bo,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(co(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&t===undefined)bo(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?xo[i](t)||r.push(co(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(co(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,u=t,s=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?s="number":f?s="string":d&&(s="array"),!s)return!1;d&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(co(o.messages[s].len,e.fullField,e.len)):a&&!l&&u<e.min?r.push(co(o.messages[s].min,e.fullField,e.min)):l&&!a&&u>e.max?r.push(co(o.messages[s].max,e.fullField,e.max)):a&&l&&(u<e.min||u>e.max)&&r.push(co(o.messages[s].range,e.fullField,e.min,e.max))},"enum":function(e,t,n,r,o){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&r.push(co(o.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(co(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(co(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Co=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t,i)&&!e.required)return n();Oo.required(e,t,r,a,o,i),fo(t,i)||Oo.type(e,t,r,a,o)}n(a)},ko={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t,"string")&&!e.required)return n();Oo.required(e,t,r,i,o,"string"),fo(t,"string")||(Oo.type(e,t,r,i,o),Oo.range(e,t,r,i,o),Oo.pattern(e,t,r,i,o),!0===e.whitespace&&Oo.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&Oo.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=undefined),fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&(Oo.type(e,t,r,i,o),Oo.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&Oo.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),fo(t)||Oo.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&(Oo.type(e,t,r,i,o),Oo.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&(Oo.type(e,t,r,i,o),Oo.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((t===undefined||null===t)&&!e.required)return n();Oo.required(e,t,r,i,o,"array"),t!==undefined&&null!==t&&(Oo.type(e,t,r,i,o),Oo.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&Oo.type(e,t,r,i,o)}n(i)},"enum":function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o),t!==undefined&&Oo["enum"](e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t,"string")&&!e.required)return n();Oo.required(e,t,r,i,o),fo(t,"string")||Oo.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t,"date")&&!e.required)return n();var a;if(Oo.required(e,t,r,i,o),!fo(t,"date"))a=t instanceof Date?t:new Date(t),Oo.type(e,a,r,i,o),a&&Oo.range(e,a.getTime(),r,i,o)}n(i)},url:Co,hex:Co,email:Co,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;Oo.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fo(t)&&!e.required)return n();Oo.required(e,t,r,i,o)}n(i)}};function _o(){return{"default":"Validation error on field %s",required:"%s is required","enum":"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var qo=_o(),So=function(){function e(e){this.rules=null,this._messages=qo,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=yo(_o(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var u=this.messages();u===qo&&(u=_o()),yo(u,a.messages),a.messages=u}else a.messages=this.messages();var s={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=no({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:no({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:r,source:i,field:e}))}))}));var c={};return mo(s,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function u(e,t){return no({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function s(r){void 0===r&&(r=[]);var s=Array.isArray(r)?r:[r];!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&o.message!==undefined&&(s=[].concat(o.message));var f=s.map(vo(o,i));if(a.first&&f.length)return c[o.field]=1,n(f);if(l){if(o.required&&!t.value)return o.message!==undefined?f=[].concat(o.message).map(vo(o,i)):a.error&&(f=[a.error(o,co(a.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map((function(e){d[e]=o.defaultField})),d=no({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(u.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,s,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,s,t.source,a)}catch(f){null==console.error||console.error(f),a.suppressValidatorError||setTimeout((function(){throw f}),0),s(f.message)}!0===r?s():!1===r?s("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)}r&&r.then&&r.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,t):r.push(t);r.length?(o=so(r),l(r,o)):l(null,i)}(e)}),i)},t.getType=function(e){if(e.type===undefined&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!ko.hasOwnProperty(e.type))throw new Error(co("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ko.required:ko[this.getType(e)]||undefined},e}();So.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ko[e]=t},So.warning=function(){},So.messages=qo,So.validators=ko;var Po="'${name}' is not a valid ${type}",To={"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:Po,method:Po,array:Po,object:Po,number:Po,date:Po,boolean:Po,integer:Po,float:Po,regexp:Po,email:Po,url:Po,hex:Po},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}"}};function No(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||n===undefined)return undefined;n=n[t[r]]}return n}var Ao=n(3878),jo=n(5267);function Mo(e,t,n,r){if(!t.length)return n;var o,i,a=(o=t,(0,Ao.Z)(o)||he(o)||(0,me.Z)(o)||(0,jo.Z)()),l=a[0],u=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?ve(e):(0,c.Z)({},e):[],r&&n===undefined&&1===u.length?delete i[l][u[0]]:i[l]=Mo(i[l],u,n,r),i}function Lo(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined&&arguments[3];return t.length&&r&&n===undefined&&!No(e,t.slice(0,-1))?e:Mo(e,t,n,r)}function Ro(e){return Array.isArray(e)?function(e){return e.map((function(e){return Ro(e)}))}(e):"object"===(0,te.Z)(e)&&null!==e?function(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=Ro(e[n]);return t}return e}(e):e}const Do=Ro;function Zo(e){return to(e)}function Io(e,t){return No(e,t)}function Fo(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined&&arguments[3],o=Lo(e,t,n,r);return o}function Ho(e,t){var n={};return t.forEach((function(t){var r=Io(e,t);n=Fo(n,t,r)})),n}function Vo(e,t){return e&&e.some((function(e){return Yo(e,t)}))}function Bo(e){return"object"===(0,te.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function Uo(e,t){var n=Array.isArray(e)?ve(e):(0,c.Z)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=Bo(r)&&Bo(o);n[e]=i?Uo(r,o||{}):Do(o)})),n):n}function zo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Uo(e,t)}),e)}function Yo(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function $o(e){var t=arguments.length<=1?undefined:arguments[1];return t&&t.target&&"object"===(0,te.Z)(t.target)&&e in t.target?t.target[e]:t}function Wo(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ve(e.slice(0,n)),[o],ve(e.slice(n,t)),ve(e.slice(t+1,r))):i<0?[].concat(ve(e.slice(0,t)),ve(e.slice(t+1,n+1)),[o],ve(e.slice(n+1,r))):e}var Go=So;function Ko(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Qo="CODE_LOGIC_ERROR";function Xo(e,t,n,r,o){return Jo.apply(this,arguments)}function Jo(){return Jo=mr(pr().mark((function e(t,n,r,o,a){var l,s,f,d,p,h,m,v,y;return pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},r)).ruleIndex,l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Qo)}}),f=null,l&&"array"===l.type&&l.defaultField&&(f=l.defaultField,delete l.defaultField),d=new Go((0,u.Z)({},t,[l])),p=zo({},To,o.validateMessages),d.messages(p),h=[],e.prev=9,e.next=12,Promise.resolve(d.validate((0,u.Z)({},t,n),(0,c.Z)({},o)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](9),e.t0.errors&&(h=e.t0.errors.map((function(e,t){var n=e.message,r=n===Qo?p["default"]:n;return i.isValidElement(r)?i.cloneElement(r,{key:"error_".concat(t)}):r})));case 17:if(h.length||!f){e.next=22;break}return e.next=20,Promise.all(n.map((function(e,n){return Xo("".concat(t,".").concat(n),e,f,o,a)})));case 20:return m=e.sent,e.abrupt("return",m.reduce((function(e,t){return[].concat(ve(e),ve(t))}),[]));case 22:return v=(0,c.Z)((0,c.Z)({},r),{},{name:t,"enum":(r["enum"]||[]).join(", ")},a),y=h.map((function(e){return"string"==typeof e?Ko(e,v):e})),e.abrupt("return",y);case 25:case"end":return e.stop()}}),e,null,[[9,14]])}))),Jo.apply(this,arguments)}function ei(e,t,n,r,o,i){var a,l=e.join("."),u=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){(0,Y.ZP)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i["catch"],(0,Y.ZP)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()}))["catch"]((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=mr(pr().mark((function n(e,o){var a,s,c;return pr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:a=0;case 1:if(!(a<u.length)){n.next=12;break}return s=u[a],n.next=5,Xo(l,t,s,r,i);case 5:if(!(c=n.sent).length){n.next=9;break}return o([{errors:c,rule:s}]),n.abrupt("return");case 9:a+=1,n.next=1;break;case 12:e([]);case 13:case"end":return n.stop()}}),n)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=u.map((function(e){return Xo(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return ni.apply(this,arguments)}(s):function(e){return ti.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a["catch"]((function(e){return e})),a}function ti(){return(ti=mr(pr().mark((function e(t){return pr().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,ve(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ni(){return(ni=mr(pr().mark((function e(t){var n;return pr().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 ri=["name"],oi=[];function ii(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ai=function(e){(0,U.Z)(n,e);var t=(0,z.Z)(n);function n(e){var r;((0,V.Z)(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.prevValidating=void 0,r.errors=oi,r.warnings=oi,r.cancelRegister=function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Zo(o)),r.cancelRegisterFunc=null},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return t!==undefined?[].concat(ve(void 0===n?[]:n),ve(t)):[]},r.getRules=function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))},r.refresh=function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))},r.triggerMetaEvent=function(e){var t=r.props.onMetaChange;null==t||t((0,c.Z)((0,c.Z)({},r.getMeta()),{},{destroy:e}))},r.onStoreChange=function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,u=o.onReset,s=n.store,c=r.getNamePath(),f=r.getValue(e),d=r.getValue(s),p=t&&Vo(t,c);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=oi,r.warnings=oi,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=oi,r.warnings=oi,r.triggerMetaEvent(),null==u||u(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":if(p){var h=n.data;return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||oi),"warnings"in h&&(r.warnings=h.warnings||oi),r.dirty=!0,r.triggerMetaEvent(),void r.reRender()}if(i&&!c.length&&ii(i,e,s,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Zo).some((function(e){return Vo(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||c.length||i)&&ii(i,e,s,f,d,n))return void r.reRender()}!0===i&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),o=Promise.resolve().then((function(){if(!r.mounted)return[];var i=r.props,a=i.validateFirst,l=void 0!==a&&a,u=i.messageVariables,s=(e||{}).triggerName,c=r.getRules();s&&(c=c.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||to(t).includes(s)})));var f=ei(t,n,c,e,l,u);return f["catch"]((function(e){return e})).then((function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:oi;if(r.validatePromise===o){var t;r.validatePromise=null;var n=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?oi:r;t?i.push.apply(i,ve(o)):n.push.apply(n,ve(o))})),r.errors=n,r.warnings=i,r.triggerMetaEvent(),r.reRender()}})),f}));return r.validatePromise=o,r.dirty=!0,r.errors=oi,r.warnings=oi,r.triggerMetaEvent(),r.reRender(),o},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&r.props.initialValue===undefined)||(0,r.props.fieldContext.getInternalHooks(Xr).getInitialValue)(r.getNamePath())!==undefined},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return(0,c.Z)((0,c.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,Qr.Z)(e);return 1===n.length&&i.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Io(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,s=t.getValueProps,f=t.fieldContext,d=o!==undefined?o:f.validateTrigger,p=r.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,v=h(Xr),y=v.dispatch,g=r.getValue(),b=s||function(e){return(0,u.Z)({},l,e)},w=e[n],E=(0,c.Z)((0,c.Z)({},e),b(g));E[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):$o.apply(void 0,[l].concat(n)),a&&(e=a(e,g,m(!0))),y({type:"updateValue",namePath:p,value:e}),w&&w.apply(void 0,n)};var x=to(d||[]);return x.forEach((function(e){var t=E[e];E[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&y({type:"validateField",namePath:p,triggerName:e})}})),E},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Xr).initEntityValue)((0,Ot.Z)(r));return r}return(0,B.Z)(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)(Xr).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,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:i.isValidElement(o)?e=i.cloneElement(o,this.getControlled(o.props)):((0,Y.ZP)(!o,"`children` of Field is not validate ReactElement."),e=o),i.createElement(i.Fragment,{key:t},e)}}]),n}(i.Component);ai.contextType=eo,ai.defaultProps={trigger:"onChange",valuePropName:"value"};const li=function(e){var t=e.name,n=(0,At.Z)(e,ri),o=i.useContext(eo),a=t!==undefined?Zo(t):undefined,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),i.createElement(ai,(0,r.Z)({key:l,name:a},n,{fieldContext:o}))};const ui=i.createContext(null);const si=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,l=i.useContext(eo),u=i.useRef({keys:[],id:0}).current,s=i.useMemo((function(){var e=Zo(l.prefixName)||[];return[].concat(ve(e),ve(Zo(t)))}),[l.prefixName,t]),f=i.useMemo((function(){return(0,c.Z)((0,c.Z)({},l),{},{prefixName:s})}),[l,s]),d=i.useMemo((function(){return{getKey:function(e){var t=s.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[s]);if("function"!=typeof r)return(0,Y.ZP)(!1,"Form.List only accepts function as children."),null;return i.createElement(ui.Provider,{value:d},i.createElement(eo.Provider,{value:f},i.createElement(li,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,c=function(){return a(s||[])||[]},f={add:function(e,t){var n=c();t>=0&&t<=n.length?(u.keys=[].concat(ve(u.keys.slice(0,t)),[u.id],ve(u.keys.slice(t))),i([].concat(ve(n.slice(0,t)),[e],ve(n.slice(t))))):(u.keys=[].concat(ve(u.keys),[u.id]),i([].concat(ve(n),[e]))),u.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Wo(u.keys,e,t),i(Wo(n,e,t)))}}},d=o||[];return Array.isArray(d)||(d=[]),r(d.map((function(e,t){var n=u.keys[t];return n===undefined&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),f,t)}))))};var ci="__@field_split__";function fi(e){return e.map((function(e){return"".concat((0,te.Z)(e),":").concat(e)})).join(ci)}var di=function(){function e(){(0,V.Z)(this,e),this.kvs=new Map}return(0,B.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(fi(e),t)}},{key:"get",value:function(e){return this.kvs.get(fi(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"](fi(e))}},{key:"map",value:function(e){return ve(this.kvs.entries()).map((function(t){var n=(0,s.Z)(t,2),r=n[0],o=n[1],i=r.split(ci);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,s.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const pi=di;var hi=["name","errors"],mi=(0,B.Z)((function Ui(e){var t=this;(0,V.Z)(this,Ui),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}},this.getInternalHooks=function(e){return e===Xr?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):((0,Y.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){t.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,n){if(t.initialValues=e||{},n){var r,o=zo({},e,t.store);null===(r=t.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Fo(o,n,Io(e,n))})),t.prevWithoutPreserves=null,t.updateStore(o)}},this.destroyForm=function(){var e=new pi;t.getFieldEntities(!0).forEach((function(n){t.isMergedPreserve(n.isPreserve())||e.set(n.getNamePath(),!0)})),t.prevWithoutPreserves=e},this.getInitialValue=function(e){var n=Io(t.initialValues,e);return e.length?Do(n):n},this.setCallbacks=function(e){t.callbacks=e},this.setValidateMessages=function(e){t.validateMessages=e},this.setPreserve=function(e){t.preserve=e},this.watchList=[],this.registerWatch=function(e){return t.watchList.push(e),function(){t.watchList=t.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];if(t.watchList.length){var n=t.getFieldsValue();t.watchList.forEach((function(t){t(n,e)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(e){t.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&arguments[0]!==undefined&&arguments[0];return e?t.fieldEntities.filter((function(e){return e.getNamePath().length})):t.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&arguments[0]!==undefined&&arguments[0],n=new pi;return t.getFieldEntities(e).forEach((function(e){var t=e.getNamePath();n.set(t,e)})),n},this.getFieldEntitiesForNamePathList=function(e){if(!e)return t.getFieldEntities(!0);var n=t.getFieldsMap(!0);return e.map((function(e){var t=Zo(e);return n.get(t)||{INVALIDATE_NAME_PATH:Zo(e)}}))},this.getFieldsValue=function(e,n){if(t.warningUnhooked(),!0===e&&!n)return t.store;var r=t.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(t){var r,i="INVALIDATE_NAME_PATH"in t?t.INVALIDATE_NAME_PATH:t.getNamePath();if(e||!(null===(r=t.isListField)||void 0===r?void 0:r.call(t)))if(n){var a="getMeta"in t?t.getMeta():null;n(a)&&o.push(i)}else o.push(i)})),Ho(t.store,o.map(Zo))},this.getFieldValue=function(e){t.warningUnhooked();var n=Zo(e);return Io(t.store,n)},this.getFieldsError=function(e){return t.warningUnhooked(),t.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Zo(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){t.warningUnhooked();var n=Zo(e);return t.getFieldsError([n])[0].errors},this.getFieldWarning=function(e){t.warningUnhooked();var n=Zo(e);return t.getFieldsError([n])[0].warnings},this.isFieldsTouched=function(){t.warningUnhooked();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,i=n[0],a=n[1],l=!1;0===n.length?o=null:1===n.length?Array.isArray(i)?(o=i.map(Zo),l=!1):(o=null,l=i):(o=i.map(Zo),l=a);var u=t.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?u.every(s):u.some(s);var c=new pi;o.forEach((function(e){c.set(e,[])})),u.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&c.update(n,(function(t){return[].concat(ve(t),[e])}))}))}));var f=function(e){return e.some(s)},d=c.map((function(e){return e.value}));return l?d.every(f):d.some(f)},this.isFieldTouched=function(e){return t.warningUnhooked(),t.isFieldsTouched([e])},this.isFieldsValidating=function(e){t.warningUnhooked();var n=t.getFieldEntities();if(!e)return n.some((function(e){return e.isFieldValidating()}));var r=e.map(Zo);return n.some((function(e){var t=e.getNamePath();return Vo(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return t.warningUnhooked(),t.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=new pi,r=t.getFieldEntities(!0);r.forEach((function(e){var t=e.props.initialValue,r=e.getNamePath();if(t!==undefined){var o=n.get(r)||new Set;o.add({entity:e,value:t}),n.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(r.props.initialValue!==undefined){var o=r.getNamePath();if(t.getInitialValue(o)!==undefined)(0,Y.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=n.get(o);if(i&&i.size>1)(0,Y.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=t.getFieldValue(o);e.skipExist&&a!==undefined||t.updateStore(Fo(t.store,o,ve(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var t,r=n.get(e);r&&(t=o).push.apply(t,ve(ve(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){t.warningUnhooked();var n=t.store;if(!e)return t.updateStore(zo({},t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(n,null,{type:"reset"}),void t.notifyWatch();var r=e.map(Zo);r.forEach((function(e){var n=t.getInitialValue(e);t.updateStore(Fo(t.store,e,n))})),t.resetWithFieldInitialValue({namePathList:r}),t.notifyObservers(n,r,{type:"reset"}),t.notifyWatch(r)},this.setFields=function(e){t.warningUnhooked();var n=t.store,r=[];e.forEach((function(e){var o=e.name,i=(e.errors,(0,At.Z)(e,hi)),a=Zo(o);r.push(a),"value"in i&&t.updateStore(Fo(t.store,a,i.value)),t.notifyObservers(n,[a],{type:"setField",data:e})})),t.notifyWatch(r)},this.getFields=function(){return t.getFieldEntities(!0).map((function(e){var n=e.getNamePath(),r=e.getMeta(),o=(0,c.Z)((0,c.Z)({},r),{},{name:n,value:t.getFieldValue(n)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))},this.initEntityValue=function(e){var n=e.props.initialValue;if(n!==undefined){var r=e.getNamePath();Io(t.store,r)===undefined&&t.updateStore(Fo(t.store,r,n))}},this.isMergedPreserve=function(e){var n=e!==undefined?e:t.preserve;return null==n||n},this.registerField=function(e){t.fieldEntities.push(e);var n=e.getNamePath();if(t.notifyWatch([n]),e.props.initialValue!==undefined){var r=t.store;t.resetWithFieldInitialValue({entities:[e],skipExist:!0}),t.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter((function(t){return t!==e})),!t.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?undefined:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==a&&t.fieldEntities.every((function(e){return!Yo(e.getNamePath(),n)}))){var l=t.store;t.updateStore(Fo(l,n,a,!0)),t.notifyObservers(l,[n],{type:"remove"}),t.triggerDependenciesUpdate(l,n)}}t.notifyWatch([n])}},this.dispatch=function(e){switch(e.type){case"updateValue":var n=e.namePath,r=e.value;t.updateValue(n,r);break;case"validateField":var o=e.namePath,i=e.triggerName;t.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,n,r){if(t.subscribable){var o=(0,c.Z)((0,c.Z)({},r),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach((function(t){(0,t.onStoreChange)(e,n,o)}))}else t.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,n){var r=t.getDependencyChildrenFields(n);return r.length&&t.validateFields(r),t.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[n].concat(ve(r))}),r},this.updateValue=function(e,n){var r=Zo(e),o=t.store;t.updateStore(Fo(t.store,r,n)),t.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),t.notifyWatch([r]);var i=t.triggerDependenciesUpdate(o,r),a=t.callbacks.onValuesChange;a&&a(Ho(t.store,[r]),t.getFieldsValue());t.triggerOnFieldsChange([r].concat(ve(i)))},this.setFieldsValue=function(e){t.warningUnhooked();var n=t.store;if(e){var r=zo(t.store,e);t.updateStore(r)}t.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()},this.setFieldValue=function(e,n){t.setFields([{name:e,value:n}])},this.getDependencyChildrenFields=function(e){var n=new Set,r=[],o=new pi;t.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Zo(t);o.update(n,(function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new Set;return t.add(e),t}))}))}));return function i(e){(o.get(e)||new Set).forEach((function(e){if(!n.has(e)){n.add(e);var t=e.getNamePath();e.isFieldDirty()&&t.length&&(r.push(t),i(t))}}))}(e),r},this.triggerOnFieldsChange=function(e,n){var r=t.callbacks.onFieldsChange;if(r){var o=t.getFields();if(n){var i=new pi;n.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return Vo(e,n)})),o)}},this.validateFields=function(e,n){t.warningUnhooked();var r=!!e,o=r?e.map(Zo):[],i=[];t.getFieldEntities(!0).forEach((function(a){if(r||o.push(a.getNamePath()),(null==n?void 0:n.recursive)&&r){var l=a.getNamePath();l.every((function(t,n){return e[n]===t||e[n]===undefined}))&&o.push(l)}if(a.props.rules&&a.props.rules.length){var u=a.getNamePath();if(!r||Vo(o,u)){var s=a.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},To),t.validateMessages)},n));i.push(s.then((function(){return{name:u,errors:[],warnings:[]}}))["catch"]((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,ve(o)):n.push.apply(n,ve(o))})),n.length?Promise.reject({name:u,errors:n,warnings:r}):{name:u,errors:n,warnings:r}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e["catch"]((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);t.lastValidatePromise=a,a["catch"]((function(e){return e})).then((function(e){var n=e.map((function(e){return e.name}));t.notifyObservers(t.store,n,{type:"validateFinish"}),t.triggerOnFieldsChange(n,e)}));var l=a.then((function(){return t.lastValidatePromise===a?Promise.resolve(t.getFieldsValue(o)):Promise.reject([])}))["catch"]((function(e){var n=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:t.getFieldsValue(o),errorFields:n,outOfDate:t.lastValidatePromise!==a})}));return l["catch"]((function(e){return e})),l},this.submit=function(){t.warningUnhooked(),t.validateFields().then((function(e){var n=t.callbacks.onFinish;if(n)try{n(e)}catch(r){console.error(r)}}))["catch"]((function(e){var n=t.callbacks.onFinishFailed;n&&n(e)}))},this.forceRootUpdate=e}));const vi=function(e){var t=i.useRef(),n=i.useState({}),r=(0,s.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new mi((function(){r({})}));t.current=o.getForm()}return[t.current]};var yi=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const gi=yi;var bi=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const wi=function(e,t){var n=e.name,o=e.initialValues,a=e.fields,l=e.form,u=e.preserve,f=e.children,d=e.component,p=void 0===d?"form":d,h=e.validateMessages,m=e.validateTrigger,v=void 0===m?"onChange":m,y=e.onValuesChange,g=e.onFieldsChange,b=e.onFinish,w=e.onFinishFailed,E=(0,At.Z)(e,bi),x=i.useContext(gi),O=vi(l),C=(0,s.Z)(O,1)[0],k=C.getInternalHooks(Xr),_=k.useSubscribe,q=k.setInitialValues,S=k.setCallbacks,P=k.setValidateMessages,T=k.setPreserve,N=k.destroyForm;i.useImperativeHandle(t,(function(){return C})),i.useEffect((function(){return x.registerForm(n,C),function(){x.unregisterForm(n)}}),[x,C,n]),P((0,c.Z)((0,c.Z)({},x.validateMessages),h)),S({onValuesChange:y,onFieldsChange:function(e){if(x.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),b&&b(e)},onFinishFailed:w}),T(u);var A,j=i.useRef(null);q(o,!j.current),j.current||(j.current=!0),i.useEffect((function(){return N}),[]);var M="function"==typeof f;M?A=f(C.getFieldsValue(!0),C):A=f;_(!M);var L=i.useRef();i.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,te.Z)(e)||"object"!==(0,te.Z)(t))return!1;var n=Object.keys(e),r=Object.keys(t);return ve(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(L.current||[],a||[])||C.setFields(a||[]),L.current=a}),[a,C]);var R=i.useMemo((function(){return(0,c.Z)((0,c.Z)({},C),{},{validateTrigger:v})}),[C,v]),D=i.createElement(eo.Provider,{value:R},A);return!1===p?D:i.createElement(p,(0,r.Z)({},E,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=E.onReset)||void 0===t||t.call(E,e)}}),D)};function Ei(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}const xi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=void 0===r?[]:r,a=t[1],l=(0,i.useState)(),u=(0,s.Z)(l,2),c=u[0],f=u[1],d=(0,i.useMemo)((function(){return Ei(c)}),[c]),p=(0,i.useRef)(d);p.current=d;var h=(0,i.useContext)(eo),m=a||h,v=m&&m._init,y=Zo(o),g=(0,i.useRef)(y);return g.current=y,(0,i.useEffect)((function(){if(v){var e=m.getFieldsValue,t=(0,(0,m.getInternalHooks)(Xr).registerWatch)((function(e){var t=Io(e,g.current),n=Ei(t);p.current!==n&&(p.current=n,f(t))})),n=Io(e(),g.current);return f(n),t}}),[v]),c};var Oi=i.forwardRef(wi);Oi.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=i.useContext(yi),l=i.useRef({});return i.createElement(yi.Provider,{value:(0,c.Z)((0,c.Z)({},a),{},{validateMessages:(0,c.Z)((0,c.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,c.Z)((0,c.Z)({},l.current),{},(0,u.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},o)},Oi.Field=li,Oi.List=si,Oi.useForm=vi,Oi.useWatch=xi;var Ci=i.createContext({}),ki=n(4173);const _i=(0,i.createContext)(undefined);const qi={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Si={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const Pi={lang:(0,r.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},qi),timePickerLocale:(0,r.Z)({},Si)};var Ti="${label} is not a valid ${type}";const Ni={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:Pi,TimePicker:Si,Calendar:Pi,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{"default":"Field validation error for ${label}",required:"Please enter ${label}","enum":"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ti,method:Ti,array:Ti,object:Ti,number:Ti,date:Ti,boolean:Ti,integer:Ti,float:Ti,regexp:Ti,email:Ti,url:Ti,hex:Ti},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const Ai=function(e){var t=e.componentName,n=void 0===t?"global":t,o=e.defaultLocale,a=e.children,l=i.useContext(_i),u=i.useMemo((function(){var e,t=o||Ni[n],i=null!==(e=null==l?void 0:l[n])&&void 0!==e?e:{};return(0,r.Z)((0,r.Z)({},t instanceof Function?t():t),i||{})}),[n,o,l]);return a(u,i.useMemo((function(){var e=l&&l.locale;return l&&l.exist&&!e?Ni.locale:e}),[l]),l)};(0,o.b)("warning","error","");function ji(e,t,n){var r;return v()((r={},(0,u.Z)(r,"".concat(e,"-status-success"),"success"===t),(0,u.Z)(r,"".concat(e,"-status-warning"),"warning"===t),(0,u.Z)(r,"".concat(e,"-status-error"),"error"===t),(0,u.Z)(r,"".concat(e,"-status-validating"),"validating"===t),(0,u.Z)(r,"".concat(e,"-has-feedback"),n),r))}var Mi=function(e,t){return t||e};function Li(e,t,n){return n!==undefined?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function Ri(e,t,n){return n!==undefined?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function Di(e,t){var n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}var Zi=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Ii=undefined&&undefined.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Fi={button:function(e){return i.createElement(l.Z,(0,r.Z)({size:"small",type:"primary"},e))},rangeItem:function(e){return i.createElement(P,(0,r.Z)({color:"blue"},e))}};function Hi(e){var t,n=e.format,o=e.picker,i=e.showHour,a=e.showMinute,l=e.showSecond,u=e.use12Hours,s=(t=n,t?Array.isArray(t)?t:[t]:[])[0],c=(0,r.Z)({},e);return s&&"string"==typeof s&&(s.includes("s")||l!==undefined||(c.showSecond=!1),s.includes("m")||a!==undefined||(c.showMinute=!1),s.includes("H")||s.includes("h")||i!==undefined||(c.showHour=!1),(s.includes("a")||s.includes("A"))&&u===undefined&&(c.use12Hours=!0)),"time"===o?c:("function"==typeof s&&delete c.format,{showTime:c})}(0,o.b)("bottomLeft","bottomRight","topLeft","topRight");const Vi=function(e){var t=function(e){function t(t,n){var o=(0,i.forwardRef)((function(n,o){var a=n.prefixCls,l=n.getPopupContainer,s=n.className,c=n.size,f=n.bordered,d=void 0===f||f,p=n.placement,h=n.placeholder,m=n.popupClassName,y=n.dropdownClassName,b=n.disabled,w=n.status,E=Ii(n,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),x=(0,i.useContext)(g.E_),O=x.getPrefixCls,C=x.direction,k=x.getPopupContainer,_=O("picker",a),q=(0,ki.ri)(_,C),S=q.compactSize,P=q.compactItemClassnames,T=i.useRef(null),N=n.format,j=n.showTime;(0,i.useImperativeHandle)(o,(function(){return{focus:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}}));var M={showToday:!0},R={};t&&(R.picker=t);var D=t||n.picker;R=(0,r.Z)((0,r.Z)((0,r.Z)({},R),j?Hi((0,r.Z)({format:N,picker:D},j)):{}),"time"===D?Hi((0,r.Z)((0,r.Z)({format:N},n),{picker:D})):{});var I=O(),F=i.useContext(Kr.Z),H=S||c||F,V=i.useContext(Gr.Z),B=null!=b?b:V,U=(0,i.useContext)(Ci),z=U.hasFeedback,Y=U.status,$=U.feedbackIcon,W=i.createElement(i.Fragment,null,"time"===D?i.createElement(L,null):i.createElement(A,null),z&&$);return i.createElement(Ai,{componentName:"DatePicker",defaultLocale:Pi},(function(t){var o,a=(0,r.Z)((0,r.Z)({},t),n.locale);return i.createElement(Wr,(0,r.Z)({ref:T,placeholder:Li(D,a,h),suffixIcon:W,dropdownAlign:Di(C,p),dropdownClassName:m||y,clearIcon:i.createElement(Z,null),prevIcon:i.createElement("span",{className:"".concat(_,"-prev-icon")}),nextIcon:i.createElement("span",{className:"".concat(_,"-next-icon")}),superPrevIcon:i.createElement("span",{className:"".concat(_,"-super-prev-icon")}),superNextIcon:i.createElement("span",{className:"".concat(_,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(I,"-slide-up")},M,E,R,{locale:a.lang,className:v()((o={},(0,u.Z)(o,"".concat(_,"-").concat(H),H),(0,u.Z)(o,"".concat(_,"-borderless"),!d),o),ji(_,Mi(Y,w),z),P,s),prefixCls:_,getPopupContainer:l||k,generateConfig:e,components:Fi,direction:C,disabled:B}))}))}));return n&&(o.displayName=n),o}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),n=t.DatePicker,o=t.WeekPicker,a=t.MonthPicker,l=t.YearPicker,s=t.TimePicker,c=t.QuarterPicker,f=function(e){var t=(0,i.forwardRef)((function(t,n){var o=t.prefixCls,a=t.getPopupContainer,l=t.className,s=t.placement,c=t.size,f=t.disabled,d=t.bordered,p=void 0===d||d,h=t.placeholder,m=t.popupClassName,y=t.dropdownClassName,b=t.status,w=Zi(t,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),E=i.useRef(null),x=(0,i.useContext)(g.E_),O=x.getPrefixCls,C=x.direction,k=x.getPopupContainer,_=O("picker",o),q=(0,ki.ri)(_,C),S=q.compactSize,P=q.compactItemClassnames,T=t.format,N=t.showTime,j=t.picker,M=O(),R={};R=(0,r.Z)((0,r.Z)((0,r.Z)({},R),N?Hi((0,r.Z)({format:T,picker:j},N)):{}),"time"===j?Hi((0,r.Z)((0,r.Z)({format:T},t),{picker:j})):{});var D=i.useContext(Kr.Z),I=S||c||D,F=i.useContext(Gr.Z),V=null!=f?f:F,B=(0,i.useContext)(Ci),U=B.hasFeedback,z=B.status,Y=B.feedbackIcon,$=i.createElement(i.Fragment,null,"time"===j?i.createElement(L,null):i.createElement(A,null),U&&Y);return(0,i.useImperativeHandle)(n,(function(){return{focus:function(){var e;return null===(e=E.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=E.current)||void 0===e?void 0:e.blur()}}})),i.createElement(Ai,{componentName:"DatePicker",defaultLocale:Pi},(function(n){var o,c=(0,r.Z)((0,r.Z)({},n),t.locale);return i.createElement($r,(0,r.Z)({separator:i.createElement("span",{"aria-label":"to",className:"".concat(_,"-separator")},i.createElement(H,null)),disabled:V,ref:E,dropdownClassName:m||y,dropdownAlign:Di(C,s),placeholder:Ri(j,c,h),suffixIcon:$,clearIcon:i.createElement(Z,null),prevIcon:i.createElement("span",{className:"".concat(_,"-prev-icon")}),nextIcon:i.createElement("span",{className:"".concat(_,"-next-icon")}),superPrevIcon:i.createElement("span",{className:"".concat(_,"-super-prev-icon")}),superNextIcon:i.createElement("span",{className:"".concat(_,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(M,"-slide-up")},w,R,{className:v()((o={},(0,u.Z)(o,"".concat(_,"-").concat(I),I),(0,u.Z)(o,"".concat(_,"-borderless"),!p),o),ji(_,Mi(z,b),U),P,l),locale:c.lang,prefixCls:_,getPopupContainer:a||k,generateConfig:e,components:Fi,direction:C}))}))}));return t}(e),d=n;return d.WeekPicker=o,d.MonthPicker=a,d.YearPicker=l,d.RangePicker=f,d.TimePicker=s,d.QuarterPicker=c,d}},4173:(e,t,n)=>{"use strict";n.d(t,{ri:()=>u});var r=n(4942),o=n(4184),i=n.n(o),a=(n(344),n(7363)),l=(undefined&&undefined.__rest,a.createContext(null)),u=function(e,t){var n=a.useContext(l),o=a.useMemo((function(){var o;if(!n)return"";var a=n.compactDirection,l=n.isFirstItem,u=n.isLastItem,s="vertical"===a?"-vertical-":"-";return i()((o={},(0,r.Z)(o,"".concat(e,"-compact").concat(s,"item"),!0),(0,r.Z)(o,"".concat(e,"-compact").concat(s,"first-item"),l),(0,r.Z)(o,"".concat(e,"-compact").concat(s,"last-item"),u),(0,r.Z)(o,"".concat(e,"-compact").concat(s,"item-rtl"),"rtl"===t),o))}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}}},3632:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var r={SET_LOADING:"SET_LOADING",SET_STATE:"SET_STATE",SET_MEETINGS:"SET_MEETINGS",SET_MEETINGS_PAGINATION_DATA:"SET_MEETINGS_PAGINATION_DATA",SET_MEETINGS_AFTER_DELETE:"SET_MEETINGS_AFTER_DELETE",SET_MEETINGS_AFTER_DUPLICATE:"SET_MEETINGS_AFTER_DUPLICATE",SET_STAFFS:"SET_STAFFS",SET_STAFF:"SET_STAFF",SET_PAGINGATE_DATA:"SET_PAGINGATE_DATA",SET_BOOKINGS:"SETBOOKINGS",SET_CUSTOMERS:"SET_CUSTOMERS",SET_META_DATA_WITH_MEETING:"SET_META_DATA_WITH_MEETING",SET_STAFF_SCHEDULE:"SET_STAFF_SCHEDULE",CLEAR_MEETING_DATA_FOR_UPDATE:"CLEAR_MEETING_DATA_FOR_UPDATE",SET_EMAIL_CUSTOMIZE_DATA:"SET_EMAIL_CUSTOMIZE_DATA",SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_LOADING:"SET_SETTINGS_LOADING",SET_SETTINGS_SCHEDULE:"SET_SETTINGS_SCHEDULE",SET_SELECTED_DATE:"SET_SELECTED_DATE",SET_MEETING_TO_BOOK:"SET_MEETING_TO_BOOK",SET_SELECTED_STAFF_ID_TO_BOOK:"SET_SELECTED_STAFF_ID_TO_BOOK",SET_MEETING_SLOTS:"SET_MEETING_SLOTS",SET_BOOKING_STATE:"SET_BOOKING_STATE",SET_SETTINGS_CURRENCY:"SET_SETTINGS_CURRENCY",CLEAR_BOOKING_RELATED_DATA:"CLEAR_BOOKING_RELATED_DATA"}},7157:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(3632),o=function(e){var t=e.dispatch,n=e.name,o=e.value;t({type:r.N.SET_STATE,field:n,payload:o})}},629:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(3632),o=function(e){var t=e.dispatch,n=e.value;t({type:r.N.SET_MEETINGS,payload:n})}},8494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(2751);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=window.React,a=window.antd,l=a.Button,u=a.PageHeader,s=a.Dropdown,c=wp.i18n.__;function f(e){var t=o({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=[{key:"1",label:i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://arraytics.com/support/"},i.createElement(r.by,null)," ",c("Need Help?","timetics"))},{key:"2",label:i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://docs.arraytics.com/docs/timetics/getting-started/"},i.createElement(r.$l,null)," ",c("Documentation","timetics"))},{key:"3",label:i.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://arraytics.com/timetics-roadmaps/"},i.createElement(r.ig,null)," ",c("Feature Request","timetics"))}],a=function(){return i.createElement(s,{key:"more-info",overlayClassName:"tt-action-dropdown tt-action-area",menu:{items:n},placement:"bottomRight"},i.createElement(l,{type:"text",icon:i.createElement(r.V7,null)}))};return i.createElement("div",{className:"tt-page-header-wrapper tt-mb-30"},i.createElement(u,o({ghost:!1},t,{extra:[i.createElement(a,{key:"more-info"})]})))}},2470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(2751),o=n(7157),i=n(9039);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=window.antd,s=u.Button,c=u.Space,f=wp.i18n.__;const d=function(){var e=a((0,i.K)(),2),t=e[0],n=t.meeting,l=(t.staff,e[1]),u=n.editAvailability,d=function(e){(0,o.I)({dispatch:l,name:"editAvailability",value:e})};return React.createElement(c,{wrap:!0,className:"tt-availability-btn-area"},React.createElement(s,{type:u?"default":"primary",htmlType:"button",onClick:function(e){d(!1)},icon:React.createElement(r.r7,{width:"14",height:"14",color:"#1890ff"}),ghost:!u},f("Use Default Availability","timetics")),React.createElement(s,{type:u?"primary":"default",htmlType:"button",onClick:function(e){d(!0)},icon:React.createElement(r.dY,{width:"16",height:"16",color:"#1890ff"}),ghost:!!u},f("Customize availability","timetics")))}},8253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});n(4378),n(7157);var r=n(9039),o=(n(5177),n(2470)),i=n(3017);function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function f(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}wp.i18n.__;var d=window.React,p=d.useState,h=(d.useEffect,window.antd),m=(h.Table,h.Checkbox,h.Divider,h.Select,h.Collapse),v=(h.Form,h.Avatar),y=m.Panel;const g=function(e){e.meetingType;var t=e.schedules,n=(e.selectedStaffIds,e.selectedStaff),a=void 0===n?[]:n,u=(e.meetingDuration,s((0,r.K)(),2)),c=u[0],f=c.staff,h=(c.meeting,u[1],f.staffs,s(p(0),2)),g=h[0],b=h[1];return d.createElement("div",{className:"tt-container-wrapper tt-schedules-container"},null!=a&&a.length?d.createElement("div",{className:"tt-meeting-schedule"},d.createElement(o.Z,null),null==a?void 0:a.map((function(e,n){var r;return d.createElement("div",{className:"tt-single-host-schedule",key:"staff-".concat(n)},d.createElement("span",{className:"tt-single-host-avatar"},d.createElement(v,{size:30,src:null==e?void 0:e.image})),d.createElement(m,{className:"tt-single-host-schedule-time",accordion:!0,key:"".concat(n,"-selected-staff"),activeKey:g,expandIconPosition:"end",onChange:function(e){b(e)}},d.createElement(y,{header:null==e?void 0:e.full_name,key:n},null===(r=t[e.id])||void 0===r?void 0:r.map((function(n,r){return d.createElement(d.Fragment,{key:"schedule-item-".concat(r)},d.createElement(i.Z,{schedule:l({},n),scheduleIndex:r,schedules:t[e.id],staffId:e.id}))})))))}))):null)}},3017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(2751),o=n(4903),i=n(7157),a=n(9039),l=n(5177),u=n(8854);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=wp.i18n.__,y=window.antd,g=y.Checkbox,b=y.Row,w=y.Col,E=(y.Table,y.Select),x=y.Space,O=y.Divider,C=window.React,k=C.useState;const _=function(e){var t,n,s=e.schedule,h=e.schedules,m=(e.setSchedules,e.scheduleIndex),y=e.staffId,_=p((0,a.K)(),2),q=_[0].meeting,S=_[1],P=p(k(null),2),T=(P[0],P[1],p(k("09:00 AM"),2)),N=T[0],A=(T[1],p(k("24:00 PM"),2)),j=A[0],M=(A[1],q.timeCompareError),L=q.schedules,R=q.meetingDuration,D=(q.meetingBufferTime,q.editAvailability),Z=function(e){var t,n=e.schedule,r=e.scheduleIndex,a=d(h),u=(null===(t=a[r].schedules)||void 0===t?void 0:t.length)-1;if(a[r].key!==n.key)return!1;if(0==n.status)a[r].status=!0,a[r].schedules=[(0,l._9)({startTime:N,duration:R})];else{var s,p=(0,o.Wf)({schedules:a[r].schedules,duration:10});null===(s=a[r])||void 0===s||s.schedules.push(p)}var m=(0,o.Xi)({key:"",value:null==n?void 0:n.schedules[u],timeSlotIndex:u,scheduleIndex:r,schedule:n,timeCompareError:M});(0,i.I)({dispatch:S,name:"timeCompareError",value:m}),(0,i.I)({dispatch:S,name:"schedules",value:c(c({},L),{},f({},y,d(a)))})},I=function(e){var t=e.key,n=e.value,r=e.scheduleIndex,a=e.timeSlotIndex,l=d(h);l[r].schedules[a]=c(c({},l[r].schedules[a]),{},f({},t,n)),(0,i.I)({dispatch:S,name:"schedules",value:c(c({},L),{},f({},y,d(l)))});var u=(0,o.Xi)({key:t,value:n,timeSlotIndex:a,scheduleIndex:r,schedule:s,timeCompareError:M});(0,i.I)({dispatch:S,name:"timeCompareError",value:u})};return D?C.createElement(C.Fragment,null,C.createElement(O,null),C.createElement(b,{gutter:[16,24]},C.createElement(w,{xs:{span:12,order:1},sm:6},C.createElement(g,{onChange:function(e){!function(e,t){var n=t.schedule,r=t.scheduleIndex;if(1==e.target.checked)Z({schedule:n,scheduleIndex:r});else{var o=d(h);o[r].key==n.key&&(o[r].status=!1,(0,i.I)({dispatch:S,name:"schedules",value:c(c({},L),{},f({},y,d(o)))}))}}(e,{schedule:s,scheduleIndex:m})},checked:s.status},s.key)),C.createElement(w,{xs:{span:20,offset:2,order:3},sm:{span:14,offset:0,order:2}},1==s.status?null==s||null===(t=s.schedules)||void 0===t?void 0:t.map((function(e,t){var n,a,p,g,b;return C.createElement(C.Fragment,{key:"".concat(t,"-single-schedule-time-slot")},C.createElement(x,{key:"schedule-time-slot-".concat(t),style:{margin:"5px 0"},size:[20]},C.createElement(E,{showSearch:!0,placeholder:"Select a time",optionFilterProp:"children",onChange:function(e){var n;I({value:null===(n=(0,l.wU)({startTime:N,endTime:j,duration:10}))||void 0===n?void 0:n.find((function(t){return t.value==e})),key:"start",scheduleIndex:m,timeSlotIndex:t})},onSearch:function(e){},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},options:(0,l.wU)({startTime:0==t?N:null==s||null===(b=s.schedules[t-1].end)||void 0===b?void 0:b.label,endTime:j,duration:10}),value:null==e?void 0:e.start,status:null!=M&&M.scheduleIndex.includes(m)&&null!=M&&null!==(n=M["with"][m])&&void 0!==n&&n.includes(t)?"error":""}),C.createElement("span",null,"-"),C.createElement(E,{showSearch:!0,placeholder:"Select a time",optionFilterProp:"children",onChange:function(e){var n;I({value:null===(n=(0,l.wU)({startTime:N,endTime:j,duration:10}))||void 0===n?void 0:n.find((function(t){return t.value==e})),key:"end",scheduleIndex:m,timeSlotIndex:t})},onSearch:function(e){},filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},options:(0,l.wU)({startTime:null==e||null===(a=e.start)||void 0===a?void 0:a.label,endTime:j,duration:10}),value:null==e?void 0:e.end,status:null!=M&&M.scheduleIndex.includes(m)&&null!=M&&null!==(p=M["with"][m])&&void 0!==p&&p.includes(t)?"error":""}),C.createElement(u.Z,{text:"Remove time slot",placement:"top"},C.createElement("span",{style:{cursor:"pointer"},onClick:function(){!function(e){var t=e.schedule,n=e.scheduleIndex,r=(e.timeSlot,e.timeSlotIndex);if(!t.status)return!1;var a,u=d(h);u[n].key==t.key&&1==t.schedules.length&&(u[n].schedules=[(0,l._9)({startTime:N,duration:R})],u[n].status=!1),t.schedules.length>1&&h[n].key==t.key&&(null===(a=u[n])||void 0===a||a.schedules.splice(r,1)),(0,i.I)({dispatch:S,name:"schedules",value:c(c({},L),{},f({},y,d(u)))});var s=0==r?0:r-1,p=(0,o.Xi)({key:"",value:null==t?void 0:t.schedules[s],timeSlotIndex:r,scheduleIndex:n,schedule:t,timeCompareError:M});(0,i.I)({dispatch:S,name:"timeCompareError",value:p})}({schedule:s,scheduleIndex:m,timeSlot:e,timeSlotIndex:t})}},C.createElement(r.pJ,{color:"#0A1018"})))),(null==M?void 0:M.scheduleIndex.includes(m))&&(null==M||null===(g=M["with"][m])||void 0===g?void 0:g.includes(t))&&C.createElement("p",{className:"tt-schedule-time-slot-error-msg",key:"schedule-time-slot-error-msg-".concat(t),style:{margin:"0",color:"red"}},v("Time conflict.","timetics")))})):C.createElement("span",{style:{color:"#aeb0b3"}},v("Unavailable","timetics"))),C.createElement(w,{xs:{span:12,order:2},sm:{span:4,order:3},align:"right"},C.createElement(u.Z,{text:"Add new time slot",placement:"top"},C.createElement("span",{style:{cursor:"pointer"},onClick:function(){Z({schedule:s,scheduleIndex:m})}},C.createElement(r.dt,null)))))):C.createElement(C.Fragment,null,C.createElement(O,null),C.createElement(b,{gutter:[16,24]},C.createElement(w,{span:6},s.key),C.createElement(w,{span:14},1==s.status?null==s||null===(n=s.schedules)||void 0===n?void 0:n.map((function(e,t){var n,r;return C.createElement(C.Fragment,{key:"".concat(t,"-single-schedule-time-slot")},C.createElement("div",{key:"schedule-time-slot-".concat(t),style:{margin:"5px 0"}},C.createElement("span",null,null==e||null===(n=e.start)||void 0===n?void 0:n.label),C.createElement("span",null,"-"),C.createElement("span",null,null==e||null===(r=e.end)||void 0===r?void 0:r.label)))})):C.createElement("span",{style:{color:"#aeb0b3"}},v("Unavailable","timetics"))),C.createElement(w,{span:4,align:"right"})))}},8854:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=window.antd.Tooltip;wp.i18n.__;const o=function(e){var t=e.placement,n=e.text,o=e.children;return React.createElement(r,{placement:t,title:n,overlayClassName:"tt-tooltip-card"},o)}},9039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A,K:()=>j});var r=n(3632);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e,t){switch(t.type){case r.N.SET_LOADING:var n=t.payload;return l(l({},e),{},{loading:n});case r.N.SET_STATE:var i=t.field,a=t.payload;return l(l({},e),{},u({},i,a));case r.N.SET_MEETINGS:var s=t.payload;return l(l({},e),{},{meetings:s,loading:!1});case r.N.SET_MEETINGS_PAGINATION_DATA:var c=t.payload;return l(l({},e),c);case r.N.SET_MEETINGS_AFTER_DELETE:var f=t.payload,d=function(e,t){return o(e).filter((function(e){return e.id!==t}))}(e.meetings,f);return l(l({},e),{},{meetings:d});case r.N.SET_MEETINGS_AFTER_DUPLICATE:var p=t.payload;return l(l({},e),{},{meetings:[p].concat(o(e.meetings))});case r.N.SET_META_DATA_WITH_MEETING:var h=t.payload;return l(l({},e),h);case r.N.CLEAR_MEETING_DATA_FOR_UPDATE:t.payload;return l(l({},e),{},{meeting:null,meetingId:null,schedules:null,selectedStaff:null,selectedStaffIds:null});default:return e}};function c(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){t.field;var n=t.payload;switch(t.type){case r.N.SET_STAFFS:return f(f({},e),{},{staffs:n});case r.N.SET_STAFF:return f(f({},e),{},{staff:n});case r.N.SET_STAFF_SCHEDULE:return f(f({},e),{},{schedule:{staff:n}});default:return e}};function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e,t){t.field;var n=t.payload;switch(t.type){case r.N.SET_BOOKINGS:return m(m({},e),{},{bookings:n});case r.N.SET_SELECTED_DATE:case r.N.SET_MEETING_TO_BOOK:case r.N.SET_SELECTED_STAFF_ID_TO_BOOK:case r.N.SET_MEETING_SLOTS:case r.N.SET_BOOKING_STATE:return m(m({},e),n);case r.N.CLEAR_BOOKING_RELATED_DATA:return m(m({},e),{},{selectedDaysSlots:[],slots:{},selectedMeetingId:null,meetingToBook:null,staffsOfMeetingToBook:[],meetingStaffs:[],selectedStaffIdToBook:null,unavailableDayNumber:[],selectedDay:null,selectedDate:null},n);default:return e}};function g(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e,t){t.field;var n=t.payload;return t.type===r.N.SET_CUSTOMERS?b(b({},e),{},{customers:n}):e};function x(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?x(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(e,t){t.field;var n=t.payload;switch(t.type){case r.N.SET_SETTINGS_LOADING:return O(O({},e),{},{loading:n});case r.N.SET_SETTINGS:return O(O({},e),{},{settings:n});case r.N.SET_EMAIL_CUSTOMIZE_DATA:var o=t.payload;return O(O({},e),o);case r.N.SET_SETTINGS_SCHEDULE:return O(O({},e),{},{settings:O(O({},e.settings),{},{availability:n})});case r.N.SET_SETTINGS_CURRENCY:return O(O({},e),{},{settings:n});default:return e}};const _=function(e,t){var n=e.meeting,r=e.staff,o=e.booking,i=e.customers,a=e.settings;return{meeting:s(n,t),staff:p(r,t),booking:y(o,t),customers:E(i,t),settings:k(a,t)}};var q=(0,window.React.createContext)(),S={staff:{staff:{}},meeting:{meetingType:"One-to-One",meetingTitle:"Create One-on-One Meeting",per_page:9,paged:1,totalItems:0,addressType:["google-meet"],meetingDuration:60,meetingBufferTime:1,loading:!1,booking_reminder_time_value:"1",booking_reminder_time_key:"hour",timeCompareError:{hasError:!1,scheduleIndex:[],"with":{}}},booking:{},customers:{},settings:{}},P=window.React,T=P.useContext,N=P.useReducer;const A=function(e){var t=e.children;return P.createElement(q.Provider,{value:N(_,S)},t)};var j=function(){return T(q)}},8188:(e,t,n)=>{"use strict";n.d(t,{E:()=>d,N:()=>f});var r=n(3538);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};c(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&n.call(b,l)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(r,a,l,u){var s=d(e[r],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,u)}),(function(e){i("throw",e,l,u)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,u)}))}u(s.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return m.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),c(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,s,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),p}},e}function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,l,"next",e)}function l(e){s(i,r,o,a,l,"throw",e)}a(undefined)}))}}var f=function(){var e=c(i().mark((function t(e){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.id,o=e.values,t.prev=1,t.next=4,(0,r.$Z)({method:"PUT",data:l({},o)},n);case 4:a=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),a=t.t0;case 10:return t.abrupt("return",a);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=c(i().mark((function t(e){var n,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.values,o=e.type,t.prev=1,t.next=4,(0,r.gJ)({method:"POST",data:l(l({},n),{},{type:o})});case 4:a=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),a=t.t0;case 10:return t.abrupt("return",a);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},7026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(9250),o=n(2758),i=n(7157),a=n(629),l=n(9039),u=n(8188),s=n(3538);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function f(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var y={};u(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&n.call(b,i)&&(y=b);var w=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,l){var u=f(e[r],e,i);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return h.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),u(w,l,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),d}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},e}function v(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,l,"next",e)}function l(e){v(i,r,o,a,l,"throw",e)}a(undefined)}))}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(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}const E=function(){var e=g((0,l.K)(),2),t=e[0],n=t.meeting,c=t.staff,d=t.settings,h=e[1],v=(0,r.s0)(),b=n.per_page,w=n.paged,E=n.timeCompareError,x=(n.meetingCustom,n.meetingCustomValue),O=void 0===x?"":x,C=n.meetingCustomTime,k=n.selectedStaffIds,_=void 0===k?[]:k,q=n.schedules,S=n.meetingType,P=(n.booking_reminder_time,n.booking_reminder_time_key),T=n.booking_reminder_time_value,N=c.staffs,A=d.settings,j=(void 0===A?{}:A).availability,M=function(){var e=y(m().mark((function t(e){var n,r,o,l,u,c,f;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=e.page,(0,i.I)({dispatch:h,name:"loading",value:!0}),t.next=4,(0,s.MY)({method:"GET",params:{per_page:b,paged:l||w}});case 4:u=t.sent,c=null==u||null===(n=u.data)||void 0===n?void 0:n.data,f=null==u||null===(r=u.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.items,(0,a.I)({dispatch:h,value:f}),(0,i.I)({dispatch:h,name:"totalItems",value:null==c?void 0:c.total}),(0,i.I)({dispatch:h,name:"loading",value:!1});case 10:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=y(m().mark((function t(e,n){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.kM)({method:"DELETE",data:n});case 2:e.sent,(0,i.I)({dispatch:h,name:"selectedMeetings",value:[]}),M({page:w});case 5:case"end":return e.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),R=function(){var e=y(m().mark((function t(e){var r,a,l,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.values,a=e.id,!(null!=E&&E.hasError||0==_.length)){t.next=3;break}return t.abrupt("return",!1);case 3:if((0,i.I)({dispatch:h,name:"loading",value:!0}),l=p(p({},r),{},{notifications:p(p({},r.notifications),{},{booking_reminder_time:"".concat(T," ").concat(P)})}),s={},Object.keys(q).map((function(e){s[e]=(0,o.F6)(q[e])})),!a){t.next=14;break}return"custom"==l.duration&&(l.duration="".concat(O," ").concat(C)),t.next=11,(0,u.N)({id:a,values:p(p({},l),{},{staff:_,schedule:s,type:S})});case 11:t.sent,t.next=18;break;case 14:return"custom"==l.duration&&(l.duration="".concat(O," ").concat(C)),t.next=17,(0,u.E)({values:p(p({},l),{},{staff:_,schedule:s}),type:null==n?void 0:n.meetingType});case 17:t.sent;case 18:(0,i.I)({dispatch:h,name:"loading",value:!1}),v("/meetings");case 20:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}();return{getMeetings:M,buldDeleteMeetingHandler:L,clearSelectedMeetings:function(e){(0,i.I)({dispatch:h,name:"selectedMeetings",value:[]})},selectAllMeetings:function(e,t){(0,i.I)({dispatch:h,name:"selectedMeetings",value:t})},submitMeeting:R,getStaffsSchedule:function(e){var t=e.staffId,n=f(N).find((function(e){return e.id==t})),r=n.schedule;return Array.isArray(n.schedule)&&0==n.schedule.length&&(r=null==j?void 0:j.staff),r}}}},7389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>fe});var r=["className","name","label","required","rules","labelCol","wrapperCol","tooltip"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=window.antd,l=a.InputNumber,u=a.Form;const s=function(e){var t=e.className,n=void 0===t?"":t,a=e.name,s=e.label,c=void 0===s?"":s,f=(e.required,e.rules),d=void 0===f?[]:f,p=e.labelCol,h=void 0===p?{}:p,m=e.wrapperCol,v=void 0===m?{}:m,y=e.tooltip,g=void 0===y?"":y,b=i(e,r);return React.createElement(u.Item,{className:"timetics-input ".concat(n),label:c,labelCol:h,wrapperCol:v,name:a,tooltip:g,rules:d},React.createElement(l,o({},b,{size:"large"})))};var c=n(4378),f=["className","name","label","required","rules","labelCol","wrapperCol"];function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=window.antd,h=p.Input,m=p.Form,v=h.TextArea;const y=function(e){var t=e.className,n=void 0===t?"":t,r=e.name,o=e.label,i=void 0===o?"":o,a=(e.required,e.rules),l=void 0===a?[]:a,u=e.labelCol,s=void 0===u?{}:u,c=e.wrapperCol,p=void 0===c?{}:c,h=d(e,f);return React.createElement(m.Item,{className:"timetics-input ".concat(n),label:i,labelCol:s,wrapperCol:p,name:r,rules:l},React.createElement(v,h))};var g=n(6582),b=n(3632),w=n(7157),E=n(9039),x=window.timetics.timezone,O=n(1413),C=n(7363);const k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var _=n(6988),q=function(e,t){return C.createElement(_.Z,(0,O.Z)((0,O.Z)({},e),{},{ref:t,icon:k}))};q.displayName="PlusOutlined";const S=C.forwardRef(q);var P=n(2751);function T(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M=window.antd,L=M.Form,R=(M.Divider,M.Button),D=M.Select,Z=(M.Input,M.Col),I=M.Row,F=M.Space,H=wp.i18n.__,V=window.React;V.useState;const B=function(e){var t=N((0,E.K)(),2),n=t[0].meeting,r=t[1],o=(n.meeting,n.addressType);return V.createElement(L.List,{name:"locations",initialValue:[{location_type:"google-meet",location:""}]},(function(e,t){var n=t.add,i=t.remove;return V.createElement(I,{gutter:16,align:"middle"},e.map((function(t,n){return V.createElement(V.Fragment,{key:"location-type-".concat(n)},V.createElement(Z,{span:11},V.createElement(L.Item,{className:"timetics-input ",label:H("Location type","timetics"),name:[n,"location_type"],rules:[{required:!0,message:"Address is required"}]},V.createElement(D,{style:{width:"100%"},key:"meeting",onChange:function(e){!function(e,t){var n=T(o);n[t]=e,(0,w.I)({dispatch:r,name:"addressType",value:n})}(e,n)}},null==U?void 0:U.map((function(e,t){return V.createElement(D.Option,{key:"".concat(t,"-meeting"),value:e.value},V.createElement(F,{className:"tt-location-item"},e.icon,e.name))}))))),V.createElement(Z,{span:11},V.createElement(z,{nameIndex:n,locationType:o[n]})),e.length>1?V.createElement(Z,{span:2},V.createElement(R,{className:"dynamic-delete-button",type:"link",onClick:function(){var e=T(o);return e.splice(n,1),(0,w.I)({dispatch:r,name:"addressType",value:e}),console.log("remove",t),i(t.name)},icon:V.createElement(P.Ys,{width:"24",height:"24"}),"aria-label":H("remove-location-type","timetics")})):null)})),V.createElement(R,{type:"link",className:"tt-add-location-btn",onClick:function(){var e=T(o);e.push("google-meet"),(0,w.I)({dispatch:r,name:"addressType",value:e}),n()}},V.createElement(S,null)," ",H("Add another location","timetics")))}))};var U=[{id:1,name:"Google Meet",value:"google-meet",icon:V.createElement(P.gB,null)},{id:2,name:"Phone Call",value:"phone-call",icon:V.createElement(P.LP,null)},{id:3,name:"In Person Meeting",value:"in-person-meeting",icon:V.createElement(P.Ye,null)}];function z(e){var t=e.nameIndex,n=e.locationType;return"google-meet"==n?V.createElement(g.Z,{style:{display:"none"},label:H("","timetics"),type:"text",size:"small",placeholder:H("","timetics"),name:[t,"location"],defaultValue:"Google Meet"}):"in-person-meeting"==n?V.createElement(g.Z,{label:H("Address","timetics"),type:"text",size:"small",placeholder:H("Address","timetics"),name:[t,"location"],rules:[{required:!0,message:"Address is required"}]}):"phone-call"==n?V.createElement(g.Z,{label:H("Phone number","timetics"),type:"number",size:"small",placeholder:H("Phone number","timetics"),name:[t,"location"],rules:[{required:!0,message:"Phone number is required"}]}):null}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var W=window.React,G=wp.i18n.__,K=W.useState,Q=W.useEffect;const X=function(e){var t=e.meeting,n=Y((0,E.K)(),2),r=n[0].meeting,o=(n[1],r.meetingType,Y(K(!1),2)),i=o[0],a=o[1];return Q((function(){"One-to-Many"!=(null==t?void 0:t.type)&&"One-to-Many"!=(null==r?void 0:r.meetingType)||a(!0)}),[]),i?W.createElement(g.Z,{label:G("Seat capacity","timetics"),name:"capacity",type:"number",min:0,size:"small",placeholder:G("Enter seat capacity","timetics")}):null};function J(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oe=wp.i18n.__,ie=window.React,ae=(ie.useState,window.antd),le=ae.Col,ue=ae.Row,se=ae.Form,ce=ae.Button;ae.Space;const fe=function(e){var t=e.onFinish,n=e.onFinishFailed,r=e.current,o=e.setCurrent,i=ne((0,E.K)(),2),a=i[0].meeting,l=i[1],u=window.timetics,f=a.meeting,d=void 0===f?null:f,p=(a.meetingId,a.loading),h=(a.meetingType,a.meetingCustom),m=void 0!==h&&h,v=a.meetingCustomValue,O=1==m?"12":"24";return ie.createElement(se,{name:"dynamic_form_complex",layout:"vertical",autoComplete:"on",onFinish:function(e){if(console.log("values",e),m){var n=10;n="hr"==e.custom_duration_time?60*(null==e?void 0:e.custom_duration):null==e?void 0:e.custom_duration,l({type:b.N.SET_META_DATA_WITH_MEETING,payload:{meetingDuration:n}})}(0,w.I)({dispatch:l,name:"meeting",value:ee(ee({},d),e)}),t?t(ee(ee({},d),e)):o(r+1)},onFinishFailed:function(e){n(ee(ee({},e),{},{values:ee({},null==e?void 0:e.values)}))},initialValues:ee({},d)},ie.createElement(g.Z,{label:oe("Title","timetics"),name:"name",required:!0,rules:[{required:!0,message:oe("Please enter title!","timetics")}],type:"text",size:"small",placeholder:oe("Title","timetics")}),ie.createElement(y,{label:oe("Description","timetics"),labelCol:24,wrapperCol:24,name:"description",placeholder:oe("Enter description","timetics"),autoSize:{minRows:5,maxRows:5}}),0==p&&ie.createElement(B,null),ie.createElement(c.Z,{initialValue:null==u?void 0:u.default_timezone,style:{width:"100%"},key:"meeting-timezone",data:x,label:oe("meeting Time zone","timetics"),labelCol:24,wrapperCol:24,name:"timezone"}),ie.createElement(ue,{gutter:16},ie.createElement(le,{span:O},ie.createElement(c.Z,{style:{width:"100%"},key:"duration",data:de,label:oe("Duration","timetics"),labelCol:24,wrapperCol:24,name:"duration",placeholder:oe("Enter your meeting duration","timetics"),onChange:function(e){var t=e,n=e.split(" ")[0],r=e.split(" ")[1];"custom"==t?((0,w.I)({dispatch:l,name:"meetingCustom",value:!0}),(0,w.I)({dispatch:l,name:"meetingDuration",value:10}),t=v):((0,w.I)({dispatch:l,name:"meetingDuration",value:"hr"==r?60*n:n}),(0,w.I)({dispatch:l,name:"meetingCustom",value:!1}))},rules:[{required:!0,message:oe("Please select meeting duration!","timetics")}]})),m&&ie.createElement(ie.Fragment,null,ie.createElement(le,{span:6},ie.createElement(g.Z,{name:"custom_duration",key:"custom_duration",type:"number",min:1,label:oe("Set custom time","timetics"),onChange:function(e){(0,w.I)({dispatch:l,name:"meetingCustomValue",value:e.target.value})}})),ie.createElement(le,{span:6},ie.createElement(c.Z,{label:oe("hrs / min","timetics"),name:"custom_duration_time",style:{width:"100%"},data:[{label:"Min",value:"min"},{label:"Hrs",value:"hr"}],labelCol:24,wrapperCol:24,onChange:function(e){(0,w.I)({dispatch:l,name:"meetingCustomTime",value:e})}})))),ie.createElement(X,{meeting:d}),ie.createElement(s,{labelCol:24,wrapperCol:24,className:"timetics-input",label:oe("Price","timetics"),name:"price",type:"number",size:"small",min:0,placeholder:oe("Enter Price","timetics"),style:{width:"100%"}}),ie.createElement(ue,{justify:"end"},ie.createElement(le,null,t?ie.createElement(ce,{size:"large",type:"primary",htmlType:"submit"},oe("Save Updates","timetics")):ie.createElement(ce,{size:"large",type:"primary",htmlType:"submit"},oe("Next","timetics")))))};var de=[{id:1,name:"5 Min",value:"5 min"},{id:2,name:"10 Min",value:"10 min"},{id:3,name:"15 Min",value:"15 min"},{id:4,name:"20 Min",value:"20 min"},{id:5,name:"25 Min",value:"25 min"},{id:6,name:"30 Min",value:"30 min"},{id:7,name:"35 Min",value:"35 min"},{id:8,name:"40 Min",value:"40 min"},{id:9,name:"45 Min",value:"45 min"},{id:10,name:"50 Min",value:"50 min"},{id:11,name:"55 Min",value:"55 min"},{id:12,name:"1 hr",value:"1 hr"},{id:13,name:"Custom",value:"custom"}]},3044:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(7484),o=n.n(r),i=n(3181),a=n(5977);const l=(0,n(348).ZP)(a.Z).RangePicker;var u=n(4378),s=n(3632),c=n(7157),f=n(8253),d=n(9039),p=(n(5177),n(7026));function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var E=wp.i18n.__,x=window.React,O=x.useState,C=x.useEffect,k=window.antd,_=(k.Col,k.Row),q=k.Form,S=k.Button,P=k.Space,T=k.Select;const N=function(e){var t,n,r,a,h,v=e.onFinish,b=e.onFinishFailed,w=(e.current,e.setCurrent),k=e.saveUpdate,N=g(q.useForm(),1)[0],j=(0,p.Z)().getStaffsSchedule,M=g((0,d.K)(),2),L=M[0],R=L.meeting,D=L.staff,Z=M[1],I=D.staffs,F=R.meeting,H=void 0===F?null:F,V=R.meetingId,B=(R.loading,R.meetingType),U=(R.meetingCustom,R.meetingCustomValue,R.meetingStartDate),z=R.meetingEndDate,Y=R.schedules,$=R.selectedStaffIds,W=void 0===$?[]:$,G=R.selectedStaff,K=void 0===G?[]:G,Q=R.meetingDuration,X=g(O(["One-to-One","One-to-Many"].includes(B)?"":"multiple"),2),J=X[0],ee=(X[1],g(O("09:00 AM"),2));return ee[0],ee[1],C((function(){N.setFieldsValue({staff:W})}),[W]),x.createElement(q,{name:"dynamic_form_complex",layout:"vertical",autoComplete:"on",onFinish:function(e){var t,n=0;null!=e&&e.buffer_time&&(n="hr"==(null==e||null===(t=e.buffer_time)||void 0===t?void 0:t.split(" ")[1])?60*+(null==e?void 0:e.buffer_time.split(" ")[0]):+(null==e?void 0:e.buffer_time.split(" ")[0]));Z({type:s.N.SET_META_DATA_WITH_MEETING,payload:{meetingBufferTime:n}}),k?k(m(m(m({},H),e),{},{availability:{start:U,end:z}})):v(m(m(m({},H),e),{},{availability:{start:U,end:z}}))},onFinishFailed:function(e){b(m(m({},e),{},{values:m(m({},null==e?void 0:e.values),{},{meeting_start_date:U,meeting_end_date:z})}))},initialValues:m(m({},H),{},{staff:W})},x.createElement(q.Item,{className:"timetics-input ",wrapperCol:24,name:"staff",label:E("select host","timetics"),rules:[{required:!0,message:E("Please select host","timetics")}]},x.createElement(T,{style:{width:"100%"},className:"tt-host-input timetics-input",placeholder:E("Select host","timetics"),key:"staff",options:I,value:W,fieldNames:{label:"full_name",value:"id"},mode:J,onChange:function(e,t){!function(e){var t=e.values,n=e.option,r=[],o=[],i={};if(Array.isArray(n)){var a=t.filter((function(e){return!y(W).includes(e)}));a.length>0&&(i[a[0]]=j({staffId:a[0]})),r=n,o=t,(0,c.I)({dispatch:Z,name:"schedules",value:m(m({},Y),i)})}else r=[n],o=[t],i[t]=j({staffId:t}),(0,c.I)({dispatch:Z,name:"schedules",value:m({},i)});(0,c.I)({dispatch:Z,name:"selectedStaff",value:r}),(0,c.I)({dispatch:Z,name:"selectedStaffIds",value:o})}({values:e,option:t})},onDeselect:function(e,t){!function(e){var t=e.id,n=(e.option,m({},Y));delete n[t],(0,c.I)({dispatch:Z,name:"schedules",value:m({},n)});var r=y(K),o=y(W);r=r.filter((function(e){return e.id!==t})),o=o.filter((function(e){return e!==t})),(0,c.I)({dispatch:Z,name:"selectedStaff",value:r}),(0,c.I)({dispatch:Z,name:"selectedStaffIds",value:o}),N.setFieldsValue({staff:o})}({id:e,option:t})}})),x.createElement(f.Z,{meetingType:B,schedules:Y,selectedStaffIds:W,selectedStaff:K,meetingDuration:Q}),x.createElement(q.Item,{className:"timetics-input",label:E("Meeting date range (meeting availibility)","timetics"),labelCol:24,wrapperCol:24,name:"meeting_date_range"},x.createElement(l,{style:{width:"100%"},defaultValue:null!=H&&null!==(t=H.availability)&&void 0!==t&&t.start&&null!=H&&null!==(n=H.availability)&&void 0!==n&&n.end?[o()(null==H||null===(r=H.availability)||void 0===r?void 0:r.start),o()(null==H||null===(a=H.availability)||void 0===a?void 0:a.end)]:[],onChange:function(e){(0,c.I)({dispatch:Z,name:"meetingStartDate",value:o()(e[0].$d).format("YYYY-MM-DD")}),(0,c.I)({dispatch:Z,name:"meetingEndDate",value:o()(e[1].$d).format("YYYY-MM-DD")})}})),x.createElement(u.Z,{initialValue:null===(h=A[0])||void 0===h?void 0:h.value,style:{width:"100%"},key:"meetingVisibility",data:A,label:E("Meeting visibility","timetics"),labelCol:24,wrapperCol:24,name:"visibility"}),x.createElement(_,{justify:"end"},x.createElement(P,null,k?x.createElement(S,{size:"large",type:"primary",htmlType:"submit"},E("Save Updates","timetics")):x.createElement(x.Fragment,null,x.createElement(S,{size:"large",onClick:function(){w(1)}},E("Back","timetics")),x.createElement(i.Z,{id:V,type:"primary",htmlType:"submit",size:"large",buttonText:V?"Update Meeting":"Create Meeting"})))))};var A=[{id:1,name:"Enabled",value:"enabled"},{id:2,name:"Disabled",value:"disabled"}]},7213:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var r={meetings:{meetingsList:"/wp-json/timetics/v1/appointments",meeting:"/wp-json/timetics/v1/appointments",createMeeting:"/wp-json/timetics/v1/appointments",deleteMeeting:"/wp-json/timetics/v1/appointments",duplicateMeeting:"/wp-json/timetics/v1/appointments/:id/duplicate",search:"wp-json/timetics/v1/appointments/search",filterMeeting:"wp-json/timetics/v1/appointments/filter"},staffs:{staff:"/wp-json/timetics/v1/staffs",search:"/wp-json/timetics/v1/staffs/search"},bookings:{booking:"/wp-json/timetics/v1/bookings",search:"/wp-json/timetics/v1/bookings/search",slots:"wp-json/timetics/v1/bookings/entries",updatePaymentStatus:"/wp-json/timetics/v1/bookings/:bookingId/payment"},customers:{customers:"/wp-json/timetics/v1/customers",search:"/wp-json/timetics/v1/customers/search"},overview:{overview:"/wp-json/timetics/v1/reports/overview"},payment:{stripe:"/wp-json/timetics/v1/stripe/payment"},settings:{settings:"/wp-json/timetics/v1/settings"}}},6750:(e,t,n)=>{"use strict";n.d(t,{g:()=>u});var r=n(2593),o=n(7213);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};c(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&n.call(b,l)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,u){var s=d(e[r],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==i(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,u)}),(function(e){o("throw",e,l,u)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,u)}))}u(s.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return m.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),c(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,s,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),p}},e}function l(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}var u=function(){var e,t=(e=a().mark((function n(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)(o._.settings.settings,e));case 1:case"end":return t.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,u,"next",e)}function u(e){l(i,r,o,a,u,"throw",e)}a(undefined)}))});return function(e){return t.apply(this,arguments)}}()},3538:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>d,Bi:()=>m,FJ:()=>g,IW:()=>y,MY:()=>s,e5:()=>c,gJ:()=>f,kM:()=>h,wL:()=>v,wY:()=>p});var r=n(2593),o=n(7213);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};c(y,l,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&n.call(b,l)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,a,l,u){var s=d(e[r],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==i(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,u)}),(function(e){o("throw",e,l,u)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,u)}))}u(s.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return m.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),c(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,s,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),p}},e}function l(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,u,"next",e)}function u(e){l(i,r,o,a,u,"throw",e)}a(undefined)}))}}var s=function(){var e=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)(o._.meetings.meetingsList,e));case 1:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=u(a().mark((function t(e,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.meeting,"/").concat(n),e));case 1:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)(o._.meetings.createMeeting,e));case 1:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=u(a().mark((function t(e,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.createMeeting,"/").concat(n),e));case 1:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),p=function(){var e=u(a().mark((function t(e,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.deleteMeeting,"/").concat(n),e));case 1:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.deleteMeeting),e));case 1:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=u(a().mark((function t(e,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.duplicateMeeting.replace(":id",n)),e));case 1:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.search),e));case 1:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,r.Q)("".concat(o._.meetings.filterMeeting),e));case 1:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=u(a().mark((function t(e,n){var i,l,u,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.staffId,l=n.meetingId,u=n.startDate,s=n.endDate,t.abrupt("return",(0,r.Q)("".concat(o._.bookings.slots,"?staff_id=").concat(i,"&meeting_id=").concat(l,"&start_date=").concat(u,"&end_date=").concat(s),e));case 2:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}()},5177:(e,t,n)=>{"use strict";n.d(t,{SX:()=>d,_9:()=>s,rQ:()=>u,sR:()=>f,wR:()=>c,wU:()=>l,z9:()=>p});var r=n(7484),o=n.n(r);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e){var t=e.duration,n=void 0===t?10:t,r=e.startTime,o=e.endTime,i=[],a=new Date(d(r)).getTime(),l=new Date(d(o)).getTime(),u=1e3*n*60;for(i.push({value:a,label:p(new Date(a).toString())});a<l;)a+=u,i.push({value:a,label:p(new Date(a).toString())});return i},u=(d("10:00 AM"),d("10:30 AM"),d("11:00 AM"),d("12:00 PM"),d("01:00 PM"),d("02:00 PM"),d("03:45 PM"),d("06:00 PM"),function(e){var t,n,r=e.schedules,o=e.duration,a=e.bufferTime,l=e.dayEnd,u=(null===(t=i(r)[i(r).length-1].start)||void 0===t||t.label,null===(n=i(r)[i(r).length-1].end)||void 0===n?void 0:n.label);if(a){var s=new Date(d(u,24)).getTime();u=p(new Date(s+1e3*o*60))}return{startTime:u,duration:o,dayEnd:l}}),s=function(e){var t=e.startTime,n=e.duration,r=void 0===n?10:n,o=e.dayEnd,i=void 0===o?"05:00 PM":o,a=new Date(d(t,24)).getTime(),l=(new Date(d(i)).getTime(),a+1e3*r*60);return{start:{value:a,label:p(new Date(a).toString())},end:{value:l,label:p(new Date(l).toString())}}},c=function(e){var t=e.startTime,n=e.duration,r=void 0===n?10:n,o=e.dayEnd,i=void 0===o?"05:00 PM":o,a=new Date(d(t,24)).getTime();new Date(d(i)).getTime();return{start:a,end:a+1e3*r*60}},f=function(e){var t=e.startTime,n=e.duration;return[{key:"Fri",name:"Friday",status:!1,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Sat",name:"Saturday",status:!1,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Sun",name:"Sunday",status:!0,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Mon",name:"Monday",status:!0,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Tue",name:"Tuesday",status:!0,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Wed",name:"Wednesday",status:!0,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]},{key:"Thu",name:"Thursday",status:!0,schedules:[s({startTime:t,duration:n})],actions:["AddIcon","DeleteIcon"]}]};function d(e){arguments.length>1&&undefined;var t=new Date,n=null==e?void 0:e.match(/(\d+):(\d+) (AM|PM)/);if(n){var r=parseInt(n[1]),o=parseInt(n[2]),i=n[3];"PM"==i&&r<12&&(r+=12),t.setHours(r,o,0,0)}else{var a=null==e?void 0:e.split(":"),l=parseInt(a[0]),u=parseInt(a[1]);t.setHours(l,u,0,0)}return t.toString()}function p(e){return o()(e).format("HH:mm")}},2593:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var r,o,i=n(1721);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(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 u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function f(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&n.call(b,i)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,l,u){var s=d(e[r],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,u)}),(function(e){o("throw",e,l,u)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,u)}))}u(s.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return m.prototype=v,r(w,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),c(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,u,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),p}},e}function c(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}var f=window.antd.notification;i.ZP.defaults.baseURL=null===(r=timetics)||void 0===r?void 0:r.site_url,i.ZP.defaults.headers={"X-WP-Nonce":null===(o=timetics)||void 0===o?void 0:o.nonce};i.ZP.CancelToken.source();i.ZP.interceptors.response.use((function(e){var t,n;if("get"!==(null==e||null===(t=e.config)||void 0===t?void 0:t.method)&&null!=e&&null!==(n=e.data)&&void 0!==n&&n.message){var r,o,i;if(null!=e&&null!==(r=e.config)&&void 0!==r&&null!==(o=r.params)&&void 0!==o&&o.stopToast)return e;f.success({message:null==e||null===(i=e.data)||void 0===i?void 0:i.message,placement:"topRight"})}return e}),function(){var e,t=(e=s().mark((function n(e){var t,r;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.name&&"AxiosError"==e.name&&f.error({message:null==e||null===(t=e.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.message,placement:"topRight"}),n.abrupt("return",Promise.reject(e));case 2:case"end":return n.stop()}}),n)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,l,"next",e)}function l(e){c(i,r,o,a,l,"throw",e)}a(undefined)}))});return function(e){return t.apply(this,arguments)}}());var d=function(e,t){return i.ZP.request(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:e},t))}},3181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=window.React,o=(wp.i18n.__,window.antd.Button);const i=function(e){e.id;var t=e.loading,n=e.buttonText;return r.createElement(r.Fragment,null,r.createElement(o,{type:"primary",block:!0,htmlType:"submit",size:"large",loading:t},n))}},4378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=["className","name","label","required","rules","labelCol","wrapperCol","labelAlign","colon","tooltip","initialValue","onChange"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=window.antd,l=a.Select,u=a.Form;const s=function(e){var t,n=e.className,a=void 0===n?"":n,s=e.name,c=e.label,f=void 0===c?"":c,d=(e.required,e.rules),p=void 0===d?[]:d,h=e.labelCol,m=void 0===h?{}:h,v=e.wrapperCol,y=void 0===v?{}:v,g=e.labelAlign,b=void 0===g?"":g,w=e.colon,E=void 0===w?"":w,x=e.tooltip,O=void 0===x?"":x,C=e.initialValue,k=e.onChange,_=i(e,r);return React.createElement(u.Item,{className:"timetics-input ".concat(a),label:f,labelCol:m,wrapperCol:y,name:s,colon:E,labelAlign:b,rules:p,tooltip:O,initialValue:C},React.createElement(l,o({},_,{size:"large",onChange:k}),null==_||null===(t=_.data)||void 0===t?void 0:t.map((function(e,t){return React.createElement(Option,{key:"props.key-".concat(t),value:e.value},e.name)}))))}},5729:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=antd,o=r.Alert,i=r.Spin,a=window.React;const l=function(e){var t=e.tip,n=e.msg,r=e.desc,l=e.type,u=e.wrapperClassName;return a.createElement(i,{tip:t,wrapperClassName:u},a.createElement(o,{message:n,description:r,type:l}))}},6582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=["className","name","label","required","rules","labelCol","wrapperCol","tooltip"];function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=window.antd,l=a.Input,u=a.Form;const s=function(e){var t=e.className,n=void 0===t?"":t,a=e.name,s=e.label,c=void 0===s?"":s,f=(e.required,e.rules),d=void 0===f?[]:f,p=e.labelCol,h=void 0===p?{}:p,m=e.wrapperCol,v=void 0===m?{}:m,y=e.tooltip,g=void 0===y?"":y,b=i(e,r);return React.createElement(u.Item,{className:"timetics-input ".concat(n),label:c,labelCol:h,wrapperCol:v,name:a,tooltip:g,rules:d},React.createElement(l,o({},b,{size:"large"})))}},2751:(e,t,n)=>{"use strict";n.d(t,{$l:()=>y,A0:()=>p,F_:()=>S,LP:()=>C,LZ:()=>m,Lx:()=>N,MM:()=>q,NL:()=>h,Pl:()=>_,Qr:()=>i,SM:()=>P,UC:()=>a,V7:()=>T,W1:()=>f,Ye:()=>O,Ys:()=>u,ZN:()=>s,Ze:()=>E,b0:()=>l,by:()=>v,dY:()=>r,dt:()=>c,eg:()=>k,gB:()=>x,ig:()=>g,k1:()=>d,pJ:()=>o,r7:()=>w,tB:()=>b});var r=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M15.75 16.5H2.25C1.9425 16.5 1.6875 16.245 1.6875 15.9375C1.6875 15.63 1.9425 15.375 2.25 15.375H15.75C16.0575 15.375 16.3125 15.63 16.3125 15.9375C16.3125 16.245 16.0575 16.5 15.75 16.5Z"}),React.createElement("path",{d:"M14.2649 2.61C12.8099 1.155 11.3849 1.1175 9.89243 2.61L8.98493 3.5175C8.90993 3.5925 8.87993 3.7125 8.90993 3.8175C9.47993 5.805 11.0699 7.395 13.0574 7.965C13.0874 7.9725 13.1174 7.98 13.1474 7.98C13.2299 7.98 13.3049 7.95 13.3649 7.89L14.2649 6.9825C15.0074 6.2475 15.3674 5.535 15.3674 4.815C15.3749 4.0725 15.0149 3.3525 14.2649 2.61Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0775 8.31747C11.28 8.43748 11.49 8.54249 11.7075 8.64748C11.7367 8.66013 11.7655 8.67254 11.794 8.68469C12.0472 8.79272 12.1206 9.12682 11.926 9.32149L7.63497 13.6125C7.54497 13.71 7.35747 13.8 7.22248 13.8225L4.34251 14.2275C4.25251 14.2425 4.16247 14.25 4.07247 14.25C3.66749 14.25 3.29249 14.1075 3.0225 13.845C2.70746 13.5225 2.56501 13.0425 2.63999 12.5325L3.04497 9.65998C3.0675 9.53247 3.15749 9.34497 3.255 9.24749L7.55134 4.95113C7.74465 4.75781 8.07062 4.83089 8.18131 5.08088C8.19623 5.11457 8.21162 5.14844 8.2275 5.18248C8.33247 5.39248 8.43748 5.59497 8.5575 5.79749C8.65501 5.96249 8.75997 6.12749 8.84997 6.23998C8.95516 6.4013 9.07349 6.54288 9.14976 6.63421L9.165 6.65247C9.21751 6.71997 9.255 6.77248 9.27747 6.78749C9.52499 7.08749 9.80248 7.35747 10.05 7.56747C10.0827 7.6002 10.1132 7.62847 10.1366 7.64861C10.1561 7.66541 10.1707 7.67656 10.1775 7.67997C10.32 7.79997 10.47 7.91997 10.5975 8.00249C10.755 8.11498 10.9125 8.21997 11.0775 8.31747Z"})))},o=function(e){var t=e.color,n=void 0===t?"#FF3B30":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",fill:n},React.createElement("path",{d:"M15.3031 4.46471C14.2251 4.35759 13.1472 4.27725 12.0626 4.21699V4.21029L11.9153 3.33991C11.8148 2.72395 11.6675 1.8 10.1009 1.8H8.3467C6.7867 1.8 6.6394 2.68377 6.53228 3.33321L6.39168 4.19021C5.76902 4.23038 5.14636 4.27055 4.5237 4.33081L3.15787 4.46471C2.87667 4.4915 2.67581 4.73922 2.70259 5.01373C2.72937 5.28823 2.9704 5.48909 3.2516 5.46231L4.61743 5.3284C8.12575 4.98025 11.6609 5.11416 15.2093 5.469C15.2294 5.469 15.2428 5.469 15.2629 5.469C15.5173 5.469 15.7383 5.27484 15.765 5.01373C15.7851 4.73922 15.5843 4.4915 15.3031 4.46471Z"}),React.createElement("path",{d:"M14.0712 6.41152C13.9105 6.24414 13.6896 6.15041 13.462 6.15041H4.99915C4.77151 6.15041 4.54387 6.24414 4.38988 6.41152C4.23589 6.5789 4.14885 6.80654 4.16224 7.04088L4.57734 13.9102C4.65099 14.9279 4.74473 16.2 7.08137 16.2H11.3797C13.7164 16.2 13.8101 14.9346 13.8838 13.9102L14.2989 7.04757C14.3123 6.80654 14.2252 6.5789 14.0712 6.41152ZM10.342 12.8457H8.11244C7.83794 12.8457 7.6103 12.618 7.6103 12.3435C7.6103 12.069 7.83794 11.8414 8.11244 11.8414H10.342C10.6165 11.8414 10.8441 12.069 10.8441 12.3435C10.8441 12.618 10.6165 12.8457 10.342 12.8457ZM10.9044 10.1676H7.55674C7.28223 10.1676 7.05459 9.93993 7.05459 9.66542C7.05459 9.39091 7.28223 9.16328 7.55674 9.16328H10.9044C11.1789 9.16328 11.4065 9.39091 11.4065 9.66542C11.4065 9.93993 11.1789 10.1676 10.9044 10.1676Z"})))},i=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.0297 4.2696V5.2344C8.14325 5.3856 7.07045 6.5952 7.07045 8.5896V11.88H4.26965C2.62085 11.88 1.80005 11.0592 1.80005 9.4104V4.2696C1.80005 2.6208 2.62085 1.8 4.26965 1.8H7.56005C9.20885 1.8 10.0297 2.6208 10.0297 4.2696Z"}),React.createElement("path",{d:"M13.7302 6.11999H10.4398C8.79102 6.11999 7.97021 6.94079 7.97021 8.5896V13.7304C7.97021 15.3792 8.79102 16.2 10.4398 16.2H13.7302C15.379 16.2 16.1998 15.3792 16.1998 13.7304V8.5896C16.1998 6.94079 15.379 6.11999 13.7302 6.11999ZM13.4134 11.7H12.7798V12.3336C12.7798 12.6288 12.535 12.8736 12.2398 12.8736C11.9446 12.8736 11.6998 12.6288 11.6998 12.3336V11.7H11.0662C10.771 11.7 10.5262 11.4552 10.5262 11.16C10.5262 10.8648 10.771 10.62 11.0662 10.62H11.6998V9.9864C11.6998 9.6912 11.9446 9.4464 12.2398 9.4464C12.535 9.4464 12.7798 9.6912 12.7798 9.9864V10.62H13.4134C13.7086 10.62 13.9534 10.8648 13.9534 11.16C13.9534 11.4552 13.7086 11.7 13.4134 11.7Z"})))},a=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M15.3001 6.8076V3.9474C15.3001 3.0591 14.8969 2.7 13.8952 2.7H11.35C10.3483 2.7 9.94507 3.0591 9.94507 3.9474V6.8013C9.94507 7.6959 10.3483 8.0487 11.35 8.0487H13.8952C14.8969 8.055 15.3001 7.6959 15.3001 6.8076Z"}),React.createElement("path",{d:"M15.3001 13.8951V11.3499C15.3001 10.3482 14.8969 9.945 13.8952 9.945H11.35C10.3483 9.945 9.94507 10.3482 9.94507 11.3499V13.8951C9.94507 14.8968 10.3483 15.3 11.35 15.3H13.8952C14.8969 15.3 15.3001 14.8968 15.3001 13.8951Z"}),React.createElement("path",{d:"M8.05495 6.8076V3.9474C8.05495 3.0591 7.65175 2.7 6.65005 2.7H4.10485C3.10315 2.7 2.69995 3.0591 2.69995 3.9474V6.8013C2.69995 7.6959 3.10315 8.0487 4.10485 8.0487H6.65005C7.65175 8.055 8.05495 7.6959 8.05495 6.8076Z"}),React.createElement("path",{d:"M8.05495 13.8951V11.3499C8.05495 10.3482 7.65175 9.945 6.65005 9.945H4.10485C3.10315 9.945 2.69995 10.3482 2.69995 11.3499V13.8951C2.69995 14.8968 3.10315 15.3 4.10485 15.3H6.65005C7.65175 15.3 8.05495 14.8968 8.05495 13.8951Z"})))},l=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M14.1365 5.1364C14.488 4.78492 14.488 4.21508 14.1365 3.8636C13.785 3.51213 13.2152 3.51213 12.8637 3.8636L9.0001 7.72721L5.13649 3.8636C4.78502 3.51213 4.21517 3.51213 3.8637 3.8636C3.51223 4.21508 3.51223 4.78492 3.8637 5.1364L7.72731 9L3.8637 12.8636C3.51223 13.2151 3.51223 13.7849 3.8637 14.1364C4.21517 14.4879 4.78502 14.4879 5.13649 14.1364L9.0001 10.2728L12.8637 14.1364C13.2152 14.4879 13.785 14.4879 14.1365 14.1364C14.488 13.7849 14.488 13.2151 14.1365 12.8636L10.2729 9L14.1365 5.1364Z"})))},u=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M8.9998 1.8C5.0326 1.8 1.7998 5.0328 1.7998 9C1.7998 12.9672 5.0326 16.2 8.9998 16.2C12.967 16.2 16.1998 12.9672 16.1998 9C16.1998 5.0328 12.967 1.8 8.9998 1.8ZM11.419 10.656C11.6278 10.8648 11.6278 11.2104 11.419 11.4192C11.311 11.5272 11.1742 11.5776 11.0374 11.5776C10.9006 11.5776 10.7638 11.5272 10.6558 11.4192L8.9998 9.7632L7.3438 11.4192C7.2358 11.5272 7.099 11.5776 6.9622 11.5776C6.8254 11.5776 6.6886 11.5272 6.5806 11.4192C6.3718 11.2104 6.3718 10.8648 6.5806 10.656L8.2366 9L6.5806 7.344C6.3718 7.1352 6.3718 6.7896 6.5806 6.5808C6.7894 6.372 7.135 6.372 7.3438 6.5808L8.9998 8.2368L10.6558 6.5808C10.8646 6.372 11.2102 6.372 11.419 6.5808C11.6278 6.7896 11.6278 7.1352 11.419 7.344L9.763 9L11.419 10.656Z"})))},s=function(e){var t=e.color,n=e.width,r=void 0===n?"18":n,o=e.height,i=void 0===o?"18":o;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:r,height:i,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg"},React.createElement("ellipse",{cx:"16.5882",cy:"10.4118",rx:"1.41178",ry:"1.41176",transform:"rotate(90 16.5882 10.4118)"}),React.createElement("ellipse",{cx:"9.99986",cy:"10.4118",rx:"1.41178",ry:"1.41176",transform:"rotate(90 9.99986 10.4118)"}),React.createElement("ellipse",{cx:"3.41148",cy:"10.4118",rx:"1.41178",ry:"1.41176",transform:"rotate(90 3.41148 10.4118)"})))},c=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.89995 3.6C9.89995 3.10294 9.49701 2.7 8.99995 2.7C8.50289 2.7 8.09995 3.10294 8.09995 3.6V8.1H3.59995C3.10289 8.1 2.69995 8.50294 2.69995 9C2.69995 9.49706 3.10289 9.9 3.59995 9.9H8.09995V14.4C8.09995 14.8971 8.50289 15.3 8.99995 15.3C9.49701 15.3 9.89995 14.8971 9.89995 14.4V9.9H14.4C14.897 9.9 15.3 9.49706 15.3 9C15.3 8.50294 14.897 8.1 14.4 8.1H9.89995V3.6Z"})))},f=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 20 20",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2 3.6C6.10721 3.6 3.6 6.10721 3.6 9.2C3.6 12.2928 6.10721 14.8 9.2 14.8C10.7086 14.8 12.0779 14.2035 13.0848 13.2334C13.1059 13.2059 13.1291 13.1795 13.1542 13.1543C13.1794 13.1291 13.2059 13.106 13.2333 13.0849C14.2034 12.0779 14.8 10.7086 14.8 9.2C14.8 6.10721 12.2928 3.6 9.2 3.6ZM14.8255 13.6942C15.8108 12.4624 16.4 10.9 16.4 9.2C16.4 5.22355 13.1765 2 9.2 2C5.22355 2 2 5.22355 2 9.2C2 13.1765 5.22355 16.4 9.2 16.4C10.9 16.4 12.4624 15.8108 13.6941 14.8256L16.6342 17.7657C16.9467 18.0781 17.4532 18.0781 17.7656 17.7657C18.078 17.4533 18.078 16.9467 17.7656 16.6343L14.8255 13.6942Z"})))},d=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 20 20",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M11.6667 6.66667C11.6667 7.03486 11.9651 7.33333 12.3333 7.33333C12.7015 7.33333 13 7.03486 13 6.66667V5.33333H15.6667C16.0349 5.33333 16.3333 5.03486 16.3333 4.66667C16.3333 4.29848 16.0349 4 15.6667 4H13V2.66667C13 2.29848 12.7015 2 12.3333 2C11.9651 2 11.6667 2.29848 11.6667 2.66667V6.66667Z"}),React.createElement("path",{d:"M9.66667 9.33333C9.29848 9.33333 9 9.63181 9 10C9 10.3682 9.29848 10.6667 9.66667 10.6667H15.6667C16.0349 10.6667 16.3333 10.3682 16.3333 10C16.3333 9.63181 16.0349 9.33333 15.6667 9.33333H9.66667Z"}),React.createElement("path",{d:"M3 15.3333C3 14.9651 3.29848 14.6667 3.66667 14.6667H8.33333C8.70152 14.6667 9 14.9651 9 15.3333C9 15.7015 8.70152 16 8.33333 16H3.66667C3.29848 16 3 15.7015 3 15.3333Z"}),React.createElement("path",{d:"M11.6667 14.6667V13.3333C11.6667 12.9651 11.3682 12.6667 11 12.6667C10.6318 12.6667 10.3333 12.9651 10.3333 13.3333V17.3333C10.3333 17.7015 10.6318 18 11 18C11.3682 18 11.6667 17.7015 11.6667 17.3333V16H15.6667C16.0349 16 16.3333 15.7015 16.3333 15.3333C16.3333 14.9651 16.0349 14.6667 15.6667 14.6667H11.6667Z"}),React.createElement("path",{d:"M3 10C3 9.63181 3.29848 9.33333 3.66667 9.33333H6.33333V8C6.33333 7.63181 6.63181 7.33333 7 7.33333C7.36819 7.33333 7.66667 7.63181 7.66667 8V12C7.66667 12.3682 7.36819 12.6667 7 12.6667C6.63181 12.6667 6.33333 12.3682 6.33333 12V10.6667H3.66667C3.29848 10.6667 3 10.3682 3 10Z"}),React.createElement("path",{d:"M3 4.66667C3 4.29848 3.29848 4 3.66667 4H9.66667C10.0349 4 10.3333 4.29848 10.3333 4.66667C10.3333 5.03486 10.0349 5.33333 9.66667 5.33333H3.66667C3.29848 5.33333 3 5.03486 3 4.66667Z"})))},p=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.90217 9.07826C7.38923 9.07826 6.16304 7.85207 6.16304 6.33913C6.16304 4.82619 7.38923 3.6 8.90217 3.6C8.93492 3.6 8.96753 3.60057 9 3.60171C9.03247 3.60057 9.06508 3.6 9.09783 3.6C10.6108 3.6 11.837 4.82619 11.837 6.33913C11.837 7.85207 10.6108 9.07826 9.09783 9.07826C9.06508 9.07826 9.03247 9.07769 9 9.07655C8.96753 9.07769 8.93492 9.07826 8.90217 9.07826ZM13.0601 14.5565H13.2557C13.6067 14.5565 13.8913 14.2719 13.8913 13.921C13.8913 11.8131 12.1836 10.1054 10.0758 10.1054H9.88013H8.11987H7.92422C5.81637 10.1054 4.1087 11.8131 4.1087 13.921C4.1087 14.2719 4.39331 14.5565 4.74426 14.5565H4.93991H13.0601ZM3.60795 14.5565H0.656965C0.295314 14.5565 0 14.2633 0 13.8996C0 11.9929 1.54504 10.4478 3.45173 10.4478H4.76566C4.81504 10.4478 4.86244 10.4498 4.91167 10.4519L4.91759 10.4521C4.00384 11.2353 3.42391 12.4016 3.42391 13.7005V13.8717C3.42391 14.1221 3.49239 14.3554 3.60795 14.5565ZM6.14806 8.37422C5.71365 8.80863 5.11447 9.07826 4.45109 9.07826C3.12646 9.07826 2.05435 8.00615 2.05435 6.68152C2.05435 5.3569 3.12646 4.28478 4.45109 4.28478C4.98179 4.28478 5.47184 4.45812 5.86987 4.74915C5.6195 5.22422 5.47826 5.76563 5.47826 6.33913C5.47826 7.10095 5.72649 7.80499 6.14806 8.37422ZM14.3921 14.5565H17.343C17.7047 14.5565 18 14.2633 18 13.8996C18 11.9929 16.455 10.4478 14.5483 10.4478H13.2343C13.185 10.4478 13.1376 10.4498 13.0883 10.4519L13.0824 10.4521C13.9962 11.2353 14.5761 12.4016 14.5761 13.7005V13.8717C14.5761 14.1221 14.5076 14.3554 14.3921 14.5565ZM11.8519 8.37422C12.2863 8.80863 12.8855 9.07826 13.5489 9.07826C14.8735 9.07826 15.9457 8.00615 15.9457 6.68152C15.9457 5.3569 14.8735 4.28478 13.5489 4.28478C13.0182 4.28478 12.5282 4.45812 12.1301 4.74915C12.3805 5.22422 12.5217 5.76563 12.5217 6.33913C12.5217 7.10095 12.2735 7.80499 11.8519 8.37422Z"})))},h=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M9.9 5.4C9.9 7.38844 8.28844 9 6.3 9C4.31156 9 2.7 7.38844 2.7 5.4C2.7 3.41156 4.31156 1.8 6.3 1.8C8.28844 1.8 9.9 3.41156 9.9 5.4ZM0 15.3647C0 12.5944 2.24438 10.35 5.01469 10.35H7.58531C10.3556 10.35 12.6 12.5944 12.6 15.3647C12.6 15.8259 12.2259 16.2 11.7647 16.2H0.835313C0.374063 16.2 0 15.8259 0 15.3647ZM17.1366 16.2H13.2581C13.41 15.9356 13.5 15.6291 13.5 15.3V15.075C13.5 13.3678 12.7378 11.835 11.5369 10.8056C11.6044 10.8028 11.6691 10.8 11.7366 10.8H13.4634C15.9694 10.8 18 12.8306 18 15.3366C18 15.8147 17.6119 16.2 17.1366 16.2ZM12.15 9C11.2781 9 10.4906 8.64562 9.91969 8.07469C10.4738 7.32656 10.8 6.40125 10.8 5.4C10.8 4.64625 10.6144 3.93469 10.2853 3.31031C10.8084 2.92781 11.4525 2.7 12.15 2.7C13.8909 2.7 15.3 4.10906 15.3 5.85C15.3 7.59094 13.8909 9 12.15 9Z"})))},m=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.39644 15.9806C5.00536 15.5907 5.00446 14.9575 5.39443 14.5664L10.8603 9.085L5.39443 3.60358C5.00446 3.2125 5.00536 2.57934 5.39644 2.18937C5.78751 1.7994 6.42068 1.80029 6.81065 2.19137L12.9806 8.3789C13.3698 8.76919 13.3698 9.40081 12.9806 9.79111L6.81065 15.9786C6.42068 16.3697 5.78751 16.3706 5.39644 15.9806Z"})))},v=function(e){var t=e.color,n=void 0===t?"#1890ff":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 19",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.0482 4.37109H4.30125C4.06778 4.37109 3.84329 4.38008 3.62778 4.40704C1.21225 4.6137 0 6.04238 0 8.6751V12.2693C0 15.8634 1.43674 16.5733 4.30125 16.5733H4.66044C4.85799 16.5733 5.1184 16.708 5.23514 16.8608L6.3127 18.2985C6.78862 18.9364 7.56087 18.9364 8.03679 18.2985L9.11435 16.8608C9.24904 16.6811 9.46456 16.5733 9.68905 16.5733H10.0482C12.6793 16.5733 14.107 15.3692 14.3136 12.9432C14.3405 12.7275 14.3495 12.5029 14.3495 12.2693V8.6751C14.3495 5.80876 12.9127 4.37109 10.0482 4.37109ZM4.04084 11.5594C3.53798 11.5594 3.14288 11.1551 3.14288 10.6609C3.14288 10.1667 3.54696 9.76233 4.04084 9.76233C4.53473 9.76233 4.93881 10.1667 4.93881 10.6609C4.93881 11.1551 4.53473 11.5594 4.04084 11.5594ZM7.17474 11.5594C6.67188 11.5594 6.27678 11.1551 6.27678 10.6609C6.27678 10.1667 6.68086 9.76233 7.17474 9.76233C7.66862 9.76233 8.07271 10.1667 8.07271 10.6609C8.07271 11.1551 7.6776 11.5594 7.17474 11.5594ZM10.3176 11.5594C9.81476 11.5594 9.41966 11.1551 9.41966 10.6609C9.41966 10.1667 9.82374 9.76233 10.3176 9.76233C10.8115 9.76233 11.2156 10.1667 11.2156 10.6609C11.2156 11.1551 10.8115 11.5594 10.3176 11.5594Z"}),React.createElement("path",{d:"M17.9423 5.08086V8.67502C17.9423 10.4721 17.3855 11.6941 16.272 12.368C16.0026 12.5298 15.6884 12.3141 15.6884 11.9996L15.6973 8.67502C15.6973 5.08086 13.641 3.0232 10.0491 3.0232L4.58048 3.03219C4.26619 3.03219 4.05067 2.7177 4.21231 2.44814C4.88578 1.33395 6.10702 0.776855 7.89398 0.776855H13.641C16.5055 0.776855 17.9423 2.21452 17.9423 5.08086Z"})))},y=function(e){var t=e.color,n=void 0===t?"#1890ff":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 19",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M16.1896 7.57803H13.5902C11.4586 7.57803 9.72274 5.84103 9.72274 3.70803V1.10703C9.72274 0.612031 9.318 0.207031 8.82332 0.207031H5.00977C2.23956 0.207031 0 2.00703 0 5.22003V13.194C0 16.407 2.23956 18.207 5.00977 18.207H12.0792C14.8494 18.207 17.089 16.407 17.089 13.194V8.47803C17.089 7.98303 16.6843 7.57803 16.1896 7.57803ZM8.09478 14.382H4.4971C4.12834 14.382 3.82254 14.076 3.82254 13.707C3.82254 13.338 4.12834 13.032 4.4971 13.032H8.09478C8.46355 13.032 8.76935 13.338 8.76935 13.707C8.76935 14.076 8.46355 14.382 8.09478 14.382ZM9.89363 10.782H4.4971C4.12834 10.782 3.82254 10.476 3.82254 10.107C3.82254 9.73803 4.12834 9.43203 4.4971 9.43203H9.89363C10.2624 9.43203 10.5682 9.73803 10.5682 10.107C10.5682 10.476 10.2624 10.782 9.89363 10.782Z"})))},g=function(e){var t=e.color,n=void 0===t?"#1890ff":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 19",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5902 7.57803H16.1896C16.6843 7.57803 17.089 7.98303 17.089 8.47803V13.194C17.089 16.407 14.8494 18.207 12.0792 18.207H5.00977C2.23956 18.207 0 16.407 0 13.194V5.22003C0 2.00703 2.23956 0.207031 5.00977 0.207031H8.82332C9.318 0.207031 9.72274 0.612031 9.72274 1.10703V3.70803C9.72274 5.84103 11.4586 7.57803 13.5902 7.57803ZM11.9613 0.396012C11.5926 0.0270125 10.954 0.279013 10.954 0.792013V3.93301C10.954 5.24701 12.0693 6.33601 13.4274 6.33601C14.2818 6.34501 15.4689 6.34501 16.4852 6.34501H16.4854C16.998 6.34501 17.2679 5.74201 16.9081 5.38201C16.4894 4.96018 15.9637 4.42927 15.3988 3.85888L15.3932 3.85325L15.3913 3.85133L15.3905 3.8505L15.3902 3.85016C14.2096 2.65803 12.86 1.29526 11.9613 0.396012ZM3.0145 12.0732C3.0145 11.7456 3.28007 11.48 3.60768 11.48H5.32132V9.76639C5.32132 9.43879 5.58689 9.17321 5.9145 9.17321C6.2421 9.17321 6.50768 9.43879 6.50768 9.76639V11.48H8.22131C8.54892 11.48 8.8145 11.7456 8.8145 12.0732C8.8145 12.4008 8.54892 12.6664 8.22131 12.6664H6.50768V14.38C6.50768 14.7076 6.2421 14.9732 5.9145 14.9732C5.58689 14.9732 5.32132 14.7076 5.32132 14.38V12.6664H3.60768C3.28007 12.6664 3.0145 12.4008 3.0145 12.0732Z"})))},b=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M12.6 5.4C12.6 7.38844 10.9884 9 8.99995 9C7.01151 9 5.39995 7.38844 5.39995 5.4C5.39995 3.41156 7.01151 1.8 8.99995 1.8C10.9884 1.8 12.6 3.41156 12.6 5.4ZM2.69995 15.3647C2.69995 12.5944 4.94433 10.35 7.71464 10.35H10.2853C13.0556 10.35 15.3 12.5944 15.3 15.3647C15.3 15.8259 14.9259 16.2 14.4646 16.2H3.53526C3.07401 16.2 2.69995 15.8259 2.69995 15.3647Z"})))},w=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 16 16",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.31171 2.02343C7.31162 2.0236 7.31179 2.02326 7.31171 2.02343L6.02201 4.62263C5.87468 4.92425 5.63147 5.17748 5.3861 5.36081C5.13993 5.54473 4.83023 5.70415 4.50625 5.75958L4.50393 5.75998L2.16361 6.15179C2.1635 6.15181 2.16372 6.15177 2.16361 6.15179C1.53002 6.25828 1.36693 6.50183 1.33587 6.59987C1.30459 6.69855 1.29782 6.9928 1.75157 7.45002L3.57126 9.28367C3.82431 9.53866 3.99034 9.8757 4.08129 10.1958C4.17232 10.5163 4.20784 10.8891 4.13024 11.238L4.12926 11.2424L3.60828 13.5123C3.41655 14.3472 3.6249 14.5927 3.66782 14.6243C3.71125 14.6562 4.00801 14.7812 4.74106 14.3428L6.93988 13.0312C7.26577 12.8401 7.65149 12.7635 8.00114 12.7635C8.35019 12.7635 8.7366 12.8399 9.06146 13.0339L11.2546 14.3421C11.9945 14.7825 12.2905 14.6574 12.3319 14.6269C12.3723 14.5972 12.581 14.354 12.3884 13.5118L11.8665 11.238C11.7889 10.8891 11.8245 10.5163 11.9155 10.1958C12.0064 9.8757 12.1725 9.53866 12.4255 9.28367L14.2452 7.45002L14.2468 7.44842C14.7035 6.99134 14.695 6.69818 14.6641 6.60108C14.6326 6.50249 14.4678 6.25844 13.8335 6.15185C13.8334 6.15183 13.8336 6.15187 13.8335 6.15185L11.4929 5.75998C11.1659 5.70506 10.8538 5.54633 10.6055 5.36173C10.3584 5.17799 10.1149 4.92449 9.96747 4.62268L8.6765 2.02094C8.3757 1.41153 8.09125 1.33088 7.99747 1.33088C7.90253 1.33088 7.61609 1.41346 7.31171 2.02343ZM9.85875 1.42766C9.46248 0.625148 8.82618 0 7.99747 0C7.16976 0 6.53156 0.623978 6.13164 1.42576L4.83963 4.0296L4.83722 4.03449C4.80832 4.09396 4.72941 4.19465 4.59946 4.29174C4.47014 4.38837 4.35107 4.43598 4.28597 4.44735C4.28625 4.4473 4.28569 4.4474 4.28597 4.44735L1.94681 4.83897C1.08384 4.9839 0.325465 5.41322 0.0777134 6.19502C-0.169838 6.9762 0.200137 7.76883 0.817662 8.39109L2.63735 10.2247C2.69248 10.2803 2.76491 10.398 2.81154 10.5621C2.85778 10.7249 2.85924 10.8651 2.84182 10.9454L2.32152 13.2123C2.32153 13.2123 2.32152 13.2124 2.32152 13.2123C2.10238 14.1667 2.1655 15.1672 2.88932 15.6994C3.61265 16.2312 4.57794 15.9879 5.4151 15.4873L7.60408 14.1815C7.60462 14.1812 7.60516 14.1809 7.6057 14.1806C7.68372 14.1354 7.82555 14.0943 8.00114 14.0943C8.17856 14.0943 8.31677 14.1362 8.38814 14.1788L10.5823 15.4877C11.4199 15.9863 12.3865 16.2338 13.11 15.7023C13.8346 15.17 13.8937 14.1674 13.6754 13.2129L13.155 10.9453C13.1375 10.8651 13.139 10.7249 13.1852 10.5621C13.2319 10.398 13.3043 10.2803 13.3594 10.2247L15.1775 8.3927C15.1777 8.39248 15.1779 8.39227 15.1782 8.39206C15.7997 7.76975 16.171 6.9763 15.9214 6.19382C15.6722 5.41256 14.9126 4.98385 14.0503 4.83902L11.7096 4.44716C11.6403 4.43543 11.5191 4.38703 11.3897 4.29082C11.2597 4.19416 11.181 4.09375 11.1522 4.03449L9.85875 1.42766C9.85885 1.42786 9.85866 1.42746 9.85875 1.42766Z"})))},E=function(e){var t=e.color,n=void 0===t?"#0A1018":t,r=e.width,o=void 0===r?"18":r,i=e.height,a=void 0===i?"18":i;return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99965 10.2677C9.8931 10.2677 10.6132 9.54762 10.6132 8.65417C10.6132 7.76071 9.8931 7.04065 8.99965 7.04065C8.10619 7.04065 7.38613 7.76071 7.38613 8.65417C7.38613 9.54762 8.10619 10.2677 8.99965 10.2677ZM8.99965 11.6177C10.6387 11.6177 11.9632 10.2932 11.9632 8.65417C11.9632 7.01513 10.6387 5.69065 8.99965 5.69065C7.36061 5.69065 6.03613 7.01513 6.03613 8.65417C6.03613 10.2932 7.36061 11.6177 8.99965 11.6177Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4021 10.0736L15.4032 10.0718C15.604 9.75728 15.7499 9.24465 15.7499 8.65002C15.7499 8.0554 15.604 7.54276 15.4032 7.22824L15.4021 7.22647C13.6881 4.53198 11.3494 3.15 8.9999 3.15C6.65044 3.15 4.31173 4.53198 2.59774 7.22647L2.59661 7.22824C2.39585 7.54276 2.2499 8.0554 2.2499 8.65002C2.2499 9.24465 2.39585 9.75728 2.59661 10.0718L2.59774 10.0736C4.31173 12.7681 6.65044 14.1501 8.9999 14.1501C11.3494 14.1501 13.6881 12.7681 15.4021 10.0736ZM1.45867 10.7982C0.713648 9.63097 0.713648 7.66908 1.45867 6.50189C3.35432 3.52182 6.07778 1.8 8.9999 1.8C11.922 1.8 14.6455 3.52182 16.5411 6.50189C17.2862 7.66908 17.2862 9.63097 16.5411 10.7982C14.6455 13.7782 11.922 15.5001 8.9999 15.5001C6.07778 15.5001 3.35432 13.7782 1.45867 10.7982Z"})))},x=function(){return React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M11.1816 10.4049L12.9362 12.4103L15.2955 13.9181L15.7068 10.4172L15.2955 6.99451L12.8909 8.31916L11.1816 10.4049Z",fill:"#00832D"}),React.createElement("path",{d:"M1 13.5931V16.5756C1 17.2575 1.55228 17.8097 2.23414 17.8097H5.21666L5.83373 15.5554L5.21666 13.5931L3.17004 12.976L1 13.5931Z",fill:"#0066DA"}),React.createElement("path",{d:"M5.21666 3L1 7.21666L3.17004 7.83373L5.21666 7.21666L5.82345 5.28111L5.21666 3Z",fill:"#E94235"}),React.createElement("path",{d:"M5.21666 7.21666H1V13.5931H5.21666V7.21666Z",fill:"#2684FC"}),React.createElement("path",{d:"M17.9902 4.78541L15.2956 6.99453V13.9181L18.0025 16.1375C18.4077 16.4542 19.0001 16.1652 19.0001 15.65V5.26261C19.0001 4.74118 18.3944 4.45527 17.9902 4.78541ZM11.1818 10.4049V13.5931H5.2168V17.8097H14.0615C14.7434 17.8097 15.2956 17.2575 15.2956 16.5756V13.9181L11.1818 10.4049Z",fill:"#00AC47"}),React.createElement("path",{d:"M14.0615 3H5.2168V7.21666H11.1818V10.4049L15.2956 6.99657V4.23414C15.2956 3.55228 14.7434 3 14.0615 3Z",fill:"#FFBA00"}))},O=function(){return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#0A1018",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M9.98574 1C8.0012 1.00218 6.09855 1.79146 4.6952 3.19467C3.29184 4.59788 2.50238 6.50045 2.5 8.48499C2.5 10.4125 3.9925 13.429 6.93624 17.4505C7.28669 17.9306 7.74553 18.3211 8.27544 18.5904C8.80535 18.8597 9.39135 19 9.98574 19C10.5801 19 11.1661 18.8597 11.696 18.5904C12.2259 18.3211 12.6848 17.9306 13.0352 17.4505C15.979 13.429 17.4715 10.4125 17.4715 8.48499C17.4691 6.50045 16.6796 4.59788 15.2763 3.19467C13.8729 1.79146 11.9703 1.00218 9.98574 1ZM9.98574 11.4685C9.3924 11.4685 8.81238 11.2925 8.31903 10.9629C7.82568 10.6332 7.44117 10.1647 7.2141 9.61654C6.98704 9.06836 6.92763 8.46516 7.04339 7.88322C7.15914 7.30128 7.44486 6.76673 7.86442 6.34717C8.28398 5.92761 8.81853 5.64189 9.40047 5.52614C9.98241 5.41038 10.5856 5.46979 11.1338 5.69685C11.682 5.92392 12.1505 6.30843 12.4801 6.80178C12.8098 7.29513 12.9857 7.87515 12.9857 8.46849C12.9857 9.26414 12.6697 10.0272 12.1071 10.5898C11.5444 11.1524 10.7814 11.4685 9.98574 11.4685Z"})))},C=function(){return React.createElement("span",{className:"anticon"},React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#0A1018",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M18.2201 9.24952C18.0212 9.24952 17.8305 9.17052 17.6899 9.0299C17.5493 8.88928 17.4703 8.69855 17.4703 8.49968C17.4687 6.90922 16.8362 5.38435 15.7115 4.25972C14.5869 3.13509 13.062 2.50258 11.4716 2.50099C11.2727 2.50099 11.082 2.42199 10.9414 2.28137C10.8007 2.14075 10.7217 1.95003 10.7217 1.75116C10.7217 1.55229 10.8007 1.36156 10.9414 1.22094C11.082 1.08032 11.2727 1.00132 11.4716 1.00132C13.4596 1.0035 15.3656 1.79421 16.7713 3.19995C18.177 4.60569 18.9678 6.51166 18.9699 8.49968C18.9699 8.69855 18.8909 8.88928 18.7503 9.0299C18.6097 9.17052 18.419 9.24952 18.2201 9.24952ZM15.9706 8.49968C15.9706 7.30647 15.4966 6.16213 14.6529 5.3184C13.8091 4.47467 12.6648 4.00067 11.4716 4.00067C11.2727 4.00067 11.082 4.07967 10.9414 4.22029C10.8007 4.36091 10.7217 4.55163 10.7217 4.7505C10.7217 4.94937 10.8007 5.14009 10.9414 5.28072C11.082 5.42134 11.2727 5.50034 11.4716 5.50034C12.267 5.50034 13.0299 5.81634 13.5924 6.37883C14.1549 6.94131 14.4709 7.70421 14.4709 8.49968C14.4709 8.69855 14.5499 8.88928 14.6905 9.0299C14.8312 9.17052 15.0219 9.24952 15.2208 9.24952C15.4196 9.24952 15.6103 9.17052 15.751 9.0299C15.8916 8.88928 15.9706 8.69855 15.9706 8.49968ZM17.6075 17.6207L18.2898 16.8341C18.7241 16.3984 18.968 15.8083 18.968 15.1931C18.968 14.5779 18.7241 13.9878 18.2898 13.5521C18.2666 13.5288 16.4625 12.1409 16.4625 12.1409C16.0295 11.7287 15.4544 11.4992 14.8566 11.5001C14.2588 11.5009 13.6843 11.732 13.2524 12.1454L11.8232 13.3496C10.6566 12.8668 9.59689 12.1583 8.70489 11.2647C7.81288 10.3712 7.10618 9.31021 6.62538 8.14276L7.82512 6.71807C8.23881 6.2863 8.4702 5.7117 8.47118 5.11373C8.47215 4.51575 8.24265 3.9404 7.83037 3.50727C7.83037 3.50727 6.44092 1.70542 6.41767 1.68217C5.98986 1.25158 5.4098 1.00658 4.80285 1.00013C4.19589 0.993677 3.61076 1.22628 3.17388 1.64768L2.31157 2.39752C-2.78282 8.30773 8.18729 19.1931 14.2925 18.9974C14.909 19.001 15.5199 18.881 16.0893 18.6445C16.6587 18.4081 17.1749 18.06 17.6075 17.6207Z"})))},k=function(){return React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M14.7388 5.26241L10.4758 4.78874L5.26526 5.26241L4.7915 9.99925L5.26517 14.7361L10.002 15.3282L14.7388 14.7361L15.2125 9.8809L14.7388 5.26241Z",fill:"white"}),React.createElement("path",{d:"M7.21058 12.6124C6.85653 12.3732 6.61137 12.0239 6.47754 11.562L7.29941 11.2233C7.37402 11.5075 7.50425 11.7278 7.69019 11.8841C7.87496 12.0404 8.09995 12.1174 8.36284 12.1174C8.63167 12.1174 8.86261 12.0357 9.05557 11.8722C9.24852 11.7088 9.34572 11.5003 9.34572 11.2482C9.34572 10.99 9.24384 10.7792 9.04018 10.6158C8.83651 10.4525 8.58073 10.3707 8.27518 10.3707H7.80035V9.55717H8.22658C8.48947 9.55717 8.71096 9.48616 8.89096 9.34405C9.07096 9.20194 9.16096 9.00772 9.16096 8.76022C9.16096 8.54 9.08041 8.36468 8.9194 8.23328C8.75839 8.10188 8.55463 8.03555 8.30713 8.03555C8.06557 8.03555 7.8737 8.09954 7.73159 8.2286C7.58948 8.35766 7.48643 8.51633 7.42136 8.70344L6.60786 8.36477C6.71559 8.05922 6.91341 7.78922 7.20347 7.55595C7.49363 7.32267 7.86425 7.2054 8.31424 7.2054C8.64697 7.2054 8.94658 7.26939 9.21189 7.39845C9.47712 7.52751 9.68556 7.70633 9.83595 7.93367C9.98634 8.16218 10.0609 8.41805 10.0609 8.70218C10.0609 8.99233 9.99111 9.2374 9.85134 9.43873C9.71157 9.64006 9.53985 9.79396 9.33618 9.90177V9.95028C9.60501 10.0628 9.82407 10.2345 9.99696 10.4654C10.1687 10.6964 10.2551 10.9723 10.2551 11.2944C10.2551 11.6165 10.1734 11.9043 10.0099 12.1565C9.84648 12.4088 9.62031 12.6077 9.33375 12.7521C9.04603 12.8966 8.72275 12.97 8.36392 12.97C7.94831 12.9712 7.56464 12.8516 7.21058 12.6124Z",fill:"#1A73E8"}),React.createElement("path",{d:"M12.2531 8.5348L11.3555 9.1873L10.9043 8.50285L12.5231 7.33521H13.1437V12.8429H12.2531V8.5348Z",fill:"#1A73E8"}),React.createElement("path",{d:"M14.7388 18.9995L19.0019 14.7364L16.8704 13.7891L14.7388 14.7364L13.7915 16.8679L14.7388 18.9995Z",fill:"#EA4335"}),React.createElement("path",{d:"M4.3125 16.8685L5.25983 19H14.7334V14.7369H5.25983L4.3125 16.8685Z",fill:"#34A853"}),React.createElement("path",{d:"M2.421 1C1.63593 1 1 1.63593 1 2.421V14.7367L3.13154 15.684L5.26308 14.7367V5.26308H14.7367L15.684 3.13154L14.7368 1H2.421Z",fill:"#4285F4"}),React.createElement("path",{d:"M1 14.7369V17.579C1 18.3641 1.63593 19 2.421 19H5.26308V14.7369H1Z",fill:"#188038"}),React.createElement("path",{d:"M14.7393 5.26249V14.7361H19.0023V5.26249L16.8708 4.31516L14.7393 5.26249Z",fill:"#FBBC04"}),React.createElement("path",{d:"M19.0023 5.26308V2.421C19.0023 1.63584 18.3664 1 17.5813 1H14.7393V5.26308H19.0023Z",fill:"#1967D2"}))},_=function(){return React.createElement("svg",{width:"70",height:"70",viewBox:"0 0 70 70",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{opacity:"0.15",cx:"35",cy:"35",r:"35",fill:"#F07B27"}),React.createElement("path",{d:"M33.9497 29.5122V33.5162L32.5357 33.0262C31.8217 32.7742 31.3877 32.5362 31.3877 31.3182C31.3877 30.3242 32.1297 29.5122 33.0397 29.5122H33.9497V29.5122Z",fill:"#F07B27"}),React.createElement("path",{d:"M38.6118 38.6821C38.6118 39.6761 37.8698 40.4881 36.9598 40.4881H36.0498V36.4841L37.4638 36.9741C38.1778 37.2261 38.6118 37.4641 38.6118 38.6821Z",fill:"#F07B27"}),React.createElement("path",{d:"M40.866 21H29.134C24.038 21 21 24.038 21 29.134V40.866C21 45.962 24.038 49 29.134 49H40.866C45.962 49 49 45.962 49 40.866V29.134C49 24.038 45.962 21 40.866 21ZM38.164 35C39.256 35.378 40.712 36.176 40.712 38.682C40.712 40.838 39.032 42.588 36.96 42.588H36.05V43.4C36.05 43.974 35.574 44.45 35 44.45C34.426 44.45 33.95 43.974 33.95 43.4V42.588H33.446C31.15 42.588 29.288 40.642 29.288 38.262C29.288 37.688 29.75 37.212 30.338 37.212C30.912 37.212 31.388 37.688 31.388 38.262C31.388 39.494 32.312 40.488 33.446 40.488H33.95V35.742L31.836 35C30.744 34.622 29.288 33.824 29.288 31.318C29.288 29.162 30.968 27.412 33.04 27.412H33.95V26.6C33.95 26.026 34.426 25.55 35 25.55C35.574 25.55 36.05 26.026 36.05 26.6V27.412H36.554C38.85 27.412 40.712 29.358 40.712 31.738C40.712 32.312 40.25 32.788 39.662 32.788C39.088 32.788 38.612 32.312 38.612 31.738C38.612 30.506 37.688 29.512 36.554 29.512H36.05V34.258L38.164 35Z",fill:"#F07B27"}))},q=function(){return React.createElement("svg",{width:"70",height:"70",viewBox:"0 0 70 70",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{opacity:"0.15",cx:"35",cy:"35",r:"35",fill:"#01AF28"}),React.createElement("path",{d:"M36.4 29.4C36.4 32.4931 33.8931 35 30.8 35C27.7069 35 25.2 32.4931 25.2 29.4C25.2 26.3069 27.7069 23.8 30.8 23.8C33.8931 23.8 36.4 26.3069 36.4 29.4ZM21 44.9006C21 40.5913 24.4913 37.1 28.8006 37.1H32.7994C37.1088 37.1 40.6 40.5913 40.6 44.9006C40.6 45.6181 40.0181 46.2 39.3006 46.2H22.2994C21.5819 46.2 21 45.6181 21 44.9006ZM47.6569 46.2H41.6238C41.86 45.7888 42 45.3119 42 44.8V44.45C42 41.7944 40.8144 39.41 38.9463 37.8088C39.0513 37.8044 39.1519 37.8 39.2569 37.8H41.9431C45.8413 37.8 49 40.9588 49 44.8569C49 45.6006 48.3962 46.2 47.6569 46.2ZM39.9 35C38.5437 35 37.3188 34.4488 36.4306 33.5606C37.2925 32.3969 37.8 30.9575 37.8 29.4C37.8 28.2275 37.5113 27.1206 36.9994 26.1494C37.8131 25.5544 38.815 25.2 39.9 25.2C42.6081 25.2 44.8 27.3919 44.8 30.1C44.8 32.8081 42.6081 35 39.9 35Z",fill:"#01AF28"}))},S=function(){return React.createElement("svg",{width:"70",height:"70",viewBox:"0 0 70 70",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{opacity:"0.17",cx:"35",cy:"35",r:"35",fill:"#AB2BE7"}),React.createElement("path",{d:"M40.0604 23.2728H29.3947C24.7619 23.2728 22 26.0346 22 30.6675V41.3332C22 44.9096 23.6419 47.366 26.531 48.2951C27.371 48.5879 28.3383 48.7279 29.3947 48.7279H40.0604C41.1168 48.7279 42.0841 48.5879 42.9241 48.2951C45.8133 47.366 47.4551 44.9096 47.4551 41.3332V30.6675C47.4551 26.0346 44.6932 23.2728 40.0604 23.2728ZM45.546 41.3332C45.546 44.0568 44.4769 45.7751 42.3259 46.4878C41.0913 44.0568 38.164 42.3259 34.7276 42.3259C31.2911 42.3259 28.3765 44.0441 27.1292 46.4878H27.1165C24.991 45.8005 23.9091 44.0696 23.9091 41.3459V30.6675C23.9091 27.0783 25.8055 25.1819 29.3947 25.1819H40.0604C43.6496 25.1819 45.546 27.0783 45.546 30.6675V41.3332Z",fill:"#AB2BE7"}),React.createElement("path",{d:"M34.7298 30.9093C32.2097 30.9093 30.1733 32.9457 30.1733 35.4658C30.1733 37.9858 32.2097 40.0349 34.7298 40.0349C37.2499 40.0349 39.2863 37.9858 39.2863 35.4658C39.2863 32.9457 37.2499 30.9093 34.7298 30.9093Z",fill:"#AB2BE7"}),React.createElement("circle",{cx:"44.9096",cy:"27.091",r:"3.81827",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.9089 32.182C47.7206 32.182 49.9999 29.9027 49.9999 27.091C49.9999 24.2793 47.7206 22 44.9089 22C42.0972 22 39.8179 24.2793 39.8179 27.091C39.8179 29.9027 42.0972 32.182 44.9089 32.182ZM43.9644 25.1923C43.9644 24.6651 44.3917 24.2377 44.9189 24.2377C45.4461 24.2377 45.8735 24.6651 45.8735 25.1923V26.1469H46.8281C47.3552 26.1469 47.7826 26.5742 47.7826 27.1014C47.7826 27.6286 47.3552 28.056 46.8281 28.056H45.8735V29.0106C45.8735 29.5378 45.4461 29.9651 44.9189 29.9651C44.3917 29.9651 43.9644 29.5378 43.9644 29.0106V28.056H43.0098C42.4826 28.056 42.0552 27.6286 42.0552 27.1014C42.0552 26.5742 42.4826 26.1469 43.0098 26.1469H43.9644V25.1923Z",fill:"#AB2BE7"}))},P=function(){return React.createElement("svg",{width:"70",height:"70",viewBox:"0 0 70 70",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{opacity:"0.15",cx:"35",cy:"35",r:"35",fill:"#24A4EC"}),React.createElement("path",{d:"M41.5614 24.1171V22.0121C41.5614 21.4588 41.1024 21 40.5489 21C39.9954 21 39.5365 21.4588 39.5365 22.0121V24.0362H30.7619V22.0121C30.7619 21.4588 30.3029 21 29.7495 21C29.196 21 28.737 21.4588 28.737 22.0121V24.1171C25.0922 24.4545 23.3238 26.627 23.0538 29.8521C23.0268 30.2435 23.3508 30.5673 23.7288 30.5673H46.5696C46.9611 30.5673 47.2851 30.23 47.2446 29.8521C46.9746 26.627 45.2062 24.4545 41.5614 24.1171Z",fill:"#24A4EC"}),React.createElement("path",{d:"M45.9489 32.5911H24.3499C23.6075 32.5911 23 33.1984 23 33.9405V42.2529C23 46.3012 25.0249 49 29.7497 49H40.5491C45.2739 49 47.2988 46.3012 47.2988 42.2529V33.9405C47.2988 33.1984 46.6913 32.5911 45.9489 32.5911ZM31.3831 43.8857C31.2481 44.0072 31.0996 44.1016 30.9376 44.1691C30.7756 44.2366 30.6001 44.2771 30.4246 44.2771C30.2491 44.2771 30.0737 44.2366 29.9117 44.1691C29.7497 44.1016 29.6012 44.0072 29.4662 43.8857C29.2232 43.6293 29.0747 43.2785 29.0747 42.9276C29.0747 42.5768 29.2232 42.2259 29.4662 41.9696C29.6012 41.8481 29.7497 41.7536 29.9117 41.6862C30.2356 41.5512 30.6136 41.5512 30.9376 41.6862C31.0996 41.7536 31.2481 41.8481 31.3831 41.9696C31.6261 42.2259 31.7746 42.5768 31.7746 42.9276C31.7746 43.2785 31.6261 43.6293 31.3831 43.8857ZM31.6666 38.7175C31.5991 38.8794 31.5046 39.0278 31.3831 39.1628C31.2481 39.2842 31.0996 39.3787 30.9376 39.4461C30.7756 39.5136 30.6001 39.5541 30.4246 39.5541C30.2491 39.5541 30.0737 39.5136 29.9117 39.4461C29.7497 39.3787 29.6012 39.2842 29.4662 39.1628C29.3447 39.0278 29.2502 38.8794 29.1827 38.7175C29.1152 38.5555 29.0747 38.3801 29.0747 38.2047C29.0747 38.0293 29.1152 37.8538 29.1827 37.6919C29.2502 37.53 29.3447 37.3815 29.4662 37.2466C29.6012 37.1252 29.7497 37.0307 29.9117 36.9632C30.2356 36.8283 30.6136 36.8283 30.9376 36.9632C31.0996 37.0307 31.2481 37.1252 31.3831 37.2466C31.5046 37.3815 31.5991 37.53 31.6666 37.6919C31.7341 37.8538 31.7746 38.0293 31.7746 38.2047C31.7746 38.3801 31.7341 38.5555 31.6666 38.7175ZM36.1079 39.1628C35.9729 39.2842 35.8244 39.3787 35.6624 39.4461C35.5004 39.5136 35.3249 39.5541 35.1494 39.5541C34.9739 39.5541 34.7984 39.5136 34.6364 39.4461C34.4744 39.3787 34.326 39.2842 34.191 39.1628C33.948 38.9064 33.7995 38.5555 33.7995 38.2047C33.7995 37.8538 33.948 37.503 34.191 37.2466C34.326 37.1252 34.4744 37.0307 34.6364 36.9632C34.9604 36.8148 35.3384 36.8148 35.6624 36.9632C35.8244 37.0307 35.9729 37.1252 36.1079 37.2466C36.3509 37.503 36.4993 37.8538 36.4993 38.2047C36.4993 38.5555 36.3509 38.9064 36.1079 39.1628Z",fill:"#24A4EC"}))},T=function(e){var t=e.color,n=void 0===t?"#3161F1":t,r=e.width,o=void 0===r?"25":r,i=e.height,a=void 0===i?"25":i;return React.createElement("svg",{width:o,height:a,fill:n,xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M19.2106 0H6.57897C2.7895 0 0.263184 2.52632 0.263184 6.31579V13.8947C0.263184 17.6842 2.7895 20.2105 6.57897 20.2105V22.9011C6.57897 23.9116 7.70318 24.5179 8.53687 23.9495L14.1579 20.2105H19.2106C23 20.2105 25.5263 17.6842 25.5263 13.8947V6.31579C25.5263 2.52632 23 0 19.2106 0ZM12.8948 15.3726C12.3642 15.3726 11.9474 14.9432 11.9474 14.4253C11.9474 13.9074 12.3642 13.4779 12.8948 13.4779C13.4253 13.4779 13.8421 13.9074 13.8421 14.4253C13.8421 14.9432 13.4253 15.3726 12.8948 15.3726ZM14.4863 10.1305C13.9937 10.4589 13.8421 10.6737 13.8421 11.0274V11.2926C13.8421 11.8105 13.4127 12.24 12.8948 12.24C12.3769 12.24 11.9474 11.8105 11.9474 11.2926V11.0274C11.9474 9.5621 13.0211 8.8421 13.4253 8.56421C13.8927 8.24842 14.0442 8.03368 14.0442 7.70526C14.0442 7.07368 13.5263 6.55579 12.8948 6.55579C12.2632 6.55579 11.7453 7.07368 11.7453 7.70526C11.7453 8.22316 11.3158 8.65263 10.7979 8.65263C10.28 8.65263 9.85055 8.22316 9.85055 7.70526C9.85055 6.02526 11.2148 4.66105 12.8948 4.66105C14.5748 4.66105 15.939 6.02526 15.939 7.70526C15.939 9.14526 14.8779 9.86526 14.4863 10.1305Z"}))},N=function(e){var t=e.color,n=void 0===t?"#3161F1":t,r=e.width,o=void 0===r?"25":r,i=e.height,a=void 0===i?"25":i;return React.createElement("svg",{width:o,height:a,fill:n,viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M5.56044 5.95604C5.56044 5.0989 6.26374 4.76923 7.42857 4.76923C9.0989 4.76923 11.2088 5.27472 12.8791 6.17582V1.01099C11.0549 0.285714 9.25275 0 7.42857 0C2.96703 0 0 2.32967 0 6.21978C0 12.2857 8.35165 11.3187 8.35165 13.9341C8.35165 14.9451 7.47253 15.2747 6.24176 15.2747C4.41758 15.2747 2.08791 14.5275 0.241758 13.5165V18.7473C2.28571 19.6264 4.35165 20 6.24176 20C10.8132 20 13.956 17.7363 13.956 13.8022C13.9341 7.25275 5.56044 8.41758 5.56044 5.95604Z"}))}},2758:(e,t,n)=>{"use strict";n.d(t,{F6:()=>s,II:()=>c});var r=n(5177);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){var t={};return e.map((function(e){var n;!1===e.status?t[e.key]=[]:t[e.key]=((n=l({},e)).schedules&&(n=n.schedules.map((function(e){return{start:d(e.start.value),end:d(e.end.value)}}))),n)})),t},c=function(e){for(var t=[],n=0,i=Object.entries(e);n<i.length;n++){var a=o(i[n],2),l=a[0],u=a[1],s={key:l,name:p(l),status:u.length>0,schedules:null!=u&&u.length?u.map((function(e){return{start:{value:new Date((0,r.SX)(e.start,24)).getTime(),label:f(e.start)},end:{value:new Date((0,r.SX)(e.end,24)).getTime(),label:f(e.end)}}})):[(0,r._9)({startTime:"09:00 AM",duration:10})]};t.push(s)}return t},f=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"5:00 PM",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:24,n=e.split(":"),r=o(n,2),i=r[0],a=r[1],l=a.split(" "),u=o(l,2),s=u[0],c=u[1],f="pm"===c?parseInt(i)+12:i;return 24===t?f+":"+s:f+":"+s+" "+ampm},d=function(e){var t=new Date(e);return(0,r.z9)(t)},p=function(e){return{Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"}[e]}},4903:(e,t,n)=>{"use strict";n.d(t,{Ne:()=>h,Wf:()=>f,Xi:()=>d,zR:()=>p});var r=n(7157),o=n(5177),i=n(2758);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){var t=e.schedules,n=e.duration,r=e.bufferTime,i=e.dayEnd,a=(0,o.rQ)({schedules:t,duration:n,bufferTime:r,dayEnd:i}),l=a.startTime,u=a.duration,s=a.dayEnd,c=(0,o.wR)({startTime:l,duration:u,dayEnd:s}),f=c.start,d=c.end;(0,o.z9)(new Date(f).toString()),(0,o.z9)(new Date(d).toString());return{start:{value:f,label:(0,o.z9)(new Date(f).toString())},end:{value:d,label:(0,o.z9)(new Date(d).toString())}}},d=function(e){e.key;var t,n,r=e.value,o=(e.timeSlotIndex,e.scheduleIndex),i=e.schedule,l=s({},e.timeCompareError),u=r.value,c=(new Date(u).getTime(),[]);null==i||null===(t=i.schedules)||void 0===t||t.map((function(e){c.push(m(e.start.value),m(e.end.value))}));for(var f=[],d=[],p=0;p<c.length;p++){var h=l["with"][o]?l["with"][o]:[],v=Math.floor(p/2),y=Math.floor(p/2);c[p]>c[p+1]&&(d[p]=!1,l.hasError=!0,l.scheduleIndex=a(new Set([].concat(a(l.scheduleIndex),[o]))),f.push(v,y+1),l["with"][o]=a(new Set([].concat(a(h),a(f))))),p%2==0&&c[p]==c[p+1]&&(f=[],d[p]=!1,l.hasError=!0,l.scheduleIndex=a(new Set([].concat(a(l.scheduleIndex),[o]))),f.push(v),l["with"][o]=a(new Set([].concat(a(h),a(f))))),f=[],c[p]<=c[p+1]&&(d[p]=!0)}return d.every((function(e){return 1==e}))&&(l.scheduleIndex=a(l.scheduleIndex).filter((function(e){return e!=o})),l["with"][o]=[]),0!=(null===(n=l.scheduleIndex)||void 0===n?void 0:n.length)&&0!=Object.keys(l["with"]).length||(l.hasError=!1),l},p=function(e,t,n){var r;if(e.preventDefault(),!r)return(r=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Choose Image"},multiple:!1})).on("select",(function(){var e=r.state().get("selection").first().toJSON();t(e.url),n(e.id)})),r.open();r.open()},h=function(e){var t=e.dispatch,n=e.meeting,o=e.staffs,l=null==o?void 0:o.filter((function(e){return a(null==n?void 0:n.staff).includes(e.id)})),u=n.staff,c={};Object.keys(null==n?void 0:n.schedule).map((function(e){c[e]=(0,i.II)(null==n?void 0:n.schedule[e])})),(0,r.I)({dispatch:t,name:"selectedStaff",value:l}),(0,r.I)({dispatch:t,name:"selectedStaffIds",value:u}),(0,r.I)({dispatch:t,name:"schedules",value:s({},c)})},m=function(e){var t=new Date(e),n={day:t.getDate(),month:t.getMonth()+1,year:t.getFullYear(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds()};return new Date(n.year,n.month-1,n.day,n.hour,n.minute,n.second).getTime()}},4184:(e,t)=>{var n; |
| 14 |
/*! |
| 15 |
Copyright (c) 2018 Jed Watson. |
| 16 |
Licensed under the MIT License (MIT), see |
| 17 |
http://jedwatson.github.io/classnames |
| 18 |
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o["default"]=o,e.exports=o):(n=function(){return o}.apply(t,[]))===undefined||(e.exports=n)}()},7006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""]);const i=o},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},7484:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",u="week",s="month",c="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function q(e,t){if(e.date()<t.date())return-q(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,s),o=t-r<0,i=e.clone().add(n+(o?-1:1),s);return+(-(n+(t-r)/(o?r-i:i-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:u,d:l,D:d,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var E=function(e){return e instanceof k},x=function S(e,t,n){var r;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(r=o),t&&(w[o]=t,r=o);var i=e.split("-");if(!r&&i.length>1)return S(i[0])}else{var a=e.name;w[a]=e,r=a}return!n&&r&&(b=r),r||!n&&b},O=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=g;C.l=x,C.i=E,C.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function v(e){this.$L=x(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!C.u(t)||t,c=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(c){case f:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?y-w:y+(6-w),v);case l:case d:return h(g+"Hours",0);case a:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case o:return h(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,u=C.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[l]=c+"Date",n[d]=c+"Date",n[s]=c+"Month",n[f]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===l?this.$D+(t-this.$W):t;if(u===s||u===f){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,c){var d,p=this;r=Number(r);var h=C.p(c),m=function(e){var t=O(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===l)return m(1);if(h===u)return m(7);var v=(d={},d[i]=t,d[a]=n,d[o]=e,d)[h]||1,y=this.$d.getTime()+r*v;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,l=this.$M,u=n.weekdays,s=n.months,c=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:C.s(l+1,2,"0"),MMM:c(n.monthsShort,l,s,3),MMMM:c(s,l),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:C.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:o};return r.replace(m,(function(e,t){return t||h[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,d,p){var h,m=C.p(d),v=O(r),y=(v.utcOffset()-this.utcOffset())*t,g=this-v,b=C.m(this,v);return b=(h={},h[f]=b/12,h[s]=b,h[c]=b/3,h[u]=(g-y)/6048e5,h[l]=(g-y)/864e5,h[a]=g/n,h[i]=g/t,h[o]=g/e,h)[m]||g,p?b:C.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return w[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),_=k.prototype;return O.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",f],["$D",d]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,k,O),e.$i=!0),O},O.locale=x,O.isDayjs=E,O.unix=function(e){return O(1e3*e)},O.en=w[b],O.Ls=w,O.p={},O}()},8734:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},285:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=c(e,!1)}],a:[o,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,u=0;u<l;u+=1){var s=a[u],c=f[s],d=c&&c[0],p=c&&c[1];a[u]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,s=e.slice(r),c=i.exec(s)[0];u.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var u=!0===a[2],s=!0===a[3],c=u||s,f=a[2];s&&(f=a[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,u=r.minutes,s=r.seconds,c=r.milliseconds,f=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),m=o||p.getFullYear(),v=0;o&&!i||(v=i>0?i-1:p.getMonth());var y=l||0,g=u||0,b=s||0,w=c||0;return f?new Date(Date.UTC(m,v,h,y,g,b,w+60*f.offset*1e3)):n?new Date(Date.UTC(m,v,h,y,g,b,w)):new Date(m,v,h,y,g,b,w)}catch(e){return new Date("")}}(t,l,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),c&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},6036:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),u=o(a[n]),s=l||u.map((function(e){return e.slice(0,r)}));if(!i)return s;var c=a.weekStart;return s.map((function(e,t){return s[(t+(c||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},5183:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),u=this.diff(l,e,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},172:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6833:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},6230:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),o=n(401),i=n(7667),a=n(1327),l=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8407:(e,t,n)=>{var r=n(7040),o=n(4125),i=n(2117),a=n(7518),l=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),l=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),o=n(619),i=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},6384:(e,t,n)=>{var r=n(8407),o=n(7465),i=n(3779),a=n(7599),l=n(4758),u=n(4309);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype["delete"]=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},4636:(e,t,n)=>{var r=n(2545),o=n(5694),i=n(1469),a=n(4144),l=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&u(e),p=n||c||f||d,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!s.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8866:(e,t,n)=>{var r=n(2488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4239:(e,t,n)=>{var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:undefined;e.exports=function(e){return null==e?e===undefined?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),o=n(7005);e.exports=function i(e,t,n,a,l){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!=e&&t!=t:r(e,t,n,a,i,l))}},2492:(e,t,n)=>{var r=n(6384),o=n(7114),i=n(8351),a=n(6096),l=n(4160),u=n(1469),s=n(4144),c=n(6719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,y){var g=u(e),b=u(t),w=g?d:l(e),E=b?d:l(t),x=(w=w==f?p:w)==p,O=(E=E==f?p:E)==p,C=w==E;if(C&&s(e)){if(!s(t))return!1;g=!0,x=!1}if(C&&!x)return y||(y=new r),g||c(e)?o(e,t,n,m,v,y):i(e,t,w,n,m,v,y);if(!(1&n)){var k=x&&h.call(e,"__wrapped__"),_=O&&h.call(t,"__wrapped__");if(k||_){var q=k?e.value():e,S=_?t.value():t;return y||(y=new r),v(q,S,n,m,y)}}return!!C&&(y||(y=new r),a(e,t,n,m,v,y))}},8458:(e,t,n)=>{var r=n(3560),o=n(5346),i=n(3218),a=n(346),l=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,c=u.toString,f=s.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},8749:(e,t,n)=>{var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:(e,t,n)=>{var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},7114:(e,t,n)=>{var r=n(8668),o=n(2908),i=n(4757);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&n?new r:undefined;for(u.set(e,t),u.set(t,e);++h<c;){var y=e[h],g=t[h];if(a)var b=s?a(g,y,h,t,e,u):a(y,g,h,e,t,u);if(b!==undefined){if(b)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(y===e||l(y,e,n,a,u)))return v.push(t)}))){m=!1;break}}else if(y!==g&&!l(y,g,n,a,u)){m=!1;break}}return u["delete"](e),u["delete"](t),m}},8351:(e,t,n)=>{var r=n(2705),o=n(1149),i=n(7813),a=n(7114),l=n(8776),u=n(1814),s=r?r.prototype:undefined,c=s?s.valueOf:undefined;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=u),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var v=a(p(e),p(t),r,s,f,d);return d["delete"](e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var d=s[f];if(!(u?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=u;++f<c;){var y=e[d=s[f]],g=t[d];if(i)var b=u?i(g,y,d,t,e,l):i(y,g,d,e,t,l);if(!(b===undefined?y===g||a(y,g,n,i,l):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(m=!1)}return l["delete"](e),l["delete"](t),m}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:undefined}},9607:(e,t,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:undefined;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=undefined;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},9551:(e,t,n)=>{var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},4160:(e,t,n)=>{var r=n(8552),o=n(7071),i=n(3818),a=n(8525),l=n(577),u=n(4239),s=n(346),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=s(r),v=s(o),y=s(i),g=s(a),b=s(l),w=u;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:undefined,r=n?s(n):"";if(r)switch(r){case m:return h;case v:return c;case y:return f;case g:return d;case b:return p}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?undefined:e[t]}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?undefined:n}return o.call(t,e)?t[e]:undefined}},1327:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?t[e]!==undefined:o.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&t===undefined?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?undefined:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},4e3:(e,t,n)=>{e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),o=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,n)=>{var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),o=n(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:undefined,u=(l?l.isBuffer:undefined)||o;e.exports=u},8446:(e,t,n)=>{var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:(e,t,n)=>{var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6719:(e,t,n)=>{var r=n(8749),o=n(1717),i=n(4e3),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},3674:(e,t,n)=>{var r=n(4636),o=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},6095:function(e){ |
| 19 |
/*! |
| 20 |
* Quill Editor v1.3.7 |
| 21 |
* https://quilljs.com/ |
| 22 |
* Copyright (c) 2014, Jason Chen |
| 23 |
* Copyright (c) 2013, salesforce.com |
| 24 |
*/ |
| 25 |
var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),u=n(47),s=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r["default"],Format:o["default"],Leaf:i["default"],Embed:s["default"],Scroll:a["default"],Block:u["default"],Inline:l["default"],Text:c["default"],Attributor:{Attribute:f["default"],Class:d["default"],Style:p["default"],Store:h["default"]}};t["default"]=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},u={},s={},c={};function f(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=u[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function d(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?d(e.parentNode,n):null},t.query=f,t.register=function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return p(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"==typeof n.keyName)l[n.keyName]=n;else if(null!=n.className&&(u[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=s[e]&&null!=n.className||(s[e]=n)}))}return n}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),u=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};u.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},u.prototype["delete"]=function(e){return e<=0?this:this.push({"delete":e})},u.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},u.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e["delete"]&&"number"==typeof n["delete"])return this.ops[t-1]={"delete":n["delete"]+e["delete"]},this;if("number"==typeof n["delete"]&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},u.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},u.prototype.filter=function(e){return this.ops.filter(e)},u.prototype.forEach=function(e){this.ops.forEach(e)},u.prototype.map=function(e){return this.ops.map(e)},u.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},u.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},u.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t["delete"]?e-t["delete"]:e}),0)},u.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},u.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=Infinity);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new u(n)},u.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new u(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var m=new u(t.rest());return s.concat(m).chop()}}else"number"==typeof d["delete"]&&"number"==typeof f.retain&&s.push(d)}return s.chop()},u.prototype.concat=function(e){var t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},u.prototype.diff=function(e,t){if(this.ops===e.ops)return new u;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new u,s=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return s.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var l=c.next(n),u=f.next(n);o(l.insert,u.insert)?i.retain(n,a.attributes.diff(l.attributes,u.attributes)):i.push(u)["delete"](n)}t-=n}})),i.chop()},u.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new u,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new u}}r.length()>0&&e(r,{},o)},u.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l["delete"])continue;s["delete"]?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},u.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=u},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function c(){var e,t,n,r,o,i,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(e=arguments[d]))for(t in e)n=s(f,t),f!==(r=s(e,t))&&(h&&r&&(l(r)||(o=a(r)))?(o?(o=!1,i=n&&a(n)?n:[]):i=n&&l(n)?n:{},u(f,{name:t,newValue:c(h,i,r)})):void 0!==r&&u(f,{name:t,newValue:r}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.BlockEmbed=t.bubbleFormats=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:g(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=f(n(3)),a=f(n(2)),l=f(n(0)),u=f(n(16)),s=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{"default":e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l["default"].Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a["default"]).insert(this.value(),(0,i["default"])(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l["default"].query(e,l["default"].Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=l["default"].create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l["default"].Embed);m.scope=l["default"].Scope.BLOCK_BLOT;var v=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l["default"].Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a["default"]).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l["default"].query(r,l["default"].Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof u["default"]&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l["default"].Block);function y(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i["default"])(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:y(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[s["default"],l["default"].Embed,c["default"]],t.bubbleFormats=y,t.BlockEmbed=m,t["default"]=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.overload=t.expandConfig=undefined;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=v(n(2)),l=v(n(14)),u=v(n(8)),s=v(n(9)),c=v(n(0)),f=n(15),d=v(f),p=v(n(3)),h=v(n(10)),m=v(n(34));function v(e){return e&&e.__esModule?e:{"default":e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h["default"])("quill"),w=function(){function e(t){var n=this,r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(g(this,e),this.options=E(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u["default"],this.scroll=c["default"].create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l["default"](this.scroll),this.selection=new d["default"](this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u["default"].events.EDITOR_CHANGE,(function(e){e===u["default"].events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u["default"].events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:undefined;x.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h["default"].level(e)}},{key:"find",value:function(e){return e.__quill||c["default"].find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==undefined&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c["default"].register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=O(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&arguments[0]!==undefined)||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:u["default"].sources.API;return x.call(this,(function(){var r=n.getSelection(!0),o=new a["default"];if(null==r)return o;if(c["default"].query(e,c["default"].Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,y({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,y({},e,t))}return n.setSelection(r,u["default"].sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,u=O(e,t,n,r,i),s=o(u,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,u=O(e,t,n,r,i),s=o(u,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-e,n=O(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&arguments[0]!==undefined&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-e,n=O(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:e.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,u=O(e,0,n,r,i),s=o(u,4);return e=s[0],a=s[2],i=s[3],x.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=O(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u["default"].sources.API;return x.call(this,(function(){e=new a["default"](e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o["delete"](1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=O(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==u["default"].sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u["default"].sources.API,n=(new a["default"]).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:u["default"].sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:u["default"].sources.API;return x.call(this,(function(){return e=new a["default"](e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function E(e,t){if((t=(0,p["default"])(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w["import"]("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m["default"];var n=(0,p["default"])(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w["import"]("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p["default"])(!0,{},w.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===u["default"].sources.USER)return new a["default"];var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,u["default"].sources.SILENT)),l.length()>0){var s,c,f=[u["default"].events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[u["default"].events.EDITOR_CHANGE].concat(f)),t!==u["default"].sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return l}function O(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||u["default"].sources.API]}function C(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a["default"]){var s=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==u["default"].sources.USER)})),c=o(s,2);i=c[0],l=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===u["default"].sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=u["default"].events,w.sources=u["default"].sources,w.version="1.3.7",w.imports={delta:a["default"],parchment:c["default"],"core/module":s["default"],"core/theme":m["default"]},t.expandConfig=E,t.overload=O,t["default"]=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function f(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:f(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a["default"].query(r,a["default"].Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a["default"].Inline);c.allowedChildren=[c,a["default"].Embed,i["default"]],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t["default"]=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{"default":r})["default"].Text);t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function s(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:s(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=a(n(54));function a(e){return e&&e.__esModule?e:{"default":e}}var l=(0,a(n(10))["default"])("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(undefined,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i["default"]);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},t["default"]=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function i(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,i),this.quill=e,this.options=t};o.DEFAULTS={},t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t["default"]=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,c;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var f=o(e),d=o(t)}catch(p){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),s=f.length-1;s>=0;s--)if(f[s]!=d[s])return!1;for(s=f.length-1;s>=0;s--)if(c=f[s],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null===e||e===undefined}function u(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.Code=undefined;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:y(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=f(n(2)),l=f(n(0)),u=f(n(4)),s=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{"default":e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s["default"]);m.blotName="code",m.tagName="CODE";var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a["default"])}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c["default"],this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l["default"].query(r,l["default"].Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,u=i-a+1,s=this.isolate(a,u),c=s.next;s.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-u,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c["default"],e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l["default"].create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l["default"].find(e);null==t?e.parentNode.removeChild(e):t instanceof l["default"].Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(u["default"]);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t["default"]=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(2)),l=y(n(20)),u=y(n(0)),s=y(n(13)),c=y(n(24)),f=n(4),d=y(f),p=y(n(16)),h=y(n(21)),m=y(n(11)),v=y(n(3));function y(e){return e&&e.__esModule?e:{"default":e}}var g=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h["default"])(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h["default"])(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a["default"])}(e)).reduce((function(e,a){var s=a.retain||a["delete"]||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=o(h,2),y=m[0],g=m[1],b=(0,v["default"])({},(0,f.bubbleFormats)(y));if(y instanceof d["default"]){var w=y.descendant(u["default"].Leaf,g),E=o(w,1)[0];b=(0,v["default"])(b,(0,f.bubbleFormats)(E))}c=l["default"].attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}i+=s}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,s,n,c[n])})),e+s}),0),e.reduce((function(e,n){return"number"==typeof n["delete"]?(t.scroll.deleteAt(e,n["delete"]),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a["default"]).retain(e)["delete"](t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof s["default"]){var l=e-t.offset(n.scroll),u=t.newlineIndex(l+a)-l+1;t.formatAt(l,u,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a["default"]).retain(e).retain(t,(0,h["default"])(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a["default"]).retain(e).retain(t,(0,h["default"])(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a["default"])}},{key:"getFormat",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d["default"]?n.push(t):t instanceof u["default"].Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(u["default"].Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return v["default"].apply(v["default"],i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a["default"]).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a["default"]).retain(e).insert(t,(0,h["default"])(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d["default"].blotName&&!(e.children.length>1)&&e.children.head instanceof p["default"]}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],u=i[1],c=0,f=new a["default"];null!=l&&(c=l instanceof s["default"]?l.newlineIndex(u)-u+1:l.length()-u,f=l.delta().slice(u,u+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a["default"]).insert(n).concat(f)),p=(new a["default"]).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(g)&&u["default"].find(t[0].target)){var o=u["default"].find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(c["default"].CONTENTS,""),d=(new a["default"]).insert(s),p=(new a["default"]).insert(o.value()),h=(new a["default"]).retain(l).concat(d.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a["default"]),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m["default"])(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t["default"]=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.Range=undefined;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),u=s(n(8));function s(e){return e&&e.__esModule?e:{"default":e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,s(n(10))["default"])("quill:selection"),p=function v(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;f(this,v),this.index=e,this.length=t},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i["default"].create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u["default"].sources.USER),1)})),this.emitter.on(u["default"].events.EDITOR_CHANGE,(function(e,t){e===u["default"].events.TEXT_CHANGE&&t.length()>0&&r.update(u["default"].sources.SILENT)})),this.emitter.on(u["default"].events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(u["default"].events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(u["default"].events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(u["default"].sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(u["default"].sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i["default"].query(e,i["default"].Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i["default"].find(n.start.node,!1);if(null==r)return;if(r instanceof i["default"].Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],u=a[1];if(null==l)return null;var s=l.position(u,!0),c=r(s,2);o=c[0],u=c[1];var f=document.createRange();if(t>0){f.setStart(o,u);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],u=p[1],null==l)return null;var h=l.position(u,!0),m=r(h,2);return o=m[0],u=m[1],f.setEnd(o,u),f.getBoundingClientRect()}var v="left",y=void 0;return o instanceof Text?(u<o.data.length?(f.setStart(o,u),f.setEnd(o,u+1)):(f.setStart(o,u-1),f.setEnd(o,u),v="right"),y=f.getBoundingClientRect()):(y=l.domNode.getBoundingClientRect(),u>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i["default"].find(o,!0),u=l.offset(t.scroll);return 0===a?u:l instanceof i["default"].Container?u+l.length():u+l.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),u=r(l,2),s=u[0],c=u[1],f=s.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,o));l=r(u,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:e,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:t,o=arguments.length>4&&arguments[4]!==undefined&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:u["default"].sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:u["default"].sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l["default"])(t,this.lastRange)){var c;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[u["default"].events.SELECTION_CHANGE,(0,a["default"])(this.lastRange),(0,a["default"])(t),e];(c=this.emitter).emit.apply(c,[u["default"].events.EDITOR_CHANGE].concat(d)),e!==u["default"].sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function m(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t["default"]=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function c(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:c(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(0);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){return undefined}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"].Embed);s.blotName="break",s.tagName="BR",t["default"]=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i["default"],[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||undefined)}catch(r){if(r instanceof l.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||undefined))}))},t}(a["default"]);function s(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t["default"]=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),u=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a["default"](n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():undefined)},t.prototype.format=function(e,t){var n=u.query(e);n instanceof i["default"]?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l["default"]);t["default"]=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i["default"]);t["default"]=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)e[i]!==undefined&&t[i]===undefined&&(r[i]=e[i]);return Object.keys(r).length>0?r:undefined},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=t[o]===undefined?null:t[o]),n}),{});return Object.keys(n).length>0?n:undefined},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"!=typeof t)return undefined;if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return e[r]===undefined&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:undefined}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e["delete"]?e["delete"]:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<Infinity},a.prototype.next=function(e){e||(e=Infinity);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t["delete"])return{"delete":e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:Infinity}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:Infinity},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index]["delete"]?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(l){t=function(){}}try{n=Set}catch(l){n=function(){}}try{r=Promise}catch(l){r=function(){}}function o(i,l,u,s,c){"object"==typeof l&&(u=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===u&&(u=Infinity),function h(i,u){if(null===i)return null;if(0===u)return i;var m,v;if("object"!=typeof i)return i;if(e(i,t))m=new t;else if(e(i,n))m=new n;else if(e(i,r))m=new r((function(e,t){i.then((function(t){e(h(t,u-1))}),(function(e){t(h(e,u-1))}))}));else if(o.__isArray(i))m=[];else if(o.__isRegExp(i))m=new RegExp(i.source,a(i)),i.lastIndex&&(m.lastIndex=i.lastIndex);else if(o.__isDate(i))m=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(m),m;e(i,Error)?m=Object.create(i):void 0===s?(v=Object.getPrototypeOf(i),m=Object.create(v)):(m=Object.create(s),v=s)}if(l){var y=f.indexOf(i);if(-1!=y)return d[y];f.push(i),d.push(m)}for(var g in e(i,t)&&i.forEach((function(e,t){var n=h(t,u-1),r=h(e,u-1);m.set(n,r)})),e(i,n)&&i.forEach((function(e){var t=h(e,u-1);m.add(t)})),i){var b;v&&(b=Object.getOwnPropertyDescriptor(v,g)),b&&null==b.set||(m[g]=h(i[g],u-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(g=0;g<w.length;g++){var E=w[g];(!(O=Object.getOwnPropertyDescriptor(i,E))||O.enumerable||c)&&(m[E]=h(i[E],u-1),O.enumerable||Object.defineProperty(m,E,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(i);for(g=0;g<x.length;g++){var O,C=x[g];(O=Object.getOwnPropertyDescriptor(i,C))&&O.enumerable||(m[C]=h(i[C],u-1),Object.defineProperty(m,C,{enumerable:!1}))}}return m}(i,u)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function v(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:v(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=p(n(0)),l=p(n(8)),u=n(4),s=p(u),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{"default":e}}function h(e){return e instanceof s["default"]||e instanceof u.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],d=this.line(e+n),p=r(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(l instanceof f["default"]){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f["default"]){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof c["default"]?null:p.children.head;l.moveChildren(p,v),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&arguments[0]!==undefined)||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a["default"].query(n,a["default"].Scope.BLOCK)){var o=a["default"].create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a["default"].create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a["default"].Scope.INLINE_BLOT){var r=a["default"].create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE,n=function r(e,t,n){var o=[],i=n;return e.children.forEachAt(t,n,(function(e,t,n){h(e)?o.push(e):e instanceof a["default"].Container&&(o=o.concat(r(e,t,i))),i-=n})),o};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l["default"].events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l["default"].sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l["default"].events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l["default"].events.SCROLL_UPDATE,n,e)}}}]),t}(a["default"].Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[s["default"],u.BlockEmbed,d["default"]],t["default"]=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t["default"]=undefined;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(21)),l=m(n(11)),u=m(n(3)),s=m(n(2)),c=m(n(20)),f=m(n(0)),d=m(n(5)),p=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{"default":e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,p["default"])("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},C),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},O),r.addBinding({key:t.keys.DELETE},{collapsed:!1},O),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=q(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=q(e);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,u["default"])(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var u=e.quill.getSelection();if(null!=u&&e.quill.hasFocus()){var s=e.quill.getLine(u.index),c=o(s,2),d=c[0],p=c[1],h=e.quill.getLeaf(u.index),m=o(h,2),v=m[0],y=m[1],g=0===u.length?[v,y]:e.quill.getLeaf(u.index+u.length),b=o(g,2),w=b[0],E=b[1],x=v instanceof f["default"].Text?v.value().slice(0,y):"",O=w instanceof f["default"].Text?w.value().slice(E):"",C={collapsed:0===u.length,empty:0===u.length&&d.length()<=1,format:e.quill.getFormat(u),offset:p,prefix:x,suffix:O};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==C.collapsed)return!1;if(null!=t.empty&&t.empty!==C.empty)return!1;if(null!=t.offset&&t.offset!==C.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==C.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=C.format[e]:!1===t.format[e]?null==C.format[e]:(0,l["default"])(t.format[e],C.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(C.prefix)||null!=t.suffix&&!t.suffix.test(C.suffix)||!0===t.handler.call(e,u,C))}))&&n.preventDefault()}}}}))}}]),t}(h["default"]);function w(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f["default"].Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d["default"].sources.USER):this.quill.setSelection(n.index-1,d["default"].sources.USER):t?this.quill.setSelection(n.index,n.length+1,d["default"].sources.USER):this.quill.setSelection(n.index+n.length+1,d["default"].sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var u=r.formats(),s=this.quill.getFormat(e.index-1,1);i=c["default"].attributes.diff(u,s)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d["default"].sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d["default"].sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var u=this.quill.getLine(e.index+1),s=o(u,1)[0];if(s){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=c["default"].attributes.diff(f,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,d["default"].sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d["default"].sources.USER)}}function O(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c["default"].attributes.diff(o,r)||{}}this.quill.deleteText(e,d["default"].sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d["default"].sources.USER),this.quill.setSelection(e.index,d["default"].sources.SILENT),this.quill.focus()}function C(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f["default"].query(n,f["default"].Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d["default"].sources.USER),this.quill.setSelection(e.index+1,d["default"].sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d["default"].sources.USER))}))}function k(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f["default"].query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),u=l[0],s=l[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(s,!0)+1,h=u.newlineIndex(c+s+i),m=u.domNode.textContent.slice(p,h).split("\n");s=0,m.forEach((function(t,o){e?(u.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(u.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1})),this.quill.update(d["default"].sources.USER),this.quill.setSelection(r,i,d["default"].sources.SILENT)}}}}function _(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d["default"].sources.USER)}}}function q(e){if("string"==typeof e||"number"==typeof e)return q({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a["default"])(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[g]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:_("bold"),italic:_("italic"),underline:_("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d["default"].sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d["default"].sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d["default"].sources.USER):null!=t.format.list&&this.quill.format("list",!1,d["default"].sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d["default"].sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s["default"]).retain(e.index)["delete"](e.length).insert("\t");this.quill.updateContents(t,d["default"].sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d["default"].sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d["default"].sources.USER),t.format.indent&&this.quill.format("indent",!1,d["default"].sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,u["default"])({},r.formats(),{list:"checked"}),l=(new s["default"]).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d["default"].sources.USER),this.quill.setSelection(e.index+1,d["default"].sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s["default"]).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d["default"].sources.USER),this.quill.setSelection(e.index+1,d["default"].sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var u=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(e.index," ",d["default"].sources.USER),this.quill.history.cutoff();var c=(new s["default"]).retain(e.index-l)["delete"](n+1).retain(a.length()-2-l).retain(1,{list:u});this.quill.updateContents(c,d["default"].sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d["default"].sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s["default"]).retain(e.index+r.length()-i-2).retain(1,{"code-block":null})["delete"](1);this.quill.updateContents(a,d["default"].sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},t["default"]=b,t.SHORTKEY=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function c(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:c(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),l=u(n(7));function u(e){return e&&e.__esModule?e:{"default":e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){return undefined}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a["default"].Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,u=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],u=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l["default"]?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a["default"].create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,u].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),d=r(f,2);return i=d[0],u=d[1],{startNode:o,startOffset:i,endNode:o,endOffset:u}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a["default"].Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t["default"]=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{"default":e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r["default"].Container);s.allowedChildren=[i["default"],o.BlockEmbed,s],t["default"]=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=undefined;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function p(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:p(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(0),l=(r=a)&&r.__esModule?r:{"default":r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l["default"].Attributor.Style),f=new l["default"].Attributor.Class("color","ql-color",{scope:l["default"].Scope.INLINE}),d=new c("color","color",{scope:l["default"].Scope.INLINE});t.ColorAttributor=c,t.ColorClass=f,t.ColorStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t["default"]=undefined;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function f(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:f(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"]);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t["default"]=s,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{"default":e}}var u=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i["default"].keys.ENTER:n.togglePicker();break;case i["default"].keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i["default"].keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i["default"].keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a["default"],e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&arguments[1]!==undefined&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t["default"]=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(0)),o=y(n(5)),i=n(4),a=y(i),l=y(n(16)),u=y(n(25)),s=y(n(24)),c=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),m=y(n(42)),v=y(n(23));function y(e){return e&&e.__esModule?e:{"default":e}}o["default"].register({"blots/block":a["default"],"blots/block/embed":i.BlockEmbed,"blots/break":l["default"],"blots/container":u["default"],"blots/cursor":s["default"],"blots/embed":c["default"],"blots/inline":f["default"],"blots/scroll":d["default"],"blots/text":p["default"],"modules/clipboard":h["default"],"modules/history":m["default"],"modules/keyboard":v["default"]}),r["default"].register(a["default"],l["default"],s["default"],f["default"],d["default"],p["default"]),t["default"]=o["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r["default"].keys(this.domNode),n=o["default"].keys(this.domNode),l=i["default"].keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r["default"]&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t["default"]=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12)["default"]);t["default"]=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12)["default"]);t["default"]=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor["import"]("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={"default":o},t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function c(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:c(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{"default":e}}var u="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(u).join("");if(e===this.leftGuard)if(this.prev instanceof a["default"]){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i["default"].create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a["default"]?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i["default"].create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=u,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i["default"].Embed);t["default"]=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=undefined;var r,o=n(0),i=(r=o)&&r.__esModule?r:{"default":r},a={scope:i["default"].Scope.BLOCK,whitelist:["right","center","justify"]},l=new i["default"].Attributor.Attribute("align","align",a),u=new i["default"].Attributor.Class("align","ql-align",a),s=new i["default"].Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=u,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=undefined;var r,o=n(0),i=(r=o)&&r.__esModule?r:{"default":r},a=n(26),l=new i["default"].Attributor.Class("background","ql-bg",{scope:i["default"].Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:i["default"].Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=undefined;var r,o=n(0),i=(r=o)&&r.__esModule?r:{"default":r},a={scope:i["default"].Scope.BLOCK,whitelist:["rtl"]},l=new i["default"].Attributor.Attribute("direction","dir",a),u=new i["default"].Attributor.Class("direction","ql-direction",a),s=new i["default"].Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=u,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=undefined;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:h(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(0),l=(r=a)&&r.__esModule?r:{"default":r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c={scope:l["default"].Scope.INLINE,whitelist:["serif","monospace"]},f=new l["default"].Attributor.Class("font","ql-font",c),d=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l["default"].Attributor.Style),p=new d("font","font-family",c);t.FontStyle=p,t.FontClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=undefined;var r,o=n(0),i=(r=o)&&r.__esModule?r:{"default":r},a=new i["default"].Attributor.Class("size","ql-size",{scope:i["default"].Scope.INLINE,whitelist:["small","large","huge"]}),l=new i["default"].Attributor.Style("size","font-size",{scope:i["default"].Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),"super":n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t["default"]=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{"default":e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i["default"].events.EDITOR_CHANGE,(function(e,t,n,o){e!==i["default"].events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i["default"].sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i["default"].sources.USER),this.ignoreChange=!1;var r=u(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9))["default"]);function u(e){var t=e.reduce((function(e,t){return e+=t["delete"]||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o["default"].query(e,o["default"].Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t["default"]=l,t.getLastChangeIndex=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.BaseTooltip=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function _(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:_(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=h(n(3)),a=h(n(2)),l=h(n(8)),u=h(n(23)),s=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{"default":e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],E=["1","2","3",!1],x=["small",!1,"large","huge"],O=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function o(t){if(!document.body.contains(e.root))return document.body.removeEventListener("click",o);null==r.tooltip||r.tooltip.root.contains(t.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(t.target)||e.close()}))})),r}return y(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&k(e,g),new f["default"](e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&k(e,b,"background"===n?"#ffffff":"#000000"),new c["default"](e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?k(e,w):e.classList.contains("ql-header")?k(e,E):e.classList.contains("ql-size")&&k(e,x)),new d["default"](e)})),this.quill.on(l["default"].events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s["default"]);O.DEFAULTS=(0,i["default"])(!0,{},s["default"].DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a["default"]).retain(r.index)["delete"](r.length).insert({image:n.target.result}),l["default"].sources.USER),e.quill.setSelection(r.index+1,l["default"].sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return y(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){u["default"].match(t,"enter")?(e.save(),t.preventDefault()):u["default"].match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l["default"].sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l["default"].sources.USER)),this.quill.root.scrollTop=r;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l["default"].sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l["default"].sources.USER),this.quill.setSelection(i+2,l["default"].sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p["default"]);function k(e,t){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=C,t["default"]=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var u=r.length();e>a?n(r,e-a,Math.min(t,a+u-e)):n(r,0,Math.min(u,e+t-a)),a+=u}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t["default"]=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i["default"]&&e.children.forEach(u),e.optimize(n))},s=t,c=0;s.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i["default"]&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i["default"]);t["default"]=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){return n.tagName===t.tagName?undefined:e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i["default"]||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i["default"]);t["default"]=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;return n.tagName===r?undefined:e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i["default"]);t["default"]=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){return undefined},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19)["default"]);t["default"]=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i["default"]);t["default"]=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t;return undefined}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,u){if(e==t)return e?[[0,e]]:[];(u<0||e.length<u)&&(u=null);var c=i(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var d=e.substring(e.length-c),p=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,s=e.length>t.length?t:e,c=u.indexOf(s);if(-1!=c)return l=[[1,u.substring(0,c)],[0,s],[1,u.substring(c+s.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==s.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,l,u,s=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(s,c+1));){var d=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+d&&(f=t.substring(c-p,c)+t.substring(c,c+d),r=e.substring(0,n-p),o=e.substring(n+d),l=t.substring(0,c-p),u=t.substring(c+d))}return 2*f.length>=e.length?[r,o,l,u,f]:null}var l,u,s,c,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;l=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(u=l[0],s=l[1],c=l[2],f=l[3]):(c=l[0],f=l[1],u=l[2],s=l[3]);var h=l[4];return[u,s,c,f,h]}(e,t);if(f){var d=f[0],p=f[1],h=f[2],m=f[3],v=f[4],y=r(d,h),g=r(p,m);return y.concat([[0,v]],g)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,s=new Array(u),c=new Array(u),f=0;f<u;f++)s[f]=-1,c[f]=-1;s[l+1]=0,c[l+1]=0;for(var d=r-i,p=d%2!=0,h=0,m=0,v=0,y=0,g=0;g<a;g++){for(var b=-g+h;b<=g-m;b+=2){for(var w=l+b,E=(_=b==-g||b!=g&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1)-b;_<r&&E<i&&e.charAt(_)==t.charAt(E);)_++,E++;if(s[w]=_,_>r)m+=2;else if(E>i)h+=2;else if(p&&(C=l+d-b)>=0&&C<u&&-1!=c[C]&&_>=(O=r-c[C]))return o(e,t,_,E)}for(var x=-g+v;x<=g-y;x+=2){for(var O,C=l+x,k=(O=x==-g||x!=g&&c[C-1]<c[C+1]?c[C+1]:c[C-1]+1)-x;O<r&&k<i&&e.charAt(r-O-1)==t.charAt(i-k-1);)O++,k++;if(c[C]=O,O>r)y+=2;else if(k>i)v+=2;else if(!p){var _;if((w=l+d-x)>=0&&w<u&&-1!=s[w])if(E=l+(_=s[w])-w,_>=(O=r-O))return o(e,t,_,E)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),l(p),null!=u&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-r,u=[i[0],i[1].slice(0,l)],s=[i[0],i[1].slice(l)];return e.splice(o,1,u,s),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],l=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),s(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var u=l[1].slice(a[1].length);return u.length>0&&o.splice(i+2,0,[l[0],u]),s(o,i,3)}return e}(p,u)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),u=t.substring(o),s=r(i,a),c=r(l,u);return s.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(e){e.push([0,""]);for(var t,r=0,o=0,u=0,s="",c="";r<e.length;)switch(e[r][0]){case 1:u++,c+=e[r][1],r++;break;case n:o++,s+=e[r][1],r++;break;case 0:o+u>1?(0!==o&&0!==u&&(0!==(t=i(c,s))&&(r-o-u>0&&0==e[r-o-u-1][0]?e[r-o-u-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),s=s.substring(t)),0!==(t=a(c,s))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),s=s.substring(0,s.length-t))),0===o?e.splice(r-u,o+u,[1,c]):0===u?e.splice(r-o,o+u,[n,s]):e.splice(r-o-u,o+u,[n,s],[1,c]),r=r-o-u+(o?1:0)+(u?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,u=0,o=0,s="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&l(e)}var u=r;function s(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}u.INSERT=1,u.DELETE=n,u.EQUAL=0,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var u,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,undefined,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var d,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,undefined,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,n);break;case 4:c[s].fn.call(c[s].context,t,n,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[s].fn.apply(c[s].context,u)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var u=0,s=[],c=l.length;u<c;u++)(l[u].fn!==t||i&&!l[u].once||n&&l[u].context!==n)&&s.push(l[u]);s.length?this._events[a]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t["default"]=undefined;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=b(n(3)),l=b(n(2)),u=b(n(0)),s=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),m=n(26),v=n(38),y=n(39),g=n(40);function b(e){return e&&e.__esModule?e:{"default":e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(0,c["default"])("quill:clipboard"),x="__ql-matcher",O=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,L],["br",function(e,t){return P(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===S(e).fontStyle&&(n.italic=!0),r.fontWeight&&(S(e).fontWeight.startsWith("bold")||parseInt(S(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=q(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l["default"]).insert("\t").concat(t)),t}],["li",function(e,t){var n=u["default"].query(e);if(null==n||"list-item"!==n.blotName||!P(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(u["default"].query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l["default"]).retain(t.length()-1).retain(1,{indent:r}))}],["b",A.bind(A,"bold")],["i",A.bind(A,"italic")],["style",function(){return new l["default"]}]],C=[d.AlignAttribute,v.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=[d.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,y.FontStyle,g.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),_=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],O.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==R)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h["default"].blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l["default"]).insert(n,w({},h["default"].blotName,t[h["default"].blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],u=i[1],s=N(this.container,a,u);return P(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l["default"]).retain(s.length()-1)["delete"](1))),E.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:s["default"].sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s["default"].sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l["default"]).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s["default"].sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l["default"]).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s["default"].sources.SILENT),setTimeout((function(){r=r.concat(t.convert())["delete"](n.length),t.quill.updateContents(r,s["default"].sources.USER),t.quill.setSelection(r.length()-n.length,s["default"].sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[x]=e[x]||[],e[x].push(l)}))}})),[t,n]}}]),t}(f["default"]);function q(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return q(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a["default"])({},w({},t,n),r.attributes))}),new l["default"])}function S(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function P(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function T(e){if(0===e.childNodes.length)return!1;var t=S(e);return["block","list-item"].indexOf(t.display)>-1}function N(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l["default"]):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=N(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[x]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l["default"]):new l["default"]}function A(e,t,n){return q(n,e,!0)}function j(e,t){var n=u["default"].Attributor.Attribute.keys(e),r=u["default"].Attributor.Class.keys(e),o=u["default"].Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=u["default"].query(t,u["default"].Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||undefined),null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(n=k[t],i[n.attrName]=n.value(e)||undefined))})),Object.keys(i).length>0&&(t=q(t,i)),t}function M(e,t){var n=u["default"].query(e);if(null==n)return t;if(n.prototype instanceof u["default"].Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l["default"]).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=q(t,n.blotName,n.formats(e)));return t}function L(e,t){return P(t,"\n")||(T(e)||t.length()>0&&e.nextSibling&&T(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(T(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat(S(e).marginTop)+parseFloat(S(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function D(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!S(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&T(e.parentNode)||null!=e.previousSibling&&T(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&T(e.parentNode)||null!=e.nextSibling&&T(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}_.DEFAULTS={matchers:[],matchVisual:!0},t["default"]=_,t.matchAttributor=j,t.matchBlot=M,t.matchNewline=L,t.matchSpacing=R,t.matchText=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function c(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:c(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"]);s.blotName="bold",s.tagName=["STRONG","B"],t["default"]=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t["default"]=undefined;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),u=c(n(10)),s=c(n(9));function c(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=(0,u["default"])("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");m(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l["default"].events.EDITOR_CHANGE,(function(e,t){e===l["default"].events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l["default"].events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=d.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a["default"].query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var u=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];u=!s.hasAttribute("selected")&&(s.value||!1)}else u=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,u);else if(a["default"].query(n).prototype instanceof a["default"].Embed){if(!(u=prompt("Enter "+n)))return;t.quill.updateContents((new i["default"]).retain(f.index)["delete"](f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,u)),l["default"].sources.USER)}else t.quill.format(n,u,l["default"].sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var u=t[i];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+u+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(s["default"]);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a["default"].query(t,a["default"].Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l["default"].sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l["default"].sources.USER):e||"right"!==t||this.quill.format("align",!1,l["default"].sources.USER),this.quill.format("direction",e,l["default"].sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l["default"].sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l["default"].sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l["default"].sources.USER):this.quill.format("list","unchecked",l["default"].sources.USER):this.quill.format("list",e,l["default"].sources.USER)}}},t["default"]=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function u(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:u(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"]);t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function u(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:u(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"]);t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t["default"]=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=undefined;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l["return"]&&l["return"]()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function w(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:w(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),u=n(43),s=p(u),c=p(n(27)),f=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{"default":e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d["default"]),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d["default"]),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(s["default"]);g.DEFAULTS=(0,a["default"])(!0,{},s["default"].DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l["default"].sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l["default"].events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l["default"].sources.USER){var i=e.quill.scroll.descendant(c["default"],t.index),a=r(i,2),u=a[0],s=a[1];if(null!=u){e.linkRange=new f.Range(t.index-s,u.length());var d=c["default"].formats(u.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t["default"]=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=L(n(29)),o=n(36),i=n(38),a=n(64),l=L(n(65)),u=L(n(66)),s=n(67),c=L(s),f=n(37),d=n(26),p=n(39),h=n(40),m=L(n(56)),v=L(n(68)),y=L(n(27)),g=L(n(69)),b=L(n(70)),w=L(n(71)),E=L(n(72)),x=L(n(73)),O=n(13),C=L(O),k=L(n(74)),_=L(n(75)),q=L(n(57)),S=L(n(41)),P=L(n(28)),T=L(n(59)),N=L(n(60)),A=L(n(61)),j=L(n(108)),M=L(n(62));function L(e){return e&&e.__esModule?e:{"default":e}}r["default"].register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r["default"].register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l["default"],"formats/code-block":C["default"],"formats/header":u["default"],"formats/list":c["default"],"formats/bold":m["default"],"formats/code":O.Code,"formats/italic":v["default"],"formats/link":y["default"],"formats/script":g["default"],"formats/strike":b["default"],"formats/underline":w["default"],"formats/image":E["default"],"formats/video":x["default"],"formats/list/item":s.ListItem,"modules/formula":k["default"],"modules/syntax":_["default"],"modules/toolbar":q["default"],"themes/bubble":j["default"],"themes/snow":M["default"],"ui/icons":S["default"],"ui/picker":P["default"],"ui/icon-picker":N["default"],"ui/color-picker":T["default"],"ui/tooltip":A["default"]},!0),t["default"]=r["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=undefined;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:d(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(0),l=(r=a)&&r.__esModule?r:{"default":r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||undefined}}]),t}(l["default"].Attributor.Class),f=new c("indent","ql-indent",{scope:l["default"].Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{"default":r})["default"]);l.blotName="blockquote",l.tagName="blockquote",t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{"default":r})["default"]);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],t["default"]=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.ListItem=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:h(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=u(n(0)),a=u(n(4)),l=u(n(25));function u(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i["default"].create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?undefined:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a["default"]);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){s(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i["default"].find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":undefined}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i["default"].create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l["default"]);p.blotName="list",p.scope=i["default"].Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t["default"]=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{"default":r})["default"]);l.blotName="italic",l.tagName=["EM","I"],t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function c(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:c(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":undefined}}]),t}(((r=a)&&r.__esModule?r:{"default":r})["default"]);s.blotName="script",s.tagName=["SUB","SUP"],t["default"]=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{"default":r})["default"]);l.blotName="strike",l.tagName="S",t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{"default":r})["default"]);l.blotName="underline",l.tagName="U",t["default"]=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function p(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:p(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(0),l=(r=a)&&r.__esModule?r:{"default":r},u=n(27);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=["alt","height","width"],d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,u.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l["default"].Embed);d.blotName="image",d.tagName="IMG",t["default"]=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function p(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:p(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},a=n(4),l=n(27),u=(r=l)&&r.__esModule?r:{"default":r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=["height","width"],d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return u["default"].sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",t["default"]=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.FormulaBlot=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:h(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=u(n(35)),a=u(n(5)),l=u(n(9));function u(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i["default"]);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a["default"].register(d,!0)}}]),t}(l["default"]);t.FormulaBlot=d,t["default"]=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.CodeToken=t.CodeBlock=undefined;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:m(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},i=u(n(0)),a=u(n(5)),l=u(n(9));function u(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(u(n(13))["default"]);d.className="ql-syntax";var p=new i["default"].Attributor.Class("token","hljs",{scope:i["default"].Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a["default"].events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a["default"].register(p,!0),a["default"].register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a["default"].sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a["default"].sources.SILENT),null!=t&&this.quill.setSelection(t,a["default"].sources.SILENT)}}}]),t}(l["default"]);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t["default"]=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.BubbleTooltip=undefined;var r=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(r===undefined){var o=Object.getPrototypeOf(e);return null===o?undefined:g(o,t,n)}if("value"in r)return r.value;var i=r.get;return i===undefined?undefined:i.call(n)},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),a=f(n(8)),l=n(43),u=f(l),s=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{"default":e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new y(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c["default"]),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c["default"])}}]),t}(u["default"]);v.DEFAULTS=(0,i["default"])(!0,{},u["default"].DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){d(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a["default"].events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a["default"].events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a["default"].sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],u=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-u),f=r.quill.getBounds(new s.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a["default"].events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);y.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=y,t["default"]=v},function(e,t,n){e.exports=n(63)}])["default"]},e.exports=t()},3441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ue});var r=n(4942),o=n(1413),i=n(9439),a=n(1002),l=n(7363),u=n(4203),s=n(2550),c=n(4184),f=n.n(c),d=n(8924);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var h,m,v,y=(h=(0,d.Z)(),m="undefined"!=typeof window?window:{},v={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")},h&&("AnimationEvent"in m||delete v.animationend.animation,"TransitionEvent"in m||delete v.transitionend.transition),v),g={};if((0,d.Z)()){var b=document.createElement("div");g=b.style}var w={};function E(e){if(w[e])return w[e];var t=y[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in g)return w[e]=t[i],w[e]}return""}var x=E("animationend"),O=E("transitionend"),C=!(!x||!O),k=x||"animationend",_=O||"transitionend";function q(e,t){return e?"object"===(0,a.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var S="none",P="appear",T="enter",N="leave",A="none",j="prepare",M="start",L="active",R="end",D=n(470),Z=n(5164);const I=(0,d.Z)()?l.useLayoutEffect:l.useEffect;var F=[j,M,L,R];function H(e){return e===L||e===R}const V=function(e,t){var n=(0,D.Z)(A),r=(0,i.Z)(n,2),o=r[0],a=r[1],u=function(){var e=l.useRef(null);function t(){Z.Z.cancel(e.current)}return l.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&arguments[1]!==undefined?arguments[1]:2;t();var i=(0,Z.Z)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=(0,i.Z)(u,2),c=s[0],f=s[1];return I((function(){if(o!==A&&o!==R){var e=F.indexOf(o),n=F[e+1],r=t(o);false===r?a(n,!0):c((function(e){function t(){e.isCanceled()||a(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),l.useEffect((function(){return function(){f()}}),[]),[function(){a(j,!0)},o]};function B(e,t,n,a){var u=a.motionEnter,s=void 0===u||u,c=a.motionAppear,f=void 0===c||c,d=a.motionLeave,p=void 0===d||d,h=a.motionDeadline,m=a.motionLeaveImmediately,v=a.onAppearPrepare,y=a.onEnterPrepare,g=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,E=a.onLeaveStart,x=a.onAppearActive,O=a.onEnterActive,C=a.onLeaveActive,q=a.onAppearEnd,A=a.onEnterEnd,R=a.onLeaveEnd,Z=a.onVisibleChanged,F=(0,D.Z)(),B=(0,i.Z)(F,2),U=B[0],z=B[1],Y=(0,D.Z)(S),$=(0,i.Z)(Y,2),W=$[0],G=$[1],K=(0,D.Z)(null),Q=(0,i.Z)(K,2),X=Q[0],J=Q[1],ee=(0,l.useRef)(!1),te=(0,l.useRef)(null);function ne(){return n()}var re=(0,l.useRef)(!1);function oe(e){var t=ne();if(!e||e.deadline||e.target===t){var n,r=re.current;W===P&&r?n=null==q?void 0:q(t,e):W===T&&r?n=null==A?void 0:A(t,e):W===N&&r&&(n=null==R?void 0:R(t,e)),W!==S&&r&&!1!==n&&(G(S,!0),J(null,!0))}}var ie=function(e){var t=(0,l.useRef)(),n=(0,l.useRef)(e);n.current=e;var r=l.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(_,r),e.removeEventListener(k,r))}return l.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(_,r),e.addEventListener(k,r),t.current=e)},o]}(oe),ae=(0,i.Z)(ie,1)[0],le=l.useMemo((function(){var e,t,n;switch(W){case P:return e={},(0,r.Z)(e,j,v),(0,r.Z)(e,M,b),(0,r.Z)(e,L,x),e;case T:return t={},(0,r.Z)(t,j,y),(0,r.Z)(t,M,w),(0,r.Z)(t,L,O),t;case N:return n={},(0,r.Z)(n,j,g),(0,r.Z)(n,M,E),(0,r.Z)(n,L,C),n;default:return{}}}),[W]),ue=V(W,(function(e){if(e===j){var t=le.prepare;return!!t&&t(ne())}var n;fe in le&&J((null===(n=le[fe])||void 0===n?void 0:n.call(le,ne(),null))||null);return fe===L&&(ae(ne()),h>0&&(clearTimeout(te.current),te.current=setTimeout((function(){oe({deadline:!0})}),h))),true})),se=(0,i.Z)(ue,2),ce=se[0],fe=se[1],de=H(fe);re.current=de,I((function(){z(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=P),r&&t&&s&&(n=T),(r&&!t&&p||!r&&m&&!t&&p)&&(n=N),n&&(G(n),ce()))}),[t]),(0,l.useEffect)((function(){(W===P&&!f||W===T&&!s||W===N&&!p)&&G(S)}),[f,s,p]),(0,l.useEffect)((function(){return function(){ee.current=!1,clearTimeout(te.current)}}),[]);var pe=l.useRef(!1);(0,l.useEffect)((function(){U&&(pe.current=!0),U!==undefined&&W===S&&((pe.current||U)&&(null==Z||Z(U)),pe.current=!0)}),[U,W]);var he=X;return le.prepare&&fe===M&&(he=(0,o.Z)({transition:"none"},he)),[W,fe,he,null!=U?U:t]}var U=n(5671),z=n(3144),Y=n(9340),$=n(8557);const W=function(e){(0,Y.Z)(n,e);var t=(0,$.Z)(n);function n(){return(0,U.Z)(this,n),t.apply(this,arguments)}return(0,z.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);const G=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var c=l.forwardRef((function(e,t){var a=e.visible,c=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,h=e.forceRender,m=e.children,v=e.motionName,y=e.leavedClassName,g=e.eventProps,b=n(e),w=(0,l.useRef)(),E=(0,l.useRef)();var x=B(b,c,(function(){try{return w.current instanceof HTMLElement?w.current:(0,u.Z)(E.current)}catch(e){return null}}),e),O=(0,i.Z)(x,4),C=O[0],k=O[1],_=O[2],P=O[3],T=l.useRef(P);P&&(T.current=!0);var N,A=l.useCallback((function(e){w.current=e,(0,s.mH)(t,e)}),[t]),L=(0,o.Z)((0,o.Z)({},g),{},{visible:c});if(m)if(C!==S&&n(e)){var R,D;k===j?D="prepare":H(k)?D="active":k===M&&(D="start"),N=m((0,o.Z)((0,o.Z)({},L),{},{className:f()(q(v,C),(R={},(0,r.Z)(R,q(v,"".concat(C,"-").concat(D)),D),(0,r.Z)(R,v,"string"==typeof v),R)),style:_}),A)}else N=P?m((0,o.Z)({},L),A):!p&&T.current?m((0,o.Z)((0,o.Z)({},L),{},{className:y}),A):h?m((0,o.Z)((0,o.Z)({},L),{},{style:{display:"none"}}),A):null;else N=null;l.isValidElement(N)&&(0,s.Yr)(N)&&(N.ref||(N=l.cloneElement(N,{ref:A})));return l.createElement(W,{ref:E},N)}));return c.displayName="CSSMotion",c}(C);var K=n(7462),Q=n(4925),X="add",J="keep",ee="remove",te="removed";function ne(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function re(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return e.map(ne)}function oe(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],n=[],r=0,i=t.length,a=re(e),l=re(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var u=l[a];if(u.key===e.key){r<a&&(n=n.concat(l.slice(r,a).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{status:X})}))),r=a),n.push((0,o.Z)((0,o.Z)({},u),{},{status:J})),r+=1,t=!0;break}}t||n.push((0,o.Z)((0,o.Z)({},e),{},{status:ee}))})),r<i&&(n=n.concat(l.slice(r).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{status:X})}))));var u={};n.forEach((function(e){var t=e.key;u[t]=(u[t]||0)+1}));var s=Object.keys(u).filter((function(e){return u[e]>1}));return s.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ee}))).forEach((function(t){t.key===e&&(t.status=J)}))})),n}var ie=["component","children","onVisibleChanged","onAllRemoved"],ae=["status"],le=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:G,n=function(e){(0,Y.Z)(r,e);var n=(0,$.Z)(r);function r(){var e;(0,U.Z)(this,r);for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return(e=n.call.apply(n,[this].concat(i))).state={keyEntities:[]},e.removeKey=function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:(0,o.Z)((0,o.Z)({},e),{},{status:te})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==te})).length},e}return(0,z.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,u=r.onAllRemoved,s=(0,Q.Z)(r,ie),c=o||l.Fragment,f={};return le.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(c,s,n.map((function(n){var r=n.status,o=(0,Q.Z)(n,ae),s=r===X||r===J;return l.createElement(t,(0,K.Z)({},f,{key:o.key,visible:s,eventProps:o,onVisibleChanged:function(t){(null==a||a(t,{key:o.key}),t)||0===e.removeKey(o.key)&&u&&u()}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=re(n);return{keyEntities:oe(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==te||e.status!==ee}))}}}]),r}(l.Component);n.defaultProps={component:"div"}}(C);const ue=G},5977:(e,t,n)=>{"use strict";var r=n(4836);t.Z=void 0;var o=r(n(7484)),i=n(5520),a=r(n(6833)),l=r(n(6036)),u=r(n(5183)),s=r(n(172)),c=r(n(8734)),f=r(n(285));o["default"].extend(f["default"]),o["default"].extend(c["default"]),o["default"].extend(a["default"]),o["default"].extend(l["default"]),o["default"].extend(u["default"]),o["default"].extend(s["default"]),o["default"].extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var d={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},p=function(e){return d[e]||e.split("_")[0]},h=function(){(0,i.noteOnce)(!1,"Not match any format. Please help to fire a issue about this.")},m={getNow:function(){return(0,o["default"])()},getFixedDate:function(e){return(0,o["default"])(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return(0,o["default"])().locale(p(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(p(e)).weekday(0)},getWeek:function(e,t){return t.locale(p(e)).week()},getShortWeekDays:function(e){return(0,o["default"])().locale(p(e)).localeData().weekdaysMin()},getShortMonths:function(e){return(0,o["default"])().locale(p(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(p(e)).format(n)},parse:function(e,t,n){for(var r=p(e),i=0;i<n.length;i+=1){var a=n[i],l=t;if(a.includes("wo")||a.includes("Wo")){for(var u=l.split("-")[0],s=l.split("-")[1],c=(0,o["default"])(u,"YYYY").startOf("year").locale(r),f=0;f<=52;f+=1){var d=c.add(f,"week");if(d.format("Wo")===s)return d}return h(),null}var m=(0,o["default"])(l,a).locale(r);if(m.isValid())return m}return t&&h(),null}}};t.Z=m},344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7363),o=n.n(r),i=n(9864);function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=[];return o().Children.forEach(e,(function(e){(e!==undefined&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,i.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},8924:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:()=>r})},4999:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:()=>r})},4958:(e,t,n)=>{"use strict";n.d(t,{hq:()=>m});var r=n(8924),o=n(4999),i="data-rc-order",a="rc-util-key",l=new Map;function u(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):a}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function c(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function f(e){return Array.from((l.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function d(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,a=document.createElement("style");a.setAttribute(i,c(o)),(null==n?void 0:n.nonce)&&(a.nonce=null==n?void 0:n.nonce),a.innerHTML=e;var l=s(t),u=l.firstChild;if(o){if("queue"===o){var d=f(l).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(i))}));if(d.length)return l.insertBefore(a,d[d.length-1].nextSibling),a}l.insertBefore(a,u)}else l.appendChild(a);return a}function p(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=s(t);return f(n).find((function(n){return n.getAttribute(u(t))===e}))}function h(e,t){var n=l.get(e);if(!n||!(0,o.Z)(document,n)){var r=d("",t),i=r.parentNode;l.set(e,i),i.removeChild(r)}}function m(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=s(n);h(r,n);var o=p(t,n);if(o){var i,a,l;if((null===(i=n.csp)||void 0===i?void 0:i.nonce)&&o.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))o.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce;return o.innerHTML!==e&&(o.innerHTML=e),o}var c=d(e,n);return c.setAttribute(u(n),t),c}},4203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1533),o=n.n(r);function i(e){return e instanceof HTMLElement?e:o().findDOMNode(e)}},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7363);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9439),o=n(7363);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.Z)(n,2),a=i[0],l=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||l(e)}]}},8423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1413);function o(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},5164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a["delete"](e)}function u(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1,n=i+=1;function o(t){if(0===t)l(n),e();else{var i=r((function(){o(t-1)}));a.set(n,i)}}return o(t),n}u.cancel=function(e){var t=a.get(e);return l(t),o(t)}},2550:(e,t,n)=>{"use strict";n.d(t,{Yr:()=>l,mH:()=>i,sQ:()=>a});var r=n(1002),o=n(9864);n(6982);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function l(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},334:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>a});var r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}const a=function(e,t){i(o,e,t)}},5520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=i,t["default"]=void 0,t.note=o,t.noteOnce=function(e,t){i(o,e,t)},t.resetWarned=function(){n={}},t.warning=r,t.warningOnce=a;var n={};function r(e,t){0}function o(e,t){0}function i(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function a(e,t){i(r,e,t)}var l=a;t["default"]=l},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol["for"],r=n?Symbol["for"]("react.element"):60103,o=n?Symbol["for"]("react.portal"):60106,i=n?Symbol["for"]("react.fragment"):60107,a=n?Symbol["for"]("react.strict_mode"):60108,l=n?Symbol["for"]("react.profiler"):60114,u=n?Symbol["for"]("react.provider"):60109,s=n?Symbol["for"]("react.context"):60110,c=n?Symbol["for"]("react.async_mode"):60111,f=n?Symbol["for"]("react.concurrent_mode"):60111,d=n?Symbol["for"]("react.forward_ref"):60112,p=n?Symbol["for"]("react.suspense"):60113,h=n?Symbol["for"]("react.suspense_list"):60120,m=n?Symbol["for"]("react.memo"):60115,v=n?Symbol["for"]("react.lazy"):60116,y=n?Symbol["for"]("react.block"):60121,g=n?Symbol["for"]("react.fundamental"):60117,b=n?Symbol["for"]("react.responder"):60118,w=n?Symbol["for"]("react.scope"):60119; |
| 26 |
/** @license React v16.13.1 |
| 27 |
* react-is.production.min.js |
| 28 |
* |
| 29 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 30 |
* |
| 31 |
* This source code is licensed under the MIT license found in the |
| 32 |
* LICENSE file in the root directory of this source tree. |
| 33 |
*/function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case v:case m:case u:return e;default:return t}}case o:return t}}}function x(e){return E(e)===f}t.isFragment=function(e){return E(e)===i},t.isMemo=function(e){return E(e)===m}},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},1167:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}},u=l(n(7363)),s=l(n(1533)),c=l(n(8446)),f=l(n(6095)),d=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,u;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(u=(l=n).onEditorChangeSelection)||void 0===u||u.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(u["default"].Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(u["default"].Children.count(e.children)&&"textarea"===(null===(t=u["default"].Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!c["default"](e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!c["default"](e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),p((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new f["default"](e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c["default"](e.ops,t.ops):c["default"](e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s["default"].findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return u["default"].Children.count(n)?u["default"].cloneElement(u["default"].Children.only(n),o):r?u["default"].createElement("pre",i({},o)):u["default"].createElement("div",i({},o))},t.prototype.render=function(){var e;return u["default"].createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,u;if(this.editor){var s=this.getEditorSelection(),f=!s&&e,d=s&&!e;c["default"](e,s)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),f?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(u=(l=this.props).onBlur)||void 0===u||u.call(l,s,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=f["default"],t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(u["default"].Component);function p(e){Promise.resolve().then(e)}e.exports=d},9655:(e,t,n)=>{"use strict";n.d(t,{cP:()=>l,lr:()=>c});var r=n(7363),o=n(9250),i=n(2599);function a(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}function l(e,t){var n;return(0,i.p7)({basename:null==t?void 0:t.basename,history:(0,i.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||(null==(n=window)?void 0:n.__staticRouterHydrationData),routes:(0,o.DG)(e)}).initialize()}var u,s;function c(e){let t=r.useRef(a(e)),n=(0,o.TH)(),i=r.useMemo((()=>function(e,t){let n=a(e);for(let e of t.keys())n.has(e)||t.getAll(e).forEach((t=>{n.append(e,t)}));return n}(n.search,t.current)),[n.search]),l=(0,o.s0)(),u=r.useCallback(((e,t)=>{const n=a("function"==typeof e?e(i):e);l("?"+n,t)}),[l,i]);return[i,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(u||(u={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(s||(s={}))},9250:(e,t,n)=>{"use strict";n.d(t,{DG:()=>F,TH:()=>x,j3:()=>j,pG:()=>A,s0:()=>O});var r=n(2599),o=n(7363); |
| 34 |
/** |
| 35 |
* React Router v6.4.3 |
| 36 |
* |
| 37 |
* Copyright (c) Remix Software Inc. |
| 38 |
* |
| 39 |
* This source code is licensed under the MIT license found in the |
| 40 |
* LICENSE.md file in the root directory of this source tree. |
| 41 |
* |
| 42 |
* @license MIT |
| 43 |
*/ |
| 44 |
function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:l,useEffect:u,useLayoutEffect:s,useDebugValue:c}=o;function f(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!a(n,e)}catch(r){return!0}}const d=!!("undefined"==typeof window||"undefined"==typeof window.document||"undefined"==typeof window.document.createElement)?function(e,t,n){return t()}:function(e,t,n){const r=t(),[{inst:o},i]=l({inst:{value:r,getSnapshot:t}});return s((()=>{o.value=r,o.getSnapshot=t,f(o)&&i({inst:o})}),[e,r,t]),u((()=>{f(o)&&i({inst:o});return e((()=>{f(o)&&i({inst:o})}))}),[e]),c(r),r},p="useSyncExternalStore"in o?o.useSyncExternalStore:d;const h=o.createContext(null);const m=o.createContext(null);const v=o.createContext(null);const y=o.createContext(null);const g=o.createContext(null);const b=o.createContext({outlet:null,matches:[]});const w=o.createContext(null);function E(){return null!=o.useContext(g)}function x(){return E()||(0,r.kG)(!1),o.useContext(g).location}function O(){E()||(0,r.kG)(!1);let{basename:e,navigator:t}=o.useContext(y),{matches:n}=o.useContext(b),{pathname:i}=x(),a=JSON.stringify((0,r.Zq)(n).map((e=>e.pathnameBase))),l=o.useRef(!1);return o.useEffect((()=>{l.current=!0})),o.useCallback((function(n,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof n)return void t.go(n);let u=(0,r.pC)(n,JSON.parse(a),i,"path"===o.relative);"/"!==e&&(u.pathname="/"===u.pathname?e:(0,r.RQ)([e,u.pathname])),(o.replace?t.replace:t.push)(u,o.state,o)}),[e,t,a,i])}const C=o.createContext(null);function k(){let e=function(){var e;let t=o.useContext(w),n=N(T.UseRouteError),i=o.useContext(b),a=i.matches[i.matches.length-1];if(t)return t;return i||(0,r.kG)(!1),!a.route.id&&(0,r.kG)(!1),null==(e=n.errors)?void 0:e[a.route.id]}(),t=(0,r.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},l={padding:"2px 4px",backgroundColor:i};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unhandled Thrown Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:a},n):null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:l},"errorElement")," props on ",o.createElement("code",{style:l},"<Route>")))}class _ extends o.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?o.createElement(w.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function q(e){let{routeContext:t,match:n,children:r}=e,i=o.useContext(h);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),o.createElement(b.Provider,{value:t},r)}function S(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let i=e,a=null==n?void 0:n.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&(null==a?void 0:a[e.route.id])));e>=0||(0,r.kG)(!1),i=i.slice(0,Math.min(i.length,e+1))}return i.reduceRight(((e,r,l)=>{let u=r.route.id?null==a?void 0:a[r.route.id]:null,s=n?r.route.errorElement||o.createElement(k,null):null,c=()=>o.createElement(q,{match:r,routeContext:{outlet:e,matches:t.concat(i.slice(0,l+1))}},u?s:r.route.element!==undefined?r.route.element:e);return n&&(r.route.errorElement||0===l)?o.createElement(_,{location:n.location,component:s,error:u,children:c()}):c()}),null)}var P,T;function N(e){let t=o.useContext(v);return t||(0,r.kG)(!1),t}!function(e){e.UseRevalidator="useRevalidator"}(P||(P={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(T||(T={}));function A(e){let{fallbackElement:t,router:n}=e,r=p(n.subscribe,(()=>n.state),(()=>n.state)),i=o.useMemo((()=>({createHref:n.createHref,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),a=n.basename||"/";return o.createElement(m.Provider,{value:{router:n,navigator:i,"static":!1,basename:a}},o.createElement(v.Provider,{value:r},o.createElement(L,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?o.createElement(R,null):t)))}function j(e){return function(e){let t=o.useContext(b).outlet;return t?o.createElement(C.Provider,{value:e},t):t}(e.context)}function M(e){(0,r.kG)(!1)}function L(e){let{basename:t="/",children:n=null,location:i,navigationType:a=r.aU.Pop,navigator:l,"static":u=!1}=e;E()&&(0,r.kG)(!1);let s=t.replace(/^\/*/,"/"),c=o.useMemo((()=>({basename:s,navigator:l,"static":u})),[s,l,u]);"string"==typeof i&&(i=(0,r.cP)(i));let{pathname:f="/",search:d="",hash:p="",state:h=null,key:m="default"}=i,v=o.useMemo((()=>{let e=(0,r.Zn)(f,s);return null==e?null:{pathname:e,search:d,hash:p,state:h,key:m}}),[s,f,d,p,h,m]);return null==v?null:o.createElement(y.Provider,{value:c},o.createElement(g.Provider,{children:n,value:{location:v,navigationType:a}}))}function R(e){let{children:t,location:n}=e,a=o.useContext(m);return function(e,t){E()||(0,r.kG)(!1);let n=o.useContext(v),{matches:a}=o.useContext(b),l=a[a.length-1],u=l?l.params:{},s=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,f=x();if(t){var d;let e="string"==typeof t?(0,r.cP)(t):t;"/"===s||(null==(d=e.pathname)?void 0:d.startsWith(s))||(0,r.kG)(!1),c=e}else c=f;let p=c.pathname||"/",h="/"===s?p:p.slice(s.length)||"/",m=(0,r.fp)(e,{pathname:h}),y=S(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:(0,r.RQ)([s,e.pathname]),pathnameBase:"/"===e.pathnameBase?s:(0,r.RQ)([s,e.pathnameBase])}))),a,n||undefined);return t&&y?o.createElement(g.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:r.aU.Pop}},y):y}(a&&!t?a.router.routes:I(t),n)}var D;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(D||(D={}));new Promise((()=>{}));class Z extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,o=D.pending;if(n instanceof Promise)if(this.state.error){D.error;let e=this.state.error;Promise.reject()["catch"]((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(n,r._error!==undefined?D.error:r._data!==undefined?D.success:D.pending):(D.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else D.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(o===D.error&&r._error instanceof AbortedDeferredError)throw neverSettledPromise;if(o===D.error&&!t)throw r._error;if(o===D.error)return React.createElement(AwaitContext.Provider,{value:r,children:t});if(o===D.success)return React.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function I(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,i)=>{if(!o.isValidElement(e))return;if(e.type===o.Fragment)return void n.push.apply(n,I(e.props.children,t));e.type!==M&&(0,r.kG)(!1),e.props.index&&e.props.children&&(0,r.kG)(!1);let a=[...t,i],l={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(l.children=I(e.props.children,a)),n.push(l)})),n}function F(e){return e.map((e=>{let t=i({},e);return null==t.hasErrorBoundary&&(t.hasErrorBoundary=null!=t.errorElement),t.children&&(t.children=F(t.children)),t}))}},6774:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},5097:(e,t,n)=>{"use strict";var r=n(3379),o=n.n(r),i=n(7006),a={insert:"head",singleton:!1};o()(i.Z,a),i.Z.locals},3379:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if("undefined"==typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,c="".concat(u," ").concat(s);n[u]=s+1;var f=l(c),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:c,updater:v(d,t),references:1}),r.push(c)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if("undefined"==typeof r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,f=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function v(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var c=l(n[s]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{"default":e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},907:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},3878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},7326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},5671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},8557:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>l});var o=n(1002),i=n(7326);function a(e,t){if(t&&("object"===(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}}},4942:(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}n.d(t,{Z:()=>r})},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},9340:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,{Z:()=>o})},5267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},1413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4925:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},9439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3878);var o=n(181),i=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},1002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},1721:(e,t,n)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{ZP:()=>Ge});const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>a(t)===e),s=e=>t=>typeof t===e,{isArray:c}=Array,f=s("undefined");const d=u("ArrayBuffer");const p=s("string"),h=s("function"),m=s("number"),v=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=u("Date"),b=u("File"),w=u("Blob"),E=u("FileList"),x=u("URLSearchParams");function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),c(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}const C=(k="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>k&&e instanceof k);var k;const _=u("HTMLFormElement"),q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S=u("RegExp"),P=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},T={isArray:c,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||h(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:y,isUndefined:f,isDate:g,isFile:b,isBlob:w,isRegExp:S,isFunction:h,isStream:e=>v(e)&&h(e.pipe),isURLSearchParams:x,isTypedArray:C,isFileList:E,forEach:O,merge:function Ke(){const e={},t=(t,n)=>{y(e[n])&&y(t)?e[n]=Ke(e[n],t):y(t)?e[n]=Ke({},t):c(t)?e[n]=t.slice():e[n]=t};for(let e=0,n=arguments.length;e<n;e++)arguments[e]&&O(arguments[e],t);return e},extend:(e,t,n,{allOwnKeys:o}={})=>(O(t,((t,o)=>{n&&h(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,l;const u={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],r&&!r(l,e,t)||u[l]||(t[l]=e[l],u[l]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(n===undefined||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:_,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:P,freezeMethods:e=>{P(e,((t,n)=>{const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function N(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}T.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const A=N.prototype,j={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{j[e]={value:e}})),Object.defineProperties(N,j),Object.defineProperty(A,"isAxiosError",{value:!0}),N.from=(e,t,n,r,o,i)=>{const a=Object.create(A);return T.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),N.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const M=N;const L=n(6230);function R(e){return T.isPlainObject(e)||T.isArray(e)}function D(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map((function(e,t){return e=D(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const I=T.toFlatObject(T,{},null,(function(e){return/^is[A-Z]/.test(e)}));const F=function(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new(L||FormData);const r=(n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!T.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((u=t)&&T.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator]);var u;if(!T.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(T.isDate(e))return e.toISOString();if(!l&&T.isBlob(e))throw new M("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(e)||T.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(T.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(T.isArray(e)&&function(e){return T.isArray(e)&&!e.some(R)}(e)||T.isFileList(e)||T.endsWith(n,"[]")&&(l=T.toArray(e)))return n=D(n),l.forEach((function(e,r){!T.isUndefined(e)&&null!==e&&t.append(!0===a?Z([n],r,i):null===a?n:n+"[]",s(e))})),!1;return!!R(e)||(t.append(Z(o,n,i),s(e)),!1)}const f=[],d=Object.assign(I,{defaultVisitor:c,convertValue:s,isVisitable:R});if(!T.isObject(e))throw new TypeError("data must be an object");return function p(e,n){if(!T.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),T.forEach(e,(function(e,r){!0===(!(T.isUndefined(e)||null===e)&&o.call(t,e,T.isString(r)?r.trim():r,n,d))&&p(e,n?n.concat(r):[r])})),f.pop()}}(e),t};function H(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function V(e,t){this._pairs=[],e&&F(e,this,t)}const B=V.prototype;B.append=function(e,t){this._pairs.push([e,t])},B.toString=function(e){const t=e?function(t){return e.call(this,t,H)}:H;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const U=V;function z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const r=n&&n.encode||z,o=n&&n.serialize;let i;if(i=o?o(t,n):T.isURLSearchParams(t)?t.toString():new U(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const $=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){T.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},W={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G="undefined"!=typeof URLSearchParams?URLSearchParams:U,K=FormData,Q=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),X={isBrowser:!0,classes:{URLSearchParams:G,FormData:K,Blob:Blob},isStandardBrowserEnv:Q,protocols:["http","https","file","blob","url","data"]};const J=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&T.isArray(r)?r.length:i,l)return T.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&T.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&T.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,((e,r)=>{t(function(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ee=X.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),T.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),T.isString(r)&&a.push("path="+r),T.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function te(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ne=X.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=T.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function re(e,t,n){M.call(this,null==e?"canceled":e,M.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(re,M,{__CANCEL__:!0});const oe=re;const ie=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals"),le=Symbol("defaults");function ue(e){return e&&String(e).trim().toLowerCase()}function se(e){return!1===e||null==e?e:T.isArray(e)?e.map(se):String(e)}function ce(e,t,n,r){return T.isFunction(r)?r.call(this,t,n):T.isString(t)?T.isString(r)?-1!==t.indexOf(r):T.isRegExp(r)?r.test(t):void 0:void 0}function fe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function de(e,t){e&&this.set(e),this[le]=t||null}Object.assign(de.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=ue(t);if(!o)throw new Error("header name must be a non-empty string");const i=fe(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=se(e))}return T.isPlainObject(e)?T.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=ue(e)))return undefined;const n=fe(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(T.isFunction(t))return t.call(this,e,n);if(T.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=ue(e)){const n=fe(this,e);return!(!n||t&&!ce(0,this[n],n,t))}return!1},"delete":function(e,t){const n=this;let r=!1;function o(e){if(e=ue(e)){const o=fe(n,e);!o||t&&!ce(0,n[o],o,t)||(delete n[o],r=!0)}}return T.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this["delete"].bind(this))},normalize:function(e){const t=this,n={};return T.forEach(this,((r,o)=>{const i=fe(n,o);if(i)return t[i]=se(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=se(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return T.forEach(Object.assign({},this[le]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&T.isArray(n)?n.join(", "):n)})),t}}),Object.assign(de,{from:function(e){return T.isString(e)?new this((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ie[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ue(e);t[r]||(!function(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return T.isArray(e)?e.forEach(r):r(e),this}}),de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),T.freezeMethods(de.prototype),T.freezeMethods(de);const pe=de;const he=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=t!==undefined?t:1e3,function(l){const u=Date.now(),s=r[a];o||(o=u),n[i]=l,r[i]=u;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=s&&u-s;return d?Math.round(1e3*f/d):undefined}};function me(e,t){let n=0;const r=he(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:undefined,l=i-n,u=r(l);n=i;const s={loaded:i,total:a,progress:a?i/a:undefined,bytes:l,rate:u||undefined,estimated:u&&a&&i<=a?(a-i)/u:undefined};s[t?"download":"upload"]=!0,e(s)}}function ve(e){return new Promise((function(t,n){let r=e.data;const o=pe.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}T.isFormData(r)&&X.isStandardBrowserEnv&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const s=te(e.baseURL,e.url);function c(){if(!u)return;const r=pe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Y(s,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(n(new M("Request aborted",M.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||W;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new M(t,r.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,u)),u=null},X.isStandardBrowserEnv){const t=(e.withCredentials||ne(s))&&e.xsrfCookieName&&ee.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}r===undefined&&o.setContentType(null),"setRequestHeader"in u&&T.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),T.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&"json"!==i&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",me(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",me(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new oe(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s);f&&-1===X.protocols.indexOf(f)?n(new M("Unsupported protocol "+f+":",M.ERR_BAD_REQUEST,e)):u.send(r||null)}))}const ye={http:ve,xhr:ve},ge=e=>{if(T.isString(e)){const t=ye[e];if(!e)throw Error(T.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!T.isFunction(e))throw new TypeError("adapter is not a function");return e},be={"Content-Type":"application/x-www-form-urlencoded"};const we={transitional:W,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=ge("xhr"):"undefined"!=typeof process&&"process"===T.kindOf(process)&&(e=ge("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=T.isObject(e);o&&T.isHTMLForm(e)&&(e=new FormData(e));if(T.isFormData(e))return r&&r?JSON.stringify(J(e)):e;if(T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e))return e;if(T.isArrayBufferView(e))return e.buffer;if(T.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return F(e,new X.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return X.isNode&&T.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=T.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return F(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&T.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw M.from(o,M.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:X.classes.FormData,Blob:X.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};T.forEach(["delete","get","head"],(function(e){we.headers[e]={}})),T.forEach(["post","put","patch"],(function(e){we.headers[e]=T.merge(be)}));const Ee=we;function xe(e,t){const n=this||Ee,r=t||n,o=pe.from(r.headers);let i=r.data;return T.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:undefined)})),o.normalize(),i}function Oe(e){return!(!e||!e.__CANCEL__)}function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oe}function ke(e){Ce(e),e.headers=pe.from(e.headers),e.data=xe.call(e,e.transformRequest);return(e.adapter||Ee.adapter)(e).then((function(t){return Ce(e),t.data=xe.call(e,e.transformResponse,t),t.headers=pe.from(t.headers),t}),(function(t){return Oe(t)||(Ce(e),t&&t.response&&(t.response.data=xe.call(e,e.transformResponse,t.response),t.response.headers=pe.from(t.response.headers))),Promise.reject(t)}))}function _e(e,t){t=t||{};const n={};function r(e,t){return T.isPlainObject(e)&&T.isPlainObject(t)?T.merge(e,t):T.isPlainObject(t)?T.merge({},t):T.isArray(t)?t.slice():t}function o(n){return T.isUndefined(t[n])?T.isUndefined(e[n])?void 0:r(undefined,e[n]):r(e[n],t[n])}function i(e){if(!T.isUndefined(t[e]))return r(undefined,t[e])}function a(n){return T.isUndefined(t[n])?T.isUndefined(e[n])?void 0:r(undefined,e[n]):r(undefined,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(undefined,e[n]):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return T.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=u[e]||o,r=t(e);T.isUndefined(r)&&t!==l||(n[e]=r)})),n}const qe="1.1.3",Se={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Se[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pe={};Se.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new M(r(o," has been removed"+(t?" in "+t:"")),M.ERR_DEPRECATED);return t&&!Pe[o]&&(Pe[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Te={assertOptions:function(e,t,n){if("object"!=typeof e)throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=t===undefined||a(t,i,e);if(!0!==n)throw new M("option "+i+" must be "+n,M.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}},validators:Se},Ne=Te.validators;class Ae{constructor(e){this.defaults=e,this.interceptors={request:new $,response:new $}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=_e(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;n!==undefined&&Te.assertOptions(n,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),r!==undefined&&Te.assertOptions(r,{encode:Ne["function"],serialize:Ne["function"]},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&T.merge(t.headers.common,t.headers[t.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new pe(t.headers,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let s,c=0;if(!a){const e=[ke.bind(this),undefined];for(e.unshift.apply(e,i),e.push.apply(e,l),s=e.length,u=Promise.resolve(t);c<s;)u=u.then(e[c++],e[c++]);return u}s=i.length;let f=t;for(c=0;c<s;){const e=i[c++],t=i[c++];try{f=e(f)}catch(d){t.call(this,d);break}}try{u=ke.call(this,f)}catch(d){return Promise.reject(d)}for(c=0,s=l.length;c<s;)u=u.then(l[c++],l[c++]);return u}getUri(e){return Y(te((e=_e(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}T.forEach(["delete","get","head","options"],(function(e){Ae.prototype[e]=function(t,n){return this.request(_e(n||{},{method:e,url:t,data:(n||{}).data}))}})),T.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(_e(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ae.prototype[e]=t(),Ae.prototype[e+"Form"]=t(!0)}));const je=Ae;class Me{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new oe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Me((function(t){e=t})),cancel:e}}}const Le=Me;const Re=function Qe(e){const t=new je(e),n=r(je.prototype.request,t);return T.extend(n,je.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Qe(_e(e,t))},n}(Ee);Re.Axios=je,Re.CanceledError=oe,Re.CancelToken=Le,Re.isCancel=Oe,Re.VERSION=qe,Re.toFormData=F,Re.AxiosError=M,Re.Cancel=Re.CanceledError,Re.all=function(e){return Promise.all(e)},Re.spread=function(e){return function(t){return e.apply(null,t)}},Re.isAxiosError=function(e){return T.isObject(e)&&!0===e.isAxiosError},Re.formToJSON=e=>J(T.isHTMLForm(e)?new FormData(e):e);const De=Re,{Axios:Ze,AxiosError:Ie,CanceledError:Fe,isCancel:He,CancelToken:Ve,VERSION:Be,all:Ue,Cancel:ze,isAxiosError:Ye,spread:$e,toFormData:We}=De,Ge=De}},r={};function o(e){var t=r[e];if(t!==undefined)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"chunk/"+e+".chunk.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="timetics:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var l,u;if(i!==undefined)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var f=s[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",t+i),l.src=n),e[n]=[r];var d=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,undefined,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={966:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:undefined;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),l=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=undefined),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,r[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,l,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(u)u(o)}for(t&&t(n);s<a.length;s++)i=a[s],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunktimetics=self.webpackChunktimetics||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=undefined,(()=>{"use strict";var e=o(9655),t=o(5729),n=o(4903),r=o(3632),i=o(7157),a=(o(8253),o(9039)),l=o(3538),u=o(7026),s=o(4378),c=(o(1167),o(5097),o(6582));window.React.useState;var f=window.antd;f.Modal,f.Form,f.Input,f.Button,f.Space,f.Row,f.Typography.Title,wp.i18n.__;var d=window.antd,p=d.Collapse,h=(d.Space,d.Switch,d.Button,d.Divider,d.Row,d.Col,d.Typography);p.Panel,h.Title,wp.i18n.__;window.antd.Radio,window.React.useState;wp.i18n.__;var m=window.antd,v=(m.Col,m.Row,m.Typography.Title,window.React);v.useState,v.useEffect;var y=window.antd;y.Button,y.Row,y.Col,window.React.useState,wp.i18n.__;var g=o(7389),b=o(3044);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function E(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */E=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new q(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(S([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==w(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,C(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=S,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),f}},e}function x(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?x(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){k(i,r,o,a,l,"next",e)}function l(e){k(i,r,o,a,l,"throw",e)}a(undefined)}))}}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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}var P=window.React,T=P.useEffect,N=P.useState,A=window.antd,j=(A.Row,A.Tabs),M=A.Typography.Title,L=wp.i18n.__;const R=function(){var o=q((0,a.K)(),2),s=o[0],c=s.meeting,f=s.staff,d=o[1],p=(0,u.Z)().submitMeeting,h=q((0,e.lr)(),1)[0],m=q(N(1),2),v=m[0],y=m[1],w=h.get("id"),x=f.staffs,C=c.loading,k=c.meetingTitle;T(_(E().mark((function D(){var e,t,o,a,u,s,c,f,p,h,m,v,y,g,b,C,k,_,q,S,P,T,N,A,j,M,L,R,Z;return E().wrap((function(E){for(;;)switch(E.prev=E.next){case 0:if((0,i.I)({dispatch:d,name:"meetingId",value:w}),!w){E.next=19;break}return(0,i.I)({dispatch:d,name:"loading",value:!0}),E.next=5,(0,l.e5)({method:"GET"},w);case 5:y=E.sent,g=y.data,b=[],Array.isArray(null==g||null===(e=g.data)||void 0===e?void 0:e.locations)&&(null==g||null===(C=g.data)||void 0===C||null===(k=C.locations)||void 0===k||k.map((function(e){b.push(e.location_type)}))),_=10,q=0,null!=g&&null!==(t=g.data)&&void 0!==t&&t.duration&&(_="hr"==(null==g||null===(S=g.data)||void 0===S||null===(P=S.duration)||void 0===P?void 0:P.split(" ")[1])?60*+(null==g||null===(T=g.data)||void 0===T?void 0:T.duration.split(" ")[0]):+(null==g||null===(N=g.data)||void 0===N?void 0:N.duration.split(" ")[0])),null!=g&&null!==(o=g.data)&&void 0!==o&&o.buffer_time&&(q="hr"==(null==g||null===(A=g.data)||void 0===A||null===(j=A.buffer_time)||void 0===j?void 0:j.split(" ")[1])?60*+(null==g||null===(M=g.data)||void 0===M?void 0:M.buffer_time.split(" ")[0]):+(null==g||null===(L=g.data)||void 0===L?void 0:L.buffer_time.split(" ")[0])),R=null==g||null===(a=g.data)||void 0===a||null===(u=a.staff)||void 0===u?void 0:u.map((function(e){return e.id})),Z=null==g||null===(s=g.data)||void 0===s?void 0:s.staff,(0,n.Ne)({dispatch:d,meeting:null==g?void 0:g.data,staffs:x}),(0,i.I)({dispatch:d,name:"meeting",value:O({},null==g?void 0:g.data)}),d({type:r.N.SET_META_DATA_WITH_MEETING,payload:{addressType:b,meetingType:null==g||null===(c=g.data)||void 0===c?void 0:c.type,meetingTitle:"Update ".concat(null==g||null===(f=g.data)||void 0===f?void 0:f.type," Meeting"),meetingDuration:_,meetingBufferTime:q,selectedStaffIds:R,selectedStaff:Z,meetingStartDate:null==g||null===(p=g.data)||void 0===p||null===(h=p.availability)||void 0===h?void 0:h.start,meetingEndDate:null==g||null===(m=g.data)||void 0===m||null===(v=m.availability)||void 0===v?void 0:v.end}}),(0,i.I)({dispatch:d,name:"loading",value:!1});case 19:case"end":return E.stop()}}),D)}))),[x]),T((function(){return function(){d({type:r.N.CLEAR_MEETING_DATA_FOR_UPDATE,payload:null})}}),[]);var S=function(e){p({values:e,id:w})},A=function(e){},R=[{label:L("Basic info","timetics"),key:"basicinfo",children:P.createElement(g.Z,{onFinish:S,onFinishFailed:A,current:v,setCurrent:y})},{label:L("Time and availability","timetics"),key:"availability",children:P.createElement(b.Z,{onFinishFailed:A,saveUpdate:S,current:v,setCurrent:y})}];return C?P.createElement(t.Z,{tip:L("Loading...","timetics"),msg:L("Please Wait.","timetics"),desc:L("Loader will vanish after all data load.","timetics"),type:"info",size:"large",wrapperClassName:"tt-spinner-wrapper"}):P.createElement(P.Fragment,null,P.createElement("div",{className:"tt-container-wrapper"},P.createElement(M,{level:3,className:"tt-meeting-type"},k),P.createElement("div",{className:"tt-form-container"},P.createElement(j,{defaultActiveKey:"general",size:"large",items:R}))))};var D=o(8494);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(S){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new k(o||[]);return r(a,"_invoke",{value:E(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Z(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return q()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=e.iterator[t.method];if(undefined===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=undefined,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}return{next:q}}function q(){return{value:undefined,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function o(){for(;n.length;){var e=n.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),f}},e}function F(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){F(i,r,o,a,l,"next",e)}function l(e){F(i,r,o,a,l,"throw",e)}a(undefined)}))}}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n["return"]||n["return"]()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var U=window.React,z=U.useState,Y=U.useEffect,$=window.antd,W=$.Skeleton,G=$.Form,K=$.Button,Q=$.message,X=wp.i18n.__;const J=function(){var e=V(z(!1),2),t=e[0],n=(e[1],V(z(),2)),r=n[0],o=n[1],i=V(z(),2),a=i[0],u=i[1],f=V(z(!1),2),d=f[0],p=f[1],h=function(){var e=H(I().mark((function t(e,n){var r;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,l.MY)({method:"GET",params:{per_page:e,paged:n}});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(t,n){return e.apply(this,arguments)}}();Y(H(I().mark((function v(){var e,t,n,r;return I().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,h(-1,1);case 2:return n=i.sent,r=null==n||null===(e=n.data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.items,o(r),i.abrupt("return",(function(){}));case 6:case"end":return i.stop()}}),v)}))),[]);var m=function(){var e=H(I().mark((function t(e){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(null==e?void 0:e.meeting),p(!0);case 2:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}();return React.createElement(React.Fragment,null,t?React.createElement(W,{active:!0}):React.createElement(React.Fragment,null,React.createElement("div",null,React.createElement(D.Z,{title:X("Shortcodes","timetics")})),React.createElement("div",{className:"tt-shortcode-list tt-container-wrapper"},React.createElement(G,{className:"tt-form-container",name:"staff_create_form",layout:"vertical",autoComplete:"off",onFinish:m},React.createElement(s.Z,{label:X("Select Meeting","timetics"),key:"meeeting",options:r,fieldNames:{label:"name",value:"id"},name:"meeting",showSearch:!0,allowClear:!0,placeholder:X("Please Select Your Meeting","timetics"),filterOption:function(e,t){var n;return(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"").includes(e)},rules:[{required:!0,message:X("Meeting title is required","timetics")}]}),React.createElement(K,{type:"primary",htmlType:"submit",size:"large",className:"tt-mb-20",loading:t},X("Generate Shortcode","timetics")),d&&React.createElement(c.Z,{type:"text",size:"middle",readOnly:!0,onClick:function(e){navigator.clipboard.writeText(e.target.value),Q.success({content:"Copied the shortcode",style:{marginTop:"5vh"}})},value:"[timetics-booking-form id=".concat(a,"]"),tooltip:X("Copy the shortcode and paste where you want to show booking form","timetics")})))))};var ee=React.lazy((function(){return o.e(741).then(o.bind(o,4741))})),te=React.lazy((function(){return o.e(251).then(o.bind(o,9251))})),ne=React.lazy((function(){return Promise.all([o.e(582),o.e(179)]).then(o.bind(o,1179))})),re=React.lazy((function(){return Promise.all([o.e(939),o.e(623)]).then(o.bind(o,1623))})),oe=React.lazy((function(){return Promise.all([o.e(939),o.e(434)]).then(o.bind(o,5434))})),ie=React.lazy((function(){return Promise.all([o.e(20),o.e(165)]).then(o.bind(o,4165))})),ae=React.lazy((function(){return o.e(332).then(o.bind(o,7332))})),le=React.lazy((function(){return o.e(140).then(o.bind(o,8140))})),ue=React.lazy((function(){return o.e(678).then(o.bind(o,1678))})),se=React.lazy((function(){return Promise.all([o.e(582),o.e(121)]).then(o.bind(o,3121))})),ce=React.lazy((function(){return o.e(621).then(o.bind(o,4621))})),fe=React.lazy((function(){return Promise.all([o.e(649),o.e(646)]).then(o.bind(o,9646))})),de=React.lazy((function(){return Promise.all([o.e(582),o.e(649),o.e(223)]).then(o.bind(o,5223))})),pe=React.lazy((function(){return Promise.all([o.e(20),o.e(458)]).then(o.bind(o,4458))})),he=React.lazy((function(){return Promise.all([o.e(20),o.e(377)]).then(o.bind(o,5377))}));const me=(0,e.cP)([{path:"/",element:React.createElement(ee,null)},{path:"meetings",element:React.createElement(ie,null),children:[{path:"",element:React.createElement(he,null)},{path:"create-new",element:React.createElement(pe,null)},{path:"update",element:React.createElement(R,null)}]},{path:"/staff",element:React.createElement(te,null),children:[{path:"",element:React.createElement(ne,null)},{path:"create-new",element:React.createElement(re,null)},{path:"update",element:React.createElement(oe,{staffPage:!0})}]},{path:"/bookings",element:React.createElement(ce,null),children:[{path:"",element:React.createElement(de,null)},{path:"create-new",element:React.createElement(fe,null)},{path:"update",element:React.createElement(fe,null)}]},{path:"/customers",element:React.createElement(ue,null),children:[{path:"",element:React.createElement(se,null)}]},{path:"/seat-plan",element:React.createElement(ae,null)},{path:"/settings",element:React.createElement(le,null)},{path:"/my-profile",element:React.createElement(oe,{staffPage:!1})},{path:"/shortcodes",element:React.createElement(J,null)}]);var ve=o(9250),ye=(o(6750),window.React),ge=ye.Suspense,be=(ye.useEffect,wp.i18n.__);const we=function(){return ye.createElement(a.Z,null,ye.createElement(ge,{fallback:ye.createElement(t.Z,{tip:be("Loading...","timetics"),msg:be("Please Wait.","timetics"),desc:be("Loader will vanish after the page load.","timetics"),type:"info",size:"large",wrapperClassName:"tt-spinner-wrapper"})},ye.createElement(ve.pG,{router:me})))};const Ee=function(e){var t=jQuery,n=t("#toplevel_page_"+e),r=window.location.href,o=r.substr(r.indexOf("admin.php"));n.on("click","a",(function(){var e=t(this);t("ul.wp-submenu li",n).removeClass("current"),e.hasClass("wp-has-submenu")?t("li.wp-first-item",n).addClass("current"):e.parents("li").addClass("current")})),t("ul.wp-submenu a",n).each((function(e,n){t(n).attr("href")!==o||t(n).parent().addClass("current")}))};var xe=window.React,Oe=window.ReactDOM,Ce=document.getElementById("time_tics_dashboard");Ce&&Oe.render(xe.createElement(we,null),Ce),Ee("timetics")})()})(); |