(()=>{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=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"; /** * @remix-run/router v1.0.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tT,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{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(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 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(r0}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{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;ae.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{"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{"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=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;q3&&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=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;o1&&(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;n2&&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=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.leftn.right}function Tn(e,t,n){return e.topn.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.widthn.bottom||e.top+t.height=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+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__;n0},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);n0},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 */ 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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;a1&&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;nh(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)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;a1?t-1:0),r=1;r=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()\[\]\\.,;:\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&&ue.max?r.push(co(o.messages[s].max,e.fullField,e.max)):a&&l&&(ue.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;a3&&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=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;n0&&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=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;r0&&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{"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{"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{"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;te.length)&&(t=e.length);for(var n=0,r=new Array(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;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&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{"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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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{"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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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{"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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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);n1?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);ne.length)&&(t=e.length);for(var n=0,r=new Array(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;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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);n1&&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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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{"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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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);n0,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);nc[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; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"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=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()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)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-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{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{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{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{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{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{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{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++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.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{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{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{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){ /*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */ 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;t1)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;o0&&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&&(r0&&(e1&&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;n1&&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("
"+o+"


");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=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;n0){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:e1?t-1:0),r=1;r1&&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=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=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=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;n1&&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?(u0&&(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.tops.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;n0&&(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()=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;g0){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;n1&&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-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;n1&&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;nr&&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;n0&&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;t1&&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(ea?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;it.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=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;fr)m+=2;else if(E>i)h+=2;else if(p&&(C=l+d-b)>=0&&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]r)y+=2;else if(k>i)v+=2;else if(!p){var _;if((w=l+d-x)>=0&&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;o0&&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;i0&&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;n1?(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=0&&r>=t-1;r--)if(r+1=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 +\<"),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-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 '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.leftr.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','','',''].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;n0&&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-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-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;n0||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=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},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;n0&&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=['','
','','',"
"].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;o1&&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;a1}));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{"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{"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{"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; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */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;n1)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