@wavv/ui 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +3 -3
- package/build/cjs/types/components/Spinner.d.ts +3 -1
- package/build/cjs/types/index.d.ts +1 -0
- package/build/cjs/types/utils/index.d.ts +1 -0
- package/build/cjs/types/utils/numberWithCommas.d.ts +2 -0
- package/build/esm/index.js +3 -3
- package/build/esm/types/components/Spinner.d.ts +3 -1
- package/build/esm/types/index.d.ts +1 -0
- package/build/esm/types/utils/index.d.ts +1 -0
- package/build/esm/types/utils/numberWithCommas.d.ts +2 -0
- package/build/index.d.ts +6 -2
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
23
|
*/
|
|
24
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,u){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,l,typeof e[l]),f=e[l](n,l,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var p=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=p(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=l(e,n,t)),a(t)||(o=l(e,n,t));var i=p(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},l=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},p=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),u=c?c.length:0,l=f(t),p=d(l,u);return l.length-p},d=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);const go=t=>{var{size:n,color:r,center:o,background:i,margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l,position:f,top:p,bottom:d,right:h,left:g}=t,y=M(t,["size","color","center","background","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const v={margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l,position:f,top:p,bottom:d,right:h,left:g};return e(yo,Object.assign({},v,{center:o,background:i},{children:e(mo,{children:e(Ln,Object.assign({},y,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},yo=Oe.div({width:"max-content",height:"max-content"},(({center:e})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),Nn,In),vo=k({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),mo=Oe.div({animation:`${vo} 1s linear infinite`,width:"max-content",height:"max-content"}),bo=(e,t,n=!0)=>{const[r,o]=v(!1);return{focused:r,handleFocus:t=>{n&&o(!0),e&&e(t)},handleBlur:e=>{o(!1),t&&t(e)}}},wo=e=>!!e||null!=e&&""!==e,xo=Oe.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:u,pointer:l})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:0,borderBottomRightRadius:0,cursor:l?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),Mn,Nn),_o=Oe.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Oo=Oe.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0})));var Co={Container:xo,Wrapper:_o,Label:Oo,useInputFocus:bo,isInputFilled:wo};const So=(t,n)=>{const r=e=>h(e,n);return"string"==typeof t?e(Ln,Object.assign({name:t,inheritColor:!0},n)):"object"==typeof t&&"props"in t&&"trigger"in t.props?h(t,{trigger:r(t.props.trigger)}):"object"==typeof t&&"props"in t?r(t):e(Ln,Object.assign({},t,n))},ko=f(((n,r)=>{var{id:o,label:i,placeholder:a,placeholderColor:s,description:c,isLoading:u,search:l,phone:f,textOnly:p,iconLeft:d,iconRight:h,invalid:b,borderless:x,borderRadius:_,borderColor:O,backgroundColor:C,fontSize:S,width:k,height:A,margin:j,marginLeft:T,marginRight:P,marginTop:D,marginBottom:N,containerRef:I,value:R,disabled:L,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:U,onFocus:K,onBlur:$}=n,W=M(n,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Z}=bo(K,$,!F&&!B),Y=g(null),{color:X}=E(),[J,Q]=v(p?50:void 0),ee=g(null);m((()=>{if(p&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[p,R,a,ee]);const te=p?R||a:R,ne=R&&U&&!u,re=()=>{q||G()},oe=()=>{q&&Z()};w(r,(()=>({focus:re,blur:oe,hasFocus:q}))),y((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return t(xo,Object.assign({ref:I,invalid:b,textOnly:p,borderless:x||p,borderRadius:_,borderColor:O,backgroundColor:C,width:k,height:A,margin:j,marginLeft:T,marginRight:P,marginTop:D,marginBottom:N,focused:q,disabled:L,hasLabel:!!i,onClick:e=>{F||B||re(),V&&V(e)},pointer:z,readOnly:B},{children:[l&&e(Ln,{name:"search",marginRight:8,inheritColor:!0}),d&&So(d,{marginRight:8}),t(_o,Object.assign({readOnly:B||F},{children:[p&&e(To,Object.assign({ref:ee,fontSize:S},{children:te})),i&&!p&&e(Oo,Object.assign({htmlFor:o||i,filled:wo(R),focused:q,disabled:L},{children:i})),e(Eo,Object.assign({id:o||i,ref:Y,value:R,placeholder:a,placeholderColor:s,onChange:e=>{if(f){const{value:t}=e.target,n=ho.normalize(t);if(n.length>10)return;const r=ho.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:G,onBlur:Z,disabled:L,hide:!(wo(R)||!i||q||p),width:J,fontSize:S},W))]})),h&&So(h),u&&e(go,{}),ne&&e(Ao,Object.assign({onClick:U},{children:e(Ln,{name:"close-circle-outline",color:X.brand})})),c&&e(jo,Object.assign({invalid:b},{children:c}))]}))})),Eo=Oe.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),Ao=Oe.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),jo=Oe.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"}))),To=Oe.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Po=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:a=200,offsetY:s,offsetX:c,centerY:u,centerX:l,direction:f})=>{const[p,d]=v(),h=g(null);m((()=>{const{current:e}=r||h;if(e&&f){const{scrollWidth:t,scrollHeight:n}=e,r="left"===f||"right"===f;d((r?t:n<a?n:a)+((r?c:s)||4))}}),[r,f]);const y=e(Mo,Object.assign({id:t,ref:r||h,offsetX:c,offsetY:s,width:i,maxHeight:a,centerY:u,centerX:l,optionsPosition:{direction:f,amount:p}},{children:n}));if(o){const e=document.querySelector(o);return e?j.createPortal(y,e):y}return y};Po.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:c,accented:u}=t,l=M(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e(Do,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:c,accented:u,tabIndex:a?-1:0},l,{children:n}))};const Mo=Oe.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Do=Oe.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),No=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Io=(n,r,o,i,a)=>{const{selected:s}=a,c=((n,r,o,i)=>{if(n&&n.length>0)return No(n,i).map((n=>{const i=n.onClick?e=>{n.onClick&&n.onClick(e),o()}:e=>r(n,e);return t(Po.Item,Object.assign({id:n.id,onClick:i},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(Ro,{children:n.header}),e(Lo,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]}),n.id)}));return[]})(n,o,i,M(a,["selected"])),u=((e,t,n)=>e?po(e).map((e=>e?h(e,{setValue:t,close:n}):null)):[])(r,o,i),l=[...c,...u];return po(l).map(((e,t)=>e?h(e,{selected:s===t}):null))},Ro=Oe.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Lo=Oe.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Bo=e=>p.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Fo=n=>{var{onChange:r,onTextChange:o,afterShow:i,afterHide:a,onFocus:s,onBlur:c,onError:u,placeholder:l,placeholderColor:f,value:p,options:d,children:h,borderless:m,borderColor:b,backgroundColor:w,hideIcon:x,clearOnSelect:_,textOnly:O,width:C,height:S,isLoading:k,margin:A,marginTop:j,marginBottom:T,marginRight:P,marginLeft:D,label:N,id:I,name:R,trigger:L,centerY:B,centerX:F,offsetY:z,offsetX:H,direction:V,fontSize:U,description:K,disabled:$,invalid:W,search:q,filter:G,restrictInput:Z,inputRef:Y,optionsParent:X}=n,J=M(n,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Q,ee]=v(""),[te,ne]=v(""),[re,oe]=v(!1),[ie,ae]=v(!1),[se,ce]=v(!1),ue=g(null),{input:le}=E(),fe={margin:A,marginTop:j,marginBottom:T,marginRight:P,marginLeft:D},pe=e=>{e&&e.stopPropagation(),!re&&i&&i(),re&&a&&a(),oe((e=>!e))};y((()=>{var e;if(re&&q){null===(e=(Y||ue).current)||void 0===e||e.focus()}}),[re,q]),y((()=>{u&&u(se)}),[se]),y((()=>{o&&o(te)}),[te]);const de=Mt(pe,re,X?[X,`${X} *`]:void 0),he=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},ge=e=>{const t=be().find((t=>{let n=he(t.label,e);return!n&&"id"in t&&(n=he(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=he(t.value,e)),n}));return t},ye=e=>"function"==typeof Z?!Z(e):Z,ve=e=>me(null,e),me=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ye(e))return ge(e)||null;return{id:to(),label:e,value:e}})(e);const t=ye(e);null===n&&t&&(o=!0)}else n=e;re&&pe(t),ee((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?ce(!0):(se&&ce(!1),_&&ee(""),ne(""))};y((()=>{""===p&&ve()}),[p]);const be=()=>{const e=po(h).map((e=>{const t=e;let n=t.props.displayText||"";return!N&&t.props.children&&(n=Bo(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...No(d||[],{search:q,filter:G,inputText:te}),...e]},we={options:be(),select:me,open:pe,close:pe,searchText:q?te:void 0,isOpen:re,isFocused:ie},[xe,_e]=Lt(we),Oe=Io(d||[],h,me,pe,{selected:xe,search:q,filter:G,inputText:te}),Ce=re?"caret-up":"caret-down",Se=O&&!$?f||le.color.default:void 0,ke=M(J,["onClear","phone"]);return e(zo,Object.assign({textOnly:O,altTrigger:!!L,width:C,height:S,focused:ie,search:q},fe,{children:t(Ho,Object.assign({ref:de},{children:[L?e(Vo,Object.assign({id:I,onClick:pe,tabIndex:0,onFocus:()=>ae(!0),onBlur:()=>ae(!1)},{children:L})):e(Ko,Object.assign({shake:se},{children:e(ko,Object.assign({},ke,{ref:Y||ue,id:I,name:R,label:N,fontSize:U,pointer:!0,preventFocus:!q,value:te||p||Q,placeholder:l||"Select",placeholderColor:Se,iconRight:x||k?void 0:Ce,borderless:m,borderColor:b,backgroundColor:w,isLoading:k,textOnly:O,description:K,disabled:$,invalid:se||W,onClick:pe,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Y||ue).current)||void 0===t?void 0:t.hasFocus;q?(ne(n),!re&&r&&oe(!0),se&&ce(!1)):n||ve(e);const o=ge(n),i=ye(n),a=""===n||i&&!r;o&&!(q&&(!i||r))?me(o,e):q&&!a||ve(e)},onFocus:e=>{ae(!0),s&&s(e)},onBlur:e=>{var t;if(ae(!1),c&&c(e),q&&te&&e){const{relatedTarget:n}=e;(null===(t=null==_e?void 0:_e.current)||void 0===t?void 0:t.contains(n))||me(te,e)}}}))})),re&&Oe.length>0&&e(Po,Object.assign({containerRef:_e,parentSelector:X,width:!L&&!O||X?"100%":void 0,centerY:B,centerX:F,offsetY:z,offsetX:H,direction:V},{children:Oe}))]}))}))};Fo.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:u,id:l})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:l,label:n||Bo(i)||"",value:t};r&&r(o,e)};return e(Po.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const zo=Oe.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),Mn,Nn),Ho=Oe.div({position:"relative",width:"100%",height:"inherit"}),Vo=Oe.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),Uo=k({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Ko=Oe.div((({shake:e})=>({"& input":{animation:e?`${Uo} .5s linear`:void 0}}))),$o=t=>{var{children:n,disabled:r,outline:o,size:i,small:a,large:s,secondary:c,negative:u,positive:l,caution:f,collapse:d}=t,g=M(t,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(n){const t=p.count(n);return e(Wo,Object.assign({},g,{children:p.map(n,((e,n)=>{let p;if(t>1&&(p=0===n?"right":n===t-1?"left":"middle"),e){let t=e;"trigger"in e.props&&(t=e.props.trigger);const n=t,g=a||n.props.small,y=s||n.props.large,v=i||n.props.size,m=r||n.props.disabled,b=o||n.props.outline,w=c||n.props.secondary,x=u||n.props.negative,_=l||n.props.positive,O=f||n.props.caution,C=d||n.props.collapse,S=h(t,{joined:p,size:v,small:g,large:y,disabled:m,outline:b,secondary:w,negative:x,positive:_,caution:O,collapse:C});return"trigger"in e.props?h(e,{trigger:S}):S}return null}))}))}return null},Wo=Oe.div((({width:e})=>({display:"inline-flex",width:e})),Nn),qo=({size:t})=>e(Go,Object.assign({className:"button-loader"},{children:e(go,{size:t})})),Go=Oe.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),Zo=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=M(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e(Xo,Object.assign({options:i},a,{children:s})):e(Yo,Object.assign({},a,{children:s}))};Zo.Group=$o;const Yo=n=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:c,size:u,small:l,large:f,isLoading:p,collapse:d,backgroundColor:h,color:g,type:y,animation:v}=n,m=M(n,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation"]);const{button:b}=E(),w=i&&(!r||d),x="right"===a;let _=u||"medium";l?_="small":f&&(_="large");const O=b[_],{iconSize:C}=O,S=d&&i;return t(Jo,Object.assign({},m,{type:y||"button",size:_,iconOnly:w,iconRight:x,joined:c,onClick:o,isLoading:p,color:g,backgroundColor:h,animation:v},{children:[i?e(Ln,{size:C,name:i,marginRight:w||x?0:4,marginLeft:!w&&x?4:0,color:s,inheritColor:!s}):null,!S&&e("span",{children:r}),p&&e(qo,{size:C})]}))},Xo=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:c,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:m,isLoading:b,direction:w,collapse:x,width:_}=n,O=M(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","size","small","large","disabled","isLoading","direction","collapse","width"]);const[C,S]=v(!1),k={secondary:c,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:m},E=u((()=>`button-dropdown-${to()}`),[]);return e(Qo,Object.assign({id:E},{children:t($o,Object.assign({width:x?void 0:_},{children:[e(Yo,Object.assign({},k,O,{width:_&&!x?"100%":void 0,collapse:x,isLoading:b,onClick:e=>{i&&i(e)}},{children:e(ei,{children:r})})),e(Fo,{options:o,direction:w,optionsParent:`#${E}`,afterShow:()=>{a&&a(),S(!0)},afterHide:()=>{s&&s(),S(!1)},trigger:e(Yo,Object.assign({},k,{icon:C?"caret-up":"caret-down",preventPointerEvents:b,tabIndex:-1}))})]}))}))},Jo=Oe.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:u,animation:l})=>{const f=i||a&&!o,p=n[r],d=c||"max-content",{height:h,font:g,padding:y,iconOnlyPadding:v}=p,m=u||h,b=a||f?v:y;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:d,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:l,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,iconOnly:n,outline:r,negative:o,positive:i,caution:a,secondary:s,disabled:c,subtle:u,link:l})=>{const{button:f,size:p}=e;let d=f.primary;u?d=f.subtle:l?d=f.link:c?d=f.disabled:o?d=f.negative:i?d=f.positive:a?d=f.caution:s&&(d=f.secondary);const h=r?d.outlineBackground:d.background;let g=r?d.outlineColor:d.color;if(l||u){let e=f.subtle;l&&(e=f.link),c?g=f.disabled.color:o?g=e.negativeColor:i?g=e.positiveColor:a?g=e.cautionColor:s&&(g=e.secondaryColor)}const y="left"===t||"middle"===t,v="right"===t||"middle"===t,m=n?p.xs:p.sm;return{backgroundColor:h.default,color:g.default,border:r&&!l?"1px solid":"none",borderColor:d.border.default,"&:hover":{backgroundColor:h.hover,color:g.hover,borderColor:r&&!c?d.border.hover:void 0},"&:active":{backgroundColor:h.active,color:g.active,borderColor:r&&!c?d.border.active:void 0},"&:disabled":{backgroundColor:u?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:v?0:void 0,borderBottomRightRadius:v?0:void 0,paddingLeft:y?m:void 0,paddingRight:v?m:void 0,borderRight:v?`1px solid ${r?d.border.default:d.divider}`:void 0,borderLeft:y?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?Mr:Nr,i="dark"===e?Nr:Mr;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),Nn),Qo=Oe.div({display:"inline-flex",flexDirection:"column",position:"relative"}),ei=Oe.div({marginRight:8}),ti=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:c}=t,u=M(t,["value","max","step","width","height","disabled","onChange"]);return e(ri,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;c&&c(+t)},step:o,width:i,height:a,disabled:s,readOnly:!c}))},ni=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),ri=Oe.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":ni(e,o||i),"&::-moz-range-thumb":ni(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),Nn),oi=f(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:c,small:u,collapsed:l,hideSliderOnStop:f,hideTimeOnStop:p,fontSizeTitle:d,fontSizeTime:h,onPlay:m,onPause:b,onStop:x}=n,_=M(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[O,C]=v(!1),[S,k]=v(!0),[E,A]=v(0),[j,T]=v(0),[P,D]=v(""),[N,I]=v(""),R=g(null),L=()=>{const{current:e}=R;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},B=()=>{const{current:e}=R;e&&e.pause()},F=()=>{const{current:e}=R;e&&e.load()};w(r,(()=>({play:L,pause:B,stop:F})),[R,O]);const z=e=>{C(!1),k(!0),x&&x(e)};y((()=>{(()=>{const{current:e}=R;!!e&&e.paused})()}),[O]);const H=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},V=S&&f,U=S&&p;return t(ii,Object.assign({width:a},_,{children:[e(Zo,{outline:!0,small:u,icon:O?"pause":"play",onClick:()=>{O?B():L()},marginRight:8}),!l&&t(ai,Object.assign({alignDataTop:"top"===s},{children:[!V&&e(ti,{value:E,max:j,step:.1,onChange:e=>{(null==R?void 0:R.current)&&(R.current.currentTime=e)}}),t(si,Object.assign({alignTop:"top"===s,noSlider:V,relative:c||V},{children:[i?e(ci,Object.assign({fontSize:d},{children:i})):e("div",{}),!U&&t(ci,Object.assign({secondary:!0,fontSize:h},{children:[P&&!S?`${P} / `:"",N]}))]}))]})),t("audio",Object.assign({ref:R,onPlay:e=>{C(!0),k(!1),m&&m(e)},onPause:e=>{C(!1),b&&b(e)},onEmptied:z,onEnded:z,onTimeUpdate:()=>{const{current:e}=R;if(e){const{currentTime:t}=e,n=H(t);A(t),D(n)}},onDurationChange:()=>{const{current:e}=R;if(e){const{duration:t}=e,n=H(t);T(t),I(n)}}},{children:[e("track",{kind:"captions"}),e("source",{src:o})]}))]}))})),ii=Oe.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),Nn),ai=Oe.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),si=Oe.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),ci=Oe.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var ui={};
|
|
24
|
+
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,u){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,l,typeof e[l]),f=e[l](n,l,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var p=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=p(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=l(e,n,t)),a(t)||(o=l(e,n,t));var i=p(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},l=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},p=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),u=c?c.length:0,l=f(t),p=d(l,u);return l.length-p},d=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);const go=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,position:p,top:d,bottom:h,right:g,left:y}=t,v=M(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const m={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,position:p,top:d,bottom:h,right:g,left:y};return e(yo,Object.assign({},m,{center:o,background:i,zIndex:a},{children:e(mo,{children:e(Ln,Object.assign({},v,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},yo=Oe.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),Nn,In),vo=k({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),mo=Oe.div({animation:`${vo} 1s linear infinite`,width:"max-content",height:"max-content"}),bo=(e,t,n=!0)=>{const[r,o]=v(!1);return{focused:r,handleFocus:t=>{n&&o(!0),e&&e(t)},handleBlur:e=>{o(!1),t&&t(e)}}},wo=e=>!!e||null!=e&&""!==e,xo=Oe.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:u,pointer:l})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:null!=n?n:0,borderBottomRightRadius:null!=n?n:0,cursor:l?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),Mn,Nn),_o=Oe.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Oo=Oe.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0})));var Co={Container:xo,Wrapper:_o,Label:Oo,useInputFocus:bo,isInputFilled:wo};const So=(t,n)=>{const r=e=>h(e,n);return"string"==typeof t?e(Ln,Object.assign({name:t,inheritColor:!0},n)):"object"==typeof t&&"props"in t&&"trigger"in t.props?h(t,{trigger:r(t.props.trigger)}):"object"==typeof t&&"props"in t?r(t):e(Ln,Object.assign({},t,n))},ko=f(((n,r)=>{var{id:o,label:i,placeholder:a,placeholderColor:s,description:c,isLoading:u,search:l,phone:f,textOnly:p,iconLeft:d,iconRight:h,invalid:b,borderless:x,borderRadius:_,borderColor:O,backgroundColor:C,fontSize:S,width:k,height:A,margin:j,marginLeft:T,marginRight:P,marginTop:D,marginBottom:N,containerRef:I,value:R,disabled:L,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:U,onFocus:K,onBlur:$}=n,W=M(n,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Z}=bo(K,$,!F&&!B),Y=g(null),{color:X}=E(),[J,Q]=v(p?50:void 0),ee=g(null);m((()=>{if(p&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[p,R,a,ee]);const te=p?R||a:R,ne=R&&U&&!u,re=()=>{q||G()},oe=()=>{q&&Z()};w(r,(()=>({focus:re,blur:oe,hasFocus:q}))),y((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return t(xo,Object.assign({ref:I,invalid:b,textOnly:p,borderless:x||p,borderRadius:_,borderColor:O,backgroundColor:C,width:k,height:A,margin:j,marginLeft:T,marginRight:P,marginTop:D,marginBottom:N,focused:q,disabled:L,hasLabel:!!i,onClick:e=>{F||B||re(),V&&V(e)},pointer:z,readOnly:B},{children:[l&&e(Ln,{name:"search",marginRight:8,inheritColor:!0}),d&&So(d,{marginRight:8}),t(_o,Object.assign({readOnly:B||F},{children:[p&&e(To,Object.assign({ref:ee,fontSize:S},{children:te})),i&&!p&&e(Oo,Object.assign({htmlFor:o||i,filled:wo(R),focused:q,disabled:L},{children:i})),e(Eo,Object.assign({id:o||i,ref:Y,value:R,placeholder:a,placeholderColor:s,onChange:e=>{if(f){const{value:t}=e.target,n=ho.normalize(t);if(n.length>10)return;const r=ho.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:G,onBlur:Z,disabled:L,hide:!(wo(R)||!i||q||p),width:J,fontSize:S},W))]})),h&&So(h),u&&e(go,{}),ne&&e(Ao,Object.assign({onClick:U},{children:e(Ln,{name:"close-circle-outline",color:X.brand})})),c&&e(jo,Object.assign({invalid:b},{children:c}))]}))})),Eo=Oe.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),Ao=Oe.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),jo=Oe.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"}))),To=Oe.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Po=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:a=200,offsetY:s,offsetX:c,centerY:u,centerX:l,direction:f})=>{const[p,d]=v(),h=g(null);m((()=>{const{current:e}=r||h;if(e&&f){const{scrollWidth:t,scrollHeight:n}=e,r="left"===f||"right"===f;d((r?t:n<a?n:a)+((r?c:s)||4))}}),[r,f]);const y=e(Mo,Object.assign({id:t,ref:r||h,offsetX:c,offsetY:s,width:i,maxHeight:a,centerY:u,centerX:l,optionsPosition:{direction:f,amount:p}},{children:n}));if(o){const e=document.querySelector(o);return e?j.createPortal(y,e):y}return y};Po.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:c,accented:u}=t,l=M(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e(Do,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:c,accented:u,tabIndex:a?-1:0},l,{children:n}))};const Mo=Oe.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Do=Oe.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),No=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Io=(n,r,o,i,a)=>{const{selected:s}=a,c=((n,r,o,i)=>{if(n&&n.length>0)return No(n,i).map((n=>{const i=n.onClick?e=>{n.onClick&&n.onClick(e),o()}:e=>r(n,e);return t(Po.Item,Object.assign({id:n.id,onClick:i},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(Ro,{children:n.header}),e(Lo,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]}),n.id)}));return[]})(n,o,i,M(a,["selected"])),u=((e,t,n)=>e?po(e).map((e=>e?h(e,{setValue:t,close:n}):null)):[])(r,o,i),l=[...c,...u];return po(l).map(((e,t)=>e?h(e,{selected:s===t}):null))},Ro=Oe.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Lo=Oe.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Bo=e=>p.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Fo=n=>{var{onChange:r,onTextChange:o,afterShow:i,afterHide:a,onFocus:s,onBlur:c,onError:u,placeholder:l,placeholderColor:f,value:p,options:d,children:h,borderless:m,borderColor:b,backgroundColor:w,hideIcon:x,clearOnSelect:_,textOnly:O,width:C,height:S,isLoading:k,margin:A,marginTop:j,marginBottom:T,marginRight:P,marginLeft:D,label:N,id:I,name:R,trigger:L,centerY:B,centerX:F,offsetY:z,offsetX:H,direction:V,fontSize:U,description:K,disabled:$,invalid:W,search:q,filter:G,restrictInput:Z,inputRef:Y,optionsParent:X}=n,J=M(n,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Q,ee]=v(""),[te,ne]=v(""),[re,oe]=v(!1),[ie,ae]=v(!1),[se,ce]=v(!1),ue=g(null),{input:le}=E(),fe={margin:A,marginTop:j,marginBottom:T,marginRight:P,marginLeft:D},pe=e=>{e&&e.stopPropagation(),!re&&i&&i(),re&&a&&a(),oe((e=>!e))};y((()=>{var e;if(re&&q){null===(e=(Y||ue).current)||void 0===e||e.focus()}}),[re,q]),y((()=>{u&&u(se)}),[se]),y((()=>{o&&o(te)}),[te]);const de=Mt(pe,re,X?[X,`${X} *`]:void 0),he=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},ge=e=>{const t=be().find((t=>{let n=he(t.label,e);return!n&&"id"in t&&(n=he(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=he(t.value,e)),n}));return t},ye=e=>"function"==typeof Z?!Z(e):Z,ve=e=>me(null,e),me=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ye(e))return ge(e)||null;return{id:to(),label:e,value:e}})(e);const t=ye(e);null===n&&t&&(o=!0)}else n=e;re&&pe(t),ee((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?ce(!0):(se&&ce(!1),_&&ee(""),ne(""))};y((()=>{""===p&&ve()}),[p]);const be=()=>{const e=po(h).map((e=>{const t=e;let n=t.props.displayText||"";return!N&&t.props.children&&(n=Bo(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...No(d||[],{search:q,filter:G,inputText:te}),...e]},we={options:be(),select:me,open:pe,close:pe,searchText:q?te:void 0,isOpen:re,isFocused:ie},[xe,_e]=Lt(we),Oe=Io(d||[],h,me,pe,{selected:xe,search:q,filter:G,inputText:te}),Ce=re?"caret-up":"caret-down",Se=O&&!$?f||le.color.default:void 0,ke=M(J,["onClear","phone"]);return e(zo,Object.assign({textOnly:O,altTrigger:!!L,width:C,height:S,focused:ie,search:q},fe,{children:t(Ho,Object.assign({ref:de},{children:[L?e(Vo,Object.assign({id:I,onClick:pe,tabIndex:0,onFocus:()=>ae(!0),onBlur:()=>ae(!1)},{children:L})):e(Ko,Object.assign({shake:se},{children:e(ko,Object.assign({},ke,{ref:Y||ue,id:I,name:R,label:N,fontSize:U,pointer:!0,preventFocus:!q,value:te||p||Q,placeholder:l||"Select",placeholderColor:Se,iconRight:x||k?void 0:Ce,borderless:m,borderColor:b,backgroundColor:w,isLoading:k,textOnly:O,description:K,disabled:$,invalid:se||W,onClick:pe,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Y||ue).current)||void 0===t?void 0:t.hasFocus;q?(ne(n),!re&&r&&oe(!0),se&&ce(!1)):n||ve(e);const o=ge(n),i=ye(n),a=""===n||i&&!r;o&&!(q&&(!i||r))?me(o,e):q&&!a||ve(e)},onFocus:e=>{ae(!0),s&&s(e)},onBlur:e=>{var t;if(ae(!1),c&&c(e),q&&te&&e){const{relatedTarget:n}=e;(null===(t=null==_e?void 0:_e.current)||void 0===t?void 0:t.contains(n))||me(te,e)}}}))})),re&&Oe.length>0&&e(Po,Object.assign({containerRef:_e,parentSelector:X,width:!L&&!O||X?"100%":void 0,centerY:B,centerX:F,offsetY:z,offsetX:H,direction:V},{children:Oe}))]}))}))};Fo.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:u,id:l})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:l,label:n||Bo(i)||"",value:t};r&&r(o,e)};return e(Po.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const zo=Oe.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),Mn,Nn),Ho=Oe.div({position:"relative",width:"100%",height:"inherit"}),Vo=Oe.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),Uo=k({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Ko=Oe.div((({shake:e})=>({"& input":{animation:e?`${Uo} .5s linear`:void 0}}))),$o=t=>{var{children:n,disabled:r,outline:o,size:i,small:a,large:s,secondary:c,negative:u,positive:l,caution:f,collapse:d}=t,g=M(t,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(n){const t=p.count(n);return e(Wo,Object.assign({},g,{children:p.map(n,((e,n)=>{let p;if(t>1&&(p=0===n?"right":n===t-1?"left":"middle"),e){let t=e;"trigger"in e.props&&(t=e.props.trigger);const n=t,g=a||n.props.small,y=s||n.props.large,v=i||n.props.size,m=r||n.props.disabled,b=o||n.props.outline,w=c||n.props.secondary,x=u||n.props.negative,_=l||n.props.positive,O=f||n.props.caution,C=d||n.props.collapse,S=h(t,{joined:p,size:v,small:g,large:y,disabled:m,outline:b,secondary:w,negative:x,positive:_,caution:O,collapse:C});return"trigger"in e.props?h(e,{trigger:S}):S}return null}))}))}return null},Wo=Oe.div((({width:e})=>({display:"inline-flex",width:e})),Nn),qo=({size:t})=>e(Go,Object.assign({className:"button-loader"},{children:e(go,{size:t})})),Go=Oe.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),Zo=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=M(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e(Xo,Object.assign({options:i},a,{children:s})):e(Yo,Object.assign({},a,{children:s}))};Zo.Group=$o;const Yo=n=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:c,size:u,small:l,large:f,isLoading:p,collapse:d,backgroundColor:h,color:g,type:y,animation:v}=n,m=M(n,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation"]);const{button:b}=E(),w=i&&(!r||d),x="right"===a;let _=u||"medium";l?_="small":f&&(_="large");const O=b[_],{iconSize:C}=O,S=d&&i;return t(Jo,Object.assign({},m,{type:y||"button",size:_,iconOnly:w,iconRight:x,joined:c,onClick:o,isLoading:p,color:g,backgroundColor:h,animation:v},{children:[i?e(Ln,{size:C,name:i,marginRight:w||x?0:4,marginLeft:!w&&x?4:0,color:s,inheritColor:!s}):null,!S&&e("span",{children:r}),p&&e(qo,{size:C})]}))},Xo=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:c,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:m,isLoading:b,direction:w,collapse:x,width:_}=n,O=M(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","size","small","large","disabled","isLoading","direction","collapse","width"]);const[C,S]=v(!1),k={secondary:c,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:m},E=u((()=>`button-dropdown-${to()}`),[]);return e(Qo,Object.assign({id:E},{children:t($o,Object.assign({width:x?void 0:_},{children:[e(Yo,Object.assign({},k,O,{width:_&&!x?"100%":void 0,collapse:x,isLoading:b,onClick:e=>{i&&i(e)}},{children:e(ei,{children:r})})),e(Fo,{options:o,direction:w,optionsParent:`#${E}`,afterShow:()=>{a&&a(),S(!0)},afterHide:()=>{s&&s(),S(!1)},trigger:e(Yo,Object.assign({},k,{icon:C?"caret-up":"caret-down",preventPointerEvents:b,tabIndex:-1}))})]}))}))},Jo=Oe.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:u,animation:l})=>{const f=i||a&&!o,p=n[r],d=c||"max-content",{height:h,font:g,padding:y,iconOnlyPadding:v}=p,m=u||h,b=a||f?v:y;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:d,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:l,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,iconOnly:n,outline:r,negative:o,positive:i,caution:a,secondary:s,disabled:c,subtle:u,link:l})=>{const{button:f,size:p}=e;let d=f.primary;u?d=f.subtle:l?d=f.link:c?d=f.disabled:o?d=f.negative:i?d=f.positive:a?d=f.caution:s&&(d=f.secondary);const h=r?d.outlineBackground:d.background;let g=r?d.outlineColor:d.color;if(l||u){let e=f.subtle;l&&(e=f.link),c?g=f.disabled.color:o?g=e.negativeColor:i?g=e.positiveColor:a?g=e.cautionColor:s&&(g=e.secondaryColor)}const y="left"===t||"middle"===t,v="right"===t||"middle"===t,m=n?p.xs:p.sm;return{backgroundColor:h.default,color:g.default,border:r&&!l?"1px solid":"none",borderColor:d.border.default,"&:hover":{backgroundColor:h.hover,color:g.hover,borderColor:r&&!c?d.border.hover:void 0},"&:active":{backgroundColor:h.active,color:g.active,borderColor:r&&!c?d.border.active:void 0},"&:disabled":{backgroundColor:u?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:v?0:void 0,borderBottomRightRadius:v?0:void 0,paddingLeft:y?m:void 0,paddingRight:v?m:void 0,borderRight:v?`1px solid ${r?d.border.default:d.divider}`:void 0,borderLeft:y?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?Mr:Nr,i="dark"===e?Nr:Mr;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),Nn),Qo=Oe.div({display:"inline-flex",flexDirection:"column",position:"relative"}),ei=Oe.div({marginRight:8}),ti=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:c}=t,u=M(t,["value","max","step","width","height","disabled","onChange"]);return e(ri,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;c&&c(+t)},step:o,width:i,height:a,disabled:s,readOnly:!c}))},ni=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),ri=Oe.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":ni(e,o||i),"&::-moz-range-thumb":ni(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),Nn),oi=f(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:c,small:u,collapsed:l,hideSliderOnStop:f,hideTimeOnStop:p,fontSizeTitle:d,fontSizeTime:h,onPlay:m,onPause:b,onStop:x}=n,_=M(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[O,C]=v(!1),[S,k]=v(!0),[E,A]=v(0),[j,T]=v(0),[P,D]=v(""),[N,I]=v(""),R=g(null),L=()=>{const{current:e}=R;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},B=()=>{const{current:e}=R;e&&e.pause()},F=()=>{const{current:e}=R;e&&e.load()};w(r,(()=>({play:L,pause:B,stop:F})),[R,O]);const z=e=>{C(!1),k(!0),x&&x(e)};y((()=>{(()=>{const{current:e}=R;!!e&&e.paused})()}),[O]);const H=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},V=S&&f,U=S&&p;return t(ii,Object.assign({width:a},_,{children:[e(Zo,{outline:!0,small:u,icon:O?"pause":"play",onClick:()=>{O?B():L()},marginRight:8}),!l&&t(ai,Object.assign({alignDataTop:"top"===s},{children:[!V&&e(ti,{value:E,max:j,step:.1,onChange:e=>{(null==R?void 0:R.current)&&(R.current.currentTime=e)}}),t(si,Object.assign({alignTop:"top"===s,noSlider:V,relative:c||V},{children:[i?e(ci,Object.assign({fontSize:d},{children:i})):e("div",{}),!U&&t(ci,Object.assign({secondary:!0,fontSize:h},{children:[P&&!S?`${P} / `:"",N]}))]}))]})),t("audio",Object.assign({ref:R,onPlay:e=>{C(!0),k(!1),m&&m(e)},onPause:e=>{C(!1),b&&b(e)},onEmptied:z,onEnded:z,onTimeUpdate:()=>{const{current:e}=R;if(e){const{currentTime:t}=e,n=H(t);A(t),D(n)}},onDurationChange:()=>{const{current:e}=R;if(e){const{duration:t}=e,n=H(t);T(t),I(n)}}},{children:[e("track",{kind:"captions"}),e("source",{src:o})]}))]}))})),ii=Oe.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),Nn),ai=Oe.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),si=Oe.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),ci=Oe.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var ui={};
|
|
25
25
|
/*!
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|
|
@@ -199,7 +199,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
199
199
|
38:14,
|
|
200
200
|
/*! Conditions:: INITIAL */
|
|
201
201
|
/*! Rule:: $ */
|
|
202
|
-
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==h_&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(g_);var y_={},v_={},m_={get exports(){return v_},set exports(e){v_=e}},b_={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},w_=function(e,t,n,r){if(!b_.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!b_[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=b_[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(w_);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(m_,v_),Object.defineProperty(y_,"__esModule",{value:!0}),y_.flip=S_;var x_=function(e){return e&&e.__esModule?e:{default:e}}(v_);function __(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,x_.default)(e.left,e.right,t),r=__(n.left,t),o=__(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(O_(r.right,o.right)?n=(0,x_.default)(r.left,o.left,t):O_(r.right,o.left)&&(n=(0,x_.default)(r.left,o.right,t)),r=__(n.left,t),o=__(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return k_(o);r.type===o.type&&C_(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(C_(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=__({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?S_(o.operator):o.operator,__(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=__({type:"MathExpression",operator:"-"===i?S_(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,__(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&C_(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=__({type:"MathExpression",operator:i,left:r.left,right:o},t),__(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=__({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=__({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),__(e,t)}return e}(e,t);case"/":return function(e,t){if(!C_(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return C_(e.left.left.type)&&C_(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,__(e.left,t)):e;if(C_(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(C_(e.left.left.type)&&C_(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(C_(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(C_(e.right.left.type)&&C_(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&C_(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?__(e.value,t):e}function O_(e,t){return e.type===t.type&&e.value===t.value}function C_(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function S_(e){return"+"===e?"-":"+"}function k_(e){return C_(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=k_(e.left),e.right=k_(e.right)),e}y_.default=__;var E_={};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=y_,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}({get exports(){return E_},set exports(e){E_=e}},E_),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(d_),r=g_,o=a(y_),i=a(E_);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Xx,Yx);var A_=N(Yx);function j_(e){return j_="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},j_(e)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(n),!0).forEach((function(t){M_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==j_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==j_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===j_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){return function(e){if(Array.isArray(e))return N_(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 N_(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 N_(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 N_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I_={widthCache:{},cacheCount:0},R_=2e3,L_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},B_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],F_="recharts_measurement_span";var z_=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(D_(e),["-",t.toLowerCase()]):[].concat(D_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],B_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},H_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Gw.isSsr)return{width:0,height:0};var n="".concat(e),r=z_(t),o="".concat(n,"-").concat(r);if(I_.widthCache[o])return I_.widthCache[o];try{var i=document.getElementById(F_);i||((i=document.createElement("span")).setAttribute("id",F_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=P_(P_({},L_),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return I_.widthCache[o]=c,++I_.cacheCount>R_&&(I_.cacheCount=0,I_.widthCache={}),c}catch(e){return{width:0,height:0}}},V_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function U_(e){return U_="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},U_(e)}function K_(){return K_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K_.apply(this,arguments)}function $_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function W_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nO(r.key),r)}}function q_(e,t){return q_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q_(e,t)}function G_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y_(e);if(t){var o=Y_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===U_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Z_(e)}(this,n)}}function Z_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y_(e){return Y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y_(e)}function X_(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J_(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 J_(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 J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q_(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 eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q_(Object(n),!0).forEach((function(t){tO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tO(e,t,n){return(t=nO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nO(e){var t=function(e,t){if("object"!==U_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==U_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===U_(t)?t:String(t)}var rO=/[ \f\n\r\t\v\u2028\u2029]+/,oO=function(e){try{var t=[];return Xs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(rO)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:H_(t,e.style).width}})),spaceWidth:e.breakAll?0:H_(" ",e.style).width}}catch(e){return null}},iO=function(e){return[{words:Xs(e)?[]:e.toString().split(rO)}]},aO=function(e,t){if((e.width||e.scaleToFit)&&!Gw.isSsr&&t){var n=oO(e);return n?function(e,t,n,r,o){var i=ac(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=oO(eO(eO({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=X_(l(h-1),2),y=g[0],v=g[1],m=X_(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):iO(e.children)}return iO(e.children)},sO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q_(e,t)}(a,O);var t,n,r,i=G_(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tO(Z_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=$_(e,V_),h=this.state.wordsByLines;if(!sc(d.x)||!sc(d.y))return null;var g,y=d.x+(ac(t)?t:0),v=d.y+(ac(n)?n:0);switch(i){case"start":g=A_("calc(".concat(l,")"));break;case"middle":g=A_("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=A_("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((ac(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),o.createElement("text",K_({},Rc(d,!0),{x:y,y:v,className:li("recharts-text",f),textAnchor:r,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,t){return o.createElement("tspan",{x:y,dy:0===t?g:u,key:t},e.words.join(p?"":" "))})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:aO(e,n)}}return null}}],n&&W_(t.prototype,n),r&&W_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();tO(sO,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var cO=Gf;var uO=function(e,t){return cO(e,t)},lO=qi;var fO=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!lO(a):n(a,s)))var s=a,c=i}return c};var pO=function(e,t){return e>t},dO=fO,hO=pO,gO=Pp;var yO=function(e){return e&&e.length?dO(e,gO,hO):void 0};var vO=function(e,t){return e<t},mO=fO,bO=vO,wO=Pp;var xO=function(e){return e&&e.length?mO(e,wO,bO):void 0},_O=As,OO=Kp,CO=qb,SO=Li;var kO=Bb,EO=function(e,t){return(SO(e)?_O:CO)(e,OO(t))};var AO=function(e,t){return kO(EO(e,t),1)};function jO(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TO(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function PO(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=jO,n=(t,n)=>jO(e(t),n),r=(t,n)=>e(t)-n):(t=e===jO||e===TO?e:MO,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function MO(){return 0}function DO(e){return null===e?NaN:+e}const NO=PO(jO).right;PO(DO).center;class IO extends Map{constructor(e,t=LO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(RO(this,e))}has(e){return super.has(RO(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function RO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function LO(e){return null!==e&&"object"==typeof e?e.valueOf():e}function BO(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const FO=Math.sqrt(50),zO=Math.sqrt(10),HO=Math.sqrt(2);function VO(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=FO?10:i>=zO?5:i>=HO?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?VO(e,t,2*n):[s,c,u]}function UO(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?VO(t,e,n):VO(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function KO(e,t,n){return VO(e=+e,t=+t,n=+n)[2]}function $O(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?KO(t,e,n):KO(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function WO(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function qO(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function GO(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?BO:function(e=jO){if(e===jO)return BO;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);GO(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(ZO(e,n,t),o(e[r],i)>0&&ZO(e,n,r);a<s;){for(ZO(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?ZO(e,n,s):(++s,ZO(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ZO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function YO(e,t,n=DO){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function XO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function JO(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const QO=Symbol("implicit");function eC(){var e=new IO,t=[],n=[],r=QO;function o(o){let i=e.get(o);if(void 0===i){if(r!==QO)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new IO;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return eC(t,n).unknown(r)},XO.apply(o,arguments),o}function tC(){var e,t,n=eC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return tC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},XO.apply(f(),arguments)}function nC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nC(t())},e}function rC(){return nC(tC.apply(null,arguments).paddingInner(1))}function oC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function aC(){}var sC=.7,cC=1/sC,uC="\\s*([+-]?\\d+)\\s*",lC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pC=/^#([0-9a-f]{3,8})$/,dC=new RegExp(`^rgb\\(${uC},${uC},${uC}\\)$`),hC=new RegExp(`^rgb\\(${fC},${fC},${fC}\\)$`),gC=new RegExp(`^rgba\\(${uC},${uC},${uC},${lC}\\)$`),yC=new RegExp(`^rgba\\(${fC},${fC},${fC},${lC}\\)$`),vC=new RegExp(`^hsl\\(${lC},${fC},${fC}\\)$`),mC=new RegExp(`^hsla\\(${lC},${fC},${fC},${lC}\\)$`),bC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wC(){return this.rgb().formatHex()}function xC(){return this.rgb().formatRgb()}function _C(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?OC(t):3===n?new EC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?CC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?CC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=dC.exec(e))?new EC(t[1],t[2],t[3],1):(t=hC.exec(e))?new EC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=gC.exec(e))?CC(t[1],t[2],t[3],t[4]):(t=yC.exec(e))?CC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vC.exec(e))?DC(t[1],t[2]/100,t[3]/100,1):(t=mC.exec(e))?DC(t[1],t[2]/100,t[3]/100,t[4]):bC.hasOwnProperty(e)?OC(bC[e]):"transparent"===e?new EC(NaN,NaN,NaN,0):null}function OC(e){return new EC(e>>16&255,e>>8&255,255&e,1)}function CC(e,t,n,r){return r<=0&&(e=t=n=NaN),new EC(e,t,n,r)}function SC(e){return e instanceof aC||(e=_C(e)),e?new EC((e=e.rgb()).r,e.g,e.b,e.opacity):new EC}function kC(e,t,n,r){return 1===arguments.length?SC(e):new EC(e,t,n,null==r?1:r)}function EC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function AC(){return`#${MC(this.r)}${MC(this.g)}${MC(this.b)}`}function jC(){const e=TC(this.opacity);return`${1===e?"rgb(":"rgba("}${PC(this.r)}, ${PC(this.g)}, ${PC(this.b)}${1===e?")":`, ${e})`}`}function TC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function PC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function MC(e){return((e=PC(e))<16?"0":"")+e.toString(16)}function DC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new IC(e,t,n,r)}function NC(e){if(e instanceof IC)return new IC(e.h,e.s,e.l,e.opacity);if(e instanceof aC||(e=_C(e)),!e)return new IC;if(e instanceof IC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new IC(a,s,c,e.opacity)}function IC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function RC(e){return(e=(e||0)%360)<0?e+360:e}function LC(e){return Math.max(0,Math.min(1,e||0))}function BC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oC(aC,_C,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wC,formatHex:wC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NC(this).formatHsl()},formatRgb:xC,toString:xC}),oC(EC,kC,iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new EC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new EC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new EC(PC(this.r),PC(this.g),PC(this.b),TC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:AC,formatHex:AC,formatHex8:function(){return`#${MC(this.r)}${MC(this.g)}${MC(this.b)}${MC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jC,toString:jC})),oC(IC,(function(e,t,n,r){return 1===arguments.length?NC(e):new IC(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new IC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new IC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new EC(BC(e>=240?e-240:e+120,o,r),BC(e,o,r),BC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new IC(RC(this.h),LC(this.s),LC(this.l),TC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=TC(this.opacity);return`${1===e?"hsl(":"hsla("}${RC(this.h)}, ${100*LC(this.s)}%, ${100*LC(this.l)}%${1===e?")":`, ${e})`}`}}));const FC=Math.PI/180,zC=180/Math.PI,HC=.96422,VC=1,UC=.82521,KC=4/29,$C=6/29,WC=3*$C*$C,qC=$C*$C*$C;function GC(e){if(e instanceof ZC)return new ZC(e.l,e.a,e.b,e.opacity);if(e instanceof eS)return tS(e);e instanceof EC||(e=SC(e));var t,n,r=QC(e.r),o=QC(e.g),i=QC(e.b),a=YC((.2225045*r+.7168786*o+.0606169*i)/VC);return r===o&&o===i?t=n=a:(t=YC((.4360747*r+.3850649*o+.1430804*i)/HC),n=YC((.0139322*r+.0971045*o+.7141733*i)/UC)),new ZC(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ZC(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function YC(e){return e>qC?Math.pow(e,1/3):e/WC+KC}function XC(e){return e>$C?e*e*e:WC*(e-KC)}function JC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function QC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eS(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function tS(e){if(isNaN(e.h))return new ZC(e.l,0,0,e.opacity);var t=e.h*FC;return new ZC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}oC(ZC,(function(e,t,n,r){return 1===arguments.length?GC(e):new ZC(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return new ZC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ZC(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new EC(JC(3.1338561*(t=HC*XC(t))-1.6168667*(e=VC*XC(e))-.4906146*(n=UC*XC(n))),JC(-.9787684*t+1.9161415*e+.033454*n),JC(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),oC(eS,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof eS)return new eS(e.h,e.c,e.l,e.opacity);if(e instanceof ZC||(e=GC(e)),0===e.a&&0===e.b)return new eS(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*zC;return new eS(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new eS(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return new eS(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new eS(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return tS(this).rgb()}}));var nS=-.14861,rS=1.78277,oS=-.29227,iS=-.90649,aS=1.97294,sS=aS*iS,cS=aS*rS,uS=rS*oS-iS*nS;function lS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof fS)return new fS(e.h,e.s,e.l,e.opacity);e instanceof EC||(e=SC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(uS*r+sS*t-cS*n)/(uS+sS-cS),i=r-o,a=(aS*(n-o)-oS*i)/iS,s=Math.sqrt(a*a+i*i)/(aS*o*(1-o)),c=s?Math.atan2(a,i)*zC-120:NaN;return new fS(c<0?c+360:c,s,o,e.opacity)}(e):new fS(e,t,n,null==r?1:r)}function fS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}oC(fS,lS,iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new fS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new fS(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*FC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new EC(255*(t+n*(nS*r+rS*o)),255*(t+n*(oS*r+iS*o)),255*(t+n*(aS*r)),this.opacity)}}));var pS=e=>()=>e;function dS(e,t){return function(n){return e+n*t}}function hS(e){return 1==(e=+e)?gS:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pS(isNaN(t)?n:t)}}function gS(e,t){var n=t-e;return n?dS(e,n):pS(isNaN(e)?t:e)}var yS=function e(t){var n=hS(t);function r(e,t){var r=n((e=kC(e)).r,(t=kC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=gS(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function vS(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function mS(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=SS(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function bS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function wS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xS(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=SS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var _S=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OS=new RegExp(_S.source,"g");function CS(e,t){var n,r,o,i=_S.lastIndex=OS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=_S.exec(e))&&(r=OS.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:wS(n,r)})),i=OS.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function SS(e,t){var n,r=typeof t;return null==t||"boolean"===r?pS(t):("number"===r?wS:"string"===r?(n=_C(t))?(t=n,yS):CS:t instanceof _C?yS:t instanceof Date?bS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?vS:Array.isArray(t)?mS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?xS:wS)(e,t)}function kS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var ES=1e-12;function AS(e){return((e=Math.exp(e))+1/e)/2}function jS(e){return function t(n){function r(t,r){var o=e((t=lS(t)).h,(r=lS(r)).h),i=gS(t.s,r.s),a=gS(t.l,r.l),s=gS(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function TS(e,t){void 0===t&&(t=e,e=SS);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function PS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<ES)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=AS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/AS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),jS((function(e,t){var n=t-e;return n?dS(e,n>180||n<-180?n-360*Math.round(n/360):n):pS(isNaN(e)?t:e)})),jS(gS);var MS=[0,1];function DS(e){return e}function NS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function IS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=NS(o,r),i=n(a,i)):(r=NS(r,o),i=n(i,a)),function(e){return i(r(e))}}function RS(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=NS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=NO(e,t,1,r)-1;return i[n](o[n](t))}}function LS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function BS(){var e,t,n,r,o,i,a=MS,s=MS,c=SS,u=DS;function l(){var e=Math.min(a.length,s.length);return u!==DS&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?RS:IS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),wS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,PS),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=kS,l()},f.clamp=function(e){return arguments.length?(u=!!e||DS,l()):u!==DS},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function FS(){return BS()(DS,DS)}function zS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function HS(e){return(e=zS(Math.abs(e)))?e[1]:NaN}var VS,US=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function KS(e){if(!(t=US.exec(e)))throw new Error("invalid format: "+e);var t;return new $S({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $S(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function WS(e,t){var n=zS(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}KS.prototype=$S.prototype,$S.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>WS(100*e,t),r:WS,s:function(e,t){var n=zS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(VS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+zS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function GS(e){return e}var ZS,YS,XS,JS=Array.prototype.map,QS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ek(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?GS:(t=JS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?GS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(JS.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=KS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):qS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=qS[m],_=/[defgprs%]/.test(m);function O(e){var o,i,c,p=b,O=w;if("c"===m)O=x(e)+O,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==f&&(C=!1),p=(C?"("===f?f:u:"-"===f||"("===f?"":f)+p,O=("s"===m?QS[8+VS/3]:"")+O+(C&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){O=(46===c?a+e.slice(o+1):e.slice(o))+O,e=e.slice(0,o);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+O.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-O.length:1/0),k=""),n){case"<":e=p+e+O+k;break;case"=":e=p+k+e+O;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+O+k.slice(S);break;default:e=k+p+e+O}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return e+""},O}return{format:f,formatPrefix:function(e,t){var n=f(((e=KS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(HS(t)/3))),o=Math.pow(10,-r),i=QS[8+r/3];return function(e){return n(o*e)+i}}}}function tk(e,t,n,r){var o,i=$O(e,t,n);switch((r=KS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(HS(t)/3)))-HS(Math.abs(e)))}(i,a))||(r.precision=o),XS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,HS(t)-HS(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-HS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return YS(r)}function nk(e){var t=e.domain;return e.ticks=function(e){var n=t();return UO(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return tk(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=KO(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function rk(){var e=FS();return e.copy=function(){return LS(e,rk())},XO.apply(e,arguments),nk(e)}function ok(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function ik(e){return Math.log(e)}function ak(e){return Math.exp(e)}function sk(e){return-Math.log(-e)}function ck(e){return-Math.exp(-e)}function uk(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lk(e){return(t,n)=>-e(-t,n)}function fk(e){const t=e(ik,ak),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?uk:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=lk(r),o=lk(o),e(sk,ck)):e(ik,ak),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<d&&(h=UO(a,s,d))}else h=UO(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=KS(n)).precision||(n.trim=!0),n=YS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(ok(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function pk(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dk(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hk(e){var t=1,n=e(pk(t),dk(t));return n.constant=function(n){return arguments.length?e(pk(t=+n),dk(t)):t},nk(n)}function gk(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vk(e){return e<0?-e*e:e*e}function mk(e){var t=e(DS,DS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(DS,DS):.5===n?e(yk,vk):e(gk(n),gk(1/n)):n},nk(t)}function bk(){var e=mk(BS());return e.copy=function(){return LS(e,bk()).exponent(e.exponent())},XO.apply(e,arguments),e}function wk(e){return Math.sign(e)*e*e}ZS=ek({thousands:",",grouping:[3],currency:["$",""]}),YS=ZS.format,XS=ZS.formatPrefix;const xk=new Date,_k=new Date;function Ok(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>Ok((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(xk.setTime(+t),_k.setTime(+r),e(xk),e(_k),Math.floor(n(xk,_k))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const Ck=Ok((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Ck.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Ok((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Ck:null),Ck.range;const Sk=1e3,kk=60*Sk,Ek=60*kk,Ak=24*Ek,jk=7*Ak,Tk=30*Ak,Pk=365*Ak,Mk=Ok((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Sk)}),((e,t)=>(t-e)/Sk),(e=>e.getUTCSeconds()));Mk.range;const Dk=Ok((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sk)}),((e,t)=>{e.setTime(+e+t*kk)}),((e,t)=>(t-e)/kk),(e=>e.getMinutes()));Dk.range;const Nk=Ok((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*kk)}),((e,t)=>(t-e)/kk),(e=>e.getUTCMinutes()));Nk.range;const Ik=Ok((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sk-e.getMinutes()*kk)}),((e,t)=>{e.setTime(+e+t*Ek)}),((e,t)=>(t-e)/Ek),(e=>e.getHours()));Ik.range;const Rk=Ok((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ek)}),((e,t)=>(t-e)/Ek),(e=>e.getUTCHours()));Rk.range;const Lk=Ok((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kk)/Ak),(e=>e.getDate()-1));Lk.range;const Bk=Ok((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ak),(e=>e.getUTCDate()-1));Bk.range;const Fk=Ok((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ak),(e=>Math.floor(e/Ak)));function zk(e){return Ok((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kk)/jk))}Fk.range;const Hk=zk(0),Vk=zk(1),Uk=zk(2),Kk=zk(3),$k=zk(4),Wk=zk(5),qk=zk(6);function Gk(e){return Ok((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/jk))}Hk.range,Vk.range,Uk.range,Kk.range,$k.range,Wk.range,qk.range;const Zk=Gk(0),Yk=Gk(1),Xk=Gk(2),Jk=Gk(3),Qk=Gk(4),eE=Gk(5),tE=Gk(6);Zk.range,Yk.range,Xk.range,Jk.range,Qk.range,eE.range,tE.range;const nE=Ok((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));nE.range;const rE=Ok((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));rE.range;const oE=Ok((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));oE.every=e=>isFinite(e=Math.floor(e))&&e>0?Ok((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,oE.range;const iE=Ok((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function aE(e,t,n,r,o,i){const a=[[Mk,1,Sk],[Mk,5,5*Sk],[Mk,15,15*Sk],[Mk,30,30*Sk],[i,1,kk],[i,5,5*kk],[i,15,15*kk],[i,30,30*kk],[o,1,Ek],[o,3,3*Ek],[o,6,6*Ek],[o,12,12*Ek],[r,1,Ak],[r,2,2*Ak],[n,1,jk],[t,1,Tk],[t,3,3*Tk],[e,1,Pk]];function s(t,n,r){const o=Math.abs(n-t)/r,i=PO((([,,e])=>e)).right(a,o);if(i===a.length)return e.every($O(t/Pk,n/Pk,r));if(0===i)return Ck.every(Math.max($O(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}iE.every=e=>isFinite(e=Math.floor(e))&&e>0?Ok((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,iE.range;const[sE,cE]=aE(iE,rE,Zk,Fk,Rk,Nk),[uE,lE]=aE(oE,nE,Hk,Lk,Ik,Dk);function fE(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pE(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function dE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var hE,gE,yE,vE,mE={"-":"",_:" ",0:"0"},bE=/^\s*\d+/,wE=/^%/,xE=/[\\^$*+?|[\]().{}]/g;function _E(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function OE(e){return e.replace(xE,"\\$&")}function CE(e){return new RegExp("^(?:"+e.map(OE).join("|")+")","i")}function SE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function kE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function EE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function AE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function TE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function PE(e,t,n){var r=bE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ME(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function DE(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function NE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function IE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function RE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function LE(e,t,n){var r=bE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function FE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HE(e,t,n){var r=bE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VE(e,t,n){var r=bE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function UE(e,t,n){var r=wE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function KE(e,t,n){var r=bE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $E(e,t,n){var r=bE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WE(e,t){return _E(e.getDate(),t,2)}function qE(e,t){return _E(e.getHours(),t,2)}function GE(e,t){return _E(e.getHours()%12||12,t,2)}function ZE(e,t){return _E(1+Lk.count(oE(e),e),t,3)}function YE(e,t){return _E(e.getMilliseconds(),t,3)}function XE(e,t){return YE(e,t)+"000"}function JE(e,t){return _E(e.getMonth()+1,t,2)}function QE(e,t){return _E(e.getMinutes(),t,2)}function eA(e,t){return _E(e.getSeconds(),t,2)}function tA(e){var t=e.getDay();return 0===t?7:t}function nA(e,t){return _E(Hk.count(oE(e)-1,e),t,2)}function rA(e){var t=e.getDay();return t>=4||0===t?$k(e):$k.ceil(e)}function oA(e,t){return e=rA(e),_E($k.count(oE(e),e)+(4===oE(e).getDay()),t,2)}function iA(e){return e.getDay()}function aA(e,t){return _E(Vk.count(oE(e)-1,e),t,2)}function sA(e,t){return _E(e.getFullYear()%100,t,2)}function cA(e,t){return _E((e=rA(e)).getFullYear()%100,t,2)}function uA(e,t){return _E(e.getFullYear()%1e4,t,4)}function lA(e,t){var n=e.getDay();return _E((e=n>=4||0===n?$k(e):$k.ceil(e)).getFullYear()%1e4,t,4)}function fA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_E(t/60|0,"0",2)+_E(t%60,"0",2)}function pA(e,t){return _E(e.getUTCDate(),t,2)}function dA(e,t){return _E(e.getUTCHours(),t,2)}function hA(e,t){return _E(e.getUTCHours()%12||12,t,2)}function gA(e,t){return _E(1+Bk.count(iE(e),e),t,3)}function yA(e,t){return _E(e.getUTCMilliseconds(),t,3)}function vA(e,t){return yA(e,t)+"000"}function mA(e,t){return _E(e.getUTCMonth()+1,t,2)}function bA(e,t){return _E(e.getUTCMinutes(),t,2)}function wA(e,t){return _E(e.getUTCSeconds(),t,2)}function xA(e){var t=e.getUTCDay();return 0===t?7:t}function _A(e,t){return _E(Zk.count(iE(e)-1,e),t,2)}function OA(e){var t=e.getUTCDay();return t>=4||0===t?Qk(e):Qk.ceil(e)}function CA(e,t){return e=OA(e),_E(Qk.count(iE(e),e)+(4===iE(e).getUTCDay()),t,2)}function SA(e){return e.getUTCDay()}function kA(e,t){return _E(Yk.count(iE(e)-1,e),t,2)}function EA(e,t){return _E(e.getUTCFullYear()%100,t,2)}function AA(e,t){return _E((e=OA(e)).getUTCFullYear()%100,t,2)}function jA(e,t){return _E(e.getUTCFullYear()%1e4,t,4)}function TA(e,t){var n=e.getUTCDay();return _E((e=n>=4||0===n?Qk(e):Qk.ceil(e)).getUTCFullYear()%1e4,t,4)}function PA(){return"+0000"}function MA(){return"%"}function DA(e){return+e}function NA(e){return Math.floor(+e/1e3)}!function(e){hE=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=CE(o),l=SE(o),f=CE(i),p=SE(i),d=CE(a),h=SE(a),g=CE(s),y=SE(s),v=CE(c),m=SE(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:WE,e:WE,f:XE,g:cA,G:lA,H:qE,I:GE,j:ZE,L:YE,m:JE,M:QE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:DA,s:NA,S:eA,u:tA,U:nA,V:oA,w:iA,W:aA,x:null,X:null,y:sA,Y:uA,Z:fA,"%":MA},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:pA,e:pA,f:vA,g:AA,G:TA,H:dA,I:hA,j:gA,L:yA,m:mA,M:bA,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:DA,s:NA,S:wA,u:xA,U:_A,V:CA,w:SA,W:kA,x:null,X:null,y:EA,Y:jA,Z:PA,"%":MA},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:RE,e:RE,f:VE,g:ME,G:PE,H:BE,I:BE,j:LE,L:HE,m:IE,M:FE,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:NE,Q:KE,s:$E,S:zE,u:EE,U:AE,V:jE,w:kE,W:TE,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:ME,Y:PE,Z:DE,"%":UE};function _(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=mE[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function O(e,t){return function(n){var r,o,i=dE(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=pE(dE(i.y,0,1))).getUTCDay(),r=o>4||0===o?Yk.ceil(r):Yk(r),r=Bk.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=fE(dE(i.y,0,1))).getDay(),r=o>4||0===o?Vk.ceil(r):Vk(r),r=Lk.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?pE(dE(i.y,0,1)).getUTCDay():fE(dE(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,pE(i)):fE(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in mE?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}(e),gE=hE.format,hE.parse,yE=hE.utcFormat,vE=hE.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var IA="%Y-%m-%dT%H:%M:%S.%LZ";function RA(e){return new Date(e)}function LA(e){return e instanceof Date?+e:+new Date(+e)}function BA(e,t,n,r,o,i,a,s,c,u){var l=FS(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,LA)):p().map(RA)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(ok(n,e)):l},l.copy=function(){return LS(l,BA(e,t,n,r,o,i,a,s,c,u))},l}function FA(){var e,t,n,r,o,i=0,a=1,s=DS,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(SS),u.rangeRound=l(kS),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function zA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function HA(){var e=mk(FA());return e.copy=function(){return zA(e,HA()).exponent(e.exponent())},JO.apply(e,arguments)}function VA(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=DS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=TS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(SS),d.rangeRound=h(kS),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function UA(){var e=mk(VA());return e.copy=function(){return zA(e,UA()).exponent(e.exponent())},JO.apply(e,arguments)}Date.prototype.toISOString||yE(IA),+new Date("2000-01-01T00:00:00.000Z")||vE(IA);var KA,$A=Object.freeze({__proto__:null,scaleBand:tC,scaleDiverging:function e(){var t=nk(VA()(DS));return t.copy=function(){return zA(t,e())},JO.apply(t,arguments)},scaleDivergingLog:function e(){var t=fk(VA()).domain([.1,1,10]);return t.copy=function(){return zA(t,e()).base(t.base())},JO.apply(t,arguments)},scaleDivergingPow:UA,scaleDivergingSqrt:function(){return UA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=hk(VA());return t.copy=function(){return zA(t,e()).constant(t.constant())},JO.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,PS),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,PS):[0,1],nk(r)},scaleImplicit:QO,scaleLinear:rk,scaleLog:function e(){const t=fk(BS()).domain([1,10]);return t.copy=()=>LS(t,e()).base(t.base()),XO.apply(t,arguments),t},scaleOrdinal:eC,scalePoint:rC,scalePow:bk,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=YO(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[NO(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(jO),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},XO.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[NO(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},XO.apply(nk(s),arguments)},scaleRadial:function e(){var t,n=FS(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(wk(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,PS)).map(wk)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},XO.apply(i,arguments),nk(i)},scaleSequential:function e(){var t=nk(FA()(DS));return t.copy=function(){return zA(t,e())},JO.apply(t,arguments)},scaleSequentialLog:function e(){var t=fk(FA()).domain([1,10]);return t.copy=function(){return zA(t,e()).base(t.base())},JO.apply(t,arguments)},scaleSequentialPow:HA,scaleSequentialQuantile:function e(){var t=[],n=DS;function r(e){if(null!=e&&!isNaN(e=+e))return n((NO(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(jO),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return qO(e);if(t>=1)return WO(e);var r,o=(r-1)*t,i=Math.floor(o),a=WO(GO(e,i).subarray(0,i+1));return a+(qO(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},JO.apply(r,arguments)},scaleSequentialSqrt:function(){return HA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=hk(FA());return t.copy=function(){return zA(t,e()).constant(t.constant())},JO.apply(t,arguments)},scaleSqrt:function(){return bk.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=hk(BS());return t.copy=function(){return LS(t,e()).constant(t.constant())},XO.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[NO(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},XO.apply(i,arguments)},scaleTime:function(){return XO.apply(BA(uE,lE,oE,nE,Hk,Lk,Ik,Dk,Mk,gE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return XO.apply(BA(sE,cE,iE,rE,Zk,Bk,Rk,Nk,Mk,yE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:tk}),WA={},qA={},GA=1e9,ZA=!0,YA="[DecimalError] ",XA=YA+"Invalid argument: ",JA=YA+"Exponent out of range: ",QA=Math.floor,ej=Math.pow,tj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nj=1e7,rj=7,oj=9007199254740991,ij=QA(oj/rj),aj={};function sj(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ZA?vj(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/rj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/nj|0,c[i]%=nj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,ZA?vj(t,f):t}function cj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(XA+e)}function uj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=rj-r.length)&&(i+=hj(n)),i+=r;a=e[t],(n=rj-(r=a+"").length)&&(i+=hj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}aj.absoluteValue=aj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},aj.comparedTo=aj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},aj.decimalPlaces=aj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},aj.dividedBy=aj.div=function(e){return lj(this,new this.constructor(e))},aj.dividedToIntegerBy=aj.idiv=function(e){var t=this.constructor;return vj(lj(this,new t(e),0,1),t.precision)},aj.equals=aj.eq=function(e){return!this.cmp(e)},aj.exponent=function(){return pj(this)},aj.greaterThan=aj.gt=function(e){return this.cmp(e)>0},aj.greaterThanOrEqualTo=aj.gte=function(e){return this.cmp(e)>=0},aj.isInteger=aj.isint=function(){return this.e>this.d.length-2},aj.isNegative=aj.isneg=function(){return this.s<0},aj.isPositive=aj.ispos=function(){return this.s>0},aj.isZero=function(){return 0===this.s},aj.lessThan=aj.lt=function(e){return this.cmp(e)<0},aj.lessThanOrEqualTo=aj.lte=function(e){return this.cmp(e)<1},aj.logarithm=aj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(KA))throw Error(YA+"NaN");if(n.s<1)throw Error(YA+(n.s?"NaN":"-Infinity"));return n.eq(KA)?new r(0):(ZA=!1,t=lj(gj(n,i),gj(e,i),i),ZA=!0,vj(t,o))},aj.minus=aj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mj(t,e):sj(t,(e.s=-e.s,e))},aj.modulo=aj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(YA+"NaN");return n.s?(ZA=!1,t=lj(n,e,0,1).times(e),ZA=!0,n.minus(t)):vj(new r(n),o)},aj.naturalExponential=aj.exp=function(){return fj(this)},aj.naturalLogarithm=aj.ln=function(){return gj(this)},aj.negated=aj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},aj.plus=aj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sj(t,e):mj(t,(e.s=-e.s,e))},aj.precision=aj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(XA+e);if(t=pj(o)+1,n=(r=o.d.length-1)*rj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},aj.squareRoot=aj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(YA+"NaN")}for(e=pj(s),ZA=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=uj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=QA((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(lj(s,i,a+2)).times(.5),uj(i.d).slice(0,a)===(t=uj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(vj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return ZA=!0,vj(r,n)},aj.times=aj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%nj|0,t=s/nj|0;i[o]=(i[o]+t)%nj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ZA?vj(e,f.precision):e},aj.toDecimalPlaces=aj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(cj(e,0,GA),void 0===t?t=r.rounding:cj(t,0,8),vj(n,e+pj(n)+1,t))},aj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=bj(r,!0):(cj(e,0,GA),void 0===t?t=o.rounding:cj(t,0,8),n=bj(r=vj(new o(r),e+1,t),!0,e+1)),n},aj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?bj(o):(cj(e,0,GA),void 0===t?t=i.rounding:cj(t,0,8),n=bj((r=vj(new i(o),e+pj(o)+1,t)).abs(),!1,e+pj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},aj.toInteger=aj.toint=function(){var e=this,t=e.constructor;return vj(new t(e),pj(e)+1,t.rounding)},aj.toNumber=function(){return+this},aj.toPower=aj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(KA);if(!(s=new c(s)).s){if(e.s<1)throw Error(YA+"Infinity");return s}if(s.eq(KA))return s;if(r=c.precision,e.eq(KA))return vj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=oj){for(o=new c(KA),t=Math.ceil(r/rj+4),ZA=!1;n%2&&wj((o=o.times(s)).d,t),0!==(n=QA(n/2));)wj((s=s.times(s)).d,t);return ZA=!0,e.s<0?new c(KA).div(o):vj(o,r)}}else if(i<0)throw Error(YA+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,ZA=!1,o=e.times(gj(s,r+12)),ZA=!0,(o=fj(o)).s=i,o},aj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=bj(o,(n=pj(o))<=i.toExpNeg||n>=i.toExpPos):(cj(e,1,GA),void 0===t?t=i.rounding:cj(t,0,8),r=bj(o=vj(new i(o),e,t),e<=(n=pj(o))||n<=i.toExpNeg,e)),r},aj.toSignificantDigits=aj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(cj(e,1,GA),void 0===t?t=n.rounding:cj(t,0,8)),vj(new n(this),e,t)},aj.toString=aj.valueOf=aj.val=aj.toJSON=aj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pj(e),n=e.constructor;return bj(e,t<=n.toExpNeg||t>=n.toExpPos)};var lj=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%nj|0,r=n/nj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*nj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,O,C,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,A=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(YA+"Division by zero");for(c=r.e-o.e,O=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(pj(r)-pj(o))+1:i)<0)return new S(0);if(m=m/rj+2|0,u=0,1==O)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*nj+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=nj/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),O=A.length,x=E.length),w=O,y=(g=E.slice(0,O)).length;y<O;)g[y++]=0;(C=A.slice()).unshift(0),_=A[0],A[1]>=nj/2&&++_;do{l=0,(s=t(A,g,O,y))<0?(v=g[0],O!=y&&(v=v*nj+(g[1]||0)),(l=v/_|0)>1?(l>=nj&&(l=nj-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,O<p?C:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,O,y=g.length))<1&&(l++,n(g,O<y?C:A,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,vj(d,a?i+pj(d)+1:i)}}();function fj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(pj(e)>16)throw Error(JA+pj(e));if(!e.s)return new u(KA);for(null==t?(ZA=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(ej(2,c))/Math.LN10*2+5|0,n=r=o=new u(KA),u.precision=a;;){if(r=vj(r.times(e),a),n=n.times(++s),uj((i=o.plus(lj(r,n,a))).d).slice(0,a)===uj(o.d).slice(0,a)){for(;c--;)o=vj(o.times(o),a);return u.precision=l,null==t?(ZA=!0,vj(o,l)):o}o=i}}function pj(e){for(var t=e.e*rj,n=e.d[0];n>=10;n/=10)t++;return t}function dj(e,t,n){if(t>e.LN10.sd())throw ZA=!0,n&&(e.precision=n),Error(YA+"LN10 precision limit exceeded");return vj(new e(e.LN10),t)}function hj(e){for(var t="";e--;)t+="0";return t}function gj(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(YA+(p.s?"NaN":"-Infinity"));if(p.eq(KA))return new h(0);if(null==t?(ZA=!1,u=g):u=t,p.eq(10))return null==t&&(ZA=!0),dj(h,u);if(u+=10,h.precision=u,r=(n=uj(d)).charAt(0),i=pj(p),!(Math.abs(i)<15e14))return c=dj(h,u+2,g).times(i+""),p=gj(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(ZA=!0,vj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=uj((p=p.times(e)).d)).charAt(0),f++;for(i=pj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=lj(p.minus(KA),p.plus(KA),u),l=vj(p.times(p),u),o=3;;){if(a=vj(a.times(l),u),uj((c=s.plus(lj(a,new h(o),u))).d).slice(0,u)===uj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(dj(h,u+2,g).times(i+""))),s=lj(s,new h(f),u),h.precision=g,null==t?(ZA=!0,vj(s,g)):s;s=c,o+=2}}function yj(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=QA(n/rj),e.d=[],r=(n+1)%rj,n<0&&(r+=rj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=rj;r<o;)e.d.push(+t.slice(r,r+=rj));t=t.slice(r),r=rj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ZA&&(e.e>ij||e.e<-ij))throw Error(JA+n)}else e.s=0,e.e=0,e.d=[0];return e}function vj(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=rj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/rj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=rj)-rj+a}if(void 0!==n&&(s=u/(i=ej(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/ej(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=pj(e),f.length=1,t=t-i-1,f[0]=ej(10,(rj-t%rj)%rj),e.e=QA(-t/rj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=ej(10,rj-r),f[l]=o>0?(u/ej(10,a-o)%ej(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==nj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=nj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(ZA&&(e.e>ij||e.e<-ij))throw Error(JA+pj(e));return e}function mj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ZA?vj(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/rj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=nj-1;--c[i],c[o]+=nj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,ZA?vj(t,d):t):new p(0)}function bj(e,t,n){var r,o=pj(e),i=uj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+hj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+hj(-o-1)+i,n&&(r=n-a)>0&&(i+=hj(r))):o>=a?(i+=hj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+hj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=hj(r))),e.s<0?"-"+i:i}function wj(e,t){if(e.length>t)return e.length=t,!0}function xj(e){if(!e||"object"!=typeof e)throw Error(YA+"Object expected");var t,n,r,o=["precision",1,GA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(QA(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(XA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(XA+n+": "+r);this[n]=new this(r)}return this}var _j=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(XA+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):yj(t,e.toString())}if("string"!=typeof e)throw Error(XA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!tj.test(e))throw Error(XA+e);yj(t,e)}if(i.prototype=aj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=xj,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});KA=new _j(1);var Oj=_j,Cj=I(Object.freeze({__proto__:null,get Decimal(){return _j},default:Oj})),Sj={};function kj(e){return function(e){if(Array.isArray(e))return Ej(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ej(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 Ej(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 Ej(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.memoize=Sj.reverse=Sj.compose=Sj.map=Sj.range=Sj.curry=Sj.PLACE_HOLDER=void 0;var Aj=function(e){return e},jj={"@@functional/placeholder":!0};Sj.PLACE_HOLDER=jj;var Tj=function(e){return e===jj},Pj=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Tj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Mj=function(e){return function e(t,n){return 1===t?n:Pj((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==jj})).length;return a>=t?n.apply(void 0,o):e(t-a,Pj((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return Tj(e)?t.shift():e}));return n.apply(void 0,kj(i).concat(t))})))}))}(e.length,e)};Sj.curry=Mj;Sj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var Dj=Mj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Sj.map=Dj;Sj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Aj;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}};Sj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Sj.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0}),Nj.default=void 0;var Ij=function(e){return e&&e.__esModule?e:{default:e}}(Cj),Rj=Sj;var Lj=(0,Rj.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),Bj=(0,Rj.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),Fj=(0,Rj.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),zj={rangeStep:function(e,t,n){for(var r=new Ij.default(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new Ij.default(e).abs().log(10).toNumber())+1},interpolateNumber:Lj,uninterpolateNumber:Bj,uninterpolateTruncation:Fj};Nj.default=zj,Object.defineProperty(qA,"__esModule",{value:!0}),qA.getTickValuesFixedDomain=qA.getTickValues=qA.getNiceTickValues=void 0;var Hj=Kj(Cj),Vj=Sj,Uj=Kj(Nj);function Kj(e){return e&&e.__esModule?e:{default:e}}function $j(e){return function(e){if(Array.isArray(e))return Gj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qj(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 Wj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||qj(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 qj(e,t){if(e){if("string"==typeof e)return Gj(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)?Gj(e,t):void 0}}function Gj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zj(e){var t=Wj(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function Yj(e,t,n){if(e.lte(0))return new Hj.default(0);var r=Uj.default.getDigitCount(e.toNumber()),o=new Hj.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Hj.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Hj.default(Math.ceil(s))}function Xj(e,t,n){var r=1,o=new Hj.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Hj.default(10).pow(Uj.default.getDigitCount(e)-1),o=new Hj.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Hj.default(Math.floor(e)))}else 0===e?o=new Hj.default(Math.floor((t-1)/2)):n||(o=new Hj.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,Vj.compose)((0,Vj.map)((function(e){return o.add(new Hj.default(e-a).mul(r)).toNumber()})),Vj.range);return s(0,t)}function Jj(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Hj.default(0),tickMin:new Hj.default(0),tickMax:new Hj.default(0)};var i,a=Yj(new Hj.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Hj.default(0):(i=new Hj.default(e).add(t).div(2)).sub(new Hj.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new Hj.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?Jj(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new Hj.default(s).mul(a)),tickMax:i.add(new Hj.default(c).mul(a))})}var Qj=(0,Vj.memoize)((function(e){var t=Wj(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Wj(Zj([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat($j((0,Vj.range)(0,o-1).map((function(){return 1/0})))):[].concat($j((0,Vj.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,Vj.reverse)(l):l}if(c===u)return Xj(c,o,i);var f=Jj(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=Uj.default.rangeStep(d,h.add(new Hj.default(.1).mul(p)),p);return n>r?(0,Vj.reverse)(g):g}));qA.getNiceTickValues=Qj;var eT=(0,Vj.memoize)((function(e){var t=Wj(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Wj(Zj([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return Xj(c,o,i);var l=Yj(new Hj.default(u).sub(c).div(a-1),i,0),f=(0,Vj.compose)((0,Vj.map)((function(e){return new Hj.default(c).add(new Hj.default(e).mul(l)).toNumber()})),Vj.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,Vj.reverse)(p):p}));qA.getTickValues=eT;var tT=(0,Vj.memoize)((function(e,t){var n=Wj(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Wj(Zj([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=Yj(new Hj.default(c).sub(s).div(u-1),i,0),f=[].concat($j(Uj.default.rangeStep(new Hj.default(s),new Hj.default(c).sub(new Hj.default(.99).mul(l)),l)),[c]);return r>o?(0,Vj.reverse)(f):f}));qA.getTickValuesFixedDomain=tT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=qA}(WA);var nT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function rT(){return rT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rT.apply(this,arguments)}function oT(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iT(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 iT(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 iT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sT(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=aT(e,nT),f=Rc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=oT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,O=x-r,C=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:O}),m.push({x1:C,y1:x,x2:S,y2:x}),m.push({x1:C,y1:_,x2:C,y2:O})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,j=E+r,T=k(h-y),P=k(h+v);m.push({x1:A,y1:P,x2:j,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:A,y1:T,x2:j,y2:T})}return o.createElement(Gc,rT({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return o.createElement("line",rT({},e,{key:"line-".concat(t)}))})))}));return o.createElement(Gc,{className:"recharts-errorBars"},p)}function cT(e){return cT="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},cT(e)}function uT(e){return function(e){if(Array.isArray(e))return lT(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 lT(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 lT(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 lT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fT(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 pT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach((function(t){dT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==cT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e,t,n){return Xs(e)||Xs(t)?n:sc(t)?Ys(e,t,n):Ri(t)?t(e):n}function gT(e,t,n,r){var o=AO(e,(function(e){return hT(e,t)}));if("number"===n){var i=o.filter((function(e){return ac(e)||parseFloat(e)}));return i.length?[xO(i),yO(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Xs(e)})):o).map((function(e){return sc(e)||e instanceof Date?e:""}))}sT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},sT.displayName="ErrorBar";var yT=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},vT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Pc(n,Bg);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:yT(t),value:o||r,payload:t.props}})),pT(pT(pT({},a.props),Bg.getWithHeight(a,o)),{},{payload:t,item:a})):null},mT=function(e,t,n,r,o){var i=Tc(t.props.children,sT).filter((function(e){return function(e,t,n){return!!Xs(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=hT(t,n,0),o=Li(r)?[xO(r),yO(r)]:[r,r],i=a.reduce((function(e,n){var r=hT(t,n,0),i=o[0]-Math.abs(Li(r)?r[0]:r),a=o[1]+Math.abs(Li(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},bT=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&mT(e,t,i,r)||gT(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},wT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},xT=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},_T=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*oc(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!rc(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},OT=function(e,t,n){var r;return Ri(n)?r=n:Ri(t)&&(r=t),Ri(e)||r?function(t,n,o,i){Ri(e)&&e(t,n,o,i),Ri(r)&&r(t,n,o,i)}:null},CT=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:tC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:rk(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:rC(),realScaleType:"point"}:"category"===o?{scale:tC(),realScaleType:"band"}:{scale:rk(),realScaleType:"linear"};if(Ui(r)){var s="scale".concat(Vd(r));return{scale:($A[s]||rC)(),realScaleType:$A[s]?s:"point"}}return Ri(r)?{scale:r}:{scale:rC(),realScaleType:"point"}},ST=1e-4,kT=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-ST,i=Math.max(r[0],r[1])+ST,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},ET=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},AT=function(e,t){if(!t||2!==t.length||!ac(t[0])||!ac(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ac(e[0])||e[0]<n)&&(o[0]=n),(!ac(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},jT={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=rc(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Jh(e,t)}},none:Jh,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Jh(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Jh(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=rc(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},TT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Ud([]),t=Qh,n=Jh,r=eg;function o(o){var i,a,s=Array.from(e.apply(this,arguments),tg),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=rh(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Ud(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Ud(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Qh:"function"==typeof e?e:Ud(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Jh:e,o):n},o}().keys(r).value((function(e,t){return+hT(e,t,0)})).order(Qh).offset(jT[n]);return o(e)},PT=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var u=WA.getNiceTickValues(c,o,a);return e.domain([xO(u),yO(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:WA.getTickValuesFixedDomain(l,o,a)}}return null},MT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Xs(o[t.dataKey])){var s=dc(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=hT(o,Xs(a)?t.dataKey:a);return Xs(c)?null:t.scale(c)},DT=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=hT(i,t.dataKey,t.domain[a]);return Xs(s)?null:t.scale(s)-o/2+r},NT=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},IT=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[xO(t.concat([e[0]]).filter(ac)),yO(t.concat([e[1]]).filter(ac))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},RT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BT=function(e,t,n){if(Ri(e))return e(t,n);if(!Li(e))return t;var r=[];if(ac(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(RT.test(e[0])){var o=+RT.exec(e[0])[1];r[0]=t[0]-o}else Ri(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ac(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(LT.test(e[1])){var i=+LT.exec(e[1])[1];r[1]=t[1]+i}else Ri(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},FT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Nw(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},zT=function(e,t,n){return e&&e.length?uO(e,Ys(n,"type.defaultProps.domain"))?t:e:t},HT=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return pT(pT({},Rc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:yT(e),value:hT(t,r),type:s,payload:t,chartType:c})};function VT(e){return VT="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},VT(e)}function UT(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 KT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==VT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WT(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qT(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 qT(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 qT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var GT=Math.PI/180,ZT=function(e){return 180*e/Math.PI},YT=function(e,t,n,r){return{x:e+Math.cos(-GT*r)*n,y:t+Math.sin(-GT*r)*n}},XT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},JT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=lc(e.cx,i,i/2),l=lc(e.cy,a,a/2),f=XT(i,a,n),p=lc(e.innerRadius,f,0),d=lc(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Xs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=WT(i=a.range,2);s=g[0],c=g[1]}var y=CT(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),kT(m);var b=PT(m,KT(KT({},a),{},{realScaleType:v})),w=KT(KT(KT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return KT(KT({},e),{},$T({},n,w))}),{})},QT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:ZT(c),angleInRadian:c}},eP=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},tP=function(e,t){var n=e.x,r=e.y,o=QT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?KT(KT({},t),{},{radius:i,angle:eP(d,t)}):null};function nP(e){return nP="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},nP(e)}function rP(e){return function(e){if(Array.isArray(e))return oP(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 oP(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 oP(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 oP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iP(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 aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iP(Object(n),!0).forEach((function(t){sP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cP(){return cP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cP.apply(this,arguments)}var uP=function(e){var t=e.value,n=e.formatter,r=Xs(e.children)?t:e.children;return Ri(n)?n(r):r},lP=function(e,t,n){var r,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,i=v):"insideEnd"===a?(r=y-w*c,i=!v):"end"===a&&(r=y+w*c,i=v),i=b<=0?i:!i;var x=YT(f,p,m,r),_=YT(f,p,m,r+359*(i?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),C=Xs(e.id)?uc("recharts-radial-line-"):e.id;return o.createElement("text",cP({},n,{dominantBaseline:"central",className:li("recharts-radial-bar-label",u)}),o.createElement("defs",null,o.createElement("path",{id:C,d:O})),o.createElement("textPath",{xlinkHref:"#".concat(C)},t))},fP=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=YT(i,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=YT(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},pP=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return aP(aP({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return aP(aP({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return aP(aP({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return aP(aP({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?aP({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?aP({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?aP({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?aP({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?aP({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?aP({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?aP({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?aP({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):fi(o)&&(ac(o.x)||ic(o.x))&&(ac(o.y)||ic(o.y))?aP({x:a+lc(o.x,c),y:s+lc(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):aP({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dP=function(e){return"cx"in e&&ac(e.cx)};function hP(e){var t,n=e.viewBox,r=e.position,i=e.value,s=e.children,c=e.content,u=e.className,l=void 0===u?"":u,f=e.textBreakAll;if(!n||Xs(i)&&Xs(s)&&!d(c)&&!Ri(c))return null;if(d(c))return h(c,e);if(Ri(c)){if(d(t=a(c,e)))return t}else t=uP(e);var p=dP(n),g=Rc(e,!0);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return lP(e,t,g);var y=p?fP(e):pP(e);return o.createElement(sO,cP({className:li("recharts-label",l)},g,y,{breakAll:f}),t)}hP.displayName="Label",hP.defaultProps={offset:5};var gP=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ac(h)&&ac(g)){if(ac(l)&&ac(f))return{x:l,y:f,width:h,height:g};if(ac(p)&&ac(d))return{x:p,y:d,width:h,height:g}}return ac(l)&&ac(f)?{x:l,y:f,width:0,height:0}:ac(t)&&ac(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},yP=function(e,t){return e?!0===e?o.createElement(hP,{key:"label-implicit",viewBox:t}):sc(e)?o.createElement(hP,{key:"label-implicit",viewBox:t,value:e}):d(e)?e.type===hP?h(e,{key:"label-implicit",viewBox:t}):o.createElement(hP,{key:"label-implicit",content:e,viewBox:t}):Ri(e)?o.createElement(hP,{key:"label-implicit",content:e,viewBox:t}):fi(e)?o.createElement(hP,cP({viewBox:t},e,{key:"label-implicit"})):null:null};hP.parseViewBox=gP,hP.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=gP(e),i=Tc(r,hP).map((function(e,n){return h(e,{viewBox:t||o,key:"label-".concat(n)})}));return n?[yP(e.label,t||o)].concat(rP(i)):i};var vP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function mP(e){return mP="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},mP(e)}var bP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function wP(e){return function(e){if(Array.isArray(e))return xP(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 xP(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 xP(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 xP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_P.apply(this,arguments)}function OP(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 CP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OP(Object(n),!0).forEach((function(t){SP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EP={valueAccessor:function(e){return Li(e.value)?vP(e.value):e.value}};function AP(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=kP(e,bP);return t&&t.length?o.createElement(Gc,{className:"recharts-label-list"},t.map((function(e,t){var u=Xs(r)?n(e,t):hT(e&&e.payload,r),l=Xs(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(hP,_P({},Rc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:hP.parseViewBox(Xs(i)?e:CP(CP({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function jP(e){return jP="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},jP(e)}function TP(){return TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TP.apply(this,arguments)}function PP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IP(r.key),r)}}function MP(e,t){return MP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MP(e,t)}function DP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NP(e);if(t){var o=NP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===jP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function NP(e){return NP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NP(e)}function IP(e){var t=function(e,t){if("object"!==jP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jP(t)?t:String(t)}AP.displayName="LabelList",AP.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=Tc(e.children,AP).map((function(e,n){return h(e,{data:t,key:"labelList-".concat(n)})}));return n?[function(e,t){return e?!0===e?o.createElement(AP,{key:"labelList-implicit",data:t}):o.isValidElement(e)||Ri(e)?o.createElement(AP,{key:"labelList-implicit",data:t,content:e}):fi(e)?o.createElement(AP,_P({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(wP(r)):r},AP.defaultProps=EP;var RP=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/GT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:YT(t,n,u,f),circleTangency:YT(t,n,r,f),lineTangency:YT(t,n,u*Math.cos(l*GT),p),theta:l}},LP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=YT(t,n,o,i),u=YT(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=YT(t,n,r,i),p=YT(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},BP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MP(e,t)}(a,x);var t,n,r,i=DP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<r||u===l)return null;var p,d=li("recharts-sector",f),h=i-r,g=lc(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=oc(u-c),f=RP({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=RP({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):LP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=RP({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,O=x.lineTangency,C=x.theta,S=RP({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,j=s?Math.abs(c-u):Math.abs(c-u)-C-A;if(j<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):LP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l}),o.createElement("path",TP({},Rc(this.props,!0),{className:d,d:p,role:"img"}))}}],n&&PP(t.prototype,n),r&&PP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function FP(e){return FP="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},FP(e)}function zP(){return zP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zP.apply(this,arguments)}function HP(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 VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HP(Object(n),!0).forEach((function(t){qP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GP(r.key),r)}}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function $P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WP(e);if(t){var o=WP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WP(e){return WP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WP(e)}function qP(e,t,n){return(t=GP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GP(e){var t=function(e,t){if("object"!==FP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FP(t)?t:String(t)}!function(e,t,n){(t=IP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(BP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var ZP={curveBasisClosed:function(e){return new Th(e)},curveBasisOpen:function(e){return new Ph(e)},curveBasis:function(e){return new jh(e)},curveLinearClosed:function(e){return new Hh(e)},curveLinear:ih,curveMonotoneX:function(e){return new Wh(e)},curveMonotoneY:function(e){return new qh(e)},curveNatural:function(e){return new Zh(e)},curveStep:function(e){return new Xh(e,.5)},curveStepAfter:function(e){return new Xh(e,1)},curveStepBefore:function(e){return new Xh(e,0)}},YP=function(e){return e.x===+e.x&&e.y===+e.y},XP=function(e){return e.x},JP=function(e){return e.y},QP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KP(e,t)}(a,x);var t,n,r,i=$P(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(Ri(e))return e;var n="curve".concat(Vd(e));return"curveMonotone"===n&&t?ZP["".concat(n).concat("vertical"===t?"Y":"X")]:ZP[n]||ih}(n,i),c=a?r.filter((function(e){return YP(e)})):r;if(Li(o)){var u=a?o.filter((function(e){return YP(e)})):o,l=c.map((function(e,t){return VP(VP({},e),{},{base:u[t]})}));return(e="vertical"===i?uh().y(JP).x1(XP).x0((function(e){return e.base.x})):uh().x(XP).y1(JP).y0((function(e){return e.base.y}))).defined(YP).curve(s),e(l)}return(e="vertical"===i&&ac(o)?uh().y(JP).x1(XP).x0(o):ac(o)?uh().x(XP).y1(JP).y0(o):ch().x(XP).y(JP)).defined(YP).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,i=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return o.createElement("path",zP({},Rc(this.props),wc(this.props),{className:li("recharts-curve",t),d:a,ref:i}))}}])&&UP(t.prototype,n),r&&UP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function eM(e){return eM="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},eM(e)}function tM(){return tM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tM.apply(this,arguments)}function nM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cM(r.key),r)}}function rM(e,t){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rM(e,t)}function oM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aM(e);if(t){var o=aM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iM(e)}(this,n)}}function iM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aM(e){return aM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aM(e)}function sM(e,t,n){return(t=cM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cM(e){var t=function(e,t){if("object"!==eM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eM(t)?t:String(t)}qP(QP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var uM=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},lM=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},fM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rM(e,t)}(a,x);var t,n,r,i=oM(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sM(iM(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||0===i||0===a)return null;var y=li("recharts-rectangle",c);return g?o.createElement(Mb,{canBegin:u>0,from:{width:i,height:a,x:n,y:r},to:{width:i,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,i=t.x,a=t.y;return o.createElement(Mb,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},o.createElement("path",tM({},Rc(e.props,!0),{className:y,d:uM(i,a,n,r,s),ref:function(t){e.node=t}})))})):o.createElement("path",tM({},Rc(this.props,!0),{className:y,d:uM(n,r,i,a,s)}))}}],n&&nM(t.prototype,n),r&&nM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function pM(e){return pM="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},pM(e)}sM(fM,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var dM=["points","className","baseLinePoints","connectNulls"];function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===pM(i)?i:String(i)),r)}var o,i}function vM(e,t){return vM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vM(e,t)}function mM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bM(e);if(t){var o=bM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bM(e)}function wM(e){return function(e){if(Array.isArray(e))return xM(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 xM(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 xM(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 xM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _M=function(e){return e&&e.x===+e.x&&e.y===+e.y},OM=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){_M(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),_M(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(wM(e),wM(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},CM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vM(e,t)}(a,x);var t,n,r,i=mM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=gM(e,dM);if(!t||!t.length)return null;var s=li("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=OM(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(OM(t.reverse(),n).slice(1))}(t,r,i);return o.createElement("g",{className:s},o.createElement("path",hM({},Rc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?o.createElement("path",hM({},Rc(a,!0),{fill:"none",d:OM(t,i)})):null,c?o.createElement("path",hM({},Rc(a,!0),{fill:"none",d:OM(r,i)})):null)}var l=OM(t,i);return o.createElement("path",hM({},Rc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&yM(t.prototype,n),r&&yM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function SM(e){return SM="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},SM(e)}function kM(){return kM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kM.apply(this,arguments)}function EM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==SM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===SM(i)?i:String(i)),r)}var o,i}function AM(e,t){return AM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AM(e,t)}function jM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TM(e);if(t){var o=TM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function TM(e){return TM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TM(e)}var PM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AM(e,t)}(a,x);var t,n,r,i=jM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,i=e.className,a=li("recharts-dot",i);return t===+t&&n===+n&&r===+r?o.createElement("circle",kM({},Rc(this.props),wc(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&EM(t.prototype,n),r&&EM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function MM(e){return MM="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},MM(e)}function DM(){return DM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DM.apply(this,arguments)}function NM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BM(r.key),r)}}function IM(e,t){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IM(e,t)}function RM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LM(e);if(t){var o=LM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===MM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function LM(e){return LM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LM(e)}function BM(e){var t=function(e,t){if("object"!==MM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===MM(t)?t:String(t)}var FM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IM(e,t)}(a,x);var t,n,r,i=RM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return ac(t)&&ac(n)&&ac(r)&&ac(i)&&ac(s)&&ac(c)?o.createElement("path",DM({},Rc(this.props,!0),{className:li("recharts-cross",u),d:a.getPath(t,n,r,i,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],n&&NM(t.prototype,n),r&&NM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function zM(e){return zM="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},zM(e)}function HM(){return HM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HM.apply(this,arguments)}function VM(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 UM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){GM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZM(r.key),r)}}function $M(e,t){return $M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$M(e,t)}function WM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qM(e);if(t){var o=qM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function qM(e){return qM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qM(e)}function GM(e,t,n){return(t=ZM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZM(e){var t=function(e,t){if("object"!==zM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zM(t)?t:String(t)}!function(e,t,n){(t=BM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(FM,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var YM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$M(e,t)}(a,x);var t,n,r,i=WM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=YT(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=UM({stroke:"#ccc"},Rc(this.props));return o.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=YT(t,n,r,e),u=YT(t,n,i,e);return o.createElement("line",HM({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,t,n){var r=this.props,i=r.cx,a=r.cy,s=UM(UM({stroke:"#ccc"},Rc(this.props)),{},{fill:"none"},n);return o.createElement("circle",HM({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(t),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,t,n){var r=UM(UM({stroke:"#ccc"},Rc(this.props)),{},{fill:"none"},n);return o.createElement("path",HM({},r,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(t),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,t=this.props,n=t.polarRadius,r=t.gridType;return n&&n.length?o.createElement("g",{className:"recharts-polar-grid-concentric"},n.map((function(t,n){return"circle"===r?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:o.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],n&&KM(t.prototype,n),r&&KM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();GM(YM,"displayName","PolarGrid"),GM(YM,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var XM=fO,JM=Kp,QM=vO;var eD=function(e,t){return e&&e.length?XM(e,JM(t),QM):void 0},tD=fO,nD=pO,rD=Kp;var oD=function(e,t){return e&&e.length?tD(e,rD(t),nD):void 0},iD=["cx","cy","angle","ticks","axisLine"],aD=["ticks","tick","angle","tickFormatter","stroke"];function sD(e){return sD="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},sD(e)}function cD(){return cD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cD.apply(this,arguments)}function uD(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 lD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uD(Object(n),!0).forEach((function(t){yD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vD(r.key),r)}}function dD(e,t){return dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dD(e,t)}function hD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gD(e);if(t){var o=gD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gD(e){return gD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gD(e)}function yD(e,t,n){return(t=vD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vD(e){var t=function(e,t){if("object"!==sD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sD(t)?t:String(t)}var mD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dD(e,t)}(a,x);var t,n,r,i=hD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return YT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=oD(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:eD(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,s=fD(e,iD),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=YT(t,n,c[0],r),l=YT(t,n,c[1],r),f=lD(lD(lD({},Rc(s)),{},{fill:"none"},Rc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return o.createElement("line",cD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.angle,s=t.tickFormatter,c=t.stroke,u=fD(t,aD),l=this.getTickTextAnchor(),f=Rc(u),p=Rc(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=lD(lD(lD(lD({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return o.createElement(Gc,cD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},xc(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return o.createElement(Gc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?o.createElement(Gc,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),hP.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,cD({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&pD(t.prototype,n),r&&pD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function bD(e){return bD="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},bD(e)}function wD(){return wD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wD.apply(this,arguments)}function xD(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 _D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xD(Object(n),!0).forEach((function(t){ED(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AD(r.key),r)}}function CD(e,t){return CD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CD(e,t)}function SD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kD(e);if(t){var o=kD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function kD(e){return kD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kD(e)}function ED(e,t,n){return(t=AD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AD(e){var t=function(e,t){if("object"!==bD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bD(t)?t:String(t)}yD(mD,"displayName","PolarRadiusAxis"),yD(mD,"axisType","radiusAxis"),yD(mD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var jD=Math.PI/180,TD=1e-5,PD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CD(e,t)}(a,x);var t,n,r,i=SD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=YT(n,r,o,e.coordinate),c=YT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*jD);return n>TD?"outer"===t?"start":"end":n<-TD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,s=_D(_D({},Rc(this.props)),{},{fill:"none"},Rc(i));if("circle"===a)return o.createElement(PM,wD({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return YT(t,n,r,e.coordinate)}));return o.createElement(CM,wD({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,s=t.tickFormatter,c=t.stroke,u=Rc(this.props),l=Rc(r),f=_D(_D({},u),{},{fill:"none"},Rc(i)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=_D(_D(_D({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return o.createElement(Gc,wD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},xc(e.props,t,n)),i&&o.createElement("line",wD({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return o.createElement(Gc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.createElement(Gc,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,wD({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&OD(t.prototype,n),r&&OD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();ED(PD,"displayName","PolarAngleAxis"),ED(PD,"axisType","angleAxis"),ED(PD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var MD=Vl(Object.getPrototypeOf,Object),DD=ji,ND=MD,ID=Bi,RD="[object Object]",LD=Function.prototype,BD=Object.prototype,FD=LD.toString,zD=BD.hasOwnProperty,HD=FD.call(Object);var VD=function(e){if(!ID(e)||DD(e)!=RD)return!1;var t=ND(e);if(null===t)return!0;var n=zD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&FD.call(n)==HD};function UD(e){return UD="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},UD(e)}function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}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 WD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$D(Object(n),!0).forEach((function(t){JD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QD(r.key),r)}}function GD(e,t){return GD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GD(e,t)}function ZD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XD(e);if(t){var o=XD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===UD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YD(e)}(this,n)}}function YD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XD(e){return XD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XD(e)}function JD(e,t,n){return(t=QD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QD(e){var t=function(e,t){if("object"!==UD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==UD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===UD(t)?t:String(t)}var eN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GD(e,t)}(a,x);var t,n,r,i=ZD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),JD(YD(t=i.call(this,e)),"pieRef",null),JD(YD(t),"sectorRefs",[]),JD(YD(t),"id",uc("recharts-pie-")),JD(YD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ri(e)&&e()})),JD(YD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ri(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,i=t.dataKey,s=t.valueKey,c=Rc(this.props),u=Rc(n),l=Rc(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=YT(e.cx,e.cy,e.outerRadius+f,p),h=WD(WD(WD(WD({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=WD(WD(WD(WD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[YT(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Xs(i)&&Xs(s)?y="value":Xs(i)&&(y=s),o.createElement(Gc,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,hT(e,y)))}));return o.createElement(Gc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=WD(WD({},e),{},{stroke:i?e.fill:e.stroke});return o.createElement(Gc,KD({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},xc(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],o=t>0?Ys(e,"paddingAngle",0):0;if(n){var s=pc(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=WD(WD({},e),{},{startAngle:a+o,endAngle:a+s(r)+o});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=pc(0,u-f)(r),d=WD(WD({},e),{},{startAngle:a+o,endAngle:a+p+o});i.push(d),a=d.endAngle}})),o.createElement(Gc,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!r||!r.length||!ac(s)||!ac(c)||!ac(u)||!ac(l))return null;var d=li("recharts-pie",i);return o.createElement(Gc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),hP.renderCallByParent(this.props,null,!1),(!f||p)&&AP.renderCallByParent(this.props,r,!1))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(QP,KD({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(o.isValidElement(e))return o.cloneElement(e,t);var r=n;return Ri(e)&&(r=e(t),o.isValidElement(r))?r:o.createElement(sO,KD({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):VD(e)?o.createElement(BP,KD({tabIndex:-1},t,e)):o.createElement(BP,KD({tabIndex:-1},t))}}],n&&qD(t.prototype,n),r&&qD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();JD(eN,"displayName","Pie"),JD(eN,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Gw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),JD(eN,"parseDeltaAngle",(function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),360)})),JD(eN,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=Rc(e.props),i=Tc(r,qx);return n&&n.length?n.map((function(e,t){return WD(WD(WD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return WD(WD({},o),e.props)})):[]})),JD(eN,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=XT(o,i);return{cx:r+lc(e.props.cx,o,o/2),cy:n+lc(e.props.cy,i,i/2),innerRadius:lc(e.props.innerRadius,a,0),outerRadius:lc(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),JD(eN,"getComposedData",(function(e){var t=e.item,n=e.offset,r=eN.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=eN.parseCoordinateOfPie(t,n),g=eN.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Xs(u)&&Xs(f)?(Vx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Xs(u)&&(Vx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==hT(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=hT(t,v,0);return e+(ac(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=hT(e,v,0),o=hT(e,l,t),s=(ac(r)?r:0)/_,u=(n=t?b.endAngle+oc(g)*c*(0!==r?1:0):a)+oc(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=YT(h.cx,h.cy,y,f);return b=WD(WD(WD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:hT(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:oc(g)*c})})));return WD(WD({},h),{},{sectors:m,data:r})}));var tN={};var nN=function(e){return e&&e.length?e[0]:void 0};({get exports(){return tN},set exports(e){tN=e}}).exports=nN;var rN=N(tN);function oN(e){return oN="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},oN(e)}function iN(){return iN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iN.apply(this,arguments)}function aN(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 sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(n),!0).forEach((function(t){dN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hN(r.key),r)}}function uN(e,t){return uN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uN(e,t)}function lN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pN(e);if(t){var o=pN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fN(e)}(this,n)}}function fN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pN(e){return pN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pN(e)}function dN(e,t,n){return(t=hN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e){var t=function(e,t){if("object"!==oN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oN(t)?t:String(t)}var gN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uN(e,t)}(a,x);var t,n,r,i=lN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dN(fN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),dN(fN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),dN(fN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),dN(fN(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),dN(fN(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,i=Rc(this.props),s=Rc(n),c=e.map((function(e,t){var o=sN(sN(sN({key:"dot-".concat(t),r:3},i),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,o)}));return o.createElement(Gc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,i=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=o.isValidElement(r)?o.cloneElement(r,sN(sN({},this.props),{},{points:e})):Ri(r)?r(sN(sN({},this.props),{},{points:e})):o.createElement(CM,iN({},Rc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),o.createElement(Gc,{className:"recharts-radar-polygon"},t,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=u&&u.length/n.length,i=n.map((function(e,t){var n=u&&u[Math.floor(t*o)];if(n){var i=pc(n.x,e.x),a=pc(n.y,e.y);return sN(sN({},e),{},{x:i(r),y:a(r)})}var s=pc(e.cx,e.x),c=pc(e.cy,e.y);return sN(sN({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&uO(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,i=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=li("recharts-radar",n);return o.createElement(Gc,{className:s},this.renderPolygon(),(!i||a)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,iN({},t,{className:"recharts-radar-dot"}))}}],n&&cN(t.prototype,n),r&&cN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();dN(gN,"displayName","Radar"),dN(gN,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),dN(gN,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=hT(e,n.dataKey,r),f=hT(e,o),p=n.scale(l)+(i||0),d=Li(f)?vP(f):f,h=Xs(d)?void 0:t.scale(d);Li(f)&&f.length>=2&&(c=!0),u.push(sN(sN({},YT(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(Li(e.value)){var n=rN(e.value),r=Xs(n)?void 0:t.scale(n);l.push(sN(sN({},e),{},{radius:r},YT(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var yN=["shape","activeShape","activeIndex","cornerRadius"],vN=["value","background"];function mN(e){return mN="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},mN(e)}function bN(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 wN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bN(Object(n),!0).forEach((function(t){EN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AN(r.key),r)}}function ON(e,t){return ON=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ON(e,t)}function CN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kN(e);if(t){var o=kN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SN(e)}(this,n)}}function SN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kN(e){return kN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kN(e)}function EN(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=function(e,t){if("object"!==mN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mN(t)?t:String(t)}var jN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ON(e,t)}(a,x);var t,n,r,i=CN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EN(SN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),EN(SN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),EN(SN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return oc(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=xN(n,yN),u=Rc(c);return e.map((function(e,n){var l=wN(wN(wN(wN({},u),{},{cornerRadius:s},e),xc(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.startAngle,e.startAngle),i=pc(n.endAngle,e.endAngle);return wN(wN({},e),{},{startAngle:o(r),endAngle:i(r)})}var a=e.endAngle,s=e.startAngle,c=pc(s,a);return wN(wN({},e),{},{endAngle:c(r)})}));return o.createElement(Gc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Rc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=xN(e,vN);if(!i)return null;var c=wN(wN(wN(wN(wN({cornerRadius:n},s),{},{fill:"#eee"},i),r),xc(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=li("recharts-area",r);return o.createElement(Gc,{className:c},i&&o.createElement(Gc,{className:"recharts-radial-bar-background"},this.renderBackground(n)),o.createElement(Gc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&AP.renderCallByParent(wN({},this.props),n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(BP,t)}}],n&&_N(t.prototype,n),r&&_N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();EN(jN,"displayName","RadialBar"),EN(jN,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),EN(jN,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=ET(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=NT({numericAxis:w}),O=Tc(m,qx);return{data:s.map((function(e,s){var l,v,m,w,C,S;if(u?l=AT(u[p+s],x):(l=hT(e,c),Li(l)||(l=[_,l])),"radial"===y){v=DT({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),C=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=C-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))C+=oc(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),C=(w=DT({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=oc(E||b)*(Math.abs(b)-Math.abs(E))}return wN(wN(wN(wN({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:C},O&&O[s]&&O[s].props),{},{tooltipPayload:[HT(t,e)],tooltipPosition:YT(h,g,(v+m)/2,(w+C)/2)})})),layout:y}}));var TN=Math.ceil,PN=Math.max;var MN=_x,DN=1/0,NN=17976931348623157e292;var IN=function(e){return e?(e=MN(e))===DN||e===-DN?(e<0?-1:1)*NN:e==e?e:0:0===e?e:0},RN=function(e,t,n,r){for(var o=-1,i=PN(TN((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},LN=Tw,BN=IN;var FN=function(e){return function(t,n,r){return r&&"number"!=typeof r&&LN(t,n,r)&&(n=r=void 0),t=BN(t),void 0===n?(n=t,t=0):n=BN(n),r=void 0===r?t<n?1:-1:BN(r),RN(t,n,r,e)}}();function zN(e){return zN="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},zN(e)}function HN(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 VN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HN(Object(n),!0).forEach((function(t){UN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KN=["Webkit","Moz","O","ms"];function $N(e){return $N="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},$N(e)}function WN(){return WN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WN.apply(this,arguments)}function qN(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 GN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qN(Object(n),!0).forEach((function(t){eI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tI(r.key),r)}}function YN(e,t){return YN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YN(e,t)}function XN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QN(e);if(t){var o=QN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JN(e)}(this,n)}}function JN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QN(e){return QN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QN(e)}function eI(e,t,n){return(t=tI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tI(e){var t=function(e,t){if("object"!==$N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$N(t)?t:String(t)}var nI=function(e){return e.changedTouches&&!!e.changedTouches.length},rI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YN(e,t)}(a,x);var t,n,r,i=XN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),eI(JN(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),eI(JN(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),eI(JN(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),eI(JN(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),eI(JN(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),eI(JN(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),eI(JN(t),"handleSlideDragStart",(function(e){var n=nI(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(JN(t),"startX"),endX:t.handleTravellerDragStart.bind(JN(t),"endX")},t.state={},t}return t=a,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=hT(n[e],o,e);return Ri(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=nI(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((eI(t={},o,s+y),eI(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,s=e.stroke;return o.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=p.only(s);return u?o.cloneElement(u,{x:t,y:n,width:r,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=GN(GN({},Rc(this.props)),{},{x:u,y:r,width:i,height:s});return o.createElement(Gc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:r,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return o.createElement(Gc,{className:"recharts-brush-texts"},o.createElement(sO,WN({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},f),this.getTextOfTick(t)),o.createElement(sO,WN({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!ac(i)||!ac(a)||!ac(s)||!ac(c)||s<=0||c<=0)return null;var y=li("recharts-brush",n),v=1===o.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=KN.reduce((function(e,r){return VN(VN({},e),{},UN({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return o.createElement(Gc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,s=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return GN({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=rC().domain(FN(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],n&&ZN(t.prototype,n),r&&ZN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();eI(rI,"displayName","Brush"),eI(rI,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oI=Kb;var iI=hu,aI=Kp,sI=function(e,t){var n;return oI(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},cI=Li,uI=Tw;var lI=function(e,t,n){var r=cI(e)?iI:sI;return n&&uI(e,t,n)&&(t=void 0),r(e,aI(t))},fI=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var pI=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},dI=Kb;var hI=pI,gI=function(e,t){var n=!0;return dI(e,(function(e,r,o){return n=!!t(e,r,o)})),n},yI=Kp,vI=Li,mI=Tw;var bI=function(e,t,n){var r=vI(e)?hI:gI;return n&&mI(e,t,n)&&(t=void 0),r(e,yI(t))},wI=hw;var xI=function(e,t,n){"__proto__"==t&&wI?wI(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},_I=xI,OI=Vb,CI=Kp;var SI=function(e,t){var n={};return t=CI(t),OI(e,(function(e,r,o){_I(n,r,t(e,r,o))})),n},kI=["value","background"];function EI(e){return EI="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},EI(e)}function AI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jI.apply(this,arguments)}function TI(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 PI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TI(Object(n),!0).forEach((function(t){LI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BI(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function NI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RI(e);if(t){var o=RI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return II(e)}(this,n)}}function II(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RI(e){return RI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RI(e)}function LI(e,t,n){return(t=BI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BI(e){var t=function(e,t){if("object"!==EI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EI(t)?t:String(t)}var FI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DI(e,t)}(a,x);var t,n,r,i=NI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LI(II(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),LI(II(e),"id",uc("recharts-bar-")),LI(II(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),LI(II(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=Rc(this.props);return e&&e.map((function(e,i){var s=PI(PI(PI({},r),e),{},{index:i});return o.createElement(Gc,jI({className:"recharts-bar-rectangle"},xc(t.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return o.createElement(Mb,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var o=pc(n.x,e.x),a=pc(n.y,e.y),s=pc(n.width,e.width),c=pc(n.height,e.height);return PI(PI({},e),{},{x:o(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===r){var u=pc(0,e.height)(i);return PI(PI({},e),{},{y:e.y+e.height-u,height:u})}var f=pc(0,e.width)(i);return PI(PI({},e),{},{width:f})}));return o.createElement(Gc,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Rc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=AI(t,kI);if(!o)return null;var s=PI(PI(PI(PI(PI({},i),{},{fill:"#eee"},o),n),xc(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,s=n.layout,c=Tc(n.children,sT);if(!c)return null;var u="vertical"===s?r[0].height/2:r[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hT(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,f,c.map((function(e,t){return o.cloneElement(e,{key:"error-bar-".concat(t),data:r,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=li("recharts-bar",r),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Xs(d)?this.id:d;return o.createElement(Gc,{className:g},y?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(v)},o.createElement("rect",{x:s,y:c,width:u,height:l}))):null,o.createElement(Gc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,t)}}],n&&MI(t.prototype,n),r&&MI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function zI(e){return zI="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},zI(e)}function HI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$I(r.key),r)}}function VI(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 UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VI(Object(n),!0).forEach((function(t){KI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KI(e,t,n){return(t=$I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $I(e){var t=function(e,t){if("object"!==zI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zI(t)?t:String(t)}LI(FI,"displayName","Bar"),LI(FI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),LI(FI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=ET(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=NT({numericAxis:b}),_=Tc(v,qx),O=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=AT(u[l+t],w):(r=hT(e,y),Li(r)||(r=[x,r])),"horizontal"===h){var O,C=[a.scale(r[0]),a.scale(r[1])],S=C[0],k=C[1];f=DT({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(O=null!=k?k:S)&&void 0!==O?O:void 0,g=d.size;var E=S-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var A=oc(v||m)*(Math.abs(m)-Math.abs(v));p-=A,v+=A}}else{var j=[i.scale(r[0]),i.scale(r[1])],T=j[0],P=j[1];if(f=T,p=DT({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=oc(g||m)*(Math.abs(m)-Math.abs(g))}return PI(PI(PI({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[HT(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return PI({data:O,layout:h},p)}));var WI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Pc(c,FI);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var O=v[1]-v[0],C=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(C=Math.min((e||0)-(S[t-1]||0),C))}));var k=C/O,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=lc(e.barCategoryGap,k*E),j=k*E/2;c=j-A-(j-A)/E*A}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=CT(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),kT(P);var D=PT(P,UI(UI({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var N=UI(UI(UI({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return N.bandSize=FT(N,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*N.width):l[_]+=(h?-1:1)*N.height,UI(UI({},i),{},KI({},a,N))}),{})},qI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},GI=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return qI({x:t,y:n},{x:r,y:o})},ZI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&HI(t.prototype,n),r&&HI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();KI(ZI,"EPS",1e-4);var YI=function(e){var t=Object.keys(e).reduce((function(t,n){return UI(UI({},t),{},KI({},n,ZI.create(e[n])))}),{});return UI(UI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return SI(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return bI(e,(function(e,n){return t[n].isInRange(e)}))}})};function XI(e){return XI="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},XI(e)}function JI(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 QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JI(Object(n),!0).forEach((function(t){eR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==XI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nR(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 nR(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 nR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rR(){return rR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rR.apply(this,arguments)}var oR=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement("line",rR({},t,{className:"recharts-reference-line-line"}))},iR=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(fI(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(fI(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return fI(o,"discard")&&lI(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function aR(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Vx(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=YI({x:i.scale,y:a.scale}),p=sc(t),d=sc(n),h=r&&2===r.length,g=iR(f,p,d,h,e);if(!g)return null;var y=tR(g,2),v=y[0],m=v.x,b=v.y,w=y[1],x=w.x,_=w.y,O=QI(QI({clipPath:fI(e,"hidden")?"url(#".concat(l,")"):void 0},Rc(e,!0)),{},{x1:m,y1:b,x2:x,y2:_});return o.createElement(Gc,{className:li("recharts-reference-line",c)},oR(s,O),hP.renderCallByParent(e,GI({x1:m,y1:b,x2:x,y2:_})))}function sR(e){return sR="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},sR(e)}function cR(){return cR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cR.apply(this,arguments)}function uR(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 lR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){fR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==sR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}aR.displayName="ReferenceLine",aR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var pR=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=YI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return fI(e,"discard")&&!i.isInRange(a)?null:a};function dR(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,s=sc(t),c=sc(n);if(Vx(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=pR(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=lR(lR({clipPath:fI(e,"hidden")?"url(#".concat(a,")"):void 0},Rc(e,!0)),{},{cx:l,cy:f});return o.createElement(Gc,{className:li("recharts-reference-dot",d)},dR.renderDot(p,h),hP.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function hR(e){return hR="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},hR(e)}function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gR.apply(this,arguments)}function yR(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 vR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yR(Object(n),!0).forEach((function(t){mR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dR.displayName="ReferenceDot",dR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},dR.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,cR({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var bR=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=YI({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!fI(o,"discard")||f.isInRange(p)&&f.isInRange(d)?qI(p,d):null};function wR(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Vx(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=sc(t),l=sc(n),f=sc(r),p=sc(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=bR(u,l,f,p,e);if(!h&&!d)return null;var g=fI(e,"hidden")?"url(#".concat(c,")"):void 0;return o.createElement(Gc,{className:li("recharts-reference-area",a)},wR.renderRect(d,vR(vR({clipPath:g},Rc(e,!0)),h)),hP.renderCallByParent(e,h))}function xR(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function _R(e){return _R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_R(e)}function OR(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 CR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OR(Object(n),!0).forEach((function(t){SR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_R(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kR(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?H_(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?oc(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=Ri(i)?i(x.value,b-1):x.value,O=H_(_,{fontSize:l,letterSpacing:f})[y]+m,C=w*(x.coordinate+w*O/2-r);v[b-1]=x=CR(CR({},x),{},{tickCoord:C>0?x.coordinate-C*w:x.coordinate}),w*(x.tickCoord-w*O/2-n)>=0&&w*(x.tickCoord+w*O/2-r)<=0&&(r=x.tickCoord-w*(O/2+c),v[b-1]=CR(CR({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=Ri(i)?i(E.value,k):E.value,j=H_(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*j/2-n);v[k]=E=CR(CR({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=CR(CR({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*j/2-n)>=0&&w*(E.tickCoord+w*j/2-r)<=0&&(n=E.tickCoord+w*(j/2+c),v[k]=CR(CR({},E),{},{isShow:!0}))}return v}function ER(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit;if(!o||!o.length||!r)return[];if(ac(c)||Gw.isSsr)return function(e,t){return xR(e,t+1)}(o,"number"==typeof c&&ac(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=xR(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=xR(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=kR({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?kR({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?H_(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?oc(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=Ri(o)?o(x.value,m-w-1):x.value,O=H_(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var C=b*(x.coordinate+b*O/2-n);v[w]=x=CR(CR({},x),{},{tickCoord:C>0?x.coordinate-C*b:x.coordinate})}else v[w]=x=CR(CR({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*O/2-t)>=0&&b*(x.tickCoord+b*O/2-n)<=0&&(n=x.tickCoord-b*(O/2+s),v[w]=CR(CR({},x),{},{isShow:!0}))}return v}({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}wR.displayName="ReferenceArea",wR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},wR.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,gR({},t,{className:"recharts-reference-area-rect"}))};var AR=["viewBox"],jR=["viewBox"],TR=["ticks"];function PR(e){return PR="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},PR(e)}function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MR.apply(this,arguments)}function DR(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 NR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DR(Object(n),!0).forEach((function(t){zR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HR(r.key),r)}}function LR(e,t){return LR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LR(e,t)}function BR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FR(e);if(t){var o=FR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function FR(e){return FR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FR(e)}function zR(e,t,n){return(t=HR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e){var t=function(e,t){if("object"!==PR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PR(t)?t:String(t)}var VR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LR(e,t)}(a,O);var t,n,r,i=BR(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=IR(e,AR),o=this.props,i=o.viewBox,a=IR(o,jR);return!hc(n,i)||!hc(r,a)||!hc(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=ac(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=NR(NR(NR({},Rc(this.props)),Rc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=NR(NR({},u),{},{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=NR(NR({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+i})}return o.createElement("line",MR({},u,{className:li("recharts-cartesian-axis-line",Ys(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=ER(NR(NR({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Rc(this.props),y=Rc(u),v=NR(NR({},g),{},{fill:"none"},Rc(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),i=n.line,m=n.tick,b=NR(NR(NR(NR({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return o.createElement(Gc,MR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},xc(r.props,e,t)),s&&o.createElement("line",MR({},v,i,{className:li("recharts-cartesian-axis-tick-line",Ys(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(Ri(l)?l(e.value,t):e.value).concat(f||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=IR(c,TR),f=u;return Ri(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||i<=0||!f||!f.length?null:o.createElement(Gc,{className:li("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),hP.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,MR({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&RR(t.prototype,n),r&&RR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();zR(VR,"displayName","CartesianAxis"),zR(VR,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var UR=["x1","y1","x2","y2","key"];function KR(e){return KR="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},KR(e)}function $R(){return $R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$R.apply(this,arguments)}function WR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qR(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 GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(n),!0).forEach((function(t){QR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eL(r.key),r)}}function YR(e,t){return YR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YR(e,t)}function XR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JR(e);if(t){var o=JR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function JR(e){return JR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JR(e)}function QR(e,t,n){return(t=eL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){var t=function(e,t){if("object"!==KR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KR(t)?t:String(t)}var tL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YR(e,t)}(a,x);var t,n,r,i=XR(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,i=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var o=GR(GR({},t.props),{},{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,i=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var o=GR(GR({},t.props),{},{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,c=n.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:i+s-e;if(l<=0)return null;var f=n%t.length;return o.createElement("rect",{key:"react-".concat(n),x:e,y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,c=n.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return o.createElement("rect",{key:"react-".concat(n),y:e,x:i,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,i=t.y,a=t.width,s=t.height;return o.createElement("rect",{x:r,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!ac(r)||r<=0||!ac(i)||i<=0||!ac(t)||t!==+t||!ac(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!Ri(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!Ri(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(Ri(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,s=t.y2,c=t.key,u=WR(t,UR);n=o.createElement("line",$R({},Rc(u),{x1:r,y1:i,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&ZR(t.prototype,n),r&&ZR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();QR(tL,"displayName","CartesianGrid"),QR(tL,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var nL=["type","layout","connectNulls","ref"];function rL(e){return rL="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},rL(e)}function oL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iL(){return iL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iL.apply(this,arguments)}function aL(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 sL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aL(Object(n),!0).forEach((function(t){gL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cL(e){return function(e){if(Array.isArray(e))return uL(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 uL(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 uL(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 uL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yL(r.key),r)}}function fL(e,t){return fL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fL(e,t)}function pL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hL(e);if(t){var o=hL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dL(e)}(this,n)}}function dL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hL(e){return hL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hL(e)}function gL(e,t,n){return(t=yL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yL(e){var t=function(e,t){if("object"!==rL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rL(t)?t:String(t)}var vL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fL(e,t)}(a,x);var t,n,r,i=pL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gL(dL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),gL(dL(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(cL(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(cL(a.repeat(n,o)),cL(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),gL(dL(e),"id",uc("recharts-line-")),gL(dL(e),"pathRef",(function(t){e.mainCurve=t})),gL(dL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),gL(dL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,s=n.layout,c=Tc(n.children,sT);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hT(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,l,c.map((function(e,t){return o.cloneElement(e,{key:"bar-".concat(t),data:r,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,i=n.points,s=n.dataKey,c=Rc(this.props),u=Rc(r,!0),l=i.map((function(e,t){var n=sL(sL(sL({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,iL({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=oL(i,nL),l=sL(sL(sL({},Rc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return o.createElement(QP,iL({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return o.createElement(Mb,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=pc(r.x,e.x),a=pc(r.y,e.y);return sL(sL({},e),{},{x:i(o),y:a(o)})}if(p){var c=pc(2*d,e.x),u=pc(h/2,e.y);return sL(sL({},e),{},{x:c(o),y:u(o)})}return sL(sL({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=pc(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!uO(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=li("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Xs(d)?this.id:d;return o.createElement(Gc,{className:y},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(m)},o.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||n)&&this.renderDots(v,m),(!p||h)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(cL(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(cL(r),cL(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(Ri(e))n=e(t);else{var r=li("recharts-line-dot",e?e.className:"");n=o.createElement(PM,iL({},t,{className:r}))}return n}}],n&&lL(t.prototype,n),r&&lL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();gL(vL,"displayName","Line"),gL(vL,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),gL(vL,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return sL({points:c.map((function(e,t){var c=hT(e,a);return"horizontal"===l?{x:MT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Xs(c)?null:r.scale(c),value:c,payload:e}:{x:Xs(c)?null:n.scale(c),y:MT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var mL=["layout","type","stroke","connectNulls","isRange","ref"];function bL(e){return bL="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},bL(e)}function wL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xL(){return xL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xL.apply(this,arguments)}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 OL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_L(Object(n),!0).forEach((function(t){jL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TL(r.key),r)}}function SL(e,t){return SL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SL(e,t)}function kL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AL(e);if(t){var o=AL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return EL(e)}(this,n)}}function EL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AL(e){return AL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AL(e)}function jL(e,t,n){return(t=TL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TL(e){var t=function(e,t){if("object"!==bL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bL(t)?t:String(t)}var PL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SL(e,t)}(a,x);var t,n,r,i=kL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jL(EL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),jL(EL(e),"id",uc("recharts-area-")),jL(EL(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),jL(EL(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=Rc(this.props),f=Rc(s,!0),p=c.map((function(e,t){var n=OL(OL(OL({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,xL({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=yO(r.map((function(e){return e.y||0})));return ac(n)&&"number"==typeof n?u=Math.max(n,u):n&&Li(n)&&n.length&&(u=Math.max(yO(n.map((function(e){return e.y||0}))),u)),ac(u)?o.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=yO(r.map((function(e){return e.x||0})));return ac(n)&&"number"==typeof n?u=Math.max(n,u):n&&Li(n)&&n.length&&(u=Math.max(yO(n.map((function(e){return e.x||0}))),u)),ac(u)?o.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=wL(i,mL);return o.createElement(Gc,{clipPath:n?"url(#clipPath-".concat(r,")"):null},o.createElement(QP,xL({},Rc(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&o.createElement(QP,xL({},Rc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&o.createElement(QP,xL({},Rc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return o.createElement(Mb,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=pc(r.x,e.x),i=pc(r.y,e.y);return OL(OL({},e),{},{x:o(s),y:i(s)})}return e}));return c=ac(a)&&"number"==typeof a?pc(h,a)(s):Xs(a)||rc(a)?pc(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=pc(r.x,e.x),i=pc(r.y,e.y);return OL(OL({},e),{},{x:o(s),y:i(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return o.createElement(Gc,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),o.createElement(Gc,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(i,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!uO(s,r)||!uO(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=li("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Xs(d)?this.id:d;return o.createElement(Gc,{className:y},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(m)},o.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&CL(t.prototype,n),r&&CL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();jL(PL,"displayName","Area"),jL(PL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),jL(PL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(ac(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),jL(PL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=PL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=hT(e,u);g?n=l[f+t]:Li(n=r)?v=!0:n=[y,n];var p=Xs(n[1])||g&&Xs(r);return"horizontal"===h?{x:MT({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:MT({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Xs(Ys(e,"value[0]"))||Xs(Ys(e,"y"))?null:i.scale(Ys(e,"value[0]"))}:{x:Xs(Ys(e,"value[0]"))?null:o.scale(Ys(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),OL({points:m,baseLine:t,layout:h,isRange:v},d)})),jL(PL,"renderDotItem",(function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,xL({},t,{className:"recharts-area-dot"}))}));var ML=function(){return null};function DL(e){return DL="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},DL(e)}function NL(){return NL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NL.apply(this,arguments)}function IL(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 RL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IL(Object(n),!0).forEach((function(t){VL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UL(r.key),r)}}function BL(e,t){return BL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BL(e,t)}function FL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===DL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zL(e)}(this,n)}}function zL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HL(e){return HL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HL(e)}function VL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=function(e,t){if("object"!==DL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DL(t)?t:String(t)}ML.displayName="ZAxis",ML.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var KL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BL(e,t)}(a,x);var t,n,r,i=FL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VL(zL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),VL(zL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),VL(zL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),VL(zL(e),"id",uc("recharts-scatter-")),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,s=n.activeIndex,c=Rc(this.props);return e.map((function(e,n){var u=RL(RL({key:"symbol-".concat(n)},c),e);return o.createElement(Gc,NL({className:"recharts-scatter-symbol"},xc(t.props,e,n),{key:"symbol-".concat(n),role:"img"}),a.renderSymbolItem(s===n?i:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.cx,e.cx),i=pc(n.cy,e.cy),a=pc(n.size,e.size);return RL(RL({},e),{},{cx:o(r),cy:i(r),size:a(r)})}var s=pc(0,e.size);return RL(RL({},e),{},{size:s(r)})}));return o.createElement(Gc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=Tc(e.children,sT);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:hT(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:hT(e,t)}}return i.map((function(e,i){var c=e.props.direction;return o.cloneElement(e,{key:i,data:t,xAxis:n,yAxis:r,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,i=n.line,a=n.lineType,s=n.lineJointType,c=Rc(this.props),u=Rc(i);if("joint"===a)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=RL(RL(RL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=o.isValidElement(i)?o.cloneElement(i,y):Ri(i)?i(y):o.createElement(QP,NL({},y,{type:s})),o.createElement(Gc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=li("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Xs(p)?this.id:p;return o.createElement(Gc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(v)},o.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),o.createElement(Gc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,t){var n;return o.isValidElement(e)?n=o.cloneElement(e,t):Ri(e)?n=e(t):"string"==typeof e&&(n=o.createElement(pg,NL({},t,{type:e}))),n}}],n&&LL(t.prototype,n),r&&LL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();VL(KL,"displayName","Scatter"),VL(KL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),VL(KL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Tc(o.props.children,qx),f=Xs(t.dataKey)?o.props.dataKey:t.dataKey,p=Xs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:ML.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=hT(e,f),h=hT(e,p),m=!Xs(d)&&hT(e,d)||"-",b=[{name:Xs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Xs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=MT({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=MT({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,O=Math.sqrt(Math.max(_,0)/Math.PI);return RL(RL({},e),{},{cx:w,cy:x,x:w-O,y:x-O,xAxis:t,yAxis:n,zAxis:r,width:2*O,height:2*O,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return RL({points:m},c)}));var $L=function(){return null};$L.displayName="XAxis",$L.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var WL=function(){return null};WL.displayName="YAxis",WL.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var qL=Kp,GL=Yl,ZL=ef;var YL=function(e){return function(t,n,r){var o=Object(t);if(!GL(t)){var i=qL(n);t=ZL(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},XL=IN;var JL=$p,QL=Kp,eB=function(e){var t=XL(e),n=t%1;return t==t?n?t-n:t:0},tB=Math.max;var nB=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:eB(n);return o<0&&(o=tB(r+o,0)),JL(e,QL(t),o)},rB=YL(nB),oB=ji,iB=Bi,aB="[object Boolean]";var sB=function(e){return!0===e||!1===e||iB(e)&&oB(e)==aB};function cB(e){return function(e){if(Array.isArray(e))return uB(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 uB(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 uB(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 uB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lB=function(e,t,n,r,o){var i=Tc(e,aR),a=Tc(e,dR),s=[].concat(cB(i),cB(a)),c=Tc(e,wR),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&fI(t.props,"extendDomain")&&ac(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&fI(t.props,"extendDomain")&&ac(t.props[p])&&ac(t.props[d])){var r=t.props[p],o=t.props[d];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ac(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},fB={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return fB},set exports(e){fB=e}});var pB=new fB;pB.setMaxListeners&&pB.setMaxListeners(10);var dB="recharts.syncMouseEvents",hB=["item"],gB=["children","className","width","height","style","compact","title","desc"];function yB(e){return yB="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},yB(e)}function vB(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||kB(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 mB(){return mB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mB.apply(this,arguments)}function bB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PB(r.key),r)}}function xB(e,t){return xB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xB(e,t)}function _B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CB(e);if(t){var o=CB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OB(e)}(this,n)}}function OB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CB(e){return CB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CB(e)}function SB(e){return function(e){if(Array.isArray(e))return EB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kB(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 kB(e,t){if(e){if("string"==typeof e)return EB(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)?EB(e,t):void 0}}function EB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AB(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 jB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AB(Object(n),!0).forEach((function(t){TB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TB(e,t,n){return(t=PB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=function(e,t){if("object"!==yB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yB(t)?t:String(t)}var MB={xAxis:["bottom","top"],yAxis:["left","right"]},DB={x:0,y:0},NB=Number.isFinite?Number.isFinite:isFinite,IB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,RB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,LB=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(SB(e),SB(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&ac(o)&&ac(i)?e.slice(o,i+1):[]};function BB(e){return"number"===e?[0,"auto"]:void 0}var FB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=LB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=dc(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(SB(e),[HT(t,o)]):e}),[])},zB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(oc(l-u)!==oc(f-l)){var d=[];if(oc(f-l)===oc(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=FB(e,t,u,l),p=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return jB(jB(jB({},r),YT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return jB(jB(jB({},r),YT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return DB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},HB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=wT(u,o),d=n.reduce((function(t,n){var d,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,_=n.props[i];if(t[_])return t;var O,C,S,k=LB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===_})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&ac(r)&&ac(o))return!0}return!1})(n.props.domain,v,g)&&(O=BT(n.props.domain,null,v),!p||"number"!==g&&"auto"===b||(S=gT(k,y,"category")));var A=BB(g);if(!O||0===O.length){var j,T=null!==(j=n.props.domain)&&void 0!==j?j:A;if(y){if(O=gT(k,y,g),"category"===g&&p){var P=function(e){if(!Li(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(O);m&&P?(C=O,O=FN(0,E)):m||(O=zT(T,O,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(SB(e),[t])}),[]))}else if("category"===g)O=m?O.filter((function(e){return""!==e&&!Xs(e)})):zT(T,O,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Xs(t)?e:[].concat(SB(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return mT(e,t,n,o,r)})).filter((function(e){return!Xs(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),y,o,u);M&&(O=M)}!p||"number"!==g&&"auto"===b||(S=gT(k,y,"category"))}else O=p?FN(0,E):a&&a[_]&&a[_].hasStack&&"number"===g?"expand"===f?[0,1]:IT(a[_].stackGroups,s,c):bT(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),g,u,!0);if("number"===g)O=lB(l,O,_,o,w),T&&(O=BT(T,O,v));else if("category"===g&&T){var D=T;O.every((function(e){return D.indexOf(e)>=0}))&&(O=D)}}return jB(jB({},t),{},TB({},_,jB(jB({},n.props),{},{axisType:o,domain:O,categoricalDomain:S,duplicateDomain:C,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:A,isCategorical:p,layout:u})))}),{});return d},VB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=Tc(u,o),p={};return f&&f.length?p=HB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=LB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=wT(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=BB("number");return e[y]?e:(h++,d?g=FN(0,p):a&&a[y]&&a[y].hasStack?(g=IT(a[y].stackGroups,s,c),g=lB(l,g,y,o)):(g=BT(v,bT(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=lB(l,g,y,o)),jB(jB({},e),{},TB({},y,jB(jB({axisType:o},r.defaultProps),{},{hide:!0,orientation:Ys(MB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},UB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Pc(r,rI);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Xs(o)&&o}},KB=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},$B=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=Pc(u,rI),p=Pc(u,Bg),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:jB(jB({},e),{},TB({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:jB(jB({},e),{},TB({},r,Ys(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=jB(jB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||rI.defaultProps.height),p&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=vT({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&ac(e[f])&&(u=pT(pT({},e),{},dT({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&ac(e[p])&&(u=pT(pT({},e),{},dT({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),jB(jB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},WB=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,s=void 0===i?"axis":i,c=e.validateTooltipEventTypes,u=void 0===c?["axis"]:c,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=KB(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=kc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return kc(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Xs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=LB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],O=n.props["".concat(y,"Id")],C=l.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return jB(jB({},e),{},(TB(o={},r.axisType,s),TB(o,"".concat(r.axisType,"Ticks"),_T(s)),o))}),{}),S=C[y],k=C["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(sc(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),A=kc(n.type).indexOf("Bar")>=0,j=FT(S,k),T=[];if(A){var P,M,D=Xs(x)?d:x,N=null!==(P=null!==(M=FT(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,u=lc(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(uT(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=lc(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(uT(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:p,bandSize:N!==j?N:j,sizeList:m[O],maxBarSize:D}),N!==j&&(T=T.map((function(e){return jB(jB({},e),{},{position:jB(jB({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:jB(jB({},B(jB(jB({},C),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:j,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},TB(I,g,C[g]),TB(I,y,C[y]),TB(I,"animationId",i),I)),childIndex:(R=n,L=e.children,jc(L).indexOf(R)),item:n})})),b},v=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Mc({props:o}))return null;var c=o.children,u=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=KB(u),v=g.numericAxisName,m=g.cateAxisName,b=Tc(c,r),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(sc(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[uc("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return pT(pT({},e),{},dT({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return pT(pT({},t),{},dT({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:TT(e,a.items,o)}))}),{})),pT(pT({},t),{},dT({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),x=l.reduce((function(e,t){var n="".concat(t.axisType,"Map");return jB(jB({},e),{},TB({},n,VB(o,jB(jB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=$B(jB(jB({},x),{},{props:o,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(o,x[e],_,e.replace("Map",""),n)}));var O,C,S=x["".concat(m,"Map")],k=(O=fc(S),{tooltipTicks:C=_T(O,!1,!0),orderedTooltipTicks:Nw(C,(function(e){return e.coordinate})),tooltipAxis:O,tooltipAxisBandSize:FT(O,C)}),E=y(o,jB(jB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return jB(jB({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xB(e,t)}(l,O);var t,r,i,c=_B(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),TB(OB(t=c.call(this,e)),"clearDeferId",(function(){!Xs(t.deferId)&&RB&&RB(t.deferId),t.deferId=null})),TB(OB(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(jB({legendBBox:e},v({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},jB(jB({},t.state),{},{legendBBox:e}))))}})),TB(OB(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=IB&&IB(t.applySyncEvent.bind(OB(t),r)))})),TB(OB(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return jB({dataStartIndex:n,dataEndIndex:r},v({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),TB(OB(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=jB(jB({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)}})),TB(OB(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?jB(jB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)})),TB(OB(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),TB(OB(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),TB(OB(t),"handleMouseMove",(function(e){e&&Ri(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),TB(OB(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),Ri(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),TB(OB(t),"handleOuterEvent",(function(e){var n=zc(e),r=Ys(t.props,"".concat(n));n&&Ri(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),TB(OB(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=jB(jB({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)}})),TB(OB(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;Ri(n)&&n(t.getMouseInfo(e),e)})),TB(OB(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;Ri(n)&&n(t.getMouseInfo(e),e)})),TB(OB(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),TB(OB(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),TB(OB(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),TB(OB(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return xT(ER(jB(jB(jB({},VR.defaultProps),t),{},{ticks:_T(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),TB(OB(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return xT(ER(jB(jB(jB({},VR.defaultProps),t),{},{ticks:_T(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),TB(OB(t),"axesTicksGenerator",(function(e){return _T(e,!0)})),TB(OB(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,i=r.activeCoordinate,s=r.activePayload,c=r.offset,u=r.activeTooltipIndex,l=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!i||"ScatterChart"!==n&&"axis"!==l)return null;var f,p=t.props.layout,g=QP;if("ScatterChart"===n)f=i,g=FM;else if("BarChart"===n)f=t.getCursorRectangle(),g=fM;else if("radial"===p){var y=t.getCursorPoints(),v=y.cx,m=y.cy,b=y.radius;f={cx:v,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},g=BP}else f={points:t.getCursorPoints()},g=QP;var w=e.key||"_recharts-cursor",x=jB(jB(jB(jB({stroke:"#ccc",pointerEvents:"none"},c),f),Rc(e.props.cursor)),{},{payload:s,payloadIndex:u,key:w,className:"recharts-tooltip-cursor"});return d(e.props.cursor)?h(e.props.cursor,x):a(g,x)})),TB(OB(t),"renderPolarAxis",(function(e,n,r){var o=Ys(e,"type.axisType"),i=Ys(t.state,"".concat(o,"Map")),a=i&&i[e.props["".concat(o,"Id")]];return h(e,jB(jB({},a),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:_T(a,!0)}))})),TB(OB(t),"renderXAxis",(function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)})),TB(OB(t),"renderYAxis",(function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)})),TB(OB(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.props,s=a.width,c=a.height,u=fc(r),l=rB(o,(function(e){return bI(e.domain,NB)}))||fc(o),f=e.props||{};return h(e,{key:e.key||"grid",x:ac(f.x)?f.x:i.left,y:ac(f.y)?f.y:i.top,width:ac(f.width)?f.width:i.width,height:ac(f.height)?f.height:i.height,xAxis:u,yAxis:l,offset:i,chartWidth:s,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),TB(OB(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,a=t.state,s=a.radiusAxisMap,c=a.angleAxisMap,u=fc(s),l=fc(c),f=l.cx,p=l.cy,d=l.innerRadius,g=l.outerRadius;return h(e,{polarAngles:Li(o)?o:_T(l,!0).map((function(e){return e.coordinate})),polarRadius:Li(i)?i:_T(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),TB(OB(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,o=n.width,i=n.height,a=t.props.margin||{},s=o-(a.left||0)-(a.right||0),c=vT({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:f});if(!c)return null;var u=c.item,l=bB(c,hB);return h(u,jB(jB({},l),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),TB(OB(t),"renderTooltip",(function(){var e=Pc(t.props.children,sx);if(!e)return null;var n=t.state,r=n.isTooltipActive,o=n.activeCoordinate,i=n.activePayload,a=n.activeLabel,s=n.offset;return h(e,{viewBox:jB(jB({},s),{},{x:s.left,y:s.top}),active:r,label:a,payload:r?i:[],coordinate:o})})),TB(OB(t),"renderBrush",(function(e){var n=t.props,r=n.margin,o=n.data,i=t.state,a=i.offset,s=i.dataStartIndex,c=i.dataEndIndex,u=i.updateId;return h(e,{key:e.key||"_recharts-brush",onChange:OT(t.handleBrushChange,null,e.props.onChange),data:o,x:ac(e.props.x)?e.props.x:a.left,y:ac(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ac(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:c,updateId:"brush-".concat(u)})})),TB(OB(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=OB(t).clipPathId,i=t.state,a=i.xAxisMap,s=i.yAxisMap,c=i.offset,u=e.props,l=u.xAxisId,f=u.yAxisId;return h(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[l],yAxis:s[f],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})})),TB(OB(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=jB(jB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:yT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Rc(u)),wc(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,jB(jB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),TB(OB(t),"renderGraphicChild",(function(e,n,r){var o=t.filterFormatItem(e,n,r);if(!o)return null;var i=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,c=a.tooltipAxis,u=a.activeTooltipIndex,l=a.activeLabel,f=Pc(t.props.children,sx),p=o.props,d=p.points,g=p.isRange,y=p.baseLine,v=o.item.props,m=v.activeDot,b=!v.hide&&s&&f&&m&&u>=0,w={};"axis"!==i&&f&&"click"===f.props.trigger?w={onClick:OT(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==i&&(w={onMouseLeave:OT(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:OT(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=h(e,jB(jB({},o.props),w));if(b){var _,O;if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());_=dc(d,C,l),O=g&&y&&dc(y,C,l)}else _=d[u],O=g&&y&&y[u];if(!Xs(_))return[x].concat(SB(t.renderActivePoints({item:o,activePoint:_,basePoint:O,childIndex:u,isRange:g})))}return g?[x,null,null]:[x,null]})),TB(OB(t),"renderCustomized",(function(e,n,r){return h(e,jB(jB({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Xs(e.id)?uc("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Dx(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,r=[{key:"componentDidMount",value:function(){Xs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Xs(e.syncId)&&!Xs(this.props.syncId)&&this.addListener(),!Xs(e.syncId)&&Xs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Xs(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Pc(this.props.children,sx);if(e&&sB(e.props.shared)){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=fc(s).scale,l=fc(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return jB(jB({},o),{},{xValue:f,yValue:p})}var d=zB(this.state,this.props.data,this.props.layout,i);return d?jB(jB({},o),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Xs(a.cx)||!Xs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[YT(c,u,l,f),YT(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=YT(d,h,g,v),b=YT(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=fc(i);return tP({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Pc(e,sx),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),jB(jB({},wc(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pB.on(dB,this.handleReceiveSyncEvent),pB.setMaxListeners&&pB._maxListeners&&pB.setMaxListeners(pB._maxListeners+1)}},{key:"removeListener",value:function(){pB.removeListener(dB,this.handleReceiveSyncEvent),pB.setMaxListeners&&pB._maxListeners&&pB.setMaxListeners(pB._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Xs(t)||pB.emit(dB,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(Xs(e.dataStartIndex)&&Xs(e.dataEndIndex))if(Xs(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=jB(jB({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),m=p[u]&&p[u].value,b=FB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:DB;this.setState(jB(jB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(jB({dataStartIndex:i,dataEndIndex:a},v({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===kc(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var i=this.props,a=i.width,s=i.height;return o.createElement(VR,mB({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vB(t,2),r=n[0],o=n[1];return jB(jB({},e),{},TB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vB(t,2),r=n[0],o=n[1];return jB(jB({},e),{},TB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=kc(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return lM(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return tP(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!Mc(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=bB(t,gB),p=Rc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return o.createElement(Kc,mB({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Fc(n,d));var h=this.parseEventsOfWrapper();return o.createElement("div",mB({className:li("recharts-wrapper",r),style:jB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),o.createElement(Kc,mB({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Fc(n,d)),this.renderLegend(),this.renderTooltip())}}],r&&wB(t.prototype,r),i&&wB(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(),TB(t,"displayName",n),TB(t,"defaultProps",jB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),TB(t,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Xs(t.updateId)){var u=UB(e);return jB(jB(jB({},u),{},{updateId:0},v(jB(jB({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!hc(c,t.prevMargin)){var l=UB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=jB(jB({},zB(t,n,a)),{},{updateId:t.updateId+1}),d=jB(jB(jB({},l),f),p);return jB(jB(jB({},d),v(jB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!Lc(r,t.prevChildren)){var h=!Xs(n)?t.updateId:t.updateId+1;return jB(jB({updateId:h},v(jB(jB({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),TB(t,"renderActiveDot",(function(e,t){var n;return n=d(e)?h(e,t):Ri(e)?e(t):o.createElement(PM,t),o.createElement(Gc,{className:"recharts-active-dot",key:t.key},n)})),t},qB=WB({chartName:"LineChart",GraphicalChild:vL,axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),GB=WB({chartName:"BarChart",GraphicalChild:FI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),ZB=WB({chartName:"PieChart",GraphicalChild:eN,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var YB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},XB=xI,JB=Fa,QB=Object.prototype.hasOwnProperty;var eF=function(e,t,n){var r=e[t];QB.call(e,t)&&JB(r,n)&&(void 0!==n||t in e)||XB(e,t,n)},tF=eF,nF=xI;var rF=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?nF(n,s,c):tF(n,s,c)}return n},oF=rF,iF=ef;var aF=function(e,t){return e&&oF(t,iF(t),e)};var sF=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},cF=fi,uF=Hl,lF=sF,fF=Object.prototype.hasOwnProperty;var pF=function(e){if(!cF(e))return lF(e);var t=uF(e),n=[];for(var r in e)("constructor"!=r||!t&&fF.call(e,r))&&n.push(r);return n},dF=Fl,hF=pF,gF=Yl;var yF=function(e){return gF(e)?dF(e,!0):hF(e)},vF=rF,mF=yF;var bF=function(e,t){return e&&vF(t,mF(t),e)},wF={};!function(e,t){var n=gi,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return wF},set exports(e){wF=e}},wF);var xF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},_F=rF,OF=rl;var CF=function(e,t){return _F(e,OF(e),t)},SF=Wu,kF=MD,EF=rl,AF=Xu,jF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)SF(t,EF(e)),e=kF(e);return t}:AF,TF=rF,PF=jF;var MF=function(e,t){return TF(e,PF(e),t)},DF=Zu,NF=jF,IF=yF;var RF=function(e){return DF(e,IF,NF)},LF=Object.prototype.hasOwnProperty;var BF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&LF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},FF=_u;var zF=function(e){var t=new e.constructor(e.byteLength);return new FF(t).set(new FF(e)),t},HF=zF;var VF=function(e,t){var n=t?HF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},UF=/\w*$/;var KF=function(e){var t=new e.constructor(e.source,UF.exec(e));return t.lastIndex=e.lastIndex,t},$F=yi?yi.prototype:void 0,WF=$F?$F.valueOf:void 0;var qF=zF;var GF=zF,ZF=VF,YF=KF,XF=function(e){return WF?Object(WF.call(e)):{}},JF=function(e,t){var n=t?qF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},QF="[object Boolean]",ez="[object Date]",tz="[object Map]",nz="[object Number]",rz="[object RegExp]",oz="[object Set]",iz="[object String]",az="[object Symbol]",sz="[object ArrayBuffer]",cz="[object DataView]",uz="[object Float32Array]",lz="[object Float64Array]",fz="[object Int8Array]",pz="[object Int16Array]",dz="[object Int32Array]",hz="[object Uint8Array]",gz="[object Uint8ClampedArray]",yz="[object Uint16Array]",vz="[object Uint32Array]";var mz=function(e,t,n){var r=e.constructor;switch(t){case sz:return GF(e);case QF:case ez:return new r(+e);case cz:return ZF(e,n);case uz:case lz:case fz:case pz:case dz:case hz:case gz:case yz:case vz:return JF(e,n);case tz:return new r;case nz:case iz:return new r(e);case rz:return YF(e);case oz:return new r;case az:return XF(e)}},bz=fi,wz=Object.create,xz=function(){function e(){}return function(t){if(!bz(t))return{};if(wz)return wz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_z=xz,Oz=MD,Cz=Hl;var Sz=function(e){return"function"!=typeof e.constructor||Cz(e)?{}:_z(Oz(e))},kz=Pf,Ez=Bi,Az="[object Map]";var jz=function(e){return Ez(e)&&kz(e)==Az},Tz=kl,Pz=El&&El.isMap,Mz=Pz?Tz(Pz):jz,Dz=Pf,Nz=Bi,Iz="[object Set]";var Rz=function(e){return Nz(e)&&Dz(e)==Iz},Lz=kl,Bz=El&&El.isSet,Fz=Bz?Lz(Bz):Rz,zz=su,Hz=YB,Vz=eF,Uz=aF,Kz=bF,$z=wF,Wz=xF,qz=CF,Gz=MF,Zz=of,Yz=RF,Xz=Pf,Jz=BF,Qz=mz,eH=Sz,tH=Li,nH=hl,rH=Mz,oH=fi,iH=Fz,aH=ef,sH=yF,cH=1,uH=2,lH=4,fH="[object Arguments]",pH="[object Function]",dH="[object GeneratorFunction]",hH="[object Object]",gH={};gH[fH]=gH["[object Array]"]=gH["[object ArrayBuffer]"]=gH["[object DataView]"]=gH["[object Boolean]"]=gH["[object Date]"]=gH["[object Float32Array]"]=gH["[object Float64Array]"]=gH["[object Int8Array]"]=gH["[object Int16Array]"]=gH["[object Int32Array]"]=gH["[object Map]"]=gH["[object Number]"]=gH[hH]=gH["[object RegExp]"]=gH["[object Set]"]=gH["[object String]"]=gH["[object Symbol]"]=gH["[object Uint8Array]"]=gH["[object Uint8ClampedArray]"]=gH["[object Uint16Array]"]=gH["[object Uint32Array]"]=!0,gH["[object Error]"]=gH[pH]=gH["[object WeakMap]"]=!1;var yH=function e(t,n,r,o,i,a){var s,c=n&cH,u=n&uH,l=n&lH;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!oH(t))return t;var f=tH(t);if(f){if(s=Jz(t),!c)return Wz(t,s)}else{var p=Xz(t),d=p==pH||p==dH;if(nH(t))return $z(t,c);if(p==hH||p==fH||d&&!i){if(s=u||d?{}:eH(t),!c)return u?Gz(t,Kz(s,t)):qz(t,Uz(s,t))}else{if(!gH[p])return i?t:{};s=Qz(t,p,c)}}a||(a=new zz);var h=a.get(t);if(h)return h;a.set(t,s),iH(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):rH(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?Yz:Zz:u?sH:aH)(t);return Hz(g||t,(function(o,i){g&&(o=t[i=o]),Vz(s,i,e(o,n,r,i,t,a))})),s},vH=Gs,mH=hd;var bH=function(e,t){return t.length<2?e:vH(e,mH(t,0,-1))},wH=Vs,xH=vP,_H=bH,OH=$s;var CH=function(e,t){return t=wH(t,e),null==(e=_H(e,t))||delete e[OH(xH(t))]},SH=VD;var kH=Bb;var EH=function(e){return(null==e?0:e.length)?kH(e,1):[]},AH=EH,jH=fw,TH=_w;var PH=As,MH=yH,DH=CH,NH=Vs,IH=rF,RH=function(e){return SH(e)?void 0:e},LH=RF,BH=function(e){return TH(jH(e,void 0,AH),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=PH(t,(function(t){return t=NH(t,e),r||(r=t.length>1),t})),IH(e,LH(e),n),r&&(n=MH(n,7,RH));for(var o=t.length;o--;)DH(n,t[o]);return n})),FH=BH,zH=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],HH=["width","height","className","style","children","type"];function VH(e){return VH="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},VH(e)}function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UH.apply(this,arguments)}function KH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QH(r.key),r)}}function WH(e,t){return WH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WH(e,t)}function qH(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZH(e);if(t){var o=ZH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return GH(e)}(this,n)}}function GH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZH(e){return ZH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZH(e)}function YH(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 XH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YH(Object(n),!0).forEach((function(t){JH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JH(e,t,n){return(t=QH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QH(e){var t=function(e,t){if("object"!==VH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VH(t)?t:String(t)}var eV="value",tV=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[eV]}),0):rc(i[s])||i[s]<=0?0:i[s],XH(XH({},i),{},(JH(n={children:l},eV,r),JH(n,"depth",o),JH(n,"index",a),n))},nV=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},rV=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,XH(XH({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),XH(XH({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},oV=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[eV]*n;return XH(XH({},e),{},{area:rc(t)||t<=0?0:t})}))}(r,a.width*a.height/t[eV]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=nV(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=rV(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=rV(s,u,a,!0),s.length=s.area=0),XH(XH({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},iV={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},aV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WH(e,t)}(a,x);var t,n,r,i=qH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JH(GH(e=i.call.apply(i,[this].concat(n))),"state",XH({},iV)),JH(GH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),JH(GH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Pc(n.children,sx)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;Pc(n.children,sx)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=tV({depth:0,node:XH(XH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=oV(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=tV({depth:0,node:XH(XH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=oV(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,t,n){var r=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=t.width,y=t.height,v=t.x,m=t.y,b=t.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(n||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,t),onMouseLeave:this.handleMouseLeave.bind(this,t),onClick:this.handleClick.bind(this,t)}),a?o.createElement(Mb,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.x,p=n.y,g=n.width,y=n.height;return o.createElement(Mb,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},o.createElement(Gc,x,b>2&&!h?null:r.constructor.renderContentItem(e,XH(XH({},t),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):o.createElement(Gc,x,this.constructor.renderContentItem(e,XH(XH({},t),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,t,n){var r=this,i=this.props,a=i.content,s=i.type,c=XH(XH(XH({},Rc(this.props)),t),{},{root:e}),u=!t.children||!t.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===t.depth&&e.name===t.name})).length&&e.depth&&"nest"===s?null:o.createElement(Gc,{key:"recharts-treemap-node-".concat(n),className:"recharts-treemap-depth-".concat(t.depth)},this.renderItem(a,c,u),t.children&&t.children.length?t.children.map((function(e,n){return r.renderNode(t,e,n)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,n=e.nameKey,r=Pc(t,sx);if(!r)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:hT(l,n,""),value:hT(l,eV)}]:[];return o.cloneElement(r,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,t=this.props,n=t.nameKey,r=t.nestIndexContent,i=this.state.nestIndex;return o.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(t,i){var a=Ys(t,n,"root"),s=null;return o.isValidElement(r)&&(s=o.cloneElement(r,t,i)),s=Ri(r)?r(t,i):a,o.createElement("div",{onClick:e.handleNestIndex.bind(e,t,i),key:"nest-index-".concat(uc()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!Mc(this))return null;var e=this.props,t=e.width,n=e.height,r=e.className,i=e.style,a=e.children,s=e.type,c=KH(e,HH),u=Rc(c);return o.createElement("div",{className:li("recharts-wrapper",r),style:XH(XH({},i),{},{position:"relative",cursor:"default",width:t,height:n}),role:"region"},o.createElement(Kc,UH({},u,{width:t,height:"nest"===s?n-30:n}),this.renderAllNodes(),Ic(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=tV({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=oV(n,e.aspectRatio);return XH(XH({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,t,n,r){if(o.isValidElement(e))return o.cloneElement(e,t);if(Ri(e))return e(t);var i=t.x,a=t.y,s=t.width,c=t.height,u=t.index,l=null;s>10&&c>10&&t.children&&"nest"===n&&(l=o.createElement(CM,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=H_(t.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=o.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},t.name));var d=r||zH;return o.createElement("g",null,o.createElement(fM,UH({fill:t.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},FH(t,"children"),{role:"img"})),l,f)}}],n&&$H(t.prototype,n),r&&$H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();JH(aV,"displayName","Treemap"),JH(aV,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Gw.isSsr,isUpdateAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var sV=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},cV=Kp,uV=sV;var lV=function(e,t){return e&&e.length?uV(e,cV(t)):0},fV=["width","height","className","style","children"],pV=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function dV(e){return dV="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},dV(e)}function hV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(this,arguments)}function yV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CV(r.key),r)}}function vV(e,t){return vV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vV(e,t)}function mV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wV(e);if(t){var o=wV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bV(e)}(this,n)}}function bV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wV(e){return wV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wV(e)}function xV(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 _V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xV(Object(n),!0).forEach((function(t){OV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OV(e,t,n){return(t=CV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=function(e,t){if("object"!==dV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dV(t)?t:String(t)}var SV={x:0,y:0},kV=function(e){return e.y+e.dy/2},EV=function(e){return e&&e.value||0},AV=function(e,t){return t.reduce((function(t,n){return t+EV(e[n])}),0)},jV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+kV(i)*EV(t[r])}),0)},TV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+kV(i)*EV(t[r])}),0)},PV=function(e,t){return e.y-t.y},MV=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},DV=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(PV);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},NV=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=AV(n,u.sourceLinks),f=jV(e,n,u.sourceLinks)/l;u.y+=(f-kV(u))*r}}},IV=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=AV(n,c.targetLinks),l=TV(e,n,c.targetLinks)/u;c.y+=(l-kV(c))*r}}},RV=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return _V(_V(_V({},e),n),{},{value:Math.max(AV(o,n.sourceLinks),AV(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||MV(i,c)}var u=oD(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=xO(e.map((function(e){return(t-(e.length-1)*n)/lV(e,EV)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return _V(_V({},e),{},{dy:EV(e)*o})}))}(l,r,a,s);DV(l,r,a);for(var p=1,d=1;d<=o;d++)IV(u,l,f,p*=.99),DV(l,r,a),NV(u,l,f,p),DV(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},LV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vV(e,t)}(a,x);var t,n,r,i=mV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return OV(bV(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return t=a,n=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=Pc(r.children,sx);i?this.setState((function(n){return"hover"===i.props.trigger?_V(_V({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=Pc(r.children,sx);i?this.setState((function(e){return"hover"===i.props.trigger?_V(_V({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=Pc(r.children,sx);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return _V(_V({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return _V(_V({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,t){var n=this,r=this.props,i=r.linkCurvature,a=r.link,s=r.margin,c=Ys(s,"top")||0,u=Ys(s,"left")||0;return o.createElement(Gc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,r){var s=e.sy,l=e.ty,f=e.dy,p=t[e.source],d=t[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=_V({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:r,payload:_V(_V({},e),{},{source:p,target:d})},Rc(a)),w={onMouseEnter:n.handleMouseEnter.bind(n,b,"link"),onMouseLeave:n.handleMouseLeave.bind(n,b,"link"),onClick:n.handleClick.bind(n,b,"link")};return o.createElement(Gc,gV({key:"link".concat(r)},w),n.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var t=this,n=this.props,r=n.node,i=n.margin,a=Ys(i,"top")||0,s=Ys(i,"left")||0;return o.createElement(Gc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,n){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=_V(_V({},Rc(r)),{},{x:i+s,y:c+a,width:u,height:l,index:n,payload:e}),p={onMouseEnter:t.handleMouseEnter.bind(t,f,"node"),onMouseLeave:t.handleMouseLeave.bind(t,f,"node"),onClick:t.handleClick.bind(t,f,"node")};return o.createElement(Gc,gV({key:"node".concat(n)},p),t.constructor.renderNodeItem(r,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,n=e.width,r=e.height,i=e.nameKey,a=Pc(t,sx);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:n,height:r},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):SV,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:hT(r,n,""),value:hT(r,"value")}];if(r.source&&r.target){var o=hT(r.source,n,""),i=hT(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:hT(r,"value")}]}return[]}(l,f,i):[];return o.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!Mc(this))return null;var e=this.props,t=e.width,n=e.height,r=e.className,i=e.style,a=e.children,s=hV(e,fV),c=this.state,u=c.links,l=c.nodes,f=Rc(s);return o.createElement("div",{className:li("recharts-wrapper",r),style:_V(_V({},i),{},{position:"relative",cursor:"default",width:t,height:n}),role:"region"},o.createElement(Kc,gV({},f,{width:t,height:n}),Ic(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!hc(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=RV({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return _V(_V({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(Ri(e))return e(t);var n=t.sourceX,r=t.sourceY,i=t.sourceControlX,a=t.targetX,s=t.targetY,c=t.targetControlX,u=t.linkWidth,l=hV(t,pV);return o.createElement("path",gV({className:"recharts-sankey-link",d:"\n M".concat(n,",").concat(r,"\n C").concat(i,",").concat(r," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},Rc(l)))}},{key:"renderNodeItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,gV({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},Rc(t),{role:"img"}))}}],n&&yV(t.prototype,n),r&&yV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function BV(e){return BV="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},BV(e)}function FV(){return FV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FV.apply(this,arguments)}function zV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WV(r.key),r)}}function HV(e,t){return HV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HV(e,t)}function VV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KV(e);if(t){var o=KV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UV(e)}(this,n)}}function UV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KV(e){return KV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KV(e)}function $V(e,t,n){return(t=WV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WV(e){var t=function(e,t){if("object"!==BV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BV(t)?t:String(t)}OV(LV,"displayName","Sankey"),OV(LV,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),WB({chartName:"RadarChart",GraphicalChild:gN,axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),WB({chartName:"ScatterChart",GraphicalChild:KL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL},{axisType:"zAxis",AxisComp:ML}],formatAxisMap:WI}),WB({chartName:"AreaChart",GraphicalChild:PL,axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),WB({chartName:"RadialBarChart",GraphicalChild:jN,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),WB({chartName:"ComposedChart",GraphicalChild:[vL,PL,FI,KL],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL},{axisType:"zAxis",AxisComp:ML}],formatAxisMap:WI});var qV=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},GV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HV(e,t)}(a,x);var t,n,r,i=VV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $V(UV(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=li("recharts-trapezoid",c);return h?o.createElement(Mb,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:i,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,i=t.height,a=t.x,s=t.y;return o.createElement(Mb,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},o.createElement("path",FV({},Rc(e.props,!0),{className:g,d:qV(a,s,n,r,i),ref:function(t){e.node=t}})))})):o.createElement("g",null,o.createElement("path",FV({},Rc(this.props,!0),{className:g,d:qV(n,r,i,a,s)})))}}],n&&zV(t.prototype,n),r&&zV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function ZV(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YV(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 YV(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 YV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XV(e){return XV="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},XV(e)}function JV(){return JV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JV.apply(this,arguments)}function QV(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 eU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QV(Object(n),!0).forEach((function(t){aU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sU(r.key),r)}}function nU(e,t){return nU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nU(e,t)}function rU(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iU(e);if(t){var o=iU(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oU(e)}(this,n)}}function oU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iU(e){return iU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iU(e)}function aU(e,t,n){return(t=sU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sU(e){var t=function(e,t){if("object"!==XV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XV(t)?t:String(t)}$V(GV,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var cU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nU(e,t)}(a,x);var t,n,r,i=rU(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aU(oU(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),aU(oU(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),aU(oU(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var i=t.isActiveIndex(r)?n:null,s=eU(eU({},e),{},{stroke:e.stroke});return o.createElement(Gc,JV({className:"recharts-funnel-trapezoid"},xc(t.props,e,r),{key:"trapezoid-".concat(r),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.x,e.x),i=pc(n.y,e.y),a=pc(n.upperWidth,e.upperWidth),s=pc(n.lowerWidth,e.lowerWidth),c=pc(n.height,e.height);return eU(eU({},e),{},{x:o(r),y:i(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=pc(e.x+e.upperWidth/2,e.x),f=pc(e.y+e.height/2,e.y),p=pc(0,e.upperWidth),d=pc(0,e.lowerWidth),h=pc(0,e.height);return eU(eU({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return o.createElement(Gc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=li("recharts-trapezoids",r);return o.createElement(Gc,{className:s},this.renderTrapezoids(),(!i||a)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):VD(e)?o.createElement(GV,JV({},t,e)):o.createElement(GV,t)}}],n&&tU(t.prototype,n),r&&tU(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();aU(cU,"displayName","Funnel"),aU(cU,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),aU(cU,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=Rc(e.props),i=Tc(r,qx);return n&&n.length?n.map((function(e,t){return eU(eU(eU({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return eU(eU({},o),e.props)})):[]})),aU(cU,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return tc(n)?l=n:Ui(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),aU(cU,"getComposedData",(function(e){var t=e.item,n=e.offset,r=cU.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=cU.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return hT(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=hT(e,i,0),u=hT(e,a,t),p=o;if(t!==m-1)(n=hT(r[t+1],i,0))instanceof Array&&(n=ZV(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=ZV(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,O=p/v*h,C=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+O/2,y:_+b/2};return eU(eU({x:x,y:_,width:Math.max(O,C),upperWidth:O,lowerWidth:C,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},FH(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(O-C)/4,y:_,width:Math.abs(O-C)/2+Math.min(O,C),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return eU(eU({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:eU(eU({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:eU(eU({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),WB({chartName:"FunnelChart",GraphicalChild:cU,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const uU=Oe.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),Nn,In),lU=()=>e(A,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),fU=Oe.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),Nn),pU=({active:n,payload:r,label:o})=>n&&r&&r.length?t(vU,{children:[e(mU,{children:o}),null==r?void 0:r.map((n=>{var r;const o=n.color||(null===(r=n.payload)||void 0===r?void 0:r.color);return t(yU,{children:[o&&e(uU,{color:o}),n.name,": ",n.value]},n.value)}))]}):null,dU=()=>{const{elevation1:t}=E();return e(sx,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e(pU,{})})},hU=({payload:n,toggleData:r})=>e(gU,{children:null==n?void 0:n.map((n=>t(yU,Object.assign({onClick:r?()=>r(n):void 0,clickable:!!r,inactive:n.inactive},{children:[e(uU,{color:n.color}),n.value]}),n.value)))}),gU=Oe.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),yU=Oe.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),vU=Oe.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),mU=Oe.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),bU=n=>{var{data:r,legend:o,keys:i,stacked:a}=n,s=M(n,["data","legend","keys","stacked"]);const{scale2:c}=E();return t(fU,Object.assign({},s,{children:[e(lU,{}),e(Wx,Object.assign({width:"100%",height:"100%"},{children:t(GB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r},{children:[e(tL,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e($L,{stroke:c,dataKey:"name",tickMargin:4}),e(WL,{stroke:c,tickMargin:4}),dU(),o&&e(Bg,{content:e(hU,{})}),i.map((({key:t,color:n},r)=>e(FI,{barSize:16,dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]}))}))]}))};function wU(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xU(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function _U(e){return _U="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},_U(e)}function OU(e){xU(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_U(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function CU(e,t){xU(2,arguments);var n=OU(e),r=wU(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function SU(e,t){xU(2,arguments);var n=OU(e),r=wU(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function kU(e){return kU="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},kU(e)}function EU(e,t){if(xU(2,arguments),!t||"object"!==kU(t))return new Date(NaN);var n=t.years?wU(t.years):0,r=t.months?wU(t.months):0,o=t.weeks?wU(t.weeks):0,i=t.days?wU(t.days):0,a=t.hours?wU(t.hours):0,s=t.minutes?wU(t.minutes):0,c=t.seconds?wU(t.seconds):0,u=OU(e),l=r||n?SU(u,r+12*n):u,f=i||o?CU(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var AU={};function jU(){return AU}function TU(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function PU(e){xU(1,arguments);var t=OU(e);return t.setHours(0,0,0,0),t}var MU=864e5;var DU=6e4;function NU(e,t){xU(2,arguments);var n=PU(e),r=PU(t);return n.getTime()===r.getTime()}function IU(e){return IU="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},IU(e)}function RU(e){if(xU(1,arguments),!function(e){return xU(1,arguments),e instanceof Date||"object"===IU(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=OU(e);return!isNaN(Number(t))}function LU(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function BU(e,t){xU(2,arguments);var n=OU(e),r=OU(t),o=LU(n,r),i=Math.abs(function(e,t){xU(2,arguments);var n=PU(e),r=PU(t),o=n.getTime()-TU(n),i=r.getTime()-TU(r);return Math.round((o-i)/MU)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(LU(n,r)===-o));return 0===a?0:a}var FU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},zU="trunc";function HU(e){return e?FU[e]:FU[zU]}function VU(e,t,n){xU(2,arguments);var r=function(e,t){return xU(2,arguments),OU(e).getTime()-OU(t).getTime()}(e,t)/DU;return HU(null==n?void 0:n.roundingMethod)(r)}function UU(e,t){return xU(2,arguments),function(e,t){xU(2,arguments);var n=OU(e).getTime(),r=wU(t);return new Date(n+r)}(e,-wU(t))}var KU=864e5;function $U(e){xU(1,arguments);var t=OU(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function WU(e){xU(1,arguments);var t=OU(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=$U(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=$U(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var qU=6048e5;function GU(e){xU(1,arguments);var t=OU(e),n=$U(t).getTime()-function(e){xU(1,arguments);var t=WU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),$U(n)}(t).getTime();return Math.round(n/qU)+1}function ZU(e,t){var n,r,o,i,a,s,c,u;xU(1,arguments);var l=jU(),f=wU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=OU(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function YU(e,t){var n,r,o,i,a,s,c,u;xU(1,arguments);var l=OU(e),f=l.getUTCFullYear(),p=jU(),d=wU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=ZU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=ZU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var XU=6048e5;function JU(e,t){xU(1,arguments);var n=OU(e),r=ZU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;xU(1,arguments);var l=jU(),f=wU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=YU(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),ZU(d,t)}(n,t).getTime();return Math.round(r/XU)+1}function QU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var eK=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return QU("yy"===t?r%100:r,t.length)},tK=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):QU(n+1,2)},nK=function(e,t){return QU(e.getUTCDate(),t.length)},rK=function(e,t){return QU(e.getUTCHours()%12||12,t.length)},oK=function(e,t){return QU(e.getUTCHours(),t.length)},iK=function(e,t){return QU(e.getUTCMinutes(),t.length)},aK=function(e,t){return QU(e.getUTCSeconds(),t.length)},sK=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return QU(Math.floor(r*Math.pow(10,n-3)),t.length)},cK="midnight",uK="noon",lK="morning",fK="afternoon",pK="evening",dK="night",hK={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return eK(e,t)},Y:function(e,t,n,r){var o=YU(e,r),i=o>0?o:1-o;return"YY"===t?QU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):QU(i,t.length)},R:function(e,t){return QU(WU(e),t.length)},u:function(e,t){return QU(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return QU(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return QU(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return tK(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return QU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=JU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):QU(o,t.length)},I:function(e,t,n){var r=GU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):QU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):nK(e,t)},D:function(e,t,n){var r=function(e){xU(1,arguments);var t=OU(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/KU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):QU(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return QU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return QU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return QU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?uK:0===o?cK:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?pK:o>=12?fK:o>=4?lK:dK,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return rK(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):oK(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):QU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):QU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):iK(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):aK(e,t)},S:function(e,t){return sK(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return yK(o);case"XXXX":case"XX":return vK(o);default:return vK(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return yK(o);case"xxxx":case"xx":return vK(o);default:return vK(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gK(o,":");default:return"GMT"+vK(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gK(o,":");default:return"GMT"+vK(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return QU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return QU((r._originalDate||e).getTime(),t.length)}};function gK(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+QU(i,2)}function yK(e,t){return e%60==0?(e>0?"-":"+")+QU(Math.abs(e)/60,2):vK(e,t)}function vK(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+QU(Math.floor(o/60),2)+n+QU(o%60,2)}var mK=hK,bK=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},wK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},xK={p:wK,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return bK(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",bK(o,t)).replace("{{time}}",wK(i,t))}},_K=xK,OK=["D","DD"],CK=["YY","YYYY"];function SK(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var kK={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function EK(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var AK={date:EK({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:EK({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:EK({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function TK(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var PK={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:TK({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:TK({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:TK({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:TK({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:TK({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function MK(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var DK,NK={ordinalNumber:(DK={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(DK.matchPattern);if(!n)return null;var r=n[0],o=e.match(DK.parsePattern);if(!o)return null;var i=DK.valueCallback?DK.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:MK({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:MK({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:MK({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:MK({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:MK({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},IK={code:"en-US",formatDistance:function(e,t,n){var r,o=kK[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:AK,formatRelative:function(e,t,n,r){return jK[e]},localize:PK,match:NK,options:{weekStartsOn:0,firstWeekContainsDate:1}},RK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BK=/^'([^]*?)'?$/,FK=/''/g,zK=/[a-zA-Z]/;function HK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;xU(2,arguments);var x=String(t),_=jU(),O=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:IK,C=wU(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=wU(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var k=OU(e);if(!RU(k))throw new RangeError("Invalid time value");var E=UU(k,TU(k)),A={firstWeekContainsDate:C,weekStartsOn:S,locale:O,_originalDate:k},j=x.match(LK).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_K[t])(e,O.formatLong):e})).join("").match(RK).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(BK);if(!t)return e;return t[1].replace(FK,"'")}(r);var i,a=mK[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===CK.indexOf(i))||SK(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==OK.indexOf(e)}(r)||SK(r,t,String(e)),a(E,r,O.localize,A);if(o.match(zK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return j}function VK(e){return xU(1,arguments),OU(e).getDate()}function UK(e){xU(1,arguments);var t=OU(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function KK(e){xU(1,arguments);var t=OU(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function $K(e,t){xU(2,arguments);var n=OU(e),r=OU(t);return n.getTime()>r.getTime()}function WK(e,t){xU(2,arguments);var n=OU(e),r=OU(t);return n.getTime()<r.getTime()}function qK(e){return xU(1,arguments),function(e,t){xU(2,arguments);var n=OU(e),r=OU(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function GK(e,t){return xU(2,arguments),CU(e,-wU(t))}function ZK(e){return ZK="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},ZK(e)}function YK(e,t){if(xU(2,arguments),"object"!==ZK(t)||null===t)throw new RangeError("values parameter must be an object");var n=OU(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){xU(2,arguments);var n=OU(e),r=wU(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=UK(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(wU(t.date)),null!=t.hours&&n.setHours(wU(t.hours)),null!=t.minutes&&n.setMinutes(wU(t.minutes)),null!=t.seconds&&n.setSeconds(wU(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(wU(t.milliseconds)),n)}function XK(e,t){xU(2,arguments);var n=OU(e),r=wU(t);return n.setDate(r),n}function JK(e){return JK="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},JK(e)}function QK(e,t){if(xU(2,arguments),!t||"object"!==JK(t))return new Date(NaN);var n=t.years?wU(t.years):0,r=t.months?wU(t.months):0,o=t.weeks?wU(t.weeks):0,i=t.days?wU(t.days):0,a=t.hours?wU(t.hours):0,s=t.minutes?wU(t.minutes):0,c=t.seconds?wU(t.seconds):0,u=function(e,t){return xU(2,arguments),SU(e,-wU(t))}(e,r+12*n),l=GK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const e$=({date:n,onChange:r,preventPast:o,preventFuture:i,noShadow:a})=>{const{current:s}=g(n||new Date),[c,u]=v(s),[l,f]=v(s),[p,d]=v(),{calendar:h}=E(),m=e=>YK(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),b=e=>{const t=XK(("prev"===e?QK:EU)(l,{months:1}),1),n=m(t);f(n)},w=(e,t,n)=>{const r="past"===n;let o;o="past"===n?KK(QK(e,{months:1})):XK("future"===n?EU(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?QK:EU)(o,{days:e}),a=m(n);i[t](a)}return i},x=e=>{const t=function(e){return xU(1,arguments),OU(e).getDay()}(XK(e,1)),n=UK(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=o instanceof Date?m(o):t,r=i instanceof Date?m(i):t,a=m(KK(l)),u=m(XK(l,1));let f=!1;const p=WK(e,n),d=$K(e,r);(o&&p||i&&d)&&(f=!0);const h=$K(e,a)||WK(e,u),g=NU(e,s),y=NU(e,c);return{date:VK(e),fullDate:e,current:g,disabled:f,outside:h,active:y}}))};y((()=>{const e=x(l);d(e)}),[c,l]);return t(t$,Object.assign({noShadow:a},{children:[t(n$,{children:[e(r$,{children:HK(l,"MMMM Y")}),t(o$,{children:[e(Ln,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:h.color.iconHover}),e(Ln,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:h.color.iconHover})]})]}),e(s$,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(c$,{children:t[0]},t)))}),e(i$,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:o,current:i,outside:a,active:s})=>e(a$,Object.assign({disabled:o,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),r(e)})(n)},{children:t}),to())))})]}))},t$=Oe.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),n$=Oe.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),r$=Oe.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),o$=Oe.div({display:"flex"}),i$=Oe.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),a$=Oe.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),s$=Oe.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),c$=Oe.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),u$=Oe.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),Nn),l$=Oe.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),f$=Oe.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),p$=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,m=M(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=v("checkbox-off"),[x,_]=v(a||!1),O=g(null),C="right"===i,S={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return y((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),y((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(u$,Object.assign({htmlFor:r,labelRight:C,disabled:c},S,{children:[o&&e(f$,{children:o}),e(l$,Object.assign({ref:O,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),u(e),(null==O?void 0:O.current)&&(O.current.indeterminate=!!s)}},m)),e(Ln,{name:b,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!c})]}))};
|
|
202
|
+
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();void 0!==h_&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(g_);var y_={},v_={},m_={get exports(){return v_},set exports(e){v_=e}},b_={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},w_=function(e,t,n,r){if(!b_.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!b_[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=b_[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(w_);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(m_,v_),Object.defineProperty(y_,"__esModule",{value:!0}),y_.flip=S_;var x_=function(e){return e&&e.__esModule?e:{default:e}}(v_);function __(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,x_.default)(e.left,e.right,t),r=__(n.left,t),o=__(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(O_(r.right,o.right)?n=(0,x_.default)(r.left,o.left,t):O_(r.right,o.left)&&(n=(0,x_.default)(r.left,o.right,t)),r=__(n.left,t),o=__(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return k_(o);r.type===o.type&&C_(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(C_(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=__({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?S_(o.operator):o.operator,__(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=__({type:"MathExpression",operator:"-"===i?S_(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,__(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&C_(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=__({type:"MathExpression",operator:i,left:r.left,right:o},t),__(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=__({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=__({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),__(e,t)}return e}(e,t);case"/":return function(e,t){if(!C_(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return C_(e.left.left.type)&&C_(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,__(e.left,t)):e;if(C_(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(C_(e.left.left.type)&&C_(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(C_(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(C_(e.right.left.type)&&C_(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&C_(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?__(e.value,t):e}function O_(e,t){return e.type===t.type&&e.value===t.value}function C_(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function S_(e){return"+"===e?"-":"+"}function k_(e){return C_(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=k_(e.left),e.right=k_(e.right)),e}y_.default=__;var E_={};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=y_,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}({get exports(){return E_},set exports(e){E_=e}},E_),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(d_),r=g_,o=a(y_),i=a(E_);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(Xx,Yx);var A_=N(Yx);function j_(e){return j_="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},j_(e)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(n),!0).forEach((function(t){M_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==j_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==j_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===j_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){return function(e){if(Array.isArray(e))return N_(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 N_(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 N_(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 N_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I_={widthCache:{},cacheCount:0},R_=2e3,L_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},B_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],F_="recharts_measurement_span";var z_=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(D_(e),["-",t.toLowerCase()]):[].concat(D_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],B_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},H_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Gw.isSsr)return{width:0,height:0};var n="".concat(e),r=z_(t),o="".concat(n,"-").concat(r);if(I_.widthCache[o])return I_.widthCache[o];try{var i=document.getElementById(F_);i||((i=document.createElement("span")).setAttribute("id",F_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=P_(P_({},L_),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return I_.widthCache[o]=c,++I_.cacheCount>R_&&(I_.cacheCount=0,I_.widthCache={}),c}catch(e){return{width:0,height:0}}},V_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function U_(e){return U_="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},U_(e)}function K_(){return K_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K_.apply(this,arguments)}function $_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function W_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nO(r.key),r)}}function q_(e,t){return q_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q_(e,t)}function G_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y_(e);if(t){var o=Y_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===U_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Z_(e)}(this,n)}}function Z_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y_(e){return Y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y_(e)}function X_(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J_(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 J_(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 J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q_(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 eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q_(Object(n),!0).forEach((function(t){tO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tO(e,t,n){return(t=nO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nO(e){var t=function(e,t){if("object"!==U_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==U_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===U_(t)?t:String(t)}var rO=/[ \f\n\r\t\v\u2028\u2029]+/,oO=function(e){try{var t=[];return Xs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(rO)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:H_(t,e.style).width}})),spaceWidth:e.breakAll?0:H_(" ",e.style).width}}catch(e){return null}},iO=function(e){return[{words:Xs(e)?[]:e.toString().split(rO)}]},aO=function(e,t){if((e.width||e.scaleToFit)&&!Gw.isSsr&&t){var n=oO(e);return n?function(e,t,n,r,o){var i=ac(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=oO(eO(eO({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=X_(l(h-1),2),y=g[0],v=g[1],m=X_(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):iO(e.children)}return iO(e.children)},sO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q_(e,t)}(a,O);var t,n,r,i=G_(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tO(Z_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=$_(e,V_),h=this.state.wordsByLines;if(!sc(d.x)||!sc(d.y))return null;var g,y=d.x+(ac(t)?t:0),v=d.y+(ac(n)?n:0);switch(i){case"start":g=A_("calc(".concat(l,")"));break;case"middle":g=A_("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=A_("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((ac(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),o.createElement("text",K_({},Rc(d,!0),{x:y,y:v,className:li("recharts-text",f),textAnchor:r,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,t){return o.createElement("tspan",{x:y,dy:0===t?g:u,key:t},e.words.join(p?"":" "))})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:aO(e,n)}}return null}}],n&&W_(t.prototype,n),r&&W_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();tO(sO,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var cO=Gf;var uO=function(e,t){return cO(e,t)},lO=qi;var fO=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!lO(a):n(a,s)))var s=a,c=i}return c};var pO=function(e,t){return e>t},dO=fO,hO=pO,gO=Pp;var yO=function(e){return e&&e.length?dO(e,gO,hO):void 0};var vO=function(e,t){return e<t},mO=fO,bO=vO,wO=Pp;var xO=function(e){return e&&e.length?mO(e,wO,bO):void 0},_O=As,OO=Kp,CO=qb,SO=Li;var kO=Bb,EO=function(e,t){return(SO(e)?_O:CO)(e,OO(t))};var AO=function(e,t){return kO(EO(e,t),1)};function jO(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TO(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function PO(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=jO,n=(t,n)=>jO(e(t),n),r=(t,n)=>e(t)-n):(t=e===jO||e===TO?e:MO,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function MO(){return 0}function DO(e){return null===e?NaN:+e}const NO=PO(jO).right;PO(DO).center;class IO extends Map{constructor(e,t=LO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(RO(this,e))}has(e){return super.has(RO(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function RO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function LO(e){return null!==e&&"object"==typeof e?e.valueOf():e}function BO(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const FO=Math.sqrt(50),zO=Math.sqrt(10),HO=Math.sqrt(2);function VO(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=FO?10:i>=zO?5:i>=HO?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?VO(e,t,2*n):[s,c,u]}function UO(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?VO(t,e,n):VO(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function KO(e,t,n){return VO(e=+e,t=+t,n=+n)[2]}function $O(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?KO(t,e,n):KO(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function WO(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function qO(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function GO(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?BO:function(e=jO){if(e===jO)return BO;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);GO(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(ZO(e,n,t),o(e[r],i)>0&&ZO(e,n,r);a<s;){for(ZO(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?ZO(e,n,s):(++s,ZO(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ZO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function YO(e,t,n=DO){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function XO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function JO(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const QO=Symbol("implicit");function eC(){var e=new IO,t=[],n=[],r=QO;function o(o){let i=e.get(o);if(void 0===i){if(r!==QO)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new IO;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return eC(t,n).unknown(r)},XO.apply(o,arguments),o}function tC(){var e,t,n=eC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return tC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},XO.apply(f(),arguments)}function nC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nC(t())},e}function rC(){return nC(tC.apply(null,arguments).paddingInner(1))}function oC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function aC(){}var sC=.7,cC=1/sC,uC="\\s*([+-]?\\d+)\\s*",lC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pC=/^#([0-9a-f]{3,8})$/,dC=new RegExp(`^rgb\\(${uC},${uC},${uC}\\)$`),hC=new RegExp(`^rgb\\(${fC},${fC},${fC}\\)$`),gC=new RegExp(`^rgba\\(${uC},${uC},${uC},${lC}\\)$`),yC=new RegExp(`^rgba\\(${fC},${fC},${fC},${lC}\\)$`),vC=new RegExp(`^hsl\\(${lC},${fC},${fC}\\)$`),mC=new RegExp(`^hsla\\(${lC},${fC},${fC},${lC}\\)$`),bC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wC(){return this.rgb().formatHex()}function xC(){return this.rgb().formatRgb()}function _C(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?OC(t):3===n?new EC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?CC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?CC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=dC.exec(e))?new EC(t[1],t[2],t[3],1):(t=hC.exec(e))?new EC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=gC.exec(e))?CC(t[1],t[2],t[3],t[4]):(t=yC.exec(e))?CC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vC.exec(e))?DC(t[1],t[2]/100,t[3]/100,1):(t=mC.exec(e))?DC(t[1],t[2]/100,t[3]/100,t[4]):bC.hasOwnProperty(e)?OC(bC[e]):"transparent"===e?new EC(NaN,NaN,NaN,0):null}function OC(e){return new EC(e>>16&255,e>>8&255,255&e,1)}function CC(e,t,n,r){return r<=0&&(e=t=n=NaN),new EC(e,t,n,r)}function SC(e){return e instanceof aC||(e=_C(e)),e?new EC((e=e.rgb()).r,e.g,e.b,e.opacity):new EC}function kC(e,t,n,r){return 1===arguments.length?SC(e):new EC(e,t,n,null==r?1:r)}function EC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function AC(){return`#${MC(this.r)}${MC(this.g)}${MC(this.b)}`}function jC(){const e=TC(this.opacity);return`${1===e?"rgb(":"rgba("}${PC(this.r)}, ${PC(this.g)}, ${PC(this.b)}${1===e?")":`, ${e})`}`}function TC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function PC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function MC(e){return((e=PC(e))<16?"0":"")+e.toString(16)}function DC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new IC(e,t,n,r)}function NC(e){if(e instanceof IC)return new IC(e.h,e.s,e.l,e.opacity);if(e instanceof aC||(e=_C(e)),!e)return new IC;if(e instanceof IC)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new IC(a,s,c,e.opacity)}function IC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function RC(e){return(e=(e||0)%360)<0?e+360:e}function LC(e){return Math.max(0,Math.min(1,e||0))}function BC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oC(aC,_C,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wC,formatHex:wC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NC(this).formatHsl()},formatRgb:xC,toString:xC}),oC(EC,kC,iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new EC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new EC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new EC(PC(this.r),PC(this.g),PC(this.b),TC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:AC,formatHex:AC,formatHex8:function(){return`#${MC(this.r)}${MC(this.g)}${MC(this.b)}${MC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jC,toString:jC})),oC(IC,(function(e,t,n,r){return 1===arguments.length?NC(e):new IC(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new IC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new IC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new EC(BC(e>=240?e-240:e+120,o,r),BC(e,o,r),BC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new IC(RC(this.h),LC(this.s),LC(this.l),TC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=TC(this.opacity);return`${1===e?"hsl(":"hsla("}${RC(this.h)}, ${100*LC(this.s)}%, ${100*LC(this.l)}%${1===e?")":`, ${e})`}`}}));const FC=Math.PI/180,zC=180/Math.PI,HC=.96422,VC=1,UC=.82521,KC=4/29,$C=6/29,WC=3*$C*$C,qC=$C*$C*$C;function GC(e){if(e instanceof ZC)return new ZC(e.l,e.a,e.b,e.opacity);if(e instanceof eS)return tS(e);e instanceof EC||(e=SC(e));var t,n,r=QC(e.r),o=QC(e.g),i=QC(e.b),a=YC((.2225045*r+.7168786*o+.0606169*i)/VC);return r===o&&o===i?t=n=a:(t=YC((.4360747*r+.3850649*o+.1430804*i)/HC),n=YC((.0139322*r+.0971045*o+.7141733*i)/UC)),new ZC(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ZC(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function YC(e){return e>qC?Math.pow(e,1/3):e/WC+KC}function XC(e){return e>$C?e*e*e:WC*(e-KC)}function JC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function QC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eS(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function tS(e){if(isNaN(e.h))return new ZC(e.l,0,0,e.opacity);var t=e.h*FC;return new ZC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}oC(ZC,(function(e,t,n,r){return 1===arguments.length?GC(e):new ZC(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return new ZC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ZC(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new EC(JC(3.1338561*(t=HC*XC(t))-1.6168667*(e=VC*XC(e))-.4906146*(n=UC*XC(n))),JC(-.9787684*t+1.9161415*e+.033454*n),JC(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),oC(eS,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof eS)return new eS(e.h,e.c,e.l,e.opacity);if(e instanceof ZC||(e=GC(e)),0===e.a&&0===e.b)return new eS(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*zC;return new eS(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new eS(e,t,n,null==r?1:r)}),iC(aC,{brighter(e){return new eS(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new eS(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return tS(this).rgb()}}));var nS=-.14861,rS=1.78277,oS=-.29227,iS=-.90649,aS=1.97294,sS=aS*iS,cS=aS*rS,uS=rS*oS-iS*nS;function lS(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof fS)return new fS(e.h,e.s,e.l,e.opacity);e instanceof EC||(e=SC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(uS*r+sS*t-cS*n)/(uS+sS-cS),i=r-o,a=(aS*(n-o)-oS*i)/iS,s=Math.sqrt(a*a+i*i)/(aS*o*(1-o)),c=s?Math.atan2(a,i)*zC-120:NaN;return new fS(c<0?c+360:c,s,o,e.opacity)}(e):new fS(e,t,n,null==r?1:r)}function fS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}oC(fS,lS,iC(aC,{brighter(e){return e=null==e?cC:Math.pow(cC,e),new fS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?sC:Math.pow(sC,e),new fS(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*FC,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new EC(255*(t+n*(nS*r+rS*o)),255*(t+n*(oS*r+iS*o)),255*(t+n*(aS*r)),this.opacity)}}));var pS=e=>()=>e;function dS(e,t){return function(n){return e+n*t}}function hS(e){return 1==(e=+e)?gS:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pS(isNaN(t)?n:t)}}function gS(e,t){var n=t-e;return n?dS(e,n):pS(isNaN(e)?t:e)}var yS=function e(t){var n=hS(t);function r(e,t){var r=n((e=kC(e)).r,(t=kC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=gS(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function vS(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function mS(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=SS(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function bS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function wS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xS(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=SS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var _S=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OS=new RegExp(_S.source,"g");function CS(e,t){var n,r,o,i=_S.lastIndex=OS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=_S.exec(e))&&(r=OS.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:wS(n,r)})),i=OS.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function SS(e,t){var n,r=typeof t;return null==t||"boolean"===r?pS(t):("number"===r?wS:"string"===r?(n=_C(t))?(t=n,yS):CS:t instanceof _C?yS:t instanceof Date?bS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?vS:Array.isArray(t)?mS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?xS:wS)(e,t)}function kS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var ES=1e-12;function AS(e){return((e=Math.exp(e))+1/e)/2}function jS(e){return function t(n){function r(t,r){var o=e((t=lS(t)).h,(r=lS(r)).h),i=gS(t.s,r.s),a=gS(t.l,r.l),s=gS(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function TS(e,t){void 0===t&&(t=e,e=SS);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function PS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<ES)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=AS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/AS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),jS((function(e,t){var n=t-e;return n?dS(e,n>180||n<-180?n-360*Math.round(n/360):n):pS(isNaN(e)?t:e)})),jS(gS);var MS=[0,1];function DS(e){return e}function NS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function IS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=NS(o,r),i=n(a,i)):(r=NS(r,o),i=n(i,a)),function(e){return i(r(e))}}function RS(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=NS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=NO(e,t,1,r)-1;return i[n](o[n](t))}}function LS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function BS(){var e,t,n,r,o,i,a=MS,s=MS,c=SS,u=DS;function l(){var e=Math.min(a.length,s.length);return u!==DS&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?RS:IS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),wS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,PS),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=kS,l()},f.clamp=function(e){return arguments.length?(u=!!e||DS,l()):u!==DS},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function FS(){return BS()(DS,DS)}function zS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function HS(e){return(e=zS(Math.abs(e)))?e[1]:NaN}var VS,US=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function KS(e){if(!(t=US.exec(e)))throw new Error("invalid format: "+e);var t;return new $S({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $S(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function WS(e,t){var n=zS(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}KS.prototype=$S.prototype,$S.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>WS(100*e,t),r:WS,s:function(e,t){var n=zS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(VS=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+zS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function GS(e){return e}var ZS,YS,XS,JS=Array.prototype.map,QS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ek(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?GS:(t=JS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?GS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(JS.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=KS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):qS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=qS[m],_=/[defgprs%]/.test(m);function O(e){var o,i,c,p=b,O=w;if("c"===m)O=x(e)+O,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==f&&(C=!1),p=(C?"("===f?f:u:"-"===f||"("===f?"":f)+p,O=("s"===m?QS[8+VS/3]:"")+O+(C&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){O=(46===c?a+e.slice(o+1):e.slice(o))+O,e=e.slice(0,o);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+O.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-O.length:1/0),k=""),n){case"<":e=p+e+O+k;break;case"=":e=p+k+e+O;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+O+k.slice(S);break;default:e=k+p+e+O}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return e+""},O}return{format:f,formatPrefix:function(e,t){var n=f(((e=KS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(HS(t)/3))),o=Math.pow(10,-r),i=QS[8+r/3];return function(e){return n(o*e)+i}}}}function tk(e,t,n,r){var o,i=$O(e,t,n);switch((r=KS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(HS(t)/3)))-HS(Math.abs(e)))}(i,a))||(r.precision=o),XS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,HS(t)-HS(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-HS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return YS(r)}function nk(e){var t=e.domain;return e.ticks=function(e){var n=t();return UO(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return tk(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=KO(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function rk(){var e=FS();return e.copy=function(){return LS(e,rk())},XO.apply(e,arguments),nk(e)}function ok(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function ik(e){return Math.log(e)}function ak(e){return Math.exp(e)}function sk(e){return-Math.log(-e)}function ck(e){return-Math.exp(-e)}function uk(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lk(e){return(t,n)=>-e(-t,n)}function fk(e){const t=e(ik,ak),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?uk:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=lk(r),o=lk(o),e(sk,ck)):e(ik,ak),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=p;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<d&&(h=UO(a,s,d))}else h=UO(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=KS(n)).precision||(n.trim=!0),n=YS(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(ok(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function pk(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dk(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hk(e){var t=1,n=e(pk(t),dk(t));return n.constant=function(n){return arguments.length?e(pk(t=+n),dk(t)):t},nk(n)}function gk(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vk(e){return e<0?-e*e:e*e}function mk(e){var t=e(DS,DS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(DS,DS):.5===n?e(yk,vk):e(gk(n),gk(1/n)):n},nk(t)}function bk(){var e=mk(BS());return e.copy=function(){return LS(e,bk()).exponent(e.exponent())},XO.apply(e,arguments),e}function wk(e){return Math.sign(e)*e*e}ZS=ek({thousands:",",grouping:[3],currency:["$",""]}),YS=ZS.format,XS=ZS.formatPrefix;const xk=new Date,_k=new Date;function Ok(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>Ok((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(xk.setTime(+t),_k.setTime(+r),e(xk),e(_k),Math.floor(n(xk,_k))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const Ck=Ok((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Ck.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Ok((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Ck:null),Ck.range;const Sk=1e3,kk=60*Sk,Ek=60*kk,Ak=24*Ek,jk=7*Ak,Tk=30*Ak,Pk=365*Ak,Mk=Ok((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Sk)}),((e,t)=>(t-e)/Sk),(e=>e.getUTCSeconds()));Mk.range;const Dk=Ok((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sk)}),((e,t)=>{e.setTime(+e+t*kk)}),((e,t)=>(t-e)/kk),(e=>e.getMinutes()));Dk.range;const Nk=Ok((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*kk)}),((e,t)=>(t-e)/kk),(e=>e.getUTCMinutes()));Nk.range;const Ik=Ok((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sk-e.getMinutes()*kk)}),((e,t)=>{e.setTime(+e+t*Ek)}),((e,t)=>(t-e)/Ek),(e=>e.getHours()));Ik.range;const Rk=Ok((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ek)}),((e,t)=>(t-e)/Ek),(e=>e.getUTCHours()));Rk.range;const Lk=Ok((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kk)/Ak),(e=>e.getDate()-1));Lk.range;const Bk=Ok((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ak),(e=>e.getUTCDate()-1));Bk.range;const Fk=Ok((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ak),(e=>Math.floor(e/Ak)));function zk(e){return Ok((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kk)/jk))}Fk.range;const Hk=zk(0),Vk=zk(1),Uk=zk(2),Kk=zk(3),$k=zk(4),Wk=zk(5),qk=zk(6);function Gk(e){return Ok((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/jk))}Hk.range,Vk.range,Uk.range,Kk.range,$k.range,Wk.range,qk.range;const Zk=Gk(0),Yk=Gk(1),Xk=Gk(2),Jk=Gk(3),Qk=Gk(4),eE=Gk(5),tE=Gk(6);Zk.range,Yk.range,Xk.range,Jk.range,Qk.range,eE.range,tE.range;const nE=Ok((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));nE.range;const rE=Ok((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));rE.range;const oE=Ok((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));oE.every=e=>isFinite(e=Math.floor(e))&&e>0?Ok((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,oE.range;const iE=Ok((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function aE(e,t,n,r,o,i){const a=[[Mk,1,Sk],[Mk,5,5*Sk],[Mk,15,15*Sk],[Mk,30,30*Sk],[i,1,kk],[i,5,5*kk],[i,15,15*kk],[i,30,30*kk],[o,1,Ek],[o,3,3*Ek],[o,6,6*Ek],[o,12,12*Ek],[r,1,Ak],[r,2,2*Ak],[n,1,jk],[t,1,Tk],[t,3,3*Tk],[e,1,Pk]];function s(t,n,r){const o=Math.abs(n-t)/r,i=PO((([,,e])=>e)).right(a,o);if(i===a.length)return e.every($O(t/Pk,n/Pk,r));if(0===i)return Ck.every(Math.max($O(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}iE.every=e=>isFinite(e=Math.floor(e))&&e>0?Ok((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,iE.range;const[sE,cE]=aE(iE,rE,Zk,Fk,Rk,Nk),[uE,lE]=aE(oE,nE,Hk,Lk,Ik,Dk);function fE(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pE(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function dE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var hE,gE,yE,vE,mE={"-":"",_:" ",0:"0"},bE=/^\s*\d+/,wE=/^%/,xE=/[\\^$*+?|[\]().{}]/g;function _E(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function OE(e){return e.replace(xE,"\\$&")}function CE(e){return new RegExp("^(?:"+e.map(OE).join("|")+")","i")}function SE(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function kE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function EE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function AE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function TE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function PE(e,t,n){var r=bE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ME(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function DE(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function NE(e,t,n){var r=bE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function IE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function RE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function LE(e,t,n){var r=bE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function FE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zE(e,t,n){var r=bE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HE(e,t,n){var r=bE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VE(e,t,n){var r=bE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function UE(e,t,n){var r=wE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function KE(e,t,n){var r=bE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $E(e,t,n){var r=bE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WE(e,t){return _E(e.getDate(),t,2)}function qE(e,t){return _E(e.getHours(),t,2)}function GE(e,t){return _E(e.getHours()%12||12,t,2)}function ZE(e,t){return _E(1+Lk.count(oE(e),e),t,3)}function YE(e,t){return _E(e.getMilliseconds(),t,3)}function XE(e,t){return YE(e,t)+"000"}function JE(e,t){return _E(e.getMonth()+1,t,2)}function QE(e,t){return _E(e.getMinutes(),t,2)}function eA(e,t){return _E(e.getSeconds(),t,2)}function tA(e){var t=e.getDay();return 0===t?7:t}function nA(e,t){return _E(Hk.count(oE(e)-1,e),t,2)}function rA(e){var t=e.getDay();return t>=4||0===t?$k(e):$k.ceil(e)}function oA(e,t){return e=rA(e),_E($k.count(oE(e),e)+(4===oE(e).getDay()),t,2)}function iA(e){return e.getDay()}function aA(e,t){return _E(Vk.count(oE(e)-1,e),t,2)}function sA(e,t){return _E(e.getFullYear()%100,t,2)}function cA(e,t){return _E((e=rA(e)).getFullYear()%100,t,2)}function uA(e,t){return _E(e.getFullYear()%1e4,t,4)}function lA(e,t){var n=e.getDay();return _E((e=n>=4||0===n?$k(e):$k.ceil(e)).getFullYear()%1e4,t,4)}function fA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_E(t/60|0,"0",2)+_E(t%60,"0",2)}function pA(e,t){return _E(e.getUTCDate(),t,2)}function dA(e,t){return _E(e.getUTCHours(),t,2)}function hA(e,t){return _E(e.getUTCHours()%12||12,t,2)}function gA(e,t){return _E(1+Bk.count(iE(e),e),t,3)}function yA(e,t){return _E(e.getUTCMilliseconds(),t,3)}function vA(e,t){return yA(e,t)+"000"}function mA(e,t){return _E(e.getUTCMonth()+1,t,2)}function bA(e,t){return _E(e.getUTCMinutes(),t,2)}function wA(e,t){return _E(e.getUTCSeconds(),t,2)}function xA(e){var t=e.getUTCDay();return 0===t?7:t}function _A(e,t){return _E(Zk.count(iE(e)-1,e),t,2)}function OA(e){var t=e.getUTCDay();return t>=4||0===t?Qk(e):Qk.ceil(e)}function CA(e,t){return e=OA(e),_E(Qk.count(iE(e),e)+(4===iE(e).getUTCDay()),t,2)}function SA(e){return e.getUTCDay()}function kA(e,t){return _E(Yk.count(iE(e)-1,e),t,2)}function EA(e,t){return _E(e.getUTCFullYear()%100,t,2)}function AA(e,t){return _E((e=OA(e)).getUTCFullYear()%100,t,2)}function jA(e,t){return _E(e.getUTCFullYear()%1e4,t,4)}function TA(e,t){var n=e.getUTCDay();return _E((e=n>=4||0===n?Qk(e):Qk.ceil(e)).getUTCFullYear()%1e4,t,4)}function PA(){return"+0000"}function MA(){return"%"}function DA(e){return+e}function NA(e){return Math.floor(+e/1e3)}!function(e){hE=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=CE(o),l=SE(o),f=CE(i),p=SE(i),d=CE(a),h=SE(a),g=CE(s),y=SE(s),v=CE(c),m=SE(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:WE,e:WE,f:XE,g:cA,G:lA,H:qE,I:GE,j:ZE,L:YE,m:JE,M:QE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:DA,s:NA,S:eA,u:tA,U:nA,V:oA,w:iA,W:aA,x:null,X:null,y:sA,Y:uA,Z:fA,"%":MA},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:pA,e:pA,f:vA,g:AA,G:TA,H:dA,I:hA,j:gA,L:yA,m:mA,M:bA,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:DA,s:NA,S:wA,u:xA,U:_A,V:CA,w:SA,W:kA,x:null,X:null,y:EA,Y:jA,Z:PA,"%":MA},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:RE,e:RE,f:VE,g:ME,G:PE,H:BE,I:BE,j:LE,L:HE,m:IE,M:FE,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:NE,Q:KE,s:$E,S:zE,u:EE,U:AE,V:jE,w:kE,W:TE,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:ME,Y:PE,Z:DE,"%":UE};function _(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=mE[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function O(e,t){return function(n){var r,o,i=dE(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=pE(dE(i.y,0,1))).getUTCDay(),r=o>4||0===o?Yk.ceil(r):Yk(r),r=Bk.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=fE(dE(i.y,0,1))).getDay(),r=o>4||0===o?Vk.ceil(r):Vk(r),r=Lk.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?pE(dE(i.y,0,1)).getUTCDay():fE(dE(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,pE(i)):fE(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in mE?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}(e),gE=hE.format,hE.parse,yE=hE.utcFormat,vE=hE.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var IA="%Y-%m-%dT%H:%M:%S.%LZ";function RA(e){return new Date(e)}function LA(e){return e instanceof Date?+e:+new Date(+e)}function BA(e,t,n,r,o,i,a,s,c,u){var l=FS(),f=l.invert,p=l.domain,d=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?d:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,LA)):p().map(RA)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:u(t)},l.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(ok(n,e)):l},l.copy=function(){return LS(l,BA(e,t,n,r,o,i,a,s,c,u))},l}function FA(){var e,t,n,r,o,i=0,a=1,s=DS,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(SS),u.rangeRound=l(kS),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function zA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function HA(){var e=mk(FA());return e.copy=function(){return zA(e,HA()).exponent(e.exponent())},JO.apply(e,arguments)}function VA(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=DS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=TS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(SS),d.rangeRound=h(kS),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,d}}function UA(){var e=mk(VA());return e.copy=function(){return zA(e,UA()).exponent(e.exponent())},JO.apply(e,arguments)}Date.prototype.toISOString||yE(IA),+new Date("2000-01-01T00:00:00.000Z")||vE(IA);var KA,$A=Object.freeze({__proto__:null,scaleBand:tC,scaleDiverging:function e(){var t=nk(VA()(DS));return t.copy=function(){return zA(t,e())},JO.apply(t,arguments)},scaleDivergingLog:function e(){var t=fk(VA()).domain([.1,1,10]);return t.copy=function(){return zA(t,e()).base(t.base())},JO.apply(t,arguments)},scaleDivergingPow:UA,scaleDivergingSqrt:function(){return UA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=hk(VA());return t.copy=function(){return zA(t,e()).constant(t.constant())},JO.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,PS),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,PS):[0,1],nk(r)},scaleImplicit:QO,scaleLinear:rk,scaleLog:function e(){const t=fk(BS()).domain([1,10]);return t.copy=()=>LS(t,e()).base(t.base()),XO.apply(t,arguments),t},scaleOrdinal:eC,scalePoint:rC,scalePow:bk,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=YO(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[NO(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(jO),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},XO.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[NO(i,e,0,o)]:t}function c(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},XO.apply(nk(s),arguments)},scaleRadial:function e(){var t,n=FS(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(wk(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,PS)).map(wk)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},XO.apply(i,arguments),nk(i)},scaleSequential:function e(){var t=nk(FA()(DS));return t.copy=function(){return zA(t,e())},JO.apply(t,arguments)},scaleSequentialLog:function e(){var t=fk(FA()).domain([1,10]);return t.copy=function(){return zA(t,e()).base(t.base())},JO.apply(t,arguments)},scaleSequentialPow:HA,scaleSequentialQuantile:function e(){var t=[],n=DS;function r(e){if(null!=e&&!isNaN(e=+e))return n((NO(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(jO),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return qO(e);if(t>=1)return WO(e);var r,o=(r-1)*t,i=Math.floor(o),a=WO(GO(e,i).subarray(0,i+1));return a+(qO(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},JO.apply(r,arguments)},scaleSequentialSqrt:function(){return HA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=hk(FA());return t.copy=function(){return zA(t,e()).constant(t.constant())},JO.apply(t,arguments)},scaleSqrt:function(){return bk.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=hk(BS());return t.copy=function(){return LS(t,e()).constant(t.constant())},XO.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[NO(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},XO.apply(i,arguments)},scaleTime:function(){return XO.apply(BA(uE,lE,oE,nE,Hk,Lk,Ik,Dk,Mk,gE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return XO.apply(BA(sE,cE,iE,rE,Zk,Bk,Rk,Nk,Mk,yE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:tk}),WA={},qA={},GA=1e9,ZA=!0,YA="[DecimalError] ",XA=YA+"Invalid argument: ",JA=YA+"Exponent out of range: ",QA=Math.floor,ej=Math.pow,tj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nj=1e7,rj=7,oj=9007199254740991,ij=QA(oj/rj),aj={};function sj(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ZA?vj(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/rj))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/nj|0,c[i]%=nj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,ZA?vj(t,f):t}function cj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(XA+e)}function uj(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=rj-r.length)&&(i+=hj(n)),i+=r;a=e[t],(n=rj-(r=a+"").length)&&(i+=hj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}aj.absoluteValue=aj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},aj.comparedTo=aj.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},aj.decimalPlaces=aj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},aj.dividedBy=aj.div=function(e){return lj(this,new this.constructor(e))},aj.dividedToIntegerBy=aj.idiv=function(e){var t=this.constructor;return vj(lj(this,new t(e),0,1),t.precision)},aj.equals=aj.eq=function(e){return!this.cmp(e)},aj.exponent=function(){return pj(this)},aj.greaterThan=aj.gt=function(e){return this.cmp(e)>0},aj.greaterThanOrEqualTo=aj.gte=function(e){return this.cmp(e)>=0},aj.isInteger=aj.isint=function(){return this.e>this.d.length-2},aj.isNegative=aj.isneg=function(){return this.s<0},aj.isPositive=aj.ispos=function(){return this.s>0},aj.isZero=function(){return 0===this.s},aj.lessThan=aj.lt=function(e){return this.cmp(e)<0},aj.lessThanOrEqualTo=aj.lte=function(e){return this.cmp(e)<1},aj.logarithm=aj.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(KA))throw Error(YA+"NaN");if(n.s<1)throw Error(YA+(n.s?"NaN":"-Infinity"));return n.eq(KA)?new r(0):(ZA=!1,t=lj(gj(n,i),gj(e,i),i),ZA=!0,vj(t,o))},aj.minus=aj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mj(t,e):sj(t,(e.s=-e.s,e))},aj.modulo=aj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(YA+"NaN");return n.s?(ZA=!1,t=lj(n,e,0,1).times(e),ZA=!0,n.minus(t)):vj(new r(n),o)},aj.naturalExponential=aj.exp=function(){return fj(this)},aj.naturalLogarithm=aj.ln=function(){return gj(this)},aj.negated=aj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},aj.plus=aj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sj(t,e):mj(t,(e.s=-e.s,e))},aj.precision=aj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(XA+e);if(t=pj(o)+1,n=(r=o.d.length-1)*rj+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},aj.squareRoot=aj.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(YA+"NaN")}for(e=pj(s),ZA=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=uj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=QA((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(lj(s,i,a+2)).times(.5),uj(i.d).slice(0,a)===(t=uj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(vj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return ZA=!0,vj(r,n)},aj.times=aj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(c=p.length)<(u=d.length)&&(i=p,p=d,d=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+d[r]*p[o-r-1]+t,i[o--]=s%nj|0,t=s/nj|0;i[o]=(i[o]+t)%nj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ZA?vj(e,f.precision):e},aj.toDecimalPlaces=aj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(cj(e,0,GA),void 0===t?t=r.rounding:cj(t,0,8),vj(n,e+pj(n)+1,t))},aj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=bj(r,!0):(cj(e,0,GA),void 0===t?t=o.rounding:cj(t,0,8),n=bj(r=vj(new o(r),e+1,t),!0,e+1)),n},aj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?bj(o):(cj(e,0,GA),void 0===t?t=i.rounding:cj(t,0,8),n=bj((r=vj(new i(o),e+pj(o)+1,t)).abs(),!1,e+pj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},aj.toInteger=aj.toint=function(){var e=this,t=e.constructor;return vj(new t(e),pj(e)+1,t.rounding)},aj.toNumber=function(){return+this},aj.toPower=aj.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(KA);if(!(s=new c(s)).s){if(e.s<1)throw Error(YA+"Infinity");return s}if(s.eq(KA))return s;if(r=c.precision,e.eq(KA))return vj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=oj){for(o=new c(KA),t=Math.ceil(r/rj+4),ZA=!1;n%2&&wj((o=o.times(s)).d,t),0!==(n=QA(n/2));)wj((s=s.times(s)).d,t);return ZA=!0,e.s<0?new c(KA).div(o):vj(o,r)}}else if(i<0)throw Error(YA+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,ZA=!1,o=e.times(gj(s,r+12)),ZA=!0,(o=fj(o)).s=i,o},aj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=bj(o,(n=pj(o))<=i.toExpNeg||n>=i.toExpPos):(cj(e,1,GA),void 0===t?t=i.rounding:cj(t,0,8),r=bj(o=vj(new i(o),e,t),e<=(n=pj(o))||n<=i.toExpNeg,e)),r},aj.toSignificantDigits=aj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(cj(e,1,GA),void 0===t?t=n.rounding:cj(t,0,8)),vj(new n(this),e,t)},aj.toString=aj.valueOf=aj.val=aj.toJSON=aj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pj(e),n=e.constructor;return bj(e,t<=n.toExpNeg||t>=n.toExpPos)};var lj=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%nj|0,r=n/nj|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*nj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,O,C,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,A=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(YA+"Division by zero");for(c=r.e-o.e,O=A.length,x=E.length,h=(d=new S(k)).d=[],u=0;A[u]==(E[u]||0);)++u;if(A[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(pj(r)-pj(o))+1:i)<0)return new S(0);if(m=m/rj+2|0,u=0,1==O)for(l=0,A=A[0],m++;(u<x||l)&&m--;u++)b=l*nj+(E[u]||0),h[u]=b/A|0,l=b%A|0;else{for((l=nj/(A[0]+1)|0)>1&&(A=e(A,l),E=e(E,l),O=A.length,x=E.length),w=O,y=(g=E.slice(0,O)).length;y<O;)g[y++]=0;(C=A.slice()).unshift(0),_=A[0],A[1]>=nj/2&&++_;do{l=0,(s=t(A,g,O,y))<0?(v=g[0],O!=y&&(v=v*nj+(g[1]||0)),(l=v/_|0)>1?(l>=nj&&(l=nj-1),1==(s=t(f=e(A,l),g,p=f.length,y=g.length))&&(l--,n(f,O<p?C:A,p))):(0==l&&(s=l=1),f=A.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(A,g,O,y=g.length))<1&&(l++,n(g,O<y?C:A,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),d.e=c,vj(d,a?i+pj(d)+1:i)}}();function fj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(pj(e)>16)throw Error(JA+pj(e));if(!e.s)return new u(KA);for(null==t?(ZA=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(ej(2,c))/Math.LN10*2+5|0,n=r=o=new u(KA),u.precision=a;;){if(r=vj(r.times(e),a),n=n.times(++s),uj((i=o.plus(lj(r,n,a))).d).slice(0,a)===uj(o.d).slice(0,a)){for(;c--;)o=vj(o.times(o),a);return u.precision=l,null==t?(ZA=!0,vj(o,l)):o}o=i}}function pj(e){for(var t=e.e*rj,n=e.d[0];n>=10;n/=10)t++;return t}function dj(e,t,n){if(t>e.LN10.sd())throw ZA=!0,n&&(e.precision=n),Error(YA+"LN10 precision limit exceeded");return vj(new e(e.LN10),t)}function hj(e){for(var t="";e--;)t+="0";return t}function gj(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(YA+(p.s?"NaN":"-Infinity"));if(p.eq(KA))return new h(0);if(null==t?(ZA=!1,u=g):u=t,p.eq(10))return null==t&&(ZA=!0),dj(h,u);if(u+=10,h.precision=u,r=(n=uj(d)).charAt(0),i=pj(p),!(Math.abs(i)<15e14))return c=dj(h,u+2,g).times(i+""),p=gj(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(ZA=!0,vj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=uj((p=p.times(e)).d)).charAt(0),f++;for(i=pj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=lj(p.minus(KA),p.plus(KA),u),l=vj(p.times(p),u),o=3;;){if(a=vj(a.times(l),u),uj((c=s.plus(lj(a,new h(o),u))).d).slice(0,u)===uj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(dj(h,u+2,g).times(i+""))),s=lj(s,new h(f),u),h.precision=g,null==t?(ZA=!0,vj(s,g)):s;s=c,o+=2}}function yj(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=QA(n/rj),e.d=[],r=(n+1)%rj,n<0&&(r+=rj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=rj;r<o;)e.d.push(+t.slice(r,r+=rj));t=t.slice(r),r=rj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ZA&&(e.e>ij||e.e<-ij))throw Error(JA+n)}else e.s=0,e.e=0,e.d=[0];return e}function vj(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=rj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/rj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=rj)-rj+a}if(void 0!==n&&(s=u/(i=ej(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/ej(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=pj(e),f.length=1,t=t-i-1,f[0]=ej(10,(rj-t%rj)%rj),e.e=QA(-t/rj)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=ej(10,rj-r),f[l]=o>0?(u/ej(10,a-o)%ej(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==nj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=nj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(ZA&&(e.e>ij||e.e<-ij))throw Error(JA+pj(e));return e}function mj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ZA?vj(t,d):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(d/rj),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=nj-1;--c[i],c[o]+=nj}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,ZA?vj(t,d):t):new p(0)}function bj(e,t,n){var r,o=pj(e),i=uj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+hj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+hj(-o-1)+i,n&&(r=n-a)>0&&(i+=hj(r))):o>=a?(i+=hj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+hj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=hj(r))),e.s<0?"-"+i:i}function wj(e,t){if(e.length>t)return e.length=t,!0}function xj(e){if(!e||"object"!=typeof e)throw Error(YA+"Object expected");var t,n,r,o=["precision",1,GA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(QA(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(XA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(XA+n+": "+r);this[n]=new this(r)}return this}var _j=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(XA+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):yj(t,e.toString())}if("string"!=typeof e)throw Error(XA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!tj.test(e))throw Error(XA+e);yj(t,e)}if(i.prototype=aj,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=xj,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});KA=new _j(1);var Oj=_j,Cj=I(Object.freeze({__proto__:null,get Decimal(){return _j},default:Oj})),Sj={};function kj(e){return function(e){if(Array.isArray(e))return Ej(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ej(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 Ej(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 Ej(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.memoize=Sj.reverse=Sj.compose=Sj.map=Sj.range=Sj.curry=Sj.PLACE_HOLDER=void 0;var Aj=function(e){return e},jj={"@@functional/placeholder":!0};Sj.PLACE_HOLDER=jj;var Tj=function(e){return e===jj},Pj=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Tj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Mj=function(e){return function e(t,n){return 1===t?n:Pj((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==jj})).length;return a>=t?n.apply(void 0,o):e(t-a,Pj((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return Tj(e)?t.shift():e}));return n.apply(void 0,kj(i).concat(t))})))}))}(e.length,e)};Sj.curry=Mj;Sj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var Dj=Mj((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Sj.map=Dj;Sj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Aj;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}};Sj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Sj.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0}),Nj.default=void 0;var Ij=function(e){return e&&e.__esModule?e:{default:e}}(Cj),Rj=Sj;var Lj=(0,Rj.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),Bj=(0,Rj.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),Fj=(0,Rj.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),zj={rangeStep:function(e,t,n){for(var r=new Ij.default(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new Ij.default(e).abs().log(10).toNumber())+1},interpolateNumber:Lj,uninterpolateNumber:Bj,uninterpolateTruncation:Fj};Nj.default=zj,Object.defineProperty(qA,"__esModule",{value:!0}),qA.getTickValuesFixedDomain=qA.getTickValues=qA.getNiceTickValues=void 0;var Hj=Kj(Cj),Vj=Sj,Uj=Kj(Nj);function Kj(e){return e&&e.__esModule?e:{default:e}}function $j(e){return function(e){if(Array.isArray(e))return Gj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qj(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 Wj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||qj(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 qj(e,t){if(e){if("string"==typeof e)return Gj(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)?Gj(e,t):void 0}}function Gj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zj(e){var t=Wj(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function Yj(e,t,n){if(e.lte(0))return new Hj.default(0);var r=Uj.default.getDigitCount(e.toNumber()),o=new Hj.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Hj.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Hj.default(Math.ceil(s))}function Xj(e,t,n){var r=1,o=new Hj.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Hj.default(10).pow(Uj.default.getDigitCount(e)-1),o=new Hj.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Hj.default(Math.floor(e)))}else 0===e?o=new Hj.default(Math.floor((t-1)/2)):n||(o=new Hj.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,Vj.compose)((0,Vj.map)((function(e){return o.add(new Hj.default(e-a).mul(r)).toNumber()})),Vj.range);return s(0,t)}function Jj(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Hj.default(0),tickMin:new Hj.default(0),tickMax:new Hj.default(0)};var i,a=Yj(new Hj.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Hj.default(0):(i=new Hj.default(e).add(t).div(2)).sub(new Hj.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new Hj.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?Jj(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new Hj.default(s).mul(a)),tickMax:i.add(new Hj.default(c).mul(a))})}var Qj=(0,Vj.memoize)((function(e){var t=Wj(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Wj(Zj([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat($j((0,Vj.range)(0,o-1).map((function(){return 1/0})))):[].concat($j((0,Vj.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,Vj.reverse)(l):l}if(c===u)return Xj(c,o,i);var f=Jj(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=Uj.default.rangeStep(d,h.add(new Hj.default(.1).mul(p)),p);return n>r?(0,Vj.reverse)(g):g}));qA.getNiceTickValues=Qj;var eT=(0,Vj.memoize)((function(e){var t=Wj(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=Wj(Zj([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return Xj(c,o,i);var l=Yj(new Hj.default(u).sub(c).div(a-1),i,0),f=(0,Vj.compose)((0,Vj.map)((function(e){return new Hj.default(c).add(new Hj.default(e).mul(l)).toNumber()})),Vj.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,Vj.reverse)(p):p}));qA.getTickValues=eT;var tT=(0,Vj.memoize)((function(e,t){var n=Wj(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Wj(Zj([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=Yj(new Hj.default(c).sub(s).div(u-1),i,0),f=[].concat($j(Uj.default.rangeStep(new Hj.default(s),new Hj.default(c).sub(new Hj.default(.99).mul(l)),l)),[c]);return r>o?(0,Vj.reverse)(f):f}));qA.getTickValuesFixedDomain=tT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=qA}(WA);var nT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function rT(){return rT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rT.apply(this,arguments)}function oT(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iT(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 iT(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 iT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sT(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=aT(e,nT),f=Rc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=oT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=c.scale,x=d+t,_=x+r,O=x-r,C=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:O}),m.push({x1:C,y1:x,x2:S,y2:x}),m.push({x1:C,y1:_,x2:C,y2:O})}else if("horizontal"===n){var k=u.scale,E=p+t,A=E-r,j=E+r,T=k(h-y),P=k(h+v);m.push({x1:A,y1:P,x2:j,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:A,y1:T,x2:j,y2:T})}return o.createElement(Gc,rT({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,t){return o.createElement("line",rT({},e,{key:"line-".concat(t)}))})))}));return o.createElement(Gc,{className:"recharts-errorBars"},p)}function cT(e){return cT="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},cT(e)}function uT(e){return function(e){if(Array.isArray(e))return lT(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 lT(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 lT(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 lT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fT(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 pT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach((function(t){dT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==cT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e,t,n){return Xs(e)||Xs(t)?n:sc(t)?Ys(e,t,n):Ri(t)?t(e):n}function gT(e,t,n,r){var o=AO(e,(function(e){return hT(e,t)}));if("number"===n){var i=o.filter((function(e){return ac(e)||parseFloat(e)}));return i.length?[xO(i),yO(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Xs(e)})):o).map((function(e){return sc(e)||e instanceof Date?e:""}))}sT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},sT.displayName="ErrorBar";var yT=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},vT=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Pc(n,Bg);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:yT(t),value:o||r,payload:t.props}})),pT(pT(pT({},a.props),Bg.getWithHeight(a,o)),{},{payload:t,item:a})):null},mT=function(e,t,n,r,o){var i=Tc(t.props.children,sT).filter((function(e){return function(e,t,n){return!!Xs(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=hT(t,n,0),o=Li(r)?[xO(r),yO(r)]:[r,r],i=a.reduce((function(e,n){var r=hT(t,n,0),i=o[0]-Math.abs(Li(r)?r[0]:r),a=o[1]+Math.abs(Li(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},bT=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&mT(e,t,i,r)||gT(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},wT=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},xT=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},_T=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*oc(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!rc(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},OT=function(e,t,n){var r;return Ri(n)?r=n:Ri(t)&&(r=t),Ri(e)||r?function(t,n,o,i){Ri(e)&&e(t,n,o,i),Ri(r)&&r(t,n,o,i)}:null},CT=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:tC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:rk(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:rC(),realScaleType:"point"}:"category"===o?{scale:tC(),realScaleType:"band"}:{scale:rk(),realScaleType:"linear"};if(Ui(r)){var s="scale".concat(Vd(r));return{scale:($A[s]||rC)(),realScaleType:$A[s]?s:"point"}}return Ri(r)?{scale:r}:{scale:rC(),realScaleType:"point"}},ST=1e-4,kT=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-ST,i=Math.max(r[0],r[1])+ST,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},ET=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},AT=function(e,t){if(!t||2!==t.length||!ac(t[0])||!ac(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ac(e[0])||e[0]<n)&&(o[0]=n),(!ac(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},jT={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=rc(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Jh(e,t)}},none:Jh,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}Jh(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Jh(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=rc(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},TT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Ud([]),t=Qh,n=Jh,r=eg;function o(o){var i,a,s=Array.from(e.apply(this,arguments),tg),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=rh(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Ud(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Ud(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Qh:"function"==typeof e?e:Ud(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Jh:e,o):n},o}().keys(r).value((function(e,t){return+hT(e,t,0)})).order(Qh).offset(jT[n]);return o(e)},PT=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var u=WA.getNiceTickValues(c,o,a);return e.domain([xO(u),yO(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:WA.getTickValuesFixedDomain(l,o,a)}}return null},MT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Xs(o[t.dataKey])){var s=dc(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=hT(o,Xs(a)?t.dataKey:a);return Xs(c)?null:t.scale(c)},DT=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=hT(i,t.dataKey,t.domain[a]);return Xs(s)?null:t.scale(s)-o/2+r},NT=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},IT=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[xO(t.concat([e[0]]).filter(ac)),yO(t.concat([e[1]]).filter(ac))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},RT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BT=function(e,t,n){if(Ri(e))return e(t,n);if(!Li(e))return t;var r=[];if(ac(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(RT.test(e[0])){var o=+RT.exec(e[0])[1];r[0]=t[0]-o}else Ri(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ac(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(LT.test(e[1])){var i=+LT.exec(e[1])[1];r[1]=t[1]+i}else Ri(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},FT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Nw(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},zT=function(e,t,n){return e&&e.length?uO(e,Ys(n,"type.defaultProps.domain"))?t:e:t},HT=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return pT(pT({},Rc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:yT(e),value:hT(t,r),type:s,payload:t,chartType:c})};function VT(e){return VT="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},VT(e)}function UT(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 KT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach((function(t){$T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==VT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WT(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qT(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 qT(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 qT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var GT=Math.PI/180,ZT=function(e){return 180*e/Math.PI},YT=function(e,t,n,r){return{x:e+Math.cos(-GT*r)*n,y:t+Math.sin(-GT*r)*n}},XT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},JT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=lc(e.cx,i,i/2),l=lc(e.cy,a,a/2),f=XT(i,a,n),p=lc(e.innerRadius,f,0),d=lc(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Xs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=WT(i=a.range,2);s=g[0],c=g[1]}var y=CT(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),kT(m);var b=PT(m,KT(KT({},a),{},{realScaleType:v})),w=KT(KT(KT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return KT(KT({},e),{},$T({},n,w))}),{})},QT=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:ZT(c),angleInRadian:c}},eP=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},tP=function(e,t){var n=e.x,r=e.y,o=QT({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?KT(KT({},t),{},{radius:i,angle:eP(d,t)}):null};function nP(e){return nP="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},nP(e)}function rP(e){return function(e){if(Array.isArray(e))return oP(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 oP(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 oP(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 oP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iP(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 aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iP(Object(n),!0).forEach((function(t){sP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cP(){return cP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cP.apply(this,arguments)}var uP=function(e){var t=e.value,n=e.formatter,r=Xs(e.children)?t:e.children;return Ri(n)?n(r):r},lP=function(e,t,n){var r,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(r=g+w*c,i=v):"insideEnd"===a?(r=y-w*c,i=!v):"end"===a&&(r=y+w*c,i=v),i=b<=0?i:!i;var x=YT(f,p,m,r),_=YT(f,p,m,r+359*(i?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),C=Xs(e.id)?uc("recharts-radial-line-"):e.id;return o.createElement("text",cP({},n,{dominantBaseline:"central",className:li("recharts-radial-bar-label",u)}),o.createElement("defs",null,o.createElement("path",{id:C,d:O})),o.createElement("textPath",{xlinkHref:"#".concat(C)},t))},fP=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=YT(i,a,c+n,u),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=YT(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},pP=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,p=l>0?"end":"start",d=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return aP(aP({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return aP(aP({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return aP(aP({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return aP(aP({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?aP({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?aP({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?aP({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?aP({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?aP({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?aP({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?aP({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?aP({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):fi(o)&&(ac(o.x)||ic(o.x))&&(ac(o.y)||ic(o.y))?aP({x:a+lc(o.x,c),y:s+lc(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):aP({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dP=function(e){return"cx"in e&&ac(e.cx)};function hP(e){var t,n=e.viewBox,r=e.position,i=e.value,s=e.children,c=e.content,u=e.className,l=void 0===u?"":u,f=e.textBreakAll;if(!n||Xs(i)&&Xs(s)&&!d(c)&&!Ri(c))return null;if(d(c))return h(c,e);if(Ri(c)){if(d(t=a(c,e)))return t}else t=uP(e);var p=dP(n),g=Rc(e,!0);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return lP(e,t,g);var y=p?fP(e):pP(e);return o.createElement(sO,cP({className:li("recharts-label",l)},g,y,{breakAll:f}),t)}hP.displayName="Label",hP.defaultProps={offset:5};var gP=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ac(h)&&ac(g)){if(ac(l)&&ac(f))return{x:l,y:f,width:h,height:g};if(ac(p)&&ac(d))return{x:p,y:d,width:h,height:g}}return ac(l)&&ac(f)?{x:l,y:f,width:0,height:0}:ac(t)&&ac(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},yP=function(e,t){return e?!0===e?o.createElement(hP,{key:"label-implicit",viewBox:t}):sc(e)?o.createElement(hP,{key:"label-implicit",viewBox:t,value:e}):d(e)?e.type===hP?h(e,{key:"label-implicit",viewBox:t}):o.createElement(hP,{key:"label-implicit",content:e,viewBox:t}):Ri(e)?o.createElement(hP,{key:"label-implicit",content:e,viewBox:t}):fi(e)?o.createElement(hP,cP({viewBox:t},e,{key:"label-implicit"})):null:null};hP.parseViewBox=gP,hP.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=gP(e),i=Tc(r,hP).map((function(e,n){return h(e,{viewBox:t||o,key:"label-".concat(n)})}));return n?[yP(e.label,t||o)].concat(rP(i)):i};var vP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function mP(e){return mP="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},mP(e)}var bP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function wP(e){return function(e){if(Array.isArray(e))return xP(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 xP(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 xP(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 xP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_P.apply(this,arguments)}function OP(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 CP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OP(Object(n),!0).forEach((function(t){SP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EP={valueAccessor:function(e){return Li(e.value)?vP(e.value):e.value}};function AP(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=kP(e,bP);return t&&t.length?o.createElement(Gc,{className:"recharts-label-list"},t.map((function(e,t){var u=Xs(r)?n(e,t):hT(e&&e.payload,r),l=Xs(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(hP,_P({},Rc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:t,value:u,textBreakAll:s,viewBox:hP.parseViewBox(Xs(i)?e:CP(CP({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function jP(e){return jP="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},jP(e)}function TP(){return TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TP.apply(this,arguments)}function PP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IP(r.key),r)}}function MP(e,t){return MP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MP(e,t)}function DP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=NP(e);if(t){var o=NP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===jP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function NP(e){return NP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NP(e)}function IP(e){var t=function(e,t){if("object"!==jP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jP(t)?t:String(t)}AP.displayName="LabelList",AP.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=Tc(e.children,AP).map((function(e,n){return h(e,{data:t,key:"labelList-".concat(n)})}));return n?[function(e,t){return e?!0===e?o.createElement(AP,{key:"labelList-implicit",data:t}):o.isValidElement(e)||Ri(e)?o.createElement(AP,{key:"labelList-implicit",data:t,content:e}):fi(e)?o.createElement(AP,_P({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(wP(r)):r},AP.defaultProps=EP;var RP=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/GT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:YT(t,n,u,f),circleTangency:YT(t,n,r,f),lineTangency:YT(t,n,u*Math.cos(l*GT),p),theta:l}},LP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=YT(t,n,o,i),u=YT(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=YT(t,n,r,i),p=YT(t,n,r,s);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},BP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MP(e,t)}(a,x);var t,n,r,i=DP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<r||u===l)return null;var p,d=li("recharts-sector",f),h=i-r,g=lc(a,h,0,!0);return p=g>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=oc(u-c),f=RP({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=RP({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):LP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=RP({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,O=x.lineTangency,C=x.theta,S=RP({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,A=S.theta,j=s?Math.abs(c-u):Math.abs(c-u)-C-A;if(j<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):LP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l}),o.createElement("path",TP({},Rc(this.props,!0),{className:d,d:p,role:"img"}))}}],n&&PP(t.prototype,n),r&&PP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function FP(e){return FP="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},FP(e)}function zP(){return zP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zP.apply(this,arguments)}function HP(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 VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HP(Object(n),!0).forEach((function(t){qP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GP(r.key),r)}}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function $P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WP(e);if(t){var o=WP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function WP(e){return WP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WP(e)}function qP(e,t,n){return(t=GP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GP(e){var t=function(e,t){if("object"!==FP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FP(t)?t:String(t)}!function(e,t,n){(t=IP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(BP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var ZP={curveBasisClosed:function(e){return new Th(e)},curveBasisOpen:function(e){return new Ph(e)},curveBasis:function(e){return new jh(e)},curveLinearClosed:function(e){return new Hh(e)},curveLinear:ih,curveMonotoneX:function(e){return new Wh(e)},curveMonotoneY:function(e){return new qh(e)},curveNatural:function(e){return new Zh(e)},curveStep:function(e){return new Xh(e,.5)},curveStepAfter:function(e){return new Xh(e,1)},curveStepBefore:function(e){return new Xh(e,0)}},YP=function(e){return e.x===+e.x&&e.y===+e.y},XP=function(e){return e.x},JP=function(e){return e.y},QP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KP(e,t)}(a,x);var t,n,r,i=$P(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(Ri(e))return e;var n="curve".concat(Vd(e));return"curveMonotone"===n&&t?ZP["".concat(n).concat("vertical"===t?"Y":"X")]:ZP[n]||ih}(n,i),c=a?r.filter((function(e){return YP(e)})):r;if(Li(o)){var u=a?o.filter((function(e){return YP(e)})):o,l=c.map((function(e,t){return VP(VP({},e),{},{base:u[t]})}));return(e="vertical"===i?uh().y(JP).x1(XP).x0((function(e){return e.base.x})):uh().x(XP).y1(JP).y0((function(e){return e.base.y}))).defined(YP).curve(s),e(l)}return(e="vertical"===i&&ac(o)?uh().y(JP).x1(XP).x0(o):ac(o)?uh().x(XP).y1(JP).y0(o):ch().x(XP).y(JP)).defined(YP).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,i=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return o.createElement("path",zP({},Rc(this.props),wc(this.props),{className:li("recharts-curve",t),d:a,ref:i}))}}])&&UP(t.prototype,n),r&&UP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function eM(e){return eM="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},eM(e)}function tM(){return tM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tM.apply(this,arguments)}function nM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cM(r.key),r)}}function rM(e,t){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rM(e,t)}function oM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aM(e);if(t){var o=aM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iM(e)}(this,n)}}function iM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aM(e){return aM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aM(e)}function sM(e,t,n){return(t=cM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cM(e){var t=function(e,t){if("object"!==eM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eM(t)?t:String(t)}qP(QP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var uM=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},lM=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},fM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rM(e,t)}(a,x);var t,n,r,i=oM(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sM(iM(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,s=t.radius,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||0===i||0===a)return null;var y=li("recharts-rectangle",c);return g?o.createElement(Mb,{canBegin:u>0,from:{width:i,height:a,x:n,y:r},to:{width:i,height:a,x:n,y:r},duration:p,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,i=t.x,a=t.y;return o.createElement(Mb,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},o.createElement("path",tM({},Rc(e.props,!0),{className:y,d:uM(i,a,n,r,s),ref:function(t){e.node=t}})))})):o.createElement("path",tM({},Rc(this.props,!0),{className:y,d:uM(n,r,i,a,s)}))}}],n&&nM(t.prototype,n),r&&nM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function pM(e){return pM="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},pM(e)}sM(fM,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var dM=["points","className","baseLinePoints","connectNulls"];function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===pM(i)?i:String(i)),r)}var o,i}function vM(e,t){return vM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vM(e,t)}function mM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bM(e);if(t){var o=bM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bM(e)}function wM(e){return function(e){if(Array.isArray(e))return xM(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 xM(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 xM(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 xM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _M=function(e){return e&&e.x===+e.x&&e.y===+e.y},OM=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){_M(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),_M(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(wM(e),wM(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},CM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vM(e,t)}(a,x);var t,n,r,i=mM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=gM(e,dM);if(!t||!t.length)return null;var s=li("recharts-polygon",n);if(r&&r.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=OM(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(OM(t.reverse(),n).slice(1))}(t,r,i);return o.createElement("g",{className:s},o.createElement("path",hM({},Rc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?o.createElement("path",hM({},Rc(a,!0),{fill:"none",d:OM(t,i)})):null,c?o.createElement("path",hM({},Rc(a,!0),{fill:"none",d:OM(r,i)})):null)}var l=OM(t,i);return o.createElement("path",hM({},Rc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&yM(t.prototype,n),r&&yM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function SM(e){return SM="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},SM(e)}function kM(){return kM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kM.apply(this,arguments)}function EM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==SM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===SM(i)?i:String(i)),r)}var o,i}function AM(e,t){return AM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AM(e,t)}function jM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=TM(e);if(t){var o=TM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function TM(e){return TM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TM(e)}var PM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AM(e,t)}(a,x);var t,n,r,i=jM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,i=e.className,a=li("recharts-dot",i);return t===+t&&n===+n&&r===+r?o.createElement("circle",kM({},Rc(this.props),wc(this.props),{className:a,cx:t,cy:n,r:r})):null}}],n&&EM(t.prototype,n),r&&EM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function MM(e){return MM="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},MM(e)}function DM(){return DM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DM.apply(this,arguments)}function NM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BM(r.key),r)}}function IM(e,t){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IM(e,t)}function RM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LM(e);if(t){var o=LM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===MM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function LM(e){return LM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LM(e)}function BM(e){var t=function(e,t){if("object"!==MM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===MM(t)?t:String(t)}var FM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IM(e,t)}(a,x);var t,n,r,i=RM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return ac(t)&&ac(n)&&ac(r)&&ac(i)&&ac(s)&&ac(c)?o.createElement("path",DM({},Rc(this.props,!0),{className:li("recharts-cross",u),d:a.getPath(t,n,r,i,s,c)})):null}}],r=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],n&&NM(t.prototype,n),r&&NM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function zM(e){return zM="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},zM(e)}function HM(){return HM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HM.apply(this,arguments)}function VM(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 UM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach((function(t){GM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZM(r.key),r)}}function $M(e,t){return $M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$M(e,t)}function WM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qM(e);if(t){var o=qM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function qM(e){return qM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qM(e)}function GM(e,t,n){return(t=ZM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZM(e){var t=function(e,t){if("object"!==zM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zM(t)?t:String(t)}!function(e,t,n){(t=BM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(FM,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var YM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$M(e,t)}(a,x);var t,n,r,i=WM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=YT(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=UM({stroke:"#ccc"},Rc(this.props));return o.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=YT(t,n,r,e),u=YT(t,n,i,e);return o.createElement("line",HM({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,t,n){var r=this.props,i=r.cx,a=r.cy,s=UM(UM({stroke:"#ccc"},Rc(this.props)),{},{fill:"none"},n);return o.createElement("circle",HM({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(t),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,t,n){var r=UM(UM({stroke:"#ccc"},Rc(this.props)),{},{fill:"none"},n);return o.createElement("path",HM({},r,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(t),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,t=this.props,n=t.polarRadius,r=t.gridType;return n&&n.length?o.createElement("g",{className:"recharts-polar-grid-concentric"},n.map((function(t,n){return"circle"===r?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:o.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],n&&KM(t.prototype,n),r&&KM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();GM(YM,"displayName","PolarGrid"),GM(YM,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var XM=fO,JM=Kp,QM=vO;var eD=function(e,t){return e&&e.length?XM(e,JM(t),QM):void 0},tD=fO,nD=pO,rD=Kp;var oD=function(e,t){return e&&e.length?tD(e,rD(t),nD):void 0},iD=["cx","cy","angle","ticks","axisLine"],aD=["ticks","tick","angle","tickFormatter","stroke"];function sD(e){return sD="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},sD(e)}function cD(){return cD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cD.apply(this,arguments)}function uD(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 lD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uD(Object(n),!0).forEach((function(t){yD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vD(r.key),r)}}function dD(e,t){return dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dD(e,t)}function hD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gD(e);if(t){var o=gD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gD(e){return gD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gD(e)}function yD(e,t,n){return(t=vD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vD(e){var t=function(e,t){if("object"!==sD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sD(t)?t:String(t)}var mD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dD(e,t)}(a,x);var t,n,r,i=hD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return YT(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=oD(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:eD(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,s=fD(e,iD),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=YT(t,n,c[0],r),l=YT(t,n,c[1],r),f=lD(lD(lD({},Rc(s)),{},{fill:"none"},Rc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return o.createElement("line",cD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.angle,s=t.tickFormatter,c=t.stroke,u=fD(t,aD),l=this.getTickTextAnchor(),f=Rc(u),p=Rc(r),d=n.map((function(t,n){var u=e.getTickValueCoord(t),d=lD(lD(lD(lD({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:n},u),{},{payload:t});return o.createElement(Gc,cD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},xc(e.props,t,n)),a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return o.createElement(Gc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?o.createElement(Gc,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),hP.renderCallByParent(this.props,this.getViewBox())):null}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,cD({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],n&&pD(t.prototype,n),r&&pD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function bD(e){return bD="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},bD(e)}function wD(){return wD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wD.apply(this,arguments)}function xD(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 _D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xD(Object(n),!0).forEach((function(t){ED(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AD(r.key),r)}}function CD(e,t){return CD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CD(e,t)}function SD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kD(e);if(t){var o=kD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function kD(e){return kD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kD(e)}function ED(e,t,n){return(t=AD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AD(e){var t=function(e,t){if("object"!==bD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bD(t)?t:String(t)}yD(mD,"displayName","PolarRadiusAxis"),yD(mD,"axisType","radiusAxis"),yD(mD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var jD=Math.PI/180,TD=1e-5,PD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CD(e,t)}(a,x);var t,n,r,i=SD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=YT(n,r,o,e.coordinate),c=YT(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*jD);return n>TD?"outer"===t?"start":"end":n<-TD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,s=_D(_D({},Rc(this.props)),{},{fill:"none"},Rc(i));if("circle"===a)return o.createElement(PM,wD({className:"recharts-polar-angle-axis-line"},s,{cx:t,cy:n,r:r}));var c=this.props.ticks.map((function(e){return YT(t,n,r,e.coordinate)}));return o.createElement(CM,wD({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,s=t.tickFormatter,c=t.stroke,u=Rc(this.props),l=Rc(r),f=_D(_D({},u),{},{fill:"none"},Rc(i)),p=n.map((function(t,n){var p=e.getTickLineCoord(t),d=_D(_D(_D({textAnchor:e.getTickTextAnchor(t)},u),{},{stroke:"none",fill:c},l),{},{index:n,payload:t,x:p.x2,y:p.y2});return o.createElement(Gc,wD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},xc(e.props,t,n)),i&&o.createElement("line",wD({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&a.renderTickItem(r,d,s?s(t.value,n):t.value))}));return o.createElement(Gc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.createElement(Gc,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,wD({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],n&&OD(t.prototype,n),r&&OD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();ED(PD,"displayName","PolarAngleAxis"),ED(PD,"axisType","angleAxis"),ED(PD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var MD=Vl(Object.getPrototypeOf,Object),DD=ji,ND=MD,ID=Bi,RD="[object Object]",LD=Function.prototype,BD=Object.prototype,FD=LD.toString,zD=BD.hasOwnProperty,HD=FD.call(Object);var VD=function(e){if(!ID(e)||DD(e)!=RD)return!1;var t=ND(e);if(null===t)return!0;var n=zD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&FD.call(n)==HD};function UD(e){return UD="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},UD(e)}function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}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 WD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$D(Object(n),!0).forEach((function(t){JD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QD(r.key),r)}}function GD(e,t){return GD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GD(e,t)}function ZD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XD(e);if(t){var o=XD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===UD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YD(e)}(this,n)}}function YD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XD(e){return XD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XD(e)}function JD(e,t,n){return(t=QD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QD(e){var t=function(e,t){if("object"!==UD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==UD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===UD(t)?t:String(t)}var eN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GD(e,t)}(a,x);var t,n,r,i=ZD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),JD(YD(t=i.call(this,e)),"pieRef",null),JD(YD(t),"sectorRefs",[]),JD(YD(t),"id",uc("recharts-pie-")),JD(YD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ri(e)&&e()})),JD(YD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ri(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,i=t.dataKey,s=t.valueKey,c=Rc(this.props),u=Rc(n),l=Rc(r),f=n&&n.offsetRadius||20,p=e.map((function(e,t){var p=(e.startAngle+e.endAngle)/2,d=YT(e.cx,e.cy,e.outerRadius+f,p),h=WD(WD(WD(WD({},c),e),{},{stroke:"none"},u),{},{index:t,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=WD(WD(WD(WD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[YT(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Xs(i)&&Xs(s)?y="value":Xs(i)&&(y=s),o.createElement(Gc,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,hT(e,y)))}));return o.createElement(Gc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,s=n.inactiveShape;return e.map((function(e,n){var c=s&&t.hasActiveIndex()?s:null,u=t.isActiveIndex(n)?r:c,l=WD(WD({},e),{},{stroke:i?e.fill:e.stroke});return o.createElement(Gc,KD({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},xc(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],o=t>0?Ys(e,"paddingAngle",0):0;if(n){var s=pc(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=WD(WD({},e),{},{startAngle:a+o,endAngle:a+s(r)+o});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=pc(0,u-f)(r),d=WD(WD({},e),{},{startAngle:a+o,endAngle:a+p+o});i.push(d),a=d.endAngle}})),o.createElement(Gc,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,s=t.cx,c=t.cy,u=t.innerRadius,l=t.outerRadius,f=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!r||!r.length||!ac(s)||!ac(c)||!ac(u)||!ac(l))return null;var d=li("recharts-pie",i);return o.createElement(Gc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),hP.renderCallByParent(this.props,null,!1),(!f||p)&&AP.renderCallByParent(this.props,r,!1))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(QP,KD({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(o.isValidElement(e))return o.cloneElement(e,t);var r=n;return Ri(e)&&(r=e(t),o.isValidElement(r))?r:o.createElement(sO,KD({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):VD(e)?o.createElement(BP,KD({tabIndex:-1},t,e)):o.createElement(BP,KD({tabIndex:-1},t))}}],n&&qD(t.prototype,n),r&&qD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();JD(eN,"displayName","Pie"),JD(eN,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Gw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),JD(eN,"parseDeltaAngle",(function(e,t){return oc(t-e)*Math.min(Math.abs(t-e),360)})),JD(eN,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=Rc(e.props),i=Tc(r,qx);return n&&n.length?n.map((function(e,t){return WD(WD(WD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return WD(WD({},o),e.props)})):[]})),JD(eN,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=XT(o,i);return{cx:r+lc(e.props.cx,o,o/2),cy:n+lc(e.props.cy,i,i/2),innerRadius:lc(e.props.innerRadius,a,0),outerRadius:lc(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),JD(eN,"getComposedData",(function(e){var t=e.item,n=e.offset,r=eN.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=eN.parseCoordinateOfPie(t,n),g=eN.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Xs(u)&&Xs(f)?(Vx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Xs(u)&&(Vx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==hT(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=hT(t,v,0);return e+(ac(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=hT(e,v,0),o=hT(e,l,t),s=(ac(r)?r:0)/_,u=(n=t?b.endAngle+oc(g)*c*(0!==r?1:0):a)+oc(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=YT(h.cx,h.cy,y,f);return b=WD(WD(WD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:hT(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:oc(g)*c})})));return WD(WD({},h),{},{sectors:m,data:r})}));var tN={};var nN=function(e){return e&&e.length?e[0]:void 0};({get exports(){return tN},set exports(e){tN=e}}).exports=nN;var rN=N(tN);function oN(e){return oN="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},oN(e)}function iN(){return iN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iN.apply(this,arguments)}function aN(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 sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(n),!0).forEach((function(t){dN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hN(r.key),r)}}function uN(e,t){return uN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uN(e,t)}function lN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pN(e);if(t){var o=pN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fN(e)}(this,n)}}function fN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pN(e){return pN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pN(e)}function dN(e,t,n){return(t=hN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e){var t=function(e,t){if("object"!==oN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oN(t)?t:String(t)}var gN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uN(e,t)}(a,x);var t,n,r,i=lN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dN(fN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),dN(fN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),dN(fN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),dN(fN(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),dN(fN(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return t=a,n=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,i=Rc(this.props),s=Rc(n),c=e.map((function(e,t){var o=sN(sN(sN({key:"dot-".concat(t),r:3},i),s),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,o)}));return o.createElement(Gc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,i=n.dot,a=n.isRange,s=n.baseLinePoints,c=n.connectNulls;return t=o.isValidElement(r)?o.cloneElement(r,sN(sN({},this.props),{},{points:e})):Ri(r)?r(sN(sN({},this.props),{},{points:e})):o.createElement(CM,iN({},Rc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),o.createElement(Gc,{className:"recharts-radar-polygon"},t,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=u&&u.length/n.length,i=n.map((function(e,t){var n=u&&u[Math.floor(t*o)];if(n){var i=pc(n.x,e.x),a=pc(n.y,e.y);return sN(sN({},e),{},{x:i(r),y:a(r)})}var s=pc(e.cx,e.x),c=pc(e.cy,e.y);return sN(sN({},e),{},{x:s(r),y:c(r)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&uO(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,i=e.isAnimationActive;if(t||!r||!r.length)return null;var a=this.state.isAnimationFinished,s=li("recharts-radar",n);return o.createElement(Gc,{className:s},this.renderPolygon(),(!i||a)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,iN({},t,{className:"recharts-radar-dot"}))}}],n&&cN(t.prototype,n),r&&cN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();dN(gN,"displayName","Radar"),dN(gN,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),dN(gN,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=hT(e,n.dataKey,r),f=hT(e,o),p=n.scale(l)+(i||0),d=Li(f)?vP(f):f,h=Xs(d)?void 0:t.scale(d);Li(f)&&f.length>=2&&(c=!0),u.push(sN(sN({},YT(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(Li(e.value)){var n=rN(e.value),r=Xs(n)?void 0:t.scale(n);l.push(sN(sN({},e),{},{radius:r},YT(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var yN=["shape","activeShape","activeIndex","cornerRadius"],vN=["value","background"];function mN(e){return mN="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},mN(e)}function bN(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 wN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bN(Object(n),!0).forEach((function(t){EN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AN(r.key),r)}}function ON(e,t){return ON=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ON(e,t)}function CN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kN(e);if(t){var o=kN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SN(e)}(this,n)}}function SN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kN(e){return kN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kN(e)}function EN(e,t,n){return(t=AN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e){var t=function(e,t){if("object"!==mN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mN(t)?t:String(t)}var jN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ON(e,t)}(a,x);var t,n,r,i=CN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EN(SN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),EN(SN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),EN(SN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return oc(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=xN(n,yN),u=Rc(c);return e.map((function(e,n){var l=wN(wN(wN(wN({},u),{},{cornerRadius:s},e),xc(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.startAngle,e.startAngle),i=pc(n.endAngle,e.endAngle);return wN(wN({},e),{},{startAngle:o(r),endAngle:i(r)})}var a=e.endAngle,s=e.startAngle,c=pc(s,a);return wN(wN({},e),{},{endAngle:c(r)})}));return o.createElement(Gc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Rc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=xN(e,vN);if(!i)return null;var c=wN(wN(wN(wN(wN({cornerRadius:n},s),{},{fill:"#eee"},i),r),xc(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.background,a=e.isAnimationActive;if(t||!n||!n.length)return null;var s=this.state.isAnimationFinished,c=li("recharts-area",r);return o.createElement(Gc,{className:c},i&&o.createElement(Gc,{className:"recharts-radial-bar-background"},this.renderBackground(n)),o.createElement(Gc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&AP.renderCallByParent(wN({},this.props),n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderSectorShape",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(BP,t)}}],n&&_N(t.prototype,n),r&&_N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();EN(jN,"displayName","RadialBar"),EN(jN,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),EN(jN,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=ET(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=NT({numericAxis:w}),O=Tc(m,qx);return{data:s.map((function(e,s){var l,v,m,w,C,S;if(u?l=AT(u[p+s],x):(l=hT(e,c),Li(l)||(l=[_,l])),"radial"===y){v=DT({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),C=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=C-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))C+=oc(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),C=(w=DT({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=oc(E||b)*(Math.abs(b)-Math.abs(E))}return wN(wN(wN(wN({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:C},O&&O[s]&&O[s].props),{},{tooltipPayload:[HT(t,e)],tooltipPosition:YT(h,g,(v+m)/2,(w+C)/2)})})),layout:y}}));var TN=Math.ceil,PN=Math.max;var MN=_x,DN=1/0,NN=17976931348623157e292;var IN=function(e){return e?(e=MN(e))===DN||e===-DN?(e<0?-1:1)*NN:e==e?e:0:0===e?e:0},RN=function(e,t,n,r){for(var o=-1,i=PN(TN((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},LN=Tw,BN=IN;var FN=function(e){return function(t,n,r){return r&&"number"!=typeof r&&LN(t,n,r)&&(n=r=void 0),t=BN(t),void 0===n?(n=t,t=0):n=BN(n),r=void 0===r?t<n?1:-1:BN(r),RN(t,n,r,e)}}();function zN(e){return zN="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},zN(e)}function HN(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 VN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HN(Object(n),!0).forEach((function(t){UN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KN=["Webkit","Moz","O","ms"];function $N(e){return $N="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},$N(e)}function WN(){return WN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WN.apply(this,arguments)}function qN(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 GN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qN(Object(n),!0).forEach((function(t){eI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tI(r.key),r)}}function YN(e,t){return YN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YN(e,t)}function XN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QN(e);if(t){var o=QN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JN(e)}(this,n)}}function JN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QN(e){return QN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QN(e)}function eI(e,t,n){return(t=tI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tI(e){var t=function(e,t){if("object"!==$N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$N(t)?t:String(t)}var nI=function(e){return e.changedTouches&&!!e.changedTouches.length},rI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YN(e,t)}(a,x);var t,n,r,i=XN(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),eI(JN(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),eI(JN(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),eI(JN(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),eI(JN(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),eI(JN(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),eI(JN(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),eI(JN(t),"handleSlideDragStart",(function(e){var n=nI(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(JN(t),"startX"),endX:t.handleTravellerDragStart.bind(JN(t),"endX")},t.state={},t}return t=a,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,s=o.data.length-1,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=hT(n[e],o,e);return Ri(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=nI(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,d=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((eI(t={},o,s+y),eI(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,s=e.stroke;return o.createElement("rect",{stroke:s,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=p.only(s);return u?o.cloneElement(u,{x:t,y:n,width:r,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,s=n.height,c=n.traveller,u=Math.max(e,this.props.x),l=GN(GN({},Rc(this.props)),{},{x:u,y:r,width:i,height:s});return o.createElement(Gc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,s=n.travellerWidth,c=Math.min(e,t)+s,u=Math.max(Math.abs(t-e)-s,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:r,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return o.createElement(Gc,{className:"recharts-brush-texts"},o.createElement(sO,WN({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},f),this.getTextOfTick(t)),o.createElement(sO,WN({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!ac(i)||!ac(a)||!ac(s)||!ac(c)||s<=0||c<=0)return null;var y=li("recharts-brush",n),v=1===o.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=KN.reduce((function(e,r){return VN(VN({},e),{},UN({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return o.createElement(Gc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||g||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,s=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:s,x2:t+r-1,y2:s,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:s+2,x2:t+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return GN({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=rC().domain(FN(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],n&&ZN(t.prototype,n),r&&ZN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();eI(rI,"displayName","Brush"),eI(rI,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oI=Kb;var iI=hu,aI=Kp,sI=function(e,t){var n;return oI(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},cI=Li,uI=Tw;var lI=function(e,t,n){var r=cI(e)?iI:sI;return n&&uI(e,t,n)&&(t=void 0),r(e,aI(t))},fI=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var pI=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},dI=Kb;var hI=pI,gI=function(e,t){var n=!0;return dI(e,(function(e,r,o){return n=!!t(e,r,o)})),n},yI=Kp,vI=Li,mI=Tw;var bI=function(e,t,n){var r=vI(e)?hI:gI;return n&&mI(e,t,n)&&(t=void 0),r(e,yI(t))},wI=hw;var xI=function(e,t,n){"__proto__"==t&&wI?wI(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},_I=xI,OI=Vb,CI=Kp;var SI=function(e,t){var n={};return t=CI(t),OI(e,(function(e,r,o){_I(n,r,t(e,r,o))})),n},kI=["value","background"];function EI(e){return EI="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},EI(e)}function AI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jI.apply(this,arguments)}function TI(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 PI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TI(Object(n),!0).forEach((function(t){LI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BI(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function NI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RI(e);if(t){var o=RI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return II(e)}(this,n)}}function II(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RI(e){return RI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RI(e)}function LI(e,t,n){return(t=BI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BI(e){var t=function(e,t){if("object"!==EI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EI(t)?t:String(t)}var FI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DI(e,t)}(a,x);var t,n,r,i=NI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LI(II(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),LI(II(e),"id",uc("recharts-bar-")),LI(II(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),LI(II(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=a,n=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=Rc(this.props);return e&&e.map((function(e,i){var s=PI(PI(PI({},r),e),{},{index:i});return o.createElement(Gc,jI({className:"recharts-bar-rectangle"},xc(t.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(n,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,c=t.animationEasing,u=t.animationId,l=this.state.prevData;return o.createElement(Mb,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=l&&l[t];if(n){var o=pc(n.x,e.x),a=pc(n.y,e.y),s=pc(n.width,e.width),c=pc(n.height,e.height);return PI(PI({},e),{},{x:o(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===r){var u=pc(0,e.height)(i);return PI(PI({},e),{},{y:e.y+e.height-u,height:u})}var f=pc(0,e.width)(i);return PI(PI({},e),{},{width:f})}));return o.createElement(Gc,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Rc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=AI(t,kI);if(!o)return null;var s=PI(PI(PI(PI(PI({},i),{},{fill:"#eee"},o),n),xc(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,s=n.layout,c=Tc(n.children,sT);if(!c)return null;var u="vertical"===s?r[0].height/2:r[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hT(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,f,c.map((function(e,t){return o.cloneElement(e,{key:"error-bar-".concat(t),data:r,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=li("recharts-bar",r),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Xs(d)?this.id:d;return o.createElement(Gc,{className:g},y?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(v)},o.createElement("rect",{x:s,y:c,width:u,height:l}))):null,o.createElement(Gc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,t)}}],n&&MI(t.prototype,n),r&&MI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function zI(e){return zI="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},zI(e)}function HI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$I(r.key),r)}}function VI(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 UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VI(Object(n),!0).forEach((function(t){KI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KI(e,t,n){return(t=$I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $I(e){var t=function(e,t){if("object"!==zI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zI(t)?t:String(t)}LI(FI,"displayName","Bar"),LI(FI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),LI(FI,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=ET(r,n);if(!d)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=NT({numericAxis:b}),_=Tc(v,qx),O=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=AT(u[l+t],w):(r=hT(e,y),Li(r)||(r=[x,r])),"horizontal"===h){var O,C=[a.scale(r[0]),a.scale(r[1])],S=C[0],k=C[1];f=DT({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(O=null!=k?k:S)&&void 0!==O?O:void 0,g=d.size;var E=S-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var A=oc(v||m)*(Math.abs(m)-Math.abs(v));p-=A,v+=A}}else{var j=[i.scale(r[0]),i.scale(r[1])],T=j[0],P=j[1];if(f=T,p=DT({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=oc(g||m)*(Math.abs(m)-Math.abs(g))}return PI(PI(PI({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[HT(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return PI({data:O,layout:h},p)}));var WI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Pc(c,FI);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var O=v[1]-v[0],C=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(C=Math.min((e||0)-(S[t-1]||0),C))}));var k=C/O,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var A=lc(e.barCategoryGap,k*E),j=k*E/2;c=j-A-(j-A)/E*A}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=CT(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),kT(P);var D=PT(P,UI(UI({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var N=UI(UI(UI({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return N.bandSize=FT(N,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*N.width):l[_]+=(h?-1:1)*N.height,UI(UI({},i),{},KI({},a,N))}),{})},qI=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},GI=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return qI({x:t,y:n},{x:r,y:o})},ZI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&HI(t.prototype,n),r&&HI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();KI(ZI,"EPS",1e-4);var YI=function(e){var t=Object.keys(e).reduce((function(t,n){return UI(UI({},t),{},KI({},n,ZI.create(e[n])))}),{});return UI(UI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return SI(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return bI(e,(function(e,n){return t[n].isInRange(e)}))}})};function XI(e){return XI="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},XI(e)}function JI(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 QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JI(Object(n),!0).forEach((function(t){eR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==XI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nR(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 nR(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 nR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rR(){return rR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rR.apply(this,arguments)}var oR=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement("line",rR({},t,{className:"recharts-reference-line-line"}))},iR=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(fI(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(fI(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return fI(o,"discard")&&lI(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function aR(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;Vx(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=YI({x:i.scale,y:a.scale}),p=sc(t),d=sc(n),h=r&&2===r.length,g=iR(f,p,d,h,e);if(!g)return null;var y=tR(g,2),v=y[0],m=v.x,b=v.y,w=y[1],x=w.x,_=w.y,O=QI(QI({clipPath:fI(e,"hidden")?"url(#".concat(l,")"):void 0},Rc(e,!0)),{},{x1:m,y1:b,x2:x,y2:_});return o.createElement(Gc,{className:li("recharts-reference-line",c)},oR(s,O),hP.renderCallByParent(e,GI({x1:m,y1:b,x2:x,y2:_})))}function sR(e){return sR="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},sR(e)}function cR(){return cR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cR.apply(this,arguments)}function uR(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 lR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){fR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==sR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}aR.displayName="ReferenceLine",aR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var pR=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=YI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return fI(e,"discard")&&!i.isInRange(a)?null:a};function dR(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,s=sc(t),c=sc(n);if(Vx(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=pR(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=lR(lR({clipPath:fI(e,"hidden")?"url(#".concat(a,")"):void 0},Rc(e,!0)),{},{cx:l,cy:f});return o.createElement(Gc,{className:li("recharts-reference-dot",d)},dR.renderDot(p,h),hP.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function hR(e){return hR="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},hR(e)}function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gR.apply(this,arguments)}function yR(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 vR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yR(Object(n),!0).forEach((function(t){mR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}dR.displayName="ReferenceDot",dR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},dR.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,cR({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var bR=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=YI({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!fI(o,"discard")||f.isInRange(p)&&f.isInRange(d)?qI(p,d):null};function wR(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Vx(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=sc(t),l=sc(n),f=sc(r),p=sc(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=bR(u,l,f,p,e);if(!h&&!d)return null;var g=fI(e,"hidden")?"url(#".concat(c,")"):void 0;return o.createElement(Gc,{className:li("recharts-reference-area",a)},wR.renderRect(d,vR(vR({clipPath:g},Rc(e,!0)),h)),hP.renderCallByParent(e,h))}function xR(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function _R(e){return _R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_R(e)}function OR(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 CR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OR(Object(n),!0).forEach((function(t){SR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_R(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kR(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?H_(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?oc(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=Ri(i)?i(x.value,b-1):x.value,O=H_(_,{fontSize:l,letterSpacing:f})[y]+m,C=w*(x.coordinate+w*O/2-r);v[b-1]=x=CR(CR({},x),{},{tickCoord:C>0?x.coordinate-C*w:x.coordinate}),w*(x.tickCoord-w*O/2-n)>=0&&w*(x.tickCoord+w*O/2-r)<=0&&(r=x.tickCoord-w*(O/2+c),v[b-1]=CR(CR({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],A=Ri(i)?i(E.value,k):E.value,j=H_(A,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*j/2-n);v[k]=E=CR(CR({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=CR(CR({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*j/2-n)>=0&&w*(E.tickCoord+w*j/2-r)<=0&&(n=E.tickCoord+w*(j/2+c),v[k]=CR(CR({},E),{},{isShow:!0}))}return v}function ER(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit;if(!o||!o.length||!r)return[];if(ac(c)||Gw.isSsr)return function(e,t){return xR(e,t+1)}(o,"number"==typeof c&&ac(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=xR(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=xR(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=kR({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?kR({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=e.fontSize,l=e.letterSpacing,f=i.x,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?H_(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?oc(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=Ri(o)?o(x.value,m-w-1):x.value,O=H_(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var C=b*(x.coordinate+b*O/2-n);v[w]=x=CR(CR({},x),{},{tickCoord:C>0?x.coordinate-C*b:x.coordinate})}else v[w]=x=CR(CR({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*O/2-t)>=0&&b*(x.tickCoord+b*O/2-n)<=0&&(n=x.tickCoord-b*(O/2+s),v[w]=CR(CR({},x),{},{isShow:!0}))}return v}({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}wR.displayName="ReferenceArea",wR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},wR.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,gR({},t,{className:"recharts-reference-area-rect"}))};var AR=["viewBox"],jR=["viewBox"],TR=["ticks"];function PR(e){return PR="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},PR(e)}function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MR.apply(this,arguments)}function DR(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 NR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DR(Object(n),!0).forEach((function(t){zR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function RR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HR(r.key),r)}}function LR(e,t){return LR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LR(e,t)}function BR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FR(e);if(t){var o=FR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===PR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function FR(e){return FR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FR(e)}function zR(e,t,n){return(t=HR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e){var t=function(e,t){if("object"!==PR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PR(t)?t:String(t)}var VR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LR(e,t)}(a,O);var t,n,r,i=BR(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=IR(e,AR),o=this.props,i=o.viewBox,a=IR(o,jR);return!hc(n,i)||!hc(r,a)||!hc(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,u=s.y,l=s.width,f=s.height,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=ac(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=NR(NR(NR({},Rc(this.props)),Rc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=NR(NR({},u),{},{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=NR(NR({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+i})}return o.createElement("line",MR({},u,{className:li("recharts-cartesian-axis-line",Ys(c,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,p=ER(NR(NR({},this.props),{},{ticks:e}),t,n),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Rc(this.props),y=Rc(u),v=NR(NR({},g),{},{fill:"none"},Rc(s)),m=p.map((function(e,t){var n=r.getTickLineCoord(e),i=n.line,m=n.tick,b=NR(NR(NR(NR({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:t,payload:e,visibleTicksCount:p.length,tickFormatter:l});return o.createElement(Gc,MR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},xc(r.props,e,t)),s&&o.createElement("line",MR({},v,i,{className:li("recharts-cartesian-axis-tick-line",Ys(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(Ri(l)?l(e.value,t):e.value).concat(f||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,u=c.ticks,l=IR(c,TR),f=u;return Ri(a)&&(f=u&&u.length>0?a(this.props):a(l)),r<=0||i<=0||!f||!f.length?null:o.createElement(Gc,{className:li("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),hP.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(sO,MR({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&RR(t.prototype,n),r&&RR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();zR(VR,"displayName","CartesianAxis"),zR(VR,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var UR=["x1","y1","x2","y2","key"];function KR(e){return KR="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},KR(e)}function $R(){return $R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$R.apply(this,arguments)}function WR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qR(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 GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(n),!0).forEach((function(t){QR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eL(r.key),r)}}function YR(e,t){return YR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YR(e,t)}function XR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JR(e);if(t){var o=JR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function JR(e){return JR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JR(e)}function QR(e,t,n){return(t=eL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eL(e){var t=function(e,t){if("object"!==KR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KR(t)?t:String(t)}var tL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YR(e,t)}(a,x);var t,n,r,i=XR(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,i=n.width,s=n.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,n){var o=GR(GR({},t.props),{},{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,i=n.height,s=n.vertical;if(!e||!e.length)return null;var c=e.map((function(e,n){var o=GR(GR({},t.props),{},{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return a.renderLineItem(s,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,c=n.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:i+s-e;if(l<=0)return null;var f=n%t.length;return o.createElement("rect",{key:"react-".concat(n),x:e,y:a,width:l,height:c,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,c=n.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:a+c-e;if(l<=0)return null;var f=n%t.length;return o.createElement("rect",{key:"react-".concat(n),y:e,x:i,height:l,width:s,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,i=t.y,a=t.width,s=t.height;return o.createElement("rect",{x:r,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!ac(r)||r<=0||!ac(i)||i<=0||!ac(t)||t!==+t||!ac(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!Ri(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!Ri(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],r=[{key:"renderLineItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(Ri(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,s=t.y2,c=t.key,u=WR(t,UR);n=o.createElement("line",$R({},Rc(u),{x1:r,y1:i,x2:a,y2:s,fill:"none",key:c}))}return n}}],n&&ZR(t.prototype,n),r&&ZR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();QR(tL,"displayName","CartesianGrid"),QR(tL,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var nL=["type","layout","connectNulls","ref"];function rL(e){return rL="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},rL(e)}function oL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iL(){return iL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iL.apply(this,arguments)}function aL(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 sL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aL(Object(n),!0).forEach((function(t){gL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cL(e){return function(e){if(Array.isArray(e))return uL(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 uL(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 uL(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 uL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yL(r.key),r)}}function fL(e,t){return fL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fL(e,t)}function pL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hL(e);if(t){var o=hL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dL(e)}(this,n)}}function dL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hL(e){return hL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hL(e)}function gL(e,t,n){return(t=yL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yL(e){var t=function(e,t){if("object"!==rL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rL(t)?t:String(t)}var vL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fL(e,t)}(a,x);var t,n,r,i=pL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gL(dL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),gL(dL(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(cL(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(cL(a.repeat(n,o)),cL(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),gL(dL(e),"id",uc("recharts-line-")),gL(dL(e),"pathRef",(function(t){e.mainCurve=t})),gL(dL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),gL(dL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,s=n.layout,c=Tc(n.children,sT);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:hT(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,l,c.map((function(e,t){return o.cloneElement(e,{key:"bar-".concat(t),data:r,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,i=n.points,s=n.dataKey,c=Rc(this.props),u=Rc(r,!0),l=i.map((function(e,t){var n=sL(sL(sL({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,iL({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=oL(i,nL),l=sL(sL(sL({},Rc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:s,connectNulls:c});return o.createElement(QP,iL({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.animateNewValues,d=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return o.createElement(Mb,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=pc(r.x,e.x),a=pc(r.y,e.y);return sL(sL({},e),{},{x:i(o),y:a(o)})}if(p){var c=pc(2*d,e.x),u=pc(h/2,e.y);return sL(sL({},e),{},{x:c(o),y:u(o)})}return sL(sL({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(c,e,t)}var u,l=pc(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!uO(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=li("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Xs(d)?this.id:d;return o.createElement(Gc,{className:y},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(m)},o.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||n)&&this.renderDots(v,m),(!p||h)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(cL(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(cL(r),cL(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(Ri(e))n=e(t);else{var r=li("recharts-line-dot",e?e.className:"");n=o.createElement(PM,iL({},t,{className:r}))}return n}}],n&&lL(t.prototype,n),r&&lL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();gL(vL,"displayName","Line"),gL(vL,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),gL(vL,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,l=t.layout;return sL({points:c.map((function(e,t){var c=hT(e,a);return"horizontal"===l?{x:MT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Xs(c)?null:r.scale(c),value:c,payload:e}:{x:Xs(c)?null:n.scale(c),y:MT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var mL=["layout","type","stroke","connectNulls","isRange","ref"];function bL(e){return bL="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},bL(e)}function wL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xL(){return xL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xL.apply(this,arguments)}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 OL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_L(Object(n),!0).forEach((function(t){jL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TL(r.key),r)}}function SL(e,t){return SL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SL(e,t)}function kL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AL(e);if(t){var o=AL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return EL(e)}(this,n)}}function EL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AL(e){return AL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AL(e)}function jL(e,t,n){return(t=TL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TL(e){var t=function(e,t){if("object"!==bL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bL(t)?t:String(t)}var PL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SL(e,t)}(a,x);var t,n,r,i=kL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return jL(EL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),jL(EL(e),"id",uc("recharts-area-")),jL(EL(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),jL(EL(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=Rc(this.props),f=Rc(s,!0),p=c.map((function(e,t){var n=OL(OL(OL({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(Gc,xL({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,s=r[r.length-1].x,c=e*Math.abs(a-s),u=yO(r.map((function(e){return e.y||0})));return ac(n)&&"number"==typeof n?u=Math.max(n,u):n&&Li(n)&&n.length&&(u=Math.max(yO(n.map((function(e){return e.y||0}))),u)),ac(u)?o.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,s=r[r.length-1].y,c=e*Math.abs(a-s),u=yO(r.map((function(e){return e.x||0})));return ac(n)&&"number"==typeof n?u=Math.max(n,u):n&&Li(n)&&n.length&&(u=Math.max(yO(n.map((function(e){return e.x||0}))),u)),ac(u)?o.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=wL(i,mL);return o.createElement(Gc,{clipPath:n?"url(#clipPath-".concat(r,")"):null},o.createElement(QP,xL({},Rc(f,!0),{points:e,connectNulls:u,type:s,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&o.createElement(QP,xL({},Rc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&o.createElement(QP,xL({},Rc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return o.createElement(Mb,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=pc(r.x,e.x),i=pc(r.y,e.y);return OL(OL({},e),{},{x:o(s),y:i(s)})}return e}));return c=ac(a)&&"number"==typeof a?pc(h,a)(s):Xs(a)||rc(a)?pc(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=pc(r.x,e.x),i=pc(r.y,e.y);return OL(OL({},e),{},{x:o(s),y:i(s)})}return e})),n.renderAreaStatically(l,c,e,t)}return o.createElement(Gc,null,o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(s))),o.createElement(Gc,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(i,a,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!uO(s,r)||!uO(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=li("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Xs(d)?this.id:d;return o.createElement(Gc,{className:y},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(m)},o.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!p||h)&&AP.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],n&&CL(t.prototype,n),r&&CL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();jL(PL,"displayName","Area"),jL(PL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),jL(PL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(ac(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),jL(PL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=PL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=hT(e,u);g?n=l[f+t]:Li(n=r)?v=!0:n=[y,n];var p=Xs(n[1])||g&&Xs(r);return"horizontal"===h?{x:MT({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:MT({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Xs(Ys(e,"value[0]"))||Xs(Ys(e,"y"))?null:i.scale(Ys(e,"value[0]"))}:{x:Xs(Ys(e,"value[0]"))?null:o.scale(Ys(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),OL({points:m,baseLine:t,layout:h,isRange:v},d)})),jL(PL,"renderDotItem",(function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(PM,xL({},t,{className:"recharts-area-dot"}))}));var ML=function(){return null};function DL(e){return DL="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},DL(e)}function NL(){return NL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NL.apply(this,arguments)}function IL(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 RL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IL(Object(n),!0).forEach((function(t){VL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UL(r.key),r)}}function BL(e,t){return BL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BL(e,t)}function FL(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HL(e);if(t){var o=HL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===DL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zL(e)}(this,n)}}function zL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HL(e){return HL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HL(e)}function VL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=function(e,t){if("object"!==DL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DL(t)?t:String(t)}ML.displayName="ZAxis",ML.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var KL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BL(e,t)}(a,x);var t,n,r,i=FL(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VL(zL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),VL(zL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),VL(zL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),VL(zL(e),"id",uc("recharts-scatter-")),e}return t=a,n=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,s=n.activeIndex,c=Rc(this.props);return e.map((function(e,n){var u=RL(RL({key:"symbol-".concat(n)},c),e);return o.createElement(Gc,NL({className:"recharts-scatter-symbol"},xc(t.props,e,n),{key:"symbol-".concat(n),role:"img"}),a.renderSymbolItem(s===n?i:r,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevPoints;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.cx,e.cx),i=pc(n.cy,e.cy),a=pc(n.size,e.size);return RL(RL({},e),{},{cx:o(r),cy:i(r),size:a(r)})}var s=pc(0,e.size);return RL(RL({},e),{},{size:s(r)})}));return o.createElement(Gc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=Tc(e.children,sT);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:hT(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:hT(e,t)}}return i.map((function(e,i){var c=e.props.direction;return o.cloneElement(e,{key:i,data:t,xAxis:n,yAxis:r,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,i=n.line,a=n.lineType,s=n.lineJointType,c=Rc(this.props),u=Rc(i);if("joint"===a)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=RL(RL(RL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return t=o.isValidElement(i)?o.cloneElement(i,y):Ri(i)?i(y):o.createElement(QP,NL({},y,{type:s})),o.createElement(Gc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=li("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Xs(p)?this.id:p;return o.createElement(Gc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(v)},o.createElement("rect",{x:c,y:u,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),o.createElement(Gc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,t){var n;return o.isValidElement(e)?n=o.cloneElement(e,t):Ri(e)?n=e(t):"string"==typeof e&&(n=o.createElement(pg,NL({},t,{type:e}))),n}}],n&&LL(t.prototype,n),r&&LL(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();VL(KL,"displayName","Scatter"),VL(KL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),VL(KL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=Tc(o.props.children,qx),f=Xs(t.dataKey)?o.props.dataKey:t.dataKey,p=Xs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:ML.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=hT(e,f),h=hT(e,p),m=!Xs(d)&&hT(e,d)||"-",b=[{name:Xs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Xs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=MT({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=MT({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,O=Math.sqrt(Math.max(_,0)/Math.PI);return RL(RL({},e),{},{cx:w,cy:x,x:w-O,y:x-O,xAxis:t,yAxis:n,zAxis:r,width:2*O,height:2*O,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return RL({points:m},c)}));var $L=function(){return null};$L.displayName="XAxis",$L.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var WL=function(){return null};WL.displayName="YAxis",WL.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var qL=Kp,GL=Yl,ZL=ef;var YL=function(e){return function(t,n,r){var o=Object(t);if(!GL(t)){var i=qL(n);t=ZL(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},XL=IN;var JL=$p,QL=Kp,eB=function(e){var t=XL(e),n=t%1;return t==t?n?t-n:t:0},tB=Math.max;var nB=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:eB(n);return o<0&&(o=tB(r+o,0)),JL(e,QL(t),o)},rB=YL(nB),oB=ji,iB=Bi,aB="[object Boolean]";var sB=function(e){return!0===e||!1===e||iB(e)&&oB(e)==aB};function cB(e){return function(e){if(Array.isArray(e))return uB(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 uB(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 uB(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 uB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lB=function(e,t,n,r,o){var i=Tc(e,aR),a=Tc(e,dR),s=[].concat(cB(i),cB(a)),c=Tc(e,wR),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&fI(t.props,"extendDomain")&&ac(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&fI(t.props,"extendDomain")&&ac(t.props[p])&&ac(t.props[d])){var r=t.props[p],o=t.props[d];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ac(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},fB={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}({get exports(){return fB},set exports(e){fB=e}});var pB=new fB;pB.setMaxListeners&&pB.setMaxListeners(10);var dB="recharts.syncMouseEvents",hB=["item"],gB=["children","className","width","height","style","compact","title","desc"];function yB(e){return yB="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},yB(e)}function vB(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||kB(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 mB(){return mB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mB.apply(this,arguments)}function bB(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PB(r.key),r)}}function xB(e,t){return xB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xB(e,t)}function _B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CB(e);if(t){var o=CB(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OB(e)}(this,n)}}function OB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CB(e){return CB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CB(e)}function SB(e){return function(e){if(Array.isArray(e))return EB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kB(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 kB(e,t){if(e){if("string"==typeof e)return EB(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)?EB(e,t):void 0}}function EB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AB(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 jB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AB(Object(n),!0).forEach((function(t){TB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TB(e,t,n){return(t=PB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=function(e,t){if("object"!==yB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yB(t)?t:String(t)}var MB={xAxis:["bottom","top"],yAxis:["left","right"]},DB={x:0,y:0},NB=Number.isFinite?Number.isFinite:isFinite,IB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,RB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,LB=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(SB(e),SB(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&ac(o)&&ac(i)?e.slice(o,i+1):[]};function BB(e){return"number"===e?[0,"auto"]:void 0}var FB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=LB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=dc(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(SB(e),[HT(t,o)]):e}),[])},zB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if(oc(l-u)!==oc(f-l)){var d=[];if(oc(f-l)===oc(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){i=r[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=FB(e,t,u,l),p=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return jB(jB(jB({},r),YT(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return jB(jB(jB({},r),YT(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return DB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},HB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,p=wT(u,o),d=n.reduce((function(t,n){var d,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,_=n.props[i];if(t[_])return t;var O,C,S,k=LB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===_})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&ac(r)&&ac(o))return!0}return!1})(n.props.domain,v,g)&&(O=BT(n.props.domain,null,v),!p||"number"!==g&&"auto"===b||(S=gT(k,y,"category")));var A=BB(g);if(!O||0===O.length){var j,T=null!==(j=n.props.domain)&&void 0!==j?j:A;if(y){if(O=gT(k,y,g),"category"===g&&p){var P=function(e){if(!Li(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(O);m&&P?(C=O,O=FN(0,E)):m||(O=zT(T,O,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(SB(e),[t])}),[]))}else if("category"===g)O=m?O.filter((function(e){return""!==e&&!Xs(e)})):zT(T,O,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Xs(t)?e:[].concat(SB(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return mT(e,t,n,o,r)})).filter((function(e){return!Xs(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),y,o,u);M&&(O=M)}!p||"number"!==g&&"auto"===b||(S=gT(k,y,"category"))}else O=p?FN(0,E):a&&a[_]&&a[_].hasStack&&"number"===g?"expand"===f?[0,1]:IT(a[_].stackGroups,s,c):bT(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),g,u,!0);if("number"===g)O=lB(l,O,_,o,w),T&&(O=BT(T,O,v));else if("category"===g&&T){var D=T;O.every((function(e){return D.indexOf(e)>=0}))&&(O=D)}}return jB(jB({},t),{},TB({},_,jB(jB({},n.props),{},{axisType:o,domain:O,categoricalDomain:S,duplicateDomain:C,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:A,isCategorical:p,layout:u})))}),{});return d},VB=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=Tc(u,o),p={};return f&&f.length?p=HB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=LB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=wT(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=BB("number");return e[y]?e:(h++,d?g=FN(0,p):a&&a[y]&&a[y].hasStack?(g=IT(a[y].stackGroups,s,c),g=lB(l,g,y,o)):(g=BT(v,bT(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=lB(l,g,y,o)),jB(jB({},e),{},TB({},y,jB(jB({axisType:o},r.defaultProps),{},{hide:!0,orientation:Ys(MB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},UB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=Pc(r,rI);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Xs(o)&&o}},KB=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},$B=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,l=n.margin||{},f=Pc(u,rI),p=Pc(u,Bg),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:jB(jB({},e),{},TB({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:jB(jB({},e),{},TB({},r,Ys(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=jB(jB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||rI.defaultProps.height),p&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=vT({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&ac(e[f])&&(u=pT(pT({},e),{},dT({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&ac(e[p])&&(u=pT(pT({},e),{},dT({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),jB(jB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},WB=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,s=void 0===i?"axis":i,c=e.validateTooltipEventTypes,u=void 0===c?["axis"]:c,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=KB(u),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=kc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return kc(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Xs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=LB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],O=n.props["".concat(y,"Id")],C=l.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return jB(jB({},e),{},(TB(o={},r.axisType,s),TB(o,"".concat(r.axisType,"Ticks"),_T(s)),o))}),{}),S=C[y],k=C["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(sc(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),A=kc(n.type).indexOf("Bar")>=0,j=FT(S,k),T=[];if(A){var P,M,D=Xs(x)?d:x,N=null!==(P=null!==(M=FT(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,u=lc(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(uT(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=lc(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(uT(e),[{item:t.item,position:{offset:h+(g+u)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:f,barCategoryGap:p,bandSize:N!==j?N:j,sizeList:m[O],maxBarSize:D}),N!==j&&(T=T.map((function(e){return jB(jB({},e),{},{position:jB(jB({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:jB(jB({},B(jB(jB({},C),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:j,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(c)},TB(I,g,C[g]),TB(I,y,C[y]),TB(I,"animationId",i),I)),childIndex:(R=n,L=e.children,jc(L).indexOf(R)),item:n})})),b},v=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Mc({props:o}))return null;var c=o.children,u=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=KB(u),v=g.numericAxisName,m=g.cateAxisName,b=Tc(c,r),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(sc(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[uc("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return pT(pT({},e),{},dT({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return pT(pT({},t),{},dT({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:TT(e,a.items,o)}))}),{})),pT(pT({},t),{},dT({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),x=l.reduce((function(e,t){var n="".concat(t.axisType,"Map");return jB(jB({},e),{},TB({},n,VB(o,jB(jB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=$B(jB(jB({},x),{},{props:o,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(o,x[e],_,e.replace("Map",""),n)}));var O,C,S=x["".concat(m,"Map")],k=(O=fc(S),{tooltipTicks:C=_T(O,!1,!0),orderedTooltipTicks:Nw(C,(function(e){return e.coordinate})),tooltipAxis:O,tooltipAxisBandSize:FT(O,C)}),E=y(o,jB(jB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return jB(jB({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xB(e,t)}(l,O);var t,r,i,c=_B(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),TB(OB(t=c.call(this,e)),"clearDeferId",(function(){!Xs(t.deferId)&&RB&&RB(t.deferId),t.deferId=null})),TB(OB(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(jB({legendBBox:e},v({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},jB(jB({},t.state),{},{legendBBox:e}))))}})),TB(OB(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=IB&&IB(t.applySyncEvent.bind(OB(t),r)))})),TB(OB(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return jB({dataStartIndex:n,dataEndIndex:r},v({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),TB(OB(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=jB(jB({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)}})),TB(OB(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?jB(jB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)})),TB(OB(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),TB(OB(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),TB(OB(t),"handleMouseMove",(function(e){e&&Ri(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),TB(OB(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),Ri(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),TB(OB(t),"handleOuterEvent",(function(e){var n=zc(e),r=Ys(t.props,"".concat(n));n&&Ri(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),TB(OB(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=jB(jB({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),Ri(n)&&n(o,e)}})),TB(OB(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;Ri(n)&&n(t.getMouseInfo(e),e)})),TB(OB(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;Ri(n)&&n(t.getMouseInfo(e),e)})),TB(OB(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),TB(OB(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),TB(OB(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),TB(OB(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return xT(ER(jB(jB(jB({},VR.defaultProps),t),{},{ticks:_T(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),TB(OB(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return xT(ER(jB(jB(jB({},VR.defaultProps),t),{},{ticks:_T(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),TB(OB(t),"axesTicksGenerator",(function(e){return _T(e,!0)})),TB(OB(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,i=r.activeCoordinate,s=r.activePayload,c=r.offset,u=r.activeTooltipIndex,l=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!i||"ScatterChart"!==n&&"axis"!==l)return null;var f,p=t.props.layout,g=QP;if("ScatterChart"===n)f=i,g=FM;else if("BarChart"===n)f=t.getCursorRectangle(),g=fM;else if("radial"===p){var y=t.getCursorPoints(),v=y.cx,m=y.cy,b=y.radius;f={cx:v,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},g=BP}else f={points:t.getCursorPoints()},g=QP;var w=e.key||"_recharts-cursor",x=jB(jB(jB(jB({stroke:"#ccc",pointerEvents:"none"},c),f),Rc(e.props.cursor)),{},{payload:s,payloadIndex:u,key:w,className:"recharts-tooltip-cursor"});return d(e.props.cursor)?h(e.props.cursor,x):a(g,x)})),TB(OB(t),"renderPolarAxis",(function(e,n,r){var o=Ys(e,"type.axisType"),i=Ys(t.state,"".concat(o,"Map")),a=i&&i[e.props["".concat(o,"Id")]];return h(e,jB(jB({},a),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:_T(a,!0)}))})),TB(OB(t),"renderXAxis",(function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)})),TB(OB(t),"renderYAxis",(function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)})),TB(OB(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.props,s=a.width,c=a.height,u=fc(r),l=rB(o,(function(e){return bI(e.domain,NB)}))||fc(o),f=e.props||{};return h(e,{key:e.key||"grid",x:ac(f.x)?f.x:i.left,y:ac(f.y)?f.y:i.top,width:ac(f.width)?f.width:i.width,height:ac(f.height)?f.height:i.height,xAxis:u,yAxis:l,offset:i,chartWidth:s,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),TB(OB(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,a=t.state,s=a.radiusAxisMap,c=a.angleAxisMap,u=fc(s),l=fc(c),f=l.cx,p=l.cy,d=l.innerRadius,g=l.outerRadius;return h(e,{polarAngles:Li(o)?o:_T(l,!0).map((function(e){return e.coordinate})),polarRadius:Li(i)?i:_T(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),TB(OB(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,o=n.width,i=n.height,a=t.props.margin||{},s=o-(a.left||0)-(a.right||0),c=vT({children:r,formattedGraphicalItems:e,legendWidth:s,legendContent:f});if(!c)return null;var u=c.item,l=bB(c,hB);return h(u,jB(jB({},l),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),TB(OB(t),"renderTooltip",(function(){var e=Pc(t.props.children,sx);if(!e)return null;var n=t.state,r=n.isTooltipActive,o=n.activeCoordinate,i=n.activePayload,a=n.activeLabel,s=n.offset;return h(e,{viewBox:jB(jB({},s),{},{x:s.left,y:s.top}),active:r,label:a,payload:r?i:[],coordinate:o})})),TB(OB(t),"renderBrush",(function(e){var n=t.props,r=n.margin,o=n.data,i=t.state,a=i.offset,s=i.dataStartIndex,c=i.dataEndIndex,u=i.updateId;return h(e,{key:e.key||"_recharts-brush",onChange:OT(t.handleBrushChange,null,e.props.onChange),data:o,x:ac(e.props.x)?e.props.x:a.left,y:ac(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ac(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:c,updateId:"brush-".concat(u)})})),TB(OB(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=OB(t).clipPathId,i=t.state,a=i.xAxisMap,s=i.yAxisMap,c=i.offset,u=e.props,l=u.xAxisId,f=u.yAxisId;return h(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[l],yAxis:s[f],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})})),TB(OB(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,c=t.item.props,u=c.activeDot,f=jB(jB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:yT(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Rc(u)),wc(u));return a.push(l.renderActiveDot(u,f)),r?a.push(l.renderActiveDot(u,jB(jB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),TB(OB(t),"renderGraphicChild",(function(e,n,r){var o=t.filterFormatItem(e,n,r);if(!o)return null;var i=t.getTooltipEventType(),a=t.state,s=a.isTooltipActive,c=a.tooltipAxis,u=a.activeTooltipIndex,l=a.activeLabel,f=Pc(t.props.children,sx),p=o.props,d=p.points,g=p.isRange,y=p.baseLine,v=o.item.props,m=v.activeDot,b=!v.hide&&s&&f&&m&&u>=0,w={};"axis"!==i&&f&&"click"===f.props.trigger?w={onClick:OT(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==i&&(w={onMouseLeave:OT(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:OT(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=h(e,jB(jB({},o.props),w));if(b){var _,O;if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());_=dc(d,C,l),O=g&&y&&dc(y,C,l)}else _=d[u],O=g&&y&&y[u];if(!Xs(_))return[x].concat(SB(t.renderActivePoints({item:o,activePoint:_,basePoint:O,childIndex:u,isRange:g})))}return g?[x,null,null]:[x,null]})),TB(OB(t),"renderCustomized",(function(e,n,r){return h(e,jB(jB({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Xs(e.id)?uc("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=Dx(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=l,r=[{key:"componentDidMount",value:function(){Xs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Xs(e.syncId)&&!Xs(this.props.syncId)&&this.addListener(),!Xs(e.syncId)&&Xs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Xs(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=Pc(this.props.children,sx);if(e&&sB(e.props.shared)){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=fc(s).scale,l=fc(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return jB(jB({},o),{},{xValue:f,yValue:p})}var d=zB(this.state,this.props.data,this.props.layout,i);return d?jB(jB({},o),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Xs(a.cx)||!Xs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[YT(c,u,l,f),YT(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=YT(d,h,g,v),b=YT(d,h,y,v);e=m.x,t=m.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=fc(i);return tP({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Pc(e,sx),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),jB(jB({},wc(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pB.on(dB,this.handleReceiveSyncEvent),pB.setMaxListeners&&pB._maxListeners&&pB.setMaxListeners(pB._maxListeners+1)}},{key:"removeListener",value:function(){pB.removeListener(dB,this.handleReceiveSyncEvent),pB.setMaxListeners&&pB._maxListeners&&pB.setMaxListeners(pB._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Xs(t)||pB.emit(dB,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(Xs(e.dataStartIndex)&&Xs(e.dataEndIndex))if(Xs(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var h=jB(jB({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),y=Math.min(c,h.y+h.height),m=p[u]&&p[u].value,b=FB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:g,y:"horizontal"===n?y:p[u].coordinate}:DB;this.setState(jB(jB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(jB({dataStartIndex:i,dataEndIndex:a},v({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===kc(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var i=this.props,a=i.width,s=i.height;return o.createElement(VR,mB({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vB(t,2),r=n[0],o=n[1];return jB(jB({},e),{},TB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=vB(t,2),r=n[0],o=n[1];return jB(jB({},e),{},TB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o.props,a=o.item,s=kc(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return lM(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return tP(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!Mc(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,s=t.style,c=t.compact,u=t.title,l=t.desc,f=bB(t,gB),p=Rc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return o.createElement(Kc,mB({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Fc(n,d));var h=this.parseEventsOfWrapper();return o.createElement("div",mB({className:li("recharts-wrapper",r),style:jB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),o.createElement(Kc,mB({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),Fc(n,d)),this.renderLegend(),this.renderTooltip())}}],r&&wB(t.prototype,r),i&&wB(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(),TB(t,"displayName",n),TB(t,"defaultProps",jB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),TB(t,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(Xs(t.updateId)){var u=UB(e);return jB(jB(jB({},u),{},{updateId:0},v(jB(jB({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!hc(c,t.prevMargin)){var l=UB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=jB(jB({},zB(t,n,a)),{},{updateId:t.updateId+1}),d=jB(jB(jB({},l),f),p);return jB(jB(jB({},d),v(jB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!Lc(r,t.prevChildren)){var h=!Xs(n)?t.updateId:t.updateId+1;return jB(jB({updateId:h},v(jB(jB({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),TB(t,"renderActiveDot",(function(e,t){var n;return n=d(e)?h(e,t):Ri(e)?e(t):o.createElement(PM,t),o.createElement(Gc,{className:"recharts-active-dot",key:t.key},n)})),t},qB=WB({chartName:"LineChart",GraphicalChild:vL,axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),GB=WB({chartName:"BarChart",GraphicalChild:FI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),ZB=WB({chartName:"PieChart",GraphicalChild:eN,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var YB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},XB=xI,JB=Fa,QB=Object.prototype.hasOwnProperty;var eF=function(e,t,n){var r=e[t];QB.call(e,t)&&JB(r,n)&&(void 0!==n||t in e)||XB(e,t,n)},tF=eF,nF=xI;var rF=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?nF(n,s,c):tF(n,s,c)}return n},oF=rF,iF=ef;var aF=function(e,t){return e&&oF(t,iF(t),e)};var sF=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},cF=fi,uF=Hl,lF=sF,fF=Object.prototype.hasOwnProperty;var pF=function(e){if(!cF(e))return lF(e);var t=uF(e),n=[];for(var r in e)("constructor"!=r||!t&&fF.call(e,r))&&n.push(r);return n},dF=Fl,hF=pF,gF=Yl;var yF=function(e){return gF(e)?dF(e,!0):hF(e)},vF=rF,mF=yF;var bF=function(e,t){return e&&vF(t,mF(t),e)},wF={};!function(e,t){var n=gi,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return wF},set exports(e){wF=e}},wF);var xF=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},_F=rF,OF=rl;var CF=function(e,t){return _F(e,OF(e),t)},SF=Wu,kF=MD,EF=rl,AF=Xu,jF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)SF(t,EF(e)),e=kF(e);return t}:AF,TF=rF,PF=jF;var MF=function(e,t){return TF(e,PF(e),t)},DF=Zu,NF=jF,IF=yF;var RF=function(e){return DF(e,IF,NF)},LF=Object.prototype.hasOwnProperty;var BF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&LF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},FF=_u;var zF=function(e){var t=new e.constructor(e.byteLength);return new FF(t).set(new FF(e)),t},HF=zF;var VF=function(e,t){var n=t?HF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},UF=/\w*$/;var KF=function(e){var t=new e.constructor(e.source,UF.exec(e));return t.lastIndex=e.lastIndex,t},$F=yi?yi.prototype:void 0,WF=$F?$F.valueOf:void 0;var qF=zF;var GF=zF,ZF=VF,YF=KF,XF=function(e){return WF?Object(WF.call(e)):{}},JF=function(e,t){var n=t?qF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},QF="[object Boolean]",ez="[object Date]",tz="[object Map]",nz="[object Number]",rz="[object RegExp]",oz="[object Set]",iz="[object String]",az="[object Symbol]",sz="[object ArrayBuffer]",cz="[object DataView]",uz="[object Float32Array]",lz="[object Float64Array]",fz="[object Int8Array]",pz="[object Int16Array]",dz="[object Int32Array]",hz="[object Uint8Array]",gz="[object Uint8ClampedArray]",yz="[object Uint16Array]",vz="[object Uint32Array]";var mz=function(e,t,n){var r=e.constructor;switch(t){case sz:return GF(e);case QF:case ez:return new r(+e);case cz:return ZF(e,n);case uz:case lz:case fz:case pz:case dz:case hz:case gz:case yz:case vz:return JF(e,n);case tz:return new r;case nz:case iz:return new r(e);case rz:return YF(e);case oz:return new r;case az:return XF(e)}},bz=fi,wz=Object.create,xz=function(){function e(){}return function(t){if(!bz(t))return{};if(wz)return wz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_z=xz,Oz=MD,Cz=Hl;var Sz=function(e){return"function"!=typeof e.constructor||Cz(e)?{}:_z(Oz(e))},kz=Pf,Ez=Bi,Az="[object Map]";var jz=function(e){return Ez(e)&&kz(e)==Az},Tz=kl,Pz=El&&El.isMap,Mz=Pz?Tz(Pz):jz,Dz=Pf,Nz=Bi,Iz="[object Set]";var Rz=function(e){return Nz(e)&&Dz(e)==Iz},Lz=kl,Bz=El&&El.isSet,Fz=Bz?Lz(Bz):Rz,zz=su,Hz=YB,Vz=eF,Uz=aF,Kz=bF,$z=wF,Wz=xF,qz=CF,Gz=MF,Zz=of,Yz=RF,Xz=Pf,Jz=BF,Qz=mz,eH=Sz,tH=Li,nH=hl,rH=Mz,oH=fi,iH=Fz,aH=ef,sH=yF,cH=1,uH=2,lH=4,fH="[object Arguments]",pH="[object Function]",dH="[object GeneratorFunction]",hH="[object Object]",gH={};gH[fH]=gH["[object Array]"]=gH["[object ArrayBuffer]"]=gH["[object DataView]"]=gH["[object Boolean]"]=gH["[object Date]"]=gH["[object Float32Array]"]=gH["[object Float64Array]"]=gH["[object Int8Array]"]=gH["[object Int16Array]"]=gH["[object Int32Array]"]=gH["[object Map]"]=gH["[object Number]"]=gH[hH]=gH["[object RegExp]"]=gH["[object Set]"]=gH["[object String]"]=gH["[object Symbol]"]=gH["[object Uint8Array]"]=gH["[object Uint8ClampedArray]"]=gH["[object Uint16Array]"]=gH["[object Uint32Array]"]=!0,gH["[object Error]"]=gH[pH]=gH["[object WeakMap]"]=!1;var yH=function e(t,n,r,o,i,a){var s,c=n&cH,u=n&uH,l=n&lH;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!oH(t))return t;var f=tH(t);if(f){if(s=Jz(t),!c)return Wz(t,s)}else{var p=Xz(t),d=p==pH||p==dH;if(nH(t))return $z(t,c);if(p==hH||p==fH||d&&!i){if(s=u||d?{}:eH(t),!c)return u?Gz(t,Kz(s,t)):qz(t,Uz(s,t))}else{if(!gH[p])return i?t:{};s=Qz(t,p,c)}}a||(a=new zz);var h=a.get(t);if(h)return h;a.set(t,s),iH(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):rH(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?Yz:Zz:u?sH:aH)(t);return Hz(g||t,(function(o,i){g&&(o=t[i=o]),Vz(s,i,e(o,n,r,i,t,a))})),s},vH=Gs,mH=hd;var bH=function(e,t){return t.length<2?e:vH(e,mH(t,0,-1))},wH=Vs,xH=vP,_H=bH,OH=$s;var CH=function(e,t){return t=wH(t,e),null==(e=_H(e,t))||delete e[OH(xH(t))]},SH=VD;var kH=Bb;var EH=function(e){return(null==e?0:e.length)?kH(e,1):[]},AH=EH,jH=fw,TH=_w;var PH=As,MH=yH,DH=CH,NH=Vs,IH=rF,RH=function(e){return SH(e)?void 0:e},LH=RF,BH=function(e){return TH(jH(e,void 0,AH),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=PH(t,(function(t){return t=NH(t,e),r||(r=t.length>1),t})),IH(e,LH(e),n),r&&(n=MH(n,7,RH));for(var o=t.length;o--;)DH(n,t[o]);return n})),FH=BH,zH=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],HH=["width","height","className","style","children","type"];function VH(e){return VH="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},VH(e)}function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UH.apply(this,arguments)}function KH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QH(r.key),r)}}function WH(e,t){return WH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WH(e,t)}function qH(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZH(e);if(t){var o=ZH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return GH(e)}(this,n)}}function GH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZH(e){return ZH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZH(e)}function YH(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 XH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YH(Object(n),!0).forEach((function(t){JH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JH(e,t,n){return(t=QH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QH(e){var t=function(e,t){if("object"!==VH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VH(t)?t:String(t)}var eV="value",tV=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[eV]}),0):rc(i[s])||i[s]<=0?0:i[s],XH(XH({},i),{},(JH(n={children:l},eV,r),JH(n,"depth",o),JH(n,"index",a),n))},nV=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},rV=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,XH(XH({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),XH(XH({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},oV=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[eV]*n;return XH(XH({},e),{},{area:rc(t)||t<=0?0:t})}))}(r,a.width*a.height/t[eV]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=nV(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=rV(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=rV(s,u,a,!0),s.length=s.area=0),XH(XH({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},iV={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},aV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WH(e,t)}(a,x);var t,n,r,i=qH(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return JH(GH(e=i.call.apply(i,[this].concat(n))),"state",XH({},iV)),JH(GH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),JH(GH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;Pc(n.children,sx)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;Pc(n.children,sx)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=tV({depth:0,node:XH(XH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=oV(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=tV({depth:0,node:XH(XH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=oV(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,t,n){var r=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=t.width,y=t.height,v=t.x,m=t.y,b=t.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(n||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,t),onMouseLeave:this.handleMouseLeave.bind(this,t),onClick:this.handleClick.bind(this,t)}),a?o.createElement(Mb,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.x,p=n.y,g=n.width,y=n.height;return o.createElement(Mb,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},o.createElement(Gc,x,b>2&&!h?null:r.constructor.renderContentItem(e,XH(XH({},t),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):o.createElement(Gc,x,this.constructor.renderContentItem(e,XH(XH({},t),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,t,n){var r=this,i=this.props,a=i.content,s=i.type,c=XH(XH(XH({},Rc(this.props)),t),{},{root:e}),u=!t.children||!t.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===t.depth&&e.name===t.name})).length&&e.depth&&"nest"===s?null:o.createElement(Gc,{key:"recharts-treemap-node-".concat(n),className:"recharts-treemap-depth-".concat(t.depth)},this.renderItem(a,c,u),t.children&&t.children.length?t.children.map((function(e,n){return r.renderNode(t,e,n)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,n=e.nameKey,r=Pc(t,sx);if(!r)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:hT(l,n,""),value:hT(l,eV)}]:[];return o.cloneElement(r,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,t=this.props,n=t.nameKey,r=t.nestIndexContent,i=this.state.nestIndex;return o.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(t,i){var a=Ys(t,n,"root"),s=null;return o.isValidElement(r)&&(s=o.cloneElement(r,t,i)),s=Ri(r)?r(t,i):a,o.createElement("div",{onClick:e.handleNestIndex.bind(e,t,i),key:"nest-index-".concat(uc()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!Mc(this))return null;var e=this.props,t=e.width,n=e.height,r=e.className,i=e.style,a=e.children,s=e.type,c=KH(e,HH),u=Rc(c);return o.createElement("div",{className:li("recharts-wrapper",r),style:XH(XH({},i),{},{position:"relative",cursor:"default",width:t,height:n}),role:"region"},o.createElement(Kc,UH({},u,{width:t,height:"nest"===s?n-30:n}),this.renderAllNodes(),Ic(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=tV({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=oV(n,e.aspectRatio);return XH(XH({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,t,n,r){if(o.isValidElement(e))return o.cloneElement(e,t);if(Ri(e))return e(t);var i=t.x,a=t.y,s=t.width,c=t.height,u=t.index,l=null;s>10&&c>10&&t.children&&"nest"===n&&(l=o.createElement(CM,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=H_(t.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=o.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},t.name));var d=r||zH;return o.createElement("g",null,o.createElement(fM,UH({fill:t.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},FH(t,"children"),{role:"img"})),l,f)}}],n&&$H(t.prototype,n),r&&$H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();JH(aV,"displayName","Treemap"),JH(aV,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Gw.isSsr,isUpdateAnimationActive:!Gw.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var sV=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},cV=Kp,uV=sV;var lV=function(e,t){return e&&e.length?uV(e,cV(t)):0},fV=["width","height","className","style","children"],pV=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function dV(e){return dV="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},dV(e)}function hV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(this,arguments)}function yV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CV(r.key),r)}}function vV(e,t){return vV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vV(e,t)}function mV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wV(e);if(t){var o=wV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bV(e)}(this,n)}}function bV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wV(e){return wV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wV(e)}function xV(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 _V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xV(Object(n),!0).forEach((function(t){OV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OV(e,t,n){return(t=CV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=function(e,t){if("object"!==dV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dV(t)?t:String(t)}var SV={x:0,y:0},kV=function(e){return e.y+e.dy/2},EV=function(e){return e&&e.value||0},AV=function(e,t){return t.reduce((function(t,n){return t+EV(e[n])}),0)},jV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+kV(i)*EV(t[r])}),0)},TV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+kV(i)*EV(t[r])}),0)},PV=function(e,t){return e.y-t.y},MV=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},DV=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(PV);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},NV=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=AV(n,u.sourceLinks),f=jV(e,n,u.sourceLinks)/l;u.y+=(f-kV(u))*r}}},IV=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=AV(n,c.targetLinks),l=TV(e,n,c.targetLinks)/u;c.y+=(l-kV(c))*r}}},RV=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return _V(_V(_V({},e),n),{},{value:Math.max(AV(o,n.sourceLinks),AV(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||MV(i,c)}var u=oD(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=xO(e.map((function(e){return(t-(e.length-1)*n)/lV(e,EV)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return _V(_V({},e),{},{dy:EV(e)*o})}))}(l,r,a,s);DV(l,r,a);for(var p=1,d=1;d<=o;d++)IV(u,l,f,p*=.99),DV(l,r,a),NV(u,l,f,p),DV(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},LV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vV(e,t)}(a,x);var t,n,r,i=mV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return OV(bV(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return t=a,n=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=Pc(r.children,sx);i?this.setState((function(n){return"hover"===i.props.trigger?_V(_V({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=Pc(r.children,sx);i?this.setState((function(e){return"hover"===i.props.trigger?_V(_V({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=Pc(r.children,sx);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return _V(_V({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return _V(_V({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,t){var n=this,r=this.props,i=r.linkCurvature,a=r.link,s=r.margin,c=Ys(s,"top")||0,u=Ys(s,"left")||0;return o.createElement(Gc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,r){var s=e.sy,l=e.ty,f=e.dy,p=t[e.source],d=t[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=_V({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:r,payload:_V(_V({},e),{},{source:p,target:d})},Rc(a)),w={onMouseEnter:n.handleMouseEnter.bind(n,b,"link"),onMouseLeave:n.handleMouseLeave.bind(n,b,"link"),onClick:n.handleClick.bind(n,b,"link")};return o.createElement(Gc,gV({key:"link".concat(r)},w),n.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var t=this,n=this.props,r=n.node,i=n.margin,a=Ys(i,"top")||0,s=Ys(i,"left")||0;return o.createElement(Gc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,n){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=_V(_V({},Rc(r)),{},{x:i+s,y:c+a,width:u,height:l,index:n,payload:e}),p={onMouseEnter:t.handleMouseEnter.bind(t,f,"node"),onMouseLeave:t.handleMouseLeave.bind(t,f,"node"),onClick:t.handleClick.bind(t,f,"node")};return o.createElement(Gc,gV({key:"node".concat(n)},p),t.constructor.renderNodeItem(r,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,t=e.children,n=e.width,r=e.height,i=e.nameKey,a=Pc(t,sx);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:n,height:r},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):SV,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:hT(r,n,""),value:hT(r,"value")}];if(r.source&&r.target){var o=hT(r.source,n,""),i=hT(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:hT(r,"value")}]}return[]}(l,f,i):[];return o.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!Mc(this))return null;var e=this.props,t=e.width,n=e.height,r=e.className,i=e.style,a=e.children,s=hV(e,fV),c=this.state,u=c.links,l=c.nodes,f=Rc(s);return o.createElement("div",{className:li("recharts-wrapper",r),style:_V(_V({},i),{},{position:"relative",cursor:"default",width:t,height:n}),role:"region"},o.createElement(Kc,gV({},f,{width:t,height:n}),Ic(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!hc(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=RV({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return _V(_V({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(Ri(e))return e(t);var n=t.sourceX,r=t.sourceY,i=t.sourceControlX,a=t.targetX,s=t.targetY,c=t.targetControlX,u=t.linkWidth,l=hV(t,pV);return o.createElement("path",gV({className:"recharts-sankey-link",d:"\n M".concat(n,",").concat(r,"\n C").concat(i,",").concat(r," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},Rc(l)))}},{key:"renderNodeItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):o.createElement(fM,gV({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},Rc(t),{role:"img"}))}}],n&&yV(t.prototype,n),r&&yV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function BV(e){return BV="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},BV(e)}function FV(){return FV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FV.apply(this,arguments)}function zV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WV(r.key),r)}}function HV(e,t){return HV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HV(e,t)}function VV(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KV(e);if(t){var o=KV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UV(e)}(this,n)}}function UV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KV(e){return KV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KV(e)}function $V(e,t,n){return(t=WV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WV(e){var t=function(e,t){if("object"!==BV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BV(t)?t:String(t)}OV(LV,"displayName","Sankey"),OV(LV,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),WB({chartName:"RadarChart",GraphicalChild:gN,axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),WB({chartName:"ScatterChart",GraphicalChild:KL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL},{axisType:"zAxis",AxisComp:ML}],formatAxisMap:WI}),WB({chartName:"AreaChart",GraphicalChild:PL,axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL}],formatAxisMap:WI}),WB({chartName:"RadialBarChart",GraphicalChild:jN,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:PD},{axisType:"radiusAxis",AxisComp:mD}],formatAxisMap:JT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),WB({chartName:"ComposedChart",GraphicalChild:[vL,PL,FI,KL],axisComponents:[{axisType:"xAxis",AxisComp:$L},{axisType:"yAxis",AxisComp:WL},{axisType:"zAxis",AxisComp:ML}],formatAxisMap:WI});var qV=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},GV=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HV(e,t)}(a,x);var t,n,r,i=VV(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $V(UV(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return t=a,n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.upperWidth,a=t.lowerWidth,s=t.height,c=t.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=li("recharts-trapezoid",c);return h?o.createElement(Mb,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:i,lowerWidth:a,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,i=t.height,a=t.x,s=t.y;return o.createElement(Mb,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},o.createElement("path",FV({},Rc(e.props,!0),{className:g,d:qV(a,s,n,r,i),ref:function(t){e.node=t}})))})):o.createElement("g",null,o.createElement("path",FV({},Rc(this.props,!0),{className:g,d:qV(n,r,i,a,s)})))}}],n&&zV(t.prototype,n),r&&zV(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function ZV(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YV(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 YV(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 YV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XV(e){return XV="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},XV(e)}function JV(){return JV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JV.apply(this,arguments)}function QV(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 eU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QV(Object(n),!0).forEach((function(t){aU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sU(r.key),r)}}function nU(e,t){return nU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nU(e,t)}function rU(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iU(e);if(t){var o=iU(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oU(e)}(this,n)}}function oU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iU(e){return iU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iU(e)}function aU(e,t,n){return(t=sU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sU(e){var t=function(e,t){if("object"!==XV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===XV(t)?t:String(t)}$V(GV,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var cU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nU(e,t)}(a,x);var t,n,r,i=rU(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aU(oU(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),aU(oU(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Ri(t)&&t()})),aU(oU(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Ri(t)&&t()})),e}return t=a,n=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var i=t.isActiveIndex(r)?n:null,s=eU(eU({},e),{},{stroke:e.stroke});return o.createElement(Gc,JV({className:"recharts-funnel-trapezoid"},xc(t.props,e,r),{key:"trapezoid-".concat(r),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevTrapezoids;return o.createElement(Mb,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var o=pc(n.x,e.x),i=pc(n.y,e.y),a=pc(n.upperWidth,e.upperWidth),s=pc(n.lowerWidth,e.lowerWidth),c=pc(n.height,e.height);return eU(eU({},e),{},{x:o(r),y:i(r),upperWidth:a(r),lowerWidth:s(r),height:c(r)})}var l=pc(e.x+e.upperWidth/2,e.x),f=pc(e.y+e.height/2,e.y),p=pc(0,e.upperWidth),d=pc(0,e.lowerWidth),h=pc(0,e.height);return eU(eU({},e),{},{x:l(r),y:f(r),upperWidth:p(r),lowerWidth:d(r),height:h(r)})}));return o.createElement(Gc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&uO(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var s=li("recharts-trapezoids",r);return o.createElement(Gc,{className:s},this.renderTrapezoids(),(!i||a)&&AP.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):Ri(e)?e(t):VD(e)?o.createElement(GV,JV({},t,e)):o.createElement(GV,t)}}],n&&tU(t.prototype,n),r&&tU(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();aU(cU,"displayName","Funnel"),aU(cU,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Gw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),aU(cU,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=Rc(e.props),i=Tc(r,qx);return n&&n.length?n.map((function(e,t){return eU(eU(eU({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return eU(eU({},o),e.props)})):[]})),aU(cU,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return tc(n)?l=n:Ui(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),aU(cU,"getComposedData",(function(e){var t=e.item,n=e.offset,r=cU.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=cU.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return hT(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=hT(e,i,0),u=hT(e,a,t),p=o;if(t!==m-1)(n=hT(r[t+1],i,0))instanceof Array&&(n=ZV(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=ZV(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,O=p/v*h,C=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+O/2,y:_+b/2};return eU(eU({x:x,y:_,width:Math.max(O,C),upperWidth:O,lowerWidth:C,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},FH(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(O-C)/4,y:_,width:Math.abs(O-C)/2+Math.min(O,C),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return eU(eU({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:eU(eU({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:eU(eU({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),WB({chartName:"FunnelChart",GraphicalChild:cU,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const uU=Oe.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),Nn,In);function lU(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function fU(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pU(e){return pU="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},pU(e)}function dU(e){fU(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===pU(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function hU(e,t){fU(2,arguments);var n=dU(e),r=lU(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function gU(e,t){fU(2,arguments);var n=dU(e),r=lU(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function yU(e){return yU="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},yU(e)}function vU(e,t){if(fU(2,arguments),!t||"object"!==yU(t))return new Date(NaN);var n=t.years?lU(t.years):0,r=t.months?lU(t.months):0,o=t.weeks?lU(t.weeks):0,i=t.days?lU(t.days):0,a=t.hours?lU(t.hours):0,s=t.minutes?lU(t.minutes):0,c=t.seconds?lU(t.seconds):0,u=dU(e),l=r||n?gU(u,r+12*n):u,f=i||o?hU(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var mU={};function bU(){return mU}function wU(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function xU(e){fU(1,arguments);var t=dU(e);return t.setHours(0,0,0,0),t}var _U=864e5;var OU=6e4;function CU(e,t){fU(2,arguments);var n=xU(e),r=xU(t);return n.getTime()===r.getTime()}function SU(e){return SU="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},SU(e)}function kU(e){if(fU(1,arguments),!function(e){return fU(1,arguments),e instanceof Date||"object"===SU(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=dU(e);return!isNaN(Number(t))}function EU(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function AU(e,t){fU(2,arguments);var n=dU(e),r=dU(t),o=EU(n,r),i=Math.abs(function(e,t){fU(2,arguments);var n=xU(e),r=xU(t),o=n.getTime()-wU(n),i=r.getTime()-wU(r);return Math.round((o-i)/_U)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(EU(n,r)===-o));return 0===a?0:a}var jU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},TU="trunc";function PU(e){return e?jU[e]:jU[TU]}function MU(e,t,n){fU(2,arguments);var r=function(e,t){return fU(2,arguments),dU(e).getTime()-dU(t).getTime()}(e,t)/OU;return PU(null==n?void 0:n.roundingMethod)(r)}function DU(e,t){return fU(2,arguments),function(e,t){fU(2,arguments);var n=dU(e).getTime(),r=lU(t);return new Date(n+r)}(e,-lU(t))}var NU=864e5;function IU(e){fU(1,arguments);var t=dU(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function RU(e){fU(1,arguments);var t=dU(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=IU(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=IU(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var LU=6048e5;function BU(e){fU(1,arguments);var t=dU(e),n=IU(t).getTime()-function(e){fU(1,arguments);var t=RU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),IU(n)}(t).getTime();return Math.round(n/LU)+1}function FU(e,t){var n,r,o,i,a,s,c,u;fU(1,arguments);var l=bU(),f=lU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=dU(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function zU(e,t){var n,r,o,i,a,s,c,u;fU(1,arguments);var l=dU(e),f=l.getUTCFullYear(),p=bU(),d=lU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=FU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=FU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var HU=6048e5;function VU(e,t){fU(1,arguments);var n=dU(e),r=FU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;fU(1,arguments);var l=bU(),f=lU(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=zU(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),FU(d,t)}(n,t).getTime();return Math.round(r/HU)+1}function UU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var KU=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return UU("yy"===t?r%100:r,t.length)},$U=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):UU(n+1,2)},WU=function(e,t){return UU(e.getUTCDate(),t.length)},qU=function(e,t){return UU(e.getUTCHours()%12||12,t.length)},GU=function(e,t){return UU(e.getUTCHours(),t.length)},ZU=function(e,t){return UU(e.getUTCMinutes(),t.length)},YU=function(e,t){return UU(e.getUTCSeconds(),t.length)},XU=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return UU(Math.floor(r*Math.pow(10,n-3)),t.length)},JU="midnight",QU="noon",eK="morning",tK="afternoon",nK="evening",rK="night",oK={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return KU(e,t)},Y:function(e,t,n,r){var o=zU(e,r),i=o>0?o:1-o;return"YY"===t?UU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):UU(i,t.length)},R:function(e,t){return UU(RU(e),t.length)},u:function(e,t){return UU(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return UU(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return UU(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return $U(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return UU(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=VU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):UU(o,t.length)},I:function(e,t,n){var r=BU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):UU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):WU(e,t)},D:function(e,t,n){var r=function(e){fU(1,arguments);var t=dU(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/NU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):UU(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return UU(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return UU(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return UU(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?QU:0===o?JU:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?nK:o>=12?tK:o>=4?eK:rK,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return qU(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):GU(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):UU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):UU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ZU(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):YU(e,t)},S:function(e,t){return XU(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return aK(o);case"XXXX":case"XX":return sK(o);default:return sK(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return aK(o);case"xxxx":case"xx":return sK(o);default:return sK(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+iK(o,":");default:return"GMT"+sK(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+iK(o,":");default:return"GMT"+sK(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return UU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return UU((r._originalDate||e).getTime(),t.length)}};function iK(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+UU(i,2)}function aK(e,t){return e%60==0?(e>0?"-":"+")+UU(Math.abs(e)/60,2):sK(e,t)}function sK(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+UU(Math.floor(o/60),2)+n+UU(o%60,2)}var cK=oK,uK=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},lK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},fK={p:lK,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return uK(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",uK(o,t)).replace("{{time}}",lK(i,t))}},pK=fK,dK=["D","DD"],hK=["YY","YYYY"];function gK(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var yK={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function vK(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var mK={date:vK({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vK({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:vK({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function wK(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var xK={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:wK({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:wK({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:wK({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:wK({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:wK({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function _K(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var OK,CK={ordinalNumber:(OK={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(OK.matchPattern);if(!n)return null;var r=n[0],o=e.match(OK.parsePattern);if(!o)return null;var i=OK.valueCallback?OK.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:_K({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:_K({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_K({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:_K({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:_K({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},SK={code:"en-US",formatDistance:function(e,t,n){var r,o=yK[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:mK,formatRelative:function(e,t,n,r){return bK[e]},localize:xK,match:CK,options:{weekStartsOn:0,firstWeekContainsDate:1}},kK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,EK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AK=/^'([^]*?)'?$/,jK=/''/g,TK=/[a-zA-Z]/;function PK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;fU(2,arguments);var x=String(t),_=bU(),O=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:SK,C=lU(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=lU(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var k=dU(e);if(!kU(k))throw new RangeError("Invalid time value");var E=DU(k,wU(k)),A={firstWeekContainsDate:C,weekStartsOn:S,locale:O,_originalDate:k},j=x.match(EK).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,pK[t])(e,O.formatLong):e})).join("").match(kK).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(AK);if(!t)return e;return t[1].replace(jK,"'")}(r);var i,a=cK[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===hK.indexOf(i))||gK(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==dK.indexOf(e)}(r)||gK(r,t,String(e)),a(E,r,O.localize,A);if(o.match(TK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return j}function MK(e){return fU(1,arguments),dU(e).getDate()}function DK(e){fU(1,arguments);var t=dU(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function NK(e){fU(1,arguments);var t=dU(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function IK(e,t){fU(2,arguments);var n=dU(e),r=dU(t);return n.getTime()>r.getTime()}function RK(e,t){fU(2,arguments);var n=dU(e),r=dU(t);return n.getTime()<r.getTime()}function LK(e){return fU(1,arguments),function(e,t){fU(2,arguments);var n=dU(e),r=dU(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function BK(e,t){return fU(2,arguments),hU(e,-lU(t))}function FK(e){return FK="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},FK(e)}function zK(e,t){if(fU(2,arguments),"object"!==FK(t)||null===t)throw new RangeError("values parameter must be an object");var n=dU(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){fU(2,arguments);var n=dU(e),r=lU(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=DK(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(lU(t.date)),null!=t.hours&&n.setHours(lU(t.hours)),null!=t.minutes&&n.setMinutes(lU(t.minutes)),null!=t.seconds&&n.setSeconds(lU(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(lU(t.milliseconds)),n)}function HK(e,t){fU(2,arguments);var n=dU(e),r=lU(t);return n.setDate(r),n}function VK(e){return VK="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},VK(e)}function UK(e,t){if(fU(2,arguments),!t||"object"!==VK(t))return new Date(NaN);var n=t.years?lU(t.years):0,r=t.months?lU(t.months):0,o=t.weeks?lU(t.weeks):0,i=t.days?lU(t.days):0,a=t.hours?lU(t.hours):0,s=t.minutes?lU(t.minutes):0,c=t.seconds?lU(t.seconds):0,u=function(e,t){return fU(2,arguments),gU(e,-lU(t))}(e,r+12*n),l=BK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const KK=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=PK(n,"EEEE"),l=PK(n,"MMM d"),f=PK(n,"MMM d, y"),p=PK(n,"h:mm aaa"),d=LK(n),h=function(e){return fU(1,arguments),dU(e).getTime()>Date.now()}(n),g=function(e){return fU(1,arguments),CU(e,Date.now())}(n),y=function(e){return fU(1,arguments),CU(e,BK(Date.now(),1))}(n),v=function(e){return fU(1,arguments),CU(e,hU(Date.now(),1))}(n),m=MU(c,n),b=function(e,t,n){fU(2,arguments);var r=AU(e,t)/7;return PU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},$K=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},WK=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),qK=()=>e(A,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),GK=Oe.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),Nn),ZK=({active:n,payload:r,label:o})=>n&&r&&r.length?t(e$,{children:[e(t$,{children:o}),null==r?void 0:r.map((n=>{var r;const o=n.color||(null===(r=n.payload)||void 0===r?void 0:r.color);return t(QK,{children:[o&&e(uU,{color:o}),n.name,": ",WK(n.value||0)]},n.value)}))]}):null,YK=()=>{const{elevation1:t}=E();return e(sx,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e(ZK,{})})},XK=({payload:n,toggleData:r})=>e(JK,{children:null==n?void 0:n.map((n=>t(QK,Object.assign({onClick:r?()=>r(n):void 0,clickable:!!r,inactive:n.inactive},{children:[e(uU,{color:n.color}),n.value]}),n.value)))}),JK=Oe.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),QK=Oe.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),e$=Oe.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),t$=Oe.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),n$=n=>{var{data:r,legend:o,keys:i,stacked:a}=n,s=M(n,["data","legend","keys","stacked"]);const{scale2:c}=E();return t(GK,Object.assign({},s,{children:[e(qK,{}),e(Wx,Object.assign({width:"100%",height:"100%"},{children:t(GB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r},{children:[e(tL,{stroke:c,strokeDasharray:"3 5",vertical:!1}),e($L,{stroke:c,dataKey:"name",tickMargin:4}),e(WL,{stroke:c,tickMargin:4}),YK(),o&&e(Bg,{content:e(XK,{})}),i.map((({key:t,color:n},r)=>e(FI,{barSize:16,dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]}))}))]}))},r$=({date:n,onChange:r,preventPast:o,preventFuture:i,noShadow:a})=>{const{current:s}=g(n||new Date),[c,u]=v(s),[l,f]=v(s),[p,d]=v(),{calendar:h}=E(),m=e=>zK(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),b=e=>{const t=HK(("prev"===e?UK:vU)(l,{months:1}),1),n=m(t);f(n)},w=(e,t,n)=>{const r="past"===n;let o;o="past"===n?NK(UK(e,{months:1})):HK("future"===n?vU(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?UK:vU)(o,{days:e}),a=m(n);i[t](a)}return i},x=e=>{const t=function(e){return fU(1,arguments),dU(e).getDay()}(HK(e,1)),n=DK(e),r=42-(n+t),a=w(e,t,"past"),u=w(e,r,"future");return[...a,...w(e,n,"present"),...u].map((e=>{const t=m(s),n=o instanceof Date?m(o):t,r=i instanceof Date?m(i):t,a=m(NK(l)),u=m(HK(l,1));let f=!1;const p=RK(e,n),d=IK(e,r);(o&&p||i&&d)&&(f=!0);const h=IK(e,a)||RK(e,u),g=CU(e,s),y=CU(e,c);return{date:MK(e),fullDate:e,current:g,disabled:f,outside:h,active:y}}))};y((()=>{const e=x(l);d(e)}),[c,l]);return t(o$,Object.assign({noShadow:a},{children:[t(i$,{children:[e(a$,{children:PK(l,"MMMM Y")}),t(s$,{children:[e(Ln,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>b("prev"),hoverColor:h.color.iconHover}),e(Ln,{name:"chevron-right",pointer:!0,onClick:()=>b("next"),hoverColor:h.color.iconHover})]})]}),e(l$,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e(f$,{children:t[0]},t)))}),e(c$,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:o,current:i,outside:a,active:s})=>e(u$,Object.assign({disabled:o,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),r(e)})(n)},{children:t}),to())))})]}))},o$=Oe.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),i$=Oe.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),a$=Oe.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),s$=Oe.div({display:"flex"}),c$=Oe.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),u$=Oe.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),l$=Oe.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),f$=Oe.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),p$=Oe.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),Nn),d$=Oe.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),h$=Oe.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),g$=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,m=M(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=v("checkbox-off"),[x,_]=v(a||!1),O=g(null),C="right"===i,S={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return y((()=>{w(s?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,s]),y((()=>{_("boolean"==typeof a?a:x)}),[a,x]),t(p$,Object.assign({htmlFor:r,labelRight:C,disabled:c},S,{children:[o&&e(h$,{children:o}),e(d$,Object.assign({ref:O,id:r,type:"checkbox",checked:s?!x:x,disabled:c,onChange:()=>{const e=!!s||!x;_(e),u(e),(null==O?void 0:O.current)&&(O.current.indeterminate=!!s)}},m)),e(Ln,{name:b,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!c})]}))};
|
|
203
203
|
/**
|
|
204
204
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
205
205
|
*
|
|
@@ -208,5 +208,5 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
208
208
|
* @namespace
|
|
209
209
|
* @public
|
|
210
210
|
*/
|
|
211
|
-
var d$=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,O=l;_!==t.tail&&!(f&&O>=f.reach);O+=_.value.length,_=_.next){var C=_.value;if(t.length>e.length)return;if(!(C instanceof o)){var S,k=1;if(m){if(!(S=i(x,O,e,v))||S.index>=e.length)break;var E=S.index,A=S.index+S[0].length,j=O;for(j+=_.value.length;E>=j;)j+=(_=_.next).value.length;if(O=j-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(j<A||"string"==typeof T.value);T=T.next)k++,j+=T.value.length;k--,C=e.slice(O,j),S.index-=O}else if(!(S=i(x,0,C,v)))continue;E=S.index;var P=S[0],M=C.slice(0,E),D=C.slice(E+P.length),N=O+C.length;f&&N>f.reach&&(f.reach=N);var I=_.prev;if(M&&(I=c(t,I,M),O+=M.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var R={cause:p+","+h,reach:N};a(e,t,n,_.prev,O,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),h$=d$;d$.default=d$,h$.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},h$.languages.markup.tag.inside["attr-value"].inside.entity=h$.languages.markup.entity,h$.languages.markup.doctype.inside["internal-subset"].inside=h$.languages.markup,h$.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(h$.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:h$.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:h$.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},h$.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(h$.languages.markup.tag,"addAttribute",{value:function(e,t){h$.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:h$.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),h$.languages.html=h$.languages.markup,h$.languages.mathml=h$.languages.markup,h$.languages.svg=h$.languages.markup,h$.languages.xml=h$.languages.extend("markup",{}),h$.languages.ssml=h$.languages.xml,h$.languages.atom=h$.languages.xml,h$.languages.rss=h$.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(h$),h$.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},h$.languages.c=h$.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),h$.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),h$.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},h$.languages.c.string],char:h$.languages.c.char,comment:h$.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:h$.languages.c}}}}),h$.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete h$.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(h$),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(h$),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(h$),h$.languages.javascript=h$.languages.extend("clike",{"class-name":[h$.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),h$.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,h$.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:h$.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:h$.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:h$.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:h$.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:h$.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),h$.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:h$.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),h$.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),h$.languages.markup&&(h$.languages.markup.tag.addInlined("script","javascript"),h$.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),h$.languages.js=h$.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(h$),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(h$),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(h$),h$.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:h$.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},h$.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),h$.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(h$),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(h$),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(h$),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(h$),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(h$),h$.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},h$.languages.go=h$.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),h$.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete h$.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(h$),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(h$),h$.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},h$.languages.webmanifest=h$.languages.json,h$.languages.less=h$.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),h$.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),h$.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},h$.languages.objectivec=h$.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete h$.languages.objectivec["class-name"],h$.languages.objc=h$.languages.objectivec,h$.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},h$.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},h$.languages.python["string-interpolation"].inside.interpolation.inside.rest=h$.languages.python,h$.languages.py=h$.languages.python,h$.languages.reason=h$.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),h$.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete h$.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(h$),h$.languages.scss=h$.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),h$.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),h$.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),h$.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),h$.languages.scss.atrule.inside.rest=h$.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(h$),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(h$),h$.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var g$={Prism:h$,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function y$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v$(){return v$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v$.apply(this,arguments)}var m$=/\r\n|\r|\n/,b$=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},w$=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},x$=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=v$({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=v$({},n,{backgroundColor:null}),o};function _$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var O$=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),y$(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?x$(e.theme,e.language):void 0;return t.themeDict=n})),y$(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=v$({},_$(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?v$({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),y$(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),y$(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=v$({},_$(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?v$({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),y$(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=w$(l,f.type),f.alias&&(l=w$(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(m$),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)b$(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return b$(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(O),C$="#c5a5c5",S$="#8dc891",k$={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:C$}},{types:["attr-value"],style:{color:S$}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:S$}},{types:["punctuation"],style:{color:S$}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:C$}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},E$={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const A$=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,c=new Date,u=HK(n,"EEEE"),l=HK(n,"MMM d"),f=HK(n,"MMM d, y"),p=HK(n,"h:mm aaa"),d=qK(n),h=function(e){return xU(1,arguments),OU(e).getTime()>Date.now()}(n),g=function(e){return xU(1,arguments),NU(e,Date.now())}(n),y=function(e){return xU(1,arguments),NU(e,GK(Date.now(),1))}(n),v=function(e){return xU(1,arguments),NU(e,CU(Date.now(),1))}(n),m=VU(c,n),b=function(e,t,n){xU(2,arguments);var r=BU(e,t)/7;return HU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},j$=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},T$=({content:t})=>{const[n,r]=v(!1),{color:o,scale10:i}=E();y((()=>{n&&setTimeout((()=>{r(!1)}),2e3)}),[n]);return e(P$,Object.assign({onClick:()=>{j$(t),r(!0)},copied:n},{children:e(Ln,n?{name:"check-circle",color:o.success}:{name:"copy",color:i})}))},P$=Oe.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),M$=({method:n,url:r})=>{const o=E(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(n.toUpperCase(),o);return t(D$,Object.assign({},i,{children:[e(N$,Object.assign({backgroundColor:i.borderColor},{children:n.toUpperCase()})),e(I$,{children:r}),e(T$,{content:r})]}))},D$=Oe.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),N$=Oe.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),I$=Oe.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),R$=({children:n,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=E(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Rt.range(r,o+1):Rt.rangeRight(o,r+1)}return null})),n=t.flat();return Rt.compact(n)})(v);return t.some((t=>e===t))}return!1},O=(null==r?void 0:r.trim())||(null==n?void 0:n.trim())||"";return"rest"===b?e(M$,{method:w,url:O}):e(O$,Object.assign({},g$,{code:O,language:b,theme:"dark"===d?k$:E$},{children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>t(L$,Object.assign({className:n,style:Object.assign({},r)},h,{"data-testid":"code"},{children:[o.map(((n,r,o)=>t(B$,Object.assign({},i({line:n,key:r}),{highlight:_(r+1)},{children:[o.length>1&&!x&&e(F$,{children:r+1}),n.map(((t,n)=>e("span",Object.assign({},a({token:t,key:n})),t.content)))]})))),e(T$,{content:O})]}))}))},L$=Oe.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),Nn),B$=Oe.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),F$=Oe.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),z$=Oe.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var H$={};({get exports(){return H$},set exports(e){H$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function C(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(A)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function A(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,N=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=R||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(R&&e[R]||e[L]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=N,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return W(e)?new te(e):U(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Oe(){}function Ce(){}function Se(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new be(this._value,P(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):H()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=T(e,this.size),(t=P(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Oe,_e),t(Ce,_e),t(Se,_e),_e.Keyed=Oe,_e.Indexed=Ce,_e.Set=Se;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function Ae(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?je(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Pe(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Pe(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Ne(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Re)Ie.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ne(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Oe),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Vt(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(O(s),O(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new C);for(var o=new Qe(e,Ae(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ot)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=o===b;if(n!==this.keyHash)return s?this:(O(a),O(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(O(a),s?void O(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(O(i),ct(this,e,t,Ae(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=v/4,_t=v/2,Ot=v/4;function Ct(e){var t=Nt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new At(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function St(e){return!(!e||!e[kt])}t(Ct,Ce),Ct.of=function(){return this(arguments)},Ct.prototype.toString=function(){return this.__toString("List [","]")},Ct.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},Ct.prototype.set=function(e,t){return It(this,e,t)},Ct.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ct.prototype.insert=function(e,t){return this.splice(e,0,t)},Ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},Ct.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Ct.prototype.pop=function(){return Ft(this,0,-1)},Ct.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Ct.prototype.shift=function(){return Ft(this,1)},Ct.prototype.merge=function(){return zt(this,void 0,arguments)},Ct.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ct.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ct.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ct.prototype.setSize=function(e){return Ft(this,0,e)},Ct.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ct.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?H():z(e,n++,t)}))},Ct.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!1!==e(n,r++,this););return r},Ct.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ct.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ct.prototype;function At(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,At.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new At([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Tt,Pt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Pt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Pt)return e;s=null}if(u===l)return Pt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Nt(){return jt||(jt=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Rt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Rt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(O(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new At(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ht(i),p=Ht(s);p>=1<<c+y;)u=new At(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new At([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<v?0:e-1>>>y<<y}function Vt(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Kt(ot(),Nt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===N?D:N,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Vt():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=T(t,o),a=P(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===N?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===N?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return H()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(N,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(N,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function On(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Cn);return o.constructor=r,r}t(Vt,Ke),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Ut,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(N,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(On,Oe),On.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},On.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},On.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},On.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},On.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Sn(this,n)},On.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Sn(this,t)},On.prototype.wasAltered=function(){return this._map.wasAltered()},On.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},On.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},On.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=On.prototype;function Sn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(An.bind(void 0,e))}catch(e){}}function An(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jn(e){return null==e?Rn():Tn(e)&&!l(e)?e:Rn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}Cn[g]=Cn.remove,Cn.deleteIn=Cn.removeIn=Ge.removeIn,Cn.merge=Ge.merge,Cn.mergeWith=Ge.mergeWith,Cn.mergeIn=Ge.mergeIn,Cn.mergeDeep=Ge.mergeDeep,Cn.mergeDeepWith=Ge.mergeDeepWith,Cn.mergeDeepIn=Ge.mergeDeepIn,Cn.setIn=Ge.setIn,Cn.update=Ge.update,Cn.updateIn=Ge.updateIn,Cn.withMutations=Ge.withMutations,Cn.asMutable=Ge.asMutable,Cn.asImmutable=Ge.asImmutable,t(jn,Se),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Nn(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Nn(this,this._map.remove(e))},jn.prototype.clear=function(){return Nn(this,this._map.clear())},jn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},jn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},jn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Ln(fn(this,e))},jn.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jn.isSet=Tn;var Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=jn.prototype;function Nn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Pn||(Pn=In(ot()))}function Ln(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Ln,jn),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn($t()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Un,Ce),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Ce.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return jn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return Ct(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(A)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return S(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(Ae(e),Ae(t))|0}:function(e,t){r=r+cr(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(S(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(S(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Oe,r.prototype),Yn(Ce,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Vt,List:Ct,Stack:Un,Set:jn,OrderedSet:Ln,Record:On,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var V$=H$.OrderedMap,U$={createFromArray:function(e){return V$(e.map((function(e){return[e.getKey(),e]})))}};var K$=H$,$$=K$.Map,W$=K$.OrderedSet,q$=K$.Record,G$=W$(),Z$={style:G$,entity:null},Y$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return X$;var t=$$({style:G$,entity:null}).merge(e),n=J$.get(t);if(n)return n;var o=new r(t);return J$=J$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?W$(t):t,entity:Array.isArray(n)?W$(n):n})},r}(q$(Z$)),X$=new Y$,J$=$$([[$$(Z$),X$]]);Y$.EMPTY=X$;var Q$=Y$;var eW=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var tW=Q$,nW=eW,rW=H$,oW=rW.List,iW=rW.Map,aW=rW.OrderedSet,sW=rW.Record,cW=rW.Repeat,uW=aW(),lW=sW({key:"",type:"unstyled",text:"",characterList:oW(),depth:0,data:iW()}),fW=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=oW(cW(tW.EMPTY,n.length))),e},pW=function(e){var t,n;function r(t){return e.call(this,fW(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():uW},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){nW(this.getCharacterList(),dW,e,t)},o.findEntityRanges=function(e,t){nW(this.getCharacterList(),hW,e,t)},r}(lW);function dW(e,t){return e.getStyle()===t.getStyle()}function hW(e,t){return e.getEntity()===t.getEntity()}var gW=pW;var yW=Q$,vW=eW,mW=H$,bW=mW.List,wW=mW.Map,xW=mW.OrderedSet,_W=mW.Record,OW=mW.Repeat,CW=xW(),SW={parent:null,characterList:bW(),data:wW(),depth:0,key:"",text:"",type:"unstyled",children:bW(),prevSibling:null,nextSibling:null},kW=function(e,t){return e.getStyle()===t.getStyle()},EW=function(e,t){return e.getEntity()===t.getEntity()},AW=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=bW(OW(yW.EMPTY,n.length))),e},jW=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SW;return e.call(this,AW(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():CW},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){vW(this.getCharacterList(),kW,e,t)},o.findEntityRanges=function(e,t){vW(this.getCharacterList(),EW,e,t)},r}(_W(SW)),TW=jW,PW=Q$,MW=H$.Map;function DW(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(MW([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?PW.applyStyle(l,n):PW.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var NW={add:function(e,t,n){return DW(e,t,n,!0)},remove:function(e,t,n){return DW(e,t,n,!1)}},IW=Q$;var RW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,IW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},LW=H$;var BW=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(LW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return RW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},FW={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},zW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var HW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(zW(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},VW=HW;var UW=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?VW(!1,"Entity key not found in this range."):VW(!1)),n},KW=FW,$W=UW,WW=HW;function qW(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=$W(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?WW(!1,"There should only be one entity range within this removal range."):WW(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=KW.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var GW=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=qW(e,t,u,o,s,!0,!0);else if(s&&c){var l=qW(e,t,u,o,s,!1,!0),f=qW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=qW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=qW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},ZW={},YW=Math.pow(2,24);var XW=function(){for(var e;void 0===e||ZW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*YW).toString(32);return ZW[e]=!0,e},JW=TW,QW=XW,eq=H$.OrderedMap,tq=function(e){return e.first()instanceof JW?function(e){var t,n={};return eq(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=QW();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return eq(e.toArray().map((function(e){var t=QW();return[t,e.set("key",t)]})))}(e)},nq=Q$,rq=eW,oq=HW;function iq(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return rq(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?oq(!1,"Removal range must exist within character list."):oq(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,nq.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var aq=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=iq(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=iq(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},sq=tq,cq=aq,uq=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=cq(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return sq(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var lq=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},fq=U$,pq=TW,dq=lq,hq=HW,gq=tq,yq=H$.List,vq=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:dq(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},mq=function(e,t,n,r,o,i){var a=n.first()instanceof pq,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=fq.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],yq(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},bq=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?hq(!1,"`insertFragment` should only be called with a collapsed selection state."):hq(!1));var o=e.getBlockMap(),i=gq(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof pq&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?hq(!1,"`insertFragment` should not be called when a container node is selected."):hq(!1))),1===i.size?vq(e,t,o,i.first(),a,s,r):mq(e,t,o,i,a,s)},wq=lq,xq=HW,_q=H$.Repeat;var Oq=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?xq(!1,"`insertText` should only be called with a collapsed range."):xq(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:wq(c.getCharacterList(),_q(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},Cq=H$.Map;var Sq=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(Cq([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},kq=TW,Eq=function(e,t){if(!(e instanceof kq))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},Aq=TW,jq=Eq,Tq=H$;Tq.List;var Pq=Tq.Map,Mq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Dq=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Nq=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Iq=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},Rq=function(e,t,n,r){return e.withMutations((function(o){if(Mq(t.getKey(),o,(function(e){return e.merge({nextSibling:Nq(e,o,r),prevSibling:Iq(e,o,r)})})),Mq(n.getKey(),o,(function(e){return e.merge({nextSibling:Nq(e,o,r),prevSibling:Iq(e,o,r)})})),Dq(t.getKey(),r).forEach((function(e){return Mq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Nq(e,o,r),prevSibling:Iq(e,o,r)})}))})),Mq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),Mq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Nq(e,o,r)})})),Mq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Iq(e,o,r)})})),Mq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Dq(n.getKey(),r).forEach((function(e){Mq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Nq(e,o,r),prevSibling:Iq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=jq(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?jq(o,t):null}return n}(n,r).forEach((function(e){return Mq(e,o,(function(e){return e.merge({nextSibling:Nq(e,o,r),prevSibling:Iq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();Mq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),Mq(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){Mq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);Mq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}Mq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Lq=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},Bq=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof Aq,f=[];if(l){var p=u.getChildKeys(),d=Dq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(Dq(jq(u,r),r))}n=c===u?Lq(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?Pq([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(Pq([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=Rq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},Fq=TW,zq=XW,Hq=H$,Vq=HW,Uq=Sq,Kq=Hq.List,$q=Hq.Map,Wq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},qq=Q$,Gq=NW,Zq=BW,Yq=GW,Xq=uq,Jq=bq,Qq=Oq,eG=HW,tG=Sq,nG=aq,rG=Bq,oG=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?Vq(!1,"Selection range must be collapsed."):Vq(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Uq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=zq(),l=o instanceof Fq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:$q()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Vq(!1,"ContentBlockNode must not have children"):Vq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Wq(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:Kq(i)})})),Wq(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Wq(r,e,(function(e){return e.merge({nextSibling:o})})),Wq(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},iG=H$.OrderedSet,aG={replaceText:function(e,t,n,r,o){var i=nG(e,t),a=rG(i,t),s=qq.create({style:r||iG(),entity:o||null});return Qq(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?eG(!1,"Target range must be collapsed for `insertText`."):eG(!1)),aG.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Xq(e,t),o=aG.removeRange(e,t,"backward");return aG.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=nG(e,t),i=rG(o,t);return Jq(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=Yq(e.getEntityMap(),i,a,t,n);return rG(e,f)}var p=nG(e,t);return rG(p,t)},splitBlock:function(e,t){var n=nG(e,t),r=rG(n,t);return oG(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Gq.add(e,t,n)},removeInlineStyle:function(e,t,n){return Gq.remove(e,t,n)},setBlockType:function(e,t,n){return tG(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return tG(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return tG(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=nG(e,t);return Zq(r,t,n)}},sG=aG;var cG=function(e){return Object.keys(e).map((function(t){return e[t]}))};function uG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lG=eW,fG=cG,pG=H$,dG=pG.List,hG=pG.Repeat,gG=pG.Record,yG=function(){return!0},vG=gG({start:null,end:null}),mG=gG({start:null,end:null,decoratorKey:null,leaves:null}),bG={generate:function(e,t,n){var r=t.getLength();if(!r)return dG.of(new mG({start:0,end:0,decoratorKey:null,leaves:dG.of(new vG({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):dG(hG(null,r)),a=t.getCharacterList();return lG(i,xG,yG,(function(e,t){o.push(new mG({start:e,end:t,decoratorKey:i.get(e),leaves:wG(a.slice(e,t).toList(),e)}))})),dG(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new mG(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uG(e,t,n[t])}))}return e}({},n,{leaves:null!=t?dG(Array.isArray(t)?t:fG(t)).map((function(e){return vG(e)})):null}))}};function wG(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return lG(r,xG,yG,(function(e,r){n.push(new vG({start:e+t,end:r+t}))})),dG(n)}function xG(e,t){return e===t}var _G=bG;var OG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,H$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),CG=OG;var SG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function kG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EG=CG,AG=HW,jG=SG,TG=(0,H$.Map)(),PG=jG();function MG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var DG={getLastCreatedEntityKey:function(){return MG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),DG.__getLastCreatedEntityKey()},create:function(e,t,n){return MG("DraftEntity.create","contentState.createEntity"),DG.__create(e,t,n)},add:function(e){return MG("DraftEntity.add","contentState.addEntity"),DG.__add(e)},get:function(e){return MG("DraftEntity.get","contentState.getEntity"),DG.__get(e)},__getAll:function(){return TG},__loadWithEntities:function(e){TG=e,PG=jG()},mergeData:function(e,t){return MG("DraftEntity.mergeData","contentState.mergeEntityData"),DG.__mergeData(e,t)},replaceData:function(e,t){return MG("DraftEntity.replaceData","contentState.replaceEntityData"),DG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return PG},__create:function(e,t,n){return DG.__add(new EG({type:e,mutability:t,data:n||{}}))},__add:function(e){return PG=jG(),TG=TG.set(PG,e),PG},__get:function(e){var t=TG.get(e);return t||("production"!==process.env.NODE_ENV?AG(!1,"Unknown DraftEntity key: %s.",e):AG(!1)),t},__mergeData:function(e,t){var n=DG.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kG(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return TG=TG.set(e,o),o},__replaceData:function(e,t){var n=DG.__get(e).set("data",t);return TG=TG.set(e,n),n}},NG=DG;var IG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,H$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),RG=IG,LG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},BG=new RegExp("\r","g");var FG=function(e){return e.replace(BG,"")};function zG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HG(e,t,n[t])}))}return e}function HG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VG=U$,UG=Q$,KG=gW,$G=TW,WG=NG,qG=RG,GG=XW,ZG=cG,YG=LG,XG=H$,JG=FG,QG=XG.List,eZ=XG.Record,tZ=XG.Repeat,nZ=XG.Map,rZ=XG.OrderedMap,oZ=eZ({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),iZ=YG("draft_tree_data_support")?$G:KG,aZ=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return WG},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return WG.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return WG.__create(e,t,n),this},o.mergeEntityData=function(e,t){return WG.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return WG.__replaceData(e,t),this},o.addEntity=function(e){return WG.__add(e),this},o.getEntity=function(e){return WG.__get(e)},o.getAllEntities=function(){return WG.__getAll()},o.loadWithEntities=function(e){return WG.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=VG.createFromArray(n),i=o.isEmpty()?new qG:qG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||WG,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=JG(e),new iZ({key:GG(),text:e,type:"unstyled",characterList:QG(tZ(UG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(zG({},e,{blockMap:rZ(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new qG(e.selectionBefore),selectionAfter:new qG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new iZ(zG({},e,{data:nZ(e.data),characterList:null!=t?QG((Array.isArray(t)?t:ZG(t)).map((function(e){return UG.fromJS(e)}))):void 0}))},r}(oZ),sZ=aZ,cZ=HW,uZ="LTR",lZ="RTL",fZ=null;function pZ(e){return e===uZ||e===lZ}function dZ(e){return pZ(e)||("production"!==process.env.NODE_ENV?cZ(!1,"`dir` must be a strong direction to be converted to HTML Direction"):cZ(!1)),e===uZ?"ltr":"rtl"}function hZ(e){fZ=e}var gZ={NEUTRAL:"NEUTRAL",LTR:uZ,RTL:lZ,isStrong:pZ,getHTMLDir:dZ,getHTMLDirIfDifferent:function(e,t){return pZ(e)||("production"!==process.env.NODE_ENV?cZ(!1,"`dir` must be a strong direction to be converted to HTML Direction"):cZ(!1)),pZ(t)||("production"!==process.env.NODE_ENV?cZ(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):cZ(!1)),e===t?null:dZ(e)},setGlobalDir:hZ,initGlobalDir:function(){hZ(uZ)},getGlobalDir:function(){return fZ||this.initGlobalDir(),fZ||("production"!==process.env.NODE_ENV?cZ(!1,"Global direction not set."):cZ(!1)),fZ}},yZ=gZ,vZ=HW,mZ="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",bZ="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",wZ=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+mZ+bZ+"]"),xZ=new RegExp("["+mZ+bZ+"]");function _Z(e){var t=wZ.exec(e);return null==t?null:t[0]}function OZ(e){var t=_Z(e);return null==t?yZ.NEUTRAL:xZ.exec(t)?yZ.RTL:yZ.LTR}function CZ(e,t){if(t=t||yZ.NEUTRAL,!e.length)return t;var n=OZ(e);return n===yZ.NEUTRAL?t:n}function SZ(e,t){return t||(t=yZ.getGlobalDir()),yZ.isStrong(t)||("production"!==process.env.NODE_ENV?vZ(!1,"Fallback direction must be a strong direction"):vZ(!1)),CZ(e,t)}var kZ={firstStrongChar:_Z,firstStrongCharDir:OZ,resolveBlockDir:CZ,getDirection:SZ,isDirectionLTR:function(e,t){return SZ(e,t)===yZ.LTR},isDirectionRTL:function(e,t){return SZ(e,t)===yZ.RTL}};function EZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AZ,jZ=kZ,TZ=gZ,PZ=HW,MZ=function(){function e(e){EZ(this,"_defaultDir",void 0),EZ(this,"_lastDir",void 0),e?TZ.isStrong(e)||("production"!==process.env.NODE_ENV?PZ(!1,"Default direction must be a strong direction (LTR or RTL)"):PZ(!1)):e=TZ.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=jZ.getDirection(e,this._lastDir),this._lastDir},e}(),DZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},NZ=MZ,IZ=H$,RZ=DZ,LZ=IZ.OrderedMap;function BZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FZ(e,t,n[t])}))}return e}function FZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zZ=_G,HZ=sZ,VZ={getDirectionMap:function(e,t){AZ?AZ.reset():AZ=new NZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return RZ(AZ).getDirection(e.getText())})),o=LZ(n.keySeq().zip(r));return null!=t&&IZ.is(t,o)?t:o}},UZ=RG,KZ=H$,$Z=KZ.OrderedSet,WZ=KZ.Record,qZ=KZ.Stack,GZ=KZ.OrderedMap,ZZ=KZ.List,YZ=WZ({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:qZ(),selection:null,treeMap:null,undoStack:qZ()}),XZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(HZ.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:qZ(),redoStack:qZ(),decorator:n||null,selection:UZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=BZ({},e,{treeMap:QZ(n,e.decorator),directionMap:VZ.getDirectionMap(n)});return new t(new YZ(r))},t.fromJS=function(e){return new t(new YZ(BZ({},e,{directionMap:null!=e.directionMap?GZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?$Z(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?HZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?qZ(e.redoStack.map((function(e){return HZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new UZ(e.selection):e.selection,treeMap:null!=e.treeMap?GZ(e.treeMap).map((function(e){return ZZ(e).map((function(e){return zZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?qZ(e.undoStack.map((function(e){return HZ.fromJS(e)}))):e.undoStack,currentContent:HZ.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return zZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):QZ(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return zZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){FZ(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return eY(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return eY(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return JZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),JZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new UZ({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=VZ.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:qZ(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=VZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=VZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function JZ(e,t,n){return XZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function QZ(e,t){return e.getBlockMap().map((function(n){return zZ.generate(e,n,t)})).toOrderedMap()}function eY(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):$Z()}var tY=XZ,nY=TW,rY=Eq,oY=H$,iY=HW,aY=oY.OrderedMap,sY=oY.List,cY=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},uY=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){cY(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),cY(l,e,(function(e){return e.merge({nextSibling:u})})),cY(u,e,(function(e){return e.merge({prevSibling:l})})),cY(p,e,(function(e){return e.merge({prevSibling:a})})),cY(d,e,(function(e){return e.merge({nextSibling:a})})),cY(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:sY(o)})})),cY(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function lY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fY(e,t,n[t])}))}return e}function fY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pY=U$,dY=Q$,hY=gW,gY=TW,yY=sG,vY=tY,mY=XW,bY=H$,wY=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?iY(!1,"Replacing blocks is not supported."):iY(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?iY(!1,"Block cannot be moved next to itself."):iY(!1));var a=e.getBlockMap(),s=t instanceof nY,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=rY(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=aY();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?iY(!1,"Block cannot be moved next to itself."):iY(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?iY(!1,"Block cannot be moved next to itself."):iY(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:uY(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},xY=LG("draft_tree_data_support"),_Y=xY?gY:hY,OY=bY.List,CY=bY.Repeat,SY={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=yY.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=yY.splitBlock(i,a),c=s.getSelectionAfter(),u=yY.setBlockType(s,c,"atomic"),l=dY.create({entity:t}),f={key:mY(),type:"atomic",text:n,characterList:OY(CY(l,n.length))},p={key:mY(),type:"unstyled"};xY&&(f=lY({},f,{nextSibling:p.key}),p=lY({},p,{prevSibling:f.key}));var d=[new _Y(f),new _Y(p)],h=pY.createFromArray(d),g=yY.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return vY.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=wY(i,t,s,r)}else{var c=yY.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=wY(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=wY(c,t,l,"after");else{var f=yY.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=wY(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return vY.push(e,h,"move-block")}};var kY=H$.List,EY=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),kY(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var AY=EY;function jY(e){return e.replace(/\//g,"-")}var TY=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(jY).join(" "):Array.prototype.map.call(arguments,jY).join(" ")},PY=o,MY=TY,DY=(0,H$.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:PY.createElement("ul",{className:MY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:PY.createElement("ol",{className:MY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:PY.createElement("pre",{className:MY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),NY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},IY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",O="BlackBerry",C="Browser",S="Chrome",k="Firefox",E="Google",A="Huawei",j="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",N="Sharp",I="Sony",R="Xiaomi",L="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+C],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,H]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,A],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,A],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,R],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,R],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,j],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,j],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,O],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,N],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,I],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,j],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,N],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,R],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,L],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,U.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>350?V(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:D)}({get exports(){return IY},set exports(e){IY=e}},IY);var RY="Unknown",LY={"Mac OS":"Mac OS X"};var BY,FY=(new IY).getResult(),zY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(FY.browser.version),HY={browserArchitecture:FY.cpu.architecture||RY,browserFullVersion:FY.browser.version||RY,browserMinorVersion:zY.minor||RY,browserName:FY.browser.name||RY,browserVersion:FY.browser.major||RY,deviceName:FY.device.model||RY,engineName:FY.engine.name||RY,engineVersion:FY.engine.version||RY,platformArchitecture:FY.cpu.architecture||RY,platformName:(BY=FY.os.name,LY[BY]||BY||RY),platformVersion:FY.os.version||RY,platformFullVersion:FY.os.version||RY},VY=HW,UY=/\./,KY=/\|\|/,$Y=/\s+\-\s+/,WY=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,qY=/^(\d*)(.*)/;function GY(e,t){var n=e.split(KY);return n.length>1?n.some((function(e){return iX.contains(e,t)})):function(e,t){var n=e.split($Y);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?VY(!1,'the "-" operator expects exactly 2 operands'):VY(!1)),1===n.length)return ZY(n[0],t);var r=n[0],o=n[1];return eX(r)&&eX(o)||("production"!==process.env.NODE_ENV?VY(!1,'operands to the "-" operator must be simple (no modifiers)'):VY(!1)),ZY(">="+r,t)&&ZY("<="+o,t)}(e=n[0].trim(),t)}function ZY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(UY),r=JY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return YY(n,i);case"<=":return function(e,t){var n=oX(e,t);return-1===n||0===n}(n,i);case">=":return XY(n,i);case">":return function(e,t){return 1===oX(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);QY(i)&&(r[o]=i+1+"");return XY(e,n)&&YY(e,r)}(n,i);default:return function(e,t){return 0===oX(e,t)}(n,i)}}function YY(e,t){return-1===oX(e,t)}function XY(e,t){var n=oX(e,t);return 1===n||0===n}function JY(e){var t=e.split(UY),n=t[0].match(WY);return n||("production"!==process.env.NODE_ENV?VY(!1,"expected regex to match but it did not"):VY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function QY(e){return!isNaN(e)&&isFinite(e)}function eX(e){return!JY(e).modifier}function tX(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function nX(e,t){var n=e.match(qY)[1],r=t.match(qY)[1],o=parseInt(n,10),i=parseInt(r,10);return QY(o)&&QY(i)&&o!==i?rX(o,i):rX(e,t)}function rX(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?VY(!1,'"a" and "b" must be of the same type'):VY(!1)),e>t?1:e<t?-1:0}function oX(e,t){for(var n=function(e,t){tX(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return tX(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=nX(r[i],o[i]);if(a)return a}return 0}var iX={contains:function(e,t){return GY(e.trim(),t.trim())}},aX=iX,sX=Object.prototype.hasOwnProperty;var cX=function(e,t,n){if(!e)return null;var r={};for(var o in e)sX.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var uX=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},lX=HY,fX=aX;function pX(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,fX.contains(o,t))}function dX(e){return"Windows"===lX.platformName?e.replace(/^\s*NT/,""):e}var hX=cX({isBrowser:function(e){return pX(lX.browserName,lX.browserFullVersion,e)},isBrowserArchitecture:function(e){return pX(lX.browserArchitecture,null,e)},isDevice:function(e){return pX(lX.deviceName,null,e)},isEngine:function(e){return pX(lX.engineName,lX.engineVersion,e)},isPlatform:function(e){return pX(lX.platformName,lX.platformFullVersion,e,dX)},isPlatformArchitecture:function(e){return pX(lX.platformArchitecture,null,e)}},uX);var gX=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var yX=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},vX=yX;var mX=function e(t){if(vX(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},bX=gX,wX=mX;var xX=function(e){for(var t=e;t&&t!==bX(e).documentElement;){var n=wX(t);if(null!=n)return n;t=t.parentNode}return null};var _X=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function OX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CX=hX,SX=xX,kX=_X,EX=HW,AX=DZ,jX=H$.Map,TX={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},PX=CX.isBrowser("IE <= 11"),MX=function(){function e(e){var t=this;OX(this,"observer",void 0),OX(this,"container",void 0),OX(this,"mutations",void 0),OX(this,"onCharData",void 0),this.container=e,this.mutations=jX();var n=kX(e);n.MutationObserver&&!PX?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?EX(!1,"Expected target to be an instance of Node"):EX(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,TX):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=jX(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return PX?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=AX(SX(e.target));this.mutations=this.mutations.set(n,t)}},e}(),DX="-",NX={encode:function(e,t,n){return e+DX+t+DX+n},decode:function(e){var t=e.split(DX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(DX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},IX={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},RX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var LX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},BX=HW,FX=LX;var zX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?BX(!1,"Missing editorNode"):BX(!1)),FX(t.firstChild)||("production"!==process.env.NODE_ENV?BX(!1,"editorNode.firstChild is not an HTMLElement"):BX(!1)),t.firstChild},HX=NX,VX=DZ;var UX=function(e,t,n,r,o){var i=VX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=HX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=HX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=d.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},KX=xX,$X=mX,WX=UX,qX=HW,GX=yX,ZX=DZ;function YX(e,t,n){var r=t,o=KX(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?qX(!1,"Unknown node in selection range."):qX(!1)),e===r)&&(r=r.firstChild,GX(r)||("production"!==process.env.NODE_ENV?qX(!1,"Invalid DraftEditorContents node."):qX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?qX(!1,"Invalid DraftEditorContents structure."):qX(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(GX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||$X(e.firstChild));)e=e.firstChild;return e}(r);i=ZX($X(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if($X(s)){var l=function(e){for(;e.lastChild&&(GX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||$X(e.lastChild));)e=e.lastChild;return e}(s);c=ZX($X(l)),u=XX(l)}else c=ZX(o),u=XX(s);return{key:c,offset:u}}function XX(e){var t=e.textContent;return"\n"===t?0:t.length}var JX=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:WX(e,ZX(KX(n)),r,ZX(KX(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:ZX(KX(n)),offset:r},u=YX(t,o,i)):s?(u={key:ZX(KX(o)),offset:i},c=YX(t,n,r)):(c=YX(t,n,r),u=YX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:WX(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},QX=JX;var eJ=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:QX(e,t,r,o,i,a)},tJ=RX,nJ=tY,rJ=zX,oJ=eJ;var iJ=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();tJ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=oJ(n,rJ(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?nJ.forceSelection(n,o):nJ.acceptSelection(n,o),e.update(n))}};var aJ={notEmptyKey:function(e){return null!=e&&""!=e}},sJ=aJ.notEmptyKey;function cJ(e,t){return sJ(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var uJ=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:cJ(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),cJ(e.getEntityMap(),n)},lJ=MX,fJ=sG,pJ=NX,dJ=tY,hJ=IX,gJ=iJ,yJ=zX,vJ=eJ,mJ=uJ,bJ=DZ,wJ=hX.isBrowser("IE"),xJ=!1,_J=!1,OJ=null;var CJ,SJ,kJ={onCompositionStart:function(e){_J=!0,function(e){OJ||(OJ=new lJ(yJ(e))).start()}(e)},onCompositionEnd:function(e){xJ=!1,_J=!1,setTimeout((function(){xJ||kJ.resolveComposition(e)}),20)},onSelect:gJ,onKeyDown:function(e,t){if(!_J)return kJ.resolveComposition(e),void e._onKeyDown(t);t.which!==hJ.RIGHT&&t.which!==hJ.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===hJ.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!_J){var t=bJ(OJ).stopAndFlushMutations();OJ=null,xJ=!0;var n=dJ.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=pJ.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=mJ(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=fJ.replaceText(r,f,e,d,p),n=dJ.set(n,{currentContent:r})}));var o=vJ(n,yJ(e)).selectionState;e.restoreEditorDOM();var i=wJ?dJ.forceSelection(n,o):dJ.acceptSelection(n,o);e.update(dJ.push(i,r,"insert-characters"))}else e.update(n)}}},EJ=kJ;function AJ(){if(SJ)return CJ;SJ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=NX,r=o,i=kZ,a=gZ,s=function(e){var o,s;function c(){return e.apply(this,arguments)||this}return s=e,(o=c).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s,c.prototype.render=function(){var e=this.props,o=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=o.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return r.createElement(y,t({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:o.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(r.Component);return CJ=s}function jJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PJ=o,MJ=HW,DJ=yX,NJ=hX.isBrowser("IE <= 11");var IJ=function(e){var t,n;function r(t){var n;return TJ(jJ(n=e.call(this,t)||this),"_forceFlag",void 0),TJ(jJ(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;DJ(t)||("production"!==process.env.NODE_ENV?MJ(!1,"node is not an Element"):MJ(!1));var r=t;return n?!function(e){return NJ?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},NJ?PJ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):PJ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return NJ?PJ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):PJ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):PJ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(PJ.Component),RJ=IJ,LJ=yX;var BJ=function(e){return!(!e||!e.ownerDocument)&&(LJ(e)&&"BR"===e.nodeName)};var FJ=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},zJ=FJ;var HJ=function(e){return zJ(e)&&3==e.nodeType},VJ=HJ;var UJ=function e(t,n){return!(!t||!n)&&(t===n||!VJ(t)&&(VJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var KJ=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},$J=RX,WJ=UJ,qJ=KJ,GJ=gX,ZJ=HW,YJ=yX,XJ=hX.isBrowser("IE");function JJ(e,t){if(!e)return"[empty]";var n=QJ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(YJ(n)||("production"!==process.env.NODE_ENV?ZJ(!1,"Node must be an Element if it is not a text node."):ZJ(!1)),n.outerHTML)}function QJ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return GJ(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(QJ(i[a],t));return o}function eQ(e,t){for(var n=e,r=n;n;){if(YJ(n)&&r.hasAttribute("contenteditable"))return JJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function tQ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function nQ(e,t,n,r){var o=qJ();if(e.extend&&null!=t&&WJ(o,t)){n>tQ(t)&&$J.logSelectionStateFailure({anonymizedDom:eQ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw $J.logSelectionStateFailure({anonymizedDom:eQ(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function rQ(e,t,n,r){var o=GJ(t).createRange();if(n>tQ(t)&&$J.logSelectionStateFailure({anonymizedDom:eQ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),XJ)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var oQ=function(e,t,n,r,o){var i=GJ(t);if(WJ(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),rQ(a,t,c-r,e),void nQ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),rQ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),rQ(a,t,c-r,e),nQ(a,y,v,e)}}else h&&(a.removeAllRanges(),rQ(a,t,c-r,e)),g&&nQ(a,t,l-r,e)}},iQ=ny;var aQ,sQ,cQ=RJ,uQ=o,lQ=HW,fQ=BJ,pQ=oQ,dQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?lQ(!1,"Missing node"):lQ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?lQ(!1,"Missing child"):lQ(!1)),u.nodeType===Node.TEXT_NODE?c=u:fQ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?lQ(!1,"Missing targetNode"):lQ(!1)),pQ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?lQ(!1,"Missing leafNode"):lQ(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),iQ(e,r,n)}),{});if(i){var u=i(s,t);c=iQ(c,u)}return uQ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},uQ.createElement(cQ,null,n))},r}(uQ.Component),hQ=dQ;function gQ(){if(sQ)return aQ;sQ=1;var e=AJ(),t=hQ,n=NX,r=o,i=TY;H$.List;var a=function(o){var a,s;function c(){return o.apply(this,arguments)||this}return s=o,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var o=this.props,a=o.block,s=o.contentState,c=o.customStyleFn,u=o.customStyleMap,l=o.decorator,f=o.direction,p=o.forceSelection,d=o.hasSelection,h=o.selection,g=o.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(o,i){var g=o.get("decoratorKey"),b=o.get("leaves"),w=b.size-1,x=b.map((function(e,o){var s=n.encode(y,i,o),l=e.get("start"),f=e.get("end");return r.createElement(t,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&o===w})})).toArray();return g&&l?r.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:o,text:v,key:i}):x})).toArray();return r.createElement("div",{"data-offset-key":n.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(r.Component);return aQ=a}function yQ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var vQ={getTop:function(e){var t=e.ownerDocument;return yQ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;yQ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return yQ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;yQ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},mQ=/-(.)/g;var bQ=function(e){return e.replace(mQ,(function(e,t){return t.toUpperCase()}))},wQ=/([A-Z])/g;var xQ=function(e){return e.replace(wQ,"-$1").toLowerCase()},_Q=bQ,OQ=xQ;function CQ(e){return null==e?e:String(e)}var SQ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return CQ(n.getPropertyValue(OQ(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return CQ(n.getPropertyValue(OQ(t)));if("display"===t)return"none"}return e.currentStyle?CQ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[_Q(t)]):CQ(e.style&&e.style[_Q(t)])};function kQ(e,t){var n=EQ.get(e,t);return"auto"===n||"scroll"===n}var EQ={get:SQ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(kQ(e,"overflow")||kQ(e,"overflowY")||kQ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},AQ=EQ,jQ=UJ;var TQ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!jQ(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var PQ=function(e){var t=TQ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},MQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var DQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:MQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},NQ=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var IQ=function(e){var t=DQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=NQ(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function RQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function LQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function BQ(){return{width:window.innerWidth||RQ(),height:window.innerHeight||LQ()}}BQ.withoutScrollbars=function(){return{width:RQ(),height:LQ()}};var FQ,zQ,HQ,VQ,UQ=BQ;function KQ(){if(zQ)return FQ;zQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=gQ(),a=NX,s=o,c=vQ,u=AQ,l=PQ,f=IQ,p=UQ,d=HW,h=LX;H$.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,r,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=n({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var o,b;function w(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",s.createRef()),t}b=e,(o=w).prototype=Object.create(b.prototype),o.prototype.constructor=o,o.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,r=this.props,o=r.block,c=r.blockRenderMap,u=r.blockRendererFn,l=r.blockStyleFn,f=r.contentState,p=r.decorator,d=r.editorKey,h=r.editorState,b=r.customStyleFn,x=r.customStyleMap,_=r.direction,O=r.forceSelection,C=r.selection,S=r.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,r){var o=a.encode(r,0,0),i=f.getBlockForKey(r),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,O=m(i,d,o,l,p,null),C=n({},e.props,{tree:h.getBlockTree(r),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,O,s.createElement(g,C))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),A=a.encode(E,0,0),j=v(o,u),T=j.CustomComponent,P=null!=T?s.createElement(T,t({},this.props,{tree:h.getBlockTree(E),blockProps:j.customProps,offsetKey:A,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:p,direction:_,forceSelection:O,hasSelection:g(C,E),selection:C,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,A,l,j,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return FQ=b}var $Q=ny;function WQ(){return WQ=$Q||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WQ.apply(this,arguments)}var qQ,GQ,ZQ,YQ,XQ=hQ,JQ=NX,QQ=o,e1=vQ,t1=AQ,n1=kZ,r1=gZ,o1=TY,i1=PQ,a1=IQ,s1=UQ,c1=HW,u1=LX,l1=DZ,f1=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},p1=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||f1(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=t1.getScrollParent(n),i=a1(o);if(o===window){var a=i1(n);(r=a.y+a.height-s1().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{u1(n)||("production"!==process.env.NODE_ENV?c1(!1,"blockNode is not an HTMLElement"):c1(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&e1.setTop(o,e1.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=f1(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=JQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return QQ.createElement(XQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=l1(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=JQ.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=r1.getHTMLDirIfDifferent(n1.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return QQ.createElement(d,WQ({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=o1({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return QQ.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(QQ.Component),d1=p1;var h1=LG("draft_tree_data_support")?function(){if(VQ)return HQ;VQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=KQ(),r=NX,i=o,a=DZ,s=function(e){var o,s;function c(){return e.apply(this,arguments)||this}s=e,(o=c).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,o=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:o,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},O=(o.get(w.getType())||o.get("unstyled")).wrapper;b.push({block:i.createElement(n,t({key:x},_)),wrapperTemplate:O,key:x,offsetKey:r.encode(x,0,0)});var C=w.getNextSiblingKey();w=C?h.getBlockForKey(C):null}for(var S=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var A=[];do{A.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var j=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},A);S.push(j)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return HQ=s}():function(){if(YQ)return ZQ;YQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=d1,a=NX,s=o,c=TY,u=(GQ||(GQ=1,qQ=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),qQ),l=DZ,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var r,o;function c(){return e.apply(this,arguments)||this}o=e,(r=c).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,r=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),O=m.getBlocksAsArray(),C=[],S=null,k=null,E=0;E<O.length;E++){var A=O[E],j=A.getKey(),T=A.getType(),P=o(A),M=void 0,D=void 0,N=void 0;P&&(M=P.component,D=P.props,N=P.editable);var I=v||_.get(j),R=a.encode(j,0,0),L={contentState:m,block:A,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:y,selection:b,tree:h.getBlockTree(j)},B=r.get(T)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,H=A.getDepth(),V="";if(c&&(V=c(A)),"li"===z)V=u(V,f(T,H,k!==F||null===S||H>S,I));var U=M||i,K={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:j};void 0!==N&&(K=n({},K,{contentEditable:N,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,t({},L,{key:j})));C.push({block:$,wrapperTemplate:F,key:j,offsetKey:R}),S=F?A.getDepth():null,k=F}for(var W=[],q=0;q<C.length;){var G=C[q];if(G.wrapperTemplate){var Z=[];do{Z.push(C[q].block),q++}while(q<C.length&&C[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return ZQ=p}(),g1={isImage:function(e){return"image"===y1(e)[0]},isJpeg:function(e){var t=y1(e);return g1.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function y1(e){return e.split("/")}var v1=g1,m1=HW;var b1=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?m1(!1,"toArray: Array-like object expected"):m1(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?m1(!1,"toArray: Object needs a length property"):m1(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?m1(!1,"toArray: Object should have keys for indices"):m1(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?m1(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):m1(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function w1(e){return function(){return e}}var x1=function(){};x1.thatReturns=w1,x1.thatReturnsFalse=w1(!1),x1.thatReturnsTrue=w1(!0),x1.thatReturnsNull=w1(null),x1.thatReturnsThis=function(){return this},x1.thatReturnsArgument=function(e){return e};var _1=x1,O1=v1,C1=b1,S1=_1,k1=new RegExp("\r\n","g"),E1={"text/rtf":1,"text/html":1};function A1(e){if("file"==e.kind)return e.getAsFile()}var j1=function(){function e(e){this.data=e,this.types=e.types?C1(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return E1[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(k1,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!O1.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(A1).filter(S1.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),T1=j1,P1=HW,M1=/\.textClipping$/,D1={"text/plain":!0,"text/html":!0,"text/rtf":!0},N1=5e3;var I1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!D.FileReader||e.type&&!(e.type in D1))return void t("");if(""===e.type){var n="";return M1.test(e.name)&&(n=e.name.replace(M1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?P1(!1,'We should be calling "FileReader.readAsText" which returns a string'):P1(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,N1)),n==e.length&&t(r.join("\r"))}))}))};var R1=function(e){return"handled"===e||!0===e},L1=T1,B1=sG,F1=tY,z1=xX,H1=gX,V1=I1,U1=UX,K1=_X,$1=R1,W1=DZ;var q1={onDragEnd:function(e){e.exitCurrentMode(),G1(e)},onDrop:function(e,t){var n=new L1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=H1(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=W1(n),r=W1(r);var a=W1(z1(n));return U1(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&$1(e.props.handleDroppedFiles(o,i)))return;V1(i,(function(t){t&&e.update(Z1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&$1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=B1.moveText(e.getCurrentContent(),e.getSelection(),t);return F1.push(e,n,"insert-fragment")}(r,o)):e.update(Z1(r,o,n.getText()))),G1(e)}}}};function G1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:K1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Z1(e,t,n){var r=B1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return F1.push(e,r,"insert-fragment")}var Y1=q1;var X1=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{p(e),u=!1}}}}}("undefined"==typeof self?D:self);var J1=D.setImmediate,Q1=sG,e0=tY,t0=uJ,n0=R1,r0=X1,o0=DZ,i0=J1,a0="'",s0="/",c0=hX.isBrowser("Firefox");function u0(e,t,n,r,o){var i=Q1.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return e0.push(e,i,"insert-characters",o)}var l0=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&n0(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(u0(n,r,n.getCurrentInlineStyle(),t0(n.getCurrentContent(),n.getSelection()),!0));var s,c=u0(n,r,n.getCurrentInlineStyle(),t0(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=r0(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=c0&&(s==a0||s==s0)),u||(u=o0(c.getDirectionMap()).get(a)!==o0(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=e0.set(c,{forceSelection:!0}),void e.update(c);c=e0.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,i0((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},f0=tY,p0=UJ,d0=KJ;var h0=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&d0(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&p0(o,r.anchorNode)&&p0(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(f0.acceptSelection(i,s))}},g0=tY;var y0=function(e,t){e.setMode("composite"),e.update(g0.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},v0=uq;var m0=function(e){var t=e.getSelection();return t.isCollapsed()?null:v0(e.getCurrentContent(),t)},b0=m0;var w0=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(b0(e._latestEditorState))};var x0=sG,_0=tY,O0=AQ,C0=m0,S0=IQ,k0=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var E0=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(k0(i)){var a=i;n=S0(O0.getScrollParent(a))}var s=C0(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=x0.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return _0.push(e,t,"remove-range")}(r))}),0)}};var A0=function(e,t){e.setMode("drag"),t.preventDefault()};var j0=function(e){e._internalDrag=!0,e.setMode("drag")},T0=tY,P0=hX;var M0=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),P0.isBrowser("Chrome < 60.0.3081.0")?e.update(T0.forceSelection(n,o)):e.update(T0.acceptSelection(n,o))}},D0=HW,N0=55296,I0=56319,R0=56320,L0=57343,B0=/[\uD800-\uDFFF]/;function F0(e){return N0<=e&&e<=L0}function z0(e){return B0.test(e)}function H0(e,t){return 1+F0(e.charCodeAt(t))}function V0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!z0(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=H0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=H0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=H0(e,i);return e.substring(o,i)}var U0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=H0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:H0,hasSurrogateUnit:z0,isCodeUnitInSurrogateRange:F0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?D0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):D0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return N0<=n&&n<=I0&&R0<=r&&r<=L0},strlen:function(e){if(!z0(e))return e.length;for(var t=0,n=0;n<e.length;n+=H0(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return V0(e,t=t<n?t:n,r)},substr:V0},K0=U0,$0=_1;function W0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var q0="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];W0.apply(void 0,[t].concat(r))}}:$0,G0=q0,Z0=G0;var Y0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Z0(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},X0=sG,J0=LG("draft_tree_data_support");var Q0=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(J0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(J0)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return X0.removeRange(o,i,n)},e2=tY,t2=K0,n2=Y0,r2=Q0;var o2=function(e){var t=r2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return n2(e,i?t2.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return e2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},i2=sG,a2=NX,s2=tY,c2=aJ.notEmptyKey,u2=xX,l2=o2,f2=DZ,p2=hX.isEngine("Gecko"),d2="\n\n";var h2=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=f2(u2(r)),f=a2.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith(d2)&&(c=c.slice(0,-1)),c!==w){var x,_,O,C,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),A=c2(E)?m.getEntity(E):null,j="MUTABLE"===(null!=A?A.getMutability():null),T=j?"spellcheck-change":"apply-entity",P=i2.replaceText(m,k,c,b.getInlineStyleAt(y),j?b.getEntityAt(y):null);if(p2)x=n.anchorOffset,_=n.focusOffset,C=(O=y+Math.min(x,_))+Math.abs(x-_),x=O,_=C;else{var M=c.length-w.length;O=S.getStartOffset(),C=S.getEndOffset(),x=o?C+M:O,_=C+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(s2.push(u,D,T))}else{var N=t.nativeEvent.inputType;if(N){var I=function(e,t){return"deleteContentBackward"===e?l2(t):t}(N,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},g2=IX;var y2=function(e){return e.which===g2.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},v2=y2,m2=hX.isPlatform("Mac OS X"),b2={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return m2&&e.altKey},usesMacOSHeuristics:function(){return m2},hasCommandModifier:function(e){return m2?!!e.metaKey&&!e.altKey:b2.isCtrlKeyCommand(e)},isSoftNewlineEvent:v2},w2=b2,x2=sG,_2=tY,O2=uq,C2=DZ,S2=null,k2={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=C2(r),S2=O2(t,r);var s=x2.removeRange(t,r,"forward");return s===t?e:_2.push(e,s,"remove-range")},paste:function(e){if(!S2)return e;var t=x2.replaceWithFragment(e.getCurrentContent(),e.getSelection(),S2);return _2.push(e,t,"insert-fragment")}},E2=HW;var A2=hX.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?E2(!1,"Found an unexpected detached subtree when getting range client rects."):E2(!1)}:function(e){return Array.from(e.getClientRects())},j2=A2,T2=K0,P2=gX,M2=j2,D2=HW;function N2(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function I2(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var R2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?D2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):D2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=P2(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?D2(!1,"Missing document.body"):D2(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);N2(M2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?D2(!1,"Found unexpected detached subtree when traversing."):D2(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&T2.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!N2(M2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=I2(i=i.childNodes[c])}return e.setStart(r,o),e},L2=tY,B2=R2,F2=JX,z2=Y0,H2=Q0;var V2=function(e,t){var n=H2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return z2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=B2(r),F2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:L2.push(e,n,"remove-range")},U2="['‘’]",K2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),$2=new RegExp("^(?:"+K2+")*(?:"+U2+"|(?!"+K2+").)*(?:(?!"+K2+").)"),W2=new RegExp("(?:(?!"+K2+").)(?:"+U2+"|(?!"+K2+").)*(?:"+K2+")*$");function q2(e,t){var n=t?W2.exec(e):$2.exec(e);return n?n[0]:e}var G2={getBackward:function(e){return q2(e,!0)},getForward:function(e){return q2(e,!1)}},Z2=G2,Y2=tY,X2=Y0,J2=Q0;var Q2=G0;var e5=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Q2(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},t5=G2,n5=tY,r5=e5,o5=Q0;var i5=sG,a5=tY;var s5=tY;var c5=tY;var u5=tY,l5=K0,f5=e5,p5=Q0;var d5=sG,h5=tY,g5=uq;var y5=tY;var v5=function(e,t,n){var r=y5.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(y5.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(y5.set(r,{nativelyRenderedContent:o}))}},m5=sG,b5=tY,w5=IX,x5=k2,_5=hX,O5=R1,C5=V2,S5=function(e){var t=J2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return X2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Z2.getBackward(o);return X2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Y2.push(e,t,"remove-range")},k5=function(e){var t=o5(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=t5.getForward(o);return r5(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:n5.push(e,t,"remove-range")},E5=function(e){var t=i5.splitBlock(e.getCurrentContent(),e.getSelection());return a5.push(e,t,"split-block")},A5=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return s5.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},j5=function(e){var t=e.getSelection(),n=t.getStartKey();return c5.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},T5=o2,P5=function(e){var t=p5(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return f5(e,i?l5.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return u5.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},M5=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=g5(a,r),u=d5.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=d5.replaceWithFragment(u,p,c),h=h5.push(e,d,"insert-fragment");return h5.acceptSelection(h,o)},D5=v5,N5=w2.isOptionKeyCommand,I5=_5.isBrowser("Chrome");var R5=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case w5.RETURN:if(t.preventDefault(),e.props.handleReturn&&O5(e.props.handleReturn(t,r)))return;break;case w5.ESC:if(t.preventDefault(),o("onEscape"))return;break;case w5.TAB:if(o("onTab"))return;break;case w5.UP:if(o("onUpArrow"))return;break;case w5.RIGHT:if(o("onRightArrow"))return;break;case w5.DOWN:if(o("onDownArrow"))return;break;case w5.LEFT:if(o("onLeftArrow"))return;break;case w5.SPACE:I5&&N5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!O5(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return b5.redo(t);case"delete":return P5(t);case"delete-word":return k5(t);case"backspace":return T5(t);case"backspace-word":return S5(t);case"backspace-to-start-of-line":return C5(t,n);case"split-block":return E5(t);case"transpose-characters":return M5(t);case"move-selection-to-start-of-block":return j5(t);case"move-selection-to-end-of-block":return A5(t);case"secondary-cut":return x5.cut(t);case"secondary-paste":return x5.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else D5(t,r,e.update);else if(n===w5.SPACE&&I5&&N5(t)){var s=m5.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(b5.push(r,s,"insert-characters"))}};var L5=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),B5=L5,F5=HW,z5=hX.isBrowser("IE <= 9");var H5=function(e){var t,n=null;return!z5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?F5(!1,"Missing doc.documentElement"):F5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},V5=yX;var U5=function(e){return!(!e||!e.ownerDocument)&&(V5(e)&&"A"===e.nodeName)},K5=yX;var $5,W5=function(e){return!(!e||!e.ownerDocument)&&(K5(e)&&"IMG"===e.nodeName)};function q5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G5(e,t,n[t])}))}return e}function G5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z5=Q$,Y5=gW,X5=TW,J5=DY,Q5=NG,e3=B5,t3=TY,n3=XW,r3=H5,o3=LG,i3=H$,a3=i3.List,s3=i3.Map,c3=i3.OrderedSet,u3=U5,l3=BJ,f3=LX,p3=W5,d3=o3("draft_tree_data_support"),h3=" ",g3=new RegExp("\r","g"),y3=new RegExp("\n","g"),v3=new RegExp("^\n","g"),m3=new RegExp(" ","g"),b3=new RegExp(" ?","g"),w3=new RegExp("​?","g"),x3=["bold","bolder","500","600","700","800","900"],_3=["light","lighter","normal","100","200","300","400"],O3=["className","href","rel","target","title"],C3=["alt","className","height","src","width"],S3=(G5($5={},t3("public/DraftStyleDefault/depth0"),0),G5($5,t3("public/DraftStyleDefault/depth1"),1),G5($5,t3("public/DraftStyleDefault/depth2"),2),G5($5,t3("public/DraftStyleDefault/depth3"),3),G5($5,t3("public/DraftStyleDefault/depth4"),4),$5),k3=s3({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),E3=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),s3(t)},A3=function(e){if(f3(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},j3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(S3).some((function(n){e.classList.contains(n)&&(t=S3[n])})),t},T3=function(e){if(!u3(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new e3(t.href);return!0}catch(e){return!1}},P3=function(e){if(!p3(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},M3=function(e,t){if(!f3(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){x3.indexOf(r)>=0?e.add("BOLD"):_3.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},D3=function(e){return"ul"===e||"ol"===e},N3=function(){function e(e,t){G5(this,"characterList",a3()),G5(this,"currentBlockType","unstyled"),G5(this,"currentDepth",0),G5(this,"currentEntity",null),G5(this,"currentText",""),G5(this,"wrapper",null),G5(this,"blockConfigs",[]),G5(this,"contentBlocks",[]),G5(this,"entityMap",Q5),G5(this,"blockTypeMap",void 0),G5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=a3(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Q5,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],c3())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(d3?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q5({key:e.key||n3(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:a3(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=a3(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||D3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;D3(i)&&(this.wrapper=i,D3(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(P3(o))this._addImgNode(o,t);else if(T3(o))this._addAnchorNode(o,n,t);else{var u=t;k3.has(i)&&(u=u.add(k3.get(i))),u=M3(o,u);var l=A3(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!d3&&f3(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=j3(d,this.currentDepth)}var h=n3(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Z5.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=a3()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(v3,"")).replace(y3,h3)),this._appendText(n,t)},t._addBreakNode=function(e,t){l3(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(p3(e)){var n=e,r={};C3.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),o3("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(u3(e)){var r=e,o={};O3.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new e3(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=a3(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new X5(q5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return a3(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new Y5(q5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=a3(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),I3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r3)(e=e.trim().replace(g3,"").replace(m3,h3).replace(b3,"").replace(w3,""));if(!n)return null;var r=E3(t);return new N3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function R3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L3=gW,B3=TW,F3=I3,z3=XW,H3=H5,V3=LG,U3=H$,K3=FG,$3=U3.List,W3=U3.Repeat,q3=V3("draft_tree_data_support"),G3=q3?B3:L3,Z3={processHTML:function(e,t){return F3(e,H3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=K3(r);var i=z3(),a={key:i,type:n,text:r,characterList:$3(W3(t,r.length))};if(q3&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new G3(a)),e}),[])}};var Y3=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},X3=sG,J3=tY,Q3=Y3,e4=DZ,t4={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return t4.toggleInlineStyle(e,"BOLD");case"italic":return t4.toggleInlineStyle(e,"ITALIC");case"underline":return t4.toggleInlineStyle(e,"UNDERLINE");case"code":return t4.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return t4.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return t4.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=X3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=J3.push(e,t,"insert-characters");return J3.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return J3.push(e,a,"remove-range")}var s=t4.tryToRemoveBlockStyle(e);return s?J3.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=X3.removeRange(n,a,"forward");return s!==n?J3.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=Q3(i,r,e.shiftKey?-1:1,n);return J3.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=e4(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return J3.push(e,X3.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?t4.toggleBlockType(e,"code-block"):t4.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return J3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?X3.removeInlineStyle(i,n,t):X3.applyInlineStyle(i,n,t),J3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=X3.applyEntity(e.getCurrentContent(),t,n);return J3.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return X3.setBlockType(o,t,"unstyled")}return null}},n4=t4,r4=/\r\n?|\n/g;var o4=U$,i4=Q$,a4=T1,s4=sG,c4=Z3,u4=tY,l4=n4,f4=uJ,p4=I1,d4=R1,h4=function(e){return e.split(r4)};function g4(e,t,n){var r=s4.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return u4.push(e,r.set("entityMap",n),"insert-fragment")}var y4=function(e,t){t.preventDefault();var n=new a4(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&d4(e.props.handlePastedFiles(r)))return;return void p4(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=h4(t),i=i4.create({style:n.getCurrentInlineStyle(),entity:f4(n.getCurrentContent(),n.getSelection())}),a=l4.getCurrentBlockType(n),s=c4.processText(r,i,a),c=o4.createFromArray(s),u=s4.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(u4.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!d4(e.props.handlePastedText(a,s,c))){if(a&&(i=h4(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(g4(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(g4(e._latestEditorState,f));if(s){var p=c4.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=o4.createFromArray(d);return void e.update(g4(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=i4.create({style:c.getCurrentInlineStyle(),entity:f4(c.getCurrentContent(),c.getSelection())}),v=l4.getCurrentBlockType(c),m=c4.processText(i,y,v),b=o4.createFromArray(m);e.update(g4(e._latestEditorState,b))}}},v4=hX,m4=l0,b4=h0,w4=y0,x4=w0,_4=E0,O4=A0,C4=j0,S4=M0,k4=h2,E4=R5,A4=y4,j4=iJ,T4=v4.isBrowser("Chrome"),P4=v4.isBrowser("Firefox"),M4=T4||P4?j4:function(e){},D4={onBeforeInput:m4,onBlur:b4,onCompositionStart:w4,onCopy:x4,onCut:_4,onDragOver:O4,onDragStart:C4,onFocus:S4,onInput:k4,onKeyDown:E4,onPaste:A4,onSelect:j4,onMouseUp:M4,onKeyUp:M4},N4=j.unstable_flushControlled;var I4=o,R4=TY,L4=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=R4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return I4.createElement("div",{className:t},I4.createElement("div",{className:R4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(I4.Component),B4=L4,F4=w2,z4=IX,H4=hX,V4=H4.isPlatform("Mac OS X"),U4=V4&&H4.isBrowser("Firefox < 29"),K4=F4.hasCommandModifier,$4=F4.isCtrlKeyCommand;function W4(e){return V4&&e.altKey||$4(e)}var q4=function(e){switch(e.keyCode){case 66:return K4(e)?"bold":null;case 68:return $4(e)?"delete":null;case 72:return $4(e)?"backspace":null;case 73:return K4(e)?"italic":null;case 74:return K4(e)?"code":null;case 75:return V4&&$4(e)?"secondary-cut":null;case 77:case 79:return $4(e)?"split-block":null;case 84:return V4&&$4(e)?"transpose-characters":null;case 85:return K4(e)?"underline":null;case 87:return V4&&$4(e)?"backspace-word":null;case 89:return $4(e)?V4?"secondary-paste":"redo":null;case 90:return function(e){return K4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case z4.RETURN:return"split-block";case z4.DELETE:return function(e){return!V4&&e.shiftKey?null:W4(e)?"delete-word":"delete"}(e);case z4.BACKSPACE:return function(e){return K4(e)&&V4?"backspace-to-start-of-line":W4(e)?"backspace-word":"backspace"}(e);case z4.LEFT:return U4&&K4(e)?"move-selection-to-start-of-block":null;case z4.RIGHT:return U4&&K4(e)?"move-selection-to-end-of-block":null;default:return null}},G4=ny;function Z4(){return Z4=G4||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z4.apply(this,arguments)}function Y4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){J4(e,t,n[t])}))}return e}function X4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var e9=DY,t9=NY,n9=EJ,r9=h1,o9=Y1,i9=D4,a9=N4,s9=B4,c9=tY,u9=o,l9=vQ,f9=AQ,p9=TY,d9=XW,h9=q4,g9=IQ,y9=LG,v9=HW,m9=LX,b9=DZ,w9=hX.isBrowser("IE"),x9=!w9,_9={edit:i9,composite:n9,drag:o9,cut:null,render:null},O9=!1,C9=function(e){function t(){return e.apply(this,arguments)||this}Q4(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(u9.Component),S9=function(e){function t(t){var n;return J4(X4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),J4(X4(n),"_clipboard",void 0),J4(X4(n),"_handler",void 0),J4(X4(n),"_dragCount",void 0),J4(X4(n),"_internalDrag",void 0),J4(X4(n),"_editorKey",void 0),J4(X4(n),"_placeholderAccessibilityID",void 0),J4(X4(n),"_latestEditorState",void 0),J4(X4(n),"_latestCommittedEditorState",void 0),J4(X4(n),"_pendingStateFromBeforeInput",void 0),J4(X4(n),"_onBeforeInput",void 0),J4(X4(n),"_onBlur",void 0),J4(X4(n),"_onCharacterData",void 0),J4(X4(n),"_onCompositionEnd",void 0),J4(X4(n),"_onCompositionStart",void 0),J4(X4(n),"_onCopy",void 0),J4(X4(n),"_onCut",void 0),J4(X4(n),"_onDragEnd",void 0),J4(X4(n),"_onDragOver",void 0),J4(X4(n),"_onDragStart",void 0),J4(X4(n),"_onDrop",void 0),J4(X4(n),"_onInput",void 0),J4(X4(n),"_onFocus",void 0),J4(X4(n),"_onKeyDown",void 0),J4(X4(n),"_onKeyPress",void 0),J4(X4(n),"_onKeyUp",void 0),J4(X4(n),"_onMouseDown",void 0),J4(X4(n),"_onMouseUp",void 0),J4(X4(n),"_onPaste",void 0),J4(X4(n),"_onSelect",void 0),J4(X4(n),"editor",void 0),J4(X4(n),"editorContainer",void 0),J4(X4(n),"focus",void 0),J4(X4(n),"blur",void 0),J4(X4(n),"setMode",void 0),J4(X4(n),"exitCurrentMode",void 0),J4(X4(n),"restoreEditorDOM",void 0),J4(X4(n),"setClipboard",void 0),J4(X4(n),"getClipboard",void 0),J4(X4(n),"getEditorKey",void 0),J4(X4(n),"update",void 0),J4(X4(n),"onDragEnter",void 0),J4(X4(n),"onDragLeave",void 0),J4(X4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),J4(X4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=f9.getScrollParent(o),a=e||g9(i),s=a.x,c=a.y;m9(o)||("production"!==process.env.NODE_ENV?v9(!1,"editorNode is not an HTMLElement"):v9(!1)),o.focus(),i===window?window.scrollTo(s,c):l9.setTop(i,c),r||n.update(c9.forceSelection(t,t.getSelection()))}})),J4(X4(n),"blur",(function(){var e=n.editor;e&&(m9(e)||("production"!==process.env.NODE_ENV?v9(!1,"editorNode is not an HTMLElement"):v9(!1)),e.blur())})),J4(X4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Y4({},_9.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=Y4({},_9,{edit:a});n._handler=s[e]})),J4(X4(n),"exitCurrentMode",(function(){n.setMode("edit")})),J4(X4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),J4(X4(n),"setClipboard",(function(e){n._clipboard=e})),J4(X4(n),"getClipboard",(function(){return n._clipboard})),J4(X4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),J4(X4(n),"onDragEnter",(function(){n._dragCount++})),J4(X4(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||d9(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Q4(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(a9?a9((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:b9(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return u9.createElement(s9,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=p9({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Y4({},t9,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return u9.createElement("div",{className:f},this._renderPlaceholder(),u9.createElement("div",{className:p9("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},u9.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:p9({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:p,spellCheck:x9&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},u9.createElement(C9,{editor:this,editorState:a}),u9.createElement(r9,Z4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!O9&&y9("draft_ods_enabled")&&(O9=!0),this.setMode("edit"),w9&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):D.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(u9.Component);J4(S9,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:e9,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:h9,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var k9=S9,E9={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},A9=E9,j9=K0.strlen;var T9=K0,P9=eW,M9=function(e,t){return e===t},D9=function(e){return!!e},N9=[];var I9=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return P9(o,M9,D9,(function(t,o){var i=e.getText();r.push({offset:T9.strlen(i.slice(0,t)),length:T9.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(N9,n.toJS())};function R9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L9=gW,B9=TW,F9=E9,z9=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:j9(i.slice(0,r)),length:j9(i.slice(r,o)),key:Number(t[A9.stringify(a)])})})),n},H9=I9,V9=HW,U9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:H9(e),entityRanges:z9(e,t),data:e.getData().toObject()}},K9=function(e,t,n,r){if(e instanceof L9)n.push(U9(e,t));else{e instanceof B9||("production"!==process.env.NODE_ENV?V9(!1,"block is not a BlockNode"):V9(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R9(e,t,n[t])}))}return e}({},U9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},$9=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=F9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),K9(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(F9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function W9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){q9(e,t,n[t])}))}return e}function q9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G9=XW,Z9=HW,Y9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},X9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Z9(!1,"Invalid raw state"):Z9(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Z9(!1,"Invalid tree raw block"):Z9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=W9({},e);Y9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?W9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,W9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Y9(e),o=e.depth||0,i=W9({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:G9(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),W9({},e,{blocks:t})}},J9=G0,Q9={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&J9(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&J9(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&J9(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&J9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&J9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&J9(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&J9(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&J9(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&J9(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},e6=Q9,t6=Q$,n6=H$.List;var r6=function(e,t){var n=e.map((function(e,n){var r=t[n];return t6.create({style:e,entity:r})}));return n6(n)},o6=K0.substr;var i6=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=o6(e,0,t.offset).length,o=r+o6(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},a6=K0,s6=H$.OrderedSet,c6=a6.substr,u6=s6();var l6=function(e,t){var n=Array(e.length).fill(u6);return t&&t.forEach((function(t){for(var r=c6(e,0,t.offset).length,o=r+c6(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function f6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p6(e,t,n[t])}))}return e}function p6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d6=gW,h6=TW,g6=sZ,y6=NG,v6=X9,m6=e6,b6=RG,w6=r6,x6=i6,_6=l6,O6=XW,C6=H$,S6=HW,k6=LG("draft_tree_data_support"),E6=C6.List,A6=C6.Map,j6=C6.OrderedMap,T6=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||O6(),data:A6(o),characterList:P6(e,t)}},P6=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return w6(_6(n,o||[]),x6(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return f6({},e,{key:t[e.key]})}))))},M6=function(e){return f6({},e,{key:e.key||O6()})},D6=function(e,t,n){var r=t.map((function(e){return f6({},e,{parentRef:n})}));return e.concat(r.reverse())},N6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=k6&&!n?v6.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!k6)return function(e,t){return j6(e.map((function(e){var n=new d6(T6(e,t));return[n.getKey(),n]})))}(n?v6.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(M6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?S6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S6(!1));var i=r.children.map(M6),a=new h6(f6({},T6(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:E6(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=D6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?S6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S6(!1));break}var d=c.children.map(M6),h=new h6(f6({},T6(c,t),{parent:u.getKey(),children:E6(d.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=D6(s,d,h)}return n}),j6())}(r,t);return"production"!==process.env.NODE_ENV&&(m6.isValidTree(o)||("production"!==process.env.NODE_ENV?S6(!1,"Should be a valid tree"):S6(!1))),o},I6=j2;var R6=function(e){var t=I6(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},L6=R6;var B6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=L6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},F6={Editor:k9,EditorBlock:d1,EditorState:tY,CompositeDecorator:AY,Entity:NG,EntityInstance:CG,BlockMapBuilder:U$,CharacterMetadata:Q$,ContentBlock:gW,ContentState:sZ,RawDraftContentState:{},SelectionState:RG,AtomicBlockUtils:SY,KeyBindingUtil:w2,Modifier:sG,RichUtils:n4,DefaultDraftBlockRenderMap:DY,DefaultDraftInlineStyle:NY,convertFromHTML:I3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?S6(!1,"invalid RawDraftContentState"):S6(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=y6.__create(o,i,a||{})})),n}(e),n=N6(e,t),r=n.isEmpty()?new b6:b6.createEmpty(n.first().getKey());return new g6({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:$9,genKey:XW,getDefaultKeyBinding:q4,getVisibleSelectionRect:B6};const z6="FOUND_FIELD",H6="NOT_FOUND",V6="IMMUTABLE",U6=Oe.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),K6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},$6=new F6.CompositeDecorator([{strategy:(e,t,n)=>K6(e,t,n,z6),component:({children:t})=>e(U6,{children:t})},{strategy:(e,t,n)=>K6(e,t,n,H6),component:({children:t})=>e(U6,Object.assign({error:!0},{children:t}))}]),W6=(e,t,n)=>{const r=Rt.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},q6=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Rt.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=W6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?z6:H6,mutability:V6,data:{id:i}}}o.text+=a}return F6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return F6.EditorState.createWithContent(r,$6)},G6=(e,t=!0)=>{const n=e.getCurrentContent(),r=F6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Rt.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},Z6=e=>{const t=G6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},Y6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new F6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return F6.EditorState.forceSelection(e,o)},X6=f(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:c,mergeFields:u=[],placeholder:l="Text here...",width:f,height:p,maxHeight:d,borderless:h=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:x=!1,color:_,overflow:O,clampLines:C,label:S,disabled:k,borderRadius:E,backgroundColor:A,fontSize:j,textOnly:T,margin:P,marginLeft:D,marginRight:N,marginTop:I,marginBottom:R}=n,L=M(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[B,F]=v((()=>q6(o,u,x))),{focused:z,handleFocus:H,handleBlur:V}=bo(s,c),[U,K]=v(!1),$=g(null),W=g(),q=null!=d?d:p,G=q?q-(h?0:S?29:11):void 0,Z=e=>{F(e);const t=(e=>Z6(e).some((e=>e.type===H6)))(e);K(t);const n=G6(e),r=e.getLastChangeType();i&&i(n,t,r)},Y=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=W6(e,t,r),u=c?z6:H6,l=i.createEntity(u,V6,{id:o}).getLastCreatedEntityKey(),f=F6.Modifier.insertText(i,a,s,void 0,l),p=F6.EditorState.push(n,f,"insert-characters");return F6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,u,B,x);Z(t)},X=()=>{(null==$?void 0:$.current)&&$.current.focus();const e=Y6(B);F(e)};w(r,(()=>({insertField:Y,focusAtEnd:X})));y((()=>{G6(B)!==o&&(e=>{const t=B.getSelection(),n=q6(e,u,x),r=Y6(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),y((()=>{W.current=u}),[]),y((()=>{const{current:e}=W,t=Rt.isEqual(e,u),n=Z6(B);if(!t&&n.length>0){W.current=u;const e=q6(o,u,x);Z(e)}}),[u]);return e(J6,Object.assign({onClick:e=>{b||e.stopPropagation();B.getSelection().getHasFocus()||X()},width:f,height:p,editorMaxHeight:G,borderless:h||T,noPadding:m||T,readOnly:b,color:_,overflow:O,clampLines:C,filled:wo(o),invalid:U,textOnly:T,borderRadius:E,backgroundColor:A,fontSize:j,margin:P,marginLeft:D,marginRight:N,marginTop:I,marginBottom:R,focused:z,disabled:k,hasLabel:!!S,hideEditor:!wo(o)&&!!S&&!z},{children:t(_o,Object.assign({readOnly:b},{children:[S&&e(Oo,Object.assign({filled:wo(o),focused:z,disabled:k},{children:S})),e(F6.Editor,Object.assign({ref:$,editorState:B,onChange:Z,placeholder:l,readOnly:b,handleReturn:e=>{const t=F6.RichUtils.insertSoftNewline(B);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=F6.convertFromRaw({blocks:[o],entityMap:{}}),a=F6.EditorState.createWithContent(i,$6).getCurrentContent().getBlockMap(),s=F6.Modifier.replaceWithFragment(n,r,a);return F6.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:H,onBlur:V},L))]}))}))})),J6=Oe(xo)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),Q6=Oe.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),Dn,Nn);Q6.Item=Oe.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),Dn,Nn);const e7=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=n,d=M(n,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return t(u$,Object.assign({htmlFor:r,labelRight:h,disabled:s},g,{children:[o&&e(f$,{children:o}),e(l$,Object.assign({id:r,type:"radio",checked:a,disabled:s},d)),e(Ln,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!s})]}))},t7=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:c,margin:u,marginTop:l,marginBottom:f,marginRight:p,marginLeft:d}=n,h=M(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[g,m]=v("toggle-off"),[b,w]=v(a||!1),x="right"===i,_={margin:u,marginTop:l,marginBottom:f,marginRight:p,marginLeft:d};return y((()=>{m(b?"toggle-on":"toggle-off")}),[b]),y((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(u$,Object.assign({htmlFor:r,labelRight:x,disabled:s},_,{children:[o&&e(f$,{children:o}),e(l$,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;w(e),c(e)}},h)),e(Ln,{name:g,marginLeft:o&&!x?8:0,marginRight:o&&x?8:0,pointer:!s,size:40})]}))},n7=e=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,s=M(e,["children","iconLeft","iconRight","disabled","pill"]);return t(r7,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&So(r,{marginRight:4,size:"small"}),n,o&&So(o,{marginLeft:4,size:"small"})]}))},r7=Oe.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),Nn),o7=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,c=M(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(i7,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},c,{children:n}))};o7.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,c=M(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(a7,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},c,{children:n}))},o7.Field=({children:t,inline:n,align:r,disabled:o})=>e(s7,Object.assign({inline:n,align:r,disabled:o},{children:t})),o7.Input=ko,o7.Dropdown=Fo,o7.Radio=e7,o7.Toggle=t7,o7.Checkbox=p$,o7.Label=n7;const i7=Oe(Q6)({boxSizing:"border-box"}),a7=Oe(Q6)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),s7=Oe.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),c7=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=v(i),p=Mt(r,n,["#prev","#next","#prev *","#next *"]);y((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return y((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?t(u7,Object.assign({opacity:u,prevNext:o.length>1},{children:[e(l7,Object.assign({onClick:r},{children:e(Ln,{name:"close",size:25,color:"white"})})),o.length>1&&e(f7,Object.assign({id:"prev",onClick:d},{children:e(Ln,{name:"chevron-left",size:35,color:"white"})})),e(p7,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e(f7,Object.assign({next:!0,id:"next",onClick:h},{children:e(Ln,{name:"chevron-right",size:35,color:"white"})}))]})):null},u7=Oe.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),l7=Oe.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),f7=Oe.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),p7=Oe.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),d7=Oe.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),h7=n=>{var{data:r,legend:o,keys:i}=n,a=M(n,["data","legend","keys"]);const[s,c]=v(i),{scale2:u}=E();return t(fU,Object.assign({},a,{children:[e(lU,{}),e(Wx,Object.assign({width:"100%",height:"100%"},{children:t(qB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:r},{children:[e(tL,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e($L,{stroke:u,dataKey:"name",tickMargin:4}),e(WL,{stroke:u,tickMargin:4}),dU(),o&&e(Bg,{content:e(hU,{toggleData:i.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),s.map((({key:t,color:n,hidden:r},o)=>e(vL,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},g7=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:s,paddingRight:c,border:u,borderTop:l,borderBottom:f,borderLeft:p,borderRight:d,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e(y7,Object.assign({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:s,paddingRight:c,border:u,borderTop:l,borderBottom:f,borderLeft:p,borderRight:d,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?po(w).map((e=>e?h(e,{vertical:t,backgroundColor:b}):null)):null})),y7=Oe.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),v7=Oe.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),m7=Oe.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),b7=Oe.div({marginLeft:"auto",marginRight:8});g7.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e(v7,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),g7.Group=({label:n,defaultOpen:r,vertical:i,selected:a,disabled:s,contentPosition:c,onClick:u,id:l,children:f,indent:p=1,backgroundColor:d})=>{const[g,y]=v(r||a),m=e=>po(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!g&&y(!0),Array.isArray(t.props.children)&&m(t.props.children),h(e,{vertical:i,indent:p+1,backgroundColor:d})}return null})),b=m(f),w=()=>y((e=>!e));return t(m7,Object.assign({backgroundColor:d},{children:[t(v7,Object.assign({vertical:i,selected:a||!1,disabled:s,contentPosition:c,onClick:e=>{u?(u(e),g||w()):w()},id:l,role:"menuitem",indent:p},{children:[n,e(b7,Object.assign({onClick:e=>{e.stopPropagation(),w()}},{children:e(Ln,{name:g?"chevron-up":"chevron-down",pointer:!0})}))]})),g&&b]}))};const w7=({type:n,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=E(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(n||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return t(O7,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e(Ln,{name:h,style:{marginRight:10},color:g}),e(C7,{children:r||p}),o&&e(Ln,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},x7=Oe.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),_7=Oe.div((({theme:e})=>({fontWeight:e.font.weight.default})));w7.Header=x7,w7.Body=_7;const O7=Oe.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),Nn),C7=Oe.div({width:"100%"}),S7=({text:n,color:r,style:o})=>t(A7,{children:[e(E7,{}),e(k7,Object.assign({color:r,style:o},{children:n})),e(E7,{})]}),k7=Oe.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),E7=Oe.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),A7=Oe.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),j7=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:c,preventOverlayClose:u,overlayColor:l,backgroundColor:f,small:p,noOverlay:d,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:O,paddingRight:C,paddingLeft:S})=>{const k=Mt(u?()=>null:s,o),E={padding:x,paddingTop:_,paddingBottom:O,paddingRight:C,paddingLeft:S},A=po(n).map((e=>e?h(e,{inline:p}):null)),T=e(M7,Object.assign({color:l,noOverlay:d,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:t(T7,Object.assign({ref:k,width:i,height:a,backgroundColor:f,small:p,noOverlay:d,centerX:g,centerY:y},E,{children:[A,c&&e(P7,Object.assign({inline:p},{children:e(Ln,{name:"close",onClick:s,pointer:!0})}))]}))})),P=document.querySelector(r||"#root");return o&&P?j.createPortal(T,P):null};j7.Header=Oe.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),j7.Text=Oe.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),j7.Body=Oe.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Nn),j7.Footer=Oe.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),Nn);const T7=Oe.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),Dn),P7=Oe.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),M7=Oe.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),D7=r=>{var{children:o,options:i,items:a,listLabel:s,listText:c,itemsTitle:l,maxItems:f,placeholder:p,width:d,filter:h,restrictInput:m,disabled:b,hideItemsInfo:w,optionsParent:x,compact:_,backgroundColor:O,borderless:C,addItem:S,removeItem:k,onTextChange:A,autoFocus:T}=r,P=M(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[D,N]=v(T||!1),[I,R]=v(!1),[L,B]=v(""),{color:F,font:z,input:H}=E(),V=Mt((()=>N(!1)),D,x?[x,`${x} *`]:void 0),U=g(null),K=_&&!!s,$=e=>{e&&S(e)},W=e=>{B(e),A&&A(e)};y((()=>{const{current:e}=U;e&&!D&&e.blur()}),[D]);Pt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];k(t)}}),D&&!L,[a]);const q=i.filter((e=>!a.find((t=>t.id===e.id)))),G=u((()=>`multi-select-${to()}`),[]),Z=u((()=>`multi-select-list-${to()}`),[]),Y=f?a.length>=f:void 0,X=b||!D||Y,J=()=>{const n=t(L7,Object.assign({id:Z,expanded:D,padTop:D&&a.length>0,labeled:!!s},{children:[c&&e(B7,Object.assign({expanded:D,labeled:!!s},{children:c})),o?o(D,!!b):a.map((t=>e(n7,Object.assign({pill:!0,iconRight:D&&!b?e(Ln,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:b},{children:t.label}),t.id))),e(Fo,Object.assign({},P,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:h,backgroundColor:"transparent",restrictInput:m,options:q,fontSize:z.size.md,placeholder:b||a.length>0?" ":p||"Search...",placeholderColor:H.color.placeholder,inputRef:U,onChange:$,onTextChange:W,onError:e=>R(e),disabled:X,optionsParent:x?`#${Z}`:`#${G}`,autoFocus:T}))]}));if(x){const e=document.querySelector(x);return e?j.createPortal(n,e):n}return n};return t(N7,Object.assign({width:d,ref:V,labeled:!!s,disabled:b,collapse:K,onClick:e=>{e.stopPropagation();const{current:t}=U;D||s||N(!0),null==t||t.focus()}},{children:[t(I7,Object.assign({collapse:K,id:G,expanded:D&&a.length>0,error:I,labeled:!!s,backgroundColor:O,borderless:C},{children:[s?e(R7,Object.assign({collapse:K},{children:s})):J(),t(F7,{children:[f&&!w&&e(H7,{children:t(n,b&&l?{children:[a.length," ",l]}:{children:[e(z7,Object.assign({error:a.length>=f},{children:a.length})),"/",f," ",l]})}),a.length>0&&e(Ln,{name:D?"chevron-up":"chevron-down",color:F.brand,pointer:!0,onClick:e=>{e.stopPropagation(),N(!D)}})]})]})),s&&D&&J()]}))},N7=Oe.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),I7=Oe.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),R7=Oe.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),L7=Oe.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),B7=Oe.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),F7=Oe.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),z7=Oe.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),H7=Oe.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),V7=e=>e?+e:0,U7=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:c}=n,u=M(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=v(V7(o)||1),[p,d]=v(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,V7(a)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);d(t),f(e),r(e)}},m=0!==p,b=p!==g.length-1;return t(K7,Object.assign({width:c},u,{children:[e(W7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e(Ln,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e(W7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e(Ln,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>t(s,{children:[0===r&&m?e(G7,{children:"... "}):"",e(q7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&b?e(G7,{children:" ..."}):""]},`pageIndex-${n}`))),e(W7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e(Ln,{name:"chevron-right",title:"next",inheritColor:!0})})),e(W7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e(Ln,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},K7=Oe.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Nn),$7=Oe.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),W7=Oe($7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),q7=Oe($7)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),G7=Oe.span((({theme:e})=>({color:e.scale6}))),Z7=n=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=n,s=M(n,["size","data","innerRadius","showWhenEmpty"]);const c=(null==o?void 0:o.length)>0,u=c?o:a?[{name:"1",value:1,color:"#999"}]:void 0,l=r/2-1;return e(fU,Object.assign({width:r,height:r},s,{children:t(ZB,Object.assign({width:r,height:r},{children:[e(eN,Object.assign({dataKey:"value",data:u,innerRadius:i,outerRadius:l},{children:null==u?void 0:u.map((t=>e(qx,{fill:t.color||"#999"},t.name)))})),c&&dU()]}))}))},Y7=({percent:n,size:r=24,thickness:o=2,color:i,margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l})=>{const f={margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l},p=(r-o)/2,d=p*Math.PI*2,h=d-d*n/100,g=r/2;return t(X7,Object.assign({size:r},f,{children:[e(J7,{cx:g,cy:g,r:p,thickness:o}),e(Q7,{color:i,cx:g,cy:g,r:p,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:d,complete:h})]}))},X7=Oe.svg((({size:e})=>({display:"block",width:e,height:e})),Nn),J7=Oe.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Q7=Oe(J7)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),e8=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e(Y7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e(t8,Object.assign({width:o,height:i||s},d,{children:e(n8,{color:n,width:h})}))},t8=Oe.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),Nn),n8=Oe.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var r8={};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function O(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}k(e,"inactive")}function k(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function A(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},N=null;function I(){if(null===N){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return N}function R(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):S(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)S(t.a);else{t.f+=n.length,a&&(t.j=a);var c,u=[];for(c=0;c<n.length;c++){var f=n[c],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;d=z?new P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,H(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),H(this)},V.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new C(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,O("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return r8},set exports(e){r8=e}});var o8=r8;const i8=({families:t,fontFamily:n})=>(y((()=>{var e;e=t,o8.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(A,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),a8=()=>{const{scale1:t}=E();return e(A,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},s8=()=>{const{font:t,toast:n}=E();return e(A,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},c8=Oe.div(Mn),u8=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:m})=>{const b=g(),[w,x]=v([]),[_,O]=v([]),C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:m},S=e=>{const t=Object.assign({},e);return delete t.selected,t};y((()=>{if(!Rt.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(S),t=n.filter((e=>!e.selected)).map(S);O(e),x(t)}}),[n,b]),y((()=>{r(_)}),[_]);const k=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?O:x;(n?x:O)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},E=e=>{const t="select"===e?x:O,n="select"===e?w:_;("select"===e?O:x)((e=>[...e,...n])),t([])},A=n=>t("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(v8,{children:n.header}),e(m8,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]})),j=!(s&&c);return t(l8,Object.assign({width:l,readOnly:u},C,{children:[i&&e(f8,{children:i}),t(p8,{children:[!u&&t(d8,{children:[j&&e(h8,{children:w.length>0&&!s&&e(Zo,Object.assign({small:!0,outline:!0,onClick:()=>E("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e(g8,{children:w.map((n=>t(y8,Object.assign({onClick:()=>k(n,"select"),color:n.color},{children:[A(n),e(Ln,{name:"chevron-right"})]}),n.id)))})]}),t(d8,{children:[j&&!u&&e(h8,{children:_.length>0&&!c&&!u&&e(Zo,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>E("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===_.length?e("div",{children:a}):e(g8,{children:_.map((n=>t(y8,Object.assign({onClick:()=>k(n,"remove"),color:n.color},{children:[A(n),e(Ln,{name:"chevron-left"})]}),n.id)))})]})]})]}))},l8=Oe.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Nn),f8=Oe.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),p8=Oe.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),d8=Oe.div({display:"flex",flexDirection:"column"}),h8=Oe.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),g8=Oe.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),y8=Oe.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),v8=Oe.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),m8=Oe.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),b8=c({}),w8=(t,n)=>{const r="th"===n?x8:_8;return po(t).map(((t,o)=>t?e(r,{children:t},`${n}${o+1}`):null))},x8=Oe.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left",overflow:"hidden"}))),_8=Oe.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%",overflow:"hidden"}))),O8=Oe(Q6)({alignItems:"center",padding:"8px 24px"},Dn),C8=Oe.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:"auto"}))),S8=Oe(Q6)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),Dn),k8=Oe.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),E8=Oe(k8)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),Dn),A8=Oe(k8)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),j8=t=>{var{children:n,columns:r,data:o}=t,i=M(t,["children","columns","data"]);const[a,s]=v(o),[c,l]=v(),f=o&&"function"==typeof n?n(a):n;y((()=>{let e=o;if(c){const{key:t,dir:n}=c;e=Rt.orderBy(o,t,n)}Rt.isEqual(e,a)||s(e)}),[o,c]);const p=u((()=>({activeColumn:c,setActiveColumn:l,parentColumns:r})),[c,l,r]);return e(b8.Provider,Object.assign({value:p},{children:e(T8,Object.assign({},i,{children:f}))}))};j8.Header=t=>{var{children:n,columns:r}=t,o=M(t,["children","columns"]);const{parentColumns:a}=i(b8),s=r||a||"equal";return e("thead",{children:e(O8,Object.assign({as:"tr",columns:s},o,{children:w8(n,"th")}))})},j8.HeaderCell=({children:n,onClick:r,contentPosition:o,sorted:a,sortKey:s})=>{const[c,u]=v(a||"inactive"),{color:l}=E(),{activeColumn:f,setActiveColumn:p}=i(b8),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,m=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return y((()=>{!s||"asc"!==a&&"desc"!==a||m(a)}),[]),y((()=>{a&&u(a)}),[a]),y((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),t(A8,Object.assign({onClick:e=>{s?m("inactive"===c?"asc":"asc"===c?"desc":"inactive"):r&&r(e)},contentPosition:o,active:g,sorting:!!d},{children:[n,d?e(Ln,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},j8.Body=t=>{var{children:n,height:r,maxHeight:o}=t,a=M(t,["children","height","maxHeight"]);const{parentColumns:s}=i(b8);return e(C8,Object.assign({height:r,maxHeight:o},a,{children:p.map(n,(e=>e?h(e,{parentColumns:s}):null))}))},j8.Row=t=>{var{children:n,columns:r,onClick:o}=t,a=M(t,["children","columns","onClick"]);const{parentColumns:s}=i(b8),c=r||s||"equal";return e(S8,Object.assign({as:"tr",columns:c,onClick:o,hoverEffect:!!o},a,{children:w8(n,"td")}))},j8.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e(E8,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const T8=Oe.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),Dn,Nn),P8=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:m,afterHide:b,bgColor:w,color:x})=>{const[_,O]=v(!1),C=e=>{O(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!_)}};return t(I8,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e(N8,Object.assign({visible:_,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:w,textColor:x},{children:i||o})),n]}))},M8=Oe.div((({theme:e})=>({color:e.tooltip.color.default}))),D8=Oe.div((({theme:e})=>({color:e.tooltip.color.subtext}))),N8=Oe.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),I8=Oe.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));P8.Header=M8,P8.Body=D8;const R8="#0074F4",L8="#FF6068",B8="#FF9900",F8="#F0BB00",z8="#00C242",H8="#001D32",V8="#FFFFFF",U8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:R8,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Rr(.95,R8),brandTint1:Rr(.9,R8),brandTint2:Rr(.8,R8),brandTint3:Rr(.7,R8),brandTint4:Rr(.6,R8),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:L8,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Rr(.95,L8),errorTint1:Rr(.9,L8),errorTint2:Rr(.8,L8),warning:B8,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Rr(.95,B8),warningTint1:Rr(.9,B8),warningTint2:Rr(.8,B8),alert:F8,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Rr(.95,F8),alertTint1:Rr(.9,F8),alertTint2:Rr(.8,F8),success:z8,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Rr(.95,z8),successTint1:Rr(.9,z8),successTint2:Rr(.8,z8),grayscale0:Rr(.95,H8),grayscale1:Rr(.9,H8),grayscale2:Rr(.8,H8),grayscale3:Rr(.7,H8),grayscale4:Rr(.6,H8),grayscale5:Rr(.5,H8),grayscale6:Rr(.4,H8),grayscale7:Rr(.3,H8),grayscale8:Rr(.2,H8),grayscale9:Rr(.1,H8),grayscale10:H8,contrast0:Rr(.95,V8),contrast1:Rr(.9,V8),contrast2:Rr(.8,V8),contrast3:Rr(.7,V8),contrast4:Rr(.6,V8),contrast5:Rr(.5,V8),contrast6:Rr(.4,V8),contrast7:Rr(.3,V8),contrast8:Rr(.2,V8),contrast9:Rr(.1,V8),contrast10:V8};var K8={color:U8,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:$8}=K8;var W8={small:{height:28,iconSize:18,font:$8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:$8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:$8.size.lg,padding:14,iconOnlyPadding:6}};const q8="#FFFFFF",G8=U8.grayscale0,Z8=U8.grayscale1,Y8=U8.grayscale2,X8=U8.grayscale3,J8=U8.grayscale4,Q8=U8.grayscale5,eee=U8.grayscale6,tee=U8.grayscale7,nee=U8.grayscale8,ree=U8.grayscale9,oee=U8.grayscale10,iee=Object.assign(Object.assign({},K8),{name:"light",accent:U8.brand,accentShade:U8.brandShade1,background0:q8,background1:q8,background2:q8,background3:q8,background4:q8,background5:q8,scale0:G8,scale1:Z8,scale2:Y8,scale3:X8,scale4:J8,scale5:Q8,scale6:eee,scale7:tee,scale8:nee,scale9:ree,scale10:oee,button:Object.assign(Object.assign({},W8),{primary:{color:{default:q8,hover:q8,active:q8},outlineColor:{default:oee,hover:oee,active:oee},background:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},outlineBackground:{default:U8.brandTint0,hover:U8.brandTint1,active:U8.brandTint2},border:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},divider:Y8},secondary:{color:{default:oee,hover:oee,active:oee},outlineColor:{default:oee,hover:oee,active:oee},background:{default:Z8,hover:Y8,active:X8},outlineBackground:{default:Z8,hover:Y8,active:X8},border:{default:Y8,hover:Y8,active:Y8},divider:Y8},positive:{color:{default:q8,hover:q8,active:q8},outlineColor:{default:oee,hover:oee,active:oee},background:{default:U8.success,hover:U8.successShade1,active:U8.successShade2},outlineBackground:{default:U8.successTint0,hover:U8.successTint1,active:U8.successTint2},border:{default:U8.success,hover:U8.successShade1,active:U8.successShade2},divider:Y8},negative:{color:{default:q8,hover:q8,active:q8},outlineColor:{default:oee,hover:oee,active:oee},background:{default:U8.error,hover:U8.errorShade1,active:U8.errorShade2},outlineBackground:{default:U8.errorTint0,hover:U8.errorTint1,active:U8.errorTint2},border:{default:U8.error,hover:U8.errorShade1,active:U8.errorShade2},divider:Y8},caution:{color:{default:q8,hover:q8,active:q8},outlineColor:{default:oee,hover:oee,active:oee},background:{default:U8.warning,hover:U8.warningShade1,active:U8.warningShade2},outlineBackground:{default:U8.warningTint0,hover:U8.warningTint1,active:U8.warningTint2},border:{default:U8.warning,hover:U8.warningShade1,active:U8.warningShade2},divider:Y8},subtle:{color:{default:U8.brand,hover:U8.brand,active:U8.brand},outlineColor:{default:U8.brand,hover:U8.brand,active:U8.brand},secondaryColor:{default:oee,hover:oee,active:oee},positiveColor:{default:U8.success,hover:U8.success,active:U8.success},negativeColor:{default:U8.error,hover:U8.error,active:U8.error},cautionColor:{default:U8.warning,hover:U8.warning,active:U8.warning},background:{default:"transparent",hover:Z8,active:Y8},outlineBackground:{default:"transparent",hover:Z8,active:Y8},border:{default:"transparent",hover:Y8,active:Y8},divider:Y8},link:{color:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},outlineColor:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},secondaryColor:{default:nee,hover:ree,active:oee},positiveColor:{default:U8.success,hover:U8.successShade1,active:U8.successShade2},negativeColor:{default:U8.error,hover:U8.errorShade1,active:U8.errorShade2},cautionColor:{default:U8.warning,hover:U8.warningShade1,active:U8.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:J8,hover:J8,active:J8},outlineColor:{default:J8,hover:J8,active:J8},background:{default:Z8,hover:Z8,active:Z8},outlineBackground:{default:G8,hover:G8,active:G8},border:{default:Z8,hover:Z8,active:Z8},divider:Z8},color:{default:q8}}),calendar:{background:{container:U8.contrast10,hover:Z8,active:U8.brand,activeHover:U8.brandShade1},color:{disabled:J8,default:oee,active:U8.contrast10,current:U8.brand,outside:eee,weekday:nee,monthYear:nee,iconDefault:J8,iconHover:oee}},defaultBorder:`1px solid ${Z8}`,formControl:{color:{default:nee,hover:oee,active:U8.brand,activeHover:U8.brandShade1,disabled:J8}},input:{borderRadius:4,background:{default:G8,hover:Z8,focused:Z8,disabled:G8},color:{default:oee,disabled:J8,placeholder:eee,description:eee,descriptionError:U8.error},borderColor:{default:eee,hover:nee,focused:U8.brand,disabled:J8,error:U8.error},labelColor:{default:nee,hover:nee,filled:eee,focused:U8.brand,disabled:J8}},menu:{background:q8},menuItem:{borderColor:U8.brand,background:{active:G8,hover:Z8,inactive:"transparent"},color:{active:oee,hover:oee,inactive:eee}},modal:{background:U8.contrast10,color:{header:oee,body:eee}},options:{background:U8.contrast10},optionItem:{background:{active:Z8,inactive:"transparent"},color:{active:oee,inactive:oee,accent:U8.brand}},table:{color:{header:eee,body:oee},borderColor:Z8},toast:{color:oee,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:nee,info:U8.brand,success:U8.success,warning:U8.warning,error:U8.error}},toggle:{slider:U8.contrast10},tooltip:{background:"#FFF",color:{default:oee,subtext:eee}}}),aee=U8.contrast0,see=U8.contrast1,cee=U8.contrast2,uee=U8.contrast3,lee=U8.contrast4,fee=U8.contrast5,pee=U8.contrast6,dee=U8.contrast7,hee=U8.contrast8,gee=U8.contrast9,yee=U8.contrast10,vee=U8.brandDark,mee={light:iee,dark:Object.assign(Object.assign({},K8),{name:"dark",accent:vee,accentShade:U8.brandDarkShade1,background0:U8.brandBackground0,background1:U8.brandBackground1,background2:U8.brandBackground2,background3:U8.brandBackground3,background4:U8.brandBackground4,background5:U8.brandBackground5,scale0:aee,scale1:see,scale2:cee,scale3:uee,scale4:lee,scale5:fee,scale6:pee,scale7:dee,scale8:hee,scale9:gee,scale10:yee,button:Object.assign(Object.assign({},W8),{primary:{color:{default:yee,hover:yee,active:yee},outlineColor:{default:yee,hover:yee,active:yee},background:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},outlineBackground:{default:U8.brandTint0,hover:U8.brandTint1,active:U8.brandTint2},border:{default:U8.brand,hover:U8.brandShade1,active:U8.brandShade2},divider:cee},secondary:{color:{default:yee,hover:yee,active:yee},outlineColor:{default:yee,hover:yee,active:yee},background:{default:see,hover:cee,active:uee},outlineBackground:{default:see,hover:cee,active:uee},border:{default:cee,hover:cee,active:cee},divider:cee},positive:{color:{default:yee,hover:yee,active:yee},outlineColor:{default:yee,hover:yee,active:yee},background:{default:U8.success,hover:U8.successShade1,active:U8.successShade2},outlineBackground:{default:U8.successTint0,hover:U8.successTint1,active:U8.successTint2},border:{default:U8.success,hover:U8.successShade1,active:U8.successShade2},divider:cee},negative:{color:{default:yee,hover:yee,active:yee},outlineColor:{default:yee,hover:yee,active:yee},background:{default:U8.error,hover:U8.errorShade1,active:U8.errorShade2},outlineBackground:{default:U8.errorTint0,hover:U8.errorTint1,active:U8.errorTint2},border:{default:U8.error,hover:U8.errorShade1,active:U8.errorShade2},divider:cee},caution:{color:{default:yee,hover:yee,active:yee},outlineColor:{default:yee,hover:yee,active:yee},background:{default:U8.warning,hover:U8.warningShade1,active:U8.warningShade2},outlineBackground:{default:U8.warningTint0,hover:U8.warningTint1,active:U8.warningTint2},border:{default:U8.warning,hover:U8.warningShade1,active:U8.warningShade2},divider:cee},subtle:{color:{default:U8.brand,hover:U8.brand,active:U8.brand},outlineColor:{default:U8.brand,hover:U8.brand,active:U8.brand},secondaryColor:{default:yee,hover:yee,active:yee},positiveColor:{default:U8.success,hover:U8.success,active:U8.success},negativeColor:{default:U8.error,hover:U8.error,active:U8.error},cautionColor:{default:U8.warning,hover:U8.warning,active:U8.warning},background:{default:"transparent",hover:see,active:cee},outlineBackground:{default:"transparent",hover:see,active:cee},border:{default:"transparent",hover:cee,active:cee},divider:cee},link:{color:{default:U8.brandShade2,hover:U8.brandShade1,active:U8.brand},outlineColor:{default:U8.brandShade2,hover:U8.brandShade1,active:U8.brand},secondaryColor:{default:hee,hover:gee,active:yee},positiveColor:{default:U8.successShade2,hover:U8.successShade1,active:U8.success},negativeColor:{default:U8.errorShade2,hover:U8.errorShade1,active:U8.error},cautionColor:{default:U8.warningShade2,hover:U8.warningShade1,active:U8.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:lee,hover:lee,active:lee},outlineColor:{default:lee,hover:lee,active:lee},background:{default:see,hover:see,active:see},outlineBackground:{default:aee,hover:aee,active:aee},border:{default:see,hover:see,active:see},divider:see},color:{default:"#FFFFFF"}}),calendar:{background:{container:U8.brandBackground3,hover:see,active:U8.brand,activeHover:U8.brandShade1},color:{disabled:lee,default:yee,active:yee,current:vee,outside:pee,weekday:hee,monthYear:hee,iconDefault:lee,iconHover:yee}},defaultBorder:`1px solid ${see}`,formControl:{color:{default:hee,hover:yee,active:U8.brand,activeHover:U8.brandShade1,disabled:lee}},input:{borderRadius:4,background:{default:aee,hover:see,focused:see,disabled:aee},color:{default:yee,disabled:lee,placeholder:pee,description:pee,descriptionError:U8.error},borderColor:{default:pee,hover:hee,focused:vee,disabled:lee,error:U8.error},labelColor:{default:hee,hover:hee,filled:pee,focused:vee,disabled:lee}},menu:{background:U8.brandBackground2},menuItem:{borderColor:U8.brand,background:{active:aee,hover:see,inactive:"transparent"},color:{active:yee,hover:yee,inactive:pee}},modal:{background:U8.brandBackground3,color:{header:yee,body:pee}},options:{background:U8.brandBackground3},optionItem:{background:{active:see,inactive:"transparent"},color:{active:yee,inactive:yee,accent:vee}},table:{color:{header:pee,body:yee},borderColor:see},toast:{color:yee,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:hee,info:U8.brand,success:U8.success,warning:U8.warning,error:U8.error}},toggle:{slider:U8.brandBackground0},tooltip:{background:U8.brandBackground4,color:{default:yee,subtext:pee}}})},bee=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=v(l||""),[d,h]=v(null),g=()=>h(null);y((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const m=()=>{null==d||d.resolve(!s||f),g()},b=()=>{null==d||d.resolve(!1),g()};Pt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":b()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>t(j7,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e(j7.Header,{children:n}),r&&e(j7.Text,{children:r}),s&&e(j7.Body,Object.assign({marginTop:4,marginBottom:8},{children:e(ko,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),t(j7.Footer,{children:[e(Zo,Object.assign({secondary:!0,marginRight:8,onClick:b},{children:o})),e(Zo,Object.assign({negative:a,onClick:m},{children:i}))]})]}))]};export{zn as Accordion,oi as Audio,bU as BarChart,Zo as Button,e$ as Calendar,p$ as Checkbox,R$ as Code,z$ as DocTable,X6 as DraftEditor,Fo as Dropdown,o7 as Form,Q6 as Grid,Ln as Icon,c7 as ImageViewer,d7 as InlineCode,ko as Input,Co as InputUtils,n7 as Label,h7 as LineChart,g7 as Menu,w7 as Message,S7 as MessageHr,j7 as Modal,D7 as MultiSelect,uU as Notification,Po as Options,U7 as Pagination,Z7 as PieChart,e8 as Progress,e7 as Radio,i8 as ResetStyles,a8 as ScrollbarStyles,ti as Slider,c8 as Spacer,go as Spinner,j8 as Table,s8 as ToastStyles,t7 as Toggle,P8 as Tooltip,u8 as TransferList,j$ as copyToClipboard,A$ as formatDate,Nn as marginProps,Dn as paddingProps,In as positionProps,mee as theme,bee as useConfirm,Pn as useElementObserver,Pt as useEventListener,Mt as useOnClickOutside,Lt as useSelect,Nt as useSelectAll,Dt as useWindowSize,Mn as widthHeightProps};
|
|
211
|
+
var y$=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,O=l;_!==t.tail&&!(f&&O>=f.reach);O+=_.value.length,_=_.next){var C=_.value;if(t.length>e.length)return;if(!(C instanceof o)){var S,k=1;if(m){if(!(S=i(x,O,e,v))||S.index>=e.length)break;var E=S.index,A=S.index+S[0].length,j=O;for(j+=_.value.length;E>=j;)j+=(_=_.next).value.length;if(O=j-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(j<A||"string"==typeof T.value);T=T.next)k++,j+=T.value.length;k--,C=e.slice(O,j),S.index-=O}else if(!(S=i(x,0,C,v)))continue;E=S.index;var P=S[0],M=C.slice(0,E),D=C.slice(E+P.length),N=O+C.length;f&&N>f.reach&&(f.reach=N);var I=_.prev;if(M&&(I=c(t,I,M),O+=M.length),u(t,I,k),_=c(t,I,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var R={cause:p+","+h,reach:N};a(e,t,n,_.prev,O,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),v$=y$;y$.default=y$,v$.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},v$.languages.markup.tag.inside["attr-value"].inside.entity=v$.languages.markup.entity,v$.languages.markup.doctype.inside["internal-subset"].inside=v$.languages.markup,v$.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(v$.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:v$.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:v$.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},v$.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(v$.languages.markup.tag,"addAttribute",{value:function(e,t){v$.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:v$.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),v$.languages.html=v$.languages.markup,v$.languages.mathml=v$.languages.markup,v$.languages.svg=v$.languages.markup,v$.languages.xml=v$.languages.extend("markup",{}),v$.languages.ssml=v$.languages.xml,v$.languages.atom=v$.languages.xml,v$.languages.rss=v$.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(v$),v$.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},v$.languages.c=v$.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),v$.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),v$.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},v$.languages.c.string],char:v$.languages.c.char,comment:v$.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:v$.languages.c}}}}),v$.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete v$.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(v$),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(v$),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(v$),v$.languages.javascript=v$.languages.extend("clike",{"class-name":[v$.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),v$.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,v$.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:v$.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:v$.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:v$.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:v$.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:v$.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),v$.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:v$.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),v$.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),v$.languages.markup&&(v$.languages.markup.tag.addInlined("script","javascript"),v$.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),v$.languages.js=v$.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(v$),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(v$),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(v$),v$.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:v$.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},v$.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(u,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),v$.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(v$),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(v$),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(v$),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(v$),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(v$),v$.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},v$.languages.go=v$.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),v$.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete v$.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(v$),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(v$),v$.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},v$.languages.webmanifest=v$.languages.json,v$.languages.less=v$.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),v$.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),v$.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},v$.languages.objectivec=v$.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete v$.languages.objectivec["class-name"],v$.languages.objc=v$.languages.objectivec,v$.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},v$.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},v$.languages.python["string-interpolation"].inside.interpolation.inside.rest=v$.languages.python,v$.languages.py=v$.languages.python,v$.languages.reason=v$.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),v$.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete v$.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(v$),v$.languages.scss=v$.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),v$.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),v$.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),v$.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),v$.languages.scss.atrule.inside.rest=v$.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(v$),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(v$),v$.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var m$={Prism:v$,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function b$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w$(){return w$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w$.apply(this,arguments)}var x$=/\r\n|\r|\n/,_$=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},O$=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},C$=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=w$({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=w$({},n,{backgroundColor:null}),o};function S$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var k$=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),b$(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?C$(e.theme,e.language):void 0;return t.themeDict=n})),b$(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=w$({},S$(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?w$({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),b$(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),b$(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=w$({},S$(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?w$({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),b$(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=O$(l,f.type),f.alias&&(l=O$(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(x$),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)_$(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return _$(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(O),E$="#c5a5c5",A$="#8dc891",j$={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:E$}},{types:["attr-value"],style:{color:A$}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:A$}},{types:["punctuation"],style:{color:A$}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:E$}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},T$={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const P$=({content:t})=>{const[n,r]=v(!1),{color:o,scale10:i}=E();y((()=>{n&&setTimeout((()=>{r(!1)}),2e3)}),[n]);return e(M$,Object.assign({onClick:()=>{$K(t),r(!0)},copied:n},{children:e(Ln,n?{name:"check-circle",color:o.success}:{name:"copy",color:i})}))},M$=Oe.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),D$=({method:n,url:r})=>{const o=E(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(n.toUpperCase(),o);return t(N$,Object.assign({},i,{children:[e(I$,Object.assign({backgroundColor:i.borderColor},{children:n.toUpperCase()})),e(R$,{children:r}),e(P$,{content:r})]}))},N$=Oe.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),I$=Oe.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),R$=Oe.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),L$=({children:n,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=E(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Rt.range(r,o+1):Rt.rangeRight(o,r+1)}return null})),n=t.flat();return Rt.compact(n)})(v);return t.some((t=>e===t))}return!1},O=(null==r?void 0:r.trim())||(null==n?void 0:n.trim())||"";return"rest"===b?e(D$,{method:w,url:O}):e(k$,Object.assign({},m$,{code:O,language:b,theme:"dark"===d?j$:T$},{children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>t(B$,Object.assign({className:n,style:Object.assign({},r)},h,{"data-testid":"code"},{children:[o.map(((n,r,o)=>t(F$,Object.assign({},i({line:n,key:r}),{highlight:_(r+1)},{children:[o.length>1&&!x&&e(z$,{children:r+1}),n.map(((t,n)=>e("span",Object.assign({},a({token:t,key:n})),t.content)))]})))),e(P$,{content:O})]}))}))},B$=Oe.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),Nn),F$=Oe.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),z$=Oe.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),H$=Oe.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var V$={};({get exports(){return V$},set exports(e){V$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function C(){}function S(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(A)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function A(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,N=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=R||L;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(R&&e[R]||e[L]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=N,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return W(e)?new te(e):U(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Oe(){}function Ce(){}function Se(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new be(this._value,P(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):H()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=T(e,this.size),(t=P(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Oe,_e),t(Ce,_e),t(Se,_e),_e.Keyed=Oe,_e.Indexed=Ce,_e.Set=Se;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function Ae(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?je(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Pe(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Pe(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Ne(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Re)Ie.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ne(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Oe),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Vt(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new C)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(O(s),O(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(e,t,n,r){e||(e=new C);for(var o=new Qe(e,Ae(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return de(e)}))),o.push(c)}return gt(e,t,o)}function dt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&m,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<Ot)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ae(r));var s=o===b;if(n!==this.keyHash)return s?this:(O(a),O(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(O(a),s?void O(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(O(i),ct(this,e,t,Ae(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=v/4,_t=v/2,Ot=v/4;function Ct(e){var t=Nt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<v?Dt(0,r,y,null,new At(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function St(e){return!(!e||!e[kt])}t(Ct,Ce),Ct.of=function(){return this(arguments)},Ct.prototype.toString=function(){return this.__toString("List [","]")},Ct.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},Ct.prototype.set=function(e,t){return It(this,e,t)},Ct.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ct.prototype.insert=function(e,t){return this.splice(e,0,t)},Ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},Ct.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Ct.prototype.pop=function(){return Ft(this,0,-1)},Ct.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Ct.prototype.shift=function(){return Ft(this,1)},Ct.prototype.merge=function(){return zt(this,void 0,arguments)},Ct.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ct.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ct.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ct.prototype.setSize=function(e){return Ft(this,0,e)},Ct.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ct.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?H():z(e,n++,t)}))},Ct.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!1!==e(n,r++,this););return r},Ct.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ct.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ct.prototype;function At(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,At.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new At([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Tt,Pt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Pt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Pt)return e;s=null}if(u===l)return Pt;var n=t?--l:u++;s=a(c&&c[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Nt(){return jt||(jt=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Rt(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Rt(u,t,n-y,r,o,i);return l===u?e:((a=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(O(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new At(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ht(i),p=Ht(s);p>=1<<c+y;)u=new At(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new At([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<v?0:e-1>>>y<<y}function Vt(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Kt(ot(),Nt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===N?D:N,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Vt():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=T(t,o),a=P(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===N?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===I?e:z(r,c,u,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===N?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return H()}))},r}function un(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(N,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(N,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function On(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Cn);return o.constructor=r,r}t(Vt,Ke),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Ut,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(N,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(N,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(On,Oe),On.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},On.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},On.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},On.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},On.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Sn(this,n)},On.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Sn(this,t)},On.prototype.wasAltered=function(){return this._map.wasAltered()},On.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},On.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},On.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Cn=On.prototype;function Sn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(An.bind(void 0,e))}catch(e){}}function An(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jn(e){return null==e?Rn():Tn(e)&&!l(e)?e:Rn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}Cn[g]=Cn.remove,Cn.deleteIn=Cn.removeIn=Ge.removeIn,Cn.merge=Ge.merge,Cn.mergeWith=Ge.mergeWith,Cn.mergeIn=Ge.mergeIn,Cn.mergeDeep=Ge.mergeDeep,Cn.mergeDeepWith=Ge.mergeDeepWith,Cn.mergeDeepIn=Ge.mergeDeepIn,Cn.setIn=Ge.setIn,Cn.update=Ge.update,Cn.updateIn=Ge.updateIn,Cn.withMutations=Ge.withMutations,Cn.asMutable=Ge.asMutable,Cn.asImmutable=Ge.asImmutable,t(jn,Se),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Nn(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Nn(this,this._map.remove(e))},jn.prototype.clear=function(){return Nn(this,this._map.clear())},jn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},jn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},jn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Ln(fn(this,e))},jn.prototype.sortBy=function(e,t){return Ln(fn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jn.isSet=Tn;var Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=jn.prototype;function Nn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Pn||(Pn=In(ot()))}function Ln(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Ln,jn),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn($t()))}function Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Un,Ce),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Ce.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return jn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return Ct(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(N)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(A)},flatMap:function(e,t){return gn(this,un(this,e,t))},flatten:function(e){return gn(this,cn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return S(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(Ae(e),Ae(t))|0}:function(e,t){r=r+cr(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(S(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(S(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Oe,r.prototype),Yn(Ce,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Vt,List:Ct,Stack:Un,Set:jn,OrderedSet:Ln,Record:On,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var U$=V$.OrderedMap,K$={createFromArray:function(e){return U$(e.map((function(e){return[e.getKey(),e]})))}};var $$=V$,W$=$$.Map,q$=$$.OrderedSet,G$=$$.Record,Z$=q$(),Y$={style:Z$,entity:null},X$=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return J$;var t=W$({style:Z$,entity:null}).merge(e),n=Q$.get(t);if(n)return n;var o=new r(t);return Q$=Q$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?q$(t):t,entity:Array.isArray(n)?q$(n):n})},r}(G$(Y$)),J$=new X$,Q$=W$([[W$(Y$),J$]]);X$.EMPTY=J$;var eW=X$;var tW=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var nW=eW,rW=tW,oW=V$,iW=oW.List,aW=oW.Map,sW=oW.OrderedSet,cW=oW.Record,uW=oW.Repeat,lW=sW(),fW=cW({key:"",type:"unstyled",text:"",characterList:iW(),depth:0,data:aW()}),pW=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=iW(uW(nW.EMPTY,n.length))),e},dW=function(e){var t,n;function r(t){return e.call(this,pW(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():lW},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){rW(this.getCharacterList(),hW,e,t)},o.findEntityRanges=function(e,t){rW(this.getCharacterList(),gW,e,t)},r}(fW);function hW(e,t){return e.getStyle()===t.getStyle()}function gW(e,t){return e.getEntity()===t.getEntity()}var yW=dW;var vW=eW,mW=tW,bW=V$,wW=bW.List,xW=bW.Map,_W=bW.OrderedSet,OW=bW.Record,CW=bW.Repeat,SW=_W(),kW={parent:null,characterList:wW(),data:xW(),depth:0,key:"",text:"",type:"unstyled",children:wW(),prevSibling:null,nextSibling:null},EW=function(e,t){return e.getStyle()===t.getStyle()},AW=function(e,t){return e.getEntity()===t.getEntity()},jW=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=wW(CW(vW.EMPTY,n.length))),e},TW=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kW;return e.call(this,jW(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():SW},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){mW(this.getCharacterList(),EW,e,t)},o.findEntityRanges=function(e,t){mW(this.getCharacterList(),AW,e,t)},r}(OW(kW)),PW=TW,MW=eW,DW=V$.Map;function NW(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(DW([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?MW.applyStyle(l,n):MW.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var IW={add:function(e,t,n){return NW(e,t,n,!0)},remove:function(e,t,n){return NW(e,t,n,!1)}},RW=eW;var LW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,RW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},BW=V$;var FW=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(BW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return LW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},zW={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},HW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var VW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(HW(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},UW=VW;var KW=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?UW(!1,"Entity key not found in this range."):UW(!1)),n},$W=zW,WW=KW,qW=VW;function GW(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=WW(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?qW(!1,"There should only be one entity range within this removal range."):qW(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=$W.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var ZW=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=GW(e,t,u,o,s,!0,!0);else if(s&&c){var l=GW(e,t,u,o,s,!1,!0),f=GW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=GW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=GW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},YW={},XW=Math.pow(2,24);var JW=function(){for(var e;void 0===e||YW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*XW).toString(32);return YW[e]=!0,e},QW=PW,eq=JW,tq=V$.OrderedMap,nq=function(e){return e.first()instanceof QW?function(e){var t,n={};return tq(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=eq();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return tq(e.toArray().map((function(e){var t=eq();return[t,e.set("key",t)]})))}(e)},rq=eW,oq=tW,iq=VW;function aq(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var c,u=function(e,t,n){var r;return oq(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?iq(!1,"Removal range must exist within character list."):iq(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,rq.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var sq=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=aq(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=aq(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},cq=nq,uq=sq,lq=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=uq(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return cq(a.slice(c,u).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var fq=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},pq=K$,dq=PW,hq=fq,gq=VW,yq=nq,vq=V$.List,mq=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,f=i+r.getText().length,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:hq(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},bq=function(e,t,n,r,o,i){var a=n.first()instanceof dq,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=f.getKey(),h=a&&(!u.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,c-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=pq.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],vq(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},wq=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?gq(!1,"`insertFragment` should only be called with a collapsed selection state."):gq(!1));var o=e.getBlockMap(),i=yq(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof dq&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?gq(!1,"`insertFragment` should not be called when a container node is selected."):gq(!1))),1===i.size?mq(e,t,o,i.first(),a,s,r):bq(e,t,o,i,a,s)},xq=fq,_q=VW,Oq=V$.Repeat;var Cq=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?_q(!1,"`insertText` should only be called with a collapsed range."):_q(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:xq(c.getCharacterList(),Oq(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},Sq=V$.Map;var kq=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(Sq([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},Eq=PW,Aq=function(e,t){if(!(e instanceof Eq))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},jq=PW,Tq=Aq,Pq=V$;Pq.List;var Mq=Pq.Map,Dq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Nq=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Iq=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Rq=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},Lq=function(e,t,n,r){return e.withMutations((function(o){if(Dq(t.getKey(),o,(function(e){return e.merge({nextSibling:Iq(e,o,r),prevSibling:Rq(e,o,r)})})),Dq(n.getKey(),o,(function(e){return e.merge({nextSibling:Iq(e,o,r),prevSibling:Rq(e,o,r)})})),Nq(t.getKey(),r).forEach((function(e){return Dq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Iq(e,o,r),prevSibling:Rq(e,o,r)})}))})),Dq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),Dq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Iq(e,o,r)})})),Dq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Rq(e,o,r)})})),Dq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Nq(n.getKey(),r).forEach((function(e){Dq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Iq(e,o,r),prevSibling:Rq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=Tq(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?Tq(o,t):null}return n}(n,r).forEach((function(e){return Dq(e,o,(function(e){return e.merge({nextSibling:Iq(e,o,r),prevSibling:Rq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();Dq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),Dq(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){Dq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);Dq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}Dq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Bq=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},Fq=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.get(o),u=r.get(a),l=c instanceof jq,f=[];if(l){var p=u.getChildKeys(),d=Nq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(Nq(Tq(u,r),r))}n=c===u?Bq(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?Mq([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(Mq([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=Lq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},zq=PW,Hq=JW,Vq=V$,Uq=VW,Kq=kq,$q=Vq.List,Wq=Vq.Map,qq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Gq=eW,Zq=IW,Yq=FW,Xq=ZW,Jq=lq,Qq=wq,eG=Cq,tG=VW,nG=kq,rG=sq,oG=Fq,iG=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?Uq(!1,"Selection range must be collapsed."):Uq(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Kq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=Hq(),l=o instanceof zq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:Wq()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Uq(!1,"ContentBlockNode must not have children"):Uq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();qq(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:$q(i)})})),qq(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),qq(r,e,(function(e){return e.merge({nextSibling:o})})),qq(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},aG=V$.OrderedSet,sG={replaceText:function(e,t,n,r,o){var i=rG(e,t),a=oG(i,t),s=Gq.create({style:r||aG(),entity:o||null});return eG(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?tG(!1,"Target range must be collapsed for `insertText`."):tG(!1)),sG.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Jq(e,t),o=sG.removeRange(e,t,"backward");return sG.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=rG(e,t),i=oG(o,t);return Qq(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=Xq(e.getEntityMap(),i,a,t,n);return oG(e,f)}var p=rG(e,t);return oG(p,t)},splitBlock:function(e,t){var n=rG(e,t),r=oG(n,t);return iG(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Zq.add(e,t,n)},removeInlineStyle:function(e,t,n){return Zq.remove(e,t,n)},setBlockType:function(e,t,n){return nG(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return nG(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return nG(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=rG(e,t);return Yq(r,t,n)}},cG=sG;var uG=function(e){return Object.keys(e).map((function(t){return e[t]}))};function lG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fG=tW,pG=uG,dG=V$,hG=dG.List,gG=dG.Repeat,yG=dG.Record,vG=function(){return!0},mG=yG({start:null,end:null}),bG=yG({start:null,end:null,decoratorKey:null,leaves:null}),wG={generate:function(e,t,n){var r=t.getLength();if(!r)return hG.of(new bG({start:0,end:0,decoratorKey:null,leaves:hG.of(new mG({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):hG(gG(null,r)),a=t.getCharacterList();return fG(i,_G,vG,(function(e,t){o.push(new bG({start:e,end:t,decoratorKey:i.get(e),leaves:xG(a.slice(e,t).toList(),e)}))})),hG(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new bG(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lG(e,t,n[t])}))}return e}({},n,{leaves:null!=t?hG(Array.isArray(t)?t:pG(t)).map((function(e){return mG(e)})):null}))}};function xG(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return fG(r,_G,vG,(function(e,r){n.push(new mG({start:e+t,end:r+t}))})),hG(n)}function _G(e,t){return e===t}var OG=wG;var CG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,V$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),SG=CG;var kG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function EG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AG=SG,jG=VW,TG=kG,PG=(0,V$.Map)(),MG=TG();function DG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var NG={getLastCreatedEntityKey:function(){return DG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),NG.__getLastCreatedEntityKey()},create:function(e,t,n){return DG("DraftEntity.create","contentState.createEntity"),NG.__create(e,t,n)},add:function(e){return DG("DraftEntity.add","contentState.addEntity"),NG.__add(e)},get:function(e){return DG("DraftEntity.get","contentState.getEntity"),NG.__get(e)},__getAll:function(){return PG},__loadWithEntities:function(e){PG=e,MG=TG()},mergeData:function(e,t){return DG("DraftEntity.mergeData","contentState.mergeEntityData"),NG.__mergeData(e,t)},replaceData:function(e,t){return DG("DraftEntity.replaceData","contentState.replaceEntityData"),NG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return MG},__create:function(e,t,n){return NG.__add(new AG({type:e,mutability:t,data:n||{}}))},__add:function(e){return MG=TG(),PG=PG.set(MG,e),MG},__get:function(e){var t=PG.get(e);return t||("production"!==process.env.NODE_ENV?jG(!1,"Unknown DraftEntity key: %s.",e):jG(!1)),t},__mergeData:function(e,t){var n=NG.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EG(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return PG=PG.set(e,o),o},__replaceData:function(e,t){var n=NG.__get(e).set("data",t);return PG=PG.set(e,n),n}},IG=NG;var RG=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,V$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),LG=RG,BG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},FG=new RegExp("\r","g");var zG=function(e){return e.replace(FG,"")};function HG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VG(e,t,n[t])}))}return e}function VG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UG=K$,KG=eW,$G=yW,WG=PW,qG=IG,GG=LG,ZG=JW,YG=uG,XG=BG,JG=V$,QG=zG,eZ=JG.List,tZ=JG.Record,nZ=JG.Repeat,rZ=JG.Map,oZ=JG.OrderedMap,iZ=tZ({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),aZ=XG("draft_tree_data_support")?WG:$G,sZ=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return qG},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return qG.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return qG.__create(e,t,n),this},o.mergeEntityData=function(e,t){return qG.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return qG.__replaceData(e,t),this},o.addEntity=function(e){return qG.__add(e),this},o.getEntity=function(e){return qG.__get(e)},o.getAllEntities=function(){return qG.__getAll()},o.loadWithEntities=function(e){return qG.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=UG.createFromArray(n),i=o.isEmpty()?new GG:GG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||qG,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=QG(e),new aZ({key:ZG(),text:e,type:"unstyled",characterList:eZ(nZ(KG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(HG({},e,{blockMap:oZ(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new GG(e.selectionBefore),selectionAfter:new GG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new aZ(HG({},e,{data:rZ(e.data),characterList:null!=t?eZ((Array.isArray(t)?t:YG(t)).map((function(e){return KG.fromJS(e)}))):void 0}))},r}(iZ),cZ=sZ,uZ=VW,lZ="LTR",fZ="RTL",pZ=null;function dZ(e){return e===lZ||e===fZ}function hZ(e){return dZ(e)||("production"!==process.env.NODE_ENV?uZ(!1,"`dir` must be a strong direction to be converted to HTML Direction"):uZ(!1)),e===lZ?"ltr":"rtl"}function gZ(e){pZ=e}var yZ={NEUTRAL:"NEUTRAL",LTR:lZ,RTL:fZ,isStrong:dZ,getHTMLDir:hZ,getHTMLDirIfDifferent:function(e,t){return dZ(e)||("production"!==process.env.NODE_ENV?uZ(!1,"`dir` must be a strong direction to be converted to HTML Direction"):uZ(!1)),dZ(t)||("production"!==process.env.NODE_ENV?uZ(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):uZ(!1)),e===t?null:hZ(e)},setGlobalDir:gZ,initGlobalDir:function(){gZ(lZ)},getGlobalDir:function(){return pZ||this.initGlobalDir(),pZ||("production"!==process.env.NODE_ENV?uZ(!1,"Global direction not set."):uZ(!1)),pZ}},vZ=yZ,mZ=VW,bZ="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",wZ="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",xZ=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+bZ+wZ+"]"),_Z=new RegExp("["+bZ+wZ+"]");function OZ(e){var t=xZ.exec(e);return null==t?null:t[0]}function CZ(e){var t=OZ(e);return null==t?vZ.NEUTRAL:_Z.exec(t)?vZ.RTL:vZ.LTR}function SZ(e,t){if(t=t||vZ.NEUTRAL,!e.length)return t;var n=CZ(e);return n===vZ.NEUTRAL?t:n}function kZ(e,t){return t||(t=vZ.getGlobalDir()),vZ.isStrong(t)||("production"!==process.env.NODE_ENV?mZ(!1,"Fallback direction must be a strong direction"):mZ(!1)),SZ(e,t)}var EZ={firstStrongChar:OZ,firstStrongCharDir:CZ,resolveBlockDir:SZ,getDirection:kZ,isDirectionLTR:function(e,t){return kZ(e,t)===vZ.LTR},isDirectionRTL:function(e,t){return kZ(e,t)===vZ.RTL}};function AZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jZ,TZ=EZ,PZ=yZ,MZ=VW,DZ=function(){function e(e){AZ(this,"_defaultDir",void 0),AZ(this,"_lastDir",void 0),e?PZ.isStrong(e)||("production"!==process.env.NODE_ENV?MZ(!1,"Default direction must be a strong direction (LTR or RTL)"):MZ(!1)):e=PZ.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=TZ.getDirection(e,this._lastDir),this._lastDir},e}(),NZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},IZ=DZ,RZ=V$,LZ=NZ,BZ=RZ.OrderedMap;function FZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zZ(e,t,n[t])}))}return e}function zZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HZ=OG,VZ=cZ,UZ={getDirectionMap:function(e,t){jZ?jZ.reset():jZ=new IZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return LZ(jZ).getDirection(e.getText())})),o=BZ(n.keySeq().zip(r));return null!=t&&RZ.is(t,o)?t:o}},KZ=LG,$Z=V$,WZ=$Z.OrderedSet,qZ=$Z.Record,GZ=$Z.Stack,ZZ=$Z.OrderedMap,YZ=$Z.List,XZ=qZ({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:GZ(),selection:null,treeMap:null,undoStack:GZ()}),JZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(VZ.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:GZ(),redoStack:GZ(),decorator:n||null,selection:KZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=FZ({},e,{treeMap:eY(n,e.decorator),directionMap:UZ.getDirectionMap(n)});return new t(new XZ(r))},t.fromJS=function(e){return new t(new XZ(FZ({},e,{directionMap:null!=e.directionMap?ZZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?WZ(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?VZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?GZ(e.redoStack.map((function(e){return VZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new KZ(e.selection):e.selection,treeMap:null!=e.treeMap?ZZ(e.treeMap).map((function(e){return YZ(e).map((function(e){return HZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?GZ(e.undoStack.map((function(e){return VZ.fromJS(e)}))):e.undoStack,currentContent:VZ.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return HZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):eY(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return HZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){zZ(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return tY(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return tY(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return QZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),QZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new KZ({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=UZ.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:GZ(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=UZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=UZ.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function QZ(e,t,n){return JZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function eY(e,t){return e.getBlockMap().map((function(n){return HZ.generate(e,n,t)})).toOrderedMap()}function tY(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):WZ()}var nY=JZ,rY=PW,oY=Aq,iY=V$,aY=VW,sY=iY.OrderedMap,cY=iY.List,uY=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},lY=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){uY(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),uY(l,e,(function(e){return e.merge({nextSibling:u})})),uY(u,e,(function(e){return e.merge({prevSibling:l})})),uY(p,e,(function(e){return e.merge({prevSibling:a})})),uY(d,e,(function(e){return e.merge({nextSibling:a})})),uY(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:cY(o)})})),uY(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function fY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pY(e,t,n[t])}))}return e}function pY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dY=K$,hY=eW,gY=yW,yY=PW,vY=cG,mY=nY,bY=JW,wY=V$,xY=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?aY(!1,"Replacing blocks is not supported."):aY(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?aY(!1,"Block cannot be moved next to itself."):aY(!1));var a=e.getBlockMap(),s=t instanceof rY,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=oY(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),p=c.map((function(e){return[e.getKey(),e]})),d=sY();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?aY(!1,"Block cannot be moved next to itself."):aY(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?aY(!1,"Block cannot be moved next to itself."):aY(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:lY(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},_Y=BG("draft_tree_data_support"),OY=_Y?yY:gY,CY=wY.List,SY=wY.Repeat,kY={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=vY.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=vY.splitBlock(i,a),c=s.getSelectionAfter(),u=vY.setBlockType(s,c,"atomic"),l=hY.create({entity:t}),f={key:bY(),type:"atomic",text:n,characterList:CY(SY(l,n.length))},p={key:bY(),type:"unstyled"};_Y&&(f=fY({},f,{nextSibling:p.key}),p=fY({},p,{prevSibling:f.key}));var d=[new OY(f),new OY(p)],h=dY.createFromArray(d),g=vY.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return mY.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=xY(i,t,s,r)}else{var c=vY.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=xY(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=xY(c,t,l,"after");else{var f=vY.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=xY(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return mY.push(e,h,"move-block")}};var EY=V$.List,AY=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),EY(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var jY=AY;function TY(e){return e.replace(/\//g,"-")}var PY=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(TY).join(" "):Array.prototype.map.call(arguments,TY).join(" ")},MY=o,DY=PY,NY=(0,V$.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:MY.createElement("ul",{className:DY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:MY.createElement("ol",{className:DY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:MY.createElement("pre",{className:DY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),IY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},RY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",O="BlackBerry",C="Browser",S="Chrome",k="Firefox",E="Google",A="Huawei",j="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",N="Sharp",I="Sony",R="Xiaomi",L="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+C],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+C],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,H]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,A],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,A],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,R],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,R],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,j],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,j],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,I],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,I],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,O],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,N],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,I],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,j],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,N],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,I],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,R],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,L],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,U.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>350?V(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:D)}({get exports(){return RY},set exports(e){RY=e}},RY);var LY="Unknown",BY={"Mac OS":"Mac OS X"};var FY,zY=(new RY).getResult(),HY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(zY.browser.version),VY={browserArchitecture:zY.cpu.architecture||LY,browserFullVersion:zY.browser.version||LY,browserMinorVersion:HY.minor||LY,browserName:zY.browser.name||LY,browserVersion:zY.browser.major||LY,deviceName:zY.device.model||LY,engineName:zY.engine.name||LY,engineVersion:zY.engine.version||LY,platformArchitecture:zY.cpu.architecture||LY,platformName:(FY=zY.os.name,BY[FY]||FY||LY),platformVersion:zY.os.version||LY,platformFullVersion:zY.os.version||LY},UY=VW,KY=/\./,$Y=/\|\|/,WY=/\s+\-\s+/,qY=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,GY=/^(\d*)(.*)/;function ZY(e,t){var n=e.split($Y);return n.length>1?n.some((function(e){return aX.contains(e,t)})):function(e,t){var n=e.split(WY);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?UY(!1,'the "-" operator expects exactly 2 operands'):UY(!1)),1===n.length)return YY(n[0],t);var r=n[0],o=n[1];return tX(r)&&tX(o)||("production"!==process.env.NODE_ENV?UY(!1,'operands to the "-" operator must be simple (no modifiers)'):UY(!1)),YY(">="+r,t)&&YY("<="+o,t)}(e=n[0].trim(),t)}function YY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(KY),r=QY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return XY(n,i);case"<=":return function(e,t){var n=iX(e,t);return-1===n||0===n}(n,i);case">=":return JY(n,i);case">":return function(e,t){return 1===iX(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);eX(i)&&(r[o]=i+1+"");return JY(e,n)&&XY(e,r)}(n,i);default:return function(e,t){return 0===iX(e,t)}(n,i)}}function XY(e,t){return-1===iX(e,t)}function JY(e,t){var n=iX(e,t);return 1===n||0===n}function QY(e){var t=e.split(KY),n=t[0].match(qY);return n||("production"!==process.env.NODE_ENV?UY(!1,"expected regex to match but it did not"):UY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function eX(e){return!isNaN(e)&&isFinite(e)}function tX(e){return!QY(e).modifier}function nX(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function rX(e,t){var n=e.match(GY)[1],r=t.match(GY)[1],o=parseInt(n,10),i=parseInt(r,10);return eX(o)&&eX(i)&&o!==i?oX(o,i):oX(e,t)}function oX(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?UY(!1,'"a" and "b" must be of the same type'):UY(!1)),e>t?1:e<t?-1:0}function iX(e,t){for(var n=function(e,t){nX(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return nX(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=rX(r[i],o[i]);if(a)return a}return 0}var aX={contains:function(e,t){return ZY(e.trim(),t.trim())}},sX=aX,cX=Object.prototype.hasOwnProperty;var uX=function(e,t,n){if(!e)return null;var r={};for(var o in e)cX.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var lX=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},fX=VY,pX=sX;function dX(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,pX.contains(o,t))}function hX(e){return"Windows"===fX.platformName?e.replace(/^\s*NT/,""):e}var gX=uX({isBrowser:function(e){return dX(fX.browserName,fX.browserFullVersion,e)},isBrowserArchitecture:function(e){return dX(fX.browserArchitecture,null,e)},isDevice:function(e){return dX(fX.deviceName,null,e)},isEngine:function(e){return dX(fX.engineName,fX.engineVersion,e)},isPlatform:function(e){return dX(fX.platformName,fX.platformFullVersion,e,hX)},isPlatformArchitecture:function(e){return dX(fX.platformArchitecture,null,e)}},lX);var yX=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var vX=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},mX=vX;var bX=function e(t){if(mX(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},wX=yX,xX=bX;var _X=function(e){for(var t=e;t&&t!==wX(e).documentElement;){var n=xX(t);if(null!=n)return n;t=t.parentNode}return null};var OX=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function CX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SX=gX,kX=_X,EX=OX,AX=VW,jX=NZ,TX=V$.Map,PX={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},MX=SX.isBrowser("IE <= 11"),DX=function(){function e(e){var t=this;CX(this,"observer",void 0),CX(this,"container",void 0),CX(this,"mutations",void 0),CX(this,"onCharData",void 0),this.container=e,this.mutations=TX();var n=EX(e);n.MutationObserver&&!MX?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?AX(!1,"Expected target to be an instance of Node"):AX(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,PX):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=TX(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return MX?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=jX(kX(e.target));this.mutations=this.mutations.set(n,t)}},e}(),NX="-",IX={encode:function(e,t,n){return e+NX+t+NX+n},decode:function(e){var t=e.split(NX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(NX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},RX={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},LX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var BX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},FX=VW,zX=BX;var HX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?FX(!1,"Missing editorNode"):FX(!1)),zX(t.firstChild)||("production"!==process.env.NODE_ENV?FX(!1,"editorNode.firstChild is not an HTMLElement"):FX(!1)),t.firstChild},VX=IX,UX=NZ;var KX=function(e,t,n,r,o){var i=UX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=VX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=VX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=d.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},$X=_X,WX=bX,qX=KX,GX=VW,ZX=vX,YX=NZ;function XX(e,t,n){var r=t,o=$X(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?GX(!1,"Unknown node in selection range."):GX(!1)),e===r)&&(r=r.firstChild,ZX(r)||("production"!==process.env.NODE_ENV?GX(!1,"Invalid DraftEditorContents node."):GX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?GX(!1,"Invalid DraftEditorContents structure."):GX(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(ZX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||WX(e.firstChild));)e=e.firstChild;return e}(r);i=YX(WX(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(WX(s)){var l=function(e){for(;e.lastChild&&(ZX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||WX(e.lastChild));)e=e.lastChild;return e}(s);c=YX(WX(l)),u=JX(l)}else c=YX(o),u=JX(s);return{key:c,offset:u}}function JX(e){var t=e.textContent;return"\n"===t?0:t.length}var QX=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:qX(e,YX($X(n)),r,YX($X(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:YX($X(n)),offset:r},u=XX(t,o,i)):s?(u={key:YX($X(o)),offset:i},c=XX(t,n,r)):(c=XX(t,n,r),u=XX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:qX(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},eJ=QX;var tJ=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:eJ(e,t,r,o,i,a)},nJ=LX,rJ=nY,oJ=HX,iJ=tJ;var aJ=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();nJ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=iJ(n,oJ(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?rJ.forceSelection(n,o):rJ.acceptSelection(n,o),e.update(n))}};var sJ={notEmptyKey:function(e){return null!=e&&""!=e}},cJ=sJ.notEmptyKey;function uJ(e,t){return cJ(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var lJ=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:uJ(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),uJ(e.getEntityMap(),n)},fJ=DX,pJ=cG,dJ=IX,hJ=nY,gJ=RX,yJ=aJ,vJ=HX,mJ=tJ,bJ=lJ,wJ=NZ,xJ=gX.isBrowser("IE"),_J=!1,OJ=!1,CJ=null;var SJ,kJ,EJ={onCompositionStart:function(e){OJ=!0,function(e){CJ||(CJ=new fJ(vJ(e))).start()}(e)},onCompositionEnd:function(e){_J=!1,OJ=!1,setTimeout((function(){_J||EJ.resolveComposition(e)}),20)},onSelect:yJ,onKeyDown:function(e,t){if(!OJ)return EJ.resolveComposition(e),void e._onKeyDown(t);t.which!==gJ.RIGHT&&t.which!==gJ.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===gJ.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!OJ){var t=wJ(CJ).stopAndFlushMutations();CJ=null,_J=!0;var n=hJ.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=dJ.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),p=bJ(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=pJ.replaceText(r,f,e,d,p),n=hJ.set(n,{currentContent:r})}));var o=mJ(n,vJ(e)).selectionState;e.restoreEditorDOM();var i=xJ?hJ.forceSelection(n,o):hJ.acceptSelection(n,o);e.update(hJ.push(i,r,"insert-characters"))}else e.update(n)}}},AJ=EJ;function jJ(){if(kJ)return SJ;kJ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=IX,r=o,i=EZ,a=yZ,s=function(e){var o,s;function c(){return e.apply(this,arguments)||this}return s=e,(o=c).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s,c.prototype.render=function(){var e=this.props,o=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=o.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return r.createElement(y,t({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:o.getEntityAt(p.get("start")),offsetKey:m}),s)},c}(r.Component);return SJ=s}function TJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MJ=o,DJ=VW,NJ=vX,IJ=gX.isBrowser("IE <= 11");var RJ=function(e){var t,n;function r(t){var n;return PJ(TJ(n=e.call(this,t)||this),"_forceFlag",void 0),PJ(TJ(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;NJ(t)||("production"!==process.env.NODE_ENV?DJ(!1,"node is not an Element"):DJ(!1));var r=t;return n?!function(e){return IJ?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},IJ?MJ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):MJ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return IJ?MJ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):MJ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):MJ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(MJ.Component),LJ=RJ,BJ=vX;var FJ=function(e){return!(!e||!e.ownerDocument)&&(BJ(e)&&"BR"===e.nodeName)};var zJ=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},HJ=zJ;var VJ=function(e){return HJ(e)&&3==e.nodeType},UJ=VJ;var KJ=function e(t,n){return!(!t||!n)&&(t===n||!UJ(t)&&(UJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var $J=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},WJ=LX,qJ=KJ,GJ=$J,ZJ=yX,YJ=VW,XJ=vX,JJ=gX.isBrowser("IE");function QJ(e,t){if(!e)return"[empty]";var n=eQ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(XJ(n)||("production"!==process.env.NODE_ENV?YJ(!1,"Node must be an Element if it is not a text node."):YJ(!1)),n.outerHTML)}function eQ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return ZJ(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(eQ(i[a],t));return o}function tQ(e,t){for(var n=e,r=n;n;){if(XJ(n)&&r.hasAttribute("contenteditable"))return QJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function nQ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function rQ(e,t,n,r){var o=GJ();if(e.extend&&null!=t&&qJ(o,t)){n>nQ(t)&&WJ.logSelectionStateFailure({anonymizedDom:tQ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw WJ.logSelectionStateFailure({anonymizedDom:tQ(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function oQ(e,t,n,r){var o=ZJ(t).createRange();if(n>nQ(t)&&WJ.logSelectionStateFailure({anonymizedDom:tQ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),JJ)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var iQ=function(e,t,n,r,o){var i=ZJ(t);if(qJ(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),oQ(a,t,c-r,e),void rQ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),oQ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),oQ(a,t,c-r,e),rQ(a,y,v,e)}}else h&&(a.removeAllRanges(),oQ(a,t,c-r,e)),g&&rQ(a,t,l-r,e)}},aQ=ny;var sQ,cQ,uQ=LJ,lQ=o,fQ=VW,pQ=FJ,dQ=iQ,hQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?fQ(!1,"Missing node"):fQ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?fQ(!1,"Missing child"):fQ(!1)),u.nodeType===Node.TEXT_NODE?c=u:pQ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?fQ(!1,"Missing targetNode"):fQ(!1)),dQ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?fQ(!1,"Missing leafNode"):fQ(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,c=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),aQ(e,r,n)}),{});if(i){var u=i(s,t);c=aQ(c,u)}return lQ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},lQ.createElement(uQ,null,n))},r}(lQ.Component),gQ=hQ;function yQ(){if(cQ)return sQ;cQ=1;var e=jJ(),t=gQ,n=IX,r=o,i=PY;V$.List;var a=function(o){var a,s;function c(){return o.apply(this,arguments)||this}return s=o,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var o=this.props,a=o.block,s=o.contentState,c=o.customStyleFn,u=o.customStyleMap,l=o.decorator,f=o.direction,p=o.forceSelection,d=o.hasSelection,h=o.selection,g=o.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(o,i){var g=o.get("decoratorKey"),b=o.get("leaves"),w=b.size-1,x=b.map((function(e,o){var s=n.encode(y,i,o),l=e.get("start"),f=e.get("end");return r.createElement(t,{key:s,offsetKey:s,block:a,start:l,selection:d?h:null,forceSelection:p,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&o===w})})).toArray();return g&&l?r.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:o,text:v,key:i}):x})).toArray();return r.createElement("div",{"data-offset-key":n.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(r.Component);return sQ=a}function vQ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var mQ={getTop:function(e){var t=e.ownerDocument;return vQ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;vQ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return vQ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;vQ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},bQ=/-(.)/g;var wQ=function(e){return e.replace(bQ,(function(e,t){return t.toUpperCase()}))},xQ=/([A-Z])/g;var _Q=function(e){return e.replace(xQ,"-$1").toLowerCase()},OQ=wQ,CQ=_Q;function SQ(e){return null==e?e:String(e)}var kQ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return SQ(n.getPropertyValue(CQ(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return SQ(n.getPropertyValue(CQ(t)));if("display"===t)return"none"}return e.currentStyle?SQ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[OQ(t)]):SQ(e.style&&e.style[OQ(t)])};function EQ(e,t){var n=AQ.get(e,t);return"auto"===n||"scroll"===n}var AQ={get:kQ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(EQ(e,"overflow")||EQ(e,"overflowY")||EQ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},jQ=AQ,TQ=KJ;var PQ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!TQ(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var MQ=function(e){var t=PQ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},DQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var NQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:DQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},IQ=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var RQ=function(e){var t=NQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=IQ(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function LQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function BQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function FQ(){return{width:window.innerWidth||LQ(),height:window.innerHeight||BQ()}}FQ.withoutScrollbars=function(){return{width:LQ(),height:BQ()}};var zQ,HQ,VQ,UQ,KQ=FQ;function $Q(){if(HQ)return zQ;HQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=yQ(),a=IX,s=o,c=mQ,u=jQ,l=MQ,f=RQ,p=KQ,d=VW,h=BX;V$.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,r,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=n({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var o,b;function w(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",s.createRef()),t}b=e,(o=w).prototype=Object.create(b.prototype),o.prototype.constructor=o,o.__proto__=b;var x=w.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,r=this.props,o=r.block,c=r.blockRenderMap,u=r.blockRendererFn,l=r.blockStyleFn,f=r.contentState,p=r.decorator,d=r.editorKey,h=r.editorState,b=r.customStyleFn,x=r.customStyleMap,_=r.direction,O=r.forceSelection,C=r.selection,S=r.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,r){var o=a.encode(r,0,0),i=f.getBlockForKey(r),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,O=m(i,d,o,l,p,null),C=n({},e.props,{tree:h.getBlockTree(r),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,O,s.createElement(g,C))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),A=a.encode(E,0,0),j=v(o,u),T=j.CustomComponent,P=null!=T?s.createElement(T,t({},this.props,{tree:h.getBlockTree(E),blockProps:j.customProps,offsetKey:A,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:p,direction:_,forceSelection:O,hasSelection:g(C,E),selection:C,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,A,l,j,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return zQ=b}var WQ=ny;function qQ(){return qQ=WQ||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qQ.apply(this,arguments)}var GQ,ZQ,YQ,XQ,JQ=gQ,QQ=IX,e1=o,t1=mQ,n1=jQ,r1=EZ,o1=yZ,i1=PY,a1=MQ,s1=RQ,c1=KQ,u1=VW,l1=BX,f1=NZ,p1=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},d1=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||p1(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=n1.getScrollParent(n),i=s1(o);if(o===window){var a=a1(n);(r=a.y+a.height-c1().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{l1(n)||("production"!==process.env.NODE_ENV?u1(!1,"blockNode is not an HTMLElement"):u1(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&t1.setTop(o,t1.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=p1(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=QQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return e1.createElement(JQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var p=f1(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=QQ.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=o1.getHTMLDirIfDifferent(r1.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return e1.createElement(d,qQ({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=i1({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return e1.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(e1.Component),h1=d1;var g1=BG("draft_tree_data_support")?function(){if(UQ)return VQ;UQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=$Q(),r=IX,i=o,a=NZ,s=function(e){var o,s;function c(){return e.apply(this,arguments)||this}s=e,(o=c).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var u=c.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,o=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:o,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},O=(o.get(w.getType())||o.get("unstyled")).wrapper;b.push({block:i.createElement(n,t({key:x},_)),wrapperTemplate:O,key:x,offsetKey:r.encode(x,0,0)});var C=w.getNextSiblingKey();w=C?h.getBlockForKey(C):null}for(var S=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var A=[];do{A.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var j=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},A);S.push(j)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return VQ=s}():function(){if(XQ)return YQ;XQ=1;var e=ny;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=h1,a=IX,s=o,c=PY,u=(ZQ||(ZQ=1,GQ=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),GQ),l=NZ,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var r,o;function c(){return e.apply(this,arguments)||this}o=e,(r=c).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var p=c.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},p.render=function(){for(var e=this.props,r=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),O=m.getBlocksAsArray(),C=[],S=null,k=null,E=0;E<O.length;E++){var A=O[E],j=A.getKey(),T=A.getType(),P=o(A),M=void 0,D=void 0,N=void 0;P&&(M=P.component,D=P.props,N=P.editable);var I=v||_.get(j),R=a.encode(j,0,0),L={contentState:m,block:A,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:y,selection:b,tree:h.getBlockTree(j)},B=r.get(T)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,H=A.getDepth(),V="";if(c&&(V=c(A)),"li"===z)V=u(V,f(T,H,k!==F||null===S||H>S,I));var U=M||i,K={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:j};void 0!==N&&(K=n({},K,{contentEditable:N,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,t({},L,{key:j})));C.push({block:$,wrapperTemplate:F,key:j,offsetKey:R}),S=F?A.getDepth():null,k=F}for(var W=[],q=0;q<C.length;){var G=C[q];if(G.wrapperTemplate){var Z=[];do{Z.push(C[q].block),q++}while(q<C.length&&C[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return YQ=p}(),y1={isImage:function(e){return"image"===v1(e)[0]},isJpeg:function(e){var t=v1(e);return y1.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function v1(e){return e.split("/")}var m1=y1,b1=VW;var w1=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?b1(!1,"toArray: Array-like object expected"):b1(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?b1(!1,"toArray: Object needs a length property"):b1(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?b1(!1,"toArray: Object should have keys for indices"):b1(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?b1(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):b1(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function x1(e){return function(){return e}}var _1=function(){};_1.thatReturns=x1,_1.thatReturnsFalse=x1(!1),_1.thatReturnsTrue=x1(!0),_1.thatReturnsNull=x1(null),_1.thatReturnsThis=function(){return this},_1.thatReturnsArgument=function(e){return e};var O1=_1,C1=m1,S1=w1,k1=O1,E1=new RegExp("\r\n","g"),A1={"text/rtf":1,"text/html":1};function j1(e){if("file"==e.kind)return e.getAsFile()}var T1=function(){function e(e){this.data=e,this.types=e.types?S1(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return A1[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(E1,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!C1.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(j1).filter(k1.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),P1=T1,M1=VW,D1=/\.textClipping$/,N1={"text/plain":!0,"text/html":!0,"text/rtf":!0},I1=5e3;var R1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!D.FileReader||e.type&&!(e.type in N1))return void t("");if(""===e.type){var n="";return D1.test(e.name)&&(n=e.name.replace(D1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?M1(!1,'We should be calling "FileReader.readAsText" which returns a string'):M1(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,I1)),n==e.length&&t(r.join("\r"))}))}))};var L1=function(e){return"handled"===e||!0===e},B1=P1,F1=cG,z1=nY,H1=_X,V1=yX,U1=R1,K1=KX,$1=OX,W1=L1,q1=NZ;var G1={onDragEnd:function(e){e.exitCurrentMode(),Z1(e)},onDrop:function(e,t){var n=new B1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=V1(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=q1(n),r=q1(r);var a=q1(H1(n));return K1(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&W1(e.props.handleDroppedFiles(o,i)))return;U1(i,(function(t){t&&e.update(Y1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&W1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=F1.moveText(e.getCurrentContent(),e.getSelection(),t);return z1.push(e,n,"insert-fragment")}(r,o)):e.update(Y1(r,o,n.getText()))),Z1(e)}}}};function Z1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:$1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Y1(e,t,n){var r=F1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return z1.push(e,r,"insert-fragment")}var X1=G1;var J1=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{p(e),u=!1}}}}}("undefined"==typeof self?D:self);var Q1=D.setImmediate,e0=cG,t0=nY,n0=lJ,r0=L1,o0=J1,i0=NZ,a0=Q1,s0="'",c0="/",u0=gX.isBrowser("Firefox");function l0(e,t,n,r,o){var i=e0.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return t0.push(e,i,"insert-characters",o)}var f0=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&r0(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(l0(n,r,n.getCurrentInlineStyle(),n0(n.getCurrentContent(),n.getSelection()),!0));var s,c=l0(n,r,n.getCurrentInlineStyle(),n0(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=o0(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),c=s+(s>=i?r.length:0),u=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=u0&&(s==s0||s==c0)),u||(u=i0(c.getDirectionMap()).get(a)!==i0(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=t0.set(c,{forceSelection:!0}),void e.update(c);c=t0.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,a0((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},p0=nY,d0=KJ,h0=$J;var g0=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&h0(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&d0(o,r.anchorNode)&&d0(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(p0.acceptSelection(i,s))}},y0=nY;var v0=function(e,t){e.setMode("composite"),e.update(y0.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},m0=lq;var b0=function(e){var t=e.getSelection();return t.isCollapsed()?null:m0(e.getCurrentContent(),t)},w0=b0;var x0=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(w0(e._latestEditorState))};var _0=cG,O0=nY,C0=jQ,S0=b0,k0=RQ,E0=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var A0=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(E0(i)){var a=i;n=k0(C0.getScrollParent(a))}var s=S0(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=_0.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return O0.push(e,t,"remove-range")}(r))}),0)}};var j0=function(e,t){e.setMode("drag"),t.preventDefault()};var T0=function(e){e._internalDrag=!0,e.setMode("drag")},P0=nY,M0=gX;var D0=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),M0.isBrowser("Chrome < 60.0.3081.0")?e.update(P0.forceSelection(n,o)):e.update(P0.acceptSelection(n,o))}},N0=VW,I0=55296,R0=56319,L0=56320,B0=57343,F0=/[\uD800-\uDFFF]/;function z0(e){return I0<=e&&e<=B0}function H0(e){return F0.test(e)}function V0(e,t){return 1+z0(e.charCodeAt(t))}function U0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!H0(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=V0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=V0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=V0(e,i);return e.substring(o,i)}var K0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=V0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:V0,hasSurrogateUnit:H0,isCodeUnitInSurrogateRange:z0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?N0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):N0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return I0<=n&&n<=R0&&L0<=r&&r<=B0},strlen:function(e){if(!H0(e))return e.length;for(var t=0,n=0;n<e.length;n+=V0(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return U0(e,t=t<n?t:n,r)},substr:U0},$0=K0,W0=O1;function q0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var G0="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];q0.apply(void 0,[t].concat(r))}}:W0,Z0=G0,Y0=Z0;var X0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Y0(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},J0=cG,Q0=BG("draft_tree_data_support");var e2=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(Q0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Q0)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return J0.removeRange(o,i,n)},t2=nY,n2=$0,r2=X0,o2=e2;var i2=function(e){var t=o2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return r2(e,i?n2.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return t2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},a2=cG,s2=IX,c2=nY,u2=sJ.notEmptyKey,l2=_X,f2=i2,p2=NZ,d2=gX.isEngine("Gecko"),h2="\n\n";var g2=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var c=r.textContent,u=e._latestEditorState,l=p2(l2(r)),f=s2.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith(h2)&&(c=c.slice(0,-1)),c!==w){var x,_,O,C,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),A=u2(E)?m.getEntity(E):null,j="MUTABLE"===(null!=A?A.getMutability():null),T=j?"spellcheck-change":"apply-entity",P=a2.replaceText(m,k,c,b.getInlineStyleAt(y),j?b.getEntityAt(y):null);if(d2)x=n.anchorOffset,_=n.focusOffset,C=(O=y+Math.min(x,_))+Math.abs(x-_),x=O,_=C;else{var M=c.length-w.length;O=S.getStartOffset(),C=S.getEndOffset(),x=o?C+M:O,_=C+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(c2.push(u,D,T))}else{var N=t.nativeEvent.inputType;if(N){var I=function(e,t){return"deleteContentBackward"===e?f2(t):t}(N,u);if(I!==u)return e.restoreEditorDOM(),void e.update(I)}}}},y2=RX;var v2=function(e){return e.which===y2.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},m2=v2,b2=gX.isPlatform("Mac OS X"),w2={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return b2&&e.altKey},usesMacOSHeuristics:function(){return b2},hasCommandModifier:function(e){return b2?!!e.metaKey&&!e.altKey:w2.isCtrlKeyCommand(e)},isSoftNewlineEvent:m2},x2=w2,_2=cG,O2=nY,C2=lq,S2=NZ,k2=null,E2={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=S2(r),k2=C2(t,r);var s=_2.removeRange(t,r,"forward");return s===t?e:O2.push(e,s,"remove-range")},paste:function(e){if(!k2)return e;var t=_2.replaceWithFragment(e.getCurrentContent(),e.getSelection(),k2);return O2.push(e,t,"insert-fragment")}},A2=VW;var j2=gX.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?A2(!1,"Found an unexpected detached subtree when getting range client rects."):A2(!1)}:function(e){return Array.from(e.getClientRects())},T2=j2,P2=$0,M2=yX,D2=T2,N2=VW;function I2(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function R2(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var L2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?N2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):N2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=M2(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?N2(!1,"Missing document.body"):N2(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);I2(D2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?N2(!1,"Found unexpected detached subtree when traversing."):N2(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&P2.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!I2(D2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=R2(i=i.childNodes[c])}return e.setStart(r,o),e},B2=nY,F2=L2,z2=QX,H2=X0,V2=e2;var U2=function(e,t){var n=V2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return H2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=F2(r),z2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:B2.push(e,n,"remove-range")},K2="['‘’]",$2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),W2=new RegExp("^(?:"+$2+")*(?:"+K2+"|(?!"+$2+").)*(?:(?!"+$2+").)"),q2=new RegExp("(?:(?!"+$2+").)(?:"+K2+"|(?!"+$2+").)*(?:"+$2+")*$");function G2(e,t){var n=t?q2.exec(e):W2.exec(e);return n?n[0]:e}var Z2={getBackward:function(e){return G2(e,!0)},getForward:function(e){return G2(e,!1)}},Y2=Z2,X2=nY,J2=X0,Q2=e2;var e5=Z0;var t5=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&e5(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},n5=Z2,r5=nY,o5=t5,i5=e2;var a5=cG,s5=nY;var c5=nY;var u5=nY;var l5=nY,f5=$0,p5=t5,d5=e2;var h5=cG,g5=nY,y5=lq;var v5=nY;var m5=function(e,t,n){var r=v5.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(v5.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(v5.set(r,{nativelyRenderedContent:o}))}},b5=cG,w5=nY,x5=RX,_5=E2,O5=gX,C5=L1,S5=U2,k5=function(e){var t=Q2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return J2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Y2.getBackward(o);return J2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:X2.push(e,t,"remove-range")},E5=function(e){var t=i5(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=n5.getForward(o);return o5(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:r5.push(e,t,"remove-range")},A5=function(e){var t=a5.splitBlock(e.getCurrentContent(),e.getSelection());return s5.push(e,t,"split-block")},j5=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return c5.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},T5=function(e){var t=e.getSelection(),n=t.getStartKey();return u5.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},P5=i2,M5=function(e){var t=d5(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return p5(e,i?f5.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return l5.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},D5=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var c=y5(a,r),u=h5.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=h5.replaceWithFragment(u,p,c),h=g5.push(e,d,"insert-fragment");return g5.acceptSelection(h,o)},N5=m5,I5=x2.isOptionKeyCommand,R5=O5.isBrowser("Chrome");var L5=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case x5.RETURN:if(t.preventDefault(),e.props.handleReturn&&C5(e.props.handleReturn(t,r)))return;break;case x5.ESC:if(t.preventDefault(),o("onEscape"))return;break;case x5.TAB:if(o("onTab"))return;break;case x5.UP:if(o("onUpArrow"))return;break;case x5.RIGHT:if(o("onRightArrow"))return;break;case x5.DOWN:if(o("onDownArrow"))return;break;case x5.LEFT:if(o("onLeftArrow"))return;break;case x5.SPACE:R5&&I5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!C5(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return w5.redo(t);case"delete":return M5(t);case"delete-word":return E5(t);case"backspace":return P5(t);case"backspace-word":return k5(t);case"backspace-to-start-of-line":return S5(t,n);case"split-block":return A5(t);case"transpose-characters":return D5(t);case"move-selection-to-start-of-block":return T5(t);case"move-selection-to-end-of-block":return j5(t);case"secondary-cut":return _5.cut(t);case"secondary-paste":return _5.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else N5(t,r,e.update);else if(n===x5.SPACE&&R5&&I5(t)){var s=b5.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(w5.push(r,s,"insert-characters"))}};var B5=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),F5=B5,z5=VW,H5=gX.isBrowser("IE <= 9");var V5=function(e){var t,n=null;return!H5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?z5(!1,"Missing doc.documentElement"):z5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},U5=vX;var K5=function(e){return!(!e||!e.ownerDocument)&&(U5(e)&&"A"===e.nodeName)},$5=vX;var W5,q5=function(e){return!(!e||!e.ownerDocument)&&($5(e)&&"IMG"===e.nodeName)};function G5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z5(e,t,n[t])}))}return e}function Z5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y5=eW,X5=yW,J5=PW,Q5=NY,e3=IG,t3=F5,n3=PY,r3=JW,o3=V5,i3=BG,a3=V$,s3=a3.List,c3=a3.Map,u3=a3.OrderedSet,l3=K5,f3=FJ,p3=BX,d3=q5,h3=i3("draft_tree_data_support"),g3=" ",y3=new RegExp("\r","g"),v3=new RegExp("\n","g"),m3=new RegExp("^\n","g"),b3=new RegExp(" ","g"),w3=new RegExp(" ?","g"),x3=new RegExp("​?","g"),_3=["bold","bolder","500","600","700","800","900"],O3=["light","lighter","normal","100","200","300","400"],C3=["className","href","rel","target","title"],S3=["alt","className","height","src","width"],k3=(Z5(W5={},n3("public/DraftStyleDefault/depth0"),0),Z5(W5,n3("public/DraftStyleDefault/depth1"),1),Z5(W5,n3("public/DraftStyleDefault/depth2"),2),Z5(W5,n3("public/DraftStyleDefault/depth3"),3),Z5(W5,n3("public/DraftStyleDefault/depth4"),4),W5),E3=c3({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),A3=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),c3(t)},j3=function(e){if(p3(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},T3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(k3).some((function(n){e.classList.contains(n)&&(t=k3[n])})),t},P3=function(e){if(!l3(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new t3(t.href);return!0}catch(e){return!1}},M3=function(e){if(!d3(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},D3=function(e,t){if(!p3(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){_3.indexOf(r)>=0?e.add("BOLD"):O3.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},N3=function(e){return"ul"===e||"ol"===e},I3=function(){function e(e,t){Z5(this,"characterList",s3()),Z5(this,"currentBlockType","unstyled"),Z5(this,"currentDepth",0),Z5(this,"currentEntity",null),Z5(this,"currentText",""),Z5(this,"wrapper",null),Z5(this,"blockConfigs",[]),Z5(this,"contentBlocks",[]),Z5(this,"entityMap",e3),Z5(this,"blockTypeMap",void 0),Z5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=s3(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=e3,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],u3())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(h3?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G5({key:e.key||r3(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:s3(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=s3(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||N3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;N3(i)&&(this.wrapper=i,N3(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(M3(o))this._addImgNode(o,t);else if(P3(o))this._addAnchorNode(o,n,t);else{var u=t;E3.has(i)&&(u=u.add(E3.get(i))),u=D3(o,u);var l=j3(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!h3&&p3(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=T3(d,this.currentDepth)}var h=r3(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Y5.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=s3()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(m3,"")).replace(v3,g3)),this._appendText(n,t)},t._addBreakNode=function(e,t){f3(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(d3(e)){var n=e,r={};S3.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),i3("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(l3(e)){var r=e,o={};C3.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new t3(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=s3(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new J5(G5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return s3(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new X5(G5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=s3(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),R3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:o3)(e=e.trim().replace(y3,"").replace(b3,g3).replace(w3,"").replace(x3,""));if(!n)return null;var r=A3(t);return new I3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function L3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B3=yW,F3=PW,z3=R3,H3=JW,V3=V5,U3=BG,K3=V$,$3=zG,W3=K3.List,q3=K3.Repeat,G3=U3("draft_tree_data_support"),Z3=G3?F3:B3,Y3={processHTML:function(e,t){return z3(e,V3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=$3(r);var i=H3(),a={key:i,type:n,text:r,characterList:W3(q3(t,r.length))};if(G3&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new Z3(a)),e}),[])}};var X3=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},J3=cG,Q3=nY,e4=X3,t4=NZ,n4={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return n4.toggleInlineStyle(e,"BOLD");case"italic":return n4.toggleInlineStyle(e,"ITALIC");case"underline":return n4.toggleInlineStyle(e,"UNDERLINE");case"code":return n4.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return n4.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return n4.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=J3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Q3.push(e,t,"insert-characters");return Q3.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Q3.push(e,a,"remove-range")}var s=n4.tryToRemoveBlockStyle(e);return s?Q3.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=J3.removeRange(n,a,"forward");return s!==n?Q3.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=e4(i,r,e.shiftKey?-1:1,n);return Q3.push(t,u,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=t4(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Q3.push(e,J3.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?n4.toggleBlockType(e,"code-block"):n4.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Q3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?J3.removeInlineStyle(i,n,t):J3.applyInlineStyle(i,n,t),Q3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=J3.applyEntity(e.getCurrentContent(),t,n);return Q3.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return J3.setBlockType(o,t,"unstyled")}return null}},r4=n4,o4=/\r\n?|\n/g;var i4=K$,a4=eW,s4=P1,c4=cG,u4=Y3,l4=nY,f4=r4,p4=lJ,d4=R1,h4=L1,g4=function(e){return e.split(o4)};function y4(e,t,n){var r=c4.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l4.push(e,r.set("entityMap",n),"insert-fragment")}var v4=function(e,t){t.preventDefault();var n=new s4(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&h4(e.props.handlePastedFiles(r)))return;return void d4(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=g4(t),i=a4.create({style:n.getCurrentInlineStyle(),entity:p4(n.getCurrentContent(),n.getSelection())}),a=f4.getCurrentBlockType(n),s=u4.processText(r,i,a),c=i4.createFromArray(s),u=c4.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(l4.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!h4(e.props.handlePastedText(a,s,c))){if(a&&(i=g4(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(y4(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(y4(e._latestEditorState,f));if(s){var p=u4.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=i4.createFromArray(d);return void e.update(y4(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=a4.create({style:c.getCurrentInlineStyle(),entity:p4(c.getCurrentContent(),c.getSelection())}),v=f4.getCurrentBlockType(c),m=u4.processText(i,y,v),b=i4.createFromArray(m);e.update(y4(e._latestEditorState,b))}}},m4=gX,b4=f0,w4=g0,x4=v0,_4=x0,O4=A0,C4=j0,S4=T0,k4=D0,E4=g2,A4=L5,j4=v4,T4=aJ,P4=m4.isBrowser("Chrome"),M4=m4.isBrowser("Firefox"),D4=P4||M4?T4:function(e){},N4={onBeforeInput:b4,onBlur:w4,onCompositionStart:x4,onCopy:_4,onCut:O4,onDragOver:C4,onDragStart:S4,onFocus:k4,onInput:E4,onKeyDown:A4,onPaste:j4,onSelect:T4,onMouseUp:D4,onKeyUp:D4},I4=j.unstable_flushControlled;var R4=o,L4=PY,B4=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=L4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return R4.createElement("div",{className:t},R4.createElement("div",{className:L4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(R4.Component),F4=B4,z4=x2,H4=RX,V4=gX,U4=V4.isPlatform("Mac OS X"),K4=U4&&V4.isBrowser("Firefox < 29"),$4=z4.hasCommandModifier,W4=z4.isCtrlKeyCommand;function q4(e){return U4&&e.altKey||W4(e)}var G4=function(e){switch(e.keyCode){case 66:return $4(e)?"bold":null;case 68:return W4(e)?"delete":null;case 72:return W4(e)?"backspace":null;case 73:return $4(e)?"italic":null;case 74:return $4(e)?"code":null;case 75:return U4&&W4(e)?"secondary-cut":null;case 77:case 79:return W4(e)?"split-block":null;case 84:return U4&&W4(e)?"transpose-characters":null;case 85:return $4(e)?"underline":null;case 87:return U4&&W4(e)?"backspace-word":null;case 89:return W4(e)?U4?"secondary-paste":"redo":null;case 90:return function(e){return $4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case H4.RETURN:return"split-block";case H4.DELETE:return function(e){return!U4&&e.shiftKey?null:q4(e)?"delete-word":"delete"}(e);case H4.BACKSPACE:return function(e){return $4(e)&&U4?"backspace-to-start-of-line":q4(e)?"backspace-word":"backspace"}(e);case H4.LEFT:return K4&&$4(e)?"move-selection-to-start-of-block":null;case H4.RIGHT:return K4&&$4(e)?"move-selection-to-end-of-block":null;default:return null}},Z4=ny;function Y4(){return Y4=Z4||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y4.apply(this,arguments)}function X4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Q4(e,t,n[t])}))}return e}function J4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t9=NY,n9=IY,r9=AJ,o9=g1,i9=X1,a9=N4,s9=I4,c9=F4,u9=nY,l9=o,f9=mQ,p9=jQ,d9=PY,h9=JW,g9=G4,y9=RQ,v9=BG,m9=VW,b9=BX,w9=NZ,x9=gX.isBrowser("IE"),_9=!x9,O9={edit:a9,composite:r9,drag:i9,cut:null,render:null},C9=!1,S9=function(e){function t(){return e.apply(this,arguments)||this}e9(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(l9.Component),k9=function(e){function t(t){var n;return Q4(J4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Q4(J4(n),"_clipboard",void 0),Q4(J4(n),"_handler",void 0),Q4(J4(n),"_dragCount",void 0),Q4(J4(n),"_internalDrag",void 0),Q4(J4(n),"_editorKey",void 0),Q4(J4(n),"_placeholderAccessibilityID",void 0),Q4(J4(n),"_latestEditorState",void 0),Q4(J4(n),"_latestCommittedEditorState",void 0),Q4(J4(n),"_pendingStateFromBeforeInput",void 0),Q4(J4(n),"_onBeforeInput",void 0),Q4(J4(n),"_onBlur",void 0),Q4(J4(n),"_onCharacterData",void 0),Q4(J4(n),"_onCompositionEnd",void 0),Q4(J4(n),"_onCompositionStart",void 0),Q4(J4(n),"_onCopy",void 0),Q4(J4(n),"_onCut",void 0),Q4(J4(n),"_onDragEnd",void 0),Q4(J4(n),"_onDragOver",void 0),Q4(J4(n),"_onDragStart",void 0),Q4(J4(n),"_onDrop",void 0),Q4(J4(n),"_onInput",void 0),Q4(J4(n),"_onFocus",void 0),Q4(J4(n),"_onKeyDown",void 0),Q4(J4(n),"_onKeyPress",void 0),Q4(J4(n),"_onKeyUp",void 0),Q4(J4(n),"_onMouseDown",void 0),Q4(J4(n),"_onMouseUp",void 0),Q4(J4(n),"_onPaste",void 0),Q4(J4(n),"_onSelect",void 0),Q4(J4(n),"editor",void 0),Q4(J4(n),"editorContainer",void 0),Q4(J4(n),"focus",void 0),Q4(J4(n),"blur",void 0),Q4(J4(n),"setMode",void 0),Q4(J4(n),"exitCurrentMode",void 0),Q4(J4(n),"restoreEditorDOM",void 0),Q4(J4(n),"setClipboard",void 0),Q4(J4(n),"getClipboard",void 0),Q4(J4(n),"getEditorKey",void 0),Q4(J4(n),"update",void 0),Q4(J4(n),"onDragEnter",void 0),Q4(J4(n),"onDragLeave",void 0),Q4(J4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Q4(J4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=p9.getScrollParent(o),a=e||y9(i),s=a.x,c=a.y;b9(o)||("production"!==process.env.NODE_ENV?m9(!1,"editorNode is not an HTMLElement"):m9(!1)),o.focus(),i===window?window.scrollTo(s,c):f9.setTop(i,c),r||n.update(u9.forceSelection(t,t.getSelection()))}})),Q4(J4(n),"blur",(function(){var e=n.editor;e&&(b9(e)||("production"!==process.env.NODE_ENV?m9(!1,"editorNode is not an HTMLElement"):m9(!1)),e.blur())})),Q4(J4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=X4({},O9.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=X4({},O9,{edit:a});n._handler=s[e]})),Q4(J4(n),"exitCurrentMode",(function(){n.setMode("edit")})),Q4(J4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Q4(J4(n),"setClipboard",(function(e){n._clipboard=e})),Q4(J4(n),"getClipboard",(function(){return n._clipboard})),Q4(J4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Q4(J4(n),"onDragEnter",(function(){n._dragCount++})),Q4(J4(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||h9(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}e9(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(s9?s9((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:w9(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return l9.createElement(c9,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=d9({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:X4({},n9,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return l9.createElement("div",{className:f},this._renderPlaceholder(),l9.createElement("div",{className:d9("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},l9.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:d,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:d9({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:p,spellCheck:_9&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},l9.createElement(S9,{editor:this,editorState:a}),l9.createElement(o9,Y4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!C9&&v9("draft_ods_enabled")&&(C9=!0),this.setMode("edit"),x9&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):D.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(l9.Component);Q4(k9,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:t9,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:g9,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var E9=k9,A9={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},j9=A9,T9=$0.strlen;var P9=$0,M9=tW,D9=function(e,t){return e===t},N9=function(e){return!!e},I9=[];var R9=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return M9(o,D9,N9,(function(t,o){var i=e.getText();r.push({offset:P9.strlen(i.slice(0,t)),length:P9.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(I9,n.toJS())};function L9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B9=yW,F9=PW,z9=A9,H9=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:T9(i.slice(0,r)),length:T9(i.slice(r,o)),key:Number(t[j9.stringify(a)])})})),n},V9=R9,U9=VW,K9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:V9(e),entityRanges:H9(e,t),data:e.getData().toObject()}},$9=function(e,t,n,r){if(e instanceof B9)n.push(K9(e,t));else{e instanceof F9||("production"!==process.env.NODE_ENV?U9(!1,"block is not a BlockNode"):U9(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L9(e,t,n[t])}))}return e}({},K9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},W9=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=z9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),$9(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(z9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function q9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G9(e,t,n[t])}))}return e}function G9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z9=JW,Y9=VW,X9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},J9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Y9(!1,"Invalid raw state"):Y9(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Y9(!1,"Invalid tree raw block"):Y9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=q9({},e);X9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?q9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,q9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=X9(e),o=e.depth||0,i=q9({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:Z9(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),q9({},e,{blocks:t})}},Q9=Z0,e6={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Q9(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Q9(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Q9(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Q9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Q9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Q9(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Q9(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Q9(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Q9(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},t6=e6,n6=eW,r6=V$.List;var o6=function(e,t){var n=e.map((function(e,n){var r=t[n];return n6.create({style:e,entity:r})}));return r6(n)},i6=$0.substr;var a6=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=i6(e,0,t.offset).length,o=r+i6(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},s6=$0,c6=V$.OrderedSet,u6=s6.substr,l6=c6();var f6=function(e,t){var n=Array(e.length).fill(l6);return t&&t.forEach((function(t){for(var r=u6(e,0,t.offset).length,o=r+u6(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function p6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d6(e,t,n[t])}))}return e}function d6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h6=yW,g6=PW,y6=cZ,v6=IG,m6=J9,b6=t6,w6=LG,x6=o6,_6=a6,O6=f6,C6=JW,S6=V$,k6=VW,E6=BG("draft_tree_data_support"),A6=S6.List,j6=S6.Map,T6=S6.OrderedMap,P6=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||C6(),data:j6(o),characterList:M6(e,t)}},M6=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return x6(O6(n,o||[]),_6(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return p6({},e,{key:t[e.key]})}))))},D6=function(e){return p6({},e,{key:e.key||C6()})},N6=function(e,t,n){var r=t.map((function(e){return p6({},e,{parentRef:n})}));return e.concat(r.reverse())},I6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=E6&&!n?m6.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!E6)return function(e,t){return T6(e.map((function(e){var n=new h6(P6(e,t));return[n.getKey(),n]})))}(n?m6.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(D6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?k6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):k6(!1));var i=r.children.map(D6),a=new g6(p6({},P6(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:A6(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=N6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?k6(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):k6(!1));break}var d=c.children.map(D6),h=new g6(p6({},P6(c,t),{parent:u.getKey(),children:A6(d.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=N6(s,d,h)}return n}),T6())}(r,t);return"production"!==process.env.NODE_ENV&&(b6.isValidTree(o)||("production"!==process.env.NODE_ENV?k6(!1,"Should be a valid tree"):k6(!1))),o},R6=T2;var L6=function(e){var t=R6(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},B6=L6;var F6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=B6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},z6={Editor:E9,EditorBlock:h1,EditorState:nY,CompositeDecorator:jY,Entity:IG,EntityInstance:SG,BlockMapBuilder:K$,CharacterMetadata:eW,ContentBlock:yW,ContentState:cZ,RawDraftContentState:{},SelectionState:LG,AtomicBlockUtils:kY,KeyBindingUtil:x2,Modifier:cG,RichUtils:r4,DefaultDraftBlockRenderMap:NY,DefaultDraftInlineStyle:IY,convertFromHTML:R3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?k6(!1,"invalid RawDraftContentState"):k6(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=v6.__create(o,i,a||{})})),n}(e),n=I6(e,t),r=n.isEmpty()?new w6:w6.createEmpty(n.first().getKey());return new y6({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:W9,genKey:JW,getDefaultKeyBinding:G4,getVisibleSelectionRect:F6};const H6="FOUND_FIELD",V6="NOT_FOUND",U6="IMMUTABLE",K6=Oe.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),$6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},W6=new z6.CompositeDecorator([{strategy:(e,t,n)=>$6(e,t,n,H6),component:({children:t})=>e(K6,{children:t})},{strategy:(e,t,n)=>$6(e,t,n,V6),component:({children:t})=>e(K6,Object.assign({error:!0},{children:t}))}]),q6=(e,t,n)=>{const r=Rt.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},G6=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Rt.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=q6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?H6:V6,mutability:U6,data:{id:i}}}o.text+=a}return z6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return z6.EditorState.createWithContent(r,W6)},Z6=(e,t=!0)=>{const n=e.getCurrentContent(),r=z6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Rt.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},Y6=e=>{const t=Z6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},X6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new z6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return z6.EditorState.forceSelection(e,o)},J6=f(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:c,mergeFields:u=[],placeholder:l="Text here...",width:f,height:p,maxHeight:d,borderless:h=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:x=!1,color:_,overflow:O,clampLines:C,label:S,disabled:k,borderRadius:E,backgroundColor:A,fontSize:j,textOnly:T,margin:P,marginLeft:D,marginRight:N,marginTop:I,marginBottom:R}=n,L=M(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[B,F]=v((()=>G6(o,u,x))),{focused:z,handleFocus:H,handleBlur:V}=bo(s,c),[U,K]=v(!1),$=g(null),W=g(),q=null!=d?d:p,G=q?q-(h?0:S?29:11):void 0,Z=e=>{F(e);const t=(e=>Y6(e).some((e=>e.type===V6)))(e);K(t);const n=Z6(e),r=e.getLastChangeType();i&&i(n,t,r)},Y=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=q6(e,t,r),u=c?H6:V6,l=i.createEntity(u,U6,{id:o}).getLastCreatedEntityKey(),f=z6.Modifier.insertText(i,a,s,void 0,l),p=z6.EditorState.push(n,f,"insert-characters");return z6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,u,B,x);Z(t)},X=()=>{(null==$?void 0:$.current)&&$.current.focus();const e=X6(B);F(e)};w(r,(()=>({insertField:Y,focusAtEnd:X})));y((()=>{Z6(B)!==o&&(e=>{const t=B.getSelection(),n=G6(e,u,x),r=X6(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),y((()=>{W.current=u}),[]),y((()=>{const{current:e}=W,t=Rt.isEqual(e,u),n=Y6(B);if(!t&&n.length>0){W.current=u;const e=G6(o,u,x);Z(e)}}),[u]);return e(Q6,Object.assign({onClick:e=>{b||e.stopPropagation();B.getSelection().getHasFocus()||X()},width:f,height:p,editorMaxHeight:G,borderless:h||T,noPadding:m||T,readOnly:b,color:_,overflow:O,clampLines:C,filled:wo(o),invalid:U,textOnly:T,borderRadius:E,backgroundColor:A,fontSize:j,margin:P,marginLeft:D,marginRight:N,marginTop:I,marginBottom:R,focused:z,disabled:k,hasLabel:!!S,hideEditor:!wo(o)&&!!S&&!z},{children:t(_o,Object.assign({readOnly:b},{children:[S&&e(Oo,Object.assign({filled:wo(o),focused:z,disabled:k},{children:S})),e(z6.Editor,Object.assign({ref:$,editorState:B,onChange:Z,placeholder:l,readOnly:b,handleReturn:e=>{const t=z6.RichUtils.insertSoftNewline(B);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=z6.convertFromRaw({blocks:[o],entityMap:{}}),a=z6.EditorState.createWithContent(i,W6).getCurrentContent().getBlockMap(),s=z6.Modifier.replaceWithFragment(n,r,a);return z6.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:H,onBlur:V},L))]}))}))})),Q6=Oe(xo)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),e7=Oe.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),Dn,Nn);e7.Item=Oe.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),Dn,Nn);const t7=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=n,d=M(n,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return t(p$,Object.assign({htmlFor:r,labelRight:h,disabled:s},g,{children:[o&&e(h$,{children:o}),e(d$,Object.assign({id:r,type:"radio",checked:a,disabled:s},d)),e(Ln,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!s})]}))},n7=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:c,margin:u,marginTop:l,marginBottom:f,marginRight:p,marginLeft:d}=n,h=M(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[g,m]=v("toggle-off"),[b,w]=v(a||!1),x="right"===i,_={margin:u,marginTop:l,marginBottom:f,marginRight:p,marginLeft:d};return y((()=>{m(b?"toggle-on":"toggle-off")}),[b]),y((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(p$,Object.assign({htmlFor:r,labelRight:x,disabled:s},_,{children:[o&&e(h$,{children:o}),e(d$,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;w(e),c(e)}},h)),e(Ln,{name:g,marginLeft:o&&!x?8:0,marginRight:o&&x?8:0,pointer:!s,size:40})]}))},r7=e=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,s=M(e,["children","iconLeft","iconRight","disabled","pill"]);return t(o7,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&So(r,{marginRight:4,size:"small"}),n,o&&So(o,{marginLeft:4,size:"small"})]}))},o7=Oe.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),Nn),i7=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,c=M(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(a7,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},c,{children:n}))};i7.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,c=M(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(s7,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},c,{children:n}))},i7.Field=({children:t,inline:n,align:r,disabled:o})=>e(c7,Object.assign({inline:n,align:r,disabled:o},{children:t})),i7.Input=ko,i7.Dropdown=Fo,i7.Radio=t7,i7.Toggle=n7,i7.Checkbox=g$,i7.Label=r7;const a7=Oe(e7)({boxSizing:"border-box"}),s7=Oe(e7)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),c7=Oe.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),u7=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=v(i),p=Mt(r,n,["#prev","#next","#prev *","#next *"]);y((()=>{f(i)}),[i]);const d=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),d();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return y((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?t(l7,Object.assign({opacity:u,prevNext:o.length>1},{children:[e(f7,Object.assign({onClick:r},{children:e(Ln,{name:"close",size:25,color:"white"})})),o.length>1&&e(p7,Object.assign({id:"prev",onClick:d},{children:e(Ln,{name:"chevron-left",size:35,color:"white"})})),e(d7,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e(p7,Object.assign({next:!0,id:"next",onClick:h},{children:e(Ln,{name:"chevron-right",size:35,color:"white"})}))]})):null},l7=Oe.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),f7=Oe.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),p7=Oe.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),d7=Oe.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),h7=Oe.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),g7=n=>{var{data:r,legend:o,keys:i}=n,a=M(n,["data","legend","keys"]);const[s,c]=v(i),{scale2:u}=E();return t(GK,Object.assign({},a,{children:[e(qK,{}),e(Wx,Object.assign({width:"100%",height:"100%"},{children:t(qB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:r},{children:[e(tL,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e($L,{stroke:u,dataKey:"name",tickMargin:4}),e(WL,{stroke:u,tickMargin:4}),YK(),o&&e(Bg,{content:e(XK,{toggleData:i.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),s.map((({key:t,color:n,hidden:r},o)=>e(vL,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},y7=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:s,paddingRight:c,border:u,borderTop:l,borderBottom:f,borderLeft:p,borderRight:d,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e(v7,Object.assign({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:s,paddingRight:c,border:u,borderTop:l,borderBottom:f,borderLeft:p,borderRight:d,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?po(w).map((e=>e?h(e,{vertical:t,backgroundColor:b}):null)):null})),v7=Oe.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}))),m7=Oe.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),b7=Oe.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),w7=Oe.div({marginLeft:"auto",marginRight:8});y7.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e(m7,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),y7.Group=({label:n,defaultOpen:r,vertical:i,selected:a,disabled:s,contentPosition:c,onClick:u,id:l,children:f,indent:p=1,backgroundColor:d})=>{const[g,y]=v(r||a),m=e=>po(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!g&&y(!0),Array.isArray(t.props.children)&&m(t.props.children),h(e,{vertical:i,indent:p+1,backgroundColor:d})}return null})),b=m(f),w=()=>y((e=>!e));return t(b7,Object.assign({backgroundColor:d},{children:[t(m7,Object.assign({vertical:i,selected:a||!1,disabled:s,contentPosition:c,onClick:e=>{u?(u(e),g||w()):w()},id:l,role:"menuitem",indent:p},{children:[n,e(w7,Object.assign({onClick:e=>{e.stopPropagation(),w()}},{children:e(Ln,{name:g?"chevron-up":"chevron-down",pointer:!0})}))]})),g&&b]}))};const x7=({type:n,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=E(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(n||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return t(C7,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e(Ln,{name:h,style:{marginRight:10},color:g}),e(S7,{children:r||p}),o&&e(Ln,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},_7=Oe.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),O7=Oe.div((({theme:e})=>({fontWeight:e.font.weight.default})));x7.Header=_7,x7.Body=O7;const C7=Oe.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),Nn),S7=Oe.div({width:"100%"}),k7=({text:n,color:r,style:o})=>t(j7,{children:[e(A7,{}),e(E7,Object.assign({color:r,style:o},{children:n})),e(A7,{})]}),E7=Oe.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),A7=Oe.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),j7=Oe.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),T7=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:c,preventOverlayClose:u,overlayColor:l,backgroundColor:f,small:p,noOverlay:d,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:O,paddingRight:C,paddingLeft:S})=>{const k=Mt(u?()=>null:s,o),E={padding:x,paddingTop:_,paddingBottom:O,paddingRight:C,paddingLeft:S},A=po(n).map((e=>e?h(e,{inline:p}):null)),T=e(D7,Object.assign({color:l,noOverlay:d,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:t(P7,Object.assign({ref:k,width:i,height:a,backgroundColor:f,small:p,noOverlay:d,centerX:g,centerY:y},E,{children:[A,c&&e(M7,Object.assign({inline:p},{children:e(Ln,{name:"close",onClick:s,pointer:!0})}))]}))})),P=document.querySelector(r||"#root");return o&&P?j.createPortal(T,P):null};T7.Header=Oe.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),T7.Text=Oe.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),T7.Body=Oe.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Nn),T7.Footer=Oe.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),Nn);const P7=Oe.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),Dn),M7=Oe.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),D7=Oe.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),N7=r=>{var{children:o,options:i,items:a,listLabel:s,listText:c,itemsTitle:l,maxItems:f,placeholder:p,width:d,filter:h,restrictInput:m,disabled:b,hideItemsInfo:w,optionsParent:x,compact:_,backgroundColor:O,borderless:C,addItem:S,removeItem:k,onTextChange:A,autoFocus:T}=r,P=M(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[D,N]=v(T||!1),[I,R]=v(!1),[L,B]=v(""),{color:F,font:z,input:H}=E(),V=Mt((()=>N(!1)),D,x?[x,`${x} *`]:void 0),U=g(null),K=_&&!!s,$=e=>{e&&S(e)},W=e=>{B(e),A&&A(e)};y((()=>{const{current:e}=U;e&&!D&&e.blur()}),[D]);Pt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];k(t)}}),D&&!L,[a]);const q=i.filter((e=>!a.find((t=>t.id===e.id)))),G=u((()=>`multi-select-${to()}`),[]),Z=u((()=>`multi-select-list-${to()}`),[]),Y=f?a.length>=f:void 0,X=b||!D||Y,J=()=>{const n=t(B7,Object.assign({id:Z,expanded:D,padTop:D&&a.length>0,labeled:!!s},{children:[c&&e(F7,Object.assign({expanded:D,labeled:!!s},{children:c})),o?o(D,!!b):a.map((t=>e(r7,Object.assign({pill:!0,iconRight:D&&!b?e(Ln,{name:"close-circle",onClick:()=>k(t),pointer:!0}):void 0,disabled:b},{children:t.label}),t.id))),e(Fo,Object.assign({},P,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:h,backgroundColor:"transparent",restrictInput:m,options:q,fontSize:z.size.md,placeholder:b||a.length>0?" ":p||"Search...",placeholderColor:H.color.placeholder,inputRef:U,onChange:$,onTextChange:W,onError:e=>R(e),disabled:X,optionsParent:x?`#${Z}`:`#${G}`,autoFocus:T}))]}));if(x){const e=document.querySelector(x);return e?j.createPortal(n,e):n}return n};return t(I7,Object.assign({width:d,ref:V,labeled:!!s,disabled:b,collapse:K,onClick:e=>{e.stopPropagation();const{current:t}=U;D||s||N(!0),null==t||t.focus()}},{children:[t(R7,Object.assign({collapse:K,id:G,expanded:D&&a.length>0,error:I,labeled:!!s,backgroundColor:O,borderless:C},{children:[s?e(L7,Object.assign({collapse:K},{children:s})):J(),t(z7,{children:[f&&!w&&e(V7,{children:t(n,b&&l?{children:[a.length," ",l]}:{children:[e(H7,Object.assign({error:a.length>=f},{children:a.length})),"/",f," ",l]})}),a.length>0&&e(Ln,{name:D?"chevron-up":"chevron-down",color:F.brand,pointer:!0,onClick:e=>{e.stopPropagation(),N(!D)}})]})]})),s&&D&&J()]}))},I7=Oe.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),R7=Oe.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),L7=Oe.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),B7=Oe.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),F7=Oe.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),z7=Oe.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),H7=Oe.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),V7=Oe.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),U7=e=>e?+e:0,K7=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:c}=n,u=M(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=v(U7(o)||1),[p,d]=v(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,U7(a)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);d(t),f(e),r(e)}},m=0!==p,b=p!==g.length-1;return t($7,Object.assign({width:c},u,{children:[e(q7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e(Ln,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e(q7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e(Ln,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>t(s,{children:[0===r&&m?e(Z7,{children:"... "}):"",e(G7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&b?e(Z7,{children:" ..."}):""]},`pageIndex-${n}`))),e(q7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e(Ln,{name:"chevron-right",title:"next",inheritColor:!0})})),e(q7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e(Ln,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},$7=Oe.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Nn),W7=Oe.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),q7=Oe(W7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),G7=Oe(W7)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),Z7=Oe.span((({theme:e})=>({color:e.scale6}))),Y7=n=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=n,s=M(n,["size","data","innerRadius","showWhenEmpty"]);const c=(null==o?void 0:o.length)>0,u=c?o:a?[{name:"1",value:1,color:"#999"}]:void 0,l=r/2-1;return e(GK,Object.assign({width:r,height:r},s,{children:t(ZB,Object.assign({width:r,height:r},{children:[e(eN,Object.assign({dataKey:"value",data:u,innerRadius:i,outerRadius:l},{children:null==u?void 0:u.map((t=>e(qx,{fill:t.color||"#999"},t.name)))})),c&&YK()]}))}))},X7=({percent:n,size:r=24,thickness:o=2,color:i,margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l})=>{const f={margin:a,marginTop:s,marginBottom:c,marginRight:u,marginLeft:l},p=(r-o)/2,d=p*Math.PI*2,h=d-d*n/100,g=r/2;return t(J7,Object.assign({size:r},f,{children:[e(Q7,{cx:g,cy:g,r:p,thickness:o}),e(e8,{color:i,cx:g,cy:g,r:p,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:d,complete:h})]}))},J7=Oe.svg((({size:e})=>({display:"block",width:e,height:e})),Nn),Q7=Oe.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),e8=Oe(Q7)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),t8=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e(X7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e(n8,Object.assign({width:o,height:i||s},d,{children:e(r8,{color:n,width:h})}))},n8=Oe.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),Nn),r8=Oe.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var o8={};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function p(e,t,n){function r(){l&&o&&i&&(l(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function O(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function S(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}k(e,"inactive")}function k(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function A(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){c(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},N=null;function I(){if(null===N){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return N}function R(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){L(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):S(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)S(t.a);else{t.f+=n.length,a&&(t.j=a);var c,u=[];for(c=0;c<n.length;c++){var f=n[c],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;d=z?new P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,H(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),H(this)},V.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new C(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;d(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)p(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,O("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return o8},set exports(e){o8=e}});var i8=o8;const a8=({families:t,fontFamily:n})=>(y((()=>{var e;e=t,i8.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(A,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),s8=()=>{const{scale1:t}=E();return e(A,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},c8=()=>{const{font:t,toast:n}=E();return e(A,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},u8=Oe.div(Mn),l8=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,width:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:m})=>{const b=g(),[w,x]=v([]),[_,O]=v([]),C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:m},S=e=>{const t=Object.assign({},e);return delete t.selected,t};y((()=>{if(!Rt.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(S),t=n.filter((e=>!e.selected)).map(S);O(e),x(t)}}),[n,b]),y((()=>{r(_)}),[_]);const k=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?O:x;(n?x:O)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},E=e=>{const t="select"===e?x:O,n="select"===e?w:_;("select"===e?O:x)((e=>[...e,...n])),t([])},A=n=>t("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[n.leftElement||null,n.header&&n.body?t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(m8,{children:n.header}),e(b8,{children:n.body})]})):n.label,n.rightElement&&e("div",Object.assign({style:{marginLeft:"auto"}},{children:n.rightElement}))]})),j=!(s&&c);return t(f8,Object.assign({width:l,readOnly:u},C,{children:[i&&e(p8,{children:i}),t(d8,{children:[!u&&t(h8,{children:[j&&e(g8,{children:w.length>0&&!s&&e(Zo,Object.assign({small:!0,outline:!0,onClick:()=>E("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e(y8,{children:w.map((n=>t(v8,Object.assign({onClick:()=>k(n,"select"),color:n.color},{children:[A(n),e(Ln,{name:"chevron-right"})]}),n.id)))})]}),t(h8,{children:[j&&!u&&e(g8,{children:_.length>0&&!c&&!u&&e(Zo,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>E("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===_.length?e("div",{children:a}):e(y8,{children:_.map((n=>t(v8,Object.assign({onClick:()=>k(n,"remove"),color:n.color},{children:[A(n),e(Ln,{name:"chevron-left"})]}),n.id)))})]})]})]}))},f8=Oe.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Nn),p8=Oe.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),d8=Oe.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),h8=Oe.div({display:"flex",flexDirection:"column"}),g8=Oe.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),y8=Oe.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),v8=Oe.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),m8=Oe.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),b8=Oe.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),w8=c({}),x8=(t,n)=>{const r="th"===n?_8:O8;return po(t).map(((t,o)=>t?e(r,{children:t},`${n}${o+1}`):null))},_8=Oe.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left",overflow:"hidden"}))),O8=Oe.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%",overflow:"hidden"}))),C8=Oe(e7)({alignItems:"center",padding:"8px 24px"},Dn),S8=Oe.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:"auto"}))),k8=Oe(e7)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),Dn),E8=Oe.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),A8=Oe(E8)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),Dn),j8=Oe(E8)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),T8=t=>{var{children:n,columns:r,data:o}=t,i=M(t,["children","columns","data"]);const[a,s]=v(o),[c,l]=v(),f=o&&"function"==typeof n?n(a):n;y((()=>{let e=o;if(c){const{key:t,dir:n}=c;e=Rt.orderBy(o,t,n)}Rt.isEqual(e,a)||s(e)}),[o,c]);const p=u((()=>({activeColumn:c,setActiveColumn:l,parentColumns:r})),[c,l,r]);return e(w8.Provider,Object.assign({value:p},{children:e(P8,Object.assign({},i,{children:f}))}))};T8.Header=t=>{var{children:n,columns:r}=t,o=M(t,["children","columns"]);const{parentColumns:a}=i(w8),s=r||a||"equal";return e("thead",{children:e(C8,Object.assign({as:"tr",columns:s},o,{children:x8(n,"th")}))})},T8.HeaderCell=({children:n,onClick:r,contentPosition:o,sorted:a,sortKey:s})=>{const[c,u]=v(a||"inactive"),{color:l}=E(),{activeColumn:f,setActiveColumn:p}=i(w8),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,m=e=>{if(u(e),p&&s){p("inactive"===e?void 0:{key:s,dir:e})}};return y((()=>{!s||"asc"!==a&&"desc"!==a||m(a)}),[]),y((()=>{a&&u(a)}),[a]),y((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),t(j8,Object.assign({onClick:e=>{s?m("inactive"===c?"asc":"asc"===c?"desc":"inactive"):r&&r(e)},contentPosition:o,active:g,sorting:!!d},{children:[n,d?e(Ln,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},T8.Body=t=>{var{children:n,height:r,maxHeight:o}=t,a=M(t,["children","height","maxHeight"]);const{parentColumns:s}=i(w8);return e(S8,Object.assign({height:r,maxHeight:o},a,{children:p.map(n,(e=>e?h(e,{parentColumns:s}):null))}))},T8.Row=t=>{var{children:n,columns:r,onClick:o}=t,a=M(t,["children","columns","onClick"]);const{parentColumns:s}=i(w8),c=r||s||"equal";return e(k8,Object.assign({as:"tr",columns:c,onClick:o,hoverEffect:!!o},a,{children:x8(n,"td")}))},T8.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e(A8,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const P8=Oe.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),Dn,Nn),M8=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:m,afterHide:b,bgColor:w,color:x})=>{const[_,O]=v(!1),C=e=>{O(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!_)}};return t(R8,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e(I8,Object.assign({visible:_,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:w,textColor:x},{children:i||o})),n]}))},D8=Oe.div((({theme:e})=>({color:e.tooltip.color.default}))),N8=Oe.div((({theme:e})=>({color:e.tooltip.color.subtext}))),I8=Oe.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),R8=Oe.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));M8.Header=D8,M8.Body=N8;const L8="#0074F4",B8="#FF6068",F8="#FF9900",z8="#F0BB00",H8="#00C242",V8="#001D32",U8="#FFFFFF",K8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:L8,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Rr(.95,L8),brandTint1:Rr(.9,L8),brandTint2:Rr(.8,L8),brandTint3:Rr(.7,L8),brandTint4:Rr(.6,L8),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:B8,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Rr(.95,B8),errorTint1:Rr(.9,B8),errorTint2:Rr(.8,B8),warning:F8,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Rr(.95,F8),warningTint1:Rr(.9,F8),warningTint2:Rr(.8,F8),alert:z8,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Rr(.95,z8),alertTint1:Rr(.9,z8),alertTint2:Rr(.8,z8),success:H8,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Rr(.95,H8),successTint1:Rr(.9,H8),successTint2:Rr(.8,H8),grayscale0:Rr(.95,V8),grayscale1:Rr(.9,V8),grayscale2:Rr(.8,V8),grayscale3:Rr(.7,V8),grayscale4:Rr(.6,V8),grayscale5:Rr(.5,V8),grayscale6:Rr(.4,V8),grayscale7:Rr(.3,V8),grayscale8:Rr(.2,V8),grayscale9:Rr(.1,V8),grayscale10:V8,contrast0:Rr(.95,U8),contrast1:Rr(.9,U8),contrast2:Rr(.8,U8),contrast3:Rr(.7,U8),contrast4:Rr(.6,U8),contrast5:Rr(.5,U8),contrast6:Rr(.4,U8),contrast7:Rr(.3,U8),contrast8:Rr(.2,U8),contrast9:Rr(.1,U8),contrast10:U8};var $8={color:K8,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:W8}=$8;var q8={small:{height:28,iconSize:18,font:W8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:W8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:W8.size.lg,padding:14,iconOnlyPadding:6}};const G8="#FFFFFF",Z8=K8.grayscale0,Y8=K8.grayscale1,X8=K8.grayscale2,J8=K8.grayscale3,Q8=K8.grayscale4,eee=K8.grayscale5,tee=K8.grayscale6,nee=K8.grayscale7,ree=K8.grayscale8,oee=K8.grayscale9,iee=K8.grayscale10,aee=Object.assign(Object.assign({},$8),{name:"light",accent:K8.brand,accentShade:K8.brandShade1,background0:G8,background1:G8,background2:G8,background3:G8,background4:G8,background5:G8,scale0:Z8,scale1:Y8,scale2:X8,scale3:J8,scale4:Q8,scale5:eee,scale6:tee,scale7:nee,scale8:ree,scale9:oee,scale10:iee,button:Object.assign(Object.assign({},q8),{primary:{color:{default:G8,hover:G8,active:G8},outlineColor:{default:iee,hover:iee,active:iee},background:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},outlineBackground:{default:K8.brandTint0,hover:K8.brandTint1,active:K8.brandTint2},border:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},divider:X8},secondary:{color:{default:iee,hover:iee,active:iee},outlineColor:{default:iee,hover:iee,active:iee},background:{default:Y8,hover:X8,active:J8},outlineBackground:{default:Y8,hover:X8,active:J8},border:{default:X8,hover:X8,active:X8},divider:X8},positive:{color:{default:G8,hover:G8,active:G8},outlineColor:{default:iee,hover:iee,active:iee},background:{default:K8.success,hover:K8.successShade1,active:K8.successShade2},outlineBackground:{default:K8.successTint0,hover:K8.successTint1,active:K8.successTint2},border:{default:K8.success,hover:K8.successShade1,active:K8.successShade2},divider:X8},negative:{color:{default:G8,hover:G8,active:G8},outlineColor:{default:iee,hover:iee,active:iee},background:{default:K8.error,hover:K8.errorShade1,active:K8.errorShade2},outlineBackground:{default:K8.errorTint0,hover:K8.errorTint1,active:K8.errorTint2},border:{default:K8.error,hover:K8.errorShade1,active:K8.errorShade2},divider:X8},caution:{color:{default:G8,hover:G8,active:G8},outlineColor:{default:iee,hover:iee,active:iee},background:{default:K8.warning,hover:K8.warningShade1,active:K8.warningShade2},outlineBackground:{default:K8.warningTint0,hover:K8.warningTint1,active:K8.warningTint2},border:{default:K8.warning,hover:K8.warningShade1,active:K8.warningShade2},divider:X8},subtle:{color:{default:K8.brand,hover:K8.brand,active:K8.brand},outlineColor:{default:K8.brand,hover:K8.brand,active:K8.brand},secondaryColor:{default:iee,hover:iee,active:iee},positiveColor:{default:K8.success,hover:K8.success,active:K8.success},negativeColor:{default:K8.error,hover:K8.error,active:K8.error},cautionColor:{default:K8.warning,hover:K8.warning,active:K8.warning},background:{default:"transparent",hover:Y8,active:X8},outlineBackground:{default:"transparent",hover:Y8,active:X8},border:{default:"transparent",hover:X8,active:X8},divider:X8},link:{color:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},outlineColor:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},secondaryColor:{default:ree,hover:oee,active:iee},positiveColor:{default:K8.success,hover:K8.successShade1,active:K8.successShade2},negativeColor:{default:K8.error,hover:K8.errorShade1,active:K8.errorShade2},cautionColor:{default:K8.warning,hover:K8.warningShade1,active:K8.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Q8,hover:Q8,active:Q8},outlineColor:{default:Q8,hover:Q8,active:Q8},background:{default:Y8,hover:Y8,active:Y8},outlineBackground:{default:Z8,hover:Z8,active:Z8},border:{default:Y8,hover:Y8,active:Y8},divider:Y8},color:{default:G8}}),calendar:{background:{container:K8.contrast10,hover:Y8,active:K8.brand,activeHover:K8.brandShade1},color:{disabled:Q8,default:iee,active:K8.contrast10,current:K8.brand,outside:tee,weekday:ree,monthYear:ree,iconDefault:Q8,iconHover:iee}},defaultBorder:`1px solid ${Y8}`,formControl:{color:{default:ree,hover:iee,active:K8.brand,activeHover:K8.brandShade1,disabled:Q8}},input:{borderRadius:4,background:{default:Z8,hover:Y8,focused:Y8,disabled:Z8},color:{default:iee,disabled:Q8,placeholder:tee,description:tee,descriptionError:K8.error},borderColor:{default:tee,hover:ree,focused:K8.brand,disabled:Q8,error:K8.error},labelColor:{default:ree,hover:ree,filled:tee,focused:K8.brand,disabled:Q8}},menu:{background:G8},menuItem:{borderColor:K8.brand,background:{active:Z8,hover:Y8,inactive:"transparent"},color:{active:iee,hover:iee,inactive:tee}},modal:{background:K8.contrast10,color:{header:iee,body:tee}},options:{background:K8.contrast10},optionItem:{background:{active:Y8,inactive:"transparent"},color:{active:iee,inactive:iee,accent:K8.brand}},table:{color:{header:tee,body:iee},borderColor:Y8},toast:{color:iee,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:ree,info:K8.brand,success:K8.success,warning:K8.warning,error:K8.error}},toggle:{slider:K8.contrast10},tooltip:{background:"#FFF",color:{default:iee,subtext:tee}}}),see=K8.contrast0,cee=K8.contrast1,uee=K8.contrast2,lee=K8.contrast3,fee=K8.contrast4,pee=K8.contrast5,dee=K8.contrast6,hee=K8.contrast7,gee=K8.contrast8,yee=K8.contrast9,vee=K8.contrast10,mee=K8.brandDark,bee={light:aee,dark:Object.assign(Object.assign({},$8),{name:"dark",accent:mee,accentShade:K8.brandDarkShade1,background0:K8.brandBackground0,background1:K8.brandBackground1,background2:K8.brandBackground2,background3:K8.brandBackground3,background4:K8.brandBackground4,background5:K8.brandBackground5,scale0:see,scale1:cee,scale2:uee,scale3:lee,scale4:fee,scale5:pee,scale6:dee,scale7:hee,scale8:gee,scale9:yee,scale10:vee,button:Object.assign(Object.assign({},q8),{primary:{color:{default:vee,hover:vee,active:vee},outlineColor:{default:vee,hover:vee,active:vee},background:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},outlineBackground:{default:K8.brandTint0,hover:K8.brandTint1,active:K8.brandTint2},border:{default:K8.brand,hover:K8.brandShade1,active:K8.brandShade2},divider:uee},secondary:{color:{default:vee,hover:vee,active:vee},outlineColor:{default:vee,hover:vee,active:vee},background:{default:cee,hover:uee,active:lee},outlineBackground:{default:cee,hover:uee,active:lee},border:{default:uee,hover:uee,active:uee},divider:uee},positive:{color:{default:vee,hover:vee,active:vee},outlineColor:{default:vee,hover:vee,active:vee},background:{default:K8.success,hover:K8.successShade1,active:K8.successShade2},outlineBackground:{default:K8.successTint0,hover:K8.successTint1,active:K8.successTint2},border:{default:K8.success,hover:K8.successShade1,active:K8.successShade2},divider:uee},negative:{color:{default:vee,hover:vee,active:vee},outlineColor:{default:vee,hover:vee,active:vee},background:{default:K8.error,hover:K8.errorShade1,active:K8.errorShade2},outlineBackground:{default:K8.errorTint0,hover:K8.errorTint1,active:K8.errorTint2},border:{default:K8.error,hover:K8.errorShade1,active:K8.errorShade2},divider:uee},caution:{color:{default:vee,hover:vee,active:vee},outlineColor:{default:vee,hover:vee,active:vee},background:{default:K8.warning,hover:K8.warningShade1,active:K8.warningShade2},outlineBackground:{default:K8.warningTint0,hover:K8.warningTint1,active:K8.warningTint2},border:{default:K8.warning,hover:K8.warningShade1,active:K8.warningShade2},divider:uee},subtle:{color:{default:K8.brand,hover:K8.brand,active:K8.brand},outlineColor:{default:K8.brand,hover:K8.brand,active:K8.brand},secondaryColor:{default:vee,hover:vee,active:vee},positiveColor:{default:K8.success,hover:K8.success,active:K8.success},negativeColor:{default:K8.error,hover:K8.error,active:K8.error},cautionColor:{default:K8.warning,hover:K8.warning,active:K8.warning},background:{default:"transparent",hover:cee,active:uee},outlineBackground:{default:"transparent",hover:cee,active:uee},border:{default:"transparent",hover:uee,active:uee},divider:uee},link:{color:{default:K8.brandShade2,hover:K8.brandShade1,active:K8.brand},outlineColor:{default:K8.brandShade2,hover:K8.brandShade1,active:K8.brand},secondaryColor:{default:gee,hover:yee,active:vee},positiveColor:{default:K8.successShade2,hover:K8.successShade1,active:K8.success},negativeColor:{default:K8.errorShade2,hover:K8.errorShade1,active:K8.error},cautionColor:{default:K8.warningShade2,hover:K8.warningShade1,active:K8.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:fee,hover:fee,active:fee},outlineColor:{default:fee,hover:fee,active:fee},background:{default:cee,hover:cee,active:cee},outlineBackground:{default:see,hover:see,active:see},border:{default:cee,hover:cee,active:cee},divider:cee},color:{default:"#FFFFFF"}}),calendar:{background:{container:K8.brandBackground3,hover:cee,active:K8.brand,activeHover:K8.brandShade1},color:{disabled:fee,default:vee,active:vee,current:mee,outside:dee,weekday:gee,monthYear:gee,iconDefault:fee,iconHover:vee}},defaultBorder:`1px solid ${cee}`,formControl:{color:{default:gee,hover:vee,active:K8.brand,activeHover:K8.brandShade1,disabled:fee}},input:{borderRadius:4,background:{default:see,hover:cee,focused:cee,disabled:see},color:{default:vee,disabled:fee,placeholder:dee,description:dee,descriptionError:K8.error},borderColor:{default:dee,hover:gee,focused:mee,disabled:fee,error:K8.error},labelColor:{default:gee,hover:gee,filled:dee,focused:mee,disabled:fee}},menu:{background:K8.brandBackground2},menuItem:{borderColor:K8.brand,background:{active:see,hover:cee,inactive:"transparent"},color:{active:vee,hover:vee,inactive:dee}},modal:{background:K8.brandBackground3,color:{header:vee,body:dee}},options:{background:K8.brandBackground3},optionItem:{background:{active:cee,inactive:"transparent"},color:{active:vee,inactive:vee,accent:mee}},table:{color:{header:dee,body:vee},borderColor:cee},toast:{color:vee,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:gee,info:K8.brand,success:K8.success,warning:K8.warning,error:K8.error}},toggle:{slider:K8.brandBackground0},tooltip:{background:K8.brandBackground4,color:{default:vee,subtext:dee}}})},wee=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,p]=v(l||""),[d,h]=v(null),g=()=>h(null);y((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const m=()=>{null==d||d.resolve(!s||f),g()},b=()=>{null==d||d.resolve(!1),g()};Pt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":b()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>t(T7,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e(T7.Header,{children:n}),r&&e(T7.Text,{children:r}),s&&e(T7.Body,Object.assign({marginTop:4,marginBottom:8},{children:e(ko,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),t(T7.Footer,{children:[e(Zo,Object.assign({secondary:!0,marginRight:8,onClick:b},{children:o})),e(Zo,Object.assign({negative:a,onClick:m},{children:i}))]})]}))]};export{zn as Accordion,oi as Audio,n$ as BarChart,Zo as Button,r$ as Calendar,g$ as Checkbox,L$ as Code,H$ as DocTable,J6 as DraftEditor,Fo as Dropdown,i7 as Form,e7 as Grid,Ln as Icon,u7 as ImageViewer,h7 as InlineCode,ko as Input,Co as InputUtils,r7 as Label,g7 as LineChart,y7 as Menu,x7 as Message,k7 as MessageHr,T7 as Modal,N7 as MultiSelect,uU as Notification,Po as Options,K7 as Pagination,Y7 as PieChart,t8 as Progress,t7 as Radio,a8 as ResetStyles,s8 as ScrollbarStyles,ti as Slider,u8 as Spacer,go as Spinner,T8 as Table,c8 as ToastStyles,n7 as Toggle,M8 as Tooltip,l8 as TransferList,$K as copyToClipboard,KK as formatDate,Nn as marginProps,WK as numberWithCommas,Dn as paddingProps,In as positionProps,bee as theme,wee as useConfirm,Pn as useElementObserver,Pt as useEventListener,Mt as useOnClickOutside,Lt as useSelect,Nt as useSelectAll,Dt as useWindowSize,Mn as widthHeightProps};
|
|
212
212
|
//# sourceMappingURL=index.js.map
|