1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5451],{21:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>s,lW:()=>d,xg:()=>p});var n=r(16755),i=r(83489),o=r(43971),a=r(53310);function l(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e,t,r){let o=e.getData("application/x-lexical-editor");if(o)try{let e=JSON.parse(o);if(e.namespace===r._config.namespace&&Array.isArray(e.nodes))return u(r,function(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r],o=(0,a.GMe)(n);(0,a.kFe)(o)&&(0,i.Xg)(o),t.push(o)}return t}(e.nodes),t)}catch(e){console.error(e)}let l=e.getData("text/html"),s=e.getData("text/plain");if(l&&s!==l)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(l):l,"text/html");return u(r,(0,n.d)(r,e),t)}catch(e){console.error(e)}let c=s||e.getData("text/uri-list");if(null!=c)if((0,a.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let r=(0,a.vJq)();if((0,a.I2P)(r)){let n=e[t];"\n"===n||"\r\n"===n?r.insertParagraph():" "===n?r.insertNodes([(0,a.ev7)()]):r.insertText(n)}}}else t.insertRawText(c)}function u(e,t,r){e.dispatchCommand(a.oqR,{nodes:t,selection:r})||(r.insertNodes(t),function(e){if((0,a.I2P)(e)&&e.isCollapsed()){let t=e.anchor,r=null,n=(0,a.Ave)(t,"previous");if(n)if((0,a.rN)(n))r=n.origin;else for(let e of(0,a.TJt)(n,(0,a.uwZ)((0,a.NiT)(),"next").getFlipped())){if((0,a.kFe)(e.origin)){r=e.origin;break}if((0,a.ff4)(e.origin)&&!e.origin.isInline())break}if(r&&(0,a.kFe)(r)){let t=r.getFormat(),n=r.getStyle();e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}}}(r))}let c=null;async function d(e,t,r){if(null!==c)return!1;if(null!==t)return new Promise((n,i)=>{e.update(()=>{n(f(e,t,r))})});let n=e.getRootElement(),i=e._window||window,l=i.document,s=(0,a.peL)(i);if(null===n||null===s)return!1;let u=l.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(l.createTextNode("#")),n.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),s.removeAllRanges(),s.addRange(d),new Promise((t,n)=>{let s=e.registerCommand(a.u5G,n=>((0,o.xj)(n,ClipboardEvent)&&(s(),null!==c&&(i.clearTimeout(c),c=null),t(f(e,n,r))),!0),a.da8);c=i.setTimeout(()=>{s(),c=null,t(!1)},50),l.execCommand("copy"),u.remove()})}function f(e,t,r){if(void 0===r){let t=(0,a.peL)(e._window),n=(0,a.vJq)();if(!n||n.isCollapsed()||!t)return!1;let i=t.anchorNode,o=t.focusNode;if(null!==i&&null!==o&&!(0,a.LYZ)(e,i,o))return!1;r=p(n)}t.preventDefault();let n=t.clipboardData;return null!==n&&(function(e,t){for(let[r]of h)void 0===t[r]&&e.setData(r,"");for(let r in t){let n=t[r];void 0!==n&&e.setData(r,n)}}(n,r),!0)}let h=[["text/html",function(e,t=(0,a.vJq)()){return null==t&&l(166),(0,a.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,n.g)(e,t)}],["application/x-lexical-editor",function(e,t=(0,a.vJq)()){return null==t&&l(166),(0,a.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let r=[],n=(0,a.NiT)().getChildren();for(let o=0;o<n.length;o++)!function e(t,r,n,o=[]){var s;let u,c,d=null===r||n.isSelected(r),f=(0,a.ff4)(n)&&n.excludeFromCopy("html"),h=n;null!==r&&(0,a.kFe)(h)&&(h=(0,i.SD)(r,h,"clone"));let p=(0,a.ff4)(h)?h.getChildren():[],m=(u=(s=h).exportJSON(),c=s.constructor,u.type!==c.getType()&&l(58,c.name),(0,a.ff4)(s)&&(Array.isArray(u.children)||l(59,c.name)),u);(0,a.kFe)(h)&&0===h.getTextContentSize()&&(d=!1);for(let i=0;i<p.length;i++){let o=p[i],l=e(t,r,o,m.children);!d&&(0,a.ff4)(n)&&l&&n.extractWithChild(o,r,"clone")&&(d=!0)}if(d&&!f)o.push(m);else if(Array.isArray(m.children))for(let e=0;e<m.children.length;e++){let t=m.children[e];o.push(t)}return d}(e,t,n[o],r);return{namespace:e._config.namespace,nodes:r}}(e,t))}]];function p(e=(0,a.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let r=(0,a.i0_)();for(let[n,i]of h){let o=i(r,e);null!==o&&(t[n]=o)}}return t}},25:()=>{},127:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},264:(e,t)=>
1{"use strict";function r(e,t){return t.rules.some(t=>n(e,t))}function n(e,t){var r;return void 0!==e[t.keyword]||(null==(r=t.definition.implements)?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){let i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},439:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},484:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]])},541:(e,t,r)=>{"use strict";r.d(t,{BZ:()=>ew,eE:()=>eO,Xb:()=>ex,JG:()=>eT,fx:()=>e_,A2:()=>eb,AA:()=>$,yn:()=>eC,FO:()=>eo,gL:()=>eu,fl:()=>ed,R4:()=>ep,n4:()=>F});var n=r(2842),i=r(44531),o=r(65372),a=r(16787),l=r(57346),s=r(90744),u=r(92191),c=r(11792),d=r(21433),f=r(36544),h=r(90738),p=r(12979),m=r(13530),g=r(30451),y=r(2242),v=r(3608),b=r(5768),w=r(5364),x=r(51511),_=r(74463),S=r(59190),k=r(57104),O=r(84224),C=r(29482),E=r(51547),T=r(27467),M=r(41177),A=r(99498),N=r(48746),P=r(53970),j=(0,n.Mz)([i.Dn,i.um,s.iO],N.s),I=(0,n.Mz)([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),D=(0,n.Mz)([S.R,_.M],i.eo),$=(0,n.Mz)([I,i.Dn,D],i.ec,{memoizeOptions:{resultEqualityCheck:T.O}}),R=(0,n.Mz)([$],e=>e.filter(O.g)),L=(0,n.Mz)([$],i.rj,{memoizeOptions:{resultEqualityCheck:T.O}}),z=(0,n.Mz)([$],e=>e.some(e=>!e.data)),F=(0,n.Mz)([L,l.LF],i.Nk),B=(0,n.Mz)([R,l.LF,i.Dn],k.A),K=(0,n.Mz)([F,i.Dn,$,l.LF,z,L],i.G2),U=(0,n.Mz)([i.Dn],i.S5),W=(0,n.Mz)([i.Dn],e=>e.allowDataOverflow),H=(0,n.Mz)([U,W],C.f5),q=(0,n.Mz)([$],e=>e.filter(O.g)),J=(0,n.Mz)([B,q,s.eC,s.Lb],i.MK),V=(0,n.Mz)([J,l.LF,S.R,H],i.pM),G=(0,n.Mz)([$],i.IO),Y=(0,n.Mz)([F,i.Dn,G,i.CH,S.R,l.lI],i.EZ,{memoizeOptions:{resultEqualityCheck:E.o}}),Z=(0,n.Mz)([i.Kr,S.R,_.M],i.P9),X=(0,n.Mz)([Z,S.R],i.Oz),Q=(0,n.Mz)([i.gT,S.R,_.M],i.P9),ee=(0,n.Mz)([Q,S.R],i.q),et=(0,n.Mz)([i.$X,S.R,_.M],i.P9),er=(0,n.Mz)([et,S.R],i.bb),en=(0,n.Mz)([X,er,ee],i.yi),ei=(0,n.Mz)([i.Dn,U,H,V,Y,en,o.fz,S.R],i.wL),eo=(0,n.Mz)([i.Dn,o.fz,F,K,s.eC,S.R,ei],i.tP),ea=(0,n.Mz)([eo,i.Dn,j],i.xp),el=(0,n.Mz)([i.Dn,eo,ea,S.R],i.g1),es=e=>{var t=(0,S.R)(e),r=(0,_.M)(e);return(0,i.D5)(e,t,r,!1)},eu=(0,n.Mz)([i.Dn,es],c.I),ec=(0,n.Mz)([i.Dn,j,el,eu],P.S),ed=(0,n.Mz)([ec],M.X),ef=(0,n.Mz)([o.fz,K,i.Dn,S.R],i.tF),eh=(0,n.Mz)([o.fz,K,i.Dn,S.R],i.iv),ep=(0,n.Mz)([o.fz,i.Dn,j,ed,es,ef,eh,S.R],(e,t,r,n,i,o,l,s)=>{if(t){var{type:c}=t,d=(0,a._L)(e,s);if(n){var f="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,h="category"===c&&n.bandwidth?n.bandwidth()/f:0;return(h="angleAxis"===s&&null!=i&&(null==i?void 0:i.length)>=2?2*(0,u.sA)(i[0]-i[1])*h:h,d&&l)?l.map((e,t)=>{var r=n.map(e);return(0,A.H)(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(u.n9):n.domain().map((e,t)=>{var r=n.map(e);return(0,A.H)(r)?{coordinate:r+h,value:o?o[e]:e,index:t,offset:h}:null}).filter(u.n9)}}}),em=(0,n.Mz)([d.xH,d.Hw,e=>e.tooltip.settings],(e,t,r)=>(0,d.$g)(r.shared,e,t)),eg=e=>e.tooltip.settings.trigger,ey=e=>e.tooltip.settings.defaultIndex,ev=(0,n.Mz)([w.J,em,eg,ey],h.i),eb=(0,n.Mz)([ev,F,i.K6,eo],p.P),ew=(0,n.Mz)([ep,eb],f.E),ex=(0,n.Mz)([ev],e=>{if(e)return e.dataKey}),e_=(0,n.Mz)([ev],e=>{if(e)return e.graphicalItemId}),eS=(0,n.Mz)([w.J,em,eg,ey],v.q),ek=(0,n.Mz)([g.Lp,g.A$,o.fz,y.HZ,ep,ey,eS],m.o),eO=(0,n.Mz)([ev,ek],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),eC=(0,n.Mz)([ev],e=>{var t;return null!=(t=null==e?void 0:e.active)&&t}),eE=(0,n.Mz)([eS,eb,l.LF,i.K6,ew,b.x,em],x.N),eT=(0,n.Mz)([eE],e=>{if(null!=e)return Array.from(new Set(e.map(e=>e.payload).filter(e=>null!=e)))})},604:(e,t,r)=>{"use strict";r.d(t,{x:()=>u});var n,i=r(12115),o=r.t(i,2),a=r(92191),l=null!=(n=o["useId".toString()])?n:()=>{var[e]=i.useState(()=>(0,a.NF)("uid-"));return e},s=(0,i.createContext)(void 0),u=e=>{var t,r,{id:n,type:o,children:a}=e,u=(t="recharts-".concat(o),r=l(),n||(t?"".concat(t,"-").concat(r):r));return i.createElement(s.Provider,{value:u},a(u))}},986:()=>{},1219:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(32951),i=r(51858),o=r(22347),a=r(38786);t.has=function(e,t){let r;if(0===(r=Array.isArray(t)?t:"string"==typeof t&&n.isDeepKey(t)&&e?.[t]==null?a.toPath(t):[t]).length)return!1;let l=e;for(let e=0;e<r.length;e++){let t=r[e];if((null==l||!Object.hasOwn(l,t))&&!((Array.isArray(l)||o.isArguments(l))&&i.isIndex(t)&&t<l.length))return!1;l=l[t]}return!0}},1442:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732);t.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let t,r,{gen:o,schema:a,parentSchema:l,data:s,it:u}=e,{minContains:c,maxContains:d}=l;u.opts.next?(t=void 0===c?1:c,r=d):t=1;let f=o.const("len",(0,n._)`${s}.length`);if(e.setParams({min:t,max:r}),void 0===r&&0===t)return void(0,i.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==r&&t>r){(0,i.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,i.alwaysValidSchema)(u,a)){let i=(0,n._)`${f} >= ${t}`;void 0!==r&&(i=(0,n._)`${i} && ${f} <= ${r}`),e.pass(i);return}u.items=!0;let h=o.name("valid");function p(){let e=o.name("_valid"),i=o.let("count",0);m(e,()=>o.if(e,()=>{var e;return e=i,void(o.code((0,n._)`${e}++`),void 0===r?o.if((0,n._)`${e} >= ${t}`,()=>o.assign(h,!0).break()):(o.if((0,n._)`${e} > ${r}`,()=>o.assign(h,!1).break()),1===t?o.assign(h,!0):o.if((0,n._)`${e} >= ${t}`,()=>o.assign(h,!0))))}))}function m(t,r){o.forRange("i",0,f,n=>{e.subschema({keyword:"contains",dataProp:n,dataPropType:i.Type.Num,compositeRule:!0},t),r()})}void 0===r&&1===t?m(h,()=>o.if(h,()=>o.break())):0===t?(o.let(h,!0),void 0!==r&&o.if((0,n._)`${s}.length > 0`,p)):(o.let(h,!1),p()),e.result(h,()=>e.reset())}}},1728:(e,t,r)=>{"use strict";r.d(t,{u:()=>O,w:()=>S});var n=r(29722),i=r(12115),o=r(9042),a=r.n(o),l=r(92191),s=r(43077),u="100%",c="100%",d={width:-1,height:-1},f=(e,t,r)=>{var{width:n=u,height:i=c,aspect:o,maxHeight:a}=r,s=(0,l._3)(n)?e:Number(n),d=(0,l._3)(i)?t:Number(i);return o&&o>0&&(s?d=s/o:d&&(s=d*o),a&&null!=d&&d>a&&(d=a)),{calculatedWidth:s,calculatedHeight:d}},h={width:0,height:0,overflow:"visible"},p={width:0,overflowX:"visible"},m={height:0,overflowY:"visible"},g={},y=r(99498);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=(0,i.createContext)(d);function _(e){var{children:t,width:r,height:n}=e,o=(0,i.useMemo)(()=>({width:r,height:n}),[r,n]);return(0,y.F)(o.width)&&(0,y.F)(o.height)?i.createElement(x.Provider,{value:o},t):null}var S=()=>(0,i.useContext)(x),k=(0,i.forwardRef)((e,t)=>{var{aspect:r,initialDimension:o=d,width:u,height:c,minWidth:y=0,minHeight:v,maxHeight:b,children:x,debounce:S=0,id:k,className:O,onResize:C,style:E={}}=e,T=(0,i.useRef)(null),M=(0,i.useRef)();M.current=C,(0,i.useImperativeHandle)(t,()=>T.current);var[A,N]=(0,i.useState)({containerWidth:o.width,containerHeight:o.height}),P=(0,i.useCallback)((e,t)=>{N(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,i.useEffect)(()=>
1{if(null==T.current||"u"<typeof ResizeObserver)return l.lQ;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;P(n,i),null==(t=M.current)||t.call(M,n,i)}};S>0&&(e=a()(e,S,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=T.current.getBoundingClientRect();return P(r,n),t.observe(T.current),()=>{t.disconnect()}},[P,S]);var{containerWidth:j,containerHeight:I}=A;(0,s.R)(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:D,calculatedHeight:$}=f(j,I,{width:u,height:c,aspect:r,maxHeight:b});return(0,s.R)(null!=D&&D>0||null!=$&&$>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",D,$,u,c,y,v,r),i.createElement("div",{id:k?"".concat(k):void 0,className:(0,n.$)("recharts-responsive-container",O),style:w(w({},E),{},{width:u,height:c,minWidth:y,minHeight:v,maxHeight:b}),ref:T},i.createElement("div",{style:(e=>{var{width:t,height:r}=e,n=(0,l._3)(t),i=(0,l._3)(r);return n&&i?h:n?p:i?m:g})({width:u,height:c})},i.createElement(_,{width:D,height:$},x)))}),O=(0,i.forwardRef)((e,t)=>{var r=S();if((0,y.F)(r.width)&&(0,y.F)(r.height))return e.children;var{width:n,height:o}=function(e){var{width:t,height:r,aspect:n}=e,i=t,o=r;return void 0===i&&void 0===o?(i=u,o=c):void 0===i?i=n&&n>0?void 0:u:void 0===o&&(o=n&&n>0?void 0:c),{width:i,height:o}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=f(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return(0,l.Et)(a)&&(0,l.Et)(s)?i.createElement(_,{width:a,height:s},e.children):i.createElement(k,v({},e,{width:n,height:o,ref:t}))})},1760:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(34362),i=r.n(n);function o(e,t,r){return!0===t?i()(e,r):"function"==typeof t?i()(e,t):e}},2242:(e,t,r)=>{"use strict";r.d(t,{Ds:()=>f,HZ:()=>d,c2:()=>h});var n=r(2842),i=r(33313),o=r(16787),a=r(30451),l=r(16322),s=r(71615);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var d=(0,n.Mz)([a.Lp,a.A$,a.HK,e=>e.brush.height,function(e){return(0,l.W)(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:s.tQ),0)},function(e){return(0,l.W)(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:s.tQ),0)},function(e){return(0,l.h)(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return(0,l.h)(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},i.ff,i.dc],(e,t,r,n,i,a,l,s,u,d)=>{var f={left:(r.left||0)+i,right:(r.right||0)+a},h=c(c({},{top:(r.top||0)+l,bottom:(r.bottom||0)+s}),f),p=h.bottom;h.bottom+=n;var m=e-(h=(0,o.s0)(h,u,d)).left-h.right,g=t-h.top-h.bottom;return c(c({brushBottom:p},h),{},{width:Math.max(m,0),height:Math.max(g,0)})}),f=(0,n.Mz)(d,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),h=(0,n.Mz)(a.Lp,a.A$,(e,t)=>({x:0,y:0,width:e,height:t}))},2426:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true}
vendor: 4,172 bytes, line 1
1,"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2644:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});var n=r(12115);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)({height:0,left:0,top:0,width:0}),i=(0,n.useCallback)(e=>{if(null!=e){var n=e.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,i]}},2834:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>h,bN:()=>u});var n=r(12115);r(30789);var i={notify(){},get:()=>[]},o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a="u">typeof navigator&&"ReactNative"===navigator.product,l=o||a?n.useLayoutEffect:n.useEffect;function s(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function u(e,t){if(s(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!s(e[r[n]],t[r[n]]))return!1;return!0}var c=Symbol.for("react-redux-context"),d="u">typeof globalThis?globalThis:{},f=function(){if(!n.createContext)return{};let e=d[c]??=new Map,t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}(),h=function(e){let{children:t,context:r,serverState:o,store:a}=e,s=n.useMemo(()=>{let e=function(e){let t,r=i,n=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){if(n++,!t){let n,i;t=e.subscribe(a),n=null,i=null,r={clear(){n=null,i=null},notify(){let e=n;for(;e;)e.callback(),e=e.next},get(){let e=[],t=n;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=i={callback:e,next:null,prev:i};return r.prev?r.prev.next=r:n=r,function(){t&&null!==n&&(t=!1,r.next?r.next.prev=r.prev:i=r.prev,r.prev?r.prev.next=r.next:n=r.next)}}}}}function s(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=i)}let u={addNestedSub:function(e){l();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>r};return u}(a);return{store:a,subscription:e,getServerState:o?()=>o:void 0}},[a,o]),u=n.useMemo(()=>a.getState(),[a]);return l(()=>{let{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,u]),n.createElement((r||f).Provider,{value:s},t)}},2842:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>w});var n=e=>Array.isArray(e)?e:[e],i=0,o=class{revision=i;_value;
1_lastValue;_isEqual=a;constructor(e,t=a){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++i)}};function a(e,t){return e===t}function l(e){return e instanceof o||console.warn("Not a valid cell! ",e),e.value}var s=(e,t)=>!1;function u(){return function(e=a){return new o(null,e)}(s)}var c=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=u()),l(t)};Symbol();var d=0,f=Object.getPrototypeOf({}),h=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,p);tag=u();tags={};children={};collectionTag=null;id=d++},p={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in f)return n;if("object"==typeof n&&null!==n){var i;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(i=n)?new m(i):new h(i)),r.tag&&l(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=u()).value=n),l(r),n}})(),ownKeys:e=>(c(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},m=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],g);tag=u();tags={};children={};collectionTag=null;id=d++},g={get:([e],t)=>("length"===t&&c(e),p.get(e,t)),ownKeys:([e])=>p.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>p.getOwnPropertyDescriptor(e,t),has:([e],t)=>p.has(e,t)},y="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function v(){return{s:0,v:void 0,o:null,p:null}}function b(e,t={}){let r,n=v(),{resultEqualityCheck:i}=t,o=0;function a(){let t,a=n,{length:l}=arguments;for(let e=0;e<l;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=a.o;null===e&&(a.o=e=new WeakMap);let r=e.get(t);void 0===r?(a=v(),e.set(t,a)):a=r}else{let e=a.p;null===e&&(a.p=e=new Map);let r=e.get(t);void 0===r?(a=v(),e.set(t,a)):a=r}}let s=a;if(1===a.s)t=a.v;else if(t=e.apply(null,arguments),o++,i){let e=r?.deref?.()??r;null!=e&&i(e,t)&&(t=e,0!==o&&o--),r="object"==typeof t&&null!==t||"function"==typeof t?new y(t):t}return s.s=1,s.v=t,t}return a.clearCache=()=>{n=v(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}var w=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i,o=0,a=0,l={},s=e.pop();"object"==typeof s&&(l=s,s=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let{memoize:u,memoizeOptions:c=[],argsMemoize:d=b,argsMemoizeOptions:f=[],devModeChecks:h={}}={...r,...l},p=n(c),m=n(f),g=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),y=u(function(){return o++,s.apply(null,arguments)},...p);return Object.assign(d(function(){a++;let e=function(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(g,arguments);return i=y.apply(null,e)},...m),{resultFunc:s,memoizedResultFunc:y,dependencies:g,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>i,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:d})};return Object.assign(i,{withTypes:()=>i}),i}(b),x=Object.assign((e,t=w)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>x})},2929:(e,t,r)=>{"use strict";r.d(t,{TreeListView:()=>K});var n,i=r(95155),o=r(18863),a=r(11022),l=r(89286),s=r(73299),u=r(12115);function c(e){return e?.admin?.custom?.treeView}let d=(0,u.createContext)(null);function f(){let e=(0,u.useContext)(d);if(!e)throw Error("useTreeConfig must be used within a TreeConfigProvider");return e}function h({children:e,collectionSlug:t}){let{config:r,getEntityConfig:n}=(0,a.c)(),o=c(n({collectionSlug:t})),l=o?.parentField??"parent",s=r.serverURL??"",u=r.routes?.api??"/api";return(0,i.jsx)(d.Provider,{value:{apiRoute:u,collectionSlug:t,parentField:l,serverURL:s},children:e})}let p=String.prototype.replace,m=/%20/g,g={RFC1738:function(e){return p.call(e,m,"+")},RFC3986:function(e){return String(e)}},y="RFC3986";Object.prototype.hasOwnProperty;let v=Array.isArray,b=function(){let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),w=function(e,t){if(v(e)){let r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},x=Object.prototype.hasOwnProperty,_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},S=Array.isArray,k=Array.prototype.push,O=function(e,t){k.apply(e,S(t)?t:[t])},C=Date.prototype.toISOString,E={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset
1:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:function(e,t,r,n,i){if(0===e.length)return e;let o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});let a="";for(let e=0;e<o.length;e+=1024){let t=o.length>=1024?o.slice(e,e+1024):o,r=[];for(let e=0;e<t.length;++e){let n=t.charCodeAt(e);if(45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||"RFC1738"===i&&(40===n||41===n)){r[r.length]=t.charAt(e);continue}if(n<128){r[r.length]=b[n];continue}if(n<2048){r[r.length]=b[192|n>>6]+b[128|63&n];continue}if(n<55296||n>=57344){r[r.length]=b[224|n>>12]+b[128|n>>6&63]+b[128|63&n];continue}e+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(e)),r[r.length]=b[240|n>>18]+b[128|n>>12&63]+b[128|n>>6&63]+b[128|63&n]}a+=r.join("")}return a},encodeValuesOnly:!1,format:y,formatter:g[y],indices:!1,serializeDate:function(e){return C.call(e)},skipNulls:!1,strictNullHandling:!1},T={},M=function(e,t,r,n,i,o,a,l,s,u,c,d,f,h,p,m,g,y){var v,b;let x,_=e,k=y,C=0,A=!1;for(;void 0!==(k=k.get(T))&&!A;){let t=k.get(e);if(C+=1,void 0!==t)if(t===C)throw RangeError("Cyclic object value");else A=!0;void 0===k.get(T)&&(C=0)}if("function"==typeof u?_=u(t,_):_ instanceof Date?_=f(_):"comma"===r&&S(_)&&(_=w(_,function(e){return e instanceof Date?f(e):e})),null===_){if(o)return s&&!m?s(t,E.encoder,g,"key",h):t;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||(b=_)&&"object"==typeof b&&b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))return s?[p(m?t:s(t,E.encoder,g,"key",h))+"="+p(s(_,E.encoder,g,"value",h))]:[p(t)+"="+p(String(_))];let N=[];if(void 0===_)return N;if("comma"===r&&S(_))m&&s&&(_=w(_,s)),x=[{value:_.length>0?_.join(",")||null:void 0}];else if(S(u))x=u;else{let e=Object.keys(_);x=c?e.sort(c):e}let P=l?t.replace(/\./g,"%2E"):t,j=n&&S(_)&&1===_.length?P+"[]":P;if(i&&S(_)&&0===_.length)return j+"[]";for(let t=0;t<x.length;++t){let v=x[t],b="object"==typeof v&&void 0!==v.value?v.value:_[v];if(a&&null===b)continue;let w=d&&l?v.replace(/\./g,"%2E"):v,k=S(_)?"function"==typeof r?r(j,w):j:j+(d?"."+w:"["+w+"]");y.set(e,C);let E=new WeakMap;E.set(T,y),O(N,M(b,k,r,n,i,o,a,l,"comma"===r&&m&&S(_)?null:s,u,c,d,f,h,p,m,g,E))}return N},A=function(e){let t;if(!e)return E;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let r=e.charset||E.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=y;if(void 0!==e.format){if(!x.call(g,e.format))throw TypeError("Unknown format option provided.");n=e.format}let i=g[n],o=E.filter;if(("function"==typeof e.filter||S(e.filter))&&(o=e.filter),t=e.arrayFormat in _?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":E.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let a=void 0===e.allowDots?!0===e.encodeDotInKeys||E.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:E.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:E.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:E.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?E.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:E.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:E.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:E.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:E.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:E.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:E.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:E.strictNullHandling}};r(73321);var N=((n={}).AllAvailable="allAvailable",n.AllInPage="allInPage",n.None="none",n.Some="some",n),P=r(96405);function j(e){return"string"==typeof e?e:null}function I({id:e}){let{selected:t,setSelection:r}
1=(0,s.useSelection)(),n=!!t.get(e);return(0,i.jsx)(s.CheckboxInput,{checked:n,onToggle:()=>r(e)})}function D({childIndex:e=0,columns:t,depth:r,expandedIds:n,node:o,toggleExpand:l}){let{config:u,getEntityConfig:c}=(0,a.c)(),{collectionSlug:d}=f(),{drawerSlug:h,onSelect:p}=(0,s.useListDrawerContext)(),m=!!h,g=String(o.doc.id),y=o.doc.id,v=o.children.length>0,b=n.has(g),w=u.routes?.admin??"/admin",x=`${w}/collections/${d}/${g}`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("tr",{className:`tree-node ${r>0?"tree-node--child":""}`,style:r>0?{animationDelay:`${30*e}ms`}:void 0,children:[!m&&(0,i.jsx)("td",{className:"tree-node__cell tree-node__cell--select",children:(0,i.jsx)(I,{id:y})}),t.map((e,t)=>{let n=function(e,t,r){let n=t.accessor.split(".").reduce((e,t)=>e?.[t],e);if(null==n||""===n){let e="label"in t.field&&"string"==typeof t.field.label?t.field.label:t.accessor;return`<No ${e.charAt(0).toUpperCase()+e.slice(1)}>`}if(Array.isArray(n)){let e=n.length,r=t.field;if(((0,P.eE)(r)||(0,P.MT)(r))&&r.labels){let t=1===e?j(r.labels.singular):j(r.labels.plural);if(t)return`${e} ${t}`}return`${e} ${t.accessor}`}if("object"==typeof n){if("id"in n){let e=function(e,t,r){var n;if(!("object"==typeof(n=t.field)&&null!==n&&"relationTo"in n&&"string"==typeof n.relationTo))return null;let i=r({collectionSlug:t.field.relationTo}),o=i?.admin?.useAsTitle;if(o&&null!=e[o]&&""!==e[o])return String(e[o]);for(let t of["title","name","filename","label","email","slug"])if("string"==typeof e[t]&&e[t])return e[t];return null}(n,t,r)??String(n.id),o="string"==typeof n.mimeType?n.mimeType:"",a="string"==typeof n.thumbnailURL?n.thumbnailURL:"string"==typeof n.url?n.url:null;return o.startsWith("image/")&&a?(0,i.jsxs)("span",{className:"tree-node__upload",children:[(0,i.jsx)("img",{alt:"",className:"tree-node__thumbnail",src:a}),e]}):e}return JSON.stringify(n)}return String(n)}(o.doc,e,c);return 0===t?(0,i.jsx)("td",{className:"tree-node__cell tree-node__cell--first",children:(0,i.jsxs)("div",{className:"tree-node__indent",style:{paddingLeft:`${24*r}px`},children:[(0,i.jsx)("button",{"aria-label":b?"Collapse":"Expand",className:`tree-node__toggle ${v?"":"tree-node__toggle--leaf"}`,onClick:()=>v&&l(g),tabIndex:v?0:-1,type:"button",children:v&&(0,i.jsx)("span",{className:`tree-node__chevron ${b?"tree-node__chevron--expanded":""}`})}),m?(0,i.jsx)("button",{className:"tree-node__link",onClick:()=>p?.({collectionSlug:d,doc:o.doc,docID:g}),type:"button",children:n||g}):(0,i.jsx)("a",{className:"tree-node__link",href:x,children:n||g})]})},e.accessor):(0,i.jsx)("td",{className:"tree-node__cell",children:n},e.accessor)})]}),b&&v&&o.children.map((e,o)=>
1(0,i.jsx)(D,{childIndex:o,columns:t,depth:r+1,expandedIds:n,node:e,toggleExpand:l},String(e.doc.id)))]})}function $(){let{selectAll:e,toggleAll:t}=(0,s.useSelection)(),r=e===N.AllInPage||e===N.AllAvailable,n=e===N.Some;return(0,i.jsx)(s.CheckboxInput,{checked:r,onToggle:()=>t(),partialChecked:n})}let R=(0,u.forwardRef)(function({columnState:e,docs:t},r){let{parentField:n}=f(),{drawerSlug:o}=(0,s.useListDrawerContext)(),a=(0,u.useMemo)(()=>(function(e,t){let r=new Map,n=[];for(let t of e)r.set(String(t.id),{children:[],doc:t});for(let i of e){let e=r.get(String(i.id)),o=i[t],a="object"==typeof o&&null!==o?String(o.id):null!=o?String(o):null;a&&r.has(a)?r.get(a).children.push(e):n.push(e)}return n})(t,n),[t,n]),[l,c]=(0,u.useState)(()=>new Set),d=e=>{c(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})};(0,u.useImperativeHandle)(r,()=>({collapseAll(){c(new Set)},expandAll(){let e=new Set,t=r=>{for(let n of r)n.children.length>0&&(e.add(String(n.doc.id)),t(n.children))};t(a),c(e)}}),[a]);let h=e.filter(e=>e.active);return(0,i.jsx)("div",{className:"tree-table-scroll",children:(0,i.jsxs)("table",{cellPadding:0,cellSpacing:0,className:"tree-table",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[!o&&(0,i.jsx)("th",{className:"tree-table__header-cell tree-table__header-cell--select",children:(0,i.jsx)($,{})}),h.map((e,t)=>(0,i.jsx)("th",{className:`tree-table__header-cell${0===t?" tree-table__header-cell--first-data":""}`,children:e.Heading??e.accessor},e.accessor))]})}),(0,i.jsx)("tbody",{children:a.map(e=>(0,i.jsx)(D,{columns:h,depth:0,expandedIds:l,node:e,toggleExpand:d},String(e.doc.id)))})]})})}),L=(0,u.forwardRef)(function({columnState:e,onDocsLoaded:t},r){let{apiRoute:n,collectionSlug:o,serverURL:a}=f(),{data:l,query:c,refineListData:d}=(0,s.useListQuery)(),h=(0,s.useLocale)(),{drawerSlug:p}=(0,s.useListDrawerContext)(),m=!!p,g=l?.docs??[],y=null!=l&&l.totalDocs<=g.length,v=m&&null!=l&&l.totalDocs>l.docs.length;(0,u.useEffect)(()=>{v&&d({limit:"0"},!1)},[v,d]);let b=(0,u.useRef)(null);(0,u.useEffect)(()=>{m&&y&&g!==b.current&&(b.current=g,t?.(g))},[m,y,g,t]);let[w,x]=(0,u.useState)([]),[k,C]=(0,u.useState)(!0),[E,T]=(0,u.useState)(null),N=(0,u.useRef)(null),P=c?.where?JSON.stringify(c.where):"",j=c?.search??"",I=c?.sort??"";return((0,u.useEffect)(()=>{if(m)return;N.current?.abort();let e=new AbortController;return N.current=e,(async()=>{T(null);try{let r={depth:1,limit:0};P&&(r.where=JSON.parse(P)),j&&(r.search=j),I&&(r.sort=I),h?.code&&(r.locale=h.code);let i=function(e,t){let r,n=e,i=A(t);"function"==typeof i.filter?n=(0,i.filter)("",n):S(i.filter)&&(r=i.filter);let o=[];if("object"!=typeof n||null===n)return"";let a=_[i.arrayFormat],l="comma"===a&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);let s=new WeakMap;for(let e=0;e<r.length;++e){let t=r[e];i.skipNulls&&null===n[t]||O(o,M(n[t],t,a,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}let u=o.join(i.delimiter),c=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),u.length>0?c+u:""}(r,{addQueryPrefix:!0}),l=`${a}${n}/${o}${i}`,s=await fetch(l,{credentials:"include",signal:e.signal});if(!s.ok)throw Error(`Failed to fetch documents: ${s.status}`);let u=(await s.json()).docs??[];x(u),t?.(u)}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;T(e instanceof Error?e.message:"Unknown error")}finally{C(!1)}})(),()=>e.abort()},[m,o,a,n,P,j,I,h?.code,t]),m)?y?0===g.length?(0,i.jsx)("div",{className:"tree-view__empty",children:"No documents found."}):(0,i.jsx)(R,{columnState:e,docs:g,ref:r}):(0,i.jsx)("div",{className:"tree-view__loading",children:"Loading..."}):k?(0,i.jsx)("div",{className:"tree-view__loading",children:"Loading..."}):E?(0,i.jsxs)("div",{className:"tree-view__error",children:["Error: ",E]}):0===w.length?(0,i.jsx)("div",{className:"tree-view__empty",children:"No documents found."}):(0,i.jsx)(R,{columnState:e,docs:w,ref:r})});r(9850);let z="payload-tree-view-mode",F="collection-list",B=()=>{};function K(e){let{AfterList:t,AfterListTable:r,beforeActions:n,BeforeList:d,BeforeListTable:f,collectionSlug:p,columnState:m,Description:g,disableBulkDelete:y,disableBulkEdit:v,disableQueryPresets:b,hasCreatePermission:w,listMenuItems:x,newDocumentURL:_,queryPreset:S,queryPresetPermissions:k,renderedFilters:O,resolvedFilterOptions:C}=e,{getEntityConfig:E}=(0,a.c)(),T=E({collectionSlug:p}),M=c(T),A=M?.allowToggle??!0,{labels:N,upload:P}=T,j=!!P&&T.upload?.bulkUpload,{i18n:I,t:D}=(0,l.d)(),{setStepNav:$}
1=(0,s.useStepNav)(),{user:R}=(0,s.useAuth)(),{breakpoints:{s:K}}=(0,s.useWindowInfo)(),[U,W]=(0,u.useState)(()=>A&&"u">typeof window&&localStorage.getItem(z)||"tree");(0,u.useEffect)(()=>{A&&localStorage.setItem(z,U)},[U,A]),(0,u.useEffect)(()=>{$([{label:(0,o.s)(N?.plural,I)}])},[$,N,I]);let H=(0,u.useRef)(null),[q,J]=(0,u.useState)([]),V=(0,u.useCallback)(e=>{J(e)},[]),G=A?(0,i.jsx)("button",{className:"tree-view-toggle__btn",onClick:()=>W(e=>"tree"===e?"list":"tree"),type:"button",children:"tree"===U?"Switch to List View":"Switch to Tree View"}):null;return"list"===U?(0,i.jsx)(s.DefaultListView,{...e,BeforeListTable:(0,i.jsxs)(i.Fragment,{children:[G&&(0,i.jsx)("div",{className:"tree-toolbar",children:G}),f]})}):R?(0,i.jsx)(s.TableColumnsProvider,{collectionSlug:p,columnState:m,children:(0,i.jsx)("div",{className:`${F} ${F}--${p}`,children:(0,i.jsxs)(s.SelectionProvider,{docs:q,totalDocs:q.length,user:R,children:[d,(0,i.jsxs)(s.Gutter,{className:`${F}__wrap`,children:[(0,i.jsx)(s.ListHeader,{collectionConfig:T,Description:g||T?.admin?.description?(0,i.jsx)("div",{className:`${F}__sub-header`,children:(0,i.jsx)(s.RenderCustomComponent,{CustomComponent:g,Fallback:(0,i.jsx)(s.ViewDescription,{collectionSlug:p,description:T.admin?.description??""})})}):void 0,disableBulkDelete:y,disableBulkEdit:v,hasCreatePermission:w,i18n:I,isBulkUploadEnabled:!!j,newDocumentURL:_,openBulkUpload:B,smallBreak:K,t:D}),(0,i.jsx)(s.ListControls,{beforeActions:n,collectionConfig:T,collectionSlug:p,disableQueryPresets:T?.enableQueryPresets!==!0||b,listMenuItems:x,queryPreset:S,queryPresetPermissions:k,renderedFilters:O,resolvedFilterOptions:C}),(0,i.jsxs)("div",{className:"tree-toolbar",children:[G,(0,i.jsxs)("div",{className:"tree-controls",children:[(0,i.jsx)("button",{"aria-label":"Expand all",className:"tree-controls__btn",onClick:()=>H.current?.expandAll(),type:"button",children:(0,i.jsxs)("svg",{fill:"none",height:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 16 16",width:"16",children:[(0,i.jsx)("path",{d:"M4 3l4 4 4-4"}),(0,i.jsx)("path",{d:"M4 9l4 4 4-4"})]})}),(0,i.jsx)("button",{"aria-label":"Collapse all",className:"tree-controls__btn",onClick:()=>H.current?.collapseAll(),type:"button",children:(0,i.jsxs)("svg",{fill:"none",height:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 16 16",width:"16",children:[(0,i.jsx)("path",{d:"M4 13l4-4 4 4"}),(0,i.jsx)("path",{d:"M4 7l4-4 4 4"})]})})]})]}),f,(0,i.jsx)(h,{collectionSlug:p,children:(0,i.jsx)(L,{columnState:m,onDocsLoaded:V,ref:H})}),r]}),t]})})}):null}},3202:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});var n=r(19749),i=r(36997),o=r(73299),a=r(53310),l=r(12115),s=(e,t)=>{let r,s=(0,n.c)(24),[u]=(0,i.DF)(),[c,d]=(0,l.useState)(null),[f,h]=(0,l.useState)(!1),{closeModal:p,modalState:m,toggleModal:g}=(0,o.useModal)(),y;s[0]!==u?(y=()=>{u.read(()=>{d((0,a.vJq)()??(0,a.S1w)())})},s[0]=u,s[1]=y):y=s[1];let v=y,b;s[2]!==u||s[3]!==c?(b=()=>{c&&u.update(()=>{(0,a.n1P)(c.clone())},{discrete:!0,skipTransforms:!0})},s[2]=u,s[3]=c,s[4]=b):b=s[4];let w=b,x;s[5]!==p||s[6]!==e?(x=()=>{p(e)},s[5]=p,s[6]=e,s[7]=x):x=s[7];let _=x,S=m?.[e]?.isOpen,k;s[8]!==S||s[9]!==w||s[10]!==e||s[11]!==v||s[12]!==g?(k=()=>{S?w():v(),h(!0),g(e)},s[8]=S,s[9]=w,s[10]=e,s[11]=v,s[12]=g,s[13]=k):k=s[13];let O=k,C,E;return s[14]!==m||s[15]!==t||s[16]!==w||s[17]!==e||s[18]!==f?(C=()=>{if(!f)return;let r=m[e];r&&!r?.isOpen&&(h(!1),t?setTimeout(()=>{w()},0):w())},E=[m,e,w,f,t],s[14]=m,s[15]=t,s[16]=w,s[17]=e,s[18]=f,s[19]=C,s[20]=E):(C=s[19],E=s[20]),(0,l.useEffect)(C,E),s[21]!==_||s[22]!==O?(r={closeDrawer:_,toggleDrawer:O},s[21]=_,s[22]=O,s[23]=r):r=s[23],r}},3379:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>a});var n=r(19749),i=r(95155),o=r(73299);r(12115);let a=e=>{let t,r,a=(0,n.c)(6),{baseClass:l}=e,{navOpen:s,setNavOpen:u}=(0,o.useNav)(),c=`${l}__mobile-close`;a[0]!==u?(t=()=>{u(!1)},a[0]=u,a[1]=t):t=a[1];let d=s?void 0:-1;return a[2]!==c||a[3]!==t||a[4]!==d?(r=(0,i.jsx)("button",{className:c,onClick:t,tabIndex:d,type:"button",children:(0,i.jsx)(o.Hamburger,{isActive:!0})}),a[2]=c,a[3]=t,a[4]=d,a[5]=r):r=a[5],r}},3608:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});var n=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];
1if(i="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==i)return e.tooltipItemPayloads;if(null==i&&(null!=n||e.keyboardInteraction.active)){var i,o=e.tooltipItemPayloads[0];return null!=o?[o]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null==(t=e.settings)?void 0:t.graphicalItemId)===i})}},3636:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]])},3882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(89034).validateUnion,error:{message:"must match a schema in anyOf"}}},4284:(e,t,r)=>{"use strict";r.d(t,{l3:()=>w,m7:()=>x});var n=r(12115),i=r(10365),o=r(90744),a=new(r(64411)),l="recharts.syncEvent.tooltip",s="recharts.syncEvent.brush",u=r(95295),c=r(74624),d=r(64289),f=r(541);function h(e){return e.tooltip.syncInteraction}var p=r(65372),m=r(10301),g=r(92191),y=["x","y"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(){var e,t,r,d,h,v,w,x,_,S,k,O=(0,i.j)();(0,n.useEffect)(()=>{O((0,u.dl)())},[O]),e=(0,i.G)(o.lZ),t=(0,i.G)(o.pH),r=(0,i.j)(),d=(0,i.G)(o.hX),h=(0,i.G)(f.R4),v=(0,p.WX)(),w=(0,p.sk)(),x=(0,i.G)(e=>e.rootProps.className),(0,n.useEffect)(()=>{if(null==e)return g.lQ;var n=(n,i,o)=>
1{if(t!==o&&e===n){if(!1===i.payload.active)return void r((0,c.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));if("index"===d){if(w&&null!=i&&null!=(a=i.payload)&&a.coordinate&&i.payload.sourceViewBox){var a,l,s=i.payload.coordinate,{x:u,y:f}=s,p=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(s,y),{x:m,y:g,width:x,height:_}=i.payload.sourceViewBox,S=b(b({},p),{},{x:w.x+(x?(u-m)/x:0)*w.width,y:w.y+(_?(f-g)/_:0)*w.height});r(b(b({},i),{},{payload:b(b({},i.payload),{},{coordinate:S})}))}else r(i);return}if(null!=h){if("function"==typeof d){var k=d(h,{activeTooltipIndex:null==i.payload.index?void 0:Number(i.payload.index),isTooltipActive:i.payload.active,activeIndex:null==i.payload.index?void 0:Number(i.payload.index),activeLabel:i.payload.label,activeDataKey:i.payload.dataKey,activeCoordinate:i.payload.coordinate});l=h[k]}else"value"===d&&(l=h.find(e=>String(e.value)===i.payload.label));var{coordinate:O}=i.payload;
1if(null==O||null==w)return void r((0,c.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));if(null==l)return void r((0,c.E1)({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:i.payload.sourceViewBox,graphicalItemId:void 0}));var{x:C,y:E}=O,T=Math.min(C,w.x+w.width),M=Math.min(E,w.y+w.height),A={x:"horizontal"===v?l.coordinate:T,y:"horizontal"===v?M:l.coordinate};r((0,c.E1)({active:i.payload.active,coordinate:A,dataKey:i.payload.dataKey,index:String(l.index),label:i.payload.label,sourceViewBox:i.payload.sourceViewBox,graphicalItemId:i.payload.graphicalItemId}))}}};return a.on(l,n),()=>{a.off(l,n)}},[x,r,t,e,d,h,v,w]),_=(0,i.G)(o.lZ),S=(0,i.G)(o.pH),k=(0,i.j)(),(0,n.useEffect)(()=>{if(null==_)return g.lQ;var e=(e,t,r)=>{S!==r&&_===e&&k((0,m.M)(t))};return a.on(s,e),()=>{a.off(s,e)}},[k,S,_])}function x(e,t,r,s,u,m){var g=(0,i.G)(r=>(0,d.dp)(r,e,t)),y=(0,i.G)(f.fx),v=(0,i.G)(o.pH),b=(0,i.G)(o.lZ),w=(0,i.G)(o.hX),x=(0,i.G)(h),_=(null==x?void 0:x.sourceViewBox)!=null,S=(0,p.sk)();(0,n.useEffect)(()=>{if(!_&&null!=b&&null!=v){var e=(0,c.E1)({active:m,coordinate:r,dataKey:g,index:u,label:"number"==typeof s?String(s):s,sourceViewBox:S,graphicalItemId:y});a.emit(l,b,e,v)}},[_,r,g,y,u,s,v,b,w,m,S])}},4378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;let n=r(25103),i=r(69762);var o=r(25103);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=r(69762);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class l{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends l{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){let r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class u extends l{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,e,t),this}get names(){return N(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends l{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends l{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){let t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends l{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends l{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}
1optimizeNames(e,t){return this.code=P(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends l{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,n=r.length;for(;n--;){let i=r[n];i.optimizeNames(e,t)||(function(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>A(e,t.names),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class v extends g{}v.kind="else";class b extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(j(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null==(r=this.else)?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=P(this.condition,e,t),this}get names(){let e=super.names;return N(e,this.condition),this.else&&A(e,this.else.names),e}}b.kind="if";class w extends g{}w.kind="for";class x extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=P(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class _ extends w{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){let t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){let e=N(super.names,this.from);return N(e,this.to)}}class S extends w{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=P(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class k extends g{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){let t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class O extends m{render(e){return"return "+super.render(e)}}O.kind="return";class C extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null==(e=this.catch)||e.optimizeNodes(),null==(t=this.finally)||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null==(r=this.catch)||r.optimizeNames(e,t),null==(n=this.finally)||n.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class E extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class T extends g{render(e){return"finally"+super.render(e)}}T.kind="finally";class M{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){let i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new s(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new c(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){let t=["{"];for(let[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}
1if(e,t,r){if(this._blockNode(new b(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,r,n,o=this.opts.es5?i.varKinds.var:i.varKinds.let){let a=this._scope.toName(e);return this._for(new _(o,a,t,r),()=>n(a))}forOf(e,t,r,o=i.varKinds.const){let a=this._scope.toName(e);if(this.opts.es5){let e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,t=>{this.var(a,(0,n._)`${e}[${t}]`),r(a)})}return this._for(new S("of",o,a,t),()=>r(a))}forIn(e,t,r,o=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,n._)`Object.keys(${t})`,r);let a=this._scope.toName(e);return this._for(new S("in",o,a,t),()=>r(a))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){let t=new O;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new C;if(this._blockNode(n),this.code(e),t){let e=this.name("e");this._currNode=n.catch=new E(e),t(e)}return r&&(this._currNode=n.finally=new T,this.code(r)),this._endBlockNode(E,T)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(void 0===t)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new k(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof b))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}function A(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function N(e,t){return t instanceof n._CodeOrName?A(e,t.names):e}function P(e,t,r){var i;if(e instanceof n.Name)return o(e);if(!((i=e)instanceof n._Code&&i._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str])))return e;return new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[]));function o(e){let n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function j(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,n._)`!${R(e)}`}t.CodeGen=M,t.not=j;let I=$(t.operators.AND);t.and=function(...e){return e.reduce(I)};let D=$(t.operators.OR);function $(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${R(t)} ${e} ${R(r)}`}function R(e){return e instanceof n.Name?e:(0,n._)`(${e})`}t.or=function(...e){return e.reduce(D)}},4429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(6298),i=r(88101),o=r(87561),a=r(44681),l=r(1442),s=r(5018),u=r(45034),c=r(97303),d=r(51630),f=r(96338),h=r(9976),p=r(3882),m=r(89920),g=r(76059),y=r(98820),v=r(39893);t.default=function(e=!1){let t=[h.default,p.default,m.default,g.default,y.default,v.default,u.default,c.default,s.default,d.default,f.default];return e?t.push(i.default,a.default):t.push(n.default,o.default),t.pu
1sh(l.default),t}},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(89034),i=r(4378),o=r(83732);t.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,i.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,i._)`{missingProperty: ${e}}`},code(e){let{gen:t,schema:r,schemaCode:a,data:l,$data:s,it:u}=e,{opts:c}=u;if(!s&&0===r.length)return;let d=r.length>=c.loopRequired;if(u.allErrors?function(){if(d||s)e.block$data(i.nil,f);else for(let t of r)(0,n.checkReportMissingProp)(e,t)}():function(){let o=t.let("missing");if(d||s){let r=t.let("valid",!0);e.block$data(r,()=>{var s,u;return s=o,u=r,void(e.setParams({missingProperty:s}),t.forOf(s,a,()=>{t.assign(u,(0,n.propertyInData)(t,l,s,c.ownProperties)),t.if((0,i.not)(u),()=>{e.error(),t.break()})},i.nil))}),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,o)),(0,n.reportMissingProp)(e,o),t.else()}(),c.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of r)if((null==t?void 0:t[e])===void 0&&!n.has(e)){let t=u.schemaEnv.baseId+u.errSchemaPath,r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,o.checkStrictMode)(u,r,u.opts.strictRequired)}}function f(){t.forOf("prop",a,r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,l,r,c.ownProperties),()=>e.error())})}}}},4873:(e,t,r)=>{"use strict";var n=r(12115).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},4879:()=>{},4882:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(48796);t.toFinite=function(e){return e?(e=n.toNumber(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e==e?e:0:0===e?e:0}},4903:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]])},5018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;let n=r(4378),i=r(83732),o=r(89034);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>(0,n.str)`must have ${1===t?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,n._)`{property: ${e}, 2 missingProperty: ${i}, 3 depsCount: ${t}, 4 deps: ${r}}`};let a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){let[t,r]=function({schema:e}){let t={},r={};for(let n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);l(e,t),s(e,r)}};function l(e,t=e.schema){let{gen:r,data:i,it:a}=e;if(0===Object.keys(t).length)return;let s=r.let("missing");for(let l in t){let u=t[l];if(0===u.length)continue;let c=(0,o.propertyInData)(r,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),a.allErrors?r.if(c,()=>{for(let t of u)(0,o.checkReportMissingProp)(e,t)}):(r.if((0,n._)`${c} && (${(0,o.checkMissingProp)(e,u,s)})`),(0,o.reportMissingProp)(e,s),r.else())}}function s(e,t=e.schema){let{gen:r,data:n,keyword:a,it:l}=e,u=r.name("valid");for(let s in t)(0,i.alwaysValidSchema)(l,t[s])||(r.if((0,o.propertyInData)(r,n,s,l.opts.ownProperties),()=>{let t=e.subschema({keyword:a,schemaProp:s},u);e.mergeValidEvaluated(t,u)},()=>r.var(u,!0)),e.ok(u))}t.validatePropertyDeps=l,t.validateSchemaDeps=s,t.default=a},5364:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});var n=e=>e.tooltip},5576:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");let r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}},5768:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});var n=e=>e.options.tooltipPayloadSearcher},5772:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(97651),i=r.n(n)},6253:(e,t,r)=>{"use strict";r.d(t,{G:()=>S});var n=r(16755),i=r(62239),o=r(53310);let a=[];class l extends o.fGB{__ids;static getType(){return"mark"}static clone(e){return new l(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){return s().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIDs(e.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}constructor(e=a,t){super(t),this.__ids=e}createDOM(e){let t=document.createElement("mark");return(0,o.ZB7)(t,e.theme.mark),this.__ids.length>
41&&(0,o.ZB7)(t,e.theme.markOverlap),t}updateDOM(e,t,r){let n=e.__ids,i=this.__ids,a=n.length,l=i.length,s=r.theme.markOverlap;return a!==l&&(1===a?2===l&&(0,o.ZB7)(t,s):1===l&&(0,o.HEf)(t,s)),!1}hasID(e){return this.getIDs().includes(e)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(e){let t=this.getWritable();return t.__ids=e,t}addID(e){let t=this.getWritable();return t.__ids.includes(e)?t:t.setIDs([...t.__ids,e])}deleteID(e){let t=this.getWritable(),r=t.__ids.indexOf(e);if(-1===r)return t;let n=Array.from(t.__ids);return n.splice(r,1),t.setIDs(n)}insertNewAfter(e,t=!0){let r=s(this.__ids);return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,o.I2P)(t)||"html"===r)return!1;let n=t.anchor,i=t.focus,a=n.getNode(),l=i.getNode(),s=t.isBackward()?n.offset-i.offset:i.offset-n.offset;return this.isParentOf(a)&&this.isParentOf(l)&&this.getTextContent().length===s}excludeFromCopy(e){return"clone"!==e}}function s(e=a){return(0,o.pTq)(new l(e))}(0,o.vE9)({name:"@lexical/mark",nodes:()=>[l]});var u=r(8625),c=r(12115),d=r(95155);let f=Object.freeze({" ":"\\t","\n":"\\n"}),h=RegExp(Object.keys(f).join("|"),"g"),p=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"â",isLastChild:"â",selectedChar:"^",selectedLine:">"}),m=[e=>e.hasFormat("bold")&&"Bold",e=>e.hasFormat("code")&&"Code",e=>e.hasFormat("italic")&&"Italic",e=>e.hasFormat("strikethrough")&&"Strikethrough",e=>e.hasFormat("subscript")&&"Subscript",e=>e.hasFormat("superscript")&&"Superscript",e=>e.hasFormat("underline")&&"Underline",e=>e.hasFormat("highlight")&&"Highlight"],g=[e=>e.hasTextFormat("bold")&&"Bold",e=>e.hasTextFormat("code")&&"Code",e=>e.hasTextFormat("italic")&&"Italic",e=>e.hasTextFormat("strikethrough")&&"Strikethrough",e=>e.hasTextFormat("subscript")&&"Subscript",e=>e.hasTextFormat("superscript")&&"Superscript",e=>e.hasTextFormat("underline")&&"Underline",e=>e.hasTextFormat("highlight")&&"Highlight"],y=[e=>e.isDirectionless()&&"Directionless",e=>e.isUnmergeable()&&"Unmergeable"],v=[e=>e.isToken()&&"Token",e=>e.isSegmented()&&"Segmented"];function b(e,t=!1){let r=Object.entries(f).reduce((e,[t,r])=>e.replace(RegExp(t,"g"),String(r)),e);return t?r.replace(/[^\s]/g,"*"):r}function w(e){let t=m.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase();return""!==t&&(t="format: "+t),t}function x(e){if(!e.__state)return!1;let t=[];for(let[r,n]of e.__state.knownState.entries()){if(r.isEqual(n,r.defaultValue))continue;let e=JSON.stringify(r.unparse(n));t.push(`[${r.key}: ${e}]`)}let r=t.join(",");return""!==r&&(r="state: "+r),r}let _=(0,c.forwardRef)(function({treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:n,viewClassName:i,timeTravelPanelClassName:o,editorState:a,setEditorState:l,setEditorReadOnly:s,generateContent:u,commandsLog:f=[]},h){let[p,m]=(0,c.useState)([]),[g,y]=(0,c.useState)(""),[v,b]=(0,c.useState)(!1),[w,x]=(0,c.useState)(!1),_=(0,c.useRef)(0),S=(0,c.useRef)(null),[k,O]=(0,c.useState)(!1),[C,E]=(0,c.useState)(!1),[T,M]=(0,c.useState)(!1),A=(0,c.useRef)(null),N=(0,c.useRef)([]),P=(0,c.useRef)(0),j=(0,c.useCallback)(e=>{let t=++P.current;u(e).then(e=>{t===P.current&&y(e)}).catch(e=>{t===P.current&&y(`Error rendering tree: ${e.message} 5 6Stack: 7${e.stack}`)})},[u]);(0,c.useEffect)(()=>{if((T||!(a._nodeMap.size>1e3)||(E(!0),T))&&(A.current!==a||N.current!==f)){let e=A.current!==a;A.current=a,N.current=f,j(w),!v&&e&&m(e=>[...e,[Date.now(),a]])}},[a,j,w,T,v,f]);let I=p.length;return(0,c.useEffect)(()=>{if(k){let e,t=()=>{let r=_.current;if(r===I-1)return void O(!1);let n=p[r][0];e=setTimeout(()=>{_.current++;let e=_.current,r=S.current;null!==r&&(r.value=String(e)),l(p[e][1]),t()},p[r+1][0]-n)};return t(),()=>{clearTimeout(e)}}},[p,k,I,l]),(0,d.jsxs)("div",{className:i,children:[!T&&C?(0,d.jsxs)("div",{style:{padding:20},children:[(0,d.jsx)("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),(0,d.jsx)("button",{onClick:()=>{M(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,T?null:(0,d.jsx)("button",{onClick:()=>(j(!w),void x(!w)),className:e,type:"button",children:w?"Tree":"Export DOM"}),!v&&(T||!C)&&I>2&&(0,d.jsx)("button",{onClick:()=>{s(!0),_.current=I-1,b(!0)},className:t,type:"button",children:"Time Travel"}),(T||!C)&&(0,d.jsx)("pre",{ref:h,children:g}),v&&(T||!C)&&(0,d.jsxs)("div",{className:o,children:[(0,d.jsx)("button",{className:n,onClick:()=>{_.current===I-1&&(_.current=1),O(!k)},type:"button",children:k?"Pause":"Play"}),(0,d.jsx)("input",{className:r,ref:S,onChange:e=>{let t=Number(e.target.value),r=p[t];r&&(_.current=t,l(r[1]))},type:"range",min:"1",max:I-1}),(0,d.jsx)("button",{className:n,onClick:()=>{s(!1);let e=p.length-1;l(p[e][1]);let t=S.current;null!==t&&(t.value=String(e)),b(!1),O(!1)},type:"button",children:"Exit"})]})]})});function S({treeTypeButtonClassName:e,timeTravelButtonClassName:t,t
7imeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:a,timeTravelPanelClassName:s,viewClassName:f,editor:m,customPrintNode:k}){let O=c.createRef(),[C,E]=(0,c.useState)(m.getEditorState()),T=function(e){let[t,r]=(0,c.useState)([]);return(0,c.useEffect)(()=>(function(e,t){let r=new Set,n=0;for(let[i]of e._commands)r.add(e.registerCommand(i,e=>(t(t=>{let r=[...t];return r.push({index:n+=1,payload:e,type:i.type?i.type:"UNKNOWN"}),r.length>10&&r.shift(),r}),!1),o.da8));return()=>r.forEach(e=>e())})(e,r),[e]),(0,c.useMemo)(()=>t,[t])}(m);return(0,c.useEffect)(()=>(0,o.Sdt)(m.registerUpdateListener(({editorState:e})=>{E(e)}),m.registerEditableListener(()=>{E(m.getEditorState())})),[m]),(0,c.useEffect)(()=>{let e=O.current;if(null!==e)return e.__lexicalEditor=m,()=>{e.__lexicalEditor=null}},[m,O]),(0,d.jsx)(_,{treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:a,viewClassName:f,timeTravelPanelClassName:s,setEditorReadOnly:e=>{let t=m.getRootElement();null!=t&&(t.contentEditable=e?"false":"true")},editorState:C,setEditorState:e=>m.setEditorState(e),generateContent:async function(e){return function(e,t,r,a,s=!1){let c=e.getEditorState(),d=e._config,f=e._compositionKey,m=e._editable;if(r){let t="";return c.read(()=>{var r;let i;r=(0,n.g)(e),(i=document.createElement("div")).innerHTML=r.trim(),t=function e(t,r){let n,i=Array(1+r++).join(" "),o=Array(r-1).join(" ");for(let a=0;a<t.children.length;a++)n=document.createTextNode("\n"+i),t.insertBefore(n,t.children[a]),e(t.children[a],r),t.lastElementChild===t.children[a]&&(n=document.createTextNode("\n"+o),t.appendChild(n));return t}(i,0).innerHTML}),t}let _=" root\n",S=c.read(()=>{let e,t,r,n,c,d,f=(0,o.vJq)();return function e(t,r,n=[]){let i=t.getChildren(),a=i.length;i.forEach((t,i)=>{r(t,n.concat(i===a-1?p.isLastChild:p.hasNextSibling)),(0,o.ff4)(t)&&e(t,r,n.concat(i===a-1?p.ancestorIsLastChild:p.ancestorHasNextSibling))})}((0,o.NiT)(),(e,t)=>{let r=`(${e.getKey()})`,n=e.getType()||"",u=e.isSelected();_+=`${u?p.selectedLine:" "} ${t.join(" ")} ${r} ${n} ${function(e,t,r=!1){let n=t?t(e,r):void 0;if(void 0!==n&&n.length>0)return n;if((0,o.kFe)(e)){var a,s;let t,n,i=e.getTextContent(),o=0===i.length?"(empty)":`"${b(i,r)}"`,l=[w(e),(a=e,""!==(t=y.map(e=>e(a)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="detail: "+t),t),(s=e,""!==(n=v.map(e=>e(s)).filter(Boolean).join(", ").toLocaleLowerCase())&&(n="mode: "+n),n),x(e)].filter(Boolean).join(", ");return[o,0!==l.length?`{ ${l} }`:null].filter(Boolean).join(" ").trim()}if((0,i.FJ)(e)){let t,n,i,o=e.getURL(),a=0===o.length?"(empty)":`"${b(o,r)}"`,l=[(null!=(t=e.getTarget())&&(t="target: "+t),t),(null!=(n=e.getRel())&&(n="rel: "+n),n),(null!=(i=e.getTitle())&&(i="title: "+i),i),x(e)].filter(Boolean).join(", ");return[a,0!==l.length?`{ ${l} }`:null].filter(Boolean).join(" ").trim()}if(e instanceof l)return`ids: [ ${e.getIDs().join(", ")} ]`;if((0,o.bSg)(e)){let t,r=(""!==(t=g.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="format: "+t),t);return(""!==r?`{ ${r} }`:"")+(e.__style?`(${e.__style})`:"")}return""}(e,a,s)} 8`,_+=function({indent:e,isSelected:t,node:r,nodeKeyDisplay:n,selection:i,typeDisplay:a}){if(!(0,o.kFe)(r)||!(0,o.I2P)(i)||!t||(0,o.ff4)(r))return"";let l=i.anchor,s=i.focus;if(""===r.getTextContent()||l.getNode()===i.focus.getNode()&&l.offset===s.offset)return"";let[u,c]=function(e,t){let r=t.getStartEndPoints();if((0,o.RTZ)(t)||null===r)return[-1,-1];let[n,i]=r,a=e.getTextContent(),l=a.length,s=-1,u=-1;if("text"===n.type&&"text"===i.type){let t=n.getNode(),r=i.getNode();t===r&&e===t&&n.offset!==i.offset?[s,u]=n.offset<i.offset?[n.offset,i.offset]:[i.offset,n.offset]:[s,u]=e===t?t.isBefore(r)?[n.offset,l]:[0,n.offset]:e===r?r.isBefore(t)?[i.offset,l]:[0,i.offset]:[0,l]}let c=(a.slice(0,s).match(h)||[]).length,d=(a.slice(s,u).match(h)||[]).length;return[s+c,u+c+d]}(r,i);if(u===c)return"";let d=e[e.length-1]===p.hasNextSibling?p.ancestorHasNextSibling:p.ancestorIsLastChild,f=[...e.slice(0,e.length-1),d],m=Array(u+1).fill(" "),g=Array(c-u).fill(p.selectedChar),y=a.length+2,v=Array(n.length+y).fill(" ");return[p.selectedLine,f.join(" "),[...v,...m,...g].join("")].join(" ")+"\n"}({indent:t,isSelected:u,node:e,nodeKeyDisplay:r,selection:f,typeDisplay:n})}),null===f?": null":(0,o.I2P)(f)?(e="",t=w(f),e+=`: range ${""!==t?`{ ${t} }`:""} ${""!==f.style?`{ style: ${f.style} } `:""}`,r=f.anchor,n=f.focus,c=r.offset,d=n.offset,e+` 9 â anchor { key: ${r.key}, offset: ${null===c?"null":c}, type: ${r.type} } 10 â focus { key: ${n.key}, offset: ${null===d?"null":d}, type: ${n.type} }`):(0,u.Ln)(f)?`: table 11 â { table: ${f.tableKey}, anchorCell: ${f.anchor.key}
11, focusCell: ${f.focus.key} }`:(0,o.RTZ)(f)?`: node 12 â [${Array.from(f._nodes).join(", ")}]`:""});if(_+="\n selection"+S,_+="\n\n commands:",t.length)for(let{index:e,type:r,payload:n}of t)_+=` 13 â ${e}. { type: ${r}, payload: ${n instanceof Event?n.constructor.name:n} }`;else _+="\n â None dispatched.";let{version:k}=e.constructor;return _+=` 14 15 editor${k?` (v${k})`:""}:`,_+=` 16 â namespace ${d.namespace}`,null!==f&&(_+=` 17 â compositionKey ${f}`),_+=` 18 â editable ${String(m)}`}(m,T,e,k)},ref:O,commandsLog:T})}},6265:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var n=(e,t,r)=>r},6296:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;let n=r(4378),i=r(83732);function o(e,t){let{gen:r,schema:o,data:a,keyword:l,it:s}=e;s.items=!0;let u=r.const("len",(0,n._)`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass((0,n._)`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(s,o)){let o=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(o),()=>{var a;return a=o,void r.forRange("i",t.length,u,t=>{e.subschema({keyword:l,dataProp:t,dataPropType:i.Type.Num},a),s.allErrors||r.if((0,n.not)(a),()=>r.break())})}),e.ok(o)}}t.validateAdditionalItems=o,t.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?o(e,n):(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}}},6342:(e,t,r)=>{"use strict";r.d(t,{J:()=>ee});var n=r(12115),i=r(2834),o=r(61754),a=r(11785),l=r(95295),s=r(74624),u=r(10301),c=r(22377),d=r(95163);function f(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}var h=r(26028),p=r(54490),m=r(30894),g=r(99050),y=(0,a.Z0)({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=(0,m.ss)(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=(0,m.ss)(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push((0,g.h4)(t.payload))},removeLine:(e,t)=>{var r=(0,m.ss)(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:v,removeDot:b,addArea:w,removeArea:x,addLine:_,removeLine:S}=y.actions,k=y.reducer,O={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},C=(0,a.Z0)({name:"brush",initialState:O,reducers:{setBrushSettings:(e,t)=>null==t.payload?O:t.payload}}),{setBrushSettings:E}=C.actions,T=C.reducer,M=r(51124),A=r(67051),N=(0,a.Z0)({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=(0,g.h4)(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=(0,g.h4)(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:P,removeRadiusAxis:j,addAngleAxis:I,removeAngleAxis:D}=N.actions,$=N.reducer,R=r(42381),L=r(7659),z=r(72481),F=r(65583),B=(0,a.Z0)({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),{addErrorBar:K,replaceErrorBar:U,removeErrorBar:W}=B.actions,H=B.reducer,q=r(89933),J=r(80997),V=r(75450),G=r(10254),Y=(0,o.HY)({brush:T,cartesianAxis:h.CA,chartData:u.LV,errorBars:H,eventSettings:V.QG,graphicalItems:p.iZ,layout:c.Vp,legend:M.CU,options:l.lJ,polarAxis:$,polarOptions:R.J,referenceElements:k,renderedTicks:G.ut,rootProps:A.vE,tooltip:s.En,zIndex:J.v3}),Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart";return(0,a.U1)({reducer:Y,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([d.YF.middleware,d.fP.middleware,L.$7.middleware,z.x.middleware,F.k.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat((0,a.CF)({type:"raf"}))},devTools:q.m.devToolsEnabled&&{serialize:{replacer:f},name:"recharts-".concat(t)}})},X=r(64105),Q=r(95334);function ee(e){var{preloadedState:t,children:r,reduxStoreName:o}=e,a=(0,X.r)(),l=(0,n.useRef)(null);if(a)return r;null==l.current&&(l.current=Z(t,o));var s=Q.E;return n.createElement(i.Kq,{context:s,store:l.current},r)}},6431:(e,t,r)=>{"use strict";r.d(t,{ShouldRenderTabs:()=>i});var n=r(73299);let i=e=>{let{children:t}=e,{id:r,collectionSlug:i,globalSlug:o}=(0,n.useDocumentInfo)();return i&&("create"!==r?r:null)||o?t:null}},6868:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});
18let n=r(70446),i=r(58748),o=r(11691);t.sortBy=function(e,...t){let r=t.length;return r>1&&o.isIterateeCall(e,t[0],t[1])?t=[]:r>2&&o.isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),n.orderBy(e,i.flatten(t),["asc"])}},6967:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(22035),i=r(91314),o=r(27403),a=r(53356),l=r(39339),s=r(17475);function u(e,t,r,n=new Map,d){let f=d?.(e,t,r,n);if(void 0!==f)return f;if(l.isPrimitive(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let t=Array(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=u(e[i],i,r,n,d);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[i,o]of(n.set(e,t),e))t.set(i,u(o,i,r,n,d));return t}if(e instanceof Set){let t=new Set;for(let i of(n.set(e,t),e))t.add(u(i,void 0,r,n,d));return t}if(a.isBuffer(e))return e.subarray();if(s.isTypedArray(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=u(e[i],i,r,n,d);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,t),c(t,e,r,n,d),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return n.set(e,t),c(t,e,r,n,d),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return n.set(e,t),c(t,e,r,n,d),t}if(e instanceof Error){let t=structuredClone(e);return n.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,c(t,e,r,n,d),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return n.set(e,t),c(t,e,r,n,d),t}if(e instanceof Number){let t=new Number(e.valueOf());return n.set(e,t),c(t,e,r,n,d),t}if(e instanceof String){let t=new String(e.valueOf());return n.set(e,t),c(t,e,r,n,d),t}if("object"==typeof e&&function(e){switch(i.getTag(e)){case o.argumentsTag:case o.arrayTag:case o.arrayBufferTag:case o.dataViewTag:case o.booleanTag:case o.dateTag:case o.float32ArrayTag:case o.float64ArrayTag:case o.int8ArrayTag:case o.int16ArrayTag:case o.int32ArrayTag:case o.mapTag:case o.numberTag:case o.objectTag:case o.regexpTag:case o.setTag:case o.stringTag:case o.symbolTag:case o.uint8ArrayTag:case o.uint8ClampedArrayTag:case o.uint16ArrayTag:case o.uint32ArrayTag:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return n.set(e,t),c(t,e,r,n,d),t}return e}function c(e,t,r=e,i,o){let a=[...Object.keys(t),...n.getSymbols(t)];for(let n=0;n<a.length;n++){let l=a[n],s=Object.getOwnPropertyDescriptor(e,l);(null==s||s.writable)&&(e[l]=u(t[l],l,r,i,o))}}t.cloneDeepWith=function(e,t){return u(e,void 0,e,new Map,t)},t.cloneDeepWithImpl=u,t.copyProperties=c},7659:(e,t,r)=>{"use strict";r.d(t,{$7:()=>h,Ru:()=>d,Yw:()=>f,uZ:()=>c});var n=r(11785),i=r(74624),o=r(541),a=r(64289),l=r(44531),s=r(12979),u=r(21433),c=(0,n.VP)("keyDown"),d=(0,n.VP)("focus"),f=(0,n.VP)("blur"),h=(0,n.Nc)(),p=null,m=null,g=null;h.startListening({actionCreator:c,effect:(e,t)=>{g=e.payload,null!==p&&(cancelAnimationFrame(p),p=null);var{throttleDelay:r,throttledEvents:n}=t.getState().eventSettings,c="all"===n||n.includes("keydown");null===m||"number"==typeof r&&c||(clearTimeout(m),m=null);var d=()=>{try{var e,r=t.getState();if(!1===r.rootProps.accessibilityLayer)return;var{keyboardInteraction:n}=r.tooltip,c=g;if("ArrowRight"!==c&&"ArrowLeft"!==c&&"Enter"!==c)return;var d=(0,s.P)(n,(0,o.n4)(r),(0,l.K6)(r),(0,o.FO)(r)),f=null==d?-1:Number(d),h=!Number.isFinite(f)||f<0,y=(0,o.R4)(r),v=(0,o.n4)(r),b=(0,u.au)(r,r.tooltip.settings.shared);if("Enter"===c){if(h)return;var w=(0,a.pg)(r,b,"hover",String(n.index));t.dispatch((0,i.o4)({active:!n.active,activeIndex:n.index,activeCoordinate:w}));return}var x=(0,l._y)(r),_="left-to-right"===x?1:-1,S="ArrowRight"===c?1:-1;if(h){var k=(0,l.K6)(r),O=(0,o.FO)(r),C=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(e=-1,S*_>0){for(var E=0;E<v.length;E++)if(null!=(0,s.P)(C(E),v,k,O)){e=E;break}}else for(var T=v.length-1;T>=0;T--)if(null!=(0,s.P)(C(T),v,k,O)){e=T;break}if(e<0)return}else{e=f+S*_;var M=(null==y?void 0:y.length)||v.length;if(0===M||e>=M||e<0)return}var A=(0,a.pg)(r,b,"hover",String(e));t.dispatch((0,i.o4)({active:!0,activeIndex:e.toString(),activeCoordinate:A}))}finally{p=null,m=null}};c?"raf"===r?p=requestAnimationFrame(d):"number"==typeof r&&null===m&&(d(),g=null,m=setTimeout(()=>{g?d():(m=null,p=null)},r)):d()}}),h.startListening({actionCreator:d,effect:(e,t)=>
18{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var o=(0,u.au)(r,r.tooltip.settings.shared),l=(0,a.pg)(r,o,"hover",String("0"));t.dispatch((0,i.o4)({active:!0,activeIndex:"0",activeCoordinate:l}))}}}}),h.startListening({actionCreator:f,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch((0,i.o4)({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}})},7686:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])},7810:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},7915:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},8039:(e,t,r)=>{"use strict";e.exports=r(65538)},8201:(e,t,r)=>{"use strict";r.d(t,{a:()=>s,b:()=>u});var n=r(95155),i=r(36997),o=r(73299),a=r(12115),l=(0,a.createContext)({editorConfig:null,fieldProps:null,uuid:null}),s=({children:e,editorConfig:t,editorContainerRef:r,fieldProps:s,parentContext:u})=>{let[c]=(0,i.DF)(),[d]=(0,a.useState)(()=>Math.random().toString(36).substring(2,12)+Math.random().toString(36).substring(2,12)),f=(0,a.useRef)(new Map),[h,p]=(0,a.useState)(null),m=(0,a.useRef)(new Set),[g,y]=(0,a.useState)(),v=(0,o.useEditDepth)(),b=(0,a.useMemo)(()=>({blurEditor:e=>{m.current.clear()},childrenEditors:f,createdInlineBlock:g,editDepth:v,editor:c,editorConfig:t,editorContainerRef:r,fieldProps:s,focusedEditor:h,focusEditor:e=>{let t=e.uuid;m.current.has(t)||(m.current.add(t),p(e),u?.uuid&&u.focusEditor(e),f.current.forEach(t=>{t.focusEditor(e)}),m.current.clear())},parentEditor:u,registerChild:(e,t)=>{if(!f.current.has(e)){let r=new Map(f.current);r.set(e,t),f.current=r}},setCreatedInlineBlock:y,unregisterChild:e=>{if(f.current.has(e)){let t=new Map(f.current);t.delete(e),f.current=t}},uuid:d}),[g,y,c,f,t,r,v,s,h,u,d]);return(0,n.jsx)(l,{value:b,children:e})},u=()=>{let e=(0,a.use)(l);if(void 0===e)throw Error("useEditorConfigContext must be used within an EditorConfigProvider");return e}},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>M,Ln:()=>m,N0:()=>E,Um:()=>T,Wg:()=>g,X9:()=>a,Ys:()=>f,dL:()=>F,jP:()=>b,n9:()=>O,oM:()=>w,zy:()=>k});var n=r(27050);class i{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,r=65535&e;if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let s=this.ranges[l]-(this.inverted?n:0);if(s>e)break;let u=this.ranges[l+o],c=this.ranges[l+a],d=s+u;if(e<=d){let o=u?e==s?-1:e==d?1:t:t,a=s+n+(o<0?0:c);if(r)return a;let f=e==(t<0?s:d)?null:l/3+(e-s)*65536,h=e==s?2:e==d?1:4;return(t<0?e!=s:e!=d)&&(h|=8),new i(a,h,f)}n+=c-u}return r?e+n:new i(e+n,0,null)}touches(e,t){let r=0,n=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?r:0);if(a>e)break;let l=this.ranges[t+i];if(e<=a+l&&t==3*n)return!0;r+=this.ranges[t+o]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;
18for(let n=0,i=0;n<this.ranges.length;n+=3){let o=this.ranges[n],a=o-(this.inverted?i:0),l=o+(this.inverted?0:i),s=this.ranges[n+t],u=this.ranges[n+r];e(a,a+s,l,l+u),i+=u-s}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class a{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new a(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new a;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new i(e,n,null)}}let l=Object.create(null);class s{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=l[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in l)throw RangeError("Duplicate use of step JSON ID "+e);return l[e]=t,t.prototype.jsonID=e,t}}class u{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new u(e,null)}static fail(e){return new u(null,e)}static fromReplace(e,t,r,i){try{return u.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return u.fail(e.message);throw e}}}function c(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let o=e.child(n);o.content.size&&(o=o.copy(c(o.content,t,o))),o.isInline&&(o=t(o,r,n)),i.push(o)}return n.FK.fromArray(i)}class d extends s{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.no
vendor: 6,833 bytes, line 18
18de(r.sharedDepth(this.to)),o=new n.Ji(c(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,o)}invert(){return new f(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new d(t.pos,r.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}s.jsonID("addMark",d);class f extends s{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(c(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,r)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new f(t.pos,r.pos,this.mark)}merge(e){return e instanceof f&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new f(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(t.from,t.to,e.markFromJSON(t.mark))}}s.jsonID("removeMark",f);class h extends s{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new h(this.pos,t.marks[r]);return new h(this.pos,this.mark)}}return new p(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new h(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new h(t.pos,e.markFromJSON(t.mark))}}s.jsonID("addNodeMark",h);class p extends s{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new h(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}s.jsonID("removeNodeMark",p);class m extends s{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&y(e,this.from,this.to)?u.fail("Structure replace would overwrite content"):u.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new m(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}m.MAP_BIAS=1,s.jsonID("replace",m);class g extends s{constructor(e,t,r,n,i,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=o,this.structure=a}apply(e){if(this.structure&&(y(e,this.from,this.gapFrom)||y(e,this.gapTo,this.to)))return u.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return u.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?u.fromReplace(e,this.from,this.to,r):u.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new g(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function y(e,t,r){let n=e.resolve(t),i=r-t,o=n.depth;for(;i>0&&o>
180&&n.indexAfter(o)==n.node(o).childCount;)o--,i--;if(i>0){let e=n.node(o).maybeChild(n.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function v(e,t,r,i=r.contentMatch,o=!0){let a=e.doc.nodeAt(t),l=[],s=t+1;for(let t=0;t<a.childCount;t++){let u=a.child(t),c=s+u.nodeSize,d=i.matchType(u.type);if(d){i=d;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new f(s,c,u.marks[t]));if(o&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new m(s+e.index,s+e.index+e[0].length,i))}}else l.push(new m(s,c,n.Ji.empty));s=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(s,s,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function b(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let o=e.$from.node(r),a=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&o.canReplace(a,l,t))return r;if(0==r||o.type.spec.isolating||!((0==a||o.canReplace(a,o.childCount))&&(l==o.childCount||o.canReplace(0,l))))break;a&&(n=1),l<o.childCount&&(i=1)}return null}function w(e,t,r=null,n=e){let i=function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.contentMatchAt(n).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return r.canReplaceWith(n,i,a)?o:null}(e,t),o=i&&function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.child(n),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let l=(a.length?a[a.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?a:null}(n,t);return o?i.map(x).concat({type:t,attrs:r}).concat(o.map(x)):null}function x(e){return{type:e,attrs:null}}function _(e,t,r,n){t.forEach((i,o)=>{if(i.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+o+a.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function S(e,t,r,n){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function k(e,t,r=1,n){let i=e.resolve(t),o=i.depth-r,a=n&&n[n.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>o;e--,t--){let r=i.node(e),o=i.index(e);if(r.type.spec.isolating)return!1;let a=r.content.cutByIndex(o,r.childCount),l=n&&n[t+1];l&&(a=a.replaceChild(0,l.type.create(l.attrs)));let s=n&&n[t]||r;if(!r.canReplace(o+1,r.childCount)||!s.type.validContent(a))return!1}let l=i.indexAfter(o),s=n&&n[0];return i.node(o).canReplaceWith(l,l,s?s.type:i.node(o+1).type)}function O(e,t){let r=e.resolve(t),n=r.index();return C(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function C(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),a=o.type==n?e.type.schema.nodes.text:o.type;if(!(r=r.matchType(a))||!e.type.allowsMarks(o.marks))return!1}return r.validEnd}(e,t))}function E(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,o,a=n.index(e);if(e==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(e+1),a++,o=n.node(e).maybeChild(a)):(i=n.node(e).maybeChild(a-1),o=n.node(e+1)),i&&!i.isTextblock&&C(i,o)&&n.node(e).canReplace(a,a+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function T(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,o=n.index(t)+ +(r>0),a=n.node(t),l=!1;if(1==e)l=a.canReplace(o,o,i);else{let e=a.contentMatchAt(o).findWrapping(i.firstChild.type);l=e&&a.canReplaceWith(o,o,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}
18function M(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let o=e.resolve(t),a=e.resolve(r);return A(o,a,i)?new m(t,r,i):new N(o,a,i).fit()}function A(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}s.jsonID("replaceAround",g);class N{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,l=i.depth;for(;a&&l&&1==o.childCount;)o=o.firstChild.content,a--,l--;let s=new n.Ji(o,a,l);return e>-1?new g(r.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e=null,i=(r?(e=I(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:a,match:l}=this.frontier[o],s,u=null;if(1==t&&(i?l.matchType(i.type)||(u=l.fillBefore(n.FK.from(i),!1)):e&&a.compatibleContent(e.type)))return{sliceDepth:r,frontierDepth:o,parent:e,inject:u};if(2==t&&i&&(s=l.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:o,parent:e,wrap:s};if(e&&l.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=I(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=I(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new n.Ji(P(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new n.Ji(P(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let a=this.unplaced,l=r?r.content:a.content,s=a.openStart-e,u=0,c=[],{match:d,type:f}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));d=d.matchFragment(i)}let h=l.size+e-(a.content.size-a.openEnd);for(;u<l.childCount;){let e=l.child(u),t=d.matchType(e.type);if(!t)break;(++u>1||0==s||e.content.size)&&(d=t,c.push(function e(t,r,i){if(r<=0)return t;let o=t.content;return r>1&&(o=o.replaceChild(0,e(o.firstChild,r-1,1==o.childCount?i-1:0))),r>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(n.FK.empty,!0)))),t.copy(o)}(e.mark(f.allowedMarks(e.marks)),1==u?s:0,u==l.childCount?h:-1)))}let p=u==l.childCount;p||(h=-1),this.placed=j(this.placed,t,n.FK.from(c)),this.frontier[t].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<h;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?n.Ji.empty:new n.Ji(P(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new n.Ji(P(a.content,e,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!D(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=D(e,t,n,r,i);if(o){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=D(e,r,n,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=j(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=j(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=j(this.placed,this.frontier.length,e))}}function P(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(P(e.firstChild.content,t-1,r)))}function j(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(j(e.lastChild.content,t-1,r)))}function I(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function D(e,t,r,n,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!r.compatibleContent(o.type))return null;let l=n.fillBefore(o.content,!0,a);return l&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,o.content,a)?l:null}function $(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class R extends s{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return u.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return o.empty}invert(e){return new R(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new R(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new R(t.pos,t.attr,t.value)}}s.jsonID("attr",R);class L extends s{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return u.ok(r)}getMap(){return o.empty}invert(e){return new L(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new L(t.attr,t.value)}}s.jsonID("docAttr",L);
18let z=class extends Error{};(z=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.name="TransformError";class F{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new a}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new z(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=M(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return!function(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),a=e.doc.resolve(r);if(A(o,a,i))return e.step(new m(t,r,i));let l=$(o,a);0==l[l.length-1]&&l.pop();let s=-(o.depth+1);l.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?s=e:o.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(s),c=[],d=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=d-1;e>=0;e--){var f;let t=c[e],r=(f=t.type).spec.defining||f.spec.definingForContent;if(r&&!t.sameMarkup(o.node(Math.abs(s)-1)))d=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let s=(t+d+1)%(i.openStart+1),f=c[s];if(f)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],d=!0;c<0&&(d=!1,c=-c);let h=o.node(c-1),p=o.index(c-1);if(h.canReplaceWith(p,p,f.type,f.marks))return e.replace(o.before(c),d?a.after(c):r,new n.Ji(function e(t,r,i,o,a){if(r<i){let n=t.firstChild;t=t.replaceChild(0,n.copy(e(n.content,r+1,i,o,n)))}if(r>o){let e=a.contentMatchAt(0),r=e.fillBefore(t).append(t);t=r.append(e.matchFragment(r).fillBefore(n.FK.empty,!0))}return t}(i.content,0,i.openStart,s),s,i.openEnd))}}let h=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>h));n--){let e=l[n];e<0||(t=o.before(e),r=a.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){var i=e,o=t;if(!r.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let e=function(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}(this.doc,i,r.type);null!=e&&(i=o=e)}return this.replaceRange(i,o,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(e,t){return!function(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let o=n.sharedDepth(r),a=!1;for(let e=n.depth;e>o;e--)n.node(e).type.spec.isolating&&(a=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(a=!0);if(!a){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let o=$(n,i);for(let t=0;t<o.length;t++){let r=o[t],a=t==o.length-1;if(a&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(a||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let o=1;o<=n.depth&&o<=i.depth;o++)if(t-n.start(o)==n.depth-o&&r>n.end(o)&&i.end(o)-r!=i.depth-o&&n.start(o-1)==i.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),i.index(o-1)))return e.delete(n.before(o),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return!function(e,t,r){let{$from:i,$to:o,depth:a}=t,l=i.before(a+1),s=o.after(a+1),u=l,c=s,d=n.FK.empty,f=0;for(let e=a,t=!1;e>r;e--)t||i.index(e)>
180?(t=!0,d=n.FK.from(i.node(e).copy(d)),f++):u--;let h=n.FK.empty,p=0;for(let e=a,t=!1;e>r;e--)t||o.after(e+1)<o.end(e)?(t=!0,h=n.FK.from(o.node(e).copy(h)),p++):c++;e.step(new g(u,c,l,s,new n.Ji(d.append(h),f,p),d.size-f,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,r){let i=null,{linebreakReplacement:o}=e.doc.type.schema,a=e.doc.resolve(t-r),l=a.node().type;if(o&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let s=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);S(e,n.node(),n.before(),s)}l.inlineContent&&v(e,t+r-1,l,a.node().contentMatchAt(a.index()),null==i);let u=e.mapping.slice(s),c=u.map(t-r);if(e.step(new m(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);_(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let o=t.start,a=t.end;e.step(new g(o,a,o,a,new n.Ji(i,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,i=null){var o=this;if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let a=o.steps.length;return o.doc.nodesBetween(e,t,(e,t)=>{var l,s,u;let c,d,f="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(r,f)&&(l=o.doc,s=o.mapping.slice(a).map(t),u=r,d=(c=l.resolve(s)).index(),c.parent.canReplaceWith(d,d+1,u))){let i=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&S(o,e,t,a),v(o,o.mapping.slice(a).map(t,1),r,void 0,null===i);let l=o.mapping.slice(a),s=l.map(t,1),u=l.map(t+e.nodeSize,1);return o.step(new g(s,u,s+1,u-1,new n.Ji(n.FK.from(r.create(f,null,e.marks)),0,0),1,!0)),!0===i&&_(o,e,t,a),!1}}),this}setNodeMarkup(e,t,r=null,i){return!function(e,t,r,i,o){let a=e.doc.nodeAt(t);if(!a)throw RangeError("No node at given position");r||(r=a.type);let l=r.create(i,null,o||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,l);if(!r.validContent(a.content))throw RangeError("Invalid content for node type "+r.name);e.step(new g(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new R(e,t,r)),this}setDocAttribute(e,t){return this.step(new L(e,t)),this}addNodeMark(e,t){return this.step(new h(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new p(e,t));else{let n=r.marks,i,o=[];for(;i=t.isInSet(n);)o.push(new p(e,i)),n=i.removeFromSet(n);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,r){return!function(e,t,r=1,i){let o=e.doc.resolve(t),a=n.FK.empty,l=n.FK.empty;for(let e=o.depth,t=o.depth-r,s=r-1;e>t;e--,s--){a=n.FK.from(o.node(e).copy(a));let t=i&&i[s];l=n.FK.from(t?t.type.create(t.attrs,l):o.node(e).copy(l))}e.step(new m(t,t,new n.Ji(a.append(l),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){var n;let i,o,a,l;return n=this,a=[],l=[],n.doc.nodesBetween(e,t,(n,s,u)=>{if(!n.isInline)return;let c=n.marks;if(!r.isInSet(c)&&u.type.allowsMarkType(r.type)){let u=Math.max(s,e),h=Math.min(s+n.nodeSize,t),p=r.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(p)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:a.push(i=new f(u,h,c[e])));o&&o.to==u?o.to=h:l.push(o=new d(u,h,r))}}),a.forEach(e=>n.step(e)),l.forEach(e=>n.step(e)),this}removeMark(e,t,r){var i;let o,a;return i=this,o=[],a=0,i.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;a++;let s=null;if(r instanceof n.sX){let e=i.marks,t;for(;t=r.isInSet(e);)(s||(s=[])).push(t),e=t.removeFromSet(e)}else r?r.isInSet(i.marks)&&(s=[r]):s=i.marks;if(s&&s.length){let r=Math.min(l+i.nodeSize,t);for(let t=0;t<s.length;t++){let n=s[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==a-1&&n.eq(o[e].style)&&(i=t)}i?(i.to=r,i.step=a):o.push({style:n,from:Math.max(l,e),to:r,step:a})}}}
18),o.forEach(e=>i.step(new f(e.from,e.to,e.style))),this}clearIncompatible(e,t,r){return v(this,e,t,r),this}}},8625:(e,t,r)=>{"use strict";r.d(t,{B9:()=>u,Ej:()=>eF,FY:()=>eT,GA:()=>L,HA:()=>eA,Hv:()=>j,JW:()=>N,Ln:()=>J,NL:()=>I,Ng:()=>p,RN:()=>b,SZ:()=>Q,TX:()=>ej,Xx:()=>h,Ze:()=>E,be:()=>K,cl:()=>G,cn:()=>ea,hi:()=>eM,hx:()=>v,np:()=>f,nq:()=>ez,o5:()=>s,pA:()=>C,pK:()=>eP,py:()=>g,sJ:()=>O,tV:()=>B,ur:()=>R,xT:()=>eB,xp:()=>eo,zC:()=>M,zp:()=>S});var n=r(53310),i=r(43971),o=r(49967),a=r(21);let l=/^(\d+(?:\.\d+)?)px$/,s={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class u extends n.fGB{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new u(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:d,priority:0}),th:e=>({conversion:d,priority:0})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=s.NO_STATUS,t=1,r,n){super(n),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=r,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),c(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),(0,n.ZB7)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if((0,n.sby)(t.element)){let e=t.element;e.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||"top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...c(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=s.BOTH){let r=this.getWritable();return r.__headerState=e&t|r.__headerState&~t,r}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==s.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function c(e){return"middle"===e||"bottom"===e}function d(e){let t,r=e.nodeName.toLowerCase();l.test(e.style.width)&&(t=parseFloat(e.style.width));let i=s.NO_STATUS;"th"===r&&(i="col"===e.getAttribute("scope")?s.COLUMN:s.ROW);let o=f(i,e.colSpan,t);o.__rowSpan=e.rowSpan;let a=e.style.backgroundColor;""!==a&&(o.__backgroundColor=a);let u=e.style.verticalAlign;c(u)&&(o.__verticalAlign=u);let d=e.style,h=(d&&d.textDecoration||"").split(" "),p="700"===d.fontWeight||"bold"===d.fontWeight,m=h.includes("line-through"),g="italic"===d.fontStyle,y=h.includes("underline");return{after:e=>{let t=[],r=null,i=()=>
18{if(r){let e=r.getFirstChild();(0,n.wH$)(e)&&1===r.getChildrenSize()&&e.remove()}};for(let o of e)(0,n.Gew)(o)||(0,n.kFe)(o)||(0,n.wH$)(o)?((0,n.kFe)(o)&&(p&&o.toggleFormat("bold"),m&&o.toggleFormat("strikethrough"),g&&o.toggleFormat("italic"),y&&o.toggleFormat("underline")),r?r.append(o):(r=(0,n.lJ7)().append(o),t.push(r))):(t.push(o),i(),r=null);return i(),0===t.length&&t.push((0,n.lJ7)()),t},node:o}}function f(e=s.NO_STATUS,t=1,r){return(0,n.pTq)(new u(e,t,r))}function h(e){return e instanceof u}let p=(0,n.guI)("INSERT_TABLE_COMMAND");function m(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class g extends n.fGB{__height;static getType(){return"tablerow"}static clone(e){return new g(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:y,priority:0})}}static importJSON(e){return v().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...void 0===e?void 0:{height:e}}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,n.ZB7)(t,e.theme.tableRow),t}extractWithChild(e,t,r){return"html"===r}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function y(e){let t;return l.test(e.style.height)&&(t=parseFloat(e.style.height)),{after:e=>(0,i.cE)(e,h),node:v(t)}}function v(e){return(0,n.pTq)(new g(e))}function b(e){return e instanceof g}let w="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=w&&"documentMode"in document?document.documentMode:null,_=w&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function S(e){let t=(0,n.BtT)(e,e=>h(e));return h(t)?t:null}function k(e){let t=(0,n.BtT)(e,e=>b(e));if(b(t))return t;throw Error("Expected table cell to be inside of table row.")}function O(e){let t=(0,n.BtT)(e,e=>ej(e));if(ej(t))return t;throw Error("Expected table cell to be inside of table.")}function C(e){let t=k(e);return O(t).getChildren().findIndex(e=>e.is(t))}function E(e){return k(e).getChildren().findIndex(t=>t.is(e))}w&&"InputEvent"in window&&!x&&new window.InputEvent("input");let T=(e,t)=>e===s.BOTH||e===t?t:s.NO_STATUS;function M(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||J(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[o]=K(r),[a,,l]=K(i),[,s,u]=F(l,a,o),{startRow:c}=u,{startRow:d}=s;return e?A(c+o.__rowSpan>d+a.__rowSpan?o:a,!0):A(d<c?a:o,!1)}function A(e,t=!0){let[,,r]=K(e),[i,o]=F(r,e,e),a=i[0].length,{startRow:l}=o,u=null;if(t){let t=l+e.__rowSpan-1,o=i[t],c=v();for(let e=0;e<a;e++){let{cell:r,startRow:i}=o[e];if(i+r.__rowSpan-1<=t){let t=T(o[e].cell.__headerState,s.COLUMN);c.append(f(t).append((0,n.lJ7)()))}else r.setRowSpan(r.__rowSpan+1)}let d=r.getChildAtIndex(t);b(d)||m(256),d.insertAfter(c),u=c}else{let e=i[l],t=v();for(let r=0;r<a;r++){let{cell:i,startRow:o}=e[r];if(o===l){let i=T(e[r].cell.__headerState,s.COLUMN);t.append(f(i).append((0,n.lJ7)()))}else i.setRowSpan(i.__rowSpan+1)}let o=r.getChildAtIndex(l);b(o)||m(257),o.insertBefore(t),u=t}return u}function N(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||J(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[o]=K(r),[a,,l]=K(i),[,s,u]=F(l,a,o),{startColumn:c}=u,{startColumn:d}=s;return e?P(c+o.__colSpan>d+a.__colSpan?o:a,!0):P(d<c?a:o,!1)}function P(e,t=!0,r=!0){let[,,i]=K(e),[o,a]=F(i,e,e),l=o.length,{startColumn:u}=a,c=t?u+e.__colSpan-1:u-1,d=i.getFirstChild();b(d)||m(120);let h=null;function p(e=s.NO_STATUS){let t=f(e).append((0,n.lJ7)());return null===h&&(h=t),t}let g=d;t:for(let e=0;e<l;e++){if(0!==e){let e=g.getNextSibling();b(e)||m(121),g=e}let t=o[e],r=T(t[c<0?0:c].cell.__headerState,s.ROW);if(c<0){$(g,p(r));continue}let{cell:n,startColumn:i,startRow:a}=t[c];if(i+n.__colSpan-1<=c){let i=n,o=a,l=c;for(;o!==e&&i.__rowSpan>1;){if(!((l-=n.__colSpan)>=0)){g.append(p(r));continue t}{let{cell:e,startRow:r}=t[l];i=e,o=r}}i.insertAfter(p(r))}else n.setColSpan(n.__colSpan+1)}null!==h&&r&&D(h);let y=i.getColWidths();if(y){let e=[...y],t=c<0?0:c,r=e[t];e.splice(t,0,r),i.setColWidths(e)}return h}function j(){let e=(0,n.vJq)();(0,n.I2P)(e)||J(e)||m(188);let[t,r]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[i,,o]=K(t),[a]=K(r),[l,s,u]=F(o,i,a),{startRow:c}=s,{startRow:d}=u,f=d+a.__rowSpan-1;if(l.length===f-c+1)return void o.remove();let h=l[0].length,p=l[f+1],g=o.getChildAtIndex(f+1);for(let e=f;e>=c;e--){for(let t=h-1;t>=0;t--){let{cell:r,startRow:n,startColumn:i}=l[e][t];if(i===t){if(n<c||n+r.__rowSpan-1>f){let e=Math.max(n,c),t=Math.min(r.__rowSpan+n-1,f),i=e<=t?t-e+1:0;r.setRowSpan(r.__rowSpan-i)}if(n>=c&&n+r.__rowSpan-1>f&&e===f){null===g&&m(122);let n=null;for(let r=0;r<t;r++){let t=p[r],i=t.cell;t.startRow===e+1&&(n=i),i.__colSpan>1&&(r+=i.__colSpan-1)}null===n?$(g,r):n.insertAfter(r)}}}let t=o.getChildAtIndex(e);b(t)||m(206,String(e)),t.remove()}if(void 0!==p){let{cell:e}=p[0];D(e)}else{let{cell:e}=l[c-1][0];D(e)}}function I(){let e=(0,n.vJq)();(0,n.I2P)(e)||J(e)||m(188);let t=e.anchor.getNode(),r=e.focus.getNode(),[i,,o]=K(t),[a]=K(r),[l,s,u]=F(o,i,a),{startColumn:c}
18=s,{startRow:d,startColumn:f}=u,h=Math.min(c,f),p=Math.max(c+i.__colSpan-1,f+a.__colSpan-1),g=p-h+1;if(l[0].length===p-h+1)return o.selectPrevious(),void o.remove();let y=l.length;for(let e=0;e<y;e++)for(let t=h;t<=p;t++){let{cell:r,startColumn:n}=l[e][t];if(n<h){if(t===h){let e=h-n;r.setColSpan(r.__colSpan-Math.min(g,r.__colSpan-e))}}else if(n+r.__colSpan-1>p){if(t===p){let e=p-n+1;r.setColSpan(r.__colSpan-e)}}else r.remove()}let v=l[d],b=c>f?v[c+i.__colSpan]:v[f+a.__colSpan];if(void 0!==b){let{cell:e}=b;D(e)}else{let{cell:e}=f<c?v[f-1]:v[c-1];D(e)}let w=o.getColWidths();if(w){let e=[...w];e.splice(h,g),o.setColWidths(e)}}function D(e){let t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function $(e,t){let r=e.getFirstChild();null!==r?r.insertBefore(t):e.append(t)}function R(e){if(0===e.length)return null;let[t]=B(O(e[0]),null,null),r=1/0,i=-1/0,o=1/0,a=-1/0,l=new Set;for(let n of t)for(let t of n){if(!t||!t.cell)continue;let n=t.cell.getKey();if(!l.has(n)&&e.some(e=>e.is(t.cell))){l.add(n);let e=t.startRow,s=t.startColumn,u=t.cell.__rowSpan||1,c=t.cell.__colSpan||1;r=Math.min(r,e),i=Math.max(i,e+u-1),o=Math.min(o,s),a=Math.max(a,s+c-1)}}if(r===1/0||o===1/0)return null;let s=i-r+1,u=a-o+1,c=t[r][o];if(!c.cell)return null;let d=c.cell;d.setColSpan(u),d.setRowSpan(s);let f=new Set([d.getKey()]);for(let e=r;e<=i;e++)for(let r=o;r<=a;r++){let i=t[e][r];if(!i.cell)continue;let o=i.cell,a=o.getKey();f.has(a)||(f.add(a),function(e){if(1!==e.getChildrenSize())return!1;let t=e.getFirstChildOrThrow();return!(!(0,n.bSg)(t)||!t.isEmpty())}(o)||d.append(...o.getChildren()),o.remove())}return 0===d.getChildrenSize()&&d.append((0,n.lJ7)()),d}function L(){let e=(0,n.vJq)();(0,n.I2P)(e)||J(e)||m(188);let t=e.anchor.getNode(),r=(0,n.BtT)(t,h);return h(r)||m(148),z(r)}function z(e){let[t,r,i]=K(e),o=t.__colSpan,a=t.__rowSpan;if(1===o&&1===a)return;let[l,u]=F(i,t,t),{startColumn:c,startRow:d}=u,h=t.__headerState&s.COLUMN,p=Array.from({length:o},(e,t)=>{let r=h;for(let e=0;0!==r&&e<l.length;e++)r&=l[e][t+c].cell.__headerState;return r}),g=t.__headerState&s.ROW,y=Array.from({length:a},(e,t)=>{let r=g;for(let e=0;0!==r&&e<l[0].length;e++)r&=l[t+d][e].cell.__headerState;return r});if(o>1){for(let e=1;e<o;e++)t.insertAfter(f(p[e]|y[0]).append((0,n.lJ7)()));t.setColSpan(1)}if(a>1){let e;for(let t=1;t<a;t++){let i=d+t,a=l[i];b(e=(e||r).getNextSibling())||m(125);let s=null;for(let e=0;e<c;e++){let t=a[e],r=t.cell;t.startRow===i&&(s=r),r.__colSpan>1&&(e+=r.__colSpan-1)}if(null===s)for(let r=o-1;r>=0;r--)$(e,f(p[r]|y[t]).append((0,n.lJ7)()));else for(let e=o-1;e>=0;e--)s.insertAfter(f(p[e]|y[t]).append((0,n.lJ7)()))}t.setRowSpan(1)}}function F(e,t,r){let[n,i,o]=B(e,t,r);return null===i&&m(207),null===o&&m(208),[n,i,o]}function B(e,t,r){let n=[],i=null,o=null;function a(e){let t=n[e];return void 0===t&&(n[e]=t=[]),t}let l=e.getChildren();for(let e=0;e<l.length;e++){let n=l[e];b(n)||m(209);let s=a(e);for(let u=n.getFirstChild(),c=0;null!=u;u=u.getNextSibling()){for(h(u)||m(147);void 0!==s[c];)c++;let n={cell:u,startColumn:c,startRow:e},{__rowSpan:d,__colSpan:f}=u;for(let t=0;t<d&&!(e+t>=l.length);t++){let r=a(e+t);for(let e=0;e<f;e++)r[c+e]=n}null!==t&&null===i&&t.is(u)&&(i=n),null!==r&&null===o&&r.is(u)&&(o=n)}}return[n,i,o]}function K(e){let t;if(e instanceof u)t=e;else if("__type"in e){let r=(0,n.BtT)(e,h);h(r)||m(148),t=r}else{let r=(0,n.BtT)(e.getNode(),h);h(r)||m(148),t=r}let r=t.getParent();b(r)||m(149);let i=r.getParent();return ej(i)||m(210),[t,r,i]}function U(e,t,r){let n,i=Math.min(t.startColumn,r.startColumn),o=Math.min(t.startRow,r.startRow),a=Math.max(t.startColumn+t.cell.__colSpan-1,r.startColumn+r.cell.__colSpan-1),l=Math.max(t.startRow+t.cell.__rowSpan-1,r.startRow+r.cell.__rowSpan-1);do{n=!1;for(let t=0;t<e.length;t++)for(let r=0;r<e[0].length;r++){let s=e[t][r];if(!s)continue;let u=s.startColumn+s.cell.__colSpan-1,c=s.startRow+s.cell.__rowSpan-1,d=s.startColumn<=a&&u>=i,f=s.startRow<=l&&c>=o;if(d&&f){let e=Math.min(i,s.startColumn),t=Math.max(a,u),r=Math.min(o,s.startRow),d=Math.max(l,c);e===i&&t===a&&r===o&&d===l||(i=e,a=t,o=r,l=d,n=!0)}}}while(n);return{maxColumn:a,maxRow:l,minColumn:i,minRow:o}}function W(e){let[t,,r]=K(e),n=r.getChildren(),i=n.length,o=n[0].getChildren().length,a=Array(i);for(let e=0;e<i;e++)a[e]=Array(o);for(let e=0;e<i;e++){let r=n[e].getChildren(),i=0;for(let n=0;n<r.length;n++){for(;a[e][i];)i++;let o=r[n],l=o.__rowSpan||1,s=o.__colSpan||1;for(let t=0;t<l;t++)for(let r=0;r<s;r++)a[e+t][i+r]=o;if(t===o)return{colSpan:s,columnIndex:i,rowIndex:e,rowSpan:l};i+=s}}return null}function H(e){let[[t,r,i,o],[a,l,s,u]]=["anchor","focus"].map(t=>{let r=e[t].getNode(),i=(0,n.BtT)(r,h);h(i)||m(238,t,r.getKey(),r.getType());let o=i.getParent();b(o)||m(239,t);let a=o.getParent();return ej(a)||m(240,t),[r,i,o,a]});return o.is(u)||m(241),{anchorCell:r,anchorNode:t,anchorRow:i,anch
18orTable:o,focusCell:l,focusNode:a,focusRow:s,focusTable:u}}class q{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,t,r){this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if("root"===this.tableKey||"root"===this.anchor.key||"element"!==this.anchor.type||"root"===this.focus.key||"element"!==this.focus.type)return!1;let e=(0,n.nsf)(this.tableKey),t=(0,n.nsf)(this.anchor.key),r=(0,n.nsf)(this.focus.key);return null!==e&&null!==t&&null!==r}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return J(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,r){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||r!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new q(this.tableKey,(0,n.z8s)(this.anchor.key,this.anchor.offset,this.anchor.type),(0,n.z8s)(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(h).forEach(e=>{let r=e.getFirstChild();(0,n.bSg)(r)&&(t|=r.getTextFormat())});let r=n.LZn[e];return 0!=(t&r)}insertNodes(e){let t=this.focus.getNode();(0,n.ff4)(t)||m(151),(0,n.CaD)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=H(this),r=W(e);null===r&&m(153);let n=W(t);null===n&&m(155);let i=Math.min(r.columnIndex,n.columnIndex),o=Math.max(r.columnIndex+r.colSpan-1,n.columnIndex+n.colSpan-1),a=Math.min(r.rowIndex,n.rowIndex),l=Math.max(r.rowIndex+r.rowSpan-1,n.rowIndex+n.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(a,l),toX:Math.max(i,o),toY:Math.max(a,l)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(null!==e)return e;let{anchorTable:t,anchorCell:r,focusCell:i}=H(this),o=i.getParents()[1];if(o!==t){if(t.isParentOf(i)){let e=o.getParent();null==e&&m(159),this.set(this.tableKey,i.getKey(),e.getKey())}else{let e=t.getParent();null==e&&m(158),this.set(this.tableKey,e.getKey(),i.getKey())}return this.getNodes()}let[a,l,s]=F(t,r,i),{minColumn:u,maxColumn:c,minRow:d,maxRow:f}=U(a,l,s),h=new Map([[t.getKey(),t]]),p=null;for(let e=d;e<=f;e++)for(let t=u;t<=c;t++){let{cell:r}=a[e][t],i=r.getParent();b(i)||m(160),i!==p&&(h.set(i.getKey(),i),p=i),h.has(r.getKey())||function(e,t){let r=[[e]];for(let e=r.at(-1);void 0!==e&&r.length>0;e=r.at(-1)){let i=e.pop();void 0===i?r.pop():!1!==t(i)&&(0,n.ff4)(i)&&r.push(i.getChildren())}}(r,e=>{h.set(e.getKey(),e)})}let g=Array.from(h.values());return(0,n.GcU)()||(this._cachedNodes=g),g}getTextContent(){let e=this.getNodes().filter(e=>h(e)),t="";for(let r=0;r<e.length;r++){let n=e[r],i=n.__parent,o=(e[r+1]||{}).__parent;t+=n.getTextContent()+(o!==i?"\n":" ")}return t}}function J(e){return e instanceof q}function V(e,t,r){e.getKey(),t.getKey(),r.getKey();let i=(0,n.vJq)(),o=J(i)?i.clone():new q("root",(0,n.z8s)("root",0,"element"),(0,n.z8s)("root",0,"element"));return o.set(e.getKey(),t.getKey(),r.getKey()),o}function G(e,t=(0,n.i0_)()){let r=(0,n.nsf)(e);ej(r)||m(231,e);let i=Q(r,t.getElementByKey(e));return null===i&&m(232,e),{tableElement:i,tableNode:r}}class Y{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e
18=>e()),this.listenersToRemove.clear()}$lookup(){return G(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let t=!1;for(let r=0;r<e.length;r++){let n=e[r].target.nodeName;if("TABLE"===n||"TBODY"===n||"THEAD"===n||"TR"===n){t=!0;break}}if(!t)return;let{tableNode:r,tableElement:n}=this.$lookup();this.table=es(r,n)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:r}=this.$lookup();this.table=es(t,r),e.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:t,tableElement:r}=this.$lookup();eu(e,es(t,r),null),null!==(0,n.vJq)()&&((0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();(0,n.HEf)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();(0,n.ZB7)(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&m(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),eu(t,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){let e=(0,n.peL)(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let r=this.editor,{tableNode:i}=this.$lookup(),o=e.x,a=e.y;if(this.focusCell=e,!this.isHighlightingCells&&(t||this.anchorX!==o||this.anchorY!==a||null!=this.tableSelection&&null!=this.anchorCellNodeKey)&&(this.isHighlightingCells=!0,this.$disableHighlightStyle()),-1!==this.focusX&&-1!==this.focusY&&o===this.focusX&&a===this.focusY)return!1;if(this.focusX=o,this.focusY=a,this.isHighlightingCells){let l=eO(i,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey){let e=l;if(null===e&&t&&(e=i.getCellNodeFromCords(o,a,this.table)),null!==e){let t=this.$getAnchorTableCellOrThrow();return this.focusCellNodeKey=e.getKey(),this.tableSelection=V(i,t,e),(0,n.n1P)(this.tableSelection),r.dispatchCommand(n.MvL,void 0),eu(r,this.table,this.tableSelection),!0}}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?(0,n.nsf)(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return null===e&&m(234),e}$getFocusTableCell(){return this.focusCellNodeKey?(0,n.nsf)(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return null===e&&m(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.focusX=-1,this.focusY=-1,this.focusCell=null,this.focusCellNodeKey=null;let{tableNode:t}=this.$lookup(),r=eO(t,e.elem);if(null!==r){let e=r.getKey();null!=this.tableSelection?(this.tableSelection=this.tableSelection.clone(),this.tableSelection.set(t.getKey(),e,e)):this.tableSelection=V(t,r,r),this.anchorCellNodeKey=e}}$formatCells(e){let t=(0,n.vJq)();J(t)||m(236);let r=(0,n.uTE)(),i=r.anchor,o=r.focus,a=t.getNodes().filter(h);a.length>0||m(237);let l=a[0].getFirstChild(),s=(0,n.bSg)(l)?l.getFormatFlags(e,null):null;a.forEach(t=>{i.set(t.getKey(),0,"element"),o.set(t.getKey(),t.getChildrenSize(),"element"),r.formatText(e,s)}),(0,n.n1P)(t),this.editor.dispatchCommand(n.MvL,void 0)}$clearText(){let{editor:e}=this,t=(0,n.nsf)(this.tableNodeKey);if(!ej(t))throw Error("Expected TableNode.");let r=(0,n.vJq)();J(r)||m(253);let i=r.getNodes().filter(h),o=t.getFirstChild(),a=t.getLastChild();if(i.length>0&&null!==o&&null!==a&&b(o)&&b(a)&&i[0]===o.getFirstChild()&&i[i.length-1]===a.getLastChild()){t.selectPrevious();let r=t.getParent();return t.remove(),void((0,n.hVZ)(r)&&r.isEmpty()&&e.dispatchCommand(n.XKQ,void 0))}
18i.forEach(e=>{if((0,n.ff4)(e)){let t=(0,n.lJ7)(),r=(0,n.sTu)();t.append(r),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),eu(e,this.table,null),(0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0)}}let Z="__lexicalTableSelection";function X(e){return(0,n.sby)(e)&&"TABLE"===e.nodeName}function Q(e,t){if(!t)return t;let r=X(t)?t:e.getDOMSlot(t).element;return"TABLE"!==r.nodeName&&m(245,t.nodeName),r}function ee(e){return e._window}function et(e,t){for(let r=t,n=null;null!==r;r=r.getParent()){if(e.is(r))return n;h(r)&&(n=r)}return null}let er=[[n.bbF,"down"],[n.UDz,"up"],[n.AX0,"backward"],[n.JM3,"forward"]],en=[n.hi0,n.viC,n.WuB],ei=[n.gCZ,n.w$Z];function eo(e){return e[Z]||null}function ea(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function el(e,t){if(!e.contains(t))return null;let r=null;for(let n=t;null!=n;n=n.parentNode){if(n===e)return r;let t=n.nodeName;"TD"!==t&&"TH"!==t||(r=n._cell||null)}return null}function es(e,t){let r=[],n={columns:0,domRows:r,rows:0},i=Q(e,t).querySelector("tr"),o=0,a=0;for(r.length=0;null!=i;){let e=i.nodeName;if("TD"===e||"TH"===e){let e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:o,y:a};i._cell=e;let t=r[a];void 0===t&&(t=r[a]=[]),t[o]=e}else{let e=i.firstChild;if(null!=e){i=e;continue}}let t=i.nextSibling;if(null!=t){o++,i=t;continue}let n=i.parentNode;if(null!=n){let e=n.nextSibling;if(null==e)break;a++,o=0,i=e}}return n.columns=o+1,n.rows=a+1,n}function eu(e,t,r){let n=new Set(r?r.getNodes():[]);ec(t,(t,r)=>{let i=t.elem;n.has(r)?(t.highlighted=!0,ey(e,t)):(t.highlighted=!1,ev(e,t),i.getAttribute("style")||i.removeAttribute("style"))})}function ec(e,t){let{domRows:r}=e;for(let e=0;e<r.length;e++){let i=r[e];if(i)for(let r=0;r<i.length;r++){let o=i[r];if(!o)continue;let a=(0,n.xL4)(o.elem);null!==a&&t(o,a,{x:r,y:e})}}}function ed(e,t){t.$disableHighlightStyle(),ec(t.table,t=>{t.highlighted=!0,ey(e,t)})}function ef(e,t){let r,n;if(t.startColumn===e.minColumn)r="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;r="maxColumn"}if(t.startRow===e.minRow)n="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;n="maxRow"}return[r,n]}function eh([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function ep(e,t,[r,n]){let i=t[n],o=e[i];void 0===o&&m(250,n,String(i));let a=t[r],l=o[a];return void 0===l&&m(250,r,String(a)),l}function em(e,t){if((0,n.I2P)(e)||J(e)){let r=t.isParentOf(e.anchor.getNode()),n=t.isParentOf(e.focus.getNode());return r&&n}return!1}function eg(e,t){t?e.selectStart():e.selectEnd()}function ey(e,t){let r=t.elem,i=e._config.theme;h((0,n.xL4)(r))||m(131),(0,n.ZB7)(r,i.tableCellSelected)}function ev(e,t){let r=t.elem;h((0,n.xL4)(r))||m(131);let i=e._config.theme;(0,n.HEf)(r,i.tableCellSelected)}function eb(e){let t=(0,n.BtT)(e,h);return h(t)?t:null}function ew(e){let t=(0,n.BtT)(e,ej);return ej(t)?t:null}function ex(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function e_(e,t,r){let i=(0,n.lJ7)();"first"===e?t.insertBefore(i):t.insertAfter(i),i.append(...r||[]),i.selectEnd()}function eS(e,t,r){let i=r.getParent();if(!i)return;let o=(0,n.peL)(ee(e));if(!o)return;let a=o.anchorNode,l=e.getElementByKey(i.getKey()),s=Q(r,e.getElementByKey(r.getKey()));if(!a||!l||!s||!l.contains(a)||s.contains(a))return;let u=(0,n.BtT)(t.anchor.getNode(),e=>h(e));if(!u)return;let c=(0,n.BtT)(u,e=>ej(e));if(!ej(c)||!c.is(r))return;let[d,f]=F(r,u,u),p=d[0][0],m=d[d.length-1][d[0].length-1],{startRow:g,startColumn:y}=f,v=g===p.startRow&&y===p.startColumn,b=g===m.startRow&&y===m.startColumn;return v?"first":b?"last":void 0}function ek(e,t){let{tableNode:r}=e.$lookup(),n=r.getCordsFromCellNode(t,e.table);return r.getDOMCellFromCordsOrThrow(n.x,n.y,e.table)}function eO(e,t,r){return et(e,(0,n.xL4)(t,r))}function eC(e,t,r){if(!t.theme.tableAlignment)return;let i=[],o=[];for(let e of["center","right"]){let n=t.theme.tableAlignment[e];n&&(e===r?o:i).push(n)}(0,n.HEf)(e,...i),(0,n.ZB7)(e,...o)}let eE=new WeakSet;function eT(e=(0,n.i0_)()){return eE.has(e)}function eM(e,t){t?eE.add(e):eE.delete(e)}class eA extends n.fGB{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new eA(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:eN,priority:1})}}static importJSON(e){return eP().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,r){return"html"===r}getDOMSlot(e){let t=X(e)?e:e.querySelector("table");return X(t)||m(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let r=document.createElement("table");this.__style&&(r.style.cssText=this.__style);let i=document.createElement("colgroup");if(r.appendChild(i),(0,n.pd8)(i),(0,n.ZB7)(r,e.theme.table),this.updateTableElement(null,r,e),eT(t)){let t=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?(0,n.ZB7)(t,i):t.style.cssText="overflow-x: auto;",t.appendChild(r),this.updateTableWrapper(null,t,r,e),t}return r}
18updateTableWrapper(e,t,r,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(this.__frozenColumnCount>0?((0,n.ZB7)(t,i.theme.tableFrozenColumn),r.setAttribute("data-lexical-frozen-column","true")):((0,n.HEf)(t,i.theme.tableFrozenColumn),r.removeAttribute("data-lexical-frozen-column"))),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(this.__frozenRowCount>0?((0,n.ZB7)(t,i.theme.tableFrozenRow),r.setAttribute("data-lexical-frozen-row","true")):((0,n.HEf)(t,i.theme.tableFrozenRow),r.removeAttribute("data-lexical-frozen-row")))}updateTableElement(e,t,r){this.__style!==(e?e.__style:"")&&(t.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(this.__rowStriping?((0,n.ZB7)(t,r.theme.tableRowStriping),t.setAttribute("data-lexical-row-striping","true")):((0,n.HEf)(t,r.theme.tableRowStriping),t.removeAttribute("data-lexical-row-striping"))),function(e,t,r){let n=e.querySelector("colgroup");if(!n)return;let i=[];for(let e=0;e<t;e++){let t=document.createElement("col"),n=r&&r[e];n&&(t.style.width=`${n}px`),i.push(t)}n.replaceChildren(...i)}(t,this.getColumnCount(),this.getColWidths()),eC(t,r,this.getFormatType())}updateDOM(e,t,r){let i=this.getDOMSlot(t).element;return t===i===eT()||((0,n.sby)(t)&&"DIV"===t.nodeName&&this.updateTableWrapper(e,t,i,r),this.updateTableElement(e,i,r),!1)}exportDOM(e){let t=super.exportDOM(e),{element:r}=t;return{after:r=>{if(t.after&&(r=t.after(r)),!X(r)&&(0,n.sby)(r)&&(r=r.querySelector("table")),!X(r))return null;eC(r,e._config,this.getFormatType());let[i]=B(this,null,null),o=new Map;for(let e of i)for(let t of e){let e=t.cell.getKey();o.has(e)||o.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let a=new Set;for(let e of r.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let t=e.getAttribute("data-temporary-table-cell-lexical-key");if(t){let r=o.get(t);if(e.removeAttribute("data-temporary-table-cell-lexical-key"),r){o.delete(t);for(let e=0;e<r.colSpan;e++)a.add(e+r.startColumn)}}}let l=r.querySelector(":scope > colgroup");if(l){let e=Array.from(r.querySelectorAll(":scope > colgroup > col")).filter((e,t)=>a.has(t));l.replaceChildren(...e)}let s=r.querySelectorAll(":scope > tr");if(s.length>0){let e=document.createElement("tbody");for(let t of s)e.appendChild(t);r.append(e)}return r},element:!X(r)&&(0,n.sby)(r)?r.querySelector("table"):r}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:r,domRows:n}=t;for(let t=0;t<r;t++){let r=n[t];if(null!=r)for(let n=0;n<r.length;n++){let i=r[n];if(null==i)continue;let{elem:o}=i,a=eO(this,o);if(null!==a&&e.is(a))return{x:n,y:t}}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,r){let{domRows:n}=r,i=n[t];if(null==i)return null;let o=i[e<i.length?e:i.length-1];return null==o?null:o}getDOMCellFromCordsOrThrow(e,t,r){let n=this.getDOMCellFromCords(e,t,r);if(!n)throw Error("Cell not found at cords.");return n}getCellNodeFromCords(e,t,r){let i=this.getDOMCellFromCords(e,t,r);if(null==i)return null;let o=(0,n.xL4)(i.elem);return h(o)?o:null}getCellNodeFromCordsOrThrow(e,t,r){let n=this.getCellNodeFromCords(e,t,r);if(!n)throw Error("Node at cords not TableCellNode.");return n}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;
18return e.getChildren().forEach(e=>{h(e)&&(t+=e.getColSpan())}),t}}function eN(e){let t=eP();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),e.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),e.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);let r=e.querySelector(":scope > colgroup");if(r){let e=[];for(let t of r.querySelectorAll(":scope > col")){let r=t.style.width||"";if(!l.test(r)&&(r=t.getAttribute("width")||"",!/^\d+$/.test(r))){e=void 0;break}e.push(parseFloat(r))}e&&t.setColWidths(e)}return{after:e=>(0,i.cE)(e,b),node:t}}function eP(){return(0,n.pTq)(new eA)}function ej(e){return e instanceof eA}function eI(e){b(e.getParent())?e.isEmpty()&&e.append((0,n.lJ7)()):e.remove()}function eD(e){ej(e.getParent())?(0,i.vF)(e,h):e.remove()}function e$(e){(0,i.vF)(e,b);let[t]=B(e,null,null),r=t.reduce((e,t)=>Math.max(e,t.length),0),o=e.getChildren();for(let e=0;e<t.length;++e){let i=o[e];if(!i)continue;b(i)||m(254,i.constructor.name,i.getType());let a=t[e].reduce((e,t)=>t?1+e:e,0);if(a!==r)for(let e=a;e<r;++e){let e=f();e.append((0,n.lJ7)()),i.append(e)}}let a=e.getColWidths(),l=e.getColumnCount();if(a&&a.length!==l){let t;if(l<a.length)t=a.slice(0,l);else if(a.length>0){let e=a[a.length-1];t=[...a,...Array(l-a.length).fill(e)]}e.setColWidths(t)}}function eR(e){if(e.detail<3||!(0,n.vAA)(e.target))return!1;let t=(0,n.xL4)(e.target);if(null===t)return!1;let r=(0,n.BtT)(t,e=>(0,n.ff4)(e)&&!e.isInline());return null!==r&&!!h(r.getParent())&&(r.select(0),!0)}function eL(){let e=(0,n.vJq)();if(!(0,n.I2P)(e))return!1;let t=ew(e.anchor.getNode());if(null===t)return!1;let r=(0,n.NiT)();if(!r.is(t.getParent())||1!==r.getChildrenSize())return!1;let[i]=B(t,null,null);if(0===i.length||0===i[0].length)return!1;let o=i[0][0];if(!o||!o.cell)return!1;let a=i[i.length-1],l=a[a.length-1];if(!l||!l.cell)return!1;let s=V(t,o.cell,l.cell);return(0,n.n1P)(s),!0}function ez(e){return e.registerNodeTransform(u,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=K(e),[r]=F(t,e,e),n=r.length,o=r[0].length,a=t.getFirstChild();b(a)||m(175);let l=[];for(let e=0;e<n;e++){0!==e&&(b(a=a.getNextSibling())||m(175));let t=null;for(let n=0;n<o;n++){let o=r[e][n],s=o.cell;if(o.startRow===e&&o.startColumn===n)t=s,l.push(s);else if(s.getColSpan()>1||s.getRowSpan()>1){h(s)||m(176);let e=f(s.__headerState);null!==t?t.insertAfter(e):(0,i.K2)(a,e)}}}for(let e of l)e.setColSpan(1),e.setRowSpan(1)}})}function eF(e,t=!0){let r=new Map,o=(o,l,s)=>{let u=Q(o,s),c=function(e,t,r,o){let l=r.getRootElement(),s=ee(r);null!==l&&null!==s||m(246);let u=new Y(r,e.getKey()),c=Q(e,t);null!==eo(c)&&m(205),c[Z]=u,u.listenersToRemove.add(()=>{eo(c)===u&&delete c[Z]});let d=t=>{if(u.pointerType=t.pointerType,0!==t.button||!(0,n.vAA)(t.target)||!s)return;let i=ea(t.target);null!==i&&r.update(()=>{let r=(0,n.S1w)();if(_&&t.shiftKey&&em(r,e)&&((0,n.I2P)(r)||J(r))){let n=r.anchor.getNode(),o=et(e,r.anchor.getNode());
18o?(u.$setAnchorCellForSelection(ek(u,o)),u.$setFocusCellForSelection(i),ex(t)):(e.isBefore(n)?e.selectStart():e.selectEnd()).anchor.set(r.anchor.key,r.anchor.offset,r.anchor.type)}else"touch"!==t.pointerType&&u.$setAnchorCellForSelection(i)}),(e=>{if(u.isSelecting)return;u.isSelecting=!0,null!==e&&null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)});let t=()=>{u.isSelecting=!1,s.removeEventListener("pointerup",t),s.removeEventListener("pointermove",i)},i=e=>{if(1&~e.buttons&&u.isSelecting)return u.isSelecting=!1,s.removeEventListener("pointerup",t),void s.removeEventListener("pointermove",i);if(!(0,n.vAA)(e.target))return;let o=null,a=!(_||c.contains(e.target));if(a)o=el(c,e.target);else for(let t of document.elementsFromPoint(e.clientX,e.clientY))if(o=el(c,t))break;if(o){let e=o;null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)}),null!==u.focusCell&&o.elem===u.focusCell.elem||(u.setNextFocus({focusCell:o,override:a}),r.dispatchCommand(n.MvL,void 0))}};s.addEventListener("pointerup",t,u.listenerOptions),s.addEventListener("pointermove",i,u.listenerOptions)})(i)};c.addEventListener("pointerdown",d,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("pointerdown",d)});let f=e=>{e.detail>=3&&(0,n.vAA)(e.target)&&null!==ea(e.target)&&e.preventDefault()};c.addEventListener("mousedown",f,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("mousedown",f)});let p=e=>{let t=e.target;0===e.button&&(0,n.vAA)(t)&&r.update(()=>{let e=(0,n.vJq)();J(e)&&e.tableKey===u.tableNodeKey&&l.contains(t)&&u.$clearHighlight()})};for(let[t,i]of(s.addEventListener("pointerdown",p,u.listenerOptions),u.listenersToRemove.add(()=>{s.removeEventListener("pointerdown",p)}),er))u.listenersToRemove.add(r.registerCommand(t,t=>(function e(t,r,i,o,a){let l;if(("up"===i||"down"===i)&&(l=t.getRootElement())&&l.hasAttribute("aria-controls")&&"typeahead-menu"===l.getAttribute("aria-controls"))return!1;let s=(0,n.vJq)();if(!em(s,o)){if((0,n.I2P)(s)){if("backward"===i){if(s.focus.offset>0)return!1;let e=function(e){for(let t=e,r=e;null!==r;t=r,r=r.getParent())if((0,n.ff4)(r)){if(r!==t&&r.getFirstChild()!==t)return null;if(!r.isInline())return r}return null}(s.focus.getNode());if(!e)return!1;let t=e.getPreviousSibling();return!!ej(t)&&(ex(r),r.shiftKey?s.focus.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent(),"element"):t.selectEnd(),!0)}if(r.shiftKey&&("up"===i||"down"===i)){let e=s.focus.getNode();if(!s.isCollapsed()&&("up"===i&&!s.isBackward()||"down"===i&&s.isBackward())){let t=(0,n.BtT)(e,e=>ej(e));if(h(t)&&(t=(0,n.BtT)(t,ej)),t!==o||!t)return!1;let a="down"===i?t.getNextSibling():t.getPreviousSibling();if(!a)return!1;let l=0;"up"===i&&(0,n.ff4)(a)&&(l=a.getChildrenSize());let u=a;"up"===i&&(0,n.ff4)(a)&&(u=a.getLastChild()||a,l=(0,n.kFe)(u)?u.getTextContentSize():0);let c=s.clone();return c.focus.set(u.getKey(),l,(0,n.kFe)(u)?"text":"element"),(0,n.n1P)(c),ex(r),!0}if((0,n.IqF)(e)){let e="up"===i?s.getNodes()[s.getNodes().length-1]:s.getNodes()[0];if(e&&null!==et(o,e)){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[r]=K(e),[n]=K(t),i=o.getCordsFromCellNode(r,a.table),l=o.getCordsFromCellNode(n,a.table),s=o.getDOMCellFromCordsOrThrow(i.x,i.y,a.table),u=o.getDOMCellFromCordsOrThrow(l.x,l.y,a.table);return a.$setAnchorCellForSelection(s),a.$setFocusCellForSelection(u,!0),!0}return!1}{let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());if(h(t)&&(t=(0,n.BtT)(t,ej)),!t)return!1;let o="down"===i?t.getNextSibling():t.getPreviousSibling();if(ej(o)&&a.tableNodeKey===o.getKey()){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[a]=K(e),[l]=K(t),u=s.clone();return u.focus.set(("up"===i?a:l).getKey(),"up"===i?0:l.getChildrenSize(),"element"),ex(r),(0,n.n1P)(u),!0}}}}return"down"===i&&eT(t)&&a.setShouldCheckSelection(),!1}if((0,n.I2P)(s)){if("backward"===i||"forward"===i)return function(e,t,r,i,o,a,l){let s=(0,n.Ave)(r.focus,o?"previous":"next");if((0,n.pGK)(s))return!1;let u=s;for(let e of(0,n.mWO)(s).iterNodeCarets("shadowRoot")){if(!(0,n.OpE)(e)||!(0,n.ff4)(e.origin))return!1;u=e}let c=u.getParentAtCaret();if(!h(c))return!1;let d=function(e){for(let t of(0,n.mWO)(e).iterNodeCarets("root")){let{origin:r}=t;if(h(r)){if((0,n.cmH)(t))return(0,n.uwZ)(r,e.direction)}else if(!b(r))break}return null}((0,n.IlV)(c,u.direction)),f=(0,n.BtT)(c,ej);if(!f||!f.is(a))return!1;let p=e.getElementByKey(c.getKey()),g=ea(p);if(!p||!g)return!1;if(l.table=function(e,t){let r=e.getElementByKey(t.getKey());return null===r&&m(230),es(t,r)}(e,f),d)if("extend"===i){let t=ea(e.getElementByKey(d.origin.getKey()));if(!t)return!1;
18l.$setAnchorCellForSelection(g),l.$setFocusCellForSelection(t,!0)}else{let e=(0,n.lSZ)(d);(0,n.wp6)(r.anchor,e),(0,n.wp6)(r.focus,e)}else if("extend"===i)l.$setAnchorCellForSelection(g),l.$setFocusCellForSelection(g,!0);else{var y;let e,t=(y=(0,n.IlV)(f,s.direction),e=(0,n.erb)(y),(0,n.cmH)(e)?(0,n.lSZ)(e):y);(0,n.wp6)(r.anchor,t),(0,n.wp6)(r.focus,t)}return ex(t),!0}(t,r,s,r.shiftKey?"extend":"move","backward"===i,o,a);if(s.isCollapsed()){let l,{anchor:u,focus:c}=s,d=(0,n.BtT)(u.getNode(),h),f=(0,n.BtT)(c.getNode(),h);if(!h(d)||!d.is(f))return!1;let p=ew(d);if(p!==o&&null!=p){let n=Q(p,t.getElementByKey(p.getKey()));if(null!=n)return a.table=es(p,n),e(t,r,i,p,a)}let m=t.getElementByKey(d.__key),g=t.getElementByKey(u.key);if(null==g||null==m)return!1;if("element"===u.type)l=g.getBoundingClientRect();else{let e=(0,n.peL)(ee(t));if(null===e||0===e.rangeCount)return!1;l=e.getRangeAt(0).getBoundingClientRect()}let y="up"===i?d.getFirstChild():d.getLastChild();if(null==y)return!1;let v=t.getElementByKey(y.__key);if(null==v)return!1;let b=v.getBoundingClientRect();if("up"===i?b.top>l.top-l.height:l.bottom+l.height>b.bottom){ex(r);let e=o.getCordsFromCellNode(d,a.table);if(!r.shiftKey)return((e,t,r,n,i)=>{let o="forward"===i;switch(i){case"backward":case"forward":return r!==(o?e.table.columns-1:0)?eg(t.getCellNodeFromCordsOrThrow(r+(o?1:-1),n,e.table),o):n!==(o?e.table.rows-1:0)?eg(t.getCellNodeFromCordsOrThrow(o?0:e.table.columns-1,n+(o?1:-1),e.table),o):o?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==n?eg(t.getCellNodeFromCordsOrThrow(r,n-1,e.table),!1):t.selectPrevious(),!0;case"down":return n!==e.table.rows-1?eg(t.getCellNodeFromCordsOrThrow(r,n+1,e.table),!0):t.selectNext(),!0;default:return!1}})(a,o,e.x,e.y,i);{let t=o.getDOMCellFromCordsOrThrow(e.x,e.y,a.table);a.$setAnchorCellForSelection(t),a.$setFocusCellForSelection(t,!0)}return!0}}}else if(J(s)){let{anchor:e,focus:l}=s,u=(0,n.BtT)(e.getNode(),h),c=(0,n.BtT)(l.getNode(),h),[d]=s.getNodes();ej(d)||m(251);let f=Q(d,t.getElementByKey(d.getKey()));if(!h(u)||!h(c)||!ej(d)||null==f)return!1;a.$updateTableTableSelection(s);let p=es(d,f),g=o.getCordsFromCellNode(u,p),y=o.getDOMCellFromCordsOrThrow(g.x,g.y,p);if(a.$setAnchorCellForSelection(y),ex(r),r.shiftKey){let[e,t,r]=F(o,u,c);return function(e,t,r,n,i){let o,a=U(t,r,n),{topSpan:l,leftSpan:s,bottomSpan:u,rightSpan:c}=function(e,t){let{minColumn:r,maxColumn:n,minRow:i,maxRow:o}=t,a=1,l=1,s=1,u=1,c=e[i],d=e[o];for(let e=r;e<=n;e++)a=Math.max(a,c[e].cell.__rowSpan),u=Math.max(u,d[e].cell.__rowSpan);for(let t=i;t<=o;t++)l=Math.max(l,e[t][r].cell.__colSpan),s=Math.max(s,e[t][n].cell.__colSpan);return{bottomSpan:u,leftSpan:l,rightSpan:s,topSpan:a}}(t,a),[d,f]=eh((null===(o=ef(a,r))&&m(249,r.cell.getKey()),o)),h=a[d],p=a[f];"forward"===i?h+="maxColumn"===d?1:s:"backward"===i?h-="minColumn"===d?1:c:"down"===i?p+="maxRow"===f?1:l:"up"===i&&(p-="minRow"===f?1:u);let g=t[p];if(void 0===g)return!1;let y=g[h];if(void 0===y)return!1;let[v,b]=function(e,t,r){let n=U(e,t,r),i=ef(n,t);if(i)return[ep(e,n,i),ep(e,n,eh(i))];let o=ef(n,r);if(o)return[ep(e,n,eh(o)),ep(e,n,o)];let a=["minColumn","minRow"];return[ep(e,n,a),ep(e,n,eh(a))]}(t,r,y),w=ek(e,v.cell),x=ek(e,b.cell);return e.$setAnchorCellForSelection(w),e.$setFocusCellForSelection(x,!0),!0}(a,e,t,r,i)}return c.selectEnd(),!0}return!1})(r,t,i,e,u),n.WgU));u.listenersToRemove.add(r.registerCommand(n.Q$N,t=>{let r=(0,n.vJq)();if(J(r)){let n=et(e,r.focus.getNode());if(null!==n)return ex(t),n.selectEnd(),!0}return!1},n.WgU));let g=t=>()=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(J(r))return u.$clearText(),!0;if((0,n.I2P)(r)){if(!h(et(e,r.anchor.getNode())))return!1;let i=r.anchor.getNode(),o=r.focus.getNode(),a=e.isParentOf(i),l=e.isParentOf(o);if(a&&!l||l&&!a)return u.$clearText(),!0;let s=(0,n.BtT)(r.anchor.getNode(),e=>(0,n.ff4)(e)),c=s&&(0,n.BtT)(s,e=>(0,n.ff4)(e)&&h(e.getParent()));if(!(0,n.ff4)(c)||!(0,n.ff4)(s))return!1;if(t===n.viC&&null===c.getPreviousSibling())return!0}return!1};for(let e of en)u.listenersToRemove.add(r.registerCommand(e,g(e),n.WgU));let y=t=>{let r=(0,n.vJq)();if(!J(r)&&!(0,n.I2P)(r))return!1;let i=e.isParentOf(r.anchor.getNode());if(i!==e.isParentOf(r.focus.getNode())){let t=i?"focus":"anchor",{key:n,offset:o,type:a}=r[t];return e[r[i?"anchor":"focus"].isBefore(r[t])?"selectPrevious":"selectNext"]()[t].set(n,o,a),!1}return!!em(r,e)&&!!J(r)&&(t&&(t.preventDefault(),t.stopPropagation()),u.$clearText(),!0)};for(let e of ei)u.listenersToRemove.add(r.registerCommand(e,y,n.WgU));return u.listenersToRemove.add(r.registerCommand(n.VSO,e=>{let t=(0,n.vJq)();if(t){if(!J(t)&&!(0,n.I2P)(t))return!1;(0,a.lW)(r,(0,i.xj)(e,ClipboardEvent)?e:null,(0,a.xg)(t));let o=y(e);return(0,n.I2P)(t)?(t.removeText(),!0):o}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.mB,t=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(J(r))return u.$formatCells(t),!0;if((0,n.I2P)(r)){let e=(0,n.BtT)(r.anchor.getNode(),e=>h(e));h(e)}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.fUS,t=>{let r=(0,n.vJq)();if(!J(r)||!em(r,e))return!1;let i=r.anchor.getNode(),o=r.focus.getNode();if(!h(i)||!h(o))return!1;if(function(e,t){if(J(e)){let r=e.anchor.getNode(),n=e.focus.getNode();if(t&&r&&n){let[e]=F(t,r,n);return r.getKey()===e[0][0].cell.getKey()&&n.getKey()===e[e.length-1].at(-1).cell.getKey()}}return!1}(r,e))return e.setFormat(t),!0;
18let[a,l,s]=F(e,i,o),u=Math.max(l.startRow+l.cell.__rowSpan-1,s.startRow+s.cell.__rowSpan-1),c=Math.max(l.startColumn+l.cell.__colSpan-1,s.startColumn+s.cell.__colSpan-1),d=Math.min(l.startRow,s.startRow),f=Math.min(l.startColumn,s.startColumn),p=new Set;for(let e=d;e<=u;e++)for(let r=f;r<=c;r++){let i=a[e][r].cell;if(p.has(i))continue;p.add(i),i.setFormat(t);let o=i.getChildren();for(let e=0;e<o.length;e++){let r=o[e];(0,n.ff4)(r)&&!r.isInline()&&r.setFormat(t)}}return!0},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.bM3,t=>{let i=(0,n.vJq)();if(!em(i,e))return!1;if(J(i))return u.$clearHighlight(),!1;if((0,n.I2P)(i)){let o=(0,n.BtT)(i.anchor.getNode(),e=>h(e));if(!h(o))return!1;if("string"==typeof t){let o=eS(r,i,e);if(o)return e_(o,e,[(0,n.sTu)(t)]),!0}}return!1},n.WgU)),o&&u.listenersToRemove.add(r.registerCommand(n.OXk,t=>{let r=(0,n.vJq)();if(!(0,n.I2P)(r)||!r.isCollapsed()||!em(r,e))return!1;let i=eb(r.anchor.getNode());return!(null===i||!e.is(ew(i)))&&(ex(t),function(e,t){let r="next"===t?"getNextSibling":"getPreviousSibling",i="next"===t?"getFirstChild":"getLastChild",o=e[r]();if((0,n.ff4)(o))return o.selectEnd();let a=(0,n.BtT)(e,b);null===a&&m(247);for(let e=a[r]();b(e);e=e[r]()){let t=e[i]();if((0,n.ff4)(t))return t.selectEnd()}let l=(0,n.BtT)(a,ej);null===l&&m(248),"next"===t?l.selectNext():l.selectPrevious()}(i,t.shiftKey?"previous":"next"),!0)},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.$7r,t=>e.isSelected(),n.WgU)),u.listenersToRemove.add(r.registerCommand(n.MvL,()=>{let t=(0,n.vJq)(),i=(0,n.S1w)(),o=u.getAndClearNextFocus();if(null!==o){let{focusCell:e}=o;if(J(t)&&t.tableKey===u.tableNodeKey)return(e.x!==u.focusX||e.y!==u.focusY)&&(u.$setFocusCellForSelection(e),!0);if(e!==u.anchorCell&&null!==u.anchorCell&&null!==u.anchorCellNodeKey&&null!==u.tableSelection)return u.$setFocusCellForSelection(e,!0),!0}if(u.getAndClearShouldCheckSelection()&&(0,n.I2P)(i)&&(0,n.I2P)(t)&&t.isCollapsed()){let r=t.anchor.getNode(),i=e.getFirstChild(),o=eb(r);if(null!==o&&b(i)){let t=i.getFirstChild();if(h(t)&&e.is((0,n.BtT)(o,r=>r.is(e)||r.is(t))))return t.selectStart(),!0}}if((0,n.I2P)(t)){let{anchor:o,focus:a}=t,l=o.getNode(),s=a.getNode(),c=eb(l),d=eb(s),f=!(!c||!e.is(ew(c))),h=!(!d||!e.is(ew(d))),p=t.isBackward();if(f!==h){let i=t.clone();if(h){let[t]=F(e,d,d),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.focus.set(p?r.getKey():n.getKey(),p?0:n.getChildrenSize(),"element")}else if(f){let[t]=F(e,c,c),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.anchor.set(p?n.getKey():r.getKey(),p?n.getChildrenSize():0,"element")}(0,n.n1P)(i),ed(r,u)}
18else if(f&&h&&(c.is(d)||(u.$setAnchorCellForSelection(ek(u,c)),u.$setFocusCellForSelection(ek(u,d),!0)),"touch"===u.pointerType&&u.isSelecting&&t.isCollapsed()&&(0,n.I2P)(i)&&i.isCollapsed())){let e=eb(i.anchor.getNode());e&&!e.is(d)&&(u.$setAnchorCellForSelection(ek(u,e)),u.$setFocusCellForSelection(ek(u,d),!0),u.pointerType=null)}}else if(t&&J(t)&&t.is(i)&&t.tableKey===e.getKey()){let i=(0,n.peL)(s);if(i&&i.anchorNode&&i.focusNode){let o=(0,n.xL4)(i.focusNode),a=o&&!e.isParentOf(o),l=(0,n.xL4)(i.anchorNode),s=l&&e.isParentOf(l);if(a&&s&&i.rangeCount>0){let o=(0,n.OBE)(i,r);o&&(o.anchor.set(e.getKey(),t.isBackward()?e.getChildrenSize():0,"element"),i.removeAllRanges(),(0,n.n1P)(o))}}}return t&&!t.is(i)&&(J(t)||J(i))&&u.tableSelection&&!u.tableSelection.is(i)?J(t)&&t.tableKey===u.tableNodeKey?u.$updateTableTableSelection(t):!J(t)&&J(i)&&i.tableKey===u.tableNodeKey&&u.$updateTableTableSelection(null):u.hasHijackedSelectionStyles&&!e.isSelected()?(u.$enableHighlightStyle(),ec(u.table,e=>{let t=e.elem;e.highlighted=!1,ev(r,e),t.getAttribute("style")||t.removeAttribute("style")})):!u.hasHijackedSelectionStyles&&e.isSelected()&&ed(r,u),!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.XKQ,()=>{let t=(0,n.vJq)();if(!(0,n.I2P)(t)||!t.isCollapsed()||!em(t,e))return!1;let i=eS(r,t,e);return!!i&&(e_(i,e),!0)},n.WgU)),u}(o,u,e,t);r.set(l,[c,u])},l=e.registerMutationListener(eA,t=>{e.getEditorState().read(()=>{for(let[e,n]of t){let t=r.get(e);if("created"===n||"updated"===n){let{tableNode:n,tableElement:i}=G(e);void 0===t?o(n,e,i):i!==t[1]&&(t[0].removeListeners(),r.delete(e),o(n,e,i))}else"destroyed"===n&&void 0!==t&&(t[0].removeListeners(),r.delete(e))}},{editor:e})},{skipInitialization:!1});return()=>{for(let[,[e]]of(l(),r))e.removeListeners()}}function eB(e,t){e.hasNodes([eA])||m(255);let{hasNestedTables:r=(0,o.vP)(!1),hasFitNestedTables:a=(0,o.vP)(!1)}=t??{};return(0,n.Sdt)(e.registerCommand(p,e=>(function({rows:e,columns:t,includeHeaders:r},o){let a=(0,n.vJq)()||(0,n.S1w)();if(!a||!(0,n.I2P)(a)||!o&&ew(a.anchor.getNode()))return!1;let l=function(e,t,r=!0){let i=eP();for(let o=0;o<e;o++){let e=v();for(let i=0;i<t;i++){let t=s.NO_STATUS;"object"==typeof r?(0===o&&r.rows&&(t|=s.ROW),0===i&&r.columns&&(t|=s.COLUMN)):r&&(0===o&&(t|=s.ROW),0===i&&(t|=s.COLUMN));let a=f(t),l=(0,n.lJ7)();l.append((0,n.sTu)()),a.append(l),e.append(a)}i.append(e)}return i}(Number(e),Number(t),r);(0,i.Pe)(l);let u=l.getFirstDescendant();return(0,n.kFe)(u)&&u.select(),!0})(e,r.peek()),n.jZM),e.registerCommand(n.oqR,(t,o)=>e===o&&function(e,t,r){let{nodes:o,selection:a}=e;if(!o.some(e=>ej(e)||(0,i.Ie)(e).some(e=>ej(e.node))))return!1;let s=J(a),u=(0,n.I2P)(a);return!!(u&&null!==(0,n.BtT)(a.anchor.getNode(),e=>h(e))&&null!==(0,n.BtT)(a.focus.getNode(),e=>h(e))||s)&&(1===o.length&&ej(o[0])?function(e,t){let r=t.getStartEndPoints(),i=J(t);if(null===r)return!1;let[o,a]=r,[l,s,u]=K(o),c=(0,n.BtT)(a.getNode(),e=>h(e));if(!(h(l)&&h(c)&&b(s)&&ej(u)))return!1;let[d,f,p]=F(u,l,c),[m]=B(e,null,null),g=d.length,y=g>0?d[0].length:0,v=f.startRow,w=f.startColumn,x=m.length,_=x>0?m[0].length:0;if(i){let e=U(d,f,p),t=e.maxRow-e.minRow+1,r=e.maxColumn-e.minColumn+1;v=e.minRow,w=e.minColumn,x=Math.min(x,t),_=Math.min(_,r)}let S=!1,k=Math.min(g,v+x)-1,O=Math.min(y,w+_)-1,C=new Set;for(let e=v;e<=k;e++)for(let t=w;t<=O;t++){let r=d[e][t];C.has(r.cell.getKey())||1===r.cell.__rowSpan&&1===r.cell.__colSpan||(z(r.cell),C.add(r.cell.getKey()),S=!0)}let[E]=B(u.getWritable(),null,null),T=x-g+v;for(let e=0;e<T;e++)A(E[g-1][0].cell);let M=_-y+w;for(let e=0;e<M;e++)P(E[0][y-1].cell,!0,!1);[E]=B(u.getWritable(),null,null);for(let e=v;e<v+x;e++)for(let t=w;t<w+_;t++){let r=e-v,i=t-w,o=m[r][i];if(o.startRow!==r||o.startColumn!==i)continue;let a=o.cell;if(1!==a.__rowSpan||1!==a.__colSpan){let r=[],n=Math.min(e+a.__rowSpan,v+x)-1,i=Math.min(t+a.__colSpan,w+_)-1;for(let o=e;o<=n;o++)for(let e=t;e<=i;e++){let t=E[o][e];r.push(t.cell)}R(r),S=!0}let{cell:l}=E[e][t],s=a.getBackgroundColor();null!=s&&l.setBackgroundColor(s);let u=l.getChildren();
18a.getChildren().forEach(e=>{(0,n.kFe)(e)&&(0,n.lJ7)().append(e),l.append(e)}),u.forEach(e=>e.remove())}if(i&&S){let[e]=B(u.getWritable(),null,null);e[f.startRow][f.startColumn].cell.selectEnd()}return!0}(o[0],a):!(u&&t.peek())||function(e,t,r){let i=J(t)&&!t.focus.getNode().is(t.anchor.getNode()),o=(0,n.I2P)(t)&&h(t.anchor.getNode())&&!t.anchor.getNode().is(t.focus.getNode());if(i||o)return!0;if(!r)return!1;let a=t.focus.getNode(),s=(0,n.BtT)(a,h);if(!s)return!1;let u=eK(s);if(void 0===u)return!1;let c=function(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return 0;let r=window.getComputedStyle(t),i=r.getPropertyValue("padding-left")||"0px",o=r.getPropertyValue("padding-right")||"0px",a=r.getPropertyValue("border-left-width")||"0px",s=r.getPropertyValue("padding-right-width")||"0px";return l.test(i)&&l.test(o)&&l.test(a)&&l.test(s)?parseFloat(i)+parseFloat(o)+parseFloat(a)+parseFloat(s):0}(s);for(let t of e.filter(ej))!function e(t,r,n){let i=t.getColWidths();if(!i)return t;let o=r-n,a=i.reduce((e,t)=>e+t,0);if(a<=o)return t;let l=o/a;for(let r of(t.setColWidths(i.map(e=>e*l)),t.getChildren().filter(b)))for(let t of r.getChildren().filter(h)){let r=eK(t);if(void 0!==r)for(let i of t.getChildren().filter(ej))e(i,r,n)}}(t,u,c);return!1}(o,a,r.peek()))}(t,r,a),n.jZM),e.registerCommand(n.HYn,eL,n.AcJ),e.registerCommand(n.d8p,eR,n.jZM),e.registerNodeTransform(eA,e$),e.registerNodeTransform(g,eD),e.registerNodeTransform(u,eI))}function eK(e){let t=O(e),r=W(e),n=t.getColWidths();if(!r||!n)return;let{columnIndex:i,colSpan:o}=r,a=0;for(let e=i;e<i+o;e++)a+=n[e];return a}(0,n.vE9)({build:(e,t,r)=>
18(0,o.v)(t),config:(0,n.lVE)({hasCellBackgroundColor:!0,hasCellMerge:!0,hasFitNestedTables:!1,hasHorizontalScroll:!0,hasNestedTables:!1,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:()=>[eA,g,u],register(e,t,r){let i=r.getOutput();return(0,n.Sdt)((0,o.QZ)(()=>{let t=i.hasHorizontalScroll.value;eT(e)!==t&&(eM(e,t),e.registerNodeTransform(eA,()=>{})())}),eB(e,i),(0,o.QZ)(()=>eF(e,i.hasTabHandler.value)),(0,o.QZ)(()=>i.hasCellMerge.value?void 0:ez(e)),(0,o.QZ)(()=>i.hasCellBackgroundColor.value?void 0:e.registerNodeTransform(u,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})))}})},8842:(e,t,r)=>{"use strict";r.d(t,{Locked:()=>d});var n=r(19749),i=r(95155),o=r(12115);r(986);let a=({className:e})=>(0,i.jsxs)("svg",{className:["icon icon--lock",e].filter(Boolean).join(" "),fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{className:"stroke",d:"M7.5 9.5V7.5C7.5 6.83696 7.76339 6.20107 8.23223 5.73223C8.70107 5.26339 9.33696 5 10 5C10.663 5 11.2989 5.26339 11.7678 5.73223C12.2366 6.20107 12.5 6.83696 12.5 7.5V9.5",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"1"}),(0,i.jsx)("path",{className:"stroke",d:"M13.5 9.5H6.5C5.94772 9.5 5.5 9.94772 5.5 10.5V14C5.5 14.5523 5.94772 15 6.5 15H13.5C14.0523 15 14.5 14.5523 14.5 14V10.5C14.5 9.94772 14.0523 9.5 13.5 9.5Z",stopOpacity:"1",strokeLinecap:"round",strokeLinejoin:"round"})]});var l=r(24395);r(73321);let s=(0,o.createContext)({i18n:{dateFNS:l.enUS,dateFNSKey:"en-US",fallbackLanguage:"en",language:"en",t:e=>e,translations:{}},languageOptions:void 0,switchLanguage:void 0,t:e=>void 0});var u=r(49432);r(35110);let c="locked",d=e=>{let t,r,l,d,f=(0,n.c)(8),{className:h,user:p}=e,[m,g]=(0,o.useState)(!1),{t:y}=(0,o.use)(s),v=p&&"object"==typeof p?p.email??p.id:y("general:anotherUser");f[0]!==h?(t=[c,h].filter(Boolean),f[0]=h,f[1]=t):t=f[1];let b=t.join(" ");f[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>g(!0),l=()=>g(!1),f[2]=r,f[3]=l):(r=f[2],l=f[3]);let w=`${v} ${y("general:isEditing")}`;return f[4]!==m||f[5]!==b||f[6]!==w?(d=(0,i.jsxs)("div",{className:b,onMouseEnter:r,onMouseLeave:l,role:"button",tabIndex:0,children:[(0,i.jsx)(u.m,{alignCaret:"left",className:`${c}__tooltip`,position:"top",show:m,children:w}),(0,i.jsx)(a,{})]}),f[4]=m,f[5]=b,f[6]=w,f[7]=d):d=f[7],d}},9035:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(49967),i=r(36997),o=r(8625),a=r(12115);
18function l({hasCellMerge:e=!0,hasCellBackgroundColor:t=!0,hasTabHandler:r=!0,hasHorizontalScroll:n=!1,hasNestedTables:u=!1,hasFitNestedTables:c=!1}){let[d]=(0,i.DF)();(0,a.useEffect)(()=>{(0,o.FY)(d)!==n&&((0,o.hi)(d,n),d.registerNodeTransform(o.HA,()=>{})())},[d,n]);let f=s(u),h=s(c);return(0,a.useEffect)(()=>(0,o.xT)(d,{hasFitNestedTables:h,hasNestedTables:f}),[d,f,h]),(0,a.useEffect)(()=>(0,o.Ej)(d,r),[d,r]),(0,a.useEffect)(()=>{if(!e)return(0,o.nq)(d)},[d,e]),(0,a.useEffect)(()=>{if(!t)return d.registerNodeTransform(o.B9,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})},[d,t,e]),null}function s(e){let[t]=(0,a.useState)(()=>(0,n.vP)(e));return t.peek()!==e&&(t.value=e),t}},9042:(e,t,r)=>{e.exports=r(23812).throttle},9339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(77304),a=r(4060),l=r(77197)},9629:(e,t,r)=>{"use strict";r.d(t,{p:()=>a,v:()=>l});var n=r(12115),i=r(10365),o=r(54490),a=(0,n.memo)(e=>{var t=(0,i.j)(),r=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{null===r.current?t((0,o.g5)(e)):r.current!==e&&t((0,o.ZF)({prev:r.current,next:e})),r.current=e},[t,e]),(0,n.useLayoutEffect)(()=>()=>{r.current&&(t((0,o.Vi)(r.current)),r.current=null)},[t]),null}),l=(0,n.memo)(e=>{var t=(0,i.j)(),r=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{null===r.current?t((0,o.As)(e)):r.current!==e&&t((0,o.bF)({prev:r.current,next:e})),r.current=e},[t,e]),(0,n.useLayoutEffect)(()=>()=>{r.current&&(t((0,o.TK)(r.current)),r.current=null)},[t]),null})},9850:()=>{},9976:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(83732);t.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}},10005:(e,t,r)=>{"use strict";function n(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}r.d(t,{K:()=>n})},10254:(e,t,r)=>{"use strict";r.d(t,{Sr:()=>l,ut:()=>s,y0:()=>a});var n=r(11785),i=r(99050),o=(0,n.Z0)({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:o}=t.payload;e[r][n]=(0,i.h4)(o)},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:a,removeRenderedTicks:l}=o.actions,s=o.reducer},10301:(e,t,r)=>{"use strict";r.d(t,{LV:()=>u,M:()=>l,hq:()=>a});var n=r(11785),i=r(99050),o=(0,n.Z0)({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=(0,i.h4)(t.payload),null==t.payload){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:a,setDataStartEndIndexes:l,setComputedData:s}=o.actions,u=o.reducer},10365:(e,t,r)=>{"use strict";r.d(t,{G:()=>d,j:()=>l});var n=r(94577),i=r(12115),o=r(95334),a=e=>e,l=()=>{var e=(0,i.useContext)(o.E);return e?e.store.dispatch:a},s=()=>{},u=()=>s,c=(e,t)=>e===t;function d(e){var t=(0,i.useContext)(o.E),r=(0,i.useMemo)(()=>t?t=>{if(null!=t)return e(t)}:s,[t,e]);return(0,n.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:u,t?t.store.getState:s,t?t.store.getState:s,r,c)}},10483:(e,t,r)=>{"use strict";r.d(t,{g:()=>c});var n=r(12115),i=r(47650),o=r(10365),a=r(59464),l=r(80997),s=r(65372),u=r(64105);function c(e){var{zIndex:t,children:r}=e,c=(0,s.SG)()&&void 0!==t&&0!==t,d=(0,u.r)(),f=(0,n.useRef)(void 0),h=(0,n.useRef)(new Set),p=(0,o.j)(),m=(0,o.G)(e=>(0,a.h)(e,t,d));if((0,n.useLayoutEffect)(()=>
18{if(!c){var e=h.current;e.forEach(e=>{p((0,l.ZV)({zIndex:e}))}),e.clear(),f.current=void 0;return}if(h.current.has(t)||(p((0,l.wR)({zIndex:t})),h.current.add(t)),m){f.current=m;var r=h.current;r.forEach(e=>{e!==t&&(p((0,l.ZV)({zIndex:e})),r.delete(e))})}},[p,t,c,m]),(0,n.useLayoutEffect)(()=>{var e=h.current;return()=>{e.forEach(e=>{p((0,l.ZV)({zIndex:e}))}),e.clear()}},[p]),!c)return r;var g=null!=m?m:f.current;return g?(0,i.createPortal)(r,g):null}},11022:(e,t,r)=>{"use strict";r.d(t,{a:()=>Y,b:()=>X,c:()=>Q,d:()=>ee,e:()=>ea,f:()=>es,g:()=>eu,h:()=>en,i:()=>ei,j:()=>eo,k:()=>ec,l:()=>eh});var n,i,o=r(12115);r(47650);var a=r(19749),l=r(95155);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(r,[].concat(i,n))}}}function f(e){return({}).toString.call(e).includes("Object")}function h(e){return"function"==typeof e}var p=d(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),m=function(e,t){return f(t)||p("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&p("changeField"),t},g=function(e){h(e)||p("selectorType")},y=function(e){h(e)||f(e)||p("handlerType"),f(e)&&Object.values(e).some(function(e){return!h(e)})&&p("handlersType")},v=function(e){e||p("initialIsRequired"),f(e)||p("initialType"),Object.keys(e).length||p("initialContent")};function b(e,t){return h(t)?t(e.current):t}function w(e,t){return e.current=c(c({},e.current),t),t}function x(e,t,r){return h(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var _={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning! 19 You are using deprecated way of configuration. 20 21 Instead of using 22 monaco.config({ urls: { monacoBase: '...' } }) 23 use 24 monaco.config({ paths: { vs: '...' } }) 25 26 For more please check the link https://github.com/suren-atoyan/monaco-loader#config 27 `},S=(n=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=n.length?n.apply(this,i):function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.apply(t,[].concat(i,n))}})(_),k=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},O={type:"cancelation",msg:"operation is manually canceled"};function C(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(O):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var E=function(e){if(Array.isArray(e))return e}(i=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(e),y(t);var r={current:e},n=d(x)(r,t),i=d(w)(r),o=d(m)(e),a=d(b)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return g(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,i,o,a)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/[email protected]/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,o,a=[],l=!0,s=!1;try{i=(t=t.call(e)).next,!0;for(;!(l=(r=i.call(t)).done)&&(a.push(r.value),2!==a.length);l=!0);}catch(e){s=!0,n=e}
27finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw n}}return a}}(i)||function(e){if(e){if("string"==typeof e)return s(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,2):void 0}}(i)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),T=E[0],M=E[1];function A(e){return document.body.appendChild(e)}function N(e){var t,r,n=T(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return i.onload=function(){return e()},i.onerror=n.reject,i}function P(){var e=T(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;j(r),e.resolve(r)},function(t){e.reject(t)})}function j(e){T().monaco||M({monaco:e})}var I=new Promise(function(e,t){return M({resolve:e,reject:t})}),D=function(){var e=T(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(M({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),C(I);if(window.monaco&&window.monaco.editor)return j(window.monaco),e.resolve(window.monaco),C(I);k(A,N)(P)}return C(I)},$={display:"flex",position:"relative",textAlign:"initial"},R={width:"100%"},L={display:"none"},z={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},F=function({children:e}){return o.createElement("div",{style:z},e)},B=(0,o.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:i,className:a,wrapperProps:l}){return o.createElement("section",{style:{...$,width:e,height:t},...l},!r&&o.createElement(F,null,n),o.createElement("div",{ref:i,style:{...R,...!r&&L},className:a}))}),K=function(e){(0,o.useEffect)(e,[])},U=function(e,t,r=!0){let n=(0,o.useRef)(!0);(0,o.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function W(){}function H(e,t,r,n){var i,o,a,l,s,u;return i=e,o=n,i.editor.getModel(q(i,o))||(a=e,l=t,s=r,u=n,a.editor.createModel(l,s,u?q(a,u):void 0))}function q(e,t){return e.Uri.parse(t)}var J=function(e){let t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current},V=new Map,G=(0,o.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:i,path:a,theme:l="light",line:s,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:p="100%",height:m="100%",className:g,wrapperProps:y={},beforeMount:v=W,onMount:b=W,onChange:w,onValidate:x=W}){let[_,S]=(0,o.useState)(!1),[k,O]=(0,o.useState)(!0),C=(0,o.useRef)(null),E=(0,o.useRef)(null),T=(0,o.useRef)(null),M=(0,o.useRef)(b),A=(0,o.useRef)(v),N=(0,o.useRef)(),P=(0,o.useRef)(n),j=J(a),I=(0,o.useRef)(!1),$=(0,o.useRef)(!1);K(()=>{let e=D();return e.then(e=>(C.current=e)&&O(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>E.current?void(N.current?.dispose(),h?f&&V.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),E.current.dispose()):e.cancel()}),U(()=>{let o=H(C.current,e||n||"",t||i||"",a||r||"");o!==E.current?.getModel()&&(f&&V.set(j,E.current?.saveViewState()),E.current?.setModel(o),f&&E.current?.restoreViewState(V.get(a)))},[a],_),U(()=>{E.current?.updateOptions(c)},[c],_),U(()=>{E.current&&void 0!==n&&(E.current.getOption(C.current.editor.EditorOption.readOnly)?E.current.setValue(n):n!==E.current.getValue()&&($.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),E.current.pushUndoStop(),$.current=!1))},[n],_),U(()=>{let e=E.current?.getModel();e&&i&&C.current?.editor.setModelLanguage(e,i)},[i],_),U(()=>{void 0!==s&&E.current?.revealLine(s)},[s],_),U(()=>{C.current?.editor.setTheme(l)},[l],_);let R=(0,o.useCallback)(()=>{if(!(!T.current||!C.current)&&!I.current){A.current(C.current);let o=a||r,u=H(C.current,n||e||"",t||i||"",o||"");E.current=C.current?.editor.create(T.current,{model:u,automaticLayout:!0,...c},d),f&&E.current.restoreViewState(V.get(o)),C.current.editor.setTheme(l),void 0!==s&&E.current.revealLine(s),S(!0),I.current=!0}},[e,t,r,n,i,a,c,d,f,l,s]);return(0,o.useEffect)(()=>{_&&M.current(E.current,C.current)},[_]),(0,o.useEffect)(()=>{k||_||R()},[k,_,R]),P.current=n,(0,o.useEffect)(()=>{_&&w&&(N.current?.dispose(),N.current=E.current?.onDidChangeModelContent(e=>{$.current||w(E.current.getValue(),e)}))},[_,w]),(0,o.useEffect)(()=>
28{if(_){let e=C.current.editor.onDidChangeMarkers(e=>{let t=E.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=C.current.editor.getModelMarkers({resource:t});x?.(e)}});return()=>{e?.dispose()}}return()=>{}},[_,x]),o.createElement(B,{width:p,height:m,isEditorReady:_,loading:u,_ref:T,className:g,wrapperProps:y})});function Y(e,t){let r=(0,a.c)(5),[n,i]=(0,o.useState)(e),l=(0,o.useRef)(!0),s,u;r[0]!==e?(s=()=>{if(l.current){l.current=!1;return}i(e)},u=[e],r[0]=e,r[1]=s,r[2]=u):(s=r[1],u=r[2]),(0,o.useEffect)(s,u);let c=n??t,d;return r[3]!==c?(d=[c,i],r[3]=c,r[4]=d):d=r[4],d}var Z=(0,o.createContext)(void 0),X=({children:e,config:t})=>{let[r,n]=Y(t),{collectionsBySlug:i,globalsBySlug:a}=(0,o.useMemo)(()=>{let e={},t={};for(let t of r.collections)e[t.slug]=t;for(let e of r.globals)t[e.slug]=e;return{collectionsBySlug:e,globalsBySlug:t}},[r]),s=(0,o.useCallback)(e=>"collectionSlug"in e&&e.collectionSlug?i[e.collectionSlug]??null:"globalSlug"in e&&e.globalSlug?a[e.globalSlug]??null:null,[i,a]),u=(0,o.useMemo)(()=>({config:r,getEntityConfig:s,setConfig:n}),[r,s,n]);return(0,l.jsx)(Z,{value:u,children:e})},Q=()=>(0,o.use)(Z),ee=e=>{let t=(0,a.c)(7),{children:r,config:n}=e,{config:i,setConfig:s}=Q(),u,c;if(t[0]!==n||t[1]!==s?(u=()=>{s(n)},c=[n,s],t[0]=n,t[1]=s,t[2]=u,t[3]=c):(u=t[2],c=t[3]),(0,o.useEffect)(u,c),i!==n&&i.unauthenticated!==n.unauthenticated){let e;return t[4]!==r||t[5]!==n?(e=(0,l.jsx)(X,{config:n,children:r}),t[4]=r,t[5]=n,t[6]=e):e=t[6],e}return r},et=(0,o.createContext)({autoMode:!0,setTheme:()=>null,theme:"light"});function er(e,t,r){let n=new Date;n.setTime(n.getTime()+24*r*36e5);let i="expires="+n.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}var en="light",ei=e=>{let t,r=(0,a.c)(11),{children:n,theme:i}=e,{config:s}=Q(),u=s.admin.theme,c=`${s.cookiePrefix||"payload"}-theme`,[d,f]=(0,o.useState)(i||en),[h,p]=(0,o.useState)(),m,g;r[0]!==c||r[1]!==u?(m=()=>{let e,t;if("all"!==u)return;let{theme:r,themeFromCookies:n}=(e="light"===(t=window.document.cookie.split("; ").find(e=>e.startsWith(`${c}=`))?.split("=")[1])||"dark"===t?t:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",document.documentElement.setAttribute("data-theme",e),{theme:e,themeFromCookies:t});f(r),p(!n)},g=[u,c],r[0]=c,r[1]=u,r[2]=m,r[3]=g):(m=r[2],g=r[3]),(0,o.useEffect)(m,g),r[4]!==c?(t=e=>{if("light"===e||"dark"===e)f(e),p(!1),er(c,e,365),document.documentElement.setAttribute("data-theme",e);else if("auto"===e){er(c,e,-1);let t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.documentElement.setAttribute("data-theme",t),p(!0),f(t)}},r[4]=c,r[5]=t):t=r[5];let y=t,v;return r[6]!==h||r[7]!==n||r[8]!==y||r[9]!==d?(v=(0,l.jsx)(et,{value:{autoMode:h,setTheme:y,theme:d},children:n}),r[6]=h,r[7]=n,r[8]=y,r[9]=d,r[10]=v):v=r[10],v},eo=()=>(0,o.use)(et),ea=(e,t)=>{let r,n=(0,a.c)(9),i=void 0!==t&&t,[l,s]=o.useState(!1),u=o.useRef(void 0),c;n[0]!==e?(c=()=>(s(!1),clearTimeout(u.current),u.current=setTimeout(()=>{s(!0)},e),()=>{clearTimeout(u.current)}),n[0]=e,n[1]=c):c=n[1];let d=c,f,h;return n[2]!==d||n[3]!==i?(f=()=>{i&&d()},h=[d,i],n[2]=d,n[3]=i,n[4]=f,n[5]=h):(f=n[4],h=n[5]),o.useEffect(f,h),n[6]!==l||n[7]!==d?(r=[l,d],n[6]=l,n[7]=d,n[8]=r):r=n[8],r},el="shimmer-effect",es=({animationDelay:e="0ms",className:t,disableInlineStyles:r=!1,height:n="60px",transparent:i,width:o="100%",...a})=>(0,l.jsx)("div",{...a,className:[el,i&&`${el}--transparent`,t].filter(Boolean).join(" "),style:{...a?.style||{},height:!r&&("number"==typeof n?`${n}px`:n),width:!r&&("number"==typeof o?`${o}px`:o)},children:(0,l.jsx)("div",{className:"shimmer-effect__shine",style:{animationDelay:e}})}),eu=e=>{let t,r,n=(0,a.c)(9),{className:i,count:o,height:s,renderDelay:u,shimmerDelay:c,shimmerItemClassName:d,width:f}=e,h=void 0===c?25:c,p="number"==typeof h?`${h}ms`:h,[m]=ea(void 0===u?500:u,!0);return m?(n[0]!==o?(t=[...Array(o)],n[0]=o,n[1]=t):t=n[1],n[2]!==i||n[3]!==s||n[4]!==p||n[5]!==d||n[6]!==t||n[7]!==f?(r=(0,l.jsx)("div",{className:i,children:t.map((e,t)=>(0,l.jsx)("div",{className:d,children:(0,l.jsx)(es,{animationDelay:`calc(${t} * ${p})`,height:s,width:f})},t))}),n[2]=i,n[3]=s,n[4]=p,n[5]=d,n[6]=t,n[7]=f,n[8]=r):r=n[8],r):null},ec={insertSpaces:!1,tabSize:4,trimAutoWhitespace:!1},ed={hideCursorInOverviewRuler:!0,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:!1,scrollbar:{alwaysConsumeMouseWheel:!1},scrollBeyondLastLine:!1,wordWrap:"on"},ef="default"in G?G.default:G,eh=e=>{let t=(0,a.c)(10),{className:r,maxHeight:n,minHeight:i,options:s,readOnly:u,recalculatedHeightAt:c,value:d,...f}=e,h=i??56,p=o.useRef(c),{insertSpaces:m,tabSize:g,trimAutoWhitespace:y,...v}=s||{},b=s?.padding?(s.padding.top||0)+(s.padding?.bottom||0):0,[w,x]=(0,o.useState)(h),{theme:_}=eo(),S=f?.defaultLanguage?`language--${f.defaultLanguage}`:"",k=u&&"read-only",O;
28t[0]!==r||t[1]!==S||t[2]!==k?(O=["code-editor",r,S,k].filter(Boolean),t[0]=r,t[1]=S,t[2]=k,t[3]=O):O=t[3];let C=O.join(" "),E,T;return t[4]!==h||t[5]!==b||t[6]!==c||t[7]!==d?(E=()=>{c&&c>p.current&&(x(d?Math.max(h,18*d.split(` 29`).length+2+b):h),p.current=c)},T=[d,h,b,c],t[4]=h,t[5]=b,t[6]=c,t[7]=d,t[8]=E,t[9]=T):(E=t[8],T=t[9]),o.useEffect(E,T),(0,l.jsx)(ef,{className:C,height:n?Math.min(w,n):w,loading:(0,l.jsx)(es,{height:w}),options:{...ed,...v,readOnly:!!u,detectIndentation:!1,insertSpaces:void 0,tabSize:void 0,trimAutoWhitespace:void 0},theme:"dark"===_?"vs-dark":"vs",value:d,...f,onChange:(e,t)=>{f.onChange?.(e,t),x(e?Math.max(h,18*e.split(` 30`).length+2+b):h)},onMount:(e,t)=>{f.onMount?.(e,t);let r=e.getModel();r&&r.updateOptions({insertSpaces:m??ec.insertSpaces,tabSize:g??ec.tabSize,trimAutoWhitespace:y??ec.trimAutoWhitespace}),x(Math.max(h,18*e.getValue().split(` 31`).length+2+b))}})}},11058:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(12115),i=r(29722),o=r(55359),a=["children","className"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var s=n.forwardRef((e,t)=>{var{children:r,className:s}=e,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),c=(0,i.$)("recharts-layer",s);return n.createElement("g",l({className:c},(0,o.a)(u),{ref:t}),r)})},11691:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(51858),i=r(94313),o=r(77182),a=r(40841);t.isIterateeCall=function(e,t,r){return!!o.isObject(r)&&(!!("number"==typeof t&&i.isArrayLike(r)&&n.isIndex(t))&&t<r.length||"string"==typeof t&&t in r)&&a.isEqualsSameValueZero(r[t],e)}},11744:(e,t,r)=>{"use strict";r.d(t,{F:()=>i,l:()=>n});let n=e=>{if(!e)return;let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(t){console.error("Error parsing columns",e,t)}if(t&&Array.isArray(t))return t.map(e=>{if("string"==typeof e){let t="-"!==e[0];return{accessor:t?e:e.slice(1),active:t}}return{accessor:e.accessor,active:e.active}})},i=e=>e?.map(e=>e.active?e.accessor:`-${e.accessor}`)},11785:(e,t,r)=>{"use strict";r.d(t,{CF:()=>g,U1:()=>y,VP:()=>u,Nc:()=>X,Z0:()=>x,aA:()=>p});var n,i=r(30894),o=r(61754);function a(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var l=a(),s=(r(41463),"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?o.Zz:o.Zz.apply(null,arguments)});function u(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(Q(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,o.ve)(t)&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var c=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function d(e){return(0,i.a6)(e)?(0,i.jM)(e,()=>{}):e}function f(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var h="RTK_autoBatch",p=()=>e=>({payload:e,meta:{[h]:!0}}),m=e=>t=>{setTimeout(t,e)},g=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,a=!1,l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:m(10):"callback"===e.type?e.queueNotification:m(e.timeout),u=()=>{a=!1,o&&(o=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(o=!(i=!e?.meta?.[h]))&&!a&&(a=!0,s(u)),n.dispatch(e)}finally{i=!0}}})};function y(e){let t,r,n,i=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},o=new c;return t&&("boolean"==typeof t?o.push(l):o.push(a(t.extraArgument))),o},{reducer:u,middleware:d,devTools:f=!0,duplicateMiddlewareCheck:h=!0,preloadedState:p,enhancers:m}=e||{};if("function"==typeof u)t=u;else if((0,o.Qd)(u))t=(0,o.HY)(u);else throw Error(Q(1));r="function"==typeof d?d(i):i();let y=o.Zz;f&&(y=s({trace:!1,..."object"==typeof f&&f}));let v=(n=(0,o.Tw)(...r),function(e){let{autoBatch:t=!0}=e??{},r=new c(n);return t&&r.push(g("object"==typeof t?t:void 0)),r}),b=y(..."function"==typeof m?m(v):v());return(0,o.y$)(t,p,b)}function v(e){let t,r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(Q(28));if(n in r)throw Error(Q(29));return r[n]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var b=Symbol.for("rtk-slice-createasyncthunk"),w=((n=w||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),x=function({creators:e}={}){let t=e?.asyncThunk?.[b];return function(e){let r,{name:n,reducerPath:o=n}=e;if(!n)throw Error(Q(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},l=Object.keys(a),s={},c={},h={},p=[],m={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(Q(12));if(r in c)throw Error(Q(13));return c[r]=t,m},addMatcher:(e,t)=>(p.push({matcher:e,reducer:t}),m),exposeAction:(e,t)=>(h[e]=t,m),exposeCaseReducer:(e,t)=>(s[e]=t,m)};function g(){let[t={},r=[],n]="function"==typeof e.extraReducers?v(e.extraReducers):[e.extraReducers],o={...t,...c};return function(e,t){let r,[n,o,a]=v(t);if("function"==typeof e)r=()=>d(e());else{let t=d(e);r=()=>t}function l(e=r(),t){let s=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[a]),s.reduce((e,r)=>{if(r)if((0,i.Qx)(e)){let n=r(e,t);return void 0===n?e:n}else{if((0,i.a6)(e))return(0,i.jM)(e,e=>r(e,t));let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return l.getInitialState=r,l}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of p)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}l.forEach(r=>{let i=a[r],o={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(Q(18));let{payloadCreator:o,fulfilled:a,pending:l,rejected:s,settled:u,options:c}=r,d=i(e,o,c);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),l&&n.addCase(d.pending,l),s&&n.addCase(d.rejected,s),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:a||_,pending:l||_,rejected:s||_,settled:u||_})}(o,i,m,t):function({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(Q(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(o,i,m)});let y=e=>e,b=new Map,w=new WeakMap;function x(e,t){return r||(r=g()),r(e,t)}function S(){return r||(r=g()),r.getInitialState()}function k(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=f(w,n,S)),i}function i(t=y){let n=f(b,r,()=>new WeakMap);return f(n,t,()=>{let n={};for(let[i,o]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(o,...a){let l=t(o);return void 0===l&&n&&(l=r()),e(l,...a)}return i.unwrapped=e,i}(o,t,()=>f(w,t,S),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let O={name:n,reducer:x,actions:h,caseReducers:s,getInitialState:S,...k(o),injectInto(e,{reducerPath:t,...r}={}){let n=t??o;return e.inject({reducerPath:n,reducer:x},r),{...O,...k(n,!0)}}};return O}}();function _(){}var S="listener",k="completed",O="cancelled",C=`task-${O}`,E=`task-${k}`,T=`${S}-${O}`,M=`${S}-${k}
31`,A=class{constructor(e){this.code=e,this.message=`task ${O} (reason: ${e})`}name="TaskAbortError";message},N=(e,t)=>{if("function"!=typeof e)throw TypeError(Q(32))},P=()=>{},j=(e,t=P)=>(e.catch(t),e),I=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),D=e=>{if(e.aborted)throw new A(e.reason)};function $(e,t){let r=P;return new Promise((n,i)=>{let o=()=>i(new A(e.reason));e.aborted?o():(r=I(e,o),t.finally(()=>r()).then(n,i))}).finally(()=>{r=P})}var R=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof A?"cancelled":"rejected",error:e}}finally{t?.()}},L=e=>t=>j($(e,t).then(t=>(D(e),t))),z=e=>{let t=L(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:F}=Object,B={},K="listenerMiddleware",U=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=u(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(Q(21));return N(o,"options.listener"),{predicate:i,type:t,effect:o}},W=F(e=>{let{type:t,predicate:r,effect:n}=U(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}
31)(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(Q(22))}}},{withTypes:()=>W}),H=(e,t)=>{let{type:r,effect:n,predicate:i}=U(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},q=e=>{e.pending.forEach(e=>{e.abort(T)})},J=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},V=F(u(`${K}/add`),{withTypes:()=>V}),G=u(`${K}/removeAll`),Y=F(u(`${K}/remove`),{withTypes:()=>Y}),Z=(...e)=>{console.error(`${K}/error`,...e)},X=(e={})=>{let t=new Map,r=new Map,{extra:n,onError:i=Z}=e;N(i,"onError");let a=e=>{var r;return(r=H(t,e)??W(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&q(r)}};F(a,{withTypes:()=>a});let l=e=>{let r=H(t,e);return r&&(r.unsubscribe(),e.cancelActive&&q(r)),!!r};F(l,{withTypes:()=>l});let s=async(e,o,l,s)=>{var u,c;let d,f=new AbortController,h=(u=f.signal,d=async(e,t)=>{D(u);let r=()=>{},n=[new Promise((t,n)=>{let i=a({predicate:e,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});r=()=>{i(),n()}})];null!=t&&n.push(new Promise(e=>setTimeout(e,t,null)));try{let e=await $(u,Promise.race(n));return D(u),e}finally{r()}},(e,t)=>j(d(e,t))),p=[];try{let i;e.pending.add(f),i=r.get(e)??0,r.set(e,i+1),await Promise.resolve(e.effect(o,F({},l,{getOriginalState:s,condition:(e,t)=>h(e,t).then(Boolean),take:h,delay:z(f.signal),pause:L(f.signal),extra:n,signal:f.signal,fork:(c=f.signal,(e,t)=>{N(e,"taskExecutor");let r=new AbortController;I(c,()=>r.abort(c.reason));let n=R(async()=>{D(c),D(r.signal);let t=await e({pause:L(r.signal),delay:z(r.signal),signal:r.signal});return D(r.signal),t},()=>r.abort(E));return t?.autoJoin&&p.push(n.catch(P)),{result:L(c)(n),cancel(){r.abort(C)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==f&&(e.abort(T),r.delete(e))})},cancel:()=>{f.abort(T),e.pending.delete(f)},throwIfCancelled:()=>{D(f.signal)}})))}catch(e){e instanceof A||J(i,e,{raisedBy:"effect"})}finally{let t;await Promise.all(p),f.abort(M),1===(t=r.get(e)??1)?r.delete(e):r.set(e,t-1),e.pending.delete(f)}},u=()=>{for(let e of r.keys())q(e);t.clear()};return{middleware:e=>r=>n=>{let c;if(!(0,o.ve)(n))return r(n);if(V.match(n))return a(n.payload);if(G.match(n))return void u();if(Y.match(n))return l(n.payload);let d=e.getState(),f=()=>{if(d===B)throw Error(Q(23));return d};try{if(c=r(n),t.size>0){let r=e.getState();for(let o of Array.from(t.values())){let t=!1;try{t=o.predicate(n,r,d)}catch(e){t=!1,J(i,e,{raisedBy:"predicate"})}t&&s(o,n,e,f)}}}finally{d=B}return c},startListening:a,stopListening:l,clearListeners:u}};function Q(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original")},11792:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var n=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t}},12118:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]])},12588:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(12115),i=r(29428);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a=r(27570);let l=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...l},s)=>(0,n.createElement)(a.default,{ref:s,iconNode:t,className:(0,i.z)(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...l}));return r.displayName=o(e),r}},12600:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(53443);let i=(e,t,r)=>{let i={};return e&&(Object.keys(e).forEach(t=>{!0!==r&&e[t]?.disableFormData||(i[t]=e[t]?.value)}),t&&(i=(0,n.s)(i))),i}},12614:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(10365),i=()=>{var e;return null==(e=(0,n.G)(e=>e.rootProps.accessibilityLayer))||e}},12651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>p,w:()=>h});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="u">typeof navigator&&/Mac/.test(navigator.platform),a="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var s in n)i.hasOwnProperty(s)||(i[s]=n[s]);var u=r(76865);let c="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);
31function f(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function h(e){return new u.k_({props:{handleKeyDown:p(e)}})}function p(e){let t=function(e){let t=Object.create(null);for(let r in e)t[function(e){let t,r,n,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let e=0;e<o.length-1;e++){let a=o[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else if(/^mod$/i.test(a))c?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+a)}return t&&(a="Alt-"+a),r&&(a="Ctrl-"+a),i&&(a="Meta-"+a),n&&(a="Shift-"+a),a}(r)]=e[r];return t}(e);return function(e,r){var l;let s=("Esc"==(l=!(o&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||a&&r.shiftKey&&r.key&&1==r.key.length||"Unidentified"==r.key)&&r.key||(r.shiftKey?i:n)[r.keyCode]||r.key||"Unidentified")&&(l="Escape"),"Del"==l&&(l="Delete"),"Left"==l&&(l="ArrowLeft"),"Up"==l&&(l="ArrowUp"),"Right"==l&&(l="ArrowRight"),"Down"==l&&(l="ArrowDown"),l),u,c=t[f(s,r)];if(c&&c(e.state,e.dispatch,e))return!0;if(1==s.length&&" "!=s){if(r.shiftKey){let n=t[f(s,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(u=n[r.keyCode])&&u!=s){let n=t[f(u,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},12928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732),o=r(45673);t.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`},code(e){let t,r,{gen:a,data:l,$data:s,schema:u,schemaCode:c,it:d}=e;if(!s&&0===u.length)throw Error("enum must have non-empty array");let f=u.length>=d.opts.loopEnum,h=()=>null!=t?t:t=(0,i.useFunc)(a,o.default);if(f||s)r=a.let("valid"),e.block$data(r,function(){a.assign(r,!1),a.forOf("v",c,e=>a.if((0,n._)`${h()}(${l}, ${e})`,()=>a.assign(r,!0).break()))});else{if(!Array.isArray(u))throw Error("ajv implementation error");let e=a.const("vSchema",c);r=(0,n.or)(...u.map((t,r)=>{var i,o;let a;return i=e,"object"==typeof(a=u[o=r])&&null!==a?(0,n._)`${h()}(${l}, ${i}[${o}])`:(0,n._)`${l} === ${a}`}))}e.pass(r)}}},12936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;let n=r(15571),i=r(4378),o=r(20804),a={message:"boolean schema is false"};function l(e,t){let{gen:r,data:i}=e;(0,n.reportError)({gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},a,void 0,t)}t.topBoolOrEmptySchema=function(e){let{gen:t,schema:r,validateName:n}=e;!1===r?l(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign((0,i._)`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){let{gen:r,schema:n}=e;!1===n?(r.var(t,!1),l(e)):r.var(t,!0)}},12968:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var n=(e,t)=>t},12979:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(99498),i=r(16787),o=r(29482),a=(e,t,r,a)=>{var l=null==e?void 0:e.index;if(null==l)return null;var s=Number(l);if(!(0,n.H)(s))return l;var u=Infinity;t.length>0&&(u=t.length-1);var c=Math.max(0,Math.min(s,u)),d=t[c];return null==d?String(c):!function(e,t,r){if(null==r||null==t)return!0;var n=(0,i.kr)(e,t);return!(null!=n&&(0,o.JH)(r))||function(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],i=t[1];if(void 0===r)return!1;var o=Math.min(n,i),a=Math.max(n,i);return r>=o&&r<=a}(n,r)}(d,r,a)?null:String(c)}},13037:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.ary=function(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}},13175:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]])},13310:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n=(e,t)=>0===t.length||t.map(e=>e.replace("*","")).some(t=>e.startsWith(t))},13320:(e,t,r)=>{"use strict";
31Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732),o=r(48418);t.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:a,it:l}=e,s="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===l.opts.unicode?(0,n._)`${r}.length`:(0,n._)`${(0,i.useFunc)(e.gen,o.default)}(${r})`;e.fail$data((0,n._)`${u} ${s} ${a}`)}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>B,hG:()=>J});var n=r(12115),i=r(47650),o=r(8039),a=r(95155),l=r(82159);let{getOwnPropertyNames:s,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function d(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function f(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,o=i.get(t),a=i.get(r);if(o&&a)return o===r&&a===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function h(e){return s(e).concat(u(e))}let p=Object.hasOwn||((e,t)=>c.call(e,t));function m(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:g,keys:y}=Object;function v(e,t){return e.byteLength===t.byteLength&&A(new Uint8Array(e),new Uint8Array(t))}function b(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function w(e,t){return e.byteLength===t.byteLength&&A(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function x(e,t){return m(e.getTime(),t.getTime())}function _(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function k(e,t,r){let n,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let a=Array(o),l=e.entries(),s=0;for(;(n=l.next())&&!n.done;){let o=t.entries(),l=!1,u=0;for(;(i=o.next())&&!i.done;){if(a[u]){u++;continue}let o=n.value,c=i.value;if(r.equals(o[0],c[0],s,u,e,t,r)&&r.equals(o[1],c[1],o[0],c[0],e,t,r)){l=a[u]=!0;break}u++}if(!l)return!1;s++}return!0}function O(e,t,r){let n=y(e),i=n.length;if(y(t).length!==i)return!1;for(;i-- >0;)if(!P(e,t,r,n[i]))return!1;return!0}function C(e,t,r){let n,i,o,a=h(e),l=a.length;if(h(t).length!==l)return!1;for(;l-- >0;)if(!P(e,t,r,n=a[l])||(i=g(e,n),o=g(t,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function E(e,t){return m(e.valueOf(),t.valueOf())}function T(e,t){return e.source===t.source&&e.flags===t.flags}function M(e,t,r){let n,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let a=Array(o),l=e.values();for(;(n=l.next())&&!n.done;){let o=t.values(),l=!1,s=0;for(;(i=o.next())&&!i.done;){if(!a[s]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=a[s]=!0;break}s++}if(!l)return!1}return!0}function A(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function N(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function P(e,t,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!e.$$typeof||!!t.$$typeof)||p(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let j={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},I=Object.prototype.toString,D=$();function $(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:p}){return function(m,g,y){if(m===g)return!0;
31if(null==m||null==g)return!1;let v=typeof m;if(v!==typeof g)return!1;if("object"!==v)return"number"===v?l(m,g,y):"function"===v&&o(m,g,y);let b=m.constructor;if(b!==g.constructor)return!1;if(b===Object)return s(m,g,y);if(Array.isArray(m))return t(m,g,y);if(b===Date)return n(m,g,y);if(b===RegExp)return c(m,g,y);if(b===Map)return a(m,g,y);if(b===Set)return d(m,g,y);let w=I.call(m);if("[object Date]"===w)return n(m,g,y);if("[object RegExp]"===w)return c(m,g,y);if("[object Map]"===w)return a(m,g,y);if("[object Set]"===w)return d(m,g,y);if("[object Object]"===w)return"function"!=typeof m.then&&"function"!=typeof g.then&&s(m,g,y);if("[object URL]"===w)return h(m,g,y);if("[object Error]"===w)return i(m,g,y);if("[object Arguments]"===w)return s(m,g,y);if(j[w])return f(m,g,y);if("[object ArrayBuffer]"===w)return e(m,g,y);if("[object DataView]"===w)return r(m,g,y);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return u(m,g,y);if(p){let e=p[w];if(!e){let t=null!=m?m[Symbol.toStringTag]:void 0;t&&(e=p[t])}if(e)return e(m,g,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:v,areArraysEqual:r?C:b,areDataViewsEqual:w,areDatesEqual:x,areErrorsEqual:_,areFunctionsEqual:S,areMapsEqual:r?d(k,C):k,areNumbersEqual:m,areObjectsEqual:r?C:O,arePrimitiveWrappersEqual:E,areRegExpsEqual:T,areSetsEqual:r?d(M,C):M,areTypedArraysEqual:r?d(A,C):A,areUrlsEqual:N,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=f(n.areArraysEqual),t=f(n.areMapsEqual),r=f(n.areObjectsEqual),i=f(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}(e)),a=r?r(o):function(e,t,r,n,i,a,l){return o(e,t,l)};return function({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(o,a){let{cache:l=e?new WeakMap:void 0,meta:s}=r();return t(o,a,{cache:l,equals:n,meta:s,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let o={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,o)}}({circular:t,comparator:o,createState:n,equals:a,strict:i})}$({strict:!0}),$({circular:!0}),$({circular:!0,strict:!0}),$({createInternalComparator:()=>m}),$({strict:!0,createInternalComparator:()=>m}),$({circular:!0,createInternalComparator:()=>m}),$({circular:!0,createInternalComparator:()=>m,strict:!0});var R=r(94577),L=({contentComponent:e})=>{let t=(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,a.jsx)(a.Fragment,{children:Object.values(t)})},z=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){let e,r,n,o;if(t.contentComponent)return;let a=this.editorContentRef.current;a.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:a}),e=new Set,r={},n=!1,o=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))},t.contentComponent={subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>r,getServerSnapshot:()=>r,setRenderer(e,t){r={...r,[e]:i.createPortal(t.reactElement,t.element,e)},o()},removeRenderer(e){let t={...r};delete t[e],r=t,o()}},t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:((...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,a.jsx)(L,{contentComponent:e.contentComponent})]})}},F=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(z,{key:r,innerRef:t,...e})}),B=n.memo(F),K="u">typeof window?n.useLayoutEffect:n.useEffect,U=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0}
31,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}},W="u"<typeof window,H=W||!!("u">typeof window&&window.next),q=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=null==e||e;return W?t=!1:H&&void 0===e&&(t=!1),t?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)},onMount:(...e)=>{var t,r;return null==(r=(t=this.options.current).onMount)?void 0:r.call(t,...e)},onUnmount:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUnmount)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){
31if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function J(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new q(r)),a=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(a),(0,n.useEffect)(i.onRender(t)),!function(e){var t;let[r]=(0,n.useState)(()=>new U(e.editor)),i=(0,R.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:D);K(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i)}({editor:a,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),a}var V=(0,n.createContext)({editor:null});V.Consumer,l.Db,l.Yv;var G=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});function Y({children:e,...t}){let r="editor"in t?t.editor:t.instance;if(!r)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let i=(0,n.useMemo)(()=>({editor:r}),[r]),o=(0,n.useMemo)(()=>({editor:r}),[r]);return(0,a.jsx)(V.Provider,{value:o,children:(0,a.jsx)(G.Provider,{value:i,children:e})})}function Z({...e}){let{editor:t}=(0,n.useContext)(G);return(0,a.jsx)(B,{editor:t,...e})}G.displayName="TiptapContext",Y.displayName="Tiptap",Z.displayName="Tiptap.Content",Object.assign(Y,{Content:Z})},13480:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n=(e,t,r)=>{if(!t||!e)return r;let n=t.split(".").reduce((e,t)=>e?.[t],e);return void 0===n?r:n}},13530:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});var n=(e,t,r,n,i,o,a)=>{if(null!=o){var l=a[0],s=null==l?void 0:l.getPosition(o);if(null!=s)return s;var u=null==i?void 0:i[Number(o)];if(u)if("horizontal"===r)return{x:u.coordinate,y:(n.top+t)/2};else return{x:(n.left+e)/2,y:u.coordinate}}}},13969:()=>{},15411:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},15571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;let n=r(4378),i=r(83732),o=r(20804);function a(e,t){let r=e.const("err",t);e.if((0,n._)`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,(0,n._)`[${r}]`),(0,n._)`${o.default.vErrors}.push(${r})`),e.code((0,n._)`${o.default.errors}++`)}function l(e,t){let{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw((0,n._)`new ${e.ValidationError}(${t})`):(r.assign((0,n._)`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,o){let{it:s}=e,{gen:c,compositeRule:d,allErrors:f}=s,h=u(e,r,i);(null!=o?o:d||f)?a(c,h):l(s,(0,n._)`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){let{it:i}=e,{gen:s,compositeRule:c,allErrors:d}=i;a(s,u(e,r,n)),c||d||l(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if((0,n._)`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,n._)`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:a,it:l}){if(void 0===a)throw Error("ajv implementation error");let s=e.name("err");e.forRange("i",a,o.default.errors,a=>{e.const(s,(0,n._)`${o.default.vErrors}[${a}]`),e.if((0,n._)`${s}.instancePath === undefined`,()=>e.assign((0,n._)`${s}.instancePath`,(0,n.strConcat)(o.default.instancePath,l.errorPath))),e.assign((0,n._)`${s}.schemaPath`,(0,n.str)`${l.errSchemaPath}/${t}`),l.opts.verbose&&(e.assign((0,n._)`${s}.schema`,r),e.assign((0,n._)`${s}.data`,i))})};let s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function u(e,t,r){let{createErrors:a}=e.it;return!1===a?(0,n._)`{}`:function(e,t,r={}){let{gen:a,it:l}=e,u=[function({errorPath:e},{instancePath:t}){let r=t?(0,n.str)`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}(l,r),function({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let a=o?t:(0,n.str)`${t}/${e}`;return r&&(a=(0,n.str)`${a}${(0,i.getErrorPath)(r,i.Type.Str)}`),[s.schemaPath,a]}(e,r)];return function(e,{params:t,message:r},i){let{keyword:a,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:p}=c;i.push([s.keyword,a],[s.params,"function"==typeof t?t(e):t||(0,n._)`{}`]),d.messages&&i.push([s.message,"function"==typeof r?r(e):r]),d.verbose&&i.push([s.schema,u],[s.parentSchema,(0,n._)`${h}${p}`],[o.default.data,l]),f&&i.push([s.propertyName,f])}(e,t,u),a.object(...u)}(e,t,r)}},15968:()=>{},16307:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37942);t.debounce=function(e,t=0,r={}){let i;"object"!=typeof r&&(r={});let{leading:o=!1,trailing:a=!0,maxWait:l}=r,s=[,,];o&&(s[0]="leading"),a&&(s[1]="trailing");let u=null,c=n.debounce(function(...t){i=e.apply(this,t),u=null},t,{edges:s}),d=function(...t){return null!=l&&(null===u&&(u=Date.now()),Date.now()-u>=l)?(i=e.apply(this,t),u=Date.now(),c.cancel(),c.schedule(),i):(c.apply(this,t),i)};return d.cancel=c.cancel,d.flush=()=>(c.flush(),i),d}},16322:(e,t,r)=>{"use strict";r.d(t,{W:()=>o,h:()=>i});var n=r(2842),i=(0,n.Mz)(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),o=(0,n.Mz)(e=>e.cartesianAxis.yAxis,e=>Object.values(e))},16491:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("search-check",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},16755:(e,t,r)=>{"use strict";r.d(t,{d:()=>o,g:()=>a});var n=r(83489),i=r(53310);function o(e,t){let r=(0,i.mB$)(t)?t.body.childNodes:t.childNodes,n=[],o=[];for(let t of r)if(!l.has(t.nodeName)){let r=function e(t,r,n,o,a=new Map,s){let u=[];
31if(l.has(t.nodeName))return u;let c=null,d=function(e,t){let{nodeName:r}=e,n=t._htmlConversions.get(r.toLowerCase()),i=null;if(void 0!==n)for(let t of n){let r=t(e);null!==r&&(null===i||(i.priority||0)<=(r.priority||0))&&(i=r)}return null!==i?i.conversion:null}(t,r),f=d?d(t):null,h=null;if(null!==f){h=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of a)if(!(c=e(c,s)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&a.set(t.nodeName,f.forChild)}let p=t.childNodes,m=[],g=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||o);for(let t=0;t<p.length;t++)m.push(...e(p[t],r,n,g,new Map(a),c));return null!=h&&(m=h(m)),(0,i.a9V)(t)&&(m=function(e,t,r){let n=e.style.textAlign,o=[],a=[];for(let e=0;e<t.length;e++){let l=t[e];if((0,i.y68)(l))n&&!l.getFormat()&&l.setFormat(n),o.push(l);else if(a.push(l),e===t.length-1||e<t.length-1&&(0,i.y68)(t[e+1])){let e=r();e.setFormat(n),e.append(...a),o.push(e),a=[]}}return o}(t,m,g?()=>{let e=new i.A7V;return n.push(e),e}:i.lJ7)),null==c?m.length>0?u=u.concat(m):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...m),u}(t,e,o,!1);null!==r&&(n=n.concat(r))}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(o),n}function a(e,t){if("u"<typeof document||"u"<typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let r=document.createElement("div"),o=(0,i.NiT)().getChildren();for(let a=0;a<o.length;a++)!function e(t,r,o,a=null){let l=null===a||r.isSelected(a),s=(0,i.ff4)(r)&&r.excludeFromCopy("html"),u=r;null!==a&&(0,i.kFe)(r)&&(u=(0,n.SD)(a,r,"clone"));let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:h}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let p=document.createDocumentFragment();for(let n=0;n<c.length;n++){let o=c[n],s=e(t,o,p,a);!l&&(0,i.ff4)(r)&&s&&r.extractWithChild(o,a,"html")&&(l=!0)}if(l&&!s){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(p),o.append(f),h){let e=h.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else o.append(p);return l}(e,o[a],r,t);return r.innerHTML}let l=new Set(["STYLE","SCRIPT"])},16787:(e,t,r)=>{"use strict";r.d(t,{qx:()=>P,IH:()=>N,s0:()=>b,sr:()=>$,eB:()=>R,Hj:()=>j,DW:()=>M,y2:()=>T,nb:()=>E,PW:()=>x,Mk:()=>A,$8:()=>C,yy:()=>O,Rh:()=>_,GF:()=>I,uM:()=>D,kr:()=>v,_L:()=>w,_f:()=>S});var n=r(83643),i=r.n(n),o=r(57258),a=r.n(o);function l(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],l=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}var s=r(62517),u=r(74592);function c(e){for(var t=e.length,r=Array(t);--t>=0;)r[t]=t;return r}function d(e,t){return e[t]}function f(e){let t=[];return t.key=e,t}var h=r(92191),p=r(73400),m=r(99498);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(0,h.uy)(e)||(0,h.uy)(t)?r:(0,h.vh)(t)?a()(e,t,r):"function"==typeof t?t(e):r}var b=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:o,verticalAlign:a,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===a)&&"center"!==o&&(0,h.Et)(e[o]))return y(y({},e),{},{[o]:e[o]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===o)&&"middle"!==a&&(0,h.Et)(e[a]))return y(y({},e),{},{[a]:e[a]+(i||0)})}return e},w=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,x=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,o,a=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(o=!0),e.coordinate));return i||a.push(t),o||a.push(r),a},_=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:o,scale:a,realScaleType:l,isCategorical:s,categoricalDomain:u,tickCount:c,ticks:d,niceTicks:f,axisType:p}=e;if(!a)return null;var g="scaleBand"===l&&a.bandwidth?a.bandwidth()/2:2,y=(t||r)&&"category"===i&&a.bandwidth?a.bandwidth()/g:0;return(y="angleAxis"===p&&o&&o.length>=2?2*(0,h.sA)(o[0]-o[1])*y:y,t&&(d||f))?(d||f||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=a.map(r);return(0,m.H)(i)?{coordinate:i+y,value:e,offset:y,index:t}:null}).filter(h.n9):s&&u?u.map((e,t)=>{var r=a.map(e);return(0,m.H)(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(h.n9):a.ticks&&!r&&null!=c?a.ticks(c).map((e,t)=>{var r=a.map(e);return(0,m.H)(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(h.n9):a.domain().map((e,t)=>{var r=a.map(e);return(0,m.H)(r)?{coordinate:r+y,value:n?n[e]:e,index:t,offset:y}:null}).filter(h.n9)},S=(e,t)=>{if(!t||2!==t.length||!(0,h.Et)(t[0])||!(0,h.Et)(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!(0,h.Et)(e[0])||e[0]<r)&&(i[0]=r),(!(0,h.Et)(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},k={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null==(t=e[0])?void 0:t.length;if(null!=n&&!(n<=0))for(var i=0;i<n;++i)for(var o=0,a=0,l=0;l<r;++l){var s=e[l],u=null==s?void 0:s[i];if(null!=u){var c=u[1],d=u[0],f=(0,h.M8)(c)?d:c;f>=0?(u[0]=o,o+=f,u[1]=o):(u[0]=a,a+=f,u[1]=a)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}l(e,t)}},none:l,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,s=0;a<r;++a)s+=e[a][n][1]||0;i[n][1]+=i[n][0]=-s/2}l(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var s=0,u=0,c=0;s<i;++s){for(var d=e[t[s]],f=d[a][1]||0,h=(f-(d[a-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]];h+=(m[a][1]||0)-(m[a-1][1]||0)}u+=f,c+=h*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=c/u)}r[a-1][1]+=r[a-1][0]=o,l(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null==(t=e[0])?void 0:t.length;if(null!=n&&!(n<=0))for(var i=0;i<n;++i)for(var o=0,a=0;a<r;++a){var l=e[a],s=null==l?void 0:l[i];if(null!=s){var u=(0,h.M8)(s[1])?s[0]:s[1];u>=0?(s[0]=o,o+=u,s[1]=o):(s[0]=0,s[1]=0)}}}}},O=(e,t,r)=>{var n,i=null!=(n=k[r])?n:l,o=(function(){var e=(0,u.A)([]),t=c,r=l,n=d;function i(i){var o,a,l=Array.from(e.apply(this,arguments),f),u=l.length,c=-1;for(let e of i)for(o=0,++c;o<u;++o)(l[o][c]=[0,+n(e,l[o].key,c,i)]).data=e;for(o=0,a=(0,s.A)(t(l));o<u;++o)l[a[o]].index=o;return r(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,u.A)(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:(0,u.A)(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?c:"function"==typeof e?e:(0,u.A)(Array.from(e)),i):t}
31,i.offset=function(e){return arguments.length?(r=null==e?l:e,i):r},i})().keys(t).value((e,t)=>Number(v(e,t,0))).order(c).offset(i)(e);return o.forEach((r,n)=>{r.forEach((r,i)=>{var o=v(e[i],t[n],0);Array.isArray(o)&&2===o.length&&(0,h.Et)(o[0])&&(0,h.Et)(o[1])&&(r[0]=o[0],r[1]=o[1])})}),o};function C(e){return null==e?void 0:String(e)}function E(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:o,dataKey:a}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,h.uy)(i[t.dataKey])){var l=(0,h.eP)(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[o]?r[o].coordinate+n/2:null}var s=v(i,(0,h.uy)(a)?t.dataKey:a),u=t.scale.map(s);return(0,h.Et)(u)?u:null}var T=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:o,index:a}=e;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var l=v(o,t.dataKey,t.scale.domain()[a]);if((0,h.uy)(l))return null;var s=t.scale.map(l);return(0,h.Et)(s)?s-i/2+n:null},M=e=>{var{numericAxis:t}=e,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},A=(e,t,r)=>{if(null!=e){let n;return[(n=Object.keys(e).reduce((n,i)=>{var o=e[i];if(!o)return n;var{stackedData:a}=o,l=a.reduce((e,n)=>{var i,o=[Math.min(...i=(0,p.v)(n,t,r).flat(2).filter(h.Et)),Math.max(...i)];return(0,m.H)(o[0])&&(0,m.H)(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]}},N=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,P=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,j=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=i()(t,e=>e.coordinate),a=1/0,l=1,s=o.length;l<s;l++){var u=o[l],c=o[l-1];a=Math.min(((null==u?void 0:u.coordinate)||0)-((null==c?void 0:c.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function I(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:o}=e;return y(y({},t),{},{dataKey:r,payload:n,value:i,name:o})}function D(e,t){return e?String(e):"string"==typeof t?t:void 0}var $=(e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0,R=(e,t)=>"centric"===t?e.angle:e.radius},17475:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}},17598:(e,t,r)=>{"use strict";r.d(t,{NT:()=>i});let n=({req:{user:e}})=>!!e,i={access:{create:n,delete:n,read:n,unlock:n,update:n},admin:{components:{},custom:{},enableRichTextLink:!0,enableRichTextRelationship:!0,pagination:{defaultLimit:10,limits:[5,10,25,50,100]},useAsTitle:"id"},auth:!1,custom:{},endpoints:[],fields:[],hooks:{afterChange:[],afterDelete:[],afterForgotPassword:[],afterLogin:[],afterLogout:[],afterMe:[],afterOperation:[],afterRead:[],afterRefresh:[],beforeChange:[],beforeDelete:[],beforeLogin:[],beforeOperation:[],beforeRead:[],beforeValidate:[],me:[],refresh:[]},indexes:[],timestamps:!0,upload:!1,versions:!1}},17620:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]])},17758:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]])},18167:(e,t,r)=>{"use strict";r.d(t,{yP:()=>eT,LP:()=>eE});var n=r(12115),i=r(29722),o=r(11058),a=r(67389),l=r(85545),s=r(92191),u=r(21966),c=r(16787),d=r(18387),f=r(46197);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function p(e){return n.createElement(f.y,h({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if((0,s.Et)(e))return e;var i=(0,s.Et)(r)||(0,s.uy)(r);return i?e(r,n):(i||function(e,t){if(!e)throw Error("Invariant failed")}(!1,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")),t)}},g=r(94051),y=r(96561),v=["children"],b=(0,n.createContext)({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function w(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,v);return n.createElement(b.Provider,{value:r},t)}var x=r(36793),_=r(65372),S=r(2842),k=r(44531),O=r(57346),C=r(2242),E=r(90744),T=r(84224),M=(e,t,r)=>{var n=null!=r?r:e;if(!(0,s.uy)(n))return(0,s.F4)(n,t,0)},A=r(99498);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
31t%2?N(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var j=r(62082),I=r(76592),D=(0,S.Mz)([k.ld,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),$=(0,S.Mz)([D],e=>null==e?void 0:e.maxBarSize),R=(0,S.Mz)([_.fz,k.ld,I.W,I.B,(e,t,r)=>r],(e,t,r,n,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===r:t.yAxisId===n).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),L=(0,S.Mz)([R,E.x3,(e,t)=>{var r=(0,_.fz)(e),n=(0,I.W)(e,t),i=(0,I.B)(e,t);if(null!=n&&null!=i)return"horizontal"===r?(0,k.BQ)(e,"xAxis",n):(0,k.BQ)(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(T.g),i=e.filter(e=>null==e.stackId);return[...Object.entries(n.reduce((e,t)=>{var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{})).map(e=>{var n,[i,o]=e;return{stackId:i,dataKeys:o.map(e=>e.dataKey),barSize:M(t,r,null==(n=o[0])?void 0:n.barSize)}}),...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:M(t,r,e.barSize)}))]}),z=(e,t,r)=>{var n,i,o=(0,_.fz)(e),a=(0,I.W)(e,t),l=(0,I.B)(e,t);if(null!=a&&null!=l)return"horizontal"===o?(n=(0,k.Gx)(e,"xAxis",a,r),i=(0,k.CR)(e,"xAxis",a,r)):(n=(0,k.Gx)(e,"yAxis",l,r),i=(0,k.CR)(e,"yAxis",l,r)),(0,c.Hj)(n,i)},F=(0,S.Mz)([L,E.JN,E._5,E.gY,(e,t,r)=>{var n,i,o,a,l=D(e,t);if(null==l)return 0;var u=(0,I.W)(e,t),d=(0,I.B)(e,t);if(null==u||null==d)return 0;var f=(0,_.fz)(e),h=(0,E.JN)(e),{maxBarSize:p}=l,m=(0,s.uy)(p)?h:p;return"horizontal"===f?(o=(0,k.Gx)(e,"xAxis",u,r),a=(0,k.CR)(e,"xAxis",u,r)):(o=(0,k.Gx)(e,"yAxis",d,r),a=(0,k.CR)(e,"yAxis",d,r)),null!=(n=null!=(i=(0,c.Hj)(o,a,!0))?i:m)?n:0},z,$],(e,t,r,n,i,o,a)=>{var l=function(e,t,r,n,i){var o,a,l=n.length;if(!(l<1)){var u=(0,s.F4)(e,r,0,!0),c=[];if((0,A.H)(null==(o=n[0])?void 0:o.barSize)){var d=!1,f=r/l,h=n.reduce((e,t)=>e+(t.barSize||0),0);(h+=(l-1)*u)>=r&&(h-=(l-1)*u,u=0),h>=r&&f>0&&(d=!0,f*=.9,h=l*f);var p={offset:((r-h)/2|0)-u,size:0};a=n.reduce((e,t)=>{var r,n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+u,size:d?f:null!=(r=t.barSize)?r:0}},i=[...e,n];return p=n.position,i},c)}else{var m=(0,s.F4)(t,r,0,!0);r-2*m-(l-1)*u<=0&&(u=0);var g=(r-2*m-(l-1)*u)/l;g>1&&(g>>=0);var y=(0,A.H)(i)?Math.min(g,i):g;a=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:m+(g+u)*r+(g-y)/2,size:y}}],c)}return a}}(r,n,i!==o?i:o,e,(0,s.uy)(a)?t:a);return i!==o&&null!=l&&(l=l.map(e=>P(P({},e),{},{position:P(P({},e.position),{},{offset:e.position.offset-i/2})}))),l}),B=(0,S.Mz)([F,D],(e,t)=>{if(null!=e&&null!=t){var r=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=r)return r.position}}),K=(0,S.Mz)([(e,t,r)=>{var n=(0,_.fz)(e),i=(0,I.W)(e,t),o=(0,I.B)(e,t);if(null!=i&&null!=o)return"horizontal"===n?(0,k.TC)(e,"yAxis",o,r):(0,k.TC)(e,"xAxis",i,r)},D],(e,t)=>{var r=(0,j.x)(t);if(!e||null==r||null==t)return;var{stackId:n}=t;if(null!=n){var i=e[n];if(i){var{stackedData:o}=i;if(o)return o.find(e=>e.key===r)}}}),U=(0,S.Mz)([C.HZ,C.c2,(e,t,r)=>{var n=(0,I.W)(e,t);if(null!=n)return(0,k.Gx)(e,"xAxis",n,r)},(e,t,r)=>{var n=(0,I.B)(e,t);if(null!=n)return(0,k.Gx)(e,"yAxis",n,r)},(e,t,r)=>{var n=(0,I.W)(e,t);if(null!=n)return(0,k.CR)(e,"xAxis",n,r)},(e,t,r)=>{var n=(0,I.B)(e,t);if(null!=n)return(0,k.CR)(e,"yAxis",n,r)},B,_.fz,O.rN,z,K,D,(e,t,r,n)=>n],(e,t,r,n,i,o,a,l,s,u,c,d,f)=>{var h,{chartData:p,dataStartIndex:m,dataEndIndex:g}=s;if(null!=d&&null!=a&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=i&&null!=o&&null!=u){var{data:y}=d;if(null!=(h=null!=y&&y.length>
310?y:null==p?void 0:p.slice(m,g+1)))return eE({layout:l,barSettings:d,pos:a,parentViewBox:t,bandSize:u,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,stackedData:c,displayedData:h,offset:e,cells:f,dataStartIndex:m})}}),W=r(10365),H=r(64105),q=r(541),J=r(45970),V=r(45992),G=r(43527),Y=r(604),Z=r(9629),X=r(23651),Q=r(80600),ee=r(10483),et=r(51531),er=r(46574),en=["index"];function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eo=(0,n.createContext)(void 0),ea=e=>{var{index:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,en),i=(e=>{var t=(0,n.useContext)(eo);if(null!=t){var{stackId:r}=t;return"url(#".concat("recharts-bar-stack-clip-path-".concat(r,"-").concat(e),")")}})(t);return n.createElement(o.W,ei({className:"recharts-bar-stack-layer",clipPath:i},r))},el=["onMouseEnter","onMouseLeave","onClick"],es=["value","background","tooltipPosition"],eu=["id"],ec=["onMouseEnter","onClick","onMouseLeave"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ep(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var em=n.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:i,fill:o,name:a,hide:l,unit:u,tooltipType:d,id:f}=e,h={dataDefinedOnItem:void 0,getPosition:s.lQ,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:(0,c.uM)(a,t),hide:l,type:d,color:o,unit:u,graphicalItemId:f}};return n.createElement(y.r,{tooltipEntrySettings:h})});function eg(e){var t,r=(0,W.G)(q.A2),{data:i,dataKey:o,background:a,allOtherBarProps:l}=e,{onMouseEnter:s,onMouseLeave:u,onClick:c}=l,f=ep(l,el),h=(0,g.Cj)(s,o,l.id),m=(0,g.Pg)(u),y=(0,g.Ub)(c,o,l.id);if(!a||null==i)return null;var v=(0,X.ic)(a);return n.createElement(ee.g,{zIndex:(t=et.I.barBackground,a&&"object"==typeof a&&"zIndex"in a&&"number"==typeof a.zIndex&&(0,A.H)(a.zIndex)?a.zIndex:t)},i.map((e,t)=>{var{value:i,background:l,tooltipPosition:s}=e,u=ep(e,es);if(!l)return null;var c=h(e,t),g=m(e,t),b=y(e,t),w=eh(eh(eh(eh(eh({option:a,isActive:String(t)===r},u),{},{fill:"#eee"},l),v),(0,d.XC)(f,e,t)),{},{onMouseEnter:c,onMouseLeave:g,onClick:b,dataKey:o,index:t,className:"recharts-bar-background-rectangle"});return n.createElement(p,ed({key:"background-bar-".concat(t)},w))}))}function ey(e){var{showLabels:t,children:r,rects:i}=e,o=null==i?void 0:i.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return eh(eh({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return n.createElement(l.h8,{value:t?o:void 0},r)}function ev(e){var t,{shape:r,activeBar:i,baseProps:o,entry:a,index:l,dataKey:s}
31=e,u=(0,W.G)(q.A2),c=(0,W.G)(q.Xb),d=i&&String(a.originalDataIndex)===u&&(null==c||s===c),[f,h]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;return d?(h(!0),e=requestAnimationFrame(()=>{g(!0)})):g(!1),()=>{cancelAnimationFrame(e)}},[d]);var y=(0,n.useCallback)(()=>{d||h(!1)},[d]),v=d&&m,b=d||f;t=d?!0===i?r:i:r;var w=n.createElement(p,ed({},o,{name:String(o.name)},a,{isActive:v,option:t,index:l,dataKey:s,onTransitionEnd:y}));return b?n.createElement(ee.g,{zIndex:et.I.activeBar},n.createElement(ea,{index:a.originalDataIndex},w)):w}function eb(e){var{shape:t,baseProps:r,entry:i,index:o,dataKey:a}=e;return n.createElement(p,ed({},r,{name:String(r.name)},i,{isActive:!1,option:t,index:o,dataKey:a}))}function ew(e){var t,{data:r,props:i}=e,o=null!=(t=(0,X.uZ)(i))?t:{},{id:a}=o,l=ep(o,eu),{shape:s,dataKey:u,activeBar:c}=i,{onMouseEnter:f,onClick:h,onMouseLeave:p}=i,m=ep(i,ec),y=(0,g.Cj)(f,u,a),v=(0,g.Pg)(p),b=(0,g.Ub)(h,u,a);return r?n.createElement(n.Fragment,null,r.map((e,t)=>n.createElement(ea,ed({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},(0,d.XC)(m,e,t),{onMouseEnter:y(e,t),onMouseLeave:v(e,t),onClick:b(e,t)}),c?n.createElement(ev,{shape:s,activeBar:c,baseProps:l,entry:e,index:t,dataKey:u}):n.createElement(eb,{shape:s,baseProps:l,entry:e,index:t,dataKey:u})))):null}function ex(e){var{props:t,previousRectanglesRef:r}=e,{data:i,layout:a,isAnimationActive:u,animationBegin:c,animationDuration:d,animationEasing:f,onAnimationEnd:h,onAnimationStart:p}
31=t,m=r.current,g=(0,V.n)(t,"recharts-bar-"),[y,v]=(0,n.useState)(!1),b=(0,n.useCallback)(()=>{"function"==typeof h&&h(),v(!1)},[h]),w=(0,n.useCallback)(()=>{"function"==typeof p&&p(),v(!0)},[p]);return n.createElement(ey,{showLabels:!y,rects:i},n.createElement(Q.J,{animationId:g,begin:c,duration:d,isActive:u,easing:f,onAnimationEnd:b,onAnimationStart:w,key:g},e=>{var l=1===e?i:null==i?void 0:i.map((t,r)=>{var n=m&&m[r];if(n)return eh(eh({},t),{},{x:(0,s.GW)(n.x,t.x,e),y:(0,s.GW)(n.y,t.y,e),width:(0,s.GW)(n.width,t.width,e),height:(0,s.GW)(n.height,t.height,e)});if("horizontal"===a){var i=(0,s.GW)(0,t.height,e),o=(0,s.GW)(t.stackedBarStart,t.y,e);return eh(eh({},t),{},{y:o,height:i})}var l=(0,s.GW)(0,t.width,e),u=(0,s.GW)(t.stackedBarStart,t.x,e);return eh(eh({},t),{},{width:l,x:u})});return(e>0&&(r.current=null!=l?l:null),null==l)?null:n.createElement(o.W,null,n.createElement(ew,{props:t,data:l}))}),n.createElement(l.qY,{label:t.label}),t.children)}function e_(e){var t=(0,n.useRef)(null);return n.createElement(ex,{previousRectanglesRef:t,props:e})}var eS=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:(0,c.kr)(e,t)}};class ek extends n.PureComponent{render(){var{hide:e,data:t,dataKey:r,className:a,xAxisId:l,yAxisId:s,needClip:u,background:c,id:d}=this.props;if(e||null==t)return null;var f=(0,i.$)("recharts-bar",a);return n.createElement(o.W,{className:f,id:d},u&&n.createElement("defs",null,n.createElement(x.Q,{clipPathId:d,xAxisId:l,yAxisId:s})),n.createElement(o.W,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(d,")"):void 0},n.createElement(eg,{data:t,dataKey:r,background:c,allOtherBarProps:this.props}),n.createElement(e_,this.props)))}}var eO={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:0,xAxisId:0,yAxisId:0,zIndex:et.I.bar};
31function eC(e){var t,{xAxisId:r,yAxisId:i,hide:o,legendType:l,minPointSize:s,activeBar:c,animationBegin:d,animationDuration:f,animationEasing:h,isAnimationActive:p}=e,{needClip:m}=(0,x.l)(r,i),g=(0,_.WX)(),y=(0,H.r)(),v=(0,u.aS)(e.children,a.f),b=(0,W.G)(t=>U(t,e.id,y,v));if("vertical"!==g&&"horizontal"!==g)return null;var S=null==b?void 0:b[0];return t=null==S||null==S.height||null==S.width?0:"vertical"===g?S.height/2:S.width/2,n.createElement(w,{xAxisId:r,yAxisId:i,data:b,dataPointFormatter:eS,errorBarOffset:t},n.createElement(ek,ed({},e,{layout:g,needClip:m,data:b,xAxisId:r,yAxisId:i,hide:o,legendType:l,minPointSize:s,activeBar:c,animationBegin:d,animationDuration:f,animationEasing:h,isAnimationActive:p})))}function eE(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:o,bandSize:a,xAxis:l,yAxis:u,xAxisTicks:d,yAxisTicks:f,stackedData:h,displayedData:p,offset:g,cells:y,parentViewBox:v,dataStartIndex:b}=e,w="horizontal"===t?u:l,x=h?w.scale.domain():null,_=(0,c.DW)({numericAxis:w}),S=w.scale.map(_);return p.map((e,p)=>{if(h){var w=h[p+b];if(null==w)return null;O=(0,c._f)(w,x)}else Array.isArray(O=(0,c.kr)(e,r))||(O=[_,O]);var k=m(n,0)(O[1],p);if("horizontal"===t){var O,C,E,T,M,A,N,P=u.scale.map(O[0]),j=u.scale.map(O[1]);if(null==P||null==j)return null;C=(0,c.y2)({axis:l,ticks:d,bandSize:a,offset:o.offset,entry:e,index:p}),E=null!=(N=null!=j?j:P)?N:void 0,T=o.size;var I=P-j;if(M=(0,s.M8)(I)?0:I,A={x:C,y:g.top,width:T,height:g.height},Math.abs(k)>0&&Math.abs(M)<Math.abs(k)){var D=(0,s.sA)(M||k)*(Math.abs(k)-Math.abs(M));E-=D,M+=D}}else{var $=l.scale.map(O[0]),R=l.scale.map(O[1]);if(null==$||null==R)return null;if(C=$,E=(0,c.y2)({axis:u,ticks:f,bandSize:a,offset:o.offset,entry:e,index:p}),T=R-$,M=o.size,A={x:g.left,y:E,width:g.width,height:M},Math.abs(k)>0&&Math.abs(T)<Math.abs(k)){var L=(0,s.sA)(T||k)*(Math.abs(k)-Math.abs(T));T+=L}}return null!=C&&null!=E&&null!=T&&null!=M&&(i||0!==T&&0!==M)?eh(eh({},e),{},{stackedBarStart:S,x:C,y:E,width:T,height:M,value:h?O:O[1],payload:e,background:A,tooltipPosition:{x:C+T/2,y:E+M/2},parentViewBox:v,originalDataIndex:p},y&&y[p]&&y[p].props):null}).filter(Boolean)}var eT=n.memo(function(e){var t,r,i=(0,G.e)(e,eO),o=(t=i.stackId,null!=(r=(0,n.useContext)(eo))?r.stackId:null!=t?(0,c.$8)(t):void 0),a=(0,H.r)();return n.createElement(Y.x,{id:i.id,type:"bar"},e=>n.createElement(n.Fragment,null,n.createElement(J.A,{legendPayload:(e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:(0,c.uM)(r,t),payload:e}]})(i)}),n.createElement(em,{dataKey:i.dataKey,stroke:i.stroke,strokeWidth:i.strokeWidth,fill:i.fill,name:i.name,hide:i.hide,unit:i.unit,tooltipType:i.tooltipType,id:e}),n.createElement(Z.p,{type:"bar",id:e,data:void 0,xAxisId:i.xAxisId,yAxisId:i.yAxisId,zAxisId:0,dataKey:i.dataKey,stackId:o,hide:i.hide,barSize:i.barSize,minPointSize:i.minPointSize,maxBarSize:i.maxBarSize,isPanorama:a,hasCustomShape:null!=i.shape}),n.createElement(ee.g,{zIndex:i.zIndex},n.createElement(eC,ed({},i,{id:e})))))},er.P);eT.displayName="Bar"},18297:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(29482),i=r(99498),o=(e,t)=>{if(null!=t)if("linear"!==e)return t;else{if(!(0,n.JH)(t)){for(var r,o,a=0;a<t.length;a++){var l=t[a];(0,i.H)(l)&&((void 0===r||l<r)&&(r=l),(void 0===o||l>o)&&(o=l))}return void 0!==r&&void 0!==o?[r,o]:void 0}return t}}},18387:(e,t,r)=>{"use strict";r.d(t,{TT:()=>o,XC:()=>l,_U:()=>a});var n=r(12115),i=r(86954),o=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,a=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var o={};return Object.keys(r).forEach(e=>{(0,i.q)(e)&&"function"==typeof r[e]&&(o[e]=t||(t=>r[e](r,t)))}),o},l=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(o=>{var a=e[o];(0,i.q)(o)&&"function"==typeof a&&(n||(n={}),n[o]=e=>(a(t,r,e),null))}),n}},18623:(e,t,r)=>{"use strict";let n;r.d(t,{a:()=>em,b:()=>ey,c:()=>ev,d:()=>f,e:()=>h,f:()=>m,g:()=>g,h:()=>y,i:()=>v,j:()=>S,k:()=>E,l:()=>T,m:()=>M,n:()=>N,o:()=>P,p:()=>I});var i=r(19749),o=r(12115),a=r(95155),l=r(11022),s=r(36997),u=r(53310),c=r(99491),d=r(46716),f="u">typeof window&&"u">typeof window.document&&"u">typeof window.document.createElement;function h(e){let t=(0,i.c)(2),r=void 0===e?500:e,n=(0,o.useRef)(void 0),a;return t[0]!==r?(a=e=>
31new Promise(t=>{let i=()=>{e(),t()};"requestIdleCallback"in window?("cancelIdleCallback"in window&&void 0!==n.current&&cancelIdleCallback(n.current),n.current=requestIdleCallback(i,{timeout:r})):new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})}).then(i)}),t[0]=r,t[1]=a):a=t[1],a}var p=(0,o.createContext)({currentView:"default",inheritable:!1,setCurrentView:()=>{}}),m=e=>{let t=g(),r=void 0!==e.currentView,n=t.inheritable&&(!!t.views||!!t.hasExplicitCurrentView),i=r||t.inheritable&&!!t.hasExplicitCurrentView,{children:s,currentView:u,inheritable:c,views:d}={children:e.children,currentView:n?t.currentView:e.currentView,inheritable:t.inheritable||e.inheritable,views:n&&t.views?t.views:e.views},[f,h]=(0,l.a)(u,"default"),m=d&&"default"!==f&&!d[f]?"default":f,y=(0,o.useMemo)(()=>{let e=d?d[m]:void 0;return{currentView:m,currentViewMap:e,hasExplicitCurrentView:i,inheritable:c,isControlledByParent:n,setCurrentView:h,views:d}},[m,c,i,n,h,d]);return(0,a.jsx)(p,{value:y,children:s})};function g(){return(0,o.use)(p)}var y=class{_x;_y;constructor(e,t){this._x=e,this._y=t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}equals({x:e,y:t}){return this.x===e&&this.y===t}get x(){return this._x}get y(){return this._y}};function v(e){return e instanceof y}var b=e=>{let t=document.getElementById("slash-menu");if(!t)return;let r=t.getBoundingClientRect();r.top+r.height>window.innerHeight&&t.scrollIntoView({block:"center"}),r.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function w(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>n.top&&r.top<n.bottom}var x=(0,u.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function _({anchorElementRef:e,close:t,editor:r,groups:n,menuRenderFn:i,resolution:a,shouldSplitNodeWithQuery:l=!1}){let[s,c]=(0,o.useState)(null),d=a.match&&a.match.matchingString||"",f=(0,o.useCallback)(e=>{let t=r.getRootElement();null!==t&&(t.setAttribute("aria-activedescendant",`slash-menu-popup__item-${e.key}`),c(e.key))},[r]),h=(0,o.useCallback)(()=>{if(null!==n&&null!=d){let e=n.flatMap(e=>e.items);e.length&&f(e[0])}},[n,f,d]);(0,o.useEffect)(()=>{h()},[d,h]);let p=(0,o.useCallback)(e=>{t(),r.update(()=>{let e=null!=a.match&&l?function(e){let t,r=(0,u.vJq)();if(!(0,u.I2P)(r)||!r.isCollapsed())return;let n=r.anchor;if("text"!==n.type)return;let i=n.getNode();if(!i.isSimpleText())return;let o=n.offset,a=i.getTextContent().slice(0,o),l=e.replaceableString.length,s=o-function(e,t,r){let n=r;for(let r=n;r<=t.length;r++)e.substring(e.length-r)===t.substring(0,r)&&(n=r);return n}(a,e.matchingString,l);if(!(s<0))return 0===s?[t]=i.splitText(o):[,t]=i.splitText(s,o),t}(a.match):null;e&&e.remove()}),setTimeout(()=>{let t;r.read(()=>{t=(0,u.vJq)()?.clone()}),r.update(()=>{t&&(0,u.n1P)(t)}),e.onSelect({editor:r,queryString:a.match?a.match.matchingString:""})},0)},[r,l,a.match,t]);return(0,o.useEffect)(()=>()=>{let e=r.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")},[r]),(0,o.useLayoutEffect)(()=>{null===n?c(null):null===s&&h()},[n,s,f,h]),(0,o.useEffect)(()=>(0,u.Sdt)(r.registerCommand(x,({item:e})=>!!e.ref&&null!=e.ref.current&&(b(e.ref.current),!0),u.AcJ)),[r,f]),(0,o.useEffect)(()=>(0,u.Sdt)(r.registerCommand(u.bbF,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),i=t.findIndex(e=>e.key===s),o=i!==t.length-1?i+1:0,a=t[o];if(!a)return!1;f(a),null!=a.ref&&a.ref.current&&r.dispatchCommand(x,{index:o,item:a}),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.UDz,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),r=t.findIndex(e=>e.key===s),i=0!==r?r-1:t.length-1,o=t[i];if(!o)return!1;f(o),null!=o.ref&&o.ref.current&&b(o.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.Q$N,e=>(e.preventDefault(),e.stopImmediatePropagation(),t(),!0),u.AcJ),r.registerCommand(u.OXk,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(e.preventDefault(),e.stopImmediatePropagation(),p(t),!0)},u.JjG),r.registerCommand(u.RTo,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),p(t),!0)},u.JjG)),[p,t,r,n,s,f]),i(e,(0,o.useMemo)(()=>({groups:n,selectedItemKey:s,selectItemAndCleanUp:p,setSelectedItemKey:c}),[p,s,n]),a.match?a.match.matchingString:"")}var S="\\.,\\+\\*\\?\\$\\@\\|#{}
31\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";function k(e,t,r){let n=(0,u.peL)(r);if(null===n||!n.isCollapsed)return!1;let i=n.anchorNode,o=n.anchorOffset;if(null==i||null==o)return!1;try{t.setStart(i,e),t.setEnd(i,o>1?o:1)}catch{return!1}return!0}function O(e,t){return 0===t&&e.getEditorState().read(()=>{let e=(0,u.vJq)();if((0,u.I2P)(e)){let t=e.anchor.getNode().getPreviousSibling();return(0,u.kFe)(t)&&t.isTextEntity()}return!1})}function C(e){o.startTransition?o.startTransition(e):e()}var E=(0,u.guI)("ENABLE_SLASH_MENU_COMMAND");function T({anchorClassName:e,anchorElem:t,groups:r,menuRenderFn:n,onClose:l,onOpen:c,onQueryChange:d,triggerFn:h}){let[p]=(0,s.DF)(),[m,g]=(0,o.useState)(null),y=function(e,t,r,n){let a,l=(0,i.c)(14),[u]=(0,s.DF)(),c;l[0]===Symbol.for("react.memo_cache_sentinel")?(c=f?document.createElement("div"):null,l[0]=c):c=l[0];let d=(0,o.useRef)(c),h;l[1]!==e||l[2]!==n||l[3]!==u||l[4]!==t?(h=()=>{if(null===d.current||void 0===parent)return;let r=u.getRootElement(),i=d.current,o=i.firstChild;if(null!==r&&null!==t){let{height:a,width:l}=t.getRect(),{left:s,top:u}=t.getRect(),c=u;if(u-=e.getBoundingClientRect().top+window.scrollY,s-=e.getBoundingClientRect().left+window.scrollX,i.style.left=`${s+window.scrollX}px`,i.style.height=`${a}px`,i.style.width=`${l}px`,null!==o){let t=o.getBoundingClientRect(),n=t.height,l=t.width,d=r.getBoundingClientRect(),f="rtl"===document.dir||"rtl"===document.documentElement.dir,h=e.getBoundingClientRect(),p=Math.max(0,d.left);if(!f&&s+l>d.right)i.style.left=`${d.right-l+window.scrollX}px`;else if(f&&t.left<p){let e=p+l-h.left;i.style.left=`${e+window.scrollX}px`}c+n+32>window.innerHeight&&!(c<0)?i.style.top=`${u+32-n+window.scrollY-(a+24)}px`:i.style.top=`${u+window.scrollY+32}px`}i.isConnected||(null!=n&&(i.className=n),i.setAttribute("aria-label","Slash menu"),i.setAttribute("role","listbox"),i.style.display="block",i.style.position="absolute",e.append(i)),i.setAttribute("id","slash-menu"),d.current=i,r.setAttribute("aria-controls","slash-menu")}},l[1]=e,l[2]=n,l[3]=u,l[4]=t,l[5]=h):h=l[5];let p=h,m,g;return l[6]!==u||l[7]!==p||l[8]!==t?(m=()=>{let e=u.getRootElement();if(null!==t)return p(),()=>{null!==e&&e.removeAttribute("aria-controls");let t=d.current;null!==t&&t.isConnected&&(t.remove(),t.removeAttribute("id"))}},g=[u,p,t],l[6]=u,l[7]=p,l[8]=t,l[9]=m,l[10]=g):(m=l[9],g=l[10]),(0,o.useEffect)(m,g),l[11]!==t||l[12]!==r?(a=e=>{null!==t&&(e||r(null))},l[11]=t,l[12]=r,l[13]=a):a=l[13],function(e,t,r,n){let a=(0,i.c)(7),[l]=(0,s.DF)(),u,c;a[0]!==l||a[1]!==r||a[2]!==n||a[3]!==e||a[4]!==t?(u=()=>{let i=t.current;if(null!=i&&null!=e){let e=l.getRootElement(),t=null!=e?function(e,t){let r=getComputedStyle(e),n="absolute"===r.position,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===r.position)return document.body;for(let t=e;t=t.parentElement;)if(r=getComputedStyle(t),!(n&&"static"===r.position)&&i.test(r.overflow+r.overflowY+r.overflowX))return t;return document.body}(e,!1):document.body,o=!1,a=w(i,t),s=function(){o||(window.requestAnimationFrame(function(){r(),o=!1}),o=!0);let e=w(i,t);e!==a&&(a=e,n?.(e))},u=new ResizeObserver(r);return window.addEventListener("resize",r),document.addEventListener("scroll",s,{capture:!0,passive:!0}),u.observe(i),()=>{u.disconnect(),window.removeEventListener("resize",r),document.removeEventListener("scroll",s,!0)}}},c=[l,n,r,e,t],a[0]=l,a[1]=r,a[2]=n,a[3]=e,a[4]=t,a[5]=u,a[6]=c):(u=a[5],c=a[6]),(0,o.useEffect)(u,c)}(t,d,p,a),d}(t,m,g,e),v=(0,o.useCallback)(()=>{g(null),null!=l&&null!==m&&l()},[l,m]),b=(0,o.useCallback)(e=>{g(e),null!=c&&null===m&&c(e)},[c,m]);return(0,o.useEffect)(()=>(0,u.Sdt)(p.registerCommand(E,({node:e})=>(p.getEditorState().read(()=>{let t={leadOffset:0,matchingString:"",replaceableString:""};if(!O(p,t.leadOffset)&&null!==e){let e=p._window??window,r=e.document.createRange();null!==k(t.leadOffset,r,e)&&C(()=>b({getRect:()=>r.getBoundingClientRect(),match:t}));return}}),!0),u.AcJ)),[p,b]),(0,o.useEffect)(()=>{let e=p.registerUpdateListener(()=>{p.getEditorState().read(()=>{let e,t=p._window??window,r=t.document.createRange(),n=(0,u.vJq)(),i=(p.getEditorState().read(()=>{let t=(0,u.vJq)();(0,u.I2P)(t)&&(e=function(e){let t=e.anchor;if("text"!==t.type)return null;let r=t.getNode();if(!r.isSimpleText())return null;let n=t.offset;return r.getTextContent().slice(0,n)}(t))}),e);
31if(!(0,u.I2P)(n)||!n.isCollapsed()||void 0===i||null===r)return void v();let o=h({editor:p,query:i});(d(o?o.matchingString:null),null===o||O(p,o.leadOffset)||null===k(o.leadOffset,r,t))?v():C(()=>b({getRect:()=>r.getBoundingClientRect(),match:o}))})});return()=>{e()}},[p,h,d,m,v,b]),null===y.current||null===m||null===p?null:(0,a.jsx)(_,{anchorElementRef:y,close:v,editor:p,groups:r,menuRenderFn:n,resolution:m,shouldSplitNodeWithQuery:!0})}var M=class e{_bottom;_left;_right;_top;constructor(e,t,r,n){let[i,o]=t<=n?[t,n]:[n,t],[a,l]=e<=r?[e,r]:[r,e];this._top=i,this._right=l,this._left=a,this._bottom=o}static fromDOM(t){let{height:r,left:n,top:i,width:o}=t.getBoundingClientRect();return e.fromLWTH(n,o,i,r)}static fromDOMRect(t){let{height:r,left:n,top:i,width:o}=t;return e.fromLWTH(n,o,i,r)}static fromLTRB(t,r,n,i){return new e(t,r,n,i)}static fromLWTH(t,r,n,i){return new e(t,n,t+r,n+i)}static fromPoints(t,r){let{x:n,y:i}=t,{x:o,y:a}=r;return e.fromLTRB(n,i,o,a)}contains(e){if(v(e)){let{x:t,y:r}=e,n=r<this._top,i=r>this._bottom,o=t<this._left,a=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:o,isOnRightSide:a,isOnTopSide:n},result:!n&&!i&&!o&&!a}}let{bottom:t,left:r,right:n,top:i}=e;return i>=this._top&&i<=this._bottom&&t>=this._top&&t<=this._bottom&&r>=this._left&&r<=this._right&&n>=this._left&&n<=this._right}distanceFromPoint(e){let t=this.contains(e);if(t.result)return{distance:0,isOnBottomSide:t.reason.isOnBottomSide,isOnLeftSide:t.reason.isOnLeftSide,isOnRightSide:t.reason.isOnRightSide,isOnTopSide:t.reason.isOnTopSide};let r=0,n=0;return e.x<this._left?r=this._left-e.x:e.x>this._right&&(r=e.x-this._right),e.y<this._top?n=this._top-e.y:e.y>this._bottom&&(n=e.y-this._bottom),{distance:Math.sqrt(r*r+n*n),isOnBottomSide:e.y>this._bottom,isOnLeftSide:e.x<this._left,isOnRightSide:e.x>this._right,isOnTopSide:e.y<this._top}}equals({bottom:e,left:t,right:r,top:n}){return n===this._top&&e===this._bottom&&t===this._left&&r===this._right}generateNewRect({bottom:t=this.bottom,left:r=this.left,right:n=this.right,top:i=this.top}){return new e(r,i,n,t)}intersectsWith(e){let{height:t,left:r,top:n,width:i}=e,{height:o,left:a,top:l,width:s}=this;return(r+i>=a+s?r+i:a+s)-(r<=a?r:a)<=i+s&&(n+t>=l+o?n+t:l+o)-(n<=l?n:l)<=t+o}get bottom(){return this._bottom}get height(){return Math.abs(this._bottom-this._top)}get left(){return this._left}get right(){return this._right}get top(){return this._top}get width(){return Math.abs(this._left-this._right)}},A=new WeakMap;function N(e,t){A.has(e)||A.set(e,new Map);let r=A.get(e);for(let[e,n]of Object.entries(t))if(!(!n||"object"!=typeof n)){if("blocks"===e){for(let[e,t]of Object.entries(n))r.set(`block:${e}`,t);continue}if("inlineBlocks"===e){for(let[e,t]of Object.entries(n))r.set(`inlineBlock:${e}`,t);continue}r.set(e,n)}}function P(e){A.delete(e)}function j(e,t,r){let n=A.get(e);if("block"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`block:${e}`)}if("inlineBlock"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`inlineBlock:${e}`)}return n?.get(t)}function I({editorConfig:e,nodeViews:t}){let r=function({nodes:e}){return e.map(e=>"node"in e?e.node:e)}({nodes:e.features.nodes});if(t){let e=new Set;for(let[r,n]of Object.entries(t))n&&"object"==typeof n&&("blocks"===r&&Object.keys(n).length>0?e.add("block"):"inlineBlocks"===r&&Object.keys(n).length>0?e.add("inlineBlock"):e.add(r));for(let t of r)if("getType"in t){let r=t.getType();e.has(r)&&function({node:e,nodeType:t}){if("getType"in e&&e.getType()===t){if(e.prototype._originalDecorate||(e.prototype._originalDecorate=e.prototype.decorate),e.prototype._originalCreateDOM||(e.prototype._originalCreateDOM=e.prototype.createDOM),e.prototype.decorate&&!e.prototype._decorateOverridden){e.prototype._decorateOverridden=!0;let r=!!e.prototype.createDOM;e.prototype.decorate=function(n,i){let a=j(n,t,this);if(a){if(a.Component)return a.Component({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this});if(a.createDOM&&a.html){let e="function"==typeof a.html?a.html({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):a.html;return o.createElement("span",{dangerouslySetInnerHTML:{__html:e}})}if(a.html&&r&&!a.createDOM)return o.createElement(o.Fragment);if("block"===t){if(a.Block||a.Label)return e.prototype._originalDecorate.call(this,n,i,a.Block,a.Label)}
31else if("inlineBlock"===t&&(a.Block||a.Label))return e.prototype._originalDecorate.call(this,n,i,a.Block,a.Label)}return e.prototype._originalDecorate.call(this,n,i)}}e.prototype.createDOM&&!e.prototype._createDOMOverridden&&(e.prototype._createDOMOverridden=!0,e.prototype.createDOM=function(r,n){let i=j(n,t,this);if(i){if(i.createDOM)return i.createDOM({config:r,editor:n,node:this});if(i.html){let e="function"==typeof i.html?i.html({config:r,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):i.html,t=document.createElement("div");return t.innerHTML=e,t.firstElementChild||t}}return e.prototype._originalCreateDOM.call(this,r,n)})}}({node:t,nodeType:r})}}return r}var D=/^[\t ]*$/,$=/^(\s*)(\d+)\.\s/,R=/^(\s*)[-*+]\s/,L=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,z=/^(#{1,6})\s/,F=/^>\s/,B=/^[ \t]*(\\`\\`\\`|```)(\w+)?/,K=/[ \t]*(\\`\\`\\`|```)$/,U=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,W=/^\|(.+)\|\s?$/,H=/^(\| ?:?-*:? ?)+\|\s?$/,q=/^[ \t]*<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,J=/^[ \t]*<\/[a-z_][\w-]*\s*>/i,V=(0,u.urt)("mdHardLineBreak",{parse:e=>"string"==typeof e&&/^(\\| {2,})$/.test(e)?e:""});function G(e){if(e.endsWith("\\"))return[e.slice(0,-1),"\\"];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Y(e){let t=(0,u.WKo)(),r=function(e){let t=e.getChildren(),r=t.length-1,n=t[r];if(!(0,u.kFe)(n))return null;let i=n.getTextContent(),o=G(i);if(null!==o){let[e,t]=o;return n.setTextContent(e),t}return/^ {2,}$/.test(i)&&function(e,t){for(let r=t-1;r>=0&&!(0,u.wH$)(e[r]);r--)if(/\S/.test(e[r].getTextContent()))return!0;return!1}(t,r)?(n.setTextContent(""),i):null}(e);return null!==r&&(0,u.Chh)(t,V,r),t}var Z=e=>(t,r,n)=>{var i;let o,a,l,s=t.getPreviousSibling(),u=t.getNextSibling(),d=(0,c.i)("check"===e?"x"===n[3]:void 0);if((0,c.HY)(u)&&u.getListType()===e){let e=u.getFirstChild();null!==e?e.insertBefore(d):u.append(d),t.remove()}else if((0,c.HY)(s)&&s.getListType()===e)s.append(d),t.remove();else{let r=(0,c.DE)(e,"number"===e?Number(n[2]):void 0);r.append(d),t.replace(r)}d.append(...r),d.select(0,0);let f=(o=(i=n[1]).match(/\t/g),a=i.match(/ /g),l=0,o&&(l+=o.length),a&&(l+=Math.floor(a.length/4)),l);f&&d.setIndent(f)},X=(e,t,r)=>{let n=[],i=e.getChildren(),o=0;for(let a of i)if((0,c.Mz)(a)){if(1===a.getChildrenSize()){let e=a.getFirstChild();if((0,c.HY)(e)){n.push(X(e,t,r+1));continue}}let i=" ".repeat(4*r),l=e.getListType(),s="number"===l?`${e.getStart()+o}. `:"check"===l?`- [${a.getChecked()?"x":" "}] `:"- ";n.push(i+s+t(a)),o++}return n.join(` 32`)},Q={type:"element",dependencies:[d.jL],export:(e,t)=>{if(!(0,d.Pi)(e))return null;let r=Number(e.getTag().slice(1));return"#".repeat(r)+" "+t(e)},regExp:z,replace:(n=e=>{let t="h"+e[1].length;return(0,d.fi)(t)},(e,t,r)=>{let i=n(r);i.append(...t),e.replace(i),i.select(0,0)})},ee={type:"element",dependencies:[d.dJ],export:(e,t)=>{if(!(0,d.jd)(e))return null;let r=t(e).split(` 33`),n=[];for(let e of r)n.push("> "+e);return n.join(` 34`)},regExp:F,replace:(e,t,r,n)=>{if(n){let r=e.getPreviousSibling();if((0,d.jd)(r)){r.splice(r.getChildrenSize(),0,[Y(r),...t]),r.select(0,0),e.remove();return}}let i=(0,d.xi)();i.append(...t),e.replace(i),i.select(0,0)}},et={type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?X(e,t,0):null,regExp:R,replace:Z("bullet")},er=(c.v5,c.YW,Z("check"),{type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?X(e,t,0):null,regExp:$,replace:Z("number")});function en(e){return(t,r)=>(0,d.Pi)(t)&&t.getTag()==="h"+e?"#".repeat(e)+" "+r(t):null}function ei(e,t){let r={};for(let n of e){let e=t(n);e&&(r[e]?r[e].push(n):r[e]=[n])}return r}function eo(e){let t=ei(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}en(1),en(2),en(3),en(4),en(5),en(6);var ea=/[!-/:-@[-`{-~\s]/,el=/^\s{0,3}$/;function es(e){if(!(0,u.bSg)(e))return!1;let t=e.getFirstChild();return null==t||1===e.getChildrenSize()&&(0,u.kFe)(t)&&el.test(t.getTextContent())}function eu(e,t,r,n,i){let o=[],a=e.getChildren();n||(n=[]),i||(i=[]);r:for(let e of a){var l;
34for(let a of r){if(!a.export)continue;let l=a.export(e,e=>eu(e,t,r,n,[...i,...n]),(e,r)=>ec(e,r,t,n,i));if(null!=l){o.push(l);continue r}}(0,u.wH$)(e)?o.push((l=e,(0,u.I8X)(l,V)+` 35`)):(0,u.kFe)(e)?o.push(ec(e,e.getTextContent(),t,n,i)):(0,u.ff4)(e)?o.push(eu(e,t,r,n,i)):(0,u.Cyw)(e)&&o.push(e.getTextContent())}return o.join("")}function ec(e,t,r,n,i){let o=t.trim(),a=o;e.hasFormat("code")||(a=a.replace(/([*_`~\\])/g,"\\$1"));let l="",s="",u="",c=ed(e,!0),d=ed(e,!1),f=new Set;for(let t of r){let r=t.format[0],i=t.tag;ef(e,r)&&!f.has(r)&&(f.add(r),ef(c,r)&&n.find(e=>e.tag===i)||(n.push({format:r,tag:i}),l+=i))}for(let t=0;t<n.length;t++){let r=n[t],o=ef(e,r.format),a=ef(d,r.format);if(o&&a)continue;let l=[...n];for(;l.length>t;){let e=l.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&"string"==typeof e.tag&&(o?a||(u+=e.tag):s+=e.tag),n.pop())}break}return a=l+a+u,s+t.replace(o,()=>a)}function ed(e,t){let r=t?e.getPreviousSibling():e.getNextSibling();if(!r){let n=e.getParentOrThrow();n.isInline()&&(r=t?n.getPreviousSibling():n.getNextSibling())}for(;r;){if((0,u.ff4)(r)){if(!r.isInline())break;let e=t?r.getLastDescendant():r.getFirstDescendant();if((0,u.kFe)(e))return e;r=t?r.getPreviousSibling():r.getNextSibling()}if((0,u.kFe)(r))return r;if(!(0,u.ff4)(r))break}return null}function ef(e,t){return(0,u.kFe)(e)&&e.hasFormat(t)}function eh(e,t,r){let n=r.length;for(let i=t;i>=n;i--){let t=i-n;if(ep(e,t,r,0,n)&&" "!==e[t+n])return t}return -1}function ep(e,t,r,n,i){for(let o=0;o<i;o++)if(e[t+o]!==r[n+o])return!1;return!0}function em(e,t=eg){let r=eo(t),n=ei(r.textFormat,({tag:e})=>e[e.length-1]),i=ei(r.textMatch,({trigger:e})=>e);for(let r of t){let t=r.type;if("element"===t||"text-match"===t||"multiline-element"===t){for(let t of r.dependencies)if(!e.hasNode(t))throw Error("MarkdownShortcuts: missing dependency %s for transformer. Ensure node dependency is included in editor initial config."+t.getType())}}return e.registerUpdateListener(({dirtyLeaves:t,editorState:o,prevEditorState:a,tags:l})=>{if(l.has("collaboration")||l.has("historic")||e.isComposing())return;let s=o.read(u.vJq),c=a.read(u.vJq);if(!(0,u.I2P)(c)||!(0,u.I2P)(s)||!s.isCollapsed()||s.is(c))return;let d=s.anchor.key,f=s.anchor.offset,h=o._nodeMap.get(d);(0,u.kFe)(h)&&t.has(d)&&(1===f||!(f>c.anchor.offset+1))&&e.update(()=>{var e;if(h.hasFormat("code"))return;let t=h.getParent();null!==t&&(function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[r-1])return!1;for(let{regExp:i,replace:a}of n){let n=o.match(i);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[o,l]=t.splitText(r);if(o?.remove(),!1!==a(e,l?[l,...i]:i,n,!1))return!0}}return!1}(t,h,e=s.anchor.offset,r.element)||function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[r-1])return!1;for(let{regExpEnd:i,regExpStart:a,replace:l}of n){if(i&&!("optional"in i)||i&&"optional"in i&&!i.optional)continue;let n=o.match(a);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[o,a]=t.splitText(r);if(o?.remove(),!1!==l(e,a?[a,...i]:i,n,null,null,!1))return!0}}return!1}(t,h,e,r.multilineElement)||function(e,t,r){let n=e.getTextContent(),i=r[n[t-1]];if(null==i)return!1;for(let r of(t<n.length&&(n=n.slice(0,t)),i)){if(!r.replace||!r.regExp)continue;let t=n.match(r.regExp);if(null===t)continue;let i=t.index||0,o=i+t[0].length,a;return 0===i?[a]=e.splitText(o):[,a]=e.splitText(i,o),a&&(a.selectNext(0,0),r.replace(a,t)),!0}return!1}(h,e,i)||function(e,t,r){let n=e.getTextContent(),i=t-1,o=n[i],a=r[o];if(a)for(let t of a){let{tag:r}=t,a=r.length,l=i-a+1;if(a>1&&!ep(n,l,r,0,a)||" "===n[l-1])continue;let s=n[i+1];if(!1===t.intraword&&s&&!ea.test(s))continue;let c=e,d=eh(n,l,r),f=c;for(;d<0&&(f=f.getPreviousSibling())&&!(0,u.wH$)(f);)if((0,u.kFe)(f)){let e=f.getTextContent();c=f,d=eh(e,e.length,r)}if(d<0||c===e&&d+a===l)continue;let h=c.getTextContent();if(d>0&&h[d-1]===o)continue;let p=h[d-1];if(!1===t.intraword&&p&&!ea.test(p))continue;let m=e.getTextContent(),g=m.slice(0,l)+m.slice(i+1);e.setTextContent(g);let y=c===e?g:h;c.setTextContent(y.slice(0,d)+y.slice(d+a));let v=(0,u.vJq)(),b=(0,u.uTE)();(0,u.n1P)(b);let w=i-a*(c===e?2:1)+1;for(let r of(b.anchor.set(c.__key,d,"text"),b.focus.set(e.__key,w,"text"),t.format))b.hasFormat(r)||b.formatText(r);
35for(let e of(b.anchor.set(b.focus.key,b.focus.offset,b.focus.type),t.format))b.hasFormat(e)&&b.toggleFormat(e);return(0,u.I2P)(v)&&(b.format=v.format),!0}}(h,e,n))})})}var eg=[Q,ee,et,er,{type:"text-format",format:["code"],tag:"`"},{type:"text-format",format:["bold","italic"],tag:"***"},{type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},{type:"text-format",format:["bold"],tag:"**"},{type:"text-format",format:["bold"],intraword:!1,tag:"__"},{type:"text-format",format:["highlight"],tag:"=="},{type:"text-format",format:["italic"],tag:"*"},{type:"text-format",format:["italic"],intraword:!1,tag:"_"},{type:"text-format",format:["strikethrough"],tag:"~~"}];function ey(e,t=eg,r,n=!1,i=!0){let o=n?e:function(e,t){let r=e.split(` 36`),n=!1,i=[],o=0;for(let e=0;e<r.length;e++){let a=r[e],l=i[i.length-1],s=e<r.length-1?G(a):null,u=void 0!==l&&null!==G(l);if(U.test(a)){i.push(a);continue}if(K.test(a)){0===o&&(n=!0),1===o&&(n=!1),o>0&&o--,i.push(a);continue}if(B.test(a)){n=!0,o++,i.push(a);continue}if(n){i.push(a);continue}D.test(a)||D.test(l)||!l||z.test(l)||z.test(a)||F.test(a)||$.test(a)||R.test(a)||L.test(a)||W.test(a)||H.test(a)||u||!t||q.test(a)||J.test(a)||q.test(l)||J.test(l)||K.test(l)?i.push(a):i[i.length-1]=l+" "+(null===s?a.trim():a.trimStart())}return i.join(` 37`)}(e,i);return(function(e,t=!1){let r=eo(e),n=function(e){let t={},r={},n=[];for(let i of e){let{tag:e}=i;t[e]=i;let o=e.replace(/([*^+])/g,"\\$1");n.push(o),1===e.length?r[e]=RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`):r[e]=RegExp(`(?<!\\\\)(${o})((\\\\${o})?.*?[^\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?!\\\\)`)}return{fullMatchRegExpByTag:r,openTagsRegExp:RegExp(`(?<![\\\\])(${n.join("|")})`,"g"),transformersByTag:t}}(r.textFormat);return(e,i)=>{let o=e.split(` 38`),a=o.length,l=i||(0,u.NiT)();l.clear();for(let e=0;e<a;e++){let t=o[e],[i,a]=function(e,t,r,n){for(let i of r){let{handleImportAfterStartMatch:r,regExpEnd:o,regExpStart:a,replace:l}=i,s=e[t]?.match(a);if(!s)continue;if(r){let o=r({lines:e,rootNode:n,startLineIndex:t,startMatch:s,transformer:i});if(null===o)continue;if(o)return o}let u="object"==typeof o&&"regExp"in o?o.regExp:o,c=o&&"object"==typeof o&&"optional"in o?o.optional:!o,d=t,f=e.length;for(;d<f;){let r=u?e[d]?.match(u):null;if(!r&&(!c||c&&d<f-1)||r&&t===d&&r.index===s.index){d++;continue}let i=[];if(r&&t===d)i.push(e[t].slice(s[0].length,-r[0].length));else for(let n=t;n<=d;n++){let o=e[n];if(n===t){let e=o.slice(s[0].length);i.push(e)}else if(n===d&&r){let e=o.slice(0,-r[0].length);i.push(e)}else i.push(o)}if(!1!==l(n,null,s,r,i,!0))return[!0,d];break}}return[!1,t]}(o,e,r.multilineElement,l);if(i){e=a;continue}!function(e,t,r,n,i){let o=(0,u.sTu)(e),a=(0,u.lJ7)();for(let{regExp:n,replace:i}of(a.append(o),t.append(a),r)){let t=e.match(n);if(t&&(o.setTextContent(e.slice(t[0].length)),!1!==i(a,[o],t,!0)))break}if(function e(t,r,n){let i=function(e,t){let r=function(e,t){let r=e.match(t.openTagsRegExp);if(null==r)return null;for(let n of r){let r=n.replace(/^\s/,""),i=t.fullMatchRegExpByTag[r];if(null==i)continue;let o=e.match(i),a=t.transformersByTag[r];if(null!=o&&null!=a){if(!1!==a.intraword)return o;let{index:t=0}=o,r=e[t-1],n=e[t+o[0].length];if((!r||ea.test(r))&&(!n||ea.test(n)))return o}}return null}(e.getTextContent(),t);if(!r)return null;let n=r.index||0,i=n+r[0].length,o=t.transformersByTag[r[1]];return{endIndex:i,match:r,startIndex:n,transformer:o}}(t,r),o=function(e,t){let r,n,i,o;for(let a of t){if(!a.replace||!a.importRegExp)continue;let t=e.getTextContent().match(a.importRegExp);if(!t)continue;let l=t.index||0,s=a.getEndIndex?a.getEndIndex(e,t):l+t[0].length;!1!==s&&(void 0===r||void 0===n||l<r&&s>n)&&(r=l,n=s,i=a,o=t)}return void 0===r||void 0===n||void 0===i||void 0===o?null:{endIndex:n,match:o,startIndex:r,transformer:i}}(t,n);if(i&&o&&(i.startIndex<=o.startIndex&&i.endIndex>=o.endIndex?o=null:i=null),i){let o=function(e,t,r,n,i){let o=e.getTextContent(),a,l,s;if(i[0]===o?s=e:0===t?[s,a]=e.splitText(r):[l,s,a]=e.splitText(t,r),s.setTextContent(i[2]),n)for(let e of n.format)s.hasFormat(e)||s.toggleFormat(e);return{nodeAfter:a,nodeBefore:l,transformedNode:s}}(t,i.startIndex,i.endIndex,i.transformer,i.match);o.nodeAfter&&(0,u.kFe)(o.nodeAfter)&&!o.nodeAfter.hasFormat("code")&&e(o.nodeAfter,r,n),o.nodeBefore&&(0,u.kFe)(o.nodeBefore)&&!o.nodeBefore.hasFormat("code")&&e(o.nodeBefore,r,n),o.transformedNode&&(0,u.kFe)(o.transformedNode)&&!o.transformedNode.hasFormat("code")&&e(o.transformedNode,r,n)}else if(o){var a,l,s,c;let i,d,f,h=(a=o.startIndex,l=o.endIndex,s=o.transformer,c=o.match,(0===a?[f,i]=t.splitText(l):[d,f,i]=t.splitText(a,l),s.replace)?{nodeAfter:i,nodeBefore:d,transformedNode:(f?s.replace(f,c):void 0)||void 0}:null);
38if(!h)return;h.nodeAfter&&(0,u.kFe)(h.nodeAfter)&&!h.nodeAfter.hasFormat("code")&&e(h.nodeAfter,r,n),h.nodeBefore&&(0,u.kFe)(h.nodeBefore)&&!h.nodeBefore.hasFormat("code")&&e(h.nodeBefore,r,n),h.transformedNode&&(0,u.kFe)(h.transformedNode)&&!h.transformedNode.hasFormat("code")&&e(h.transformedNode,r,n)}let d=t.getTextContent().replace(/\\([*_`~])/g,"$1");t.setTextContent(d)}(o,n,i),a.isAttached()&&e.length>0){let e=a.getPreviousSibling();if((0,u.bSg)(e)||(0,d.jd)(e)||(0,c.HY)(e)){let t=e;if((0,c.HY)(e)){let r=e.getLastDescendant();t=null==r?null:(0,u.BtT)(r,c.Mz)}null!=t&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[Y(t),...a.getChildren()]),a.remove())}}}(t,l,r.element,n,r.textMatch)}for(let e of l.getChildren())!t&&es(e)&&l.getChildrenSize()>1&&e.remove();null!==(0,u.vJq)()&&l.selectStart()}})(t,n)(o,r)}function ev(e=eg,t,r=!1){return(function(e,t=!1){let r=eo(e),n=[...r.multilineElement,...r.element],i=!t,o=r.textFormat.filter(e=>1===e.format.length).sort((e,t)=>e.format.includes("code")&&!t.format.includes("code")?1:!e.format.includes("code")&&t.format.includes("code")?-1:0);return e=>{let t=[],a=(e||(0,u.NiT)()).getChildren();return a.forEach((e,l)=>{let s=function(e,t,r,n){for(let i of t){if(!i.export)continue;let t=i.export(e,e=>eu(e,r,n));if(null!=t)return t}return(0,u.ff4)(e)?eu(e,r,n):(0,u.Cyw)(e)?e.getTextContent():null}(e,n,o,r.textMatch);null!=s&&t.push(i&&l>0&&!es(e)&&!es(a[l-1])?` 39`.concat(s):s)}),t.join(` 40`)}})(e,r)(t)}},18863:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{if("object"==typeof e&&!Object.prototype.hasOwnProperty.call(e,"$$typeof")){if(e[t.language])return e[t.language];let r=[];"string"==typeof t.fallbackLanguage?r=[t.fallbackLanguage]:Array.isArray(t.fallbackLanguage)&&(r=t.fallbackLanguage);let n=r.find(t=>e[t]);return n&&e[n]?e[n]:e[Object.keys(e)[0]]}return"function"==typeof e?e({i18n:t,t:t.t}):e}},19749:(e,t,r)=>{"use strict";e.exports=r(4873)},19831:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=r||(t.DiscrError=r={})).Tag="tag",n.Mapping="mapping"},20804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378);t.default={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")}},21108:function(e,t,r){var n;!function(){"use strict";var i,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,l="[DecimalError] ",s=l+"Invalid argument: ",u=l+"Exponent out of range: ",c=Math.floor,d=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=c(1286742750677284.5),p={};function m(e,t){var r,n,i,o,l,s,u,c,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),a?O(t,f):t;if(u=e.d,c=t.d,l=e.e,i=t.e,u=u.slice(),o=l-i){for(o<0?(n=u,o=-o,s=c.length):(n=c,i=l,s=u.length),o>(s=(l=Math.ceil(f/7))>s?l+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=u.length)-(o=c.length)<0&&(o=s,n=c,c=u,u=n),r=0;o;)r=(u[--o]=u[o]+c[o]+r)/1e7|0,u[o]%=1e7;for(r&&(u.unshift(r),++i),s=u.length;0==u[--s];)u.pop();return t.d=u,t.e=i,a?O(t,f):t}function g(e,t,r){if(e!==~~e||e<t||e>r)throw Error(s+e)}function y(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=_(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=_(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}p.absoluteValue=p.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},p.comparedTo=p.cmp=function(e){var t,r,n,i;if(e=new this.constructor(e),this.s!==e.s)return this.s||-e.s;if(this.e!==e.e)return this.e>e.e^this.s<0?1:-1;for(n=this.d.length,t=0,r=n<(i=e.d.length)?n:i;t<r;++t)if(this.d[t]!==e.d[t])return this.d[t]>e.d[t]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},p.decimalPlaces=p.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},p.dividedBy=p.div=function(e){return v(this,new this.constructor(e))},p.dividedToIntegerBy=p.idiv=function(e){var t=this.constructor;return O(v(this,new t(e),0,1),t.precision)},p.equals=p.eq=function(e){return!this.cmp(e)},p.exponent=function(){return w(this)},p.greaterThan=p.gt=function(e){return this.cmp(e)>0},p.greaterThanOrEqualTo=p.gte=function(e){return this.cmp(e)>=0},p.isInteger=p.isint=function(){return this.e>this.d.length-2},p.isNegative=p.isneg=function(){return this.s<0},p.isPositive=p.ispos=function(){return this.s>0},p.isZero=function(){return 0===this.s},p.lessThan=p.lt=function(e){return 0>this.cmp(e)},p.lessThanOrEqualTo=p.lte=function(e){return 1>this.cmp(e)},p.logarithm=p.log=function(e){var t,r=this.constructor,n=r.precision,o=n+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(this.s<1)throw Error(l+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(a=!1,t=v(S(this,o),S(e,o),o),a=!0,O(t,n))},p.minus=p.sub=function(e){return e=new this.constructor(e),this.s==e.s?C(this,e):m(this,(e.s=-e.s,e))},p.modulo=p.mod=function(e){var t,r=this.constructor,n=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return this.s?(a=!1,t=v(this,e,0,1).times(e),a=!0,this.minus(t)):O(new r(this),n)},p.naturalExponential=p.exp=function(){return b(this)},p.naturalLogarithm=p.ln=function(){return S(this)},p.negated=p.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},p.plus=p.add=function(e){return e=new this.constructor(e),this.s==e.s?m(this,e):C(this,(e.s=-e.s,e))},p.precision=p.sd=function(e){var t,r,n;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=w(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;
40n/=10)r++}return e&&t>r?t:r},p.squareRoot=p.sqrt=function(){var e,t,r,n,i,o,s,u=this.constructor;if(this.s<1){if(!this.s)return new u(0);throw Error(l+"NaN")}for(e=w(this),a=!1,0==(i=Math.sqrt(+this))||i==1/0?(((t=y(this.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),n=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new u(i.toString()),i=s=(r=u.precision)+3;;)if(n=(o=n).plus(v(this,o,s+2)).times(.5),y(o.d).slice(0,s)===(t=y(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&"4999"==t){if(O(o,r+1,0),o.times(o).eq(this)){n=o;break}}else if("9999"!=t)break;s+=4}return a=!0,O(n,r)},p.times=p.mul=function(e){var t,r,n,i,o,l,s,u,c,d=this.constructor,f=this.d,h=(e=new d(e)).d;if(!this.s||!e.s)return new d(0);for(e.s*=this.s,r=this.e+e.e,(u=f.length)<(c=h.length)&&(o=f,f=h,h=o,l=u,u=c,c=l),o=[],n=l=u+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=o[i]+h[n]*f[i-n-1]+t,o[i--]=s%1e7|0,t=s/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--l];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,a?O(e,d.precision):e},p.toDecimalPlaces=p.todp=function(e,t){var r=this,n=r.constructor;
40return(r=new n(r),void 0===e)?r:(g(e,0,1e9),void 0===t?t=n.rounding:g(t,0,8),O(r,e+w(r)+1,t))},p.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=E(n,!0):(g(e,0,1e9),void 0===t?t=i.rounding:g(t,0,8),r=E(n=O(new i(n),e+1,t),!0,e+1)),r},p.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?E(this):(g(e,0,1e9),void 0===t?t=i.rounding:g(t,0,8),r=E((n=O(new i(this),e+w(this)+1,t)).abs(),!1,e+w(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},p.toInteger=p.toint=function(){var e=this.constructor;return O(new e(this),w(this)+1,e.rounding)},p.toNumber=function(){return+this},p.toPower=p.pow=function(e){var t,r,n,o,s,u,d=this,f=d.constructor,h=+(e=new f(e));if(!e.s)return new f(i);if(!(d=new f(d)).s){if(e.s<1)throw Error(l+"Infinity");return d}if(d.eq(i))return d;if(n=f.precision,e.eq(i))return O(d,n);if(u=(t=e.e)>=(r=e.d.length-1),s=d.s,u){if((r=h<0?-h:h)<=0x1fffffffffffff){for(o=new f(i),t=Math.ceil(n/7+4),a=!1;r%2&&T((o=o.times(d)).d,t),0!==(r=c(r/2));)T((d=d.times(d)).d,t);return a=!0,e.s<0?new f(i).div(o):O(o,n)}}else if(s<0)throw Error(l+"NaN");
40return s=s<0&&1&e.d[Math.max(t,r)]?-1:1,d.s=1,a=!1,o=e.times(S(d,n+12)),a=!0,(o=b(o)).s=s,o},p.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?(r=w(i),n=E(i,r<=o.toExpNeg||r>=o.toExpPos)):(g(e,1,1e9),void 0===t?t=o.rounding:g(t,0,8),r=w(i=O(new o(i),e,t)),n=E(i,e<=r||r<=o.toExpNeg,e)),n},p.toSignificantDigits=p.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(g(e,1,1e9),void 0===t?t=r.rounding:g(t,0,8)),O(new r(this),e,t)},p.toString=p.valueOf=p.val=p.toJSON=function(){var e=w(this),t=this.constructor;return E(this,e<=t.toExpNeg||e>=t.toExpPos)};var v=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%1e7|0,n=r/1e7|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=+(e[r]<t[r]),e[r]=1e7*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a){var s,u,c,d,f,h,p,m,g,y,v,b,x,_,S,k,C,E,T=n.constructor,M=n.s==i.s?1:-1,A=n.d,N=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(l+"Division by zero");for(u=n.e-i.e,C=N.length,S=A.length,m=(p=new T(M)).d=[],c=0;N[c]==(A[c]||0);)++c;if(N[c]>(A[c]||0)&&--u,(b=null==o?o=T.precision:a?o+(w(n)-w(i))+1:o)<0)return new T(0);if(b=b/7+2|0,c=0,1==C)for(d=0,N=N[0],b++;(c<S||d)&&b--;c++)x=1e7*d+(A[c]||0),m[c]=x/N|0,d=x%N|0;else{for((d=1e7/(N[0]+1)|0)>1&&(N=e(N,d),A=e(A,d),C=N.length,S=A.length),_=C,y=(g=A.slice(0,C)).length;y<C;)g[y++]=0;(E=N.slice()).unshift(0),k=N[0],N[1]>=1e7/2&&++k;do d=0,(s=t(N,g,C,y))<0?(v=g[0],C!=y&&(v=1e7*v+(g[1]||0)),(d=v/k|0)>1?(d>=1e7&&(d=1e7-1),h=(f=e(N,d)).length,y=g.length,1==(s=t(f,g,h,y))&&(d--,r(f,C<h?E:N,h))):(0==d&&(s=d=1),f=N.slice()),(h=f.length)<y&&f.unshift(0),r(g,f,y),-1==s&&(y=g.length,(s=t(N,g,C,y))<1&&(
40d++,r(g,C<y?E:N,y))),y=g.length):0===s&&(d++,g=[0]),m[c++]=d,s&&g[0]?g[y++]=A[_]||0:(g=[A[_]],y=1);while((_++<S||void 0!==g[0])&&b--)}return m[0]||m.shift(),p.e=u,O(p,a?o+w(p)+1:o)}}();function b(e,t){var r,n,o,l,s,c=0,f=0,h=e.constructor,p=h.precision;if(w(e)>16)throw Error(u+w(e));if(!e.s)return new h(i);for(null==t?(a=!1,s=p):s=t,l=new h(.03125);e.abs().gte(.1);)e=e.times(l),f+=5;for(s+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=o=new h(i),h.precision=s;;){if(n=O(n.times(e),s),r=r.times(++c),y((l=o.plus(v(n,r,s))).d).slice(0,s)===y(o.d).slice(0,s)){for(;f--;)o=O(o.times(o),s);return h.precision=p,null==t?(a=!0,O(o,p)):o}o=l}}function w(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function x(e,t,r){if(t>e.LN10.sd())throw a=!0,r&&(e.precision=r),Error(l+"LN10 precision limit exceeded");return O(new e(e.LN10),t)}function _(e){for(var t="";e--;)t+="0";return t}function S(e,t){var r,n,o,s,u,c,d,f,h,p=1,m=e,g=m.d,b=m.constructor,_=b.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new b(0);if(null==t?(a=!1,f=_):f=t,m.eq(10))return null==t&&(a=!0),x(b,f);if(b.precision=f+=10,n=(r=y(g)).charAt(0),!(15e14>Math.abs(s=w(m))))return d=x(b,f+2,_).times(s+""),m=S(new b(n+"."+r.slice(1)),f-10).plus(d),b.precision=_,null==t?(a=!0,O(m,_)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=y((m=m.times(e)).d)).charAt(0),p++;for(s=w(m),n>1?(m=new b("0."+r),s++):m=new b(n+"."+r.slice(1)),c=u=m=v(m.minus(i),m.plus(i),f),h=O(m.times(m),f),o=3;;){if(u=O(u.times(h),f),y((d=c.plus(v(u,new b(o),f))).d).slice(0,f)===y(c.d).slice(0,f))return c=c.times(2),0!==s&&(c=c.plus(x(b,f+2,_).times(s+""))),c=v(c,new b(p),f),b.precision=_,null==t?(a=!0,O(c,_)):c;c=d,o+=2}}function k(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,e.e=c((r=r-n-1)/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),a&&(e.e>h||e.e<-h))throw Error(u+r)}else e.s=0,e.e=0,e.d=[0];return e}function O(e,t,r){var n,i,o,l,s,f,p,m,g=e.d;for(l=1,o=g[0];o>=10;o/=10)l++;if((n=t-l)<0)n+=7,i=t,p=g[m=0];else{if((m=Math.ceil((n+1)/7))>=(o=g.length))return e;for(p=o=g[m],l=1;o>=10;o/=10)l++;n%=7,i=n-7+l}if(void 0!==r&&(s=p/(o=d(10,l-i-1))%10|0,f=t<0||void 0!==g[m+1]||p%o,f=r<4?(s||f)&&(0==r||r==(e.s<0?3:2)):s>5||5==s&&(4==r||f||6==r&&(n>0?i>0?p/d(10,l-i):0:g[m-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return f?(o=w(e),g.length=1,t=t-o-1,g[0]=d(10,(7-t%7)%7),e.e=c(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==n?(g.length=m,o=1,m--):(g.length=m+1,o=d(10,7-n),g[m]=i>0?(p/d(10,l-i)%d(10,i)|0)*o:0),f)for(;;)if(0==m){1e7==(g[0]+=o)&&(g[0]=1,++e.e);break}else{if(g[m]+=o,1e7!=g[m])break;g[m--]=0,o=1}for(n=g.length;0===g[--n];)g.pop();if(a&&(e.e>h||e.e<-h))throw Error(u+w(e));return e}function C(e,t){var r,n,i,o,l,s,u,c,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),a?O(t,p):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),l=c-n){for((d=l<0)?(r=u,l=-l,s=f.length):(r=f,n=c,s=u.length),l>(i=Math.max(Math.ceil(p/7),s)+2)&&(l=i,r.length=1),r.reverse(),i=l;i--;)r.push(0);r.reverse()}else{for((d=(i=u.length)<(s=f.length))&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){d=u[i]<f[i];break}l=0}for(d&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>l;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=1e7-1;--u[o],u[i]+=1e7}u[i]-=f[i]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(t.d=u,t.e=n,a?O(t,p):t):new h(0)}function E(e,t,r){var n,i=w(e),o=y(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+_(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+_(-i-1)+o,r&&(n=r-a)>0&&(o+=_(n))):i>=a?(o+=_(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+_(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=_(n))),e.s<0?"-"+o:o}function T(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]]))if(c(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(s+r+": "+n);if(void 0!==(n=e[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(s+r+": "+n);return this}(o=function e(t){var r,n,i;function o(e){if(!(this instanceof o))return new o(e);if(this.constructor=o,e instanceof o){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,f.test(e))k(this,e);else throw Error(s+e)}if(o.prototype=p,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=M,void 0===t&&(t={}),t)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(o)).default=o.Decimal=o,i=new o(1),void 0===(n=(function(){return o}
40).call(t,r,t,e))||(e.exports=n)}()},21116:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(74751);t.property=function(e){return function(t){return n.get(t,e)}}},21433:(e,t,r)=>{"use strict";r.d(t,{$g:()=>a,Hw:()=>o,Td:()=>s,au:()=>l,xH:()=>i});var n=r(10365),i=e=>e.options.defaultTooltipEventType,o=e=>e.options.validateTooltipEventTypes;function a(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function l(e,t){return a(t,i(e),o(e))}function s(e){return(0,n.G)(t=>l(t,e))}},21739:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{IZ:()=>a,Kg:()=>o,lY:()=>l,yy:()=>s});var o=Math.PI/180,a=(e,t,r,n)=>({x:e+Math.cos(-o*n)*r,y:t+Math.sin(-o*n)*r}),l=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2},s=(e,t)=>{var r,{relativeX:n,relativeY:o}=e,{radius:a,angle:l}=((e,t)=>{var{x:r,y:n}=e,{cx:i,cy:o}=t,a=((e,t)=>{var{x:r,y:n}=e,{x:i,y:o}=t;return Math.sqrt((r-i)**2+(n-o)**2)})({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var l=Math.acos((r-i)/a);return n>o&&(l=2*Math.PI-l),{radius:a,angle:180*l/Math.PI,angleInRadian:l}})({x:n,y:o},t),{innerRadius:s,outerRadius:u}=t;if(a<s||a>u||0===a)return null;var{startAngle:c,endAngle:d}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.min(Math.floor(t/360),Math.floor(r/360));return{startAngle:t-360*n,endAngle:r-360*n}})(t),f=l;if(c<=d){for(;f>d;)f-=360;for(;f<c;)f+=360;r=f>=c&&f<=d}else{for(;f>c;)f-=360;for(;f<d;)f+=360;r=f>=d&&f<=c}return r?i(i({},t),{},{radius:a,angle:((e,t)=>{var{startAngle:r,endAngle:n}=t;return e+360*Math.min(Math.floor(r/360),Math.floor(n/360))})(f,t)}):null}},21888:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("chart-no-axes-combined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]])},21966:(e,t,r)=>{"use strict";r.d(t,{aS:()=>f,y$:()=>h});var n=r(57258),i=r.n(n),o=r(12115),a=r(58152),l=r(92191),s=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",u=null,c=null,d=e=>{if(e===u&&Array.isArray(c))return c;var t=[];return o.Children.forEach(e,e=>{(0,l.uy)(e)||((0,a.isFragment)(e)?t=t.concat(d(e.props.children)):t.push(e))}),c=t,u=e,t};function f(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(e=>s(e)):[s(t)],d(e).forEach(e=>{var t=i()(e,"type.displayName")||i()(e,"type.name");t&&-1!==n.indexOf(t)&&r.push(e)}),r}var h=e=>!e||"object"!=typeof e||!("clipDot"in e)||!!e.clipDot},22035:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}},22046:()=>{},22164:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},22347:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(91314);t.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===n.getTag(e)}},22368:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
40],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]])},22377:(e,t,r)=>{"use strict";r.d(t,{B_:()=>i,JK:()=>o,Vp:()=>s,gX:()=>a,hF:()=>l});var n=(0,r(11785).Z0)({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,o;e.margin.top=null!=(r=t.payload.top)?r:0,e.margin.right=null!=(n=t.payload.right)?n:0,e.margin.bottom=null!=(i=t.payload.bottom)?i:0,e.margin.left=null!=(o=t.payload.left)?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:i,setLayout:o,setChartSize:a,setScale:l}=n.actions,s=n.reducer},22673:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(49967),i=r(36997),o=r(12115);function a({maxIndent:e,$canIndent:t}){let[r]=(0,i.DF)();return(0,o.useEffect)(()=>(0,n.MM)(r,e,t),[r,e,t]),null}},23094:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(94313),i=r(47497);t.isArrayLikeObject=function(e){return i.isObjectLike(e)&&n.isArrayLike(e)}},23168:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n=e=>"string"==typeof e||"number"==typeof e?e:e.id},23651:(e,t,r)=>{"use strict";r.d(t,{Rw:()=>o,Xc:()=>a,ic:()=>s,uZ:()=>l});var n=r(12115),i=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function o(e){return"string"==typeof e&&i.has(e)}function a(e){return"string"==typeof e&&e.startsWith("data-")}function l(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o(r)||a(r))&&(t[r]=e[r]);return t}function s(e){return null==e?null:(0,n.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?l(e.props):"object"!=typeof e||Array.isArray(e)?null:l(e)}},23767:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(89010),i=r(71542),o=r(49632),a=r(74751),l=r(1219);t.matchesProperty=function(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=i.toKey(e)}return t=o.cloneDeep(t),function(r){let i=a.get(r,e);return void 0===i?l.has(r,e):void 0===t?void 0===i:n.isMatch(i,t)}}},23812:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(16307);t.throttle=function(e,t=0,r={}){let{leading:i=!0,trailing:o=!0}=r;return n.debounce(e,t,{leading:i,maxWait:t,trailing:o})}},24338:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]])},24371:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},24395:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,enUS:()=>c});let n={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"}};var i=r(67121);let o={date:(0,i.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.k)({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:(0,i.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var l=r(92527);let s={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,l.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,l.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,l.o)({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:(0,l.o)({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","Frid
40ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,l.o)({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"})};var u=r(42165);let c={code:"en-US",formatDistance:(e,t,r)=>{let i,o=n[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:(e,t,r,n)=>a[e],localize:s,match:{ordinalNumber:(0,r(10005).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({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:(0,u.A)({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:e=>e+1}),month:(0,u.A)({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:(0,u.A)({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:(0,u.A)({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d=c},24642:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},24650:(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(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}r.r(t),r.d(t,{scaleBand:()=>c,scaleDiverging:()=>function e(){var t=eB(r2()(eS));return t.copy=function(){return rQ(t,e())},i.apply(t,arguments)},scaleDivergingLog:()=>function e(){var t=eG(r2()).domain([.1,1,10]);return t.copy=function(){return rQ(t,e()).base(t.base())},i.apply(t,arguments)},scaleDivergingPow:()=>r3,scaleDivergingSqrt:()=>r5,scaleDivergingSymlog:()=>function e(){var t=eX(r2());return t.copy=function(){return rQ(t,e()).constant(t.constant())},i.apply(t,arguments)},scaleIdentity:()=>function e(t){var r;function n(e){return null==e||isNaN(e*=1)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ex),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,ex):[0,1],eB(n)},scaleImplicit:()=>s,scaleLinear:()=>function e(){var t=eM();
40return t.copy=function(){return eE(t,e())},n.apply(t,arguments),eB(t)},scaleLog:()=>function e(){let t=eG(eT()).domain([1,10]);return t.copy=()=>eE(t,e()).base(t.base()),n.apply(t,arguments),t},scaleOrdinal:()=>u,scalePoint:()=>d,scalePow:()=>e3,scaleQuantile:()=>function e(){var t,r=[],i=[],o=[];function a(){var e=0,t=Math.max(1,i.length);for(o=Array(t-1);++e<t;)o[e-1]=function(e,t,r=S){if(!(!(n=e.length)||isNaN(t*=1))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(r(e[o+1],o+1,e)-a)*(i-o)}}(r,e/t);return l}function l(e){return null==e||isNaN(e*=1)?t:i[O(o,e)]}return l.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t<o.length?o[t]:r[r.length-1]]},l.domain=function(e){if(!arguments.length)return r.slice();for(let t of(r=[],e))null==t||isNaN(t*=1)||r.push(t);return r.sort(b),a()},l.range=function(e){return arguments.length?(i=Array.from(e),a()):i.slice()},l.unknown=function(e){return arguments.length?(t=e,l):t},l.quantiles=function(){return o.slice()},l.copy=function(){return e().domain(r).range(i).unknown(t)},n.apply(l,arguments)},scaleQuantize:()=>function e(){var t,r=0,i=1,o=1,a=[.5],l=[0,1];function s(e){return null!=e&&e<=e?l[O(a,e,0,o)]:t}function u(){var e=-1;for(a=Array(o);++e<o;)a[e]=((e+1)*i-(e-o)*r)/(o+1);return s}return s.domain=function(e){return arguments.length?([r,i]=e,r*=1,i*=1,u()):[r,i]},s.range=function(e){return arguments.length?(o=(l=Array.from(e)).length-1,u()):l.slice()},s.invertExtent=function(e){var t=l.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,a[0]]:t>=o?[a[o-1],i]:[a[t-1],a[t]]},s.unknown=function(e){return arguments.length&&(t=e),s},s.thresholds=function(){return a.slice()},s.copy=function(){return e().domain([r,i]).range(l).unknown(t)},n.apply(eB(s),arguments)},scaleRadial:()=>function e(){var t,r=eM(),i=[0,1],o=!1;function a(e){var n,i=Math.sign(n=r(e))*Math.sqrt(Math.abs(n));return isNaN(i)?t:o?Math.round(i):i}return a.invert=function(e){return r.invert(e4(e))},a.domain=function(e){return arguments.length?(r.domain(e),a):r.domain()},a.range=function(e){return arguments.length?(r.range((i=Array.from(e,ex)).map(e4)),a):i.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(r.clamp(e),a):r.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(r.domain(),i).round(o).clamp(r.clamp()).unknown(t)},n.apply(a,arguments),eB(a)},scaleSequential:()=>function e(){var t=eB(rX()(eS));return t.copy=function(){return rQ(t,e())},i.apply(t,arguments)},scaleSequentialLog:()=>function e(){var t=eG(rX()).domain([1,10]);return t.copy=function(){return rQ(t,e()).base(t.base())},i.apply(t,arguments)},scaleSequentialPow:()=>r0,scaleSequentialQuantile:()=>function e(){var t=[],r=eS;function n(e){if(null!=e&&!isNaN(e*=1))return r((O(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(b),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(e,t){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n*=1)>=n&&(yield n)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||r<2)return e8(e);if(t>=1)return e6(e);var r,n=(r-1)*t,i=Math.floor(n),o=e6((function e(t,r,n=0,i=1/0,o){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(t.length-1,i)),!(n<=r&&r<=i))return t;for(o=void 0===o?e9:function(e=b){if(e===b)return e9;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(o);i>n;){if(i-n>600){let a=i-n+1,l=r-n+1,s=Math.log(a),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(a-u)/a)*(l-a/2<0?-1:1),d=Math.max(n,Math.floor(r-l*u/a+c)),f=Math.min(i,Math.floor(r+(a-l)*u/a+c));e(t,r,d,f,o)}let a=t[r],l=n,s=i;for(e7(t,n,r),o(t[i],a)>0&&e7(t,n,i);l<s;){for(e7(t,l,s),++l,--s;0>o(t[l],a);)++l;for(;o(t[s],a)>0;)--s}0===o(t[n],a)?e7(t,n,s):e7(t,++s,i),s<=r&&(n=s+1),r<=s&&(i=s-1)}return t})(e,i).subarray(0,i+1));return o+(e8(e.subarray(i+1))-o)*(n-i)}}
40)(t,n/e))},n.copy=function(){return e(r).domain(t)},i.apply(n,arguments)},scaleSequentialSqrt:()=>r1,scaleSequentialSymlog:()=>function e(){var t=eX(rX());return t.copy=function(){return rQ(t,e()).constant(t.constant())},i.apply(t,arguments)},scaleSqrt:()=>e5,scaleSymlog:()=>function e(){var t=eX(eT());return t.copy=function(){return eE(t,e()).constant(t.constant())},n.apply(t,arguments)},scaleThreshold:()=>function e(){var t,r=[.5],i=[0,1],o=1;function a(e){return null!=e&&e<=e?i[O(r,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((r=Array.from(e)).length,i.length-1),a):r.slice()},a.range=function(e){return arguments.length?(i=Array.from(e),o=Math.min(r.length,i.length-1),a):i.slice()},a.invertExtent=function(e){var t=i.indexOf(e);return[r[t-1],r[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(r).range(i).unknown(t)},n.apply(a,arguments)},scaleTime:()=>rY,scaleUtc:()=>rZ,tickFormat:()=>eF});class o extends Map{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(a(this,e))}has(e){return super.has(a(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function a({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}let s=Symbol("implicit");function u(){var e=new o,t=[],r=[],i=s;function a(n){let o=e.get(n);if(void 0===o){if(i!==s)return i;e.set(n,o=t.push(n)-1)}return r[o%r.length]}return a.domain=function(r){if(!arguments.length)return t.slice();for(let n of(t=[],e=new o,r))e.has(n)||e.set(n,t.push(n)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(i=e,a):i},a.copy=function(){return u(t,r).unknown(i)},n.apply(a,arguments),a}function c(){var e,t,r=u().unknown(void 0),i=r.domain,o=r.range,a=0,l=1,s=!1,d=0,f=0,h=.5;function p(){var r=i().length,n=l<a,u=n?l:a,c=n?a:l;e=(c-u)/Math.max(1,r-d+2*f),s&&(e=Math.floor(e)),u+=(c-u-e*(r-d))*h,t=e*(1-d),s&&(u=Math.round(u),t=Math.round(t));var p=(function(e,t,r){e*=1,t*=1,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=Array(i);++n<i;)o[n]=e+n*r;return o})(r).map(function(t){return u+e*t});return o(n?p.reverse():p)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),p()):i()},r.range=function(e){return arguments.length?([a,l]=e,a*=1,l*=1,p()):[a,l]},r.rangeRound=function(e){return[a,l]=e,a*=1,l*=1,s=!0,p()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(s=!!e,p()):s},r.padding=function(e){return arguments.length?(d=Math.min(1,f=+e),p()):d},r.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),p()):d},r.paddingOuter=function(e){return arguments.length?(f=+e,p()):f},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),p()):h},r.copy=function(){return c(i(),[a,l]).round(s).paddingInner(d).paddingOuter(f).align(h)},n.apply(p(),arguments)}function d(){return function e(t){var r=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(r())},t}(c.apply(null,arguments).paddingInner(1))}let f=Math.sqrt(50),h=Math.sqrt(10),p=Math.sqrt(2);function m(e,t,r){let n,i,o,a=(t-e)/Math.max(0,r),l=Math.floor(Math.log10(a)),s=a/Math.pow(10,l),u=s>=f?10:s>=h?5:s>=p?2:1;return(l<0?(n=Math.round(e*(o=Math.pow(10,-l)/u)),i=Math.round(t*o),n/o<e&&++n,i/o>t&&--i,o=-o):(n=Math.round(e/(o=Math.pow(10,l)*u)),i=Math.round(t/o),n*o<e&&++n,i*o>t&&--i),i<n&&.5<=r&&r<2)?m(e,t,2*r):[n,i,o]}function g(e,t,r){if(t*=1,e*=1,!((r*=1)>0))return[];if(e===t)return[e];let n=t<e,[i,o,a]=n?m(t,e,r):m(e,t,r);if(!(o>=i))return[];let l=o-i+1,s=Array(l);if(n)if(a<0)for(let e=0;e<l;++e)s[e]=-((o-e)/a);else for(let e=0;e<l;++e)s[e]=(o-e)*a;else if(a<0)for(let e=0;e<l;++e)s[e]=-((i+e)/a);else for(let e=0;e<l;++e)s[e]=(i+e)*a;return s}function y(e,t,r){return m(e*=1,t*=1,r*=1)[2]}function v(e,t,r){t*=1,e*=1,r*=1;let n=t<e,i=n?y(t,e,r):y(e,t,r);return(n?-1:1)*(i<0?-(1/i):i)}function b(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function w(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function x(e){let t,r,n;function i(e,n,o=0,a=e.length){if(o<a){if(0!==t(n,n))return a;
40do{let t=o+a>>>1;0>r(e[t],n)?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=b,r=(t,r)=>b(e(t),r),n=(t,r)=>e(t)-r):(t=e===b||e===w?e:_,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){let a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{let t=i+o>>>1;0>=r(e[t],n)?i=t+1:o=t}while(i<o)}return i}}}function _(){return 0}function S(e){return null===e?NaN:+e}let k=x(b),O=k.right;function C(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function E(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function T(){}k.left,x(S).center;var M,A,N,P,j,I,D,$="\\s*([+-]?\\d+)\\s*",R="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",z=/^#([0-9a-f]{3,8})$/,F=RegExp(`^rgb\\(${$},${$},${$}\\)$`),B=RegExp(`^rgb\\(${L},${L},${L}\\)$`),K=RegExp(`^rgba\\(${$},${$},${$},${R}\\)$`),U=RegExp(`^rgba\\(${L},${L},${L},${R}\\)$`),W=RegExp(`^hsl\\(${R},${L},${L}\\)$`),H=RegExp(`^hsla\\(${R},${L},${L},${R}\\)$`),q={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function J(){return this.rgb().formatHex()}function V(){return this.rgb().formatRgb()}function G(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=z.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Y(t):3===r?new Q(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Z(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=F.exec(e))?new Q(t[1],t[2],t[3],1):(t=B.exec(e))?new Q(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=K.exec(e))?Z(t[1],t[2],t[3],t[4]):(t=U.exec(e))?Z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=W.exec(e))?eo(t[1],t[2]/100,t[3]/100,1):(t=H.exec(e))?eo(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?Y(q[e]):"transparent"===e?new Q(NaN,NaN,NaN,0):null}function Y(e){return new Q(e>>16&255,e>>8&255,255&e,1)}function Z(e,t,r,n){return n<=0&&(e=t=r=NaN),new Q(e,t,r,n)}function X(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof T||(i=G(i)),i)?new Q((i=i.rgb()).r,i.g,i.b,i.opacity):new Q:new Q(e,t,r,null==n?1:n)}function Q(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ee(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function et(){let e=er(this.opacity);return`${1===e?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===e?")":`, ${e})`}`}function er(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ei(e){return((e=en(e))<16?"0":"")+e.toString(16)}function eo(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new el(e,t,r,n)}function ea(e){if(e instanceof el)return new el(e.h,e.s,e.l,e.opacity);if(e instanceof T||(e=G(e)),!e)return new el;if(e instanceof el)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(r-n)/l+(r<n)*6:r===o?(n-t)/l+2:(t-r)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new el(a,l,s,e.opacity)}function el(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function es(e){return(e=(e||0)%360)<0?e+360:e}function eu(e){return Math.max(0,Math.min(1,e||0))}function ec(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function ed(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}C(T,G,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:J,formatHex:J,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ea(this).formatHsl()},formatRgb:V,toString:V}
40),C(Q,X,E(T,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Q(en(this.r),en(this.g),en(this.b),er(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:ee,formatHex:ee,formatHex8:function(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:et,toString:et})),C(el,function(e,t,r,n){return 1==arguments.length?ea(e):new el(e,t,r,null==n?1:n)},E(T,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new el(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new el(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Q(ec(e>=240?e-240:e+120,i,n),ec(e,i,n),ec(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new el(es(this.h),eu(this.s),eu(this.l),er(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(){let e=er(this.opacity);return`${1===e?"hsl(":"hsla("}${es(this.h)}, ${100*eu(this.s)}%, ${100*eu(this.l)}%${1===e?")":`, ${e})`}`}}));let ef=e=>()=>e;function eh(e,t){var r=t-e;return r?function(t){return e+t*r}:ef(isNaN(e)?t:e)}let ep=function e(t){var r,n=1==(r=+t)?eh:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):ef(isNaN(e)?t:e)};function i(e,t){var r=n((e=X(e)).r,(t=X(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=eh(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function em(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),l=Array(i);for(r=0;r<i;++r)n=X(t[r]),o[r]=n.r||0,a[r]=n.g||0,l[r]=n.b||0;return o=e(o),a=e(a),l=e(l),n.opacity=1,function(e){return n.r=o(e),n.g=a(e),n.b=l(e),n+""}}}function eg(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}em(function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,l=n<t-1?e[n+2]:2*o-i;return ed((r-n/t)*t,a,i,o,l)}}),em(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],l=e[(n+2)%t];return ed((r-n/t)*t,i,o,a,l)}});var ey=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ev=RegExp(ey.source,"g");function eb(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?ef(t):("number"===i?eg:"string"===i?(n=G(t))?(t=n,ep):function(e,t){var r,n,i,o,a,l=ey.lastIndex=ev.lastIndex=0,s=-1,u=[],c=[];for(e+="",t+="";(i=ey.exec(e))&&(o=ev.exec(t));)(a=o.index)>l&&(a=t.slice(l,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,c.push({i:s,x:eg(i,o)})),l=ev.lastIndex;return l<t.length&&(a=t.slice(l),u[s]?u[s]+=a:u[++s]=a),u.length<2?c[0]?(r=c[0].x,function(e){return r(e)+""}):(n=t,function(){return n}):(t=c.length,function(e){for(var r,n=0;n<t;++n)u[(r=c[n]).i]=r.x(e);return u.join("")})}:t instanceof G?ep:t instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(n){return r.setTime(e*(1-n)+t*n),r}}:!ArrayBuffer.isView(r=t)||r instanceof DataView?Array.isArray(t)?function(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=Array(i),a=Array(n);for(r=0;r<i;++r)o[r]=eb(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var r,n={},i={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?n[r]=eb(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}:eg:function(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}})(e,t)}function ew(e,t){return e*=1,t*=1,function(r){return Math.round(e*(1-r)+t*r)}}function ex(e){return+e}var e_=[0,1];function eS(e){return e}function ek(e,t){var r;return(t-=e*=1)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r})}function eO(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=ek(i,n),o=r(a,o)):(n=ek(n,i),o=r(o,a)),function(e){return o(n(e))}}function eC(e,t,r){var n=Math.min(e.length,t.length)-1,i=Array(n),o=Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=ek(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=O(e,t,1,n)-1;return o[r](i[r](t))}}function eE(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function eT(){var e,t,r,n,i,o,a=e_,l=e_,s=eb,u=eS;function c(){var e,t,r,s=Math.min(a.length,l.length);return u!==eS&&(e=a[0],t=a[s-1],e>t&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=s>2?eC:eO,i=o=null,d}function d(t){return null==t||isNaN(t*=1)?r:(i||(i=n(a.map(e),l,s)))(e(u(t)))}return d.invert=function(r){return u(t((o||(o=n(l,a.map(e),eg)))(r)))},d.domain=function(e){return arguments.length?(a=Array.from(e,ex),c()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()}
40,d.rangeRound=function(e){return l=Array.from(e),s=ew,c()},d.clamp=function(e){return arguments.length?(u=!!e||eS,c()):u!==eS},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}}function eM(){return eT()(eS,eS)}var eA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eN(e){var t;if(!(t=eA.exec(e)))throw Error("invalid format: "+e);return new eP({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 eP(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 ej(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function eI(e){return(e=ej(Math.abs(e)))?e[1]:NaN}function eD(e,t){var r=ej(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}eN.prototype=eP.prototype,eP.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};let e$={"%":(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)=>eD(100*e,t),r:eD,s:function(e,t){var r=ej(e,t);if(!r)return M=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(M=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+Array(1-o).join("0")+ej(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eR(e){return e}var eL=Array.prototype.map,ez=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eF(e,t,r,n){var i,o,a=v(e,t,r);switch((n=eN(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eI(l)/3)))-eI(Math.abs(a))))||(n.precision=o),P(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=Math.max(0,eI(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=a)))-eI(i))+1)||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=Math.max(0,-eI(Math.abs(a))))||(n.precision=o-("%"===n.type)*2)}return N(n)}function eB(e){var t=e.domain;return e.ticks=function(e){var r=t();return g(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return eF(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),a=0,l=o.length-1,s=o[a],u=o[l],c=10;for(u<s&&(i=s,s=u,u=i,i=a,a=l,l=i);c-- >0;){if((i=y(s,u,r))===n)return o[a]=s,o[l]=u,t(o);if(i>0)s=Math.floor(s/i)*i,u=Math.ceil(u/i)*i;else if(i<0)s=Math.ceil(s*i)/i,u=Math.floor(u*i)/i;else break;n=i}return e},e}function eK(e,t){e=e.slice();var r,n=0,i=e.length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function eU(e){return Math.log(e)}function eW(e){return Math.exp(e)}function eH(e){return-Math.log(-e)}function eq(e){return-Math.exp(-e)}function eJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eV(e){return(t,r)=>-e(-t,r)}function eG(e){let t,r,n=e(eU,eW),i=n.domain,o=10;function a(){var a,l;return t=(a=o)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),e=>Math.log(e)/a),r=10===(l=o)?eJ:l===Math.E?Math.exp:e=>Math.pow(l,e),i()[0]<0?(t=eV(t),r=eV(r),e(eH,eq)):e(eU,eW),n}return n.base=function(e){return arguments.length?(o=+e,a()):o},n.domain=function(e){return arguments.length?(i(e),a()):i()},n.ticks=e=>{let n,a,l=i(),s=l[0],u=l[l.length-1],c=u<s;c&&([s,u]=[u,s]);let d=t(s),f=t(u),h=null==e?10:+e,p=[];if(!(o%1)&&f-d<h){if(d=Math.floor(d),f=Math.ceil(f),s>0){for(;d<=f;++d)for(n=1;n<o;++n)if(!((a=d<0?n/r(-d):n*r(d))<s)){if(a>u)break;p.push(a)}}else for(;d<=f;++d)for(n=o-1;n>=1;--n)if(!((a=d>0?n/r(-d):n*r(d))<s)){if(a>u)break;p.push(a)}2*p.length<h&&(p=g(s,u,h))}else p=g(d,f,Math.min(f-d,h)).map(r);return c?p.reverse():p}
40,n.tickFormat=(e,i)=>{if(null==e&&(e=10),null==i&&(i=10===o?"s":","),"function"!=typeof i&&(o%1||null!=(i=eN(i)).precision||(i.trim=!0),i=N(i)),e===1/0)return i;let a=Math.max(1,o*e/n.ticks().length);return e=>{let n=e/r(Math.round(t(e)));return n*o<o-.5&&(n*=o),n<=a?i(e):""}},n.nice=()=>i(eK(i(),{floor:e=>r(Math.floor(t(e))),ceil:e=>r(Math.ceil(t(e)))})),n}function eY(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eZ(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eX(e){var t=1,r=e(eY(1),eZ(t));return r.constant=function(r){return arguments.length?e(eY(t=+r),eZ(t)):t},eB(r)}function eQ(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function e0(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function e1(e){return e<0?-e*e:e*e}function e2(e){var t=e(eS,eS),r=1;return t.exponent=function(t){return arguments.length?1==(r=+t)?e(eS,eS):.5===r?e(e0,e1):e(eQ(r),eQ(1/r)):r},eB(t)}function e3(){var e=e2(eT());return e.copy=function(){return eE(e,e3()).exponent(e.exponent())},n.apply(e,arguments),e}function e5(){return e3.apply(null,arguments).exponent(.5)}function e4(e){return Math.sign(e)*e*e}function e6(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function e8(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function e9(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:+(e>t))}function e7(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}N=(A=function(e){var t,r,n,i=void 0===e.grouping||void 0===e.thousands?eR:(t=eL.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),o.push(e.substring(i-=l,i+l)),!((s+=l+1)>n));)l=t[a=(a+1)%t.length];return o.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?eR:(n=eL.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return n[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"â":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function f(e,t){var r=(e=eN(e)).fill,n=e.align,f=e.sign,h=e.symbol,p=e.zero,m=e.width,g=e.comma,y=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):e$[b]||(void 0===y&&(y=12),v=!0,b="g"),(p||"0"===r&&"="===n)&&(p=!0,r="0",n="=");var w=(t&&void 0!==t.prefix?t.prefix:"")+("$"===h?o:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===h?a:/[%p]/.test(b)?u:"")+(t&&void 0!==t.suffix?t.suffix:""),_=e$[b],S=/[defgprs%]/.test(b);function k(e){var t,o,a,u=w,h=x;if("c"===b)h=_(e)+h,e="";else{var k=(e*=1)<0||1/e<0;
40if(e=isNaN(e)?d:_(Math.abs(e),y),v&&(e=function(e){n:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break n;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==f&&(k=!1),u=(k?"("===f?f:c:"-"===f||"("===f?"":f)+u,h=("s"!==b||isNaN(e)||void 0===M?"":ez[8+M/3])+h+(k&&"("===f?")":""),S){for(t=-1,o=e.length;++t<o;)if(48>(a=e.charCodeAt(t))||a>57){h=(46===a?l+e.slice(t+1):e.slice(t))+h,e=e.slice(0,t);break}}}g&&!p&&(e=i(e,1/0));var O=u.length+e.length+h.length,C=O<m?Array(m-O+1).join(r):"";switch(g&&p&&(e=i(C+e,C.length?m-h.length:1/0),C=""),n){case"<":e=u+e+h+C;break;case"=":e=u+C+e+h;break;case"^":e=C.slice(0,O=C.length>>1)+u+e+h+C.slice(O);break;default:e=C+u+e+h}return s(e)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(eI(t)/3))),n=Math.pow(10,-r),i=f(((e=eN(e)).type="f",e),{suffix:ez[8+r/3]});return function(e){return i(n*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,P=A.formatPrefix;let te=new Date,tt=new Date;function tr(e,t,r,n){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{let t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,o)=>{let a,l=[];
40if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n)||!(o>0))return l;do l.push(a=new Date(+r)),t(r,o),e(r);while(a<r&&r<n);return l},i.filter=r=>tr(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(te.setTime(+t),tt.setTime(+n),e(te),e(tt),Math.floor(r(te,tt))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?t=>n(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let tn=tr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);tn.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?tr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):tn:null,tn.range;let ti=tr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ti.range;let to=tr(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());to.range;let ta=tr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());ta.range;let tl=tr(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());tl.range;let ts=tr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());ts.range;let tu=tr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);tu.range;let tc=tr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);tc.range;let td=tr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function tf(e){return tr(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())*6e4)/6048e5)}td.range;let th=tf(0),tp=tf(1),tm=tf(2),tg=tf(3),ty=tf(4),tv=tf(5),tb=tf(6);function tw(e){return tr(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)/6048e5)}th.range,tp.range,tm.range,tg.range,ty.range,tv.range,tb.range;let tx=tw(0),t_=tw(1),tS=tw(2),tk=tw(3),tO=tw(4),tC=tw(5),tE=tw(6);tx.range,t_.range,tS.range,tk.range,tO.range,tC.range,tE.range;let tT=tr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tT.range;let tM=tr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());tM.range;let tA=tr(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());tA.every=e=>isFinite(e=Math.floor(e))&&e>0?tr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,tA.range;let tN=tr(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 tP(e,t,r,n,i,o){let a=[[ti,1,1e3],[ti,5,5e3],[ti,15,15e3],[ti,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,r,n){let i=Math.abs(r-t)/n,o=x(([,,e])=>e).right(a,i);if(o===a.length)return e.every(v(t/31536e6,r/31536e6,n));if(0===o)return tn.every(Math.max(v(t,r,n),1));let[l,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return l.every(s)}return[function(e,t,r){let n=t<e;n&&([e,t]=[t,e]);let i=r&&"function"==typeof r.range?r:l(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},l]}tN.every=e=>isFinite(e=Math.floor(e))&&e>0?tr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,tN.range;let[tj,tI]=tP(tN,tM,tx,td,ts,ta),[tD,t$]=tP(tA,tT,th,tu,tl,to);function tR(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 tL(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 tz(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var tF={"-":"",_:" ",0:"0"},tB=/^\s*\d+/,tK=/^%/,tU=/[\\^$*+?|[\]().{}]/g;function tW(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?Array(r-o+1).join(t)+i:i)}function tH(e){return e.replace(tU,"\\$&")}function tq(e){return RegExp("^(?:"+e.map(tH).join("|")+")","i")}function tJ(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function tV(e,t,r){var n=tB.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function tG(e,t,r){var n=tB.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tY(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tZ(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function tX(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function tQ(e,t,r){var n=tB.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function t0(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function t1(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function t2(e,t,r){var n=tB.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function t3(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function t5(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function t4(e,t,r){var n=tB.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function t6(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function t8(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function t9(e,t,r){var n=tB.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function t7(e,t,r){var n=tB.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function re(e,t,r){var n=tB.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function rt(e,t,r){var n=tK.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function rr(e,t,r){var n=tB.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rn(e,t,r){var n=tB.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ri(e,t){return tW(e.getDate(),t,2)}function ro(e,t){return tW(e.getHours(),t,2)}function ra(e,t){return tW(e.getHours()%12||12,t,2)}function rl(e,t){return tW(1+tu.count(tA(e),e),t,3)}function rs(e,t){return tW(e.getMilliseconds(),t,3)}function ru(e,t){return rs(e,t)+"000"}function rc(e,t){return tW(e.getMonth()+1,t,2)}function rd(e,t){return tW(e.getMinutes(),t,2)}function rf(e,t){return tW(e.getSeconds(),t,2)}function rh(e){var t=e.getDay();return 0===t?7:t}function rp(e,t){return tW(th.count(tA(e)-1,e),t,2)}function rm(e){var t=e.getDay();return t>=4||0===t?ty(e):ty.ceil(e)}function rg(e,t){return e=rm(e),tW(ty.count(tA(e),e)+(4===tA(e).getDay()),t,2)}function ry(e){return e.getDay()}function rv(e,t){return tW(tp.count(tA(e)-1,e),t,2)}function rb(e,t){return tW(e.getFullYear()%100,t,2)}function rw(e,t){return tW((e=rm(e)).getFullYear()%100,t,2)}function rx(e,t){return tW(e.getFullYear()%1e4,t,4)}function r_(e,t){var r=e.getDay();return tW((e=r>=4||0===r?ty(e):ty.ceil(e)).getFullYear()%1e4,t,4)}function rS(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tW(t/60|0,"0",2)+tW(t%60,"0",2)}function rk(e,t){return tW(e.getUTCDate(),t,2)}function rO(e,t){return tW(e.getUTCHours(),t,2)}function rC(e,t){return tW(e.getUTCHours()%12||12,t,2)}function rE(e,t){return tW(1+tc.count(tN(e),e),t,3)}function rT(e,t){return tW(e.getUTCMilliseconds(),t,3)}function rM(e,t){return rT(e,t)+"000"}function rA(e,t){return tW(e.getUTCMonth()+1,t,2)}function rN(e,t){return tW(e.getUTCMinutes(),t,2)}function rP(e,t){return tW(e.getUTCSeconds(),t,2)}function rj(e){var t=e.getUTCDay();return 0===t?7:t}function rI(e,t){return tW(tx.count(tN(e)-1,e),t,2)}function rD(e){var t=e.getUTCDay();return t>=4||0===t?tO(e):tO.ceil(e)}function r$(e,t){return e=rD(e),tW(tO.count(tN(e),e)+(4===tN(e).getUTCDay()),t,2)}function rR(e){return e.getUTCDay()}function rL(e,t){return tW(t_.count(tN(e)-1,e),t,2)}function rz(e,t){return tW(e.getUTCFullYear()%100,t,2)}function rF(e,t){return tW((e=rD(e)).getUTCFullYear()%100,t,2)}function rB(e,t){return tW(e.getUTCFullYear()%1e4,t,4)}function rK(e,t){var r=e.getUTCDay();return tW((e=r>=4||0===r?tO(e):tO.ceil(e)).getUTCFullYear()%1e4,t,4)}function rU(){return"+0000"}function rW(){return"%"}function rH(e){return+e}function rq(e){return Math.floor(e/1e3)}function rJ(e){return new Date(e)}function rV(e){return e instanceof Date?+e:+new Date(+e)}function rG(e,t,r,n,i,o,a,l,s,u){var c=eM(),d=c.invert,f=c.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),v=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(s(e)<e?h:l(e)<e?p:a(e)<e?m:o(e)<e?g:n(e)<e?i(e)<e?y:v:r(e)<e?b:w)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?f(Array.from(e,rV)):f().map(rJ)},c.ticks=function(t){var r=f();return e(r[0],r[r.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?x:u(t)},c.nice=function(e){var r=f();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?f(eK(r,e)):c},c.copy=function(){return eE(c,rG(e,t,r,n,i,o,a,l,s,u))},c}function rY(){return n.apply(rG(tD,t$,tA,tT,th,tu,tl,to,ti,I).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rZ(){return n.apply(rG(tj,tI,tN,tM,tx,tc,ts,ta,ti,D).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rX(){var e,t,r,n,i,o=0,a=1,l=eS,s=!1;function u(t){return null==t||isNaN(t*=1)?i:l(0===r?.5:(t=(n(t)-e)*r,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),u):[l(0),l(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=n(o
40*=1),t=n(a*=1),r=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(eb),u.rangeRound=c(ew),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return n=i,e=i(o),t=i(a),r=e===t?0:1/(t-e),u}}function rQ(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function r0(){var e=e2(rX());return e.copy=function(){return rQ(e,r0()).exponent(e.exponent())},i.apply(e,arguments)}function r1(){return r0.apply(null,arguments).exponent(.5)}function r2(){var e,t,r,n,i,o,a,l=0,s=.5,u=1,c=1,d=eS,f=!1;function h(e){return isNaN(e*=1)?a:(e=.5+((e=+o(e))-t)*(c*e<c*t?n:i),d(f?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,d=function(e,t){void 0===t&&(t=e,e=eb);for(var r=0,n=t.length-1,i=t[0],o=Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}(e,[r,n,i]),h):[d(0),d(.5),d(1)]}}return h.domain=function(a){return arguments.length?([l,s,u]=a,e=o(l*=1),t=o(s*=1),r=o(u*=1),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),c=t<e?-1:1,h):[l,s,u]},h.clamp=function(e){return arguments.length?(f=!!e,h):f},h.interpolator=function(e){return arguments.length?(d=e,h):d},h.range=p(eb),h.rangeRound=p(ew),h.unknown=function(e){return arguments.length?(a=e,h):a},function(a){return o=a,e=a(l),t=a(s),r=a(u),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),c=t<e?-1:1,h}}function r3(){var e=e2(r2());return e.copy=function(){return rQ(e,r3()).exponent(e.exponent())},i.apply(e,arguments)}function r5(){return r3.apply(null,arguments).exponent(.5)}I=(j=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,u=tq(i),c=tJ(i),d=tq(o),f=tJ(o),h=tq(a),p=tJ(a),m=tq(l),g=tJ(l),y=tq(s),v=tJ(s),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:ri,e:ri,f:ru,g:rw,G:r_,H:ro,I:ra,j:rl,L:rs,m:rc,M:rd,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rH,s:rq,S:rf,u:rh,U:rp,V:rg,w:ry,W:rv,x:null,X:null,y:rb,Y:rx,Z:rS,"%":rW},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:rk,e:rk,f:rM,g:rF,G:rK,H:rO,I:rC,j:rE,L:rT,m:rA,M:rN,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rH,s:rq,S:rP,u:rj,U:rI,V:r$,w:rR,W:rL,x:null,X:null,y:rz,Y:rB,Z:rU,"%":rW},x={a:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return k(e,t,r,n)},d:t5,e:t5,f:re,g:t0,G:tQ,H:t6,I:t6,j:t4,L:t7,m:t3,M:t8,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:t2,Q:rr,s:rn,S:t9,u:tG,U:tY,V:tZ,w:tV,W:tX,x:function(e,t,n){return k(e,r,t,n)},X:function(e,t,r){return k(e,n,t,r)},y:t0,Y:tQ,Z:t1,"%":rt};function _(e,t){return function(r){var n,i,o,a=[],l=-1,s=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(i=tF[n=e.charAt(++l)])?n=e.charAt(++l):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function S(e,t){return function(r){var n,i,o=tz(1900,void 0,1);if(k(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=tL(tz(o.y,0,1))).getUTCDay())>4||0===i?t_.ceil(n):t_(n),n=tc.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=tR(tz(o.y,0,1))).getDay())>4||0===i?tp.ceil(n):tp(n),n=tu.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:+("W"in o)),i="Z"in o?tL(tz(o.y,0,1)).getUTCDay():tR(tz(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*
40o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,tL(o)):tR(o)}}function k(e,t,r,n){for(var i,o,a=0,l=t.length,s=r.length;a<l;){if(n>=s)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=x[(i=t.charAt(a++))in tF?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=_(r,b),b.X=_(n,b),b.c=_(t,b),w.x=_(r,w),w.X=_(n,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(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=S(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,j.parse,D=j.utcFormat,j.utcParse},25037:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(46776),i=r(92477);function o(e,t){let r=(0,n.q)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),l=a.getDay();return a.setDate(a.getDate()-(7*(l<o)+l-o)),a.setHours(0,0,0,0),a}},25103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return""===e||'""'===e}get str(){var e;return null!=(e=this._str)?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!=(e=this._names)?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){let r=[e[0]],n=0;for(;n<t.length;)s(r,t[n]),r.push(e[++n]);return new i(r)}t._Code=i,t.nil=new i(""),t._=o;let a=new i("+");function l(e,...t){let r=[u(e[0])],o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){var r,i;let o=(r=e[t-1],'""'===(i=e[t+1])?r:'""'===r?i:"string"==typeof r?i instanceof n||'"'!==r[r.length-1]?void 0:"string"!=typeof i?`${r.slice(0,-1)}${i}"`:'"'===i[0]?r.slice(0,-1)+i.slice(1):void 0:"string"!=typeof i||'"'!==i[0]||r instanceof n?void 0:`"${r}${i.slice(1)}`);if(void 0!==o){e.splice(t-1,3,o);continue}e[t++]="+"}t++}}(r),new i(r)}function s(e,t){var r;t instanceof i?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=l,t.addCodeArg=s,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:l`${e}${t}`},t.stringify=function(e){return new i(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},25281:(e,t,r)=>{"use strict";r.d(t,{h:()=>_});var n,i,o,a,l,s,u,c=r(12115),d=r(29722),f=r(21739),h=r(92191),p=r(43527),m=r(55359),g=r(75726);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
40).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var b=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:o,isExternal:a,cornerRadius:l,cornerIsExternal:s}=e,u=l*(a?1:-1)+n,c=Math.asin(l/u)/f.Kg,d=s?i:i+o*c,h=(0,f.IZ)(t,r,u,d);return{center:h,circleTangency:(0,f.IZ)(t,r,n,d),lineTangency:(0,f.IZ)(t,r,u*Math.cos(c*f.Kg),s?i-o*c:i),theta:c}},w=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:l,startAngle:s,endAngle:u}=e,c=(0,h.sA)(u-s)*Math.min(Math.abs(u-s),359.999),d=s+c,p=(0,f.IZ)(t,r,l,s),m=(0,f.IZ)(t,r,l,d),y=(0,g.Y)(n||(n=v(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),p.x,p.y,l,l,+(Math.abs(c)>180),+(s>d),m.x,m.y);if(a>0){var b=(0,f.IZ)(t,r,a,s),w=(0,f.IZ)(t,r,a,d);y+=(0,g.Y)(i||(i=v(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),w.x,w.y,a,a,+(Math.abs(c)>180),+(s<=d),b.x,b.y)}else y+=(0,g.Y)(o||(o=v(["L ",","," Z"])),t,r);return y},x={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_=e=>{var t,r=(0,p.e)(e,x),{cx:n,cy:i,innerRadius:o,outerRadius:f,cornerRadius:_,forceCornerRadius:S,cornerIsExternal:k,startAngle:O,endAngle:C,className:E}=r;if(f<o||O===C)return null;var T=(0,d.$)("recharts-sector",E),M=f-o,A=(0,h.F4)(_,M,0,!0);return t=A>0&&360>Math.abs(O-C)?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:o,forceCornerRadius:c,cornerIsExternal:d,startAngle:f,endAngle:p}=e,m=(0,h.sA)(p-f),{circleTangency:y,lineTangency:x,theta:_}=b({cx:t,cy:r,radius:i,angle:f,sign:m,cornerRadius:o,cornerIsExternal:d}),{circleTangency:S,lineTangency:k,theta:O}=b({cx:t,cy:r,radius:i,angle:p,sign:-m,cornerRadius:o,cornerIsExternal:d}),C=d?Math.abs(f-p):Math.abs(f-p)-_-O;if(C<0)return c?(0,g.Y)(a||(a=v(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),x.x,x.y,o,o,2*o,o,o,-(2*o)):w({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:f,endAngle:p});var E=(0,g.Y)(l||(l=v(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),x.x,x.y,o,o,+(m<0),y.x,y.y,i,i,+(C>180),+(m<0),S.x,S.y,o,o,+(m<0),k.x,k.y);if(n>0){var{circleTangency:T,lineTangency:M,theta:A}=b({cx:t,cy:r,radius:n,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:d}),{circleTangency:N,lineTangency:P,theta:j}=b({cx:t,cy:r,radius:n,angle:p,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:d}),I=d?Math.abs(f-p):Math.abs(f-p)-A-j;if(I<0&&0===o)return"".concat(E,"L").concat(t,",").concat(r,"Z");E+=(0,g.Y)(s||(s=v(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),P.x,P.y,o,o,+(m<0),N.x,N.y,n,n,+(I>180),+(m>0),T.x,T.y,o,o,+(m<0),M.x,M.y)}else E+=(0,g.Y)(u||(u=v(["L",",","Z"])),t,r);return E})({cx:n,cy:i,innerRadius:o,outerRadius:f,cornerRadius:Math.min(A,M/2),forceCornerRadius:S,cornerIsExternal:k,startAngle:O,endAngle:C}):w({cx:n,cy:i,innerRadius:o,outerRadius:f,startAngle:O,endAngle:C}),c.createElement("path",y({},(0,m.a)(r),{className:T,d:t}))}},25777:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},25964:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=(r&&Symbol.for("react.suspense_list"),r?Symbol.for("react.memo"):60115),m=r?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case l:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case p:case s:return e;default:return t}}case i:return t}}}r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");t.isFragment=function(e){return g(e)===o}},26028:(e,t,r)=>{"use strict";r.d(t,{CA:()=>b,MC:()=>d,QG:()=>v,Vi:()=>u,W3:()=>l,cU:()=>f,fR:()=>p,hd:()=>h,m2:()=>c});var n=r(11785),i=r(99050);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
40t%2?o(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l=0,s=(0,n.Z0)({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,n.aA)()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=(0,i.h4)(n))},prepare:(0,n.aA)()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:(0,n.aA)()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,n.aA)()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=(0,i.h4)(n))},prepare:(0,n.aA)()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:(0,n.aA)()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=(0,i.h4)(t.payload)},prepare:(0,n.aA)()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=(0,i.h4)(n))},prepare:(0,n.aA)()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:(0,n.aA)()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var o,l=i.widthHistory||[];if(3===l.length&&l[0]===l[2]&&n===l[1]&&n!==i.width&&1>=Math.abs(n-(null!=(o=l[0])?o:0)))return;var s=[...l,n].slice(-3);e.yAxis[r]=a(a({},i),{},{width:n,widthHistory:s})}}}}),{addXAxis:u,replaceXAxis:c,removeXAxis:d,addYAxis:f,replaceYAxis:h,removeYAxis:p,addZAxis:m,replaceZAxis:g,removeZAxis:y,updateYAxisWidth:v}=s.actions,b=s.reducer},26036:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});let n=new Set(["equals","contains","not_equals","in","all","not_in","exists","greater_than","greater_than_equal","less_than","less_than_equal","like","not_like","within","intersects","near"]),i=e=>!!(e?.or&&(e?.or?.length===0||e?.or?.length>0&&e?.or?.[0]?.and&&e?.or?.[0]?.and?.length>0))&&e.or.every(e=>!!(e.and&&Array.isArray(e.and))&&e.and.every(e=>{if("object"!=typeof e)return!1;let t=Object.keys(e);if(0===t.length)return!1;for(let r of t){let t=Object.keys(e[r])[0];if(!t||!n.has(t))return!1}return!0}))},26179:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},26719:(e,t,r)=>{"use strict";function n(e){return["image/jpeg","image/png","image/gif","image/svg+xml","image/webp","image/avif","image/jxl"].indexOf(e)>-1}r.d(t,{w:()=>n})},26801:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],l=o[1],u=new i((a+l)*3/4-l),c=0,d=l>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,l=n-i;a<l;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>l?l:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
40+/",a=0,l=o.length;a<l;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},27050:(e,t,r)=>{"use strict";function n(e){this.content=e}function i(e){return e>=56320&&e<57344}function o(e){return e>=55296&&e<56320}r.d(t,{S4:()=>K,ZF:()=>Z,FK:()=>a,CU:()=>c,sX:()=>z,bP:()=>O,u$:()=>S,vI:()=>d,Sj:()=>F,Ji:()=>f}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,o=i.find(e),a=i.content.slice();return -1==o?a.push(r||e,t):(a[o+1]=t,r&&(a[o]=r)),new n(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),o=i.content.slice(),a=i.find(e);return o.splice(-1==a?o.length:a,0,t,r),new n(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};class a{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let o=0,a=0;a<t;o++){let l=this.content[o],s=a+l.nodeSize;if(s>e&&!1!==r(l,n+a,i||null,o)&&l.content.size){let i=a+1;l.nodesBetween(Math.max(0,e-i),Math.min(l.content.size,t-i),r,n+i)}a=s}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",o=!0;return this.nodesBetween(e,t,(a,l)=>{let s=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&s||a.isTextblock)&&r&&(o?o=!1:i+=r),i+=s},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new a(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,o=0;o<t;i++){let a=this.content[i],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),n+=a.nodeSize),o=l}return new a(r,n)}cutByIndex(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new a(n,i)}addToStart(e){return new a([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new a(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return function e(t,r,n){for(let a=0;;a++){if(a==t.childCount||a==r.childCount)return t.childCount==r.childCount?null:n;let l=t.child(a),s=r.child(a);if(l==s){n+=l.nodeSize;continue}if(!l.sameMarkup(s))return n;if(l.isText&&l.text!=s.text){let e=l.text,t=s.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&o(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&n--,n}if(l.content.size||s.content.size){let t=e(l.content,s.content,n+1);if(null!=t)return t}
40n+=l.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return function e(t,r,n,a){for(let l=t.childCount,s=r.childCount;;){if(0==l||0==s)return l==s?null:{a:n,b:a};let u=t.child(--l),c=r.child(--s),d=u.nodeSize;if(u==c){n-=d,a-=d;continue}if(!u.sameMarkup(c))return{a:n,b:a};if(u.isText&&u.text!=c.text){let e=u.text,t=c.text,r=e.length,l=t.length;for(;r>0&&l>0&&e[r-1]==t[l-1];)r--,l--,n--,a--;return r&&l&&r<e.length&&o(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&(n++,a++),{a:n,b:a}}if(u.content.size||c.content.size){let t=e(u.content,c.content,n-1,a-1);if(t)return t}n-=d,a-=d}}(this,e,t,r)}findIndex(e){if(0==e)return s(0,e);if(e==this.size)return s(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return s(t+1,n);return s(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return a.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return a.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new a(t||e,r)}static from(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}a.empty=new a([],0);let l={index:0,offset:0};function s(e,t){return l.index=e,l.offset=t,l}function u(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class c{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return c.none;if(e instanceof c)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}c.none=[];class d extends Error{}class f{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=function e(t,r,n,i,o,a){let{index:l,offset:s}=t.findIndex(r),u=t.maybeChild(l);if(s==r||u.isText)return a&&i<=0&&o<=0&&!a.canReplace(l,l,n)?null:t.cut(0,r).append(n).append(t.cut(r));let c=e(u.content,r-s-1,n,0==l?i-1:0,l==t.childCount-1?o-1:0,u);return c&&t.replaceChild(l,u.copy(c))}(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new f(r,this.openStart,this.openEnd)}removeBetween(e,t){return new f(function e(t,r,n){let{index:i,offset:o}=t.findIndex(r),a=t.maybeChild(i),{index:l,offset:s}=t.findIndex(n);if(o==r||a.isText){if(s!=n&&!t.child(l).isText)throw RangeError("Removing non-flat range");return t.cut(0,r).append(t.cut(n))}if(i!=l)throw RangeError("Removing non-flat range");return t.replaceChild(i,a.copy(e(a.content,r-o-1,n-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new f(a.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new f(e,r,n)}}function h(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.n
vendor: 4,756 bytes, line 40
40ame)}function p(e,t,r){let n=e.node(r);return h(n,t.node(r)),n}function m(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function g(e,t,r,n){let i=(t||e).node(r),o=0,a=t?t.index(r):i.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(m(e.nodeAfter,n),o++));for(let e=o;e<a;e++)m(i.child(e),n);t&&t.depth==r&&t.textOffset&&m(t.nodeBefore,n)}function y(e,t){if(!e.type.validContent(t))throw new d("Invalid content for node "+e.type.name);return e.copy(t)}function v(e,t,r){let n=[];return g(null,e,r,n),e.depth>r&&m(y(p(e,t,r+1),v(e,t,r+1)),n),g(t,null,r,n),new a(n)}f.empty=new f(a.empty,0,0);class b{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return c.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||n&&i[o].isInSet(n.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new S(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),a=i-o;if(r.push(t,e,n+o),!a||(t=t.child(e)).isText)break;i=a-1,n+=o+1}return new b(t,r,i)}static resolveCached(e,t){let r=_.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else _.set(e,r=new w);let n=r.elts[r.i]=b.resolve(e,t);return r.i=(r.i+1)%x,n}}class w{constructor(){this.elts=[],this.i=0}}let x=12,_=new WeakMap;class S{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let k=Object.create(null);class O{constructor(e,t,r,n=c.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||a.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}
40textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&u(this.attrs,t||e.defaultAttrs||k)&&c.sameSet(this.marks,r||c.none)}copy(e=null){return e==this.content?this:new O(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new O(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return f.empty;let n=this.resolve(e),i=this.resolve(t),o=r?0:n.sharedDepth(t),a=n.start(o);return new f(n.node(o).content.cut(n.pos-a,i.pos-a),n.depth-o,i.depth-o)}replace(e,t,r){var n=this.resolve(e),i=this.resolve(t);if(r.openStart>n.depth)throw new d("Inserted content deeper than insertion position");if(n.depth-r.openStart!=i.depth-r.openEnd)throw new d("Inconsistent open depths");return function e(t,r,n,i){let o=t.index(i),l=t.node(i);if(o==r.index(i)&&i<t.depth-n.openStart){let a=e(t,r,n,i+1);return l.copy(l.content.replaceChild(o,a))}if(!n.content.size)return y(l,v(t,r,i));if(n.openStart||n.openEnd||t.depth!=i||r.depth!=i){let{start:e,end:o}=function(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(a.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(n,t);return y(l,function e(t,r,n,i,o){let l=t.depth>o&&p(t,r,o+1),s=i.depth>o&&p(n,i,o+1),u=[];return g(null,t,o,u),l&&s&&r.index(o)==n.index(o)?(h(l,s),m(y(l,e(t,r,n,i,o+1)),u)):(l&&m(y(l,v(t,r,o+1)),u),g(r,n,o,u),s&&m(y(s,v(n,i,o+1)),u)),g(i,null,o,u),new a(u)}(t,e,o,r,i))}{let e=t.parent,i=e.content;return y(e,i.cut(0,t.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return b.resolveCached(this,e)}resolveNoCache(e){return b.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),E(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=a.empty,n=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,n,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=c.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!c.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
40e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=a.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}O.prototype.text=void 0;class C extends O{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):E(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new C(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function E(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class T{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var r;let n,i=new M(e,t);if(null==i.next)return T.empty;let o=function e(t){let r=[];do r.push(function(t){let r=[];do r.push(function(t){let r=function(t){if(t.eat("(")){let r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){let r=A(e),n=r;return e.eat(",")&&(n="}"!=e.next?A(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"));return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let a=(r=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,r)=>t.concat(e(r,o)),[]);if("seq"==t.type)for(let n=0;;n++){let a=e(t.exprs[n],o);if(n==t.exprs.length-1)return a;i(a,o=r())}else if("star"==t.type){let a=r();return n(o,a),i(e(t.expr,a),a),[n(a)]}else if("plus"==t.type){let a=r();return i(e(t.expr,o),a),i(e(t.expr,a),a),[n(a)]}else if("opt"==t.type)return[n(o)].concat(e(t.expr,o));else if("range"==t.type){let a=o;for(let n=0;n<t.min;n++){let n=r();i(e(t.expr,a),n),a=n}if(-1==t.max)i(e(t.expr,a),a);else for(let o=t.min;o<t.max;o++){let o=r();n(a,o),i(e(t.expr,a),o),a=o}return[n(a)]}else if("name"==t.type)return[n(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(o),n=Object.create(null),function e(t){let i=[];t.forEach(e=>{r[e].forEach(({term:e,to:t})=>{let n;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(n=i[t][1]);P(r,t).forEach(t=>{n||i.push([e,n=[]]),-1==n.indexOf(t)&&n.push(t)})}})});let o=n[t.join(",")]=new T(t.indexOf(r.length-1)>-1);for(let t=0;t<i.length;t++){let r=i[t][1].sort(N);o.next.push({type:i[t][0],next:n[r.join(",")]||e(r)})}return o}(P(r,0)));return function(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:r,next:a}=e.next[t];o.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(a)&&n.push(a)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(a,i),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}
vendor: 4,607 bytes, line 40
40matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];return function i(o,l){let s=o.matchFragment(e,r);if(s&&(!t||s.validEnd))return a.from(l.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:r}=o.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,l.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:a}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||n.type&&!a.validEnd||(r.push({match:o.contentMatch,type:o,via:n}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}T.empty=new T(!0);class M{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function A(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function N(e,t){return t-e}function P(e,t){let r=[];return function t(n){let i=e[n];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:o}=i[e];n||-1!=r.indexOf(o)||t(o)}}(t),r.sort(N)}function j(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function I(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function D(e,t,r,n){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in e)e[r].validate&&e[r].validate(t[r])}function $(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new L(e,n,t[n]);return r}class R{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=$(e,r.attrs),this.defaultAttrs=j(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==T.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:I(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new O(this,this.computeAttrs(e),a.from(t),c.setFrom(r))}createChecked(e=null,t,r){return t=a.from(t),this.checkContent(t),new O(this,this.computeAttrs(e),t,c.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=a.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(a.empty,!0);return i?new O(this,e,t.append(i),c.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
40if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){D(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:c.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new R(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class L{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class z{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=$(e,n.attrs),this.excluded=null;let i=j(this.attrs);this.instance=i?new c(this,i):null}create(e=null){return!e&&this.instance?this.instance:new c(this,I(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new z(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){D(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class F{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=n.from(e.nodes),t.marks=n.from(e.marks||{}),this.nodes=R.compile(this.spec.nodes,this),this.marks=z.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=T.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?B(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:B(this,r.split(" "))}this.nodeFromJSON=e=>O.fromJSON(this,e),this.markFromJSON=e=>c.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof R){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new C(r,r.defaultAttrs,e,c.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function B(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],o=e.marks[i],a=o;if(o)r.push(o);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(a=n)}if(!a)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}class K{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];
40t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new V(this,t,!1);return r.addAll(e,c.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new V(this,t,!0);return r.addAll(e,c.none,t.from,t.to),f.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){var n,i;let r=this.tags[o];if(n=e,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],o=n.style;if(0==o.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=G(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=G(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new K(e,K.schemaRules(e)))}}let U={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},W={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},H={ol:!0,ul:!0};function q(e,t,r){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&r}class J{constructor(e,t,r,n,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=o,this.content=[],this.activeMarks=c.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(a.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=a.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!U.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class V{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,o=q(null,t.preserveWhitespace,0)|4*!!r;i=n?new J(n.type,n.attrs,c.none,!0,t.topMatch||n.type.contentMatch,o):r?new J(null,null,c.none,!0,null,o):new J(e.schema.topNodeType,null,c.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:o}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(o.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),a;H.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;
vendor: 1,492 bytes, line 40
40e&&H.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));n:if(l?l.ignore:W.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let r,n=this.needsBlock;if(U.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break n}let a=l&&l.skip?t:this.readStyles(e,t);a&&this.addAll(e,a),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,l,r,!1===l.consuming?a:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,o;
vendor: 4,107 bytes, line 40
40if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(o,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(a)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=null==n?null:e.childNodes[n];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,o=0;t>=0;t--){let a=this.nodes[t],l=a.findWrapping(e);if(l&&(!n||n.length>l.length+o)&&(n=l,i=a,!l.length))break;if(a.solid){if(r)break;o+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=c.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Y(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=q(e,i,o.options);4&o.options&&0==o.content.length&&(a|=4);let l=c.none;return r=r.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!Y(t.type,e))||(l=t.addToSet(l),!1)),this.nodes.push(new J(e,t,l,n,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,o=(e,a)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let e=a>0||0==a&&n?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!e||e.name!=l&&!e.isInGroup(l))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
40if(t.isTextblock&&t.defaultAttrs)return t}}}function G(e){let t={};for(let r in e)t[r]=e[r];return t}function Y(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>o.indexOf(i)&&a(i))return!0}};if(a(i.contentMatch))return!0}}class Z{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Q(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,o=0;for(;r<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,o++}for(;r<i.length;)n=i.pop()[1];for(;o<e.marks.length;){let r=e.marks[o++],a=this.serializeMark(r,e.isInline,t);a&&(i.push([r,n]),n.appendChild(a.dom),n=a.contentDOM||a.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){if(e.isText)return Q(t).createTextNode(e.text);let{dom:r,contentDOM:n}=et(Q(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&et(Q(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return"string"==typeof t?{dom:e.createTextNode(t)}:et(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Z(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=X(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return X(e.marks)}}function X(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function Q(e){return e.document||window.document}let ee=new WeakMap;function et(e,t,r,n){let i,o,a;if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let l=t[0],s;if("string"!=typeof l)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(o=ee.get(n))&&ee.set(n,(a=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])a||(a=[]),a.push(t);else for(let r=0;r<t.length;r++)e(t[r]);else for(let r in t)e(t[r])}(n),o=a)),s=o)&&s.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let u=l.indexOf(" ");u>0&&(r=l.slice(0,u),l=l.slice(u+1));let c=r?e.createElementNS(r,l):e.createElement(l),d=t[1],f=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in f=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&c.style?c.style.cssText=d[e]:c.setAttribute(e,d[e])}}for(let o=f;o<t.length;o++){let a=t[o];if(0===a){if(o<t.length-1||o>f)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}if("string"==typeof a)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:o}=et(e,a,r,n);if(c.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:c,contentDOM:i}}},27337:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(82159),i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=n.bP.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,n.KV)(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,r,n,i,o,a;let l=null!=(r=null==(t=e.attrs)?void 0:t.src)?r:"",s=null!=(i=null==(n=e.attrs)?void 0:n.alt)?i:"",u=null!=(a=null==(o=e.attrs)?void 0:o.title)?a:"";return u?``:``}
40,addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"u"<typeof document)return null;let{directions:e,minWidth:t,minHeight:r,alwaysPreserveAspectRatio:i}=this.options.resize;return({node:o,getPos:a,HTMLAttributes:l,editor:s})=>{let u=document.createElement("img");u.draggable=!1;let c=(0,n.KV)(this.options.HTMLAttributes,l);Object.entries(c).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:u.setAttribute(e,t)}}),null!==c.src&&(u.src=c.src);let d=new n.Nz({element:u,editor:s,node:o,getPos:a,onResize:(e,t)=>{u.style.width=`${e}px`,u.style.height=`${t}px`},onCommit:(e,t)=>{let r=a();void 0!==r&&this.editor.chain().setNodeSelection(r).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,r)=>e.type===o.type,options:{directions:e,min:{width:t,height:r},preserveAspectRatio:!0===i}}),f=d.dom;return f.style.visibility="hidden",f.style.pointerEvents="none",u.onload=()=>{f.style.visibility="",f.style.pointerEvents=""},d}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}
40,addInputRules(){return[(0,n.Ce)({find:i,type:this.type,getAttributes:e=>{let[,,t,r,n]=e;return{src:r,alt:t,title:n}}})]}})},27403:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"},27427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;let r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},27467:(e,t,r)=>{"use strict";function n(e,t){return!!(Array.isArray(e)&&Array.isArray(t))&&0===e.length&&0===t.length||e===t}function i(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}r.d(t,{O:()=>n,W:()=>i})},27570:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(12115),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=r(29428);let a=(0,n.createContext)({}),l=(0,n.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:l,className:s="",children:u,iconNode:c,...d},f)=>{let{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:y=""}=(0,n.useContext)(a)??{},v=l??m?24*Number(r??p)/Number(t??h):r??p;return(0,n.createElement)("svg",{ref:f,...i,width:t??h??i.width,height:t??h??i.height,stroke:e??g,strokeWidth:v,className:(0,o.z)("lucide",y,s),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]])})},27639:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e))},28326:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,_J:()=>o,j1:()=>a});let n=String.prototype.replace,i=/%20/g,o={RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},a="RFC1738",l="RFC3986"},28408:(e,t,r)=>{"use strict";r.d(t,{d:()=>D});var n=r(12115),i=r(43077),o=r(92191),a=r(16787),l=r(87384),s=r(32848),u=r(65372),c=r(44531),d=r(10365),f=r(64105),h=r(43527),p=r(23651),m=r(99498),g=r(10483),y=r(51531),v=["x1","y1","x2","y2","key"],b=["offset"],w=["xAxisId","yAxisId"],x=["xAxisId","yAxisId"];function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEac
40h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function O(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var C=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:i,y:o,width:a,height:l,ry:s}=e;return n.createElement("rect",{x:i,y:o,ry:s,width:a,height:l,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function E(e){var{option:t,lineItemProps:r}=e;if(n.isValidElement(t))i=n.cloneElement(t,r);else if("function"==typeof t)i=t(r);else{var i,o,{x1:a,y1:l,x2:s,y2:u,key:c}=r,d=O(r,v),f=null!=(o=(0,p.uZ)(d))?o:{},{offset:h}=f,m=O(f,b);i=n.createElement("line",k({},m,{x1:a,y1:l,x2:s,y2:u,fill:"none",key:c}))}return i}function T(e){var{x:t,width:r,horizontal:i=!0,horizontalPoints:o}=e;if(!i||!o||!o.length)return null;var{xAxisId:a,yAxisId:l}=e,s=O(e,w),u=o.map((e,o)=>{var a=S(S({},s),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(o),index:o});return n.createElement(E,{key:"line-".concat(o),option:i,lineItemProps:a})});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function M(e){var{y:t,height:r,vertical:i=!0,verticalPoints:o}=e;if(!i||!o||!o.length)return null;var{xAxisId:a,yAxisId:l}=e,s=O(e,x),u=o.map((e,o)=>{var a=S(S({},s),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(o),index:o});return n.createElement(E,{option:i,lineItemProps:a,key:"line-".concat(o)})});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function A(e){var{horizontalFill:t,fillOpacity:r,x:i,y:o,width:a,height:l,horizontalPoints:s,horizontal:u=!0}=e;if(!u||!t||!t.length||null==s)return null;var c=s.map(e=>Math.round(e+o-o)).sort((e,t)=>e-t);o!==c[0]&&c.unshift(0);var d=c.map((e,s)=>{var u=c[s+1],d=null==u?o+l-e:u-e;if(d<=0)return null;var f=s%t.length;return n.createElement("rect",{key:"react-".concat(s),y:e,x:i,height:d,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function N(e){var{vertical:t=!0,verticalFill:r,fillOpacity:i,x:o,y:a,width:l,height:s,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var c=u.map(e=>Math.round(e+o-o)).sort((e,t)=>e-t);o!==c[0]&&c.unshift(0);var d=c.map((e,t)=>{var u=c[t+1],d=null==u?o+l-e:u-e;if(d<=0)return null;var f=t%r.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:d,height:s,stroke:"none",fill:r[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var P=(e,t)=>{var{xAxis:r,width:n,height:i,offset:o}=e;return(0,a.PW)((0,l.f)(S(S(S({},s.F),r),{},{ticks:(0,a.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,t)},j=(e,t)=>{var{yAxis:r,width:n,height:i,offset:o}=e;return(0,a.PW)((0,l.f)(S(S(S({},s.F),r),{},{ticks:(0,a.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,t)},I={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:y.I.grid};function D(e){var t=(0,u.yi)(),r=(0,u.rY)(),a=(0,u.W7)(),l=S(S({},(0,h.e)(e,I)),{},{x:(0,o.Et)(e.x)?e.x:a.left,y:(0,o.Et)(e.y)?e.y:a.top,width:(0,o.Et)(e.width)?e.width:a.width,height:(0,o.Et)(e.height)?e.height:a.height}),{xAxisId:s,yAxisId:p,x:y,y:v,width:b,height:w,syncWithTicks:x,horizontalValues:_,verticalValues:O}=l,E=(0,f.r)(),D=(0,d.G)(e=>(0,c.ZB)(e,"xAxis",s,E)),$=(0,d.G)(e=>(0,c.ZB)(e,"yAxis",p,E));if(!(0,m.F)(b)||!(0,m.F)(w)||!(0,o.Et)(y)||!(0,o.Et)(v))return null;var R=l.verticalCoordinatesGenerator||P,L=l.horizontalCoordinatesGenerator||j,{horizontalPoints:z,verticalPoints:F}=l;if((!z||!z.length)&&"function"==typeof L){var B=_&&_.length,K=L({yAxis:$?S(S({},$),{},{ticks:B?_:$.ticks}):void 0,width:null!=t?t:b,height:null!=r?r:w,offset:a},!!B||x);(0,i.R)(Array.isArray(K),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof K,"]")),Array.isArray(K)&&(z=K)}if((!F||!F.length)&&"function"==typeof R){var U=O&&O.length,W=R({xAxis:D?S(S({},D),{},{ticks:U?O:D.ticks}):void 0,width:null!=t?t:b,height:null!=r?r:w,offset:a},!!U||x);(0,i.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof W,"]")),Array.isArray(W)&&(F=W)}return n.createElement(g.g,{zIndex:l.zIndex},n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(C,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),n.createElement(A,k({},l,{horizontalPoints:z})),n.createElement(N,k({},l,{verticalPoints:F})),n.createElement(T,k({},l,{offset:a,horizontalPoints:z,xAxis:D,yAxis:$})),n.createElement(M,k({},l,{offset:a,verticalPoints:F,xAxis:D,yAxis:$}))))}
40D.displayName="CartesianGrid"},29109:()=>{},29406:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});r(75887);function n({key:e,translations:t,vars:r}){let i=(({count:e,key:t,translations:r})=>{let n=t.split(":"),i="",o=n.reduce((t,r,o)=>{if("string"==typeof t)return t;"number"==typeof e&&(0===e&&`${r}_zero`in t?i="_zero":1===e&&`${r}_one`in t?i="_one":2===e&&`${r}_two`in t?i="_two":e>5&&`${r}_many`in t?i="_many":e>2&&e<=5&&`${r}_few`in t?i="_few":`${r}_other`in t&&(i="_other"));let a=r;if(o===n.length-1&&i&&(a=`${r}${i}`),t&&a in t)return t[a]},r);return o||console.log("key not found:",t),o||t})({count:"number"==typeof r?.count?r.count:void 0,key:e,translations:t});return r&&(i=(({translationString:e,vars:t})=>e.split(/(\{\{.*?\}\})/).map(e=>{if(!(e.startsWith("{{")&&e.endsWith("}}")))return e;{let r=t[e.substring(2,e.length-2).trim()];return null!=r?r:e}}).join(""))({translationString:i,vars:r})),i||(i=e),i}},29428:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});let n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},29482:(e,t,r)=>{"use strict";r.d(t,{JH:()=>a,f5:()=>s,v1:()=>u});var n=r(16787),i=r(92191),o=r(99498);function a(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if((0,o.H)(t)&&(0,o.H)(r))return!0}return!1}function l(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function s(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,l]=e;if((0,o.H)(i))r=i;else if("function"==typeof i)return;if((0,o.H)(l))n=l;else if("function"==typeof l)return;var s=[r,n];if(a(s))return s}}function u(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var o=e(t,r);if(a(o))return l(o,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var s,u,[c,d]=e;if("auto"===c)null!=t&&(s=Math.min(...t));else if((0,i.Et)(c))s=c;else if("function"==typeof c)try{null!=t&&(s=c(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof c&&n.IH.test(c)){var f=n.IH.exec(c);if(null==f||null==f[1]||null==t)s=void 0;else{var h=+f[1];s=t[0]-h}}else s=null==t?void 0:t[0];if("auto"===d)null!=t&&(u=Math.max(...t));else if((0,i.Et)(d))u=d;else if("function"==typeof d)try{null!=t&&(u=d(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof d&&n.qx.test(d)){var p=n.qx.exec(d);if(null==p||null==p[1]||null==t)u=void 0;else{var m=+p[1];u=t[1]+m}}else u=null==t?void 0:t[1];var g=[s,u];if(a(g))return null==t?g:l(g,t,r)}}}},29566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378);t.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`},code(e,t){let r,i,o,a,l,s,{gen:u,data:c,$data:d,schema:f,schemaCode:h,it:p}=e,{opts:m,errSchemaPath:g,schemaEnv:y,self:v}=p;m.validateFormats&&(d?(r=u.scopeValue("formats",{ref:v.formats,code:m.code.formats}),i=u.const("fDef",(0,n._)`${r}[${h}]`),o=u.let("fType"),a=u.let("format"),u.if((0,n._)`typeof ${i} == "object" && !(${i} instanceof RegExp)`,()=>u.assign(o,(0,n._)`${i}.type || "string"`).assign(a,(0,n._)`${i}.validate`),()=>u.assign(o,(0,n._)`"string"`).assign(a,i)),e.fail$data((0,n.or)(!1===m.strictSchema?n.nil:(0,n._)`${h} && !${a}`,(l=y.$async?(0,n._)`(${i}.async ? await ${a}(${c}) : ${a}(${c}))`:(0,n._)`${a}(${c})`,s=(0,n._)`(typeof ${a} == "function" ? ${l} : ${a}.test(${c}))`,(0,n._)`${a} && ${a} !== true && ${o} === ${t} && !${s}`)))):function(){var r;let i,o,a=v.formats[f];if(!a){if(!1===m.strictSchema)return v.logger.warn(l());throw Error(l());function l(){return`unknown format "${f}" ignored in schema at path "${g}"`}}if(!0===a)return;let[s,d,h]=(i=(r=a)instanceof RegExp?(0,n.regexpCode)(r):m.code.formats?(0,n._)`${m.code.formats}${(0,n.getProperty)(f)}`:void 0,o=u.scopeValue("formats",{key:f,ref:r,code:i}),"object"!=typeof r||r instanceof RegExp?["string",r,o]:[r.type||"string",r.validate,(0,n._)`${o}.validate`]);s===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!y.$async)throw Error("async format in sync schema");return(0,n._)`await ${h}(${c})`}return"function"==typeof d?(0,n._)`${h}(${c})`:(0,n._)`${h}.test(${c})`}())}())}}},29722:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},30125:(e,t,r)=>{"use strict";r.d(t,{M:()=>o,t:()=>i});var n=r(12115),i=(0,n.createContext)(null),o=()=>(0,n.useContext)(i)},30234:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},30451:(e,t,r)=>{"use strict";r.d(t,{A$:()=>i,HK:()=>a,Lp:()=>n,et:()=>o});var n=e=>e.layout.width,i=e=>e.layout.height,o=e=>e.layout.scale,a=e=>e.layout.margin},30789:(e,t,r)=>{"use strict";r(89043)},30894:(e,t,r)=>{"use strict";r.d(t,{Qx:()=>g,a6:()=>y,jM:()=>eu,ss:()=>es});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function l(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object,u=s.getPrototypeOf,c="constructor",d="prototype",f="configurable",h="enumerable",p="writable",m="value",g=e=>!!e&&!!e[a];function y(e){return!!e&&(w(e)||C(e)||!!e[o]||!!e[c]?.[o]||E(e)||T(e))}var v=s[d][c].toString(),b=new WeakMap;function w(e){if(!e||!M(e))return!1;let t=u(e);if(null===t||t===s[d])return!0;let r=s.hasOwnProperty.call(t,c)&&t[c];if(r===Object)return!0;
40if(!A(r))return!1;let n=b.get(r);return void 0===n&&(n=Function.toString.call(r),b.set(r,n)),n===v}function x(e,t,r=!0){0===_(e)?(r?Reflect.ownKeys(e):s.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function _(e){let t=e[a];return t?t.type_:C(e)?1:E(e)?2:3*!!T(e)}var S=(e,t,r=_(e))=>2===r?e.has(t):s[d].hasOwnProperty.call(e,t),k=(e,t,r=_(e))=>2===r?e.get(t):e[t],O=(e,t,r,n=_(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},C=Array.isArray,E=e=>e instanceof Map,T=e=>e instanceof Set,M=e=>"object"==typeof e,A=e=>"function"==typeof e,N=e=>e.modified_?e.copy_:e.base_;function P(e,t){if(E(e))return new Map(e);if(T(e))return new Set(e);if(C(e))return Array[d].slice.call(e);let r=w(e);if(!0!==t&&("class_only"!==t||r)){let t=u(e);if(null!==t&&r)return{...e};let n=s.create(t);return s.assign(n,e)}{let t=s.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o[p]&&(o[p]=!0,o[f]=!0),(o.get||o.set)&&(t[i]={[f]:!0,[p]:!0,[h]:o[h],[m]:e[i]})}return s.create(u(e),t)}}function j(e,t=!1){return D(e)||g(e)||!y(e)||(_(e)>1&&s.defineProperties(e,{set:I,add:I,clear:I,delete:I}),s.freeze(e),t&&x(e,(e,t)=>{j(t,!0)},!1)),e}var I={[m]:function(){l(2)}};function D(e){return!(null!==e&&M(e))||s.isFrozen(e)}var $="MapSet",R="Patches",L="ArrayMethods",z={};function F(e){let t=z[e];return t||l(0),t}var B=e=>!!z[e];function K(e,t){t&&(e.patchPlugin_=F(R),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function U(e){W(e),e.drafts_.forEach(q),e.drafts_=null}function W(e){e===n&&(n=e.parent_)}var H=e=>n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:B($)?F($):void 0,arrayMethodsPlugin_:B(L)?F(L):void 0};function q(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function J(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[a].modified_&&(U(t),l(4)),y(e)&&(e=V(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[a].base_,e,t)}else e=V(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&j(t,r)}(t,e,!0),U(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function V(e,t){if(D(t))return t;let r=t[a];if(!r)return ee(t,e.handledSet_,e);if(!Y(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);Q(r,e)}return r.copy_}function G(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Y=(e,t)=>e.scope_===t,Z=[];function X(e,t,r,n){let i=e.copy_||e.base_,o=e.type_;if(void 0!==n&&k(i,n,o)===t)return void O(i,n,r,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;x(i,(e,r)=>{if(g(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??Z)O(i,n,r,o)}function Q(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}G(e)}}function ee(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||g(e)||t.has(e)||!y(e)||D(e)||(t.add(e),x(e,(n,i)=>{if(g(i)){let t=i[a];Y(t,r)&&(O(e,n,N(t),e.type_),G(t))}else y(i)&&ee(i,t,r)})),e}var et={get(e,t){let r;if(t===a)return e;let n=e.scope_.arrayMethodsPlugin_,i=1===e.type_&&"string"==typeof t;if(i&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let o=e.copy_||e.base_;if(!S(o,t,e.type_)){var l;let r;return l=e,(r=ei(o,t))?m in r?r[m]:r.get?.call(l.draft_):void 0}let s=o[t];if(e.finalized_||!y(s)||i&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(r=+t)&&String(r)===t)return s;if(s===en(e.base_,t)){ea(e);let r=1===e.type_?+t:t,n=el(e.scope_,s,e,r);return e.copy_[r]=n}return s},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let n=ei(e.copy_||e.base_,t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=en(e.copy_||e.base_,t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||S(e.base_,t,e.type_)))return!0;ea(e),eo(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||
40(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(g(r)){let i=r[a];Y(i,n)&&i.callbacks_.push(function(){ea(e),X(e,r,N(i),t)})}else y(r)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(r)&&ee(r,n.handledSet_,n):k(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ee(k(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(ea(e),void 0!==en(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),eo(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[p]:!0,[f]:1!==e.type_||"length"!==t,[h]:n[h],[m]:r[t]}:n},defineProperty(){l(11)},getPrototypeOf:e=>u(e.base_),setPrototypeOf(){l(12)}},er={};for(let e in et){let t=et[e];er[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function en(e,t){let r=e[a];return(r?r.copy_||r.base_:e)[t]}function ei(e,t){if(!(t in e))return;let r=u(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=u(r)}}function eo(e){!e.modified_&&(e.modified_=!0,e.parent_&&eo(e.parent_))}function ea(e){e.copy_||(e.assigned_=new Map,e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function el(e,t,r,i){let[o,a]=E(t)?F($).proxyMap_(t,r):T(t)?F($).proxySet_(t,r):function(e,t){let r=C(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,a=et;r&&(o=[i],a=er);let{revoke:l,proxy:s}=Proxy.revocable(o,a);return i.draft_=s,i.revoke_=l,[s,i]}(t,r);if((r?.scope_??n).drafts_.push(o),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&void 0!==i)r.callbacks_.push(function(e){if(!a||!Y(a,e))return;e.mapSetPlugin_?.fixSetContents(a);let t=N(a);X(r,a.draft_??a,t,i),Q(a,e)});else a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)});return o}function es(e){return g(e)||l(10),function e(t){let r;if(!y(t)||D(t))return t;let n=t[a],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=P(t,!0);return x(r,(t,n)=>{O(r,t,e(n))},i),n&&(n.finalized_=!1),r}(e)}er.deleteProperty=function(e,t){return er.set.call(this,e,t,void 0)},er.set=function(e,t,r){return et.set.call(this,e[0],t,r,e[0])};var eu=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let n;if(A(e)&&!A(t)){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(A(t)||l(6),void 0===r||A(r)||l(7),y(e)){let i=H(this),o=el(i,e,void 0),a=!0;try{n=t(o),a=!1}finally{a?U(i):W(i)}return K(i,r),J(n,i)}if(e&&M(e))l(1);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&j(n,!0),r){let t=[],i=[];F(R).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return A(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){y(e)||l(8),g(e)&&(e=es(e));let t=H(this),r=el(t,e,void 0);return r[a].isManual_=!0,W(t),r}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||l(9);let{scope_:n}=r;return K(n,t),J(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=F(R).applyPatches_;return g(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce},30961:(e,t,r)=>{"use strict";r.d(t,{L:()=>V});
40var n=r(12115),i=r(65372),o=r(12614),a=r(64105),l=r(67816),s=r(10365),u=r(41106),c=r(99498),d=r(80997),f=r(59464);function h(e){var{zIndex:t,isPanorama:r}=e,i=(0,n.useRef)(null),o=(0,s.j)();return(0,n.useLayoutEffect)(()=>(i.current&&o((0,d.WO)({zIndex:t,element:i.current,isPanorama:r})),()=>{o((0,d.B8)({zIndex:t,isPanorama:r}))}),[o,t,r]),n.createElement("g",{tabIndex:-1,ref:i,className:"recharts-zIndex-layer_".concat(t)})}function p(e){var{children:t,isPanorama:r}=e,i=(0,s.G)(f.I);if(!i||0===i.length)return t;var o=i.filter(e=>e<0),a=i.filter(e=>e>0);return n.createElement(n.Fragment,null,o.map(e=>n.createElement(h,{key:e,zIndex:e,isPanorama:r})),t,a.map(e=>n.createElement(h,{key:e,zIndex:e,isPanorama:r})))}var m=["children"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var y={width:"100%",height:"100%",display:"block"},v=(0,n.forwardRef)((e,t)=>{var r,a,s=(0,i.yi)(),u=(0,i.rY)(),d=(0,o.$)();if(!(0,c.F)(s)||!(0,c.F)(u))return null;var{children:f,otherAttributes:h,title:p,desc:m}=e;return null!=h&&(r="number"==typeof h.tabIndex?h.tabIndex:d?0:void 0,a="string"==typeof h.role?h.role:d?"application":void 0),n.createElement(l.u,g({},h,{title:p,desc:m,role:a,tabIndex:r,width:s,height:u,style:y,ref:t}),f)}),b=e=>{var{children:t}=e,r=(0,s.G)(u.U);if(!r)return null;var{width:i,height:o,y:a,x:c}=r;return n.createElement(l.u,{width:i,height:o,x:c,y:a},t)},w=(0,n.forwardRef)((e,t)=>{var{children:r}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,m);return(0,a.r)()?n.createElement(b,null,n.createElement(p,{isPanorama:!0},r)):n.createElement(v,g({ref:t},i),n.createElement(p,{isPanorama:!1},r))}),x=r(29722),_=r(74624),S=r(95163),k=r(4284),O=r(7659),C=r(30451),E=r(22377),T=r(72481),M=r(65583),A=r(35885),N=r(30125),P=r(1728);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(){return(I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var D=()=>((0,k.l3)(),null);function $(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var R=(0,n.forwardRef)((e,t)=>{var r,o,a=(0,n.useRef)(null),[l,s]=(0,n.useState)({containerWidth:$(null==(r=e.style)?void 0:r.width),containerHeight:$(null==(o=e.style)?void 0:o.height)}),u=(0,n.useCallback)((e,t)=>{s(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),c=(0,n.useCallback)(e=>{if("function"==typeof t&&t(e),null!=a.current&&(a.current.disconnect(),a.current=null),null!=e&&"u">typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();u(r,n);var i=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:r,height:n}=t.contentRect;u(r,n)}});i.observe(e),a.current=i}},[t,u]);return(0,n.useEffect)(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[u]),n.createElement(n.Fragment,null,n.createElement(i.A3,{width:l.containerWidth,height:l.containerHeight}),n.createElement("div",I({ref:c},e)))}),L=(0,n.forwardRef)((e,t)=>{var{width:r,height:o}
40=e,[a,l]=(0,n.useState)({containerWidth:$(r),containerHeight:$(o)}),s=(0,n.useCallback)((e,t)=>{l(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),u=(0,n.useCallback)(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();s(r,n)}},[t,s]);return n.createElement(n.Fragment,null,n.createElement(i.A3,{width:a.containerWidth,height:a.containerHeight}),n.createElement("div",I({ref:u},e)))}),z=(0,n.forwardRef)((e,t)=>{var{width:r,height:o}=e;return n.createElement(n.Fragment,null,n.createElement(i.A3,{width:r,height:o}),n.createElement("div",I({ref:t},e)))}),F=(0,n.forwardRef)((e,t)=>{var{width:r,height:o}=e;return"string"==typeof r||"string"==typeof o?n.createElement(L,I({},e,{ref:t})):"number"==typeof r&&"number"==typeof o?n.createElement(z,I({},e,{width:r,height:o,ref:t})):n.createElement(n.Fragment,null,n.createElement(i.A3,{width:r,height:o}),n.createElement("div",I({ref:t},e)))}),B=(0,n.forwardRef)((e,t)=>{var{children:r,className:i,height:o,onClick:a,onContextMenu:l,onDoubleClick:u,onMouseDown:d,onMouseEnter:f,onMouseLeave:h,onMouseMove:p,onMouseUp:m,onTouchEnd:g,onTouchMove:y,onTouchStart:v,style:b,width:w,responsive:k,dispatchTouchEvents:I=!0}=e,$=(0,n.useRef)(null),L=(0,s.j)(),[z,B]=(0,n.useState)(null),[K,U]=(0,n.useState)(null),W=function(){var e=(0,s.j)(),[t,r]=(0,n.useState)(null),i=(0,s.G)(C.et);return(0,n.useEffect)(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;(0,c.H)(r)&&r!==i&&e((0,E.hF)(r))}},[t,e,i]),r}(),H=(0,P.w)(),q=(null==H?void 0:H.width)>0?H.width:w,J=(null==H?void 0:H.height)>0?H.height:o,V=(0,n.useCallback)(e=>{W(e),"function"==typeof t&&t(e),B(e),U(e),null!=e&&($.current=e)},[W,t,B,U]),G=(0,n.useCallback)(e=>{L((0,S.ky)(e)),L((0,T.y)({handler:a,reactEvent:e}))},[L,a]),Y=(0,n.useCallback)(e=>{L((0,S.dj)(e)),L((0,T.y)({handler:f,reactEvent:e}))},[L,f]),Z=(0,n.useCallback)(e=>{L((0,_.xS)()),L((0,T.y)({handler:h,reactEvent:e}))},[L,h]),X=(0,n.useCallback)(e=>{L((0,S.dj)(e)),L((0,T.y)({handler:p,reactEvent:e}))},[L,p]),Q=(0,n.useCallback)(()=>{L((0,O.Ru)())},[L]),ee=(0,n.useCallback)(()=>{L((0,O.Yw)())},[L]),et=(0,n.useCallback)(e=>{L((0,O.uZ)(e.key))},[L]),er=(0,n.useCallback)(e=>{L((0,T.y)({handler:l,reactEvent:e}))},[L,l]),en=(0,n.useCallback)(e=>{L((0,T.y)({handler:u,reactEvent:e}))},[L,u]),ei=(0,n.useCallback)(e=>{L((0,T.y)({handler:d,reactEvent:e}))},[L,d]),eo=(0,n.useCallback)(e=>{L((0,T.y)({handler:m,reactEvent:e}))},[L,m]),ea=(0,n.useCallback)(e=>{L((0,T.y)({handler:v,reactEvent:e}))},[L,v]),el=(0,n.useCallback)(e=>{I&&L((0,M.e)(e)),L((0,T.y)({handler:y,reactEvent:e}))},[L,I,y]),es=(0,n.useCallback)(e=>{L((0,T.y)({handler:g,reactEvent:e}))},[L,g]);return n.createElement(A.$.Provider,{value:z},n.createElement(N.t.Provider,{value:K},n.createElement(k?R:F,{width:null!=q?q:null==b?void 0:b.width,height:null!=J?J:null==b?void 0:b.height,className:(0,x.$)("recharts-wrapper",i),style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({position:"relative",cursor:"default",width:q,height:J},b),onClick:G,onContextMenu:er,onDoubleClick:en,onFocus:Q,onBlur:ee,onKeyDown:et,onMouseDown:ei,onMouseEnter:Y,onMouseLeave:Z,onMouseMove:X,onMouseUp:eo,onTouchEnd:es,onTouchMove:el,onTouchStart:ea,ref:V},n.createElement(D,null),r)))}),K=r(92191),U=r(57747),W=(0,n.createContext)(void 0),H=e=>{var{children:t}
40=e,[r]=(0,n.useState)("".concat((0,K.NF)("recharts"),"-clip")),i=(0,U.oM)();if(null==i)return null;var{x:o,y:a,width:l,height:s}=i;return n.createElement(W.Provider,{value:r},n.createElement("defs",null,n.createElement("clipPath",{id:r},n.createElement("rect",{x:o,y:a,height:s,width:l}))),t)},q=r(23651),J=["width","height","responsive","children","className","style","compact","title","desc"],V=(0,n.forwardRef)((e,t)=>{var{width:r,height:o,responsive:a,children:l,className:s,style:u,compact:c,title:d,desc:f}=e,h=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,J),p=(0,q.uZ)(h);return c?n.createElement(n.Fragment,null,n.createElement(i.A3,{width:r,height:o}),n.createElement(w,{otherAttributes:p,title:d,desc:f},l)):n.createElement(B,{className:s,style:u,width:r,height:o,responsive:null!=a&&a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},n.createElement(w,{otherAttributes:p,title:d,desc:f,ref:t},n.createElement(H,null,l)))})},31320:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]])},32230:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var n=r(12115),i=r(64105),o=r(22377),a=r(10365),l=r(46574),s=(0,n.memo)(function(e){var{layout:t,margin:r}=e,l=(0,a.j)(),s=(0,i.r)();return(0,n.useEffect)(()=>{s||(l((0,o.JK)(t)),l((0,o.B_)(r)))},[l,s,t,r]),null},l.P)},32539:(e,t,r)=>{"use strict";r.d(t,{W:()=>O});var n=r(12115),i=r(29722),o=r(32848),a=r(10365),l=r(26028),s=r(44531),u=r(2242),c=r(64105),d=r(43527),f=r(93189),h=r(65372),p=r(87485),m=["type"],g=["dangerouslySetInnerHTML","ticks","scale"],y=["id","scale"];function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _(e){var t=(0,a.j)(),r=(0,n.useRef)(null),i=(0,h.kz)(),{type:o}=e,s=x(e,m),u=(0,p.a)(i,"xAxis",o),c=(0,n.useMemo)(()=>{if(null!=u)return w(w({},s),{},{type:u})},[s,u]);return(0,n.useLayoutEffect)(()=>{null!=c&&(null===r.current?t((0,l.Vi)(c)):r.current!==c&&t((0,l.m2)({prev:r.current,next:c})),r.current=c)},[c,t]),(0,n.useLayoutEffect)(()=>()=>{r.current&&(t((0,l.MC)(r.current)),r.current=null)},[t]),null}var S=e=>{var{xAxisId:t,className:r}=e,l=(0,a.G)(u.c2),d=(0,c.r)(),f="xAxis",h=(0,a.G)(e=>(0,s.Zi)(e,f,t,d)),p=(0,a.G)(e=>(0,s.Lw)(e,t)),m=(0,a.G)(e=>(0,s.L$)(e,t)),b=(0,a.G)(e=>(0,s.y7)(e,t));if(null==p||null==m||null==b)return null;var{dangerouslySetInnerHTML:w,ticks:_,scale:S}=e,k=x(e,g),{id:O,scale:C}=b,E=x(b,y);return n.createElement(o.u,v({}
40,k,E,{x:m.x,y:m.y,width:p.width,height:p.height,className:(0,i.$)("recharts-".concat(f," ").concat(f),r),viewBox:l,ticks:h,axisType:f,axisId:t}))},k={allowDataOverflow:s.PU.allowDataOverflow,allowDecimals:s.PU.allowDecimals,allowDuplicatedCategory:s.PU.allowDuplicatedCategory,angle:s.PU.angle,axisLine:o.F.axisLine,height:s.PU.height,hide:!1,includeHidden:s.PU.includeHidden,interval:s.PU.interval,label:!1,minTickGap:s.PU.minTickGap,mirror:s.PU.mirror,orientation:s.PU.orientation,padding:s.PU.padding,reversed:s.PU.reversed,scale:s.PU.scale,tick:s.PU.tick,tickCount:s.PU.tickCount,tickLine:o.F.tickLine,tickSize:o.F.tickSize,type:s.PU.type,niceTicks:s.PU.niceTicks,xAxisId:0},O=n.memo(e=>{var t=(0,d.e)(e,k);return n.createElement(n.Fragment,null,n.createElement(_,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),n.createElement(S,t))},f.Q);O.displayName="XAxis"},32848:(e,t,r)=>{"use strict";r.d(t,{u:()=>A,F:()=>k});var n=r(12115),i=r(57258),o=r.n(i),a=r(29722),l=r(11058),s=r(74254),u=r(85663),c=r(92191),d=r(18387),f=r(87384),h=r(23651),p=r(43527),m=r(10483),g=r(51531),y=r(43665),v=r(10254),b=r(10365),w=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k={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",zIndex:g.I.axis};function O(e){var{x:t,y:r,width:i,height:l,orientation:s,mirror:u,axisLine:c,otherSvgProps:d}=e;if(!c)return null;var f=S(S(S({},d),(0,h.uZ)(c)),{},{fill:"none"});if("top"===s||"bottom"===s){var p=+("top"===s&&!u||"bottom"===s&&u);f=S(S({},f),{},{x1:t,y1:r+p*l,x2:t+i,y2:r+p*l})}else{var m=+("left"===s&&!u||"right"===s&&u);f=S(S({},f),{},{x1:t+m*i,y1:r,x2:t+m*i,y2:r+l})}return n.createElement("line",x({},f,{className:(0,a.$)("recharts-cartesian-axis-line",o()(c,"className"))}))}function C(e){var t,{option:r,tickProps:i,value:o}=e,l=(0,a.$)(i.className,"recharts-cartesian-axis-tick-value");if(n.isValidElement(r))t=n.cloneElement(r,S(S({},i),{},{className:l}));else if("function"==typeof r)t=r(S(S({},i),{},{className:l}));else{var u="recharts-cartesian-axis-tick-value";"boolean"!=typeof r&&(u=(0,a.$)(u,(0,y.I)(r))),t=n.createElement(s.EY,x({},i,{className:u}),o)}return t}function E(e){var{ticks:t,axisType:r,axisId:i}=e,o=(0,b.j)();return(0,n.useEffect)(()=>{if(null==i||null==r)return c.lQ;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return o((0,v.y0)({ticks:e,axisId:i,axisType:r})),()=>{o((0,v.Sr)({axisId:i,axisType:r}))}},[o,t,i,r]),null}var T=(0,n.forwardRef)((e,t)=>{var{ticks:r=[],tick:i,tickLine:u,stroke:p,tickFormatter:y,unit:v,padding:b,tickTextProps:w,orientation:_,mirror:k,x:O,y:T,width:M,height:A,tickSize:N,tickMargin:P,fontSize:j,letterSpacing:I,getTicksConfig:D,events:$,axisType:R,axisId:L}=e,z=(0,f.f)(S(S({},D),{},{ticks:r}),j,I),F=(0,h.uZ)(D),B=(0,h.ic)(i),K=(0,s.fU)(F.textAnchor)?F.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(_,k),U=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(_,k),W={};"object"==typeof u&&(W=u);var H=S(S({},F),{},{fill:"none"},W),q=z.map(e=>S({entry:e},function(e,t,r,n,i,o,a,l,s){var u,d,f,h,p,m,g=l?-1:1,y=e.tickSize||a,v=(0,c.Et)(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=d=e.coordinate,m=(f=(h=r+!l*i)-g*y)-g*s,p=v;break;case"left":f=h=e.coordinate,p=(u=(d=t+!l*n)-g*y)-g*s,m=v;break;case"right":f=h=e.coordinate,p=(u=(d=t+l*n)+g*y)+g*s,m=v;break;default:u=d=e.coordinate,m=(f=(h=r+l*i)+g*y)+g*s,p=v}return{line:{x1:u,y1:f,x2:d,y2:h},tick:{x:p,y:m}}}(e,O,T,M,A,_,N,k,P))),J=q.map(e=>{var{entry:t,line:r}=e;return n.createElement(l.W,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},u&&n.createElement("line",x({},H,r,{className:(0,a.$)("recharts-cartesian-axis-tick-line",o()(u,"className"))})))}),V=q.map((e,t)=>{var r,o,{entry:a,tick:s}=e,u=S(S(S(S({verticalAnchor:U},F),{},{textAnchor:K,stroke:"none",fill:p},s),{},{index:t,payload:a,visibleTicksCount:z.length,tickFormatter:y,padding:b},w),{},{angle:null!=(r=null!=(o=null==w?void 0:w.angle)?o:F.angle)?r:0}),c=S(S({},u),B);return n.createElement(l.W,x({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(a.value,"-").concat(a.coordinate,"-").concat(a.tickCoord)},(0,d.XC)($,a,t)),i&&n.createElement(C,{option:i,tickProps:c,value:"".concat("function"==typeof y?y(a.value,t):a.value).concat(v||"")}))});return n.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(R,"-ticks")},n.createElement(E,{ticks:z,axisId:L,axisType:R}),V.length>0&&n.createElement(m.g,{zIndex:g.I.label},n.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(R,"-tick-labels"),ref:t},V)),J.length>0&&n.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(R,"-tick-lines")},J))}),M=(0,n.forwardRef)((e,t)=>
40{var{axisLine:r,width:i,height:o,className:s,hide:c,ticks:d,axisType:f,axisId:p}=e,g=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,w),[y,v]=(0,n.useState)(""),[b,x]=(0,n.useState)(""),_=(0,n.useRef)(null);(0,n.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}});var l=r?r.getBoundingClientRect().width:0;return Math.round(a+(i+o)+l+(r?n:0))}return 0})({ticks:_.current,label:null==(t=e.labelRef)?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var S=(0,n.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");_.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,o=n.letterSpacing;(i!==y||o!==b)&&(v(i),x(o))}}},[y,b]);return c||null!=i&&i<=0||null!=o&&o<=0?null:n.createElement(m.g,{zIndex:e.zIndex},n.createElement(l.W,{className:(0,a.$)("recharts-cartesian-axis",s)},n.createElement(O,{x:e.x,y:e.y,width:i,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:(0,h.uZ)(e)}),n.createElement(T,{ref:S,axisType:f,events:g,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:b,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:d,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:p}),n.createElement(u.zJ,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},n.createElement(u._I,{label:e.label,labelRef:e.labelRef}),e.children)))}),A=n.forwardRef((e,t)=>{var r=(0,p.e)(e,k);return n.createElement(M,x({},r,{ref:t}))});A.displayName="CartesianAxis"},32951:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}},33024:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},33120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;let n=r(83732),i=r(68054),o=r(55177),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!function e(t){for(let r in t){if(l.has(r))return!0;let n=t[r];if(Array.isArray(n)&&n.some(e)||"object"==typeof n&&e(n))return!0}return!1}(e):!!t&&function e(t){let r=0;for(let i in t)if("$ref"===i||(r++,!a.has(i)&&("object"==typeof t[i]&&(0,n.eachItem)(t[i],t=>r+=e(t)),r===1/0)))return 1/0;return r}(e)<=t)};let l=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e,t="",r){!1!==r&&(t=d(t));let n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=s,t._getFullPath=u;let c=/#\/?$/;function d(e){return e?e.replace(c,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};let f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:r,uriResolver:n}=this.opts,a=d(e[r]||t),l={"":a},u=s(n,a,!1),c={},h=new Set;return o(e,{allKeys:!0},(e,t,n,i)=>{if(void 0===i)return;let o=u+t,a=l[i];function s(t){let r=this.opts.uriResolver.resolve;if(t=d(a?r(a,t):t),h.has(t))throw m(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?p(e,n.schema,t):t!==d(o)&&("#"===t[0]?(p(e,c[t],t),c[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!f.test(e))throw Error(`invalid anchor "${e}"`);s.call(this,`#${e}`)}}"string"==typeof e[r]&&(a=s.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),l[t]=a}),c;function p(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return Error(`reference "${e}" resolves to more than one schema`)}}},33173:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(26719),i=r(63337);function o({folderFieldName:e,isUpload:t,relationTo:r,useAsTitle:a,value:l}){let s={id:l?.id,_folderOrDocumentTitle:String(a&&l?.[a]||l.id),createdAt:l?.createdAt,folderID:l?.[e],folderType:l?.folderType||[],updatedAt:l?.updatedAt};return t&&(s.filename=l.filename,s.mimeType=l.mimeType,s.url=l.thumbnailURL||((0,n.w)(l.mimeType)?(0,i.k)({sizes:l.sizes,targetSizeMax:520,targetSizeMin:300,url:l.url,width:l.width}):void 0)),{itemKey:`${r}-${l.id}`,relationTo:r,value:s}}},33210:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
40],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},33313:(e,t,r)=>{"use strict";r.d(t,{dc:()=>l,ff:()=>a,g0:()=>s});var n=r(2842),i=r(83643),o=r.n(i),a=e=>e.legend.settings,l=e=>e.legend.size,s=(0,n.Mz)([e=>e.legend.payload,a],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?o()(n,r):n})},33646:(e,t,r)=>{"use strict";r.d(t,{TK:()=>l});var n=r(12115),i=r(10301),o=r(10365),a=r(64105),l=e=>{var{chartData:t}=e,r=(0,o.j)(),l=(0,a.r)();return(0,n.useEffect)(()=>l?()=>{}:(r((0,i.hq)(t)),()=>{r((0,i.hq)(void 0))}),[t,r,l]),null}},33966:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{dl:()=>o,mP:()=>a,s8:()=>l});var o=(e,t,r)=>e.map(e=>"".concat(e.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase()))," ").concat(t,"ms ").concat(r)).join(","),a=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),l=(e,t)=>Object.keys(t).reduce((r,n)=>i(i({},r),{},{[n]:e(n,t[n])}),{})},34220:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},34362:(e,t,r)=>{e.exports=r(51205).uniqBy},35110:()=>{},35120:(e,t,r)=>{"use strict";r.d(t,{ck:()=>G,eS:()=>$,Yq:()=>V,wN:()=>R,FR:()=>D,zG:()=>L}),r(95155),r(12115);var n,i=r(43283),o=r(91993),a=r(24395),l=r(46776),s=r(92477);function u(e){let t=(0,s.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}var c=r(70061),d=r(77989);function f(e,t){let r=(0,s.a)(e,t?.in);return r.setHours(0,0,0,0),r}var h=r(25037);function p(e,t){return(0,h.k)(e,{...t,weekStartsOn:1})}function m(e,t){let r=(0,s.a)(e,t?.in),n=r.getFullYear(),i=(0,o.w)(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let a=p(i),l=(0,o.w)(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);let u=p(l);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function g(e,t){let r=(0,s.a)(e,t?.in),n=r.getFullYear(),i=(0,l.q)(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=(0,o.w)(t?.in||e,0);u.setFullYear(n+1,0,a),u.setHours(0,0,0,0);let c=(0,h.k)(u,t),d=(0,o.w)(t?.in||e,0);d.setFullYear(n,0,a),d.setHours(0,0,0,0);let f=(0,h.k)(d,t);return+r>=+c?n+1:+r>=+f?n:n-1}function y(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let v={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return y("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):y(r+1,2)},d:(e,t)=>y(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>y(e.getHours()%12||12,t.length),H:(e,t)=>y(e.getHours(),t.length),m:(e,t)=>
40y(e.getMinutes(),t.length),s:(e,t)=>y(e.getSeconds(),t.length),S(e,t){let r=t.length;return y(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},b={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return v.y(e,t)},Y:function(e,t,r,n){let i=g(e,n),o=i>0?i:1-i;return"YY"===t?y(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):y(o,t.length)},R:function(e,t){return y(m(e),t.length)},u:function(e,t){return y(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return y(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return y(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return y(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i,a,u,c,f,p=(i=(0,s.a)(e,n?.in),Math.round(((0,h.k)(i,n)-(a=(0,l.q)(),u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=g(i,n),(f=(0,o.w)(n?.in||i,0)).setFullYear(c,0,u),f.setHours(0,0,0,0),(0,h.k)(f,n)))/d.my)+1);return"wo"===t?r.ordinalNumber(p,{unit:"week"}):y(p,t.length)},I:function(e,t,r){let n,i,a,l=Math.round((p(n=(0,s.a)(e,void 0))-(i=m(n,void 0),(a=(0,o.w)(n,0)).setFullYear(i,0,4),a.setHours(0,0,0,0),p(a)))/d.my)+1;return"Io"===t?r.ordinalNumber(l,{unit:"week"}):y(l,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):v.d(e,t)},D:function(e,t,r){let n,i,o=function(e,t){let[r,n]=(0,c.x)(void 0,e,t),i=f(r),o=f(n);return Math.round((i-u(i)-(o-u(o)))/d.w4)}(n=(0,s.a)(e,void 0),((i=(0,s.a)(n,void 0)).setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i))+1;return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):y(o,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return y(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return y(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return y(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?"noon":0===i?"midnight":i/12>
40=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return v.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):v.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):v.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):v.s(e,t)},S:function(e,t){return v.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return x(n);case"XXXX":case"XX":return _(n);default:return _(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return x(n);case"xxxx":case"xx":return _(n);default:return _(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(n,":");default:return"GMT"+_(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(n,":");default:return"GMT"+_(n,":")}},t:function(e,t,r){return y(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return y(+e,t.length)}};function w(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+y(o,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+y(Math.abs(e)/60,2):_(e,t)}function _(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+y(Math.trunc(r/60),2)+t+y(r%60,2)}let S=(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"})}},k=(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"})}},O={p:k,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return S(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",S(i,t)).replace("{{time}}",k(o,t))}},C=/^D+$/,E=/^Y+$/,T=["D","DD","YY","YYYY"],M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,P=/''/g,j=/[a-zA-Z]/;function I(e,t,r){let n=(0,l.q)(),i=r?.locale??n.locale??a.enUS,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,u=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,c=(0,s.a)(e,r?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,s.a)(c)))throw RangeError("Invalid time value");let d=t.match(A).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,O[t])(e,i.formatLong):e}).join("").match(M).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var r;let t;return{isToken:!1,value:(t=(r=e).match(N))?t[1].replace(P,"'"):r}}if(b[t])return{isToken:!0,value:e};if(t.match(j))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(d=i.localize.preprocessor(c,d));let f={firstWeekContainsDate:o,weekStartsOn:u,locale:i};return d.map(n=>{if(!n.isToken)return n.value;let o=n.value;return(!r?.useAdditionalWeekYearTokens&&E.test(o)||!r?.useAdditionalDayOfYearTokens&&C.test(o))&&function(e,t,r){var n,i,o;let a,l=(n=e,i=t,o=r,a="Y"===n[0]?"years":"days of the month",`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${i}\`) for formatting ${a} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(l),T.includes(e))throw RangeError(l)}(o,t,String(e)),(0,b[o[0]])(c,o,i.localize,f)}).join("")}var D=e=>({...e?.admin?.style||{},...e?.admin?.width?{"--field-width":e.admin.width}:{flex:"1 1 auto"},...e?.admin?.style?.flex?{flex:e.admin.style.flex}:{}});function $(e){if(e)try{e.abort()}catch{}}function R(e){let t=new AbortController;if(e.current)try{e.current.abort()}catch{}return e.current=t,t}var L={delete:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"delete"})},get:(e,t={headers:{}})=>{let r="";return t.params&&(r=i.A(t.params,{addQueryPrefix:!0})),fetch(`${e}${r}`,{credentials:"include",...t})},patch:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"PATCH"})},post:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(`${e}`,{...t,credentials:"include",headers:{...r},method:"post"})},put:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"put"})}},z={},F={};function B(e,t){try{let r=(z[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in F?F[r]:U(r,r.split(":"))}catch{if(e in F)return F[e];let t=e?.match(K);return t?U(e,t.slice(1)):NaN}}var K=/([+-]\d\d):?(\d\d)?/;function U(e,t){let r=+t[0],n=+(t[1]||0);return F[e]=r>0?60*r+n:60*r-n}var W=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(B(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),J(this,NaN),q(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new e(...r,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){return-B(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),q(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},H=/^(get|set)(?!UTC)/;function q(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function J(e){let t=B(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let n=-new Date(+e).getTimezoneOffset(),i=n- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let a=n-t;a&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a);
40let l=B(e.timeZone,e),s=-new Date(+e).getTimezoneOffset()-l-a;if(l!==t&&s){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let t=l-B(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!H.test(e))return;let t=e.replace(H,"$1UTC");W.prototype[t]&&(e.startsWith("get")?W.prototype[e]=function(){return this.internal[t]()}:(W.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),J(e),+this},W.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),q(this),+this}))});var V=({date:e,i18n:t,pattern:r,timezone:n})=>{let i=new W(new Date(e));if(n){var a,l;let e,s=W.tz(n),u=(a=i.withTimeZone(n),(e="function"==typeof(l=s)&&l.prototype?.constructor===l?new s(0):(0,o.w)(s,0)).setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),e.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),e);return t.dateFNS?I(u,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`}return t.dateFNS?I(i,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`},G=((n={}).collection="collections",n.global="globals",n)},35498:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.globalThis="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof r.g&&r.g||function(){return this}()||Function("return this")()},35511:(e,t,r)=>{"use strict";r.d(t,{aG:()=>n});let n=["ar","fa","he"]},35679:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},35756:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},35885:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,X:()=>o});var n=r(12115),i=(0,n.createContext)(null),o=()=>(0,n.useContext)(i)},36544:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(92191),i=(e,t)=>{var r,i=Number(t);if(!(0,n.M8)(i)&&null!=t)return i>=0?null==e||null==(r=e[i])?void 0:r.value:void 0}},36629:(e,t,r)=>{"use strict";r.d(t,{a:()=>l});var n=r(36997),i=r(12115);let o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function a(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function l(){return function(e){let[t]=(0,n.DF)(),r=(0,i.useMemo)(()=>e(t),[t,e]),[a,l]=(0,i.useState)(()=>r.initialValueFn()),s=(0,i.useRef)(a);return o(()=>{let{initialValueFn:e,subscribe:t}=r,n=e();return s.current!==n&&(s.current=n,l(n)),t(e=>{s.current=e,l(e)})},[r,e]),a}(a)}},36793:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s,l:()=>l});var n=r(12115),i=r(10365),o=r(44531),a=r(57747);function l(e,t){var r,n,a=(0,i.G)(t=>(0,o.Rl)(t,e)),l=(0,i.G)(e=>(0,o.sf)(e,t)),s=null!=(r=null==a?void 0:a.allowDataOverflow)?r:o.PU.allowDataOverflow,u=null!=(n=null==l?void 0:l.allowDataOverflow)?n:o.cd.allowDataOverflow;return{needClip:s||u,needClipX:s,needClipY:u}}function s(e){var{xAxisId:t,yAxisId:r,clipPathId:i}=e,o=(0,a.oM)(),{needClipX:s,needClipY:u,needClip:c}=l(t,r);if(!c||!o)return null;var{x:d,y:f,width:h,height:p}=o;return n.createElement("clipPath",{id:"clipPath-".concat(i)},n.createElement("rect",{x:s?d:d-h/2,y:u?f:f-p/2,width:s?h:2*h,height:u?p:2*p}))}},36829:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(97697),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!!("number"==typeof e||"boolean"==typeof e||null==e||n.isSymbol(e))||"string"==typeof e&&(o.test(e)||!i.test(e))||null!=t&&Object.hasOwn(t,e))}},36997:(e,t,r)=>{"use strict";r.d(t,{DF:()=>a,Gu:()=>i,Mx:()=>o});var n=r(12115);let i=(0,n.createContext)(null);function o(e,t){let r=null;return null!=e&&(r=e[1]),{getTheme:function(){return null!=t?t:null!=r?r.getTheme():null}}}function a(){let e=(0,n.useContext)(i);return null==e&&function(...e){let t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let t of(r.append("code",8),e))r.append("v",t);throw t.search=r.toString(),Error(`Minified Lexical error #8; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(),e}},37214:(e,t,r)=>{"use strict";r.d(t,{Ip:()=>U});var n=r(12115);function i(){}function o(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function a(e){this._context=e}function l(e){this._context=e}function s(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:o(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class u{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function c(e){this._context=e}function d(e){this._context=e}function f(e){return new d(e)}c.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function h(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function p(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function m(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-n)/3;e._context.bezierCurveTo(n+l,i+l*t,o-l,a-l*r,o,a)}function g(e){this._context=e}function y(e){this._context=new v(e)}function v(e){this._context=e}function b(e){this._context=e}function w(e){var t,r,n=e.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function x(e,t){this._context=e,this._t=t}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:m(this,this._t0,p(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,m(this,p(this,r=h(this,e,t)),r);break;default:m(this,this._t0,r=h(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(y.prototype=Object.create(g.prototype)).point=function(e,t){g.prototype.point.call(this,t,e)},v.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=w(e),i=w(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var _=r(62517),S=r(74592),k=r(85802);function O(e){return e[0]}function C(e){return e[1]}function E(e,t){var r=(0,S.A)(!0),n=null,i=f,o=null,a=(0,k.i)(l);function l(l){var s,u,c,d=(l=(0,_.A)(l)).length,f=!1;for(null==n&&(o=i(c=a())),s=0;s<=d;++s)!(s<d&&r(u=l[s],s,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,l),+t(u,s,l));if(c)return o=null,c+""||null}return e="function"==typeof e?e:void 0===e?O:(0,S.A)(e),t="function"==typeof t?t:void 0===t?C:(0,S.A)(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,S.A)(!!e),l):r},l.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),l):i},l.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),l):n},l}function T(e,t,r){var n=null,i=(0,S.A)(!0),o=null,a=f,l=null,s=(0,k.i)(u);function u(u){var c,d,f,h,p,m=(u=(0,_.A)(u)).length,g=!1,y=Array(m),v=Array(m);for(null==o&&(l=a(p=s())),c=0;c<=m;++c){if(!(c<m&&i(h=u[c],c,u))===g)if(g=!g)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=c-1;f>=d;--f)l.point(y[f],v[f]);l.lineEnd(),l.areaEnd()}g&&(y[c]=+e(h,c,u),v[c]=+t(h,c,u),l.point(n?+n(h,c,u):y[c],r?+r(h,c,u):v[c]))}if(p)return l=null,p+""||null}function c(){return E().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?O:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),r="function"==typeof r?r:void 0===r?C:(0,S.A)(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:(0,S.A)(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(l=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=l=null:l=a(o=e),u):o},u}var M=r(29722),A=r(18387),N=r(92191),P=r(99498),j=r(23651),I=r(65372);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
40).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var L={curveBasisClosed:function(e){return new l(e)},curveBasisOpen:function(e){return new s(e)},curveBasis:function(e){return new a(e)},curveBumpX:function(e){return new u(e,!0)},curveBumpY:function(e){return new u(e,!1)},curveLinearClosed:function(e){return new c(e)},curveLinear:f,curveMonotoneX:function(e){return new g(e)},curveMonotoneY:function(e){return new y(e)},curveNatural:function(e){return new b(e)},curveStep:function(e){return new x(e,.5)},curveStepAfter:function(e){return new x(e,1)},curveStepBefore:function(e){return new x(e,0)}},z=e=>(0,P.H)(e.x)&&(0,P.H)(e.y),F=e=>null!=e.base&&z(e.base)&&z(e),B=e=>e.x,K=e=>e.y,U=e=>{var{className:t,points:r,path:i,pathRef:o}=e,a=(0,I.WX)();if((!r||!r.length)&&!i)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=r&&r.length?(e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:o=!1}=e,a=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat((0,N.Zb)(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=L["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return L[r]||f})(t,i),l=o?r.filter(z):r;if(Array.isArray(n)){var s=r.map((e,t)=>R(R({},e),{},{base:n[t]}));return("vertical"===i?T().y(K).x1(B).x0(e=>e.base.x):T().x(B).y1(K).y0(e=>e.base.y)).defined(F).curve(a)(o?s.filter(F):s)}return("vertical"===i&&(0,N.Et)(n)?T().y(K).x1(B).x0(n):(0,N.Et)(n)?T().x(B).y1(K).y0(n):E().x(B).y(K)).defined(z).curve(a)(l)})(l):i;return n.createElement("path",D({},(0,j.uZ)(e),(0,A._U)(e),{className:(0,M.$)("recharts-curve",t),d:null===s?void 0:s,ref:o}))}},37691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(76147),i=r(69367),o=r(4429),a=r(98607),l=r(45518);t.default=[n.default,i.default,(0,o.default)(),a.default,l.metadataVocabulary,l.contentVocabulary]},37942:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,{signal:r,edges:n}={}){let i,o=null,a=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),s=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)},u=null,c=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,l&&s(),d()},t)},d=()=>{null!==u&&(clearTimeout(u),u=null),i=void 0,o=null},f=function(...e){if(r?.aborted)return;i=this,o=e;let t=null==u;c(),a&&t&&s()};return f.schedule=c,f.cancel=d,f.flush=()=>{s()},r?.addEventListener("abort",d,{once:!0}),f}},38695:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,U:()=>o});var n=r(49967),i=r(53310);function o(e){let t=window.location.origin,r=r=>{if(r.origin!==t)return;let n=e.getRootElement();if(document.activeElement!==n)return;let o=r.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let n=t.payload;if(n&&"makeChanges"===n.functionId){let t=n.args;if(t){let[n,o,a,l,s]=t;e.update(()=>{let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.anchor,u=t.getNode(),c=0,d=0;if((0,i.kFe)(u)&&n>=0&&o>=0&&(c=n,d=n+o,e.setTextNodeRange(u,c,u,d)),c===d&&""===a||(e.insertRawText(a),u=t.getNode()),(0,i.kFe)(u)){c=l,d=l+s;let t=u.getTextContentSize();c=c>t?t:c,d=d>t?t:d,e.setTextNodeRange(u,c,u,d)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}let a=(0,i.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,i.lVE)({disabled:"u"<typeof window}),name:"@lexical/dragon",register:(e,t,r)=>(0,n.QZ)(()=>r.getOutput().disabled.value?void 0:o(e))})},38786:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(5576),i=r(71542);t.toPath=function(e){if(Array.isArray(e))return e.map(i.toKey);if("symbol"==typeof e)return[e];e=n.toString(e);let t=[],r=e.length;if(0===r)return t;let o=0,a="",l="",s=!1;for(46===e.charCodeAt(0)&&(t.push(""),o++);o<r;){let n=e[o];l?"\\"===n&&o+1<r?a+=e[++o]:n===l?l="":a+=n:s?'"'===n||"'"===n?l=n:"]"===n?(s=!1,t.push(a),a=""):a+=n:"["===n?(s=!0,a&&(t.push(a),a="")):"."===n?a&&(t.push(a),a=""):a+=n,o++}return a&&t.push(a),t}},39168:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;let n=r(4378),i=r(83732);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:a,errSchemaPath:l,topSchemaRef:s}){if(void 0!==t&&void 0!==o)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){let o=e.schema[t];return void 0===r?{schema:o,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===a||void 0===l||void 0===s)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:s,errSchemaPath:l}}throw Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:a,dataTypes:l,propertyName:s}){if(void 0!==a&&void 0!==r)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(void 0!==r){let{errorPath:a,dataPathArr:l,opts:s}=t;c(u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=(0,n.str)`${a}${(0,i.getErrorPath)(r,o,s.jsPropertySyntax)}`,e.parentDataProperty=(0,n._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==a&&(c(a instanceof n.Name?a:u.let("data",a,!0)),void 0!==s&&(e.propertyName=s)),l&&(e.dataTypes=l)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},39339:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}},39768:(e,t,r)=>{"use strict";r.d(t,{$$:()=>p,Es:()=>f,KG:()=>g,Ks:()=>C,Ll:()=>a,Re:()=>S,Sw:()=>i,TW:()=>d,WQ:()=>_,YG:()=>w,YN:()=>m,ZC:()=>v,_q:()=>h,ag:()=>T,e_:()=>O,kx:()=>k,l6:()=>o,lk:()=>y,sb:()=>u,wz:()=>s,xZ:()=>c,zk:()=>l});var n=r(12115);let i="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function l(e){var t,r;return e?o(e)?e:a(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function s(e){let{Document:t}=l(e);return e instanceof t}function u(e){return!o(e)&&e instanceof l(e).HTMLElement}function c(e){return e instanceof l(e).SVGElement}function d(e){return e?o(e)?e.document:a(e)?s(e)?e:u(e)||c(e)?e.ownerDocument:document:document:document}let f=i?n.useLayoutEffect:n.useEffect;function h(e){let t=(0,n.useRef)(e);return f(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function p(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return f(()=>{r.current!==e&&(r.current=e)},t),r}function g(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function y(e){let t=h(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function v(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let b={};function w(e,t){return(0,n.useMemo)(()=>{if(t)return t;let r=null==b[e]?0:b[e]+1;return b[e]=r,e+"-"+r},[e,t])}function x(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let _=x(1),S=x(-1);function k(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function O(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let C=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[C.Translate.toString(e),C.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),E="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(E)?e:e.querySelector(E)}},39893:(e,t,r)=>{"use strict";
40Object.defineProperty(t,"__esModule",{value:!0});let n=r(83732);t.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}},40051:(e,t,r)=>{"use strict";let{isUUID:n}=r(99274),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])}function l(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function s(e){let t="https"===String(e.scheme).toLowerCase();return(e.port===(t?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}let u={scheme:"http",domainHost:!0,parse:l,serialize:s},c={scheme:"https",domainHost:u.domainHost,parse:l,serialize:s},d={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=a(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if((e.port===(a(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},f={scheme:"wss",domainHost:d.domainHost,parse:d.parse,serialize:d.serialize},h={http:u,https:c,ws:d,wss:f,urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(i);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=p(`${n}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=p(`${r}:${t.nid||n}`);i&&(e=i.serialize(e,t));let o=e,a=e.nss;return o.path=`${n||t.nid}:${a}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&n(e.uuid)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e){return e.nss=(e.uuid||"").toLowerCase(),e},skipNormalize:!0}};function p(e){return e&&(h[e]||h[e.toLowerCase()])||void 0}Object.setPrototypeOf(h,null),e.exports={wsIsSecure:a,SCHEMES:h,isValidSchemeName:function(e){return -1!==o.indexOf(e)},getSchemeHandler:p}},40060:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(12115),i=r(89933);function o(){var[e,t]=(0,n.useState)(()=>!i.m.isSsr&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,n.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}}},[]),e}},40530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;let n=r(77208),i=r(89034),o=r(4378),a=r(20804),l=r(58828),s=r(83732);function u(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,o._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function c(e,t,r,n){let{gen:l,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,h=f.passContext?a.default.this:o.nil;function p(e){let t=(0,o._)`${e}.errors`;l.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),l.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;let n=null==(t=null==r?void 0:r.validate)?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=s.mergeEvaluated.props(l,n.props,u.props));else{let t=l.var("props",(0,o._)`${e}.evaluated.props`);u.props=s.mergeEvaluated.props(l,t,u.props,o.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=s.mergeEvaluated.items(l,n.items,u.items));else{let t=l.var("items",(0,o._)`${e}.evaluated.items`);u.items=s.mergeEvaluated.items(l,t,u.items,o.Name)}}n?function(){if(!d.$async)throw Error("async schema referenced by sync schema");let r=l.let("valid");l.try(()=>{l.code((0,o._)`await ${(0,i.callValidateCode)(e,t,h)}`),m(t),c||l.assign(r,!0)},e=>{l.if((0,o._)`!(${e} instanceof ${u.ValidationError})`,()=>l.throw(e)),p(e),c||l.assign(r,!1)}),e.ok(r)}
40():e.result((0,i.callValidateCode)(e,t,h),()=>m(t),()=>p(t))}t.getValidate=u,t.callRef=c,t.default={keyword:"$ref",schemaType:"string",code(e){var t,r;let i,a,s,d,{gen:f,schema:h,it:p}=e,{baseId:m,schemaEnv:g,validateName:y,opts:v,self:b}=p,{root:w}=g;if(("#"===h||"#/"===h)&&m===w.baseId){if(g===w)return c(e,y,g,g.$async);let t=f.scopeValue("root",{ref:w});return c(e,(0,o._)`${t}.validate`,w,w.$async)}let x=l.resolveRef.call(b,w,m,h);if(void 0===x)throw new n.default(p.opts.uriResolver,m,h);return x instanceof l.SchemaEnv?(i=u(e,t=x),void c(e,i,t,t.$async)):(r=x,a=f.scopeValue("schema",!0===v.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=f.name("valid"),d=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:a,errSchemaPath:h},s),void(e.mergeEvaluated(d),e.ok(s)))}}},40841:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isEqualsSameValueZero=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}},41106:(e,t,r)=>{"use strict";r.d(t,{C:()=>l,U:()=>s});var n=r(2842),i=r(2242),o=r(30451),a=r(92191),l=e=>e.brush,s=(0,n.Mz)([l,i.HZ,o.HK],(e,t,r)=>({height:e.height,x:(0,a.Et)(e.x)?e.x:t.left,y:(0,a.Et)(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:(0,a.Et)(e.width)?e.width:t.width}))},41177:(e,t,r)=>{"use strict";function n(e){if(null!=e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],r=i[1];return t<=r?e>=t&&e<=r:e>=r&&e<=t},bandwidth:r?()=>r.call(e):void 0,ticks:t?r=>t.call(e,r):void 0,map:(t,r)=>{var n=e(t);if(null!=n){if(e.bandwidth&&null!=r&&r.position){var i=e.bandwidth();switch(r.position){case"middle":n+=i/2;break;case"end":n+=i}}return n}}}}}r.d(t,{X:()=>n})},41994:()=>{},42080:(e,t,r)=>{"use strict";r.d(t,{$B:()=>l,Sd:()=>o,T2:()=>a});var n=r(8242),i=r(27050);function o(e,t=null){return function(r,o){let{$from:a,$to:l}=r.selection,s=a.blockRange(l);if(!s)return!1;let u=o?r.tr:null;return!!function(e,t,r,o=null){let a=!1,l=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=s.resolve(t.start-2);l=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),a=!0}let u=(0,n.oM)(l,r,o,t);return!!u&&(e&&function(e,t,r,o,a){let l=i.FK.empty;for(let e=r.length-1;e>=0;e--)l=i.FK.from(r[e].type.create(r[e].attrs,l));e.step(new n.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(l,0,0),r.length,!0));let s=0;for(let e=0;e<r.length;e++)r[e].type==a&&(s=e+1);let u=r.length-s,c=t.start+r.length-2*!!o,d=t.parent;for(let r=t.startIndex,i=t.endIndex,o=!0;r<i;r++,o=!1)!o&&(0,n.zy)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=d.child(r).nodeSize}(e,t,u,a,r),!0)}(u,s,e,t)&&(o&&o(u.scrollIntoView()),!0)}}function a(e){return function(t,r){let{$from:o,$to:a}=t.selection,l=o.blockRange(a,t=>t.childCount>0&&t.firstChild.type==e);return!!l&&(!r||(o.node(l.depth-1).type==e?function(e,t,r,o){let a=e.tr,l=o.end,s=o.$to.end(o.depth);l<s&&(a.step(new n.Wg(l-1,s,l,s,new i.Ji(i.FK.from(r.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(a.doc.resolve(o.$from.pos),a.doc.resolve(s),o.depth));let u=(0,n.jP)(o);if(null==u)return!1;a.lift(o,u);let c=a.doc.resolve(a.mapping.map(l,-1)-1);return(0,n.n9)(a.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&a.join(c.pos),t(a.scrollIntoView()),!0}(t,r,e,l):function(e,t,r){let o=e.tr,a=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=a.child(t).nodeSize,o.delete(e-1,e+1);let l=o.doc.resolve(r.start),s=l.nodeAfter;if(o.mapping.map(r.end)!=r.start+l.nodeAfter.nodeSize)return!1;let u=0==r.startIndex,c=r.endIndex==a.childCount,d=l.node(-1),f=l.index(-1);if(!d.canReplace(f+ +!u,f+1,s.content.append(c?i.FK.empty:i.FK.from(a))))return!1;let h=l.pos,p=h+s.nodeSize;return o.step(new n.Wg(h-!!u,p+ +!!c,h+1,p-1,new i.Ji((u?i.FK.empty:i.FK.from(a.copy(i.FK.empty))).append(c?i.FK.empty:i.FK.from(a.copy(i.FK.empty))),+!u,+!c),+!u)),t(o.scrollIntoView()),!0}(t,r,l)))}}function l(e){return function(t,r){let{$from:o,$to:a}=t.selection,l=o.blockRange(a,t=>t.childCount>0&&t.firstChild.type==e);if(!l)return!1;let s=l.startIndex;if(0==s)return!1;let u=l.parent,c=u.child(s-1);if(c.type!=e)return!1;if(r){let o=c.lastChild&&c.lastChild.type==u.type,a=i.FK.from(o?e.create():null),s=new i.Ji(i.FK.from(e.create(null,i.FK.from(u.type.create(null,a)))),o?3:1,0),d=l.start,f=l.end;r(t.tr.step(new n.Wg(d-(o?3:1),f,d,f,s,1,!0)).scrollIntoView())}return!0}}},42165:(e,t,r)=>{"use strict";function n(e){return(t,r={})=>{let n,i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let l=a[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(s,e=>e.test(l)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(s,e=>e.test(l));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(l.length)}}}r.d(t,{A:()=>n})},42381:(e,t,r)=>{"use strict";r.d(t,{J:()=>
40o,U:()=>i});var n=(0,r(11785).Z0)({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:i}=n.actions,o=n.reducer},43077:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if("u">typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(t.replace(/%s/g,()=>n[o++]))}}},43079:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(53310);function i(e){let t=(0,n.ieJ)(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw Error(`${e} is not supported in headless mode`)}}),t}},43234:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=e=>e?.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},43283:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(67975),i=r(28326);let o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,l(t)?t:[t])},c=Date.prototype.toISOString,d=i.Ay,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.lF,encodeValuesOnly:!1,format:d,formatter:i._J[d],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h={},p=function(e,t,r,i,o,a,s,c,d,m,g,y,v,b,w,x,_){var S;let k,O=e,C=_,E=0,T=!1;for(;void 0!==(C=C.get(h))&&!T;){let t=C.get(e);if(E+=1,void 0!==t)if(t===E)throw RangeError("Cyclic object value");else T=!0;void 0===C.get(h)&&(E=0)}if("function"==typeof m?O=m(t,O):O instanceof Date?O=v(O):"comma"===r&&l(O)&&(O=n.F7(O,function(e){return e instanceof Date?v(e):e})),null===O){if(a)return d&&!x?d(t,f.encoder,"key",b):t;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.Pe(O))return d?[w(x?t:d(t,f.encoder,"key",b))+"="+w(d(O,f.encoder,"value",b))]:[w(t)+"="+w(String(O))];let M=[];if(void 0===O)return M;if("comma"===r&&l(O))x&&d&&(O=n.F7(O,d)),k=[{value:O.length>0?O.join(",")||null:void 0}];else if(l(m))k=m;else{let e=Object.keys(O);k=g?e.sort(g):e}let A=c?t.replace(/\./g,"%2E"):t,N=i&&l(O)&&1===O.length?A+"[]":A;if(o&&l(O)&&0===O.length)return N+"[]";for(let t=0;t<k.length;++t){let n=k[t],f="object"==typeof n&&void 0!==n.value?n.value:O[n];if(s&&null===f)continue;let S=y&&c?n.replace(/\./g,"%2E"):n,C=l(O)?"function"==typeof r?r(N,S):N:N+(y?"."+S:"["+S+"]");_.set(e,E);let T=new WeakMap;T.set(h,_),u(M,p(f,C,r,i,o,a,s,c,"comma"===r&&x&&l(O)?null:d,m,g,y,v,b,w,x,T))}return M},m=function(e){let t;if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let r=i.Ay;if(void 0!==e.format){if(!o.call(i._J,e.format))throw TypeError("Unknown format option provided.");r=e.format}let n=i._J[r],s=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(s=e.filter),t=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};function g(e,t){let r,n=e,i=m(t);"function"==typeof i.filter?n=(0,i.filter)("",n):l(i.filter)&&(r=i.filter);let o=[];if("object"!=typeof n||null===n)return"";
40let s=a[i.arrayFormat],c="comma"===s&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);let d=new WeakMap;for(let e=0;e<r.length;++e){let t=r[e];i.skipNulls&&null===n[t]||u(o,p(n[t],t,s,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,d))}let f=o.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return f.length>0?h+f:""}},43527:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e);return Object.keys(t).reduce((e,r)=>(void 0===e[r]&&void 0!==t[r]&&(e[r]=t[r]),e),r)}r.d(t,{e:()=>i})},43561:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=r(62678).Or},43665:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"className"in e&&"string"==typeof e.className?e.className:""}r.d(t,{I:()=>n})},43971:(e,t,r)=>{"use strict";r.d(t,{Ie:()=>s,Jy:()=>y,K2:()=>v,OV:()=>w,Pe:()=>h,YF:()=>u,cE:()=>_,cj:()=>m,eu:()=>d,mB:()=>f,rd:()=>p,vF:()=>x,xj:()=>g});var n=r(53310);function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=o&&"documentMode"in document?document.documentMode:null,l=(o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),o&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function s(e,t){return Array.from(u(e,t))}function u(e,t){var r,i,o;let a,l,s,u,d,f;return r="next",i=e,o=t,a=(0,n.NiT)(),l=i||a,s=(0,n.ff4)(l)?(0,n.uwZ)(l,r):(0,n.IlV)(l,r),u=function(e){let t=-1;for(let r=e;null!==r;r=r.getParent())t++;return t}(l),d=o?(0,n.erb)((0,n.P6U)((0,n.IlV)(o,r)))||c(o,r):c(l,r),f=u,(0,n.Bts)({hasNext:e=>null!==e,initial:s,map:e=>({depth:f,node:e.origin}),step:e=>
40{if(e.isSameNodeCaret(d))return null;(0,n.cmH)(e)&&f++;let t=(0,n.FtC)(e);return!t||t[0].isSameNodeCaret(d)?null:(f+=t[1],t[0])}})}function c(e,t){let r=(0,n.FtC)((0,n.IlV)(e,t));return r&&r[0]}function d(e,t){let r=e;for(;null!=r;){if(r instanceof t)return r;r=r.getParent()}return null}function f(e){let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());return(0,n.ff4)(t)||i(4,e.__key),t}function h(e){let t,r=(0,n.vJq)()||(0,n.S1w)();if((0,n.I2P)(r))t=(0,n.Ave)(r.focus,"next");else{if(null!=r){let e=r.getNodes(),i=e[e.length-1];i&&(t=(0,n.IlV)(i,"next"))}t=t||(0,n.uwZ)((0,n.NiT)(),"previous").getFlipped().insert((0,n.lJ7)())}let i=p(e,t),o=(0,n.erb)(i),a=(0,n.cmH)(o)?(0,n.lSZ)(o):i;return(0,n.xQ8)((0,n.sWS)(a)),e.getLatest()}function p(e,t,r){let o=(0,n.Csq)(t,"next");for(let e=o;e;e=(0,n.k1Q)(e,r))o=e;return(0,n.rN)(o)&&i(283),o.insert(e.isInline()?(0,n.lJ7)().append(e):e),(0,n.Csq)((0,n.IlV)(e.getLatest(),"next"),t.direction)}function m(e,t){let r=t();return e.replace(r),r.append(e),r}function g(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function y(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return!1;let r=new Set,i=t.getNodes();for(let t=0;t<i.length;t++){let o=i[t],a=o.getKey();if(r.has(a))continue;let l=(0,n.BtT)(o,e=>(0,n.ff4)(e)&&!e.isInline());if(null===l)continue;let s=l.getKey();l.canIndent()&&!r.has(s)&&(r.add(s),e(l))}return r.size>0}function v(e,t){(0,n.uwZ)(e,"next").insert(t)}o&&"InputEvent"in window&&!a&&new window.InputEvent("input"),o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,o&&/Android/.test(navigator.userAgent),o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),o&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let b=!(l||!o)&&void 0;function w(e,t=!1){let r=1;if(function(){if(void 0===b){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),b=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return b}()||t)for(;e;)r*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return r}function x(e,t){return function e(t,r,i){let o=!1;for(let a of S(t))r(a)?null!==i&&i(a):(o=!0,(0,n.ff4)(a)&&e(a,r,i||(e=>a.insertAfter(e))),a.remove());return o}(e,t,null)}function _(e,t){let r=[],i=Array.from(e).reverse();for(let e=i.pop();void 0!==e;e=i.pop())if(t(e))r.push(e);else if((0,n.ff4)(e))for(let t of S(e))i.push(t);return r}function S(e){var t;return t=(0,n.uwZ)(e,"previous"),(0,n.Bts)({hasNext:n.OpE,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}},44531:(e,t,r)=>{"use strict";r.d(t,{G2:()=>ev,fb:()=>ey,q:()=>eZ,tP:()=>e4,g1:()=>te,iv:()=>tf,Nk:()=>em,EZ:()=>ez,pM:()=>eN,Oz:()=>eG,tF:()=>tT,rj:()=>ef,ec:()=>el,bb:()=>eQ,xp:()=>e9,wL:()=>e2,MK:()=>eM,IO:()=>ec,P9:()=>eU,S5:()=>ej,PU:()=>J,cd:()=>Y,eo:()=>ei,yi:()=>eL,CH:()=>eR,ZB:()=>tA,D5:()=>ts,Gx:()=>tj,DP:()=>et,BQ:()=>tE,_y:()=>t$,AV:()=>eI,Lu:()=>eD,um:()=>en,xM:()=>e8,gT:()=>eH,Kr:()=>eK,$X:()=>eJ,tm:()=>er,TC:()=>eA,Zi:()=>tN,CR:()=>tP,Dn:()=>eC,K6:()=>eE,ld:()=>eo,L$:()=>tk,Rl:()=>G,y7:()=>V,Lw:()=>tx,KR:()=>tO,sf:()=>X,hc:()=>Z,wP:()=>tC});var n=r(2842),i=r(90463),o=r.n(i),a=r(65372),l=r(16787),s=r(57346),u=r(29482),c=r(92191),d=r(99498),f=r(21108),h=r.n(f);function p(e){return 0===e?1:Math.floor(new(h())(e).abs().log(10).toNumber())+1}function m(e,t,r){for(var n=new(h())(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var g=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},y=(e,t,r)=>{if(e.lte(0))return new(h())(0);var n=p(e.toNumber()),i=new(h())(10).pow(n),o=e.div(i),a=1!==n?.05:.1,l=new(h())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return new(h())(t?l.toNumber():Math.ceil(l.toNumber()))},v=(e,t,r)=>{if(e.lte(0))return new(h())(0);var n,i=[1,2,2.5,5],o=e.toNumber(),a=Math.floor(new(h())(o).abs().log(10).toNumber()),l=new(h())(10).pow(a),s=e.div(l).toNumber(),u=i.findIndex(e=>e>=s-1e-10);if(-1===u&&(l=l.mul(10),u=0),(u+=r)>=i.length){var c=Math.floor(u/i.length);u%=i.length,l=l.mul(new(h())(10).pow(c))}var d=null!=(n=i[u])?n:1,f=new(h())(d).mul(l);return t?f:new(h())(Math.ceil(f.toNumber()))},b=function(e,t,r,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:y;if(!Number.isFinite((t-e)/(r-1)))return{step:new(h())(0),tickMin:new(h())(0),tickMax:new(h())(0)};var l=a(new(h())(t).sub(e).div(r-1),n,o),s=Math.ceil((i=e<=0&&t>=0?new(h())(0):(i=new(h())(e).add(t).div(2)).sub(new(h())(i).mod(l))).sub(e).div(l).toNumber()),u=Math.ceil(new(h())(t).sub(i).div(l).toNumber()),c=s+u+1;return c>r?b(e,t,r,n,o+1,a):(c<r&&(u=t>0?u+(r-c):u,s=t>0?s:s+(r-c)),{step:l,tickMin:i.sub(new(h())(s).mul(l)),tickMax:i.add(new(h())(u).mul(l))})},w=function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",a=Math.max(n,2),[l,s]=g([t,r]);if(l===-1/0||s===1/0){var u=s===1/0?[l,...Array(n-1).fill(1/0)]:[...Array(n-1).fill(-1/0),s];return t>r?u.reverse():u}if(l===s)return((e,t,r)=>{var n=new(h())(1),i=new(h())(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new(h())(10).pow(p(e)-1),i=new(h())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(h())(Math.floor(e)))}
40else 0===e?i=new(h())(Math.floor((t-1)/2)):r||(i=new(h())(Math.floor(e)));for(var a=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new(h())(s-a).mul(n)).toNumber());return l})(l,n,i);var{step:c,tickMin:d,tickMax:f}=b(l,s,a,i,0,"snap125"===o?v:y),w=m(d,f.add(new(h())(.1).mul(c)),c);return t>r?w.reverse():w},x=function(e,t){var[r,n]=e,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[a,l]=g([r,n]);if(a===-1/0||l===1/0)return[r,n];if(a===l)return[a];var s=Math.max(t,2),u=("snap125"===o?v:y)(new(h())(l).sub(a).div(s-1),i,0),c=[...m(new(h())(a),new(h())(l),u),l];return!1===i&&(c=c.map(e=>Math.round(e))),r>n?c.reverse():c},_=r(30451),S=r(16322),k=r(2242),O=r(41106),C=r(90744),E=r(68976),T=r(12968),M=r(6265),A=r(11792),N=r(71615),P=r(62082),j=r(57104),I=r(84224),D=r(51547),$=r(27467),R=r(59190),L=r(74463),z=r(41177),F=r(18297),B=r(53970),K=r(48746);function U(e,t){if(e){var r=null!=t?t:e.domain(),n=r.map(t=>{var r;return null!=(r=e(t))?r:0}),i=e.range();if(0!==r.length&&!(i.length<2))return e=>{var t,i,o=function(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var o=Math.floor((r+n)/2);(i?e[o]<t:e[o]>t)?r=o+1:n=o}return r}(n,e);return o<=0?r[0]:o>=r.length?r[r.length-1]:Math.abs(e-(null!=(t=n[o-1])?t:0))<=Math.abs(e-(null!=(i=n[o])?i:0))?r[o-1]:r[o]}}}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var q=[0,"auto"],J={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},V=(e,t)=>e.cartesianAxis.xAxis[t],G=(e,t)=>{var r=V(e,t);return null==r?J:r},Y={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:q,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:N.tQ},Z=(e,t)=>e.cartesianAxis.yAxis[t],X=(e,t)=>{var r=Z(e,t);return null==r?Y:r},Q={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},ee=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?Q:r},et=(e,t,r)=>{switch(t){case"xAxis":return G(e,r);case"yAxis":return X(e,r);case"zAxis":return ee(e,r);case"angleAxis":return(0,E.Be)(e,r);case"radiusAxis":return(0,E.Gl)(e,r);default:throw Error("Unexpected axis type: ".concat(t))}},er=(e,t,r)=>{switch(t){case"xAxis":return G(e,r);case"yAxis":return X(e,r);case"angleAxis":return(0,E.Be)(e,r);case"radiusAxis":return(0,E.Gl)(e,r);default:throw Error("Unexpected axis type: ".concat(t))}},en=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function ei(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var eo=e=>e.graphicalItems.cartesianItems,ea=(0,n.Mz)([T.N,M.E],ei),el=(e,t,r)=>e.filter(r).filter(e=>(null==t?void 0:t.includeHidden)===!0||!e.hide),es=(0,n.Mz)([eo,et,ea],el,{memoizeOptions:{resultEqualityCheck:$.O}}),eu=(0,n.Mz)([es],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(I.g)),ec=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),ed=(0,n.Mz)([es],ec),ef=e=>e.map(e=>
40e.data).filter(Boolean).flat(1),eh=(0,n.Mz)([es],e=>e.some(e=>!e.data)),ep=(0,n.Mz)([es],ef,{memoizeOptions:{resultEqualityCheck:$.O}}),em=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},eg=(0,n.Mz)([ep,s.k$],em),ey=(e,t,r)=>(null==t?void 0:t.dataKey)!=null?e.map(e=>({value:(0,l.kr)(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:(0,l.kr)(e,t)}))):e.map(e=>({value:e})),ev=(e,t,r,n,i,o)=>{var{chartData:a=[],dataStartIndex:s,dataEndIndex:u}=n,c=ey(e,t,r);return i&&(null==t?void 0:t.dataKey)!=null&&o.length>0?[...a.slice(s,u+1).map(e=>({value:(0,l.kr)(e,t.dataKey)})).filter(e=>null!=e.value),...c]:c},eb=(0,n.Mz)([eg,et,es,s.k$,eh,ep],ev);function ew(e){if((0,c.vh)(e)||e instanceof Date){var t=Number(e);if((0,d.H)(t))return t}}function ex(e){if(Array.isArray(e)){var t=[ew(e[0]),ew(e[1])];return(0,u.JH)(t)?t:void 0}var r=ew(e);if(null!=r)return[r,r]}function e_(e){return e.map(ew).filter(c.n9)}function eS(e,t){var r=ew(e),n=ew(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var ek=(0,n.Mz)([eb],e=>null==e?void 0:e.map(e=>e.value).sort(eS));function eO(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var eC=e=>{var t=(0,R.R)(e),r=(0,L.M)(e);return er(e,t,r)},eE=(0,n.Mz)([eC],e=>null==e?void 0:e.dataKey),eT=(0,n.Mz)([eu,s.k$,eC],j.A),eM=(e,t,r,n)=>Object.fromEntries(Object.entries(t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{})).map(t=>{var[i,o]=t,a=n?[...o].reverse():o,s=a.map(P.x);return[i,{stackedData:(0,l.yy)(e,s,r),graphicalItems:a}]})),eA=(0,n.Mz)([eT,eu,C.eC,C.Lb],eM),eN=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(null==n&&"zAxis"!==r){var a=(0,l.Mk)(e,i,o);if(null==a||0!==a[0]||0!==a[1])return a}},eP=(0,n.Mz)([et],e=>e.allowDataOverflow),ej=e=>{var t;if(null==e||!("domain"in e))return q;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=e_(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!=(t=null==e?void 0:e.domain)?t:q},eI=(0,n.Mz)([et],ej),eD=(0,n.Mz)([eI,eP],u.f5),e$=(0,n.Mz)([eA,s.LF,T.N,eD],eN,{memoizeOptions:{resultEqualityCheck:D.o}}),eR=e=>e.errorBars,eL=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var i=n.flat();return[Math.min(...i),Math.max(...i)]}},ez=function(e,t,r,n,i){var o,a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(r.length>0&&r.forEach(e=>{var r,u=null!=e.data?[...e.data]:s,f=null==(r=n[e.id])?void 0:r.filter(e=>eO(i,e));u.forEach(r=>{var n,i=(0,l.kr)(r,null!=(n=t.dataKey)?n:e.dataKey),s=function(e,t,r){if(!r||!r.length)return[];if("number"!=typeof t||(0,c.M8)(t)){if(Array.isArray(t)){var n,i=e_(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:e_(r.flatMap(t=>{var r,i,o=(0,l.kr)(e,t.dataKey);if(Array.isArray(o)?[r,i]=o:r=i=o,(0,d.H)(r)&&(0,d.H)(i))return[n-r,n+i]}))}(r,i,f);if(s.length>=2){var u=Math.min(...s),h=Math.max(...s);(null==o||u<o)&&(o=u),(null==a||h>a)&&(a=h)}var p=ex(i);null!=p&&(o=null==o?p[0]:Math.min(o,p[0]),a=null==a?p[1]:Math.max(a,p[1]))})}),(null==t?void 0:t.dataKey)!=null&&0===r.length&&e.forEach(e=>{var r=ex((0,l.kr)(e,t.dataKey));null!=r&&(o=null==o?r[0]:Math.min(o,r[0]),a=null==a?r[1]:Math.max(a,r[1]))}),(0,d.H)(o)&&(0,d.H)(a))return[o,a]},eF=(0,n.Mz)([eg,et,ed,eR,T.N,s.lm],ez,{memoizeOptions:{resultEqualityCheck:D.o}});function eB(e){var{value:t}=e;if((0,c.vh)(t)||t instanceof Date)return t}var eK=e=>e.referenceElements.dots,eU=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),eW=(0,n.Mz)([eK,T.N,M.E],eU),eH=e=>e.referenceElements.areas,eq=(0,n.Mz)([eH,T.N,M.E],eU),eJ=e=>e.referenceElements.lines,eV=(0,n.Mz)([eJ,T.N,M.E],eU),eG=(e,t)=>{if(null!=e){var r=e_(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},eY=(0,n.Mz)(eW,T.N,eG),eZ=(e,t)=>{if(null!=e){var r=e_(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},eX=(0,n.Mz)([eq,T.N],eZ),eQ=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){if(null!=e.x)return e_([e.x]);var t,r=null==(t=e.segment)?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:e_(r)}(e):function(e){if(null!=e.y)return e_([e.y]);var t,r=null==(t=e.segment)?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:e_(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},e0=(0,n.Mz)([eV,T.N],eQ),e1=(0,n.Mz)(eY,e0,eX,(e,t,r)=>eL(e,r,t)),e2=(e,t,r,n,i,o,a,l)=>{if(null!=r)return r;var s="vertical"===a&&"xAxis"===l||"horizontal"===a&&"yAxis"===l?eL(n,o,i):eL(o,i);
40return(0,u.v1)(t,s,e.allowDataOverflow)},e3=(0,n.Mz)([et,eI,eD,e$,eF,e1,a.fz,T.N],e2,{memoizeOptions:{resultEqualityCheck:D.o}}),e5=[0,1],e4=(e,t,r,n,i,a,s)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==s){var u,d,{dataKey:f,type:h}=e,p=(0,l._L)(t,a);return p&&null==f?o()(0,null!=(d=null==r?void 0:r.length)?d:0):"category"===h?(u=n.map(eB).filter(e=>null!=e),p&&(null==e.dataKey||e.allowDuplicatedCategory&&(0,c.CG)(u))?o()(0,n.length):e.allowDuplicatedCategory?u:Array.from(new Set(u))):"expand"!==i||p?s:e5}},e6=(0,n.Mz)([et,a.fz,eg,eb,C.eC,T.N,e3],e4),e8=(0,n.Mz)([et,en,C.iO],K.s),e9=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=ej(t),o=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&(0,u.JH)(e)){if(o)return w(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return x(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(o&&(0,u.JH)(e))return w(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&(0,u.JH)(e))return x(e,t.tickCount,t.allowDecimals,"adaptive")}}},e7=(0,n.Mz)([e6,er,e8],e9),te=(e,t,r,n)=>{if("angleAxis"!==n&&(null==e?void 0:e.type)==="number"&&(0,u.JH)(t)&&Array.isArray(r)&&r.length>0){var i,o;return[Math.min(t[0],null!=(i=r[0])?i:0),Math.max(t[1],null!=(o=r[r.length-1])?o:0)]}return t},tt=(0,n.Mz)([et,e6,e7,T.N],te),tr=(0,n.Mz)(eb,et,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(e_(e.map(e=>e.value))).sort((e,t)=>e-t),i=n[0],o=n[n.length-1];if(null==i||null==o)return 1/0;var a=o-i;if(0===a)return 1/0;for(var l=0;l<n.length-1;l++){var s=n[l],u=n[l+1];null!=s&&null!=u&&(r=Math.min(r,u-s))}return r/a}}),tn=(0,n.Mz)(tr,a.fz,C.gY,k.HZ,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!(0,d.H)(e))return 0;var o="vertical"===t?n.height:n.width;if("gap"===i)return e*o/2;if("no-gap"===i){var a=(0,c.F4)(r,e*o),l=e*o/2;return l-a-(l-a)/o*a}return 0}),ti=(0,n.Mz)(G,(e,t,r)=>{var n=G(e,t);return null==n||"string"!=typeof n.padding?0:tn(e,"xAxis",t,r,n.padding)},(e,t)=>{if(null==e)return{left:0,right:0};var r,n,{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!=(r=i.left)?r:0)+t,right:(null!=(n=i.right)?n:0)+t}}),to=(0,n.Mz)(X,(e,t,r)=>{var n=X(e,t);return null==n||"string"!=typeof n.padding?0:tn(e,"yAxis",t,r,n.padding)},(e,t)=>{if(null==e)return{top:0,bottom:0};var r,n,{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!=(r=i.top)?r:0)+t,bottom:(null!=(n=i.bottom)?n:0)+t}}),ta=(0,n.Mz)([k.HZ,ti,O.U,O.C,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:o}=n;return i?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),tl=(0,n.Mz)([k.HZ,a.fz,to,O.U,O.C,(e,t,r)=>r],(e,t,r,n,i,o)=>{var{padding:a}=i;return o?[n.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ts=(e,t,r,n)=>{var i;switch(t){case"xAxis":return ta(e,r,n);case"yAxis":return tl(e,r,n);case"zAxis":return null==(i=ee(e,r))?void 0:i.range;case"angleAxis":return(0,E.Cv)(e);case"radiusAxis":return(0,E.Dc)(e,r);default:return}},tu=(0,n.Mz)([et,ts],A.I),tc=(0,n.Mz)([e8,tt],F.l),td=(0,n.Mz)([et,e8,tc,tu],B.S),tf=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:o}=r;if((0,l._L)(e,n)&&("number"===i||"auto"!==o))return t.map(e=>e.value)}},th=(0,n.Mz)([a.fz,eb,er,T.N],tf),tp=(0,n.Mz)([td],z.X);function tm(e,t){return e.id<t.id?-1:+(e.id>t.id)}(0,n.Mz)([td],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):U(e,void 0)}),(0,n.Mz)([td,ek],U),(0,n.Mz)([es,eR,T.N],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>eO(r,e)));var tg=(e,t)=>t,ty=(e,t,r)=>r,tv=(0,n.Mz)(S.h,tg,ty,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(tm)),tb=(0,n.Mz)(S.W,tg,ty,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(tm)),tw=(e,t)=>({width:e.width,height:t.height}),tx=(0,n.Mz)(k.HZ,G,tw),t_=(0,n.Mz)(_.A$,k.HZ,tv,tg,ty,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l=tw(t,r);null==o&&(o=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var s="top"===n&&!i||"bottom"===n&&i;a[r.id]=o-Number(s)*l.height,o+=(s?-1:1)*l.height}),a}),tS=(0,n.Mz)(_.Lp,k.HZ,tb,tg,ty,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l={width:"number"==typeof r.width?r.width:N.tQ,height:t.height};null==o&&(o=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var s="left"===n&&!i||"right"===n&&i;a[r.id]=o-Number(s)*l.width,o+=(s?-1:1)*l.width}),a}),tk=(0,n.Mz)([k.HZ,G,(e,t)=>{var r=G(e,t);if(null!=r)return t_(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),tO=(0,n.Mz)([k.HZ,X,(e,t)=>{var r=X(e,t);if(null!=r)return tS(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),tC=(0,n.Mz)(k.HZ,X,(e,t)=>({width:"number"==typeof t.width?t.width:N.tQ,height:e.height})),tE=(e,t,r)=>{switch(t){case"xAxis":return tx(e,r).width;case"yAxis":return tC(e,r).height;default:return}},tT=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:o,dataKey:a}=r,s=(0,l._L)(e,n),u=t.map(e=>e.value),d=u.filter(e=>null!=e);if(a&&s&&"category"===o&&i&&(0,c.CG)(d))return u}},tM=(0,n.Mz)([a.fz,eb,et,T.N],tT),tA=(0,n.Mz)([a.fz,(e,t,r)=>{switch(t){case"xAxis":return G(e,r);case"yAxis":return X(e,r);default:throw Error("Unexpected axis type: ".concat(t))}},e8,tp,tM,th,ts,e7,T.N],(e,t,r,n,i,o,a,s,u)=>{if(null!=t){var c=(0,l._L)(e,u);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:u,categoricalDomain:o,duplicateDomain:i,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),tN=(0,n.Mz)([a.fz,er,e8,tp,e7,ts,tM,th,T.N],(e,t,r,n,i,o,a,s,u)=>{if(null!=t&&null!=n){var f=(0,l._L)(e,u),{type:h,ticks:p,tickCount:m}=t,g="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,y="category"===h&&n.bandwidth?n.bandwidth()/g:0;y="angleAxis"===u&&null!=o&&o.length>=2?2*(0,c.sA)(o[0]-o[1])*y:y;var v=p||i;return v?v.map((e,t)=>{var r=a?a.indexOf(e):e,i=n.map(r);return(0,d.H)(i)?{index:t,coordinate:i+y,value:e,offset:y}:null}).filter(c.n9):f&&s?s.map((e,t)=>{var r=n.map(e);return(0,d.H)(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(c.n9):n.ticks?n.ticks(m).map((e,t)=>{var r=n.map(e);return(0,d.H)(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(c.n9):n.domain().map((e,t)=>{var r=n.map(e);return(0,d.H)(r)?{coordinate:r+y,value:a?a[e]:e,index:t,offset:y}:null}).filter(c.n9)}}),tP=(0,n.Mz)([a.fz,er,tp,ts,tM,th,T.N],(e,t,r,n,i,o,a)=>
40{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var s=(0,l._L)(e,a),{tickCount:u}=t,f=0;return(f="angleAxis"===a&&(null==n?void 0:n.length)>=2?2*(0,c.sA)(n[0]-n[1])*f:f,s&&o)?o.map((e,t)=>{var n=r.map(e);return(0,d.H)(n)?{coordinate:n+f,value:e,index:t,offset:f}:null}).filter(c.n9):r.ticks?r.ticks(u).map((e,t)=>{var n=r.map(e);return(0,d.H)(n)?{coordinate:n+f,value:e,index:t,offset:f}:null}).filter(c.n9):r.domain().map((e,t)=>{var n=r.map(e);return(0,d.H)(n)?{coordinate:n+f,value:i?i[e]:e,index:t,offset:f}:null}).filter(c.n9)}}),tj=(0,n.Mz)(et,tp,(e,t)=>{if(null!=e&&null!=t)return H(H({},e),{},{scale:t})}),tI=(0,n.Mz)([et,e8,e6,tu],B.S),tD=(0,n.Mz)([tI],z.X);(0,n.Mz)((e,t,r)=>ee(e,r),tD,(e,t)=>{if(null!=e&&null!=t)return H(H({},e),{},{scale:t})});var t$=(0,n.Mz)([a.fz,S.h,S.W],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});(0,n.Mz)([(e,t,r)=>{var n;return null==(n=e.renderedTicks[t])?void 0:n[r]}],e=>{if(e&&0!==e.length)return t=>{var r,n=1/0,i=e[0];for(var o of e){var a=Math.abs(o.coordinate-t);a<n&&(n=a,i=o)}return null==(r=i)?void 0:r.value}})},44681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732),o=r(89034),a=r(6298);t.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:l}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(l?(0,a.validateAdditionalItems)(e,l):e.ok((0,o.validateArray)(e)))}}},44923:(e,t,r)=>{"use strict";let n;r.d(t,{Mp:()=>eQ,Hd:()=>ti,vL:()=>g,uN:()=>eb,cA:()=>eC,IG:()=>eT,fp:()=>W,y$:()=>H,Sj:()=>X,Vy:()=>K,sl:()=>ee,TT:()=>J,Qo:()=>q,fF:()=>e3,E5:()=>A,PM:()=>e2,zM:()=>e4,MS:()=>D,FR:()=>$});var i,o,a,l,s,u,c,d,f,h,p,m,g,y,v,b,w,x,_,S=r(12115),k=r(47650),O=r(39768);let C={display:"none"};function E(e){let{id:t,value:r}=e;return S.createElement("div",{id:t,style:C},r)}function T(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return S.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let M=(0,S.createContext)(null);function A(e){let t=(0,S.useContext)(M);(0,S.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}let N={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},P={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function j(e){let{announcements:t=P,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=N}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,S.useState)("");return{announce:(0,S.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=(0,O.YG)("DndLiveRegion"),[s,u]=(0,S.useState)(!1);if((0,S.useEffect)(()=>{u(!0)},[]),A((0,S.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;
40o(t.onDragCancel({active:r,over:n}))}}),[o,t])),!s)return null;let c=S.createElement(S.Fragment,null,S.createElement(E,{id:n,value:i.draggable}),S.createElement(T,{id:l,announcement:a}));return r?(0,k.createPortal)(c,r):c}function I(){}function D(e,t){return(0,S.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function $(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,S.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(i=h||(h={})).DragStart="dragStart",i.DragMove="dragMove",i.DragEnd="dragEnd",i.DragCancel="dragCancel",i.DragOver="dragOver",i.RegisterDroppable="registerDroppable",i.SetDroppableDisabled="setDroppableDisabled",i.UnregisterDroppable="unregisterDroppable";let R=Object.freeze({x:0,y:0});function L(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function z(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function F(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function B(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function K(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function U(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let W=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=U(t,t.left,t.top),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=L(U(n),i);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(z)},H=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=B(t),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=B(n),a=Number((i.reduce((e,t,n)=>e+L(r[n],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:a}})}}return o.sort(z)},q=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(n<i&&r<o){let a=t.width*t.height,l=e.width*e.height,s=(i-n)*(o-r);return Number((s/(a+l-s)).toFixed(4))}return 0}(o,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(F)},J=e=>{let{droppableContainers:t,droppableRects:r,pointerCoordinates:n}=e;if(!n)return[];let i=[];for(let e of t){let{id:t}=e,o=r.get(t);if(o&&function(e,t){let{top:r,left:n,bottom:i,right:o}=t;return r<=e.y&&e.y<=i&&n<=e.x&&e.x<=o}(n,o)){let r=Number((B(o).reduce((e,t)=>e+L(n,t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(z)};function V(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:R}let G=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})};function Y(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let Z={ignoreTransform:!1};function X(e,t){void 0===t&&(t=Z);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,O.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=Y(t);if(!n)return e;let{scaleX:i,scaleY:o,x:a,y:l}=n,s=e.left-a-(1-i)*parseFloat(r),u=e.top-l-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(r,t,n))}let{top:n,left:i,width:o,height:a,bottom:l,right:s}=r;return{top:n,left:i,width:o,height:a,bottom:l,right:s}}function Q(e){return X(e,{ignoreTransform:!0})}function ee(e,t){let r=[];return e?function n(i){var o,a;let l;if(null!=t&&r.length>=t||!i)return r;if((0,O.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,O.sb)(i)||(0,O.xZ)(i)||r.includes(i))return r;let s=(0,O.zk)(e).getComputedStyle(i);return(i!==e&&(void 0===(o=s)&&(o=(0,O.zk)(i).getComputedStyle(i)),l=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>
40{let t=o[e];return"string"==typeof t&&l.test(t)}))&&r.push(i),void 0===(a=s)&&(a=(0,O.zk)(i).getComputedStyle(i)),"fixed"===a.position)?r:n(i.parentNode)}(e):r}function et(e){let[t]=ee(e,1);return null!=t?t:null}function er(e){return O.Sw&&e?(0,O.l6)(e)?e:(0,O.Ll)(e)?(0,O.wz)(e)||e===(0,O.TW)(e).scrollingElement?window:(0,O.sb)(e)?e:null:null:null}function en(e){return(0,O.l6)(e)?e.scrollX:e.scrollLeft}function ei(e){return(0,O.l6)(e)?e.scrollY:e.scrollTop}function eo(e){return{x:en(e),y:ei(e)}}function ea(e){return!!O.Sw&&!!e&&e===document.scrollingElement}function el(e){let t={x:0,y:0},r=ea(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(o=p||(p={}))[o.Forward=1]="Forward",o[o.Backward=-1]="Backward";let es={x:.2,y:.2};function eu(e){return e.reduce((e,t)=>(0,O.WQ)(e,eo(t)),R)}function ec(e,t){if(void 0===t&&(t=X),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);et(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let ed=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+en(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+ei(t),0)}]];class ef{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=ee(t),n=eu(r);for(const[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,ed))for(const e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),a=n[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eh{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ep(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function em(e){e.preventDefault()}function eg(e){e.stopPropagation()}(a=m||(m={})).Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange",(l=g||(g={})).Space="Space",l.Down="ArrowDown",l.Right="ArrowRight",l.Left="ArrowLeft",l.Up="ArrowUp",l.Esc="Escape",l.Enter="Enter",l.Tab="Tab";let ey={start:[g.Space,g.Enter],cancel:[g.Esc],end:[g.Space,g.Enter,g.Tab]},ev=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case g.Right:return{...r,x:r.x+25};case g.Left:return{...r,x:r.x-25};case g.Down:return{...r,y:r.y+25};case g.Up:return{...r,y:r.y-25}}};class eb{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new eh((0,O.TW)(t)),this.windowListeners=new eh((0,O.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(m.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&ec(r),t(R)}handleKeyDown(e){if((0,O.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=ey,coordinateGetter:o=ev,scrollBehavior:a="smooth"}=n,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);let{collisionRect:s}=r.current,u=s?{x:s.left,y:s.top}:R;this.referenceCoordinates||(this.referenceCoordinates=u);let c=o(e,{active:t,context:r.current,currentCoordinates:u});if(c){let t=(0,O.Re)(c,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:l,isLeft:s,isBottom:u,maxScroll:d,minScroll:f}=el(r),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHe
40ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),p={x:Math.min(i===g.Right?h.right-h.width/2:h.right,Math.max(i===g.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===g.Down?h.bottom-h.height/2:h.bottom,Math.max(i===g.Down?h.top:h.top+h.height/2,c.y))},m=i===g.Right&&!l||i===g.Left&&!s,y=i===g.Down&&!u||i===g.Up&&!o;if(m&&p.x!==c.x){let e=r.scrollLeft+t.x,o=i===g.Right&&e<=d.x||i===g.Left&&e>=f.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:a});o?n.x=r.scrollLeft-e:n.x=i===g.Right?r.scrollLeft-d.x:r.scrollLeft-f.x,n.x&&r.scrollBy({left:-n.x,behavior:a});break}if(y&&p.y!==c.y){let e=r.scrollTop+t.y,o=i===g.Down&&e<=d.y||i===g.Up&&e>=f.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:a});o?n.y=r.scrollTop-e:n.y=i===g.Down?r.scrollTop-d.y:r.scrollTop-f.y,n.y&&r.scrollBy({top:-n.y,behavior:a});break}}this.handleMove(e,(0,O.WQ)((0,O.Re)(c,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ew(e){return!!(e&&"distance"in e)}function ex(e){return!!(e&&"delay"in e)}eb.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=ey,onActivation:i}=t,{active:o}=r,{code:a}=e.nativeEvent;if(n.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class e_{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,O.zk)(e);return e instanceof t?e:(0,O.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,O.TW)(o),this.documentListeners=new eh(this.document),this.listeners=new eh(r),this.windowListeners=new eh((0,O.zk)(o)),this.initialCoordinates=null!=(n=(0,O.e_)(i))?n:R,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(m.Resize,this.handleCancel),this.windowListeners.add(m.DragStart,em),this.windowListeners.add(m.VisibilityChange,this.handleCancel),this.windowListeners.add(m.ContextMenu,em),this.documentListeners.add(m.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ex(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ew(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(m.Click,eg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(m.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!n)return;let l=null!=(t=(0,O.e_)(e))?t:R,s=(0,O.Re)(n,l);if(!r&&a){if(ew(a)){if(null!=a.tolerance&&ep(s,a.tolerance))return this.handleCancel();if(ep(s,a.distance))return this.handleStart()}return ex(a)&&ep(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===g.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eS={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ek extends e_{constructor(e){const{event:t}=e;super(e,eS,(0,O.TW)(t.target))}}ek.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let eO={move:{name:"mousemove"},end:{name:"mouseup"}};(s=y||(y={}))[s.RightClick=2]="RightClick";class eC extends e_{constructor(e){super(e,eO,(0,O.TW)(e.event.target))}}eC.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==y.RightClick&&(null==n||n({event:r}),!0)}}];let eE={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eT extends e_{constructor(e){super(e,eE)}static setup(){return window.addEventListener(eE.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eE.move.name,e)};function e(){}}}eT.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],(u=v||(v={}))[u.Pointer=0]="Pointer",u[u.DraggableRect=1]="DraggableRect",(c=b||(b={}
40))[c.TreeOrder=0]="TreeOrder",c[c.ReversedTreeOrder=1]="ReversedTreeOrder";let eM={x:{[p.Backward]:!1,[p.Forward]:!1},y:{[p.Backward]:!1,[p.Forward]:!1}};(d=w||(w={}))[d.Always=0]="Always",d[d.BeforeDragging=1]="BeforeDragging",d[d.WhileDragging=2]="WhileDragging",(x||(x={})).Optimized="optimized";let eA=new Map;function eN(e,t){return(0,O.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eP(e){let{callback:t,disabled:r}=e,n=(0,O._q)(t),i=(0,S.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,S.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ej(e){return new ef(X(e),e)}function eI(e,t,r){void 0===t&&(t=ej);let[n,i]=(0,S.useState)(null);function o(){i(n=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o})}let a=function(e){let{callback:t,disabled:r}=e,n=(0,O._q)(t),i=(0,S.useMemo)(()=>{if(r||"u"<typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,S.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){o();break}}}}),l=eP({callback:o});return(0,O.Es)(()=>{o(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())},[e]),n}let eD=[];function e$(e,t){void 0===t&&(t=[]);let r=(0,S.useRef)(null);return(0,S.useEffect)(()=>{r.current=null},t),(0,S.useEffect)(()=>{let t=e!==R;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,O.Re)(e,r.current):R}function eR(e){return(0,S.useMemo)(()=>{let t,r;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:r=e.innerHeight,width:t,height:r}):null},[e])}let eL=[];function ez(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,O.sb)(t)?t:e}let eF=[{sensor:ek,options:{}},{sensor:eb,options:{}}],eB={current:{}},eK={draggable:{measure:Q},droppable:{measure:Q,strategy:w.WhileDragging,frequency:x.Optimized},dragOverlay:{measure:X}};class eU extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let eW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eU,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:I},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eK,measureDroppableContainers:I,windowRect:null,measuringScheduled:!1},eH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:I,draggableNodes:new Map,over:null,measureDroppableContainers:I},eq=(0,S.createContext)(eH),eJ=(0,S.createContext)(eW);function eV(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eU}}}function eG(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new eU(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case h.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let a=new eU(e.droppable.containers);return a.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;
40let o=new eU(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eY(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,S.useContext)(eq),o=(0,O.ZC)(n),a=(0,O.ZC)(null==r?void 0:r.id);return(0,S.useEffect)(()=>{if(!t&&!n&&o&&null!=a){if(!(0,O.kx)(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,O.ag)(e);if(t){t.focus();break}}})}},[n,t,i,a,o]),null}function eZ(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}let eX=(0,S.createContext)({...R,scaleX:1,scaleY:1});(f=_||(_={}))[f.Uninitialized=0]="Uninitialized",f[f.Initializing=1]="Initializing",f[f.Initialized=2]="Initialized";let eQ=(0,S.memo)(function(e){var t,r,n,i,o,a,l,s;let u,c,d,f,m,g,y,x,{id:C,accessibility:E,autoScroll:T=!0,children:A,sensors:N=eF,collisionDetection:P=q,measuring:I,modifiers:D,...$}=e,[L,z]=(0,S.useReducer)(eG,void 0,eV),[F,B]=function(){let[e]=(0,S.useState)(()=>new Set),t=(0,S.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,S.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[U,W]=(0,S.useState)(_.Uninitialized),H=U===_.Initialized,{draggable:{active:J,nodes:Y,translate:Z},droppable:{containers:Q}}=L,en=null!=J?Y.get(J):null,ei=(0,S.useRef)({initial:null,translated:null}),ec=(0,S.useMemo)(()=>{var e;return null!=J?{id:J,data:null!=(e=null==en?void 0:en.data)?e:eB,rect:ei}:null},[J,en]),ed=(0,S.useRef)(null),[eh,ep]=(0,S.useState)(null),[em,eg]=(0,S.useState)(null),ey=(0,O.YN)($,Object.values($)),ev=(0,O.YG)("DndDescribedBy",C),eb=(0,S.useMemo)(()=>Q.getEnabled(),[Q]),ew=(0,S.useMemo)(()=>({draggable:{...eK.draggable,...null==I?void 0:I.draggable},droppable:{...eK.droppable,...null==I?void 0:I.droppable},dragOverlay:{...eK.dragOverlay,...null==I?void 0:I.dragOverlay}}),[null==I?void 0:I.draggable,null==I?void 0:I.droppable,null==I?void 0:I.dragOverlay]),{droppableRects:ex,measureDroppableContainers:e_,measuringScheduled:eS}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,a]=(0,S.useState)(null),{frequency:l,measure:s,strategy:u}=i,c=(0,S.useRef)(e),d=function(){switch(u){case w.Always:return!1;case w.BeforeDragging:return r;default:return!r}}(),f=(0,O.YN)(d),h=(0,S.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,S.useRef)(null),m=(0,O.KG)(t=>{if(d&&!r)return eA;if(!t||t===eA||c.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new ef(s(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,d,s]);return(0,S.useEffect)(()=>{c.current=e},[e]),(0,S.useEffect)(()=>{d||h()},[r,d]),(0,S.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,S.useEffect)(()=>{d||"number"!=typeof l||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},l))},[l,d,h,...n]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=o}}(eb,{dragging:H,dependencies:[Z.x,Z.y],config:ew.droppable}),ek=(m=(f=null!=J?Y.get(J):void 0)?f.node.current:null,(0,O.KG)(e=>{var t;return null==J?null:null!=(t=null!=m?m:e)?t:null},[m,J])),eO=(0,S.useMemo)(()=>em?(0,O.e_)(em):null,[em]),eC=(u=(null==eh?void 0:eh.autoScrollEnabled)===!1,c="object"==typeof T?!1===T.enabled:!1===T,d=H&&!u&&!c,"object"==typeof T?{...T,enabled:d}:{enabled:d}),eE=eN(ek,ew.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,S.useRef)(!1),{x:a,y:l}="boolean"==typeof i?{x:i,y:i}:i;(0,O.Es)(()=>{if(!a&&!l||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=V(r(e),n);if(a||(i.x=0),l||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=et(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,l,n,r])}({activeNode:null!=J?Y.get(J):null,config:eC.layoutShiftCompensation,initialRect:eE,measure:ew.draggable.measure});let eT=eI(ek,ew.draggable.measure,eE),ej=eI(ek?ek.parentElement:null),eU=(0,S.useRef)({activatorEvent:null,active:null,activeNode:ek,collisionRect:null,collisions:null,droppableRects:ex,draggableNodes:Y,draggingNode:null,draggingNodeRect:null,droppableContainers:
40Q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eW=Q.getNodeFor(null==(t=eU.current.over)?void 0:t.id),eH=function(e){let{measure:t}=e,[r,n]=(0,S.useState)(null),i=eP({callback:(0,S.useCallback)(e=>{for(let{target:r}of e)if((0,O.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),o=(0,S.useCallback)(e=>{let r=ez(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[a,l]=(0,O.lk)(o);return(0,S.useMemo)(()=>({nodeRef:a,rect:r,setRef:l}),[r,a,l])}({measure:ew.dragOverlay.measure}),eQ=null!=(r=eH.nodeRef.current)?r:ek,e0=H?null!=(n=eH.rect)?n:eT:null,e1=!!(eH.nodeRef.current&&eH.rect),e2=(g=eN(o=e1?null:eT),V(o,g)),e3=eR(eQ?(0,O.zk)(eQ):null),e5=(a=H?null!=eW?eW:ek:null,y=(0,S.useRef)(a),x=(0,O.KG)(e=>a?e&&e!==eD&&a&&y.current&&a.parentNode===y.current.parentNode?e:ee(a):eD,[a]),(0,S.useEffect)(()=>{y.current=a},[a]),x),e4=function(e,t){void 0===t&&(t=X);let[r]=e,n=eR(r?(0,O.zk)(r):null),[i,o]=(0,S.useState)(eL);function a(){o(()=>e.length?e.map(e=>ea(e)?n:new ef(t(e),e)):eL)}let l=eP({callback:a});return(0,O.Es)(()=>{null==l||l.disconnect(),a(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),i}(e5),e6=eZ(D,{transform:{x:Z.x-e2.x,y:Z.y-e2.y,scaleX:1,scaleY:1},activatorEvent:em,active:ec,activeNodeRect:eT,containerNodeRect:ej,draggingNodeRect:e0,over:eU.current.over,overlayNodeRect:eH.rect,scrollableAncestors:e5,scrollableAncestorRects:e4,windowRect:e3}),e8=eO?(0,O.WQ)(eO,Z):null,e9=function(e){let[t,r]=(0,S.useState)(null),n=(0,S.useRef)(e),i=(0,S.useCallback)(e=>{let t=er(e.target);t&&r(e=>e?(e.set(t,eo(t)),new Map(e)):null)},[]);return(0,S.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let a=e.map(e=>{let t=er(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,eo(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=er(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,S.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,O.WQ)(e,t),R):eu(e):R,[e,t])}(e5),e7=e$(e9),te=e$(e9,[eT]),tt=(0,O.WQ)(e6,e7),tr=e0?G(e0,e6):null,tn=ec&&tr?P({active:ec,collisionRect:tr,droppableRects:ex,droppableContainers:eb,pointerCoordinates:e8}):null,ti=K(tn,"id"),[to,ta]=(0,S.useState)(null),tl=(l=e1?e6:(0,O.WQ)(e6,te),s=null!=(i=null==to?void 0:to.rect)?i:null,{...l,scaleX:s&&eT?s.width/eT.width:1,scaleY:s&&eT?s.height/eT.height:1}),ts=(0,S.useRef)(null),tu=(0,S.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==ed.current)return;let i=Y.get(ed.current);if(!i)return;let o=e.nativeEvent,a=new r({active:ed.current,activeNode:i,event:o,options:n,context:eU,onAbort(e){if(!Y.get(e))return;let{onDragAbort:t}=ey.current,r={id:e};null==t||t(r),F({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!Y.get(e))return;let{onDragPending:i}=ey.current,o={id:e,constraint:t,initialCoordinates:r,offset:n};null==i||i(o),F({type:"onDragPending",event:o})},onStart(e){let t=ed.current;if(null==t)return;let r=Y.get(t);if(!r)return;let{onDragStart:n}=ey.current,i={activatorEvent:o,active:{id:t,data:r.data,rect:ei}};(0,k.unstable_batchedUpdates)(()=>{null==n||n(i),W(_.Initializing),z({type:h.DragStart,initialCoordinates:e,active:t}),F({type:"onDragStart",event:i}),ep(ts.current),eg(o)})},onMove(e){z({type:h.DragMove,coordinates:e})},onEnd:l(h.DragEnd),onCancel:l(h.DragCancel)});function l(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:i}=eU.current,a=null;if(t&&i){let{cancelDrop:l}=ey.current;a={activatorEvent:o,active:t,collisions:r,delta:i,over:n},e===h.DragEnd&&"function"==typeof l&&await Promise.resolve(l(a))&&(e=h.DragCancel)}ed.current=null,(0,k.unstable_batchedUpdates)(()=>{z({type:e}),W(_.Uninitialized),ta(null),ep(null),eg(null),ts.current=null;let t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=ey.current[t];null==e||e(a),F({type:t,event:a})}})}}ts.current=a},[Y]),tc=(0,S.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=Y.get(n);null!==ed.current||!o||i.dndKit||i.defaultPrevented||!0===e(r,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},ed.current=n,tu(r,t))},[Y,tu]),td=(0,S.useMemo)(()=>N.reduce((e,t)=>
40{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:tc(e.handler,t)}))]},[]),[N,tc]);(0,S.useEffect)(()=>{if(!O.Sw)return;let e=N.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},N.map(e=>{let{sensor:t}=e;return t})),(0,O.Es)(()=>{eT&&U===_.Initializing&&W(_.Initialized)},[eT,U]),(0,S.useEffect)(()=>{let{onDragMove:e}=ey.current,{active:t,activatorEvent:r,collisions:n,over:i}=eU.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:tt.x,y:tt.y},over:i};(0,k.unstable_batchedUpdates)(()=>{null==e||e(o),F({type:"onDragMove",event:o})})},[tt.x,tt.y]),(0,S.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=eU.current;if(!e||null==ed.current||!t||!i)return;let{onDragOver:o}=ey.current,a=n.get(ti),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:l};(0,k.unstable_batchedUpdates)(()=>{ta(l),null==o||o(s),F({type:"onDragOver",event:s})})},[ti]),(0,O.Es)(()=>{eU.current={activatorEvent:em,active:ec,activeNode:ek,collisionRect:tr,collisions:tn,droppableRects:ex,draggableNodes:Y,draggingNode:eQ,draggingNodeRect:e0,droppableContainers:Q,over:to,scrollableAncestors:e5,scrollAdjustedTranslate:tt},ei.current={initial:e0,translated:tr}},[ec,ek,tn,tr,Y,eQ,e0,ex,Q,to,e5,tt]),function(e){let{acceleration:t,activator:r=v.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:a=5,order:l=b.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:r}=e,n=(0,O.ZC)(t);return(0,O.KG)(e=>{if(r||!n||!e)return eM;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[p.Backward]:e.x[p.Backward]||-1===i.x,[p.Forward]:e.x[p.Forward]||1===i.x},y:{[p.Backward]:e.y[p.Backward]||-1===i.y,[p.Forward]:e.y[p.Forward]||1===i.y}}},[r,t,n])}({delta:d,disabled:!o}),[m,g]=(0,O.$$)(),y=(0,S.useRef)({x:0,y:0}),w=(0,S.useRef)({x:0,y:0}),x=(0,S.useMemo)(()=>{switch(r){case v.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case v.DraggableRect:return i}},[r,i,s]),_=(0,S.useRef)(null),k=(0,S.useCallback)(()=>{let e=_.current;if(!e)return;let t=y.current.x*w.current.x,r=y.current.y*w.current.y;e.scrollBy(t,r)},[]),C=(0,S.useMemo)(()=>l===b.TreeOrder?[...u].reverse():u,[l,u]);(0,S.useEffect)(()=>{if(!o||!u.length||!x)return void g();for(let e of C){if((null==n?void 0:n(e))===!1)continue;let r=c[u.indexOf(e)];if(!r)continue;let{direction:i,speed:o}=function(e,t,r,n,i){let{top:o,left:a,right:l,bottom:s}=r;void 0===n&&(n=10),void 0===i&&(i=es);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=el(e),h={x:0,y:0},m={x:0,y:0},g={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+g.height?(h.y=p.Backward,m.y=n*Math.abs((t.top+g.height-o)/g.height)):!c&&s>=t.bottom-g.height&&(h.y=p.Forward,m.y=n*Math.abs((t.bottom-g.height-s)/g.height)),!f&&l>=t.right-g.width?(h.x=p.Forward,m.x=n*Math.abs((t.right-g.width-l)/g.width)):!d&&a<=t.left+g.width&&(h.x=p.Backward,m.x=n*Math.abs((t.left+g.width-a)/g.width)),{direction:h,speed:m}}(e,r,x,t,f);for(let e of["x","y"])h[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){g(),_.current=e,m(k,a),y.current=o,w.current=i;return}}y.current={x:0,y:0},w.current={x:0,y:0},g()},[t,k,n,g,o,a,JSON.stringify(x),JSON.stringify(h),m,u,C,c,JSON.stringify(f)])}({...eC,delta:Z,draggingRect:tr,pointerCoordinates:e8,scrollableAncestors:e5,scrollableAncestorRects:e4});let tf=(0,S.useMemo)(()=>({active:ec,activeNode:ek,activeNodeRect:eT,activatorEvent:em,collisions:tn,containerNodeRect:ej,dragOverlay:eH,draggableNodes:Y,droppableContainers:Q,droppableRects:ex,over:to,measureDroppableContainers:e_,scrollableAncestors:e5,scrollableAncestorRects:e4,measuringConfiguration:ew,measuringScheduled:eS,windowRect:e3}),[ec,ek,eT,em,tn,ej,eH,Y,Q,ex,to,e_,e5,e4,ew,eS,e3]),th=(0,S.useMemo)(()=>({activatorEvent:em,activators:td,active:ec,activeNodeRect:eT,ariaDescribedById:{draggable:ev},dispatch:z,draggableNodes:Y,over:to,measureDroppableContainers:e_}),[em,td,ec,eT,z,ev,Y,to,e_]);return S.createElement(M.Provider,{value:B},S.createElement(eq.Provider,{value:th},S.createElement(eJ.Provider,{value:tf},S.createElement(eX.Provider,{value:tl},A)),S.createElement(eY,{disabled:(null==E?void 0:E.restoreFocus)===!1})),S.createElement(j,{...E,hiddenTextDescribedById:ev}))}),e0=(0,S.createContext)(null),e1="button";function e2(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=(0,O.YG)("Draggable"),{activators:a,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,S.useContext)(eq),{role:h=e1,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===t,y=(0,S.useContext)(g?eX:e0),[v,b]=(0,O.lk)(),[w,x]=(0,O.lk)(),_=(0,S.useMemo)(()=>a.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[a,t]),k=(0,O.YN)(r);return(0,O.Es)(()=>(d.set(t,{id:t,key:o,node:v,activatorNode:w,data:k}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:s,activatorEvent:l,activeNodeRect:u,attributes:(0,S.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":n,"aria-pressed":!!g&&h===e1||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[n,h,m,g,p,c.draggable]),isDragging:g,listeners:n?void 0:_,node:v,over:f,setNodeRef:b,setActivatorNodeRef:x,transform:y}}function e3(){return(0,S.useContext)(eJ)}let e5={timeout:25};function e4(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e,o=(0,O.YG)("Droppable"),{active:a,dispatch:l,over:s,measureDroppableContainers:u}=(0,S.useContext)(eq),c=(0,S.useRef)({disabled:r}),d=(0,S.useRef)(!1),f=(0,S.useRef)(null),p=(0,S.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:y}={...e5,...i},v=(0,O.YN)(null!=g?g:n),b=eP({callback:(0,S.useCallback)(()=>
40{if(!d.current){d.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),p.current=null},y)},[y]),disabled:m||!a}),w=(0,S.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[x,_]=(0,O.lk)(w),k=(0,O.YN)(t);return(0,S.useEffect)(()=>{b&&x.current&&(b.disconnect(),d.current=!1,b.observe(x.current))},[x,b]),(0,S.useEffect)(()=>(l({type:h.RegisterDroppable,element:{id:n,key:o,disabled:r,node:x,rect:f,data:k}}),()=>l({type:h.UnregisterDroppable,key:o,id:n})),[n]),(0,S.useEffect)(()=>{r!==c.current.disabled&&(l({type:h.SetDroppableDisabled,id:n,key:o,disabled:r}),c.current.disabled=r)},[n,o,r,l]),{active:a,rect:f,isOver:(null==s?void 0:s.id)===n,node:x,over:s,setNodeRef:_}}function e6(e){let{animation:t,children:r}=e,[n,i]=(0,S.useState)(null),[o,a]=(0,S.useState)(null),l=(0,O.ZC)(r);return r||n||!l||i(l),(0,O.Es)(()=>{if(!o)return;let e=null==n?void 0:n.key,r=null==n?void 0:n.props.id;null==e||null==r?i(null):Promise.resolve(t(r,o)).then(()=>{i(null)})},[t,n,o]),S.createElement(S.Fragment,null,r,n?(0,S.cloneElement)(n,{ref:a}):null)}let e8={x:0,y:0,scaleX:1,scaleY:1};function e9(e){let{children:t}=e;return S.createElement(eq.Provider,{value:eH},S.createElement(eX.Provider,{value:e8},t))}let e7={position:"fixed",touchAction:"none"},te=e=>(0,O.kx)(e)?"transform 250ms ease":void 0,tt=(0,S.forwardRef)((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:o,className:a,rect:l,style:s,transform:u,transition:c=te}=e;if(!l)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...e7,width:l.width,height:l.height,top:l.top,left:l.left,transform:O.Ks.Transform.toString(d),transformOrigin:i&&n?function(e,t){let r=(0,O.e_)(e);if(!r)return"0 0";let n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}(n,l):void 0,transition:"function"==typeof c?c(n):c,...s};return S.createElement(r,{className:a,style:f,ref:t},o)}),tr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:r}}=e;return[{transform:O.Ks.Transform.toString(t)},{transform:O.Ks.Transform.toString(r)}]},sideEffects:(n={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,i={},{styles:o,className:a}=n;if(null!=o&&o.active)for(let[e,r]of Object.entries(o.active))void 0!==r&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=o&&o.dragOverlay)for(let[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[e,r]of Object.entries(i))t.node.style.setProperty(e,r);null!=a&&a.active&&t.node.classList.remove(a.active)}})},tn=0,ti=S.memo(e=>{var t;let{adjustScale:r=!1,children:n,dropAnimation:i,style:o,transition:a,modifiers:l,wrapperElement:s="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:y,over:v,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:_}=e3(),k=(0,S.useContext)(eX),C=(t=null==f?void 0:f.id,(0,S.useMemo)(()=>{if(null!=t)return++tn},[t])),E=eZ(l,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:y.rect,over:v,overlayNodeRect:y.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:k,windowRect:_}),T=eN(h),M=function(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return(0,O._q)((e,o)=>{if(null===t)return;let a=r.get(e);if(!a)return;let l=a.node.current;if(!l)return;let s=ez(o);if(!s)return;let{transform:u}=(0,O.zk)(o).getComputedStyle(o),c=Y(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:r,sideEffects:n,keyframes:i}={...tr,...e};return e=>{let{active:o,dragOverlay:a,transform:l,...s}=e;if(!t)return;let u={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},c={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/a.rect.height:1},d={x:l.x-u.x,y:l.y-u.y,...c},f=i({...s,active:o,dragOverlay:a,transform:{initial:l,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==n?void 0:n({active:o,dragOverlay:a,...s}),g=a.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==m||m(),e()}})}}(t);return ec(l,i.draggable.measure),d({active:{id:e,data:a.data,node:l,rect:i.draggable.measure(l)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(s)},droppableContainers:n,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:b}),A=T?y.setRef:void 0;return S.createElement(e9,null,S.createElement(e6,{animation:M},f&&C?S.createElement(tt,{key:C,id:f.id,ref:A,as:s,activatorEvent:d,adju
40stScale:r,className:u,transition:a,rect:T,style:{zIndex:c,...o},transform:E},n):null))})},45034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732);t.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:t,schema:r,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,r))return;let l=t.name("valid");t.forIn("key",o,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},l),t.if((0,n.not)(l),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(l)}}},45518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},45673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(68054);n.code='require("ajv/dist/runtime/equal").default',t.default=n},45817:(e,t,r)=>{"use strict";r.d(t,{a:()=>u});var n=r(19749),i=r(95155),o=r(36997),a=r(73299),l=r(53310),s=r(12115),u=e=>{let t,r,u=(0,n.c)(21),[c]=(0,o.DF)(),[d,f]=(0,s.useState)(null),[h,p]=(0,s.use
40State)(!1),[m,g,y]=(0,a.useDocumentDrawer)(e),{closeDrawer:v,drawerSlug:b}=y,{modalState:w}=(0,a.useModal)(),x;u[0]!==c?(x=()=>{c.read(()=>{f((0,l.vJq)()??(0,l.S1w)())}),p(!0)},u[0]=c,u[1]=x):x=u[1];let _=x,S;u[2]!==c||u[3]!==d?(S=()=>{d&&c.update(()=>{(0,l.n1P)(d.clone())},{discrete:!0,skipTransforms:!0})},u[2]=c,u[3]=d,u[4]=S):S=u[4];let k=S,O;u[5]!==v?(O=()=>{v()},u[5]=v,u[6]=O):O=u[6];let C=O,E,T;return u[7]!==b||u[8]!==w||u[9]!==k||u[10]!==h?(E=()=>{if(!h)return;let e=w[b];e&&!e?.isOpen&&(p(!1),setTimeout(()=>{k()},1))},T=[w,b,k,h],u[7]=b,u[8]=w,u[9]=k,u[10]=h,u[11]=E,u[12]=T):(E=u[11],T=u[12]),(0,s.useEffect)(E,T),u[13]!==g||u[14]!==_?(t=e=>(0,i.jsx)(g,{...e,onClick:_}),u[13]=g,u[14]=_,u[15]=t):t=u[15],u[16]!==m||u[17]!==C||u[18]!==b||u[19]!==t?(r={closeDocumentDrawer:C,DocumentDrawer:m,documentDrawerSlug:b,DocumentDrawerToggler:t},u[16]=m,u[17]=C,u[18]=b,u[19]=t,u[20]=r):r=u[20],r}},45970:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,_:()=>u});var n=r(12115),i=r(64105),o=r(65372),a=r(10365),l=r(51124);function s(e){var{legendPayload:t}=e,r=(0,a.j)(),o=(0,i.r)(),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{o||(null===s.current?r((0,l.Lx)(t)):s.current!==t&&r((0,l.c5)({prev:s.current,next:t})),s.current=t)},[r,o,t]),(0,n.useLayoutEffect)(()=>()=>{s.current&&(r((0,l.u3)(s.current)),s.current=null)},[r]),null}function u(e){var{legendPayload:t}=e,r=(0,a.j)(),i=(0,a.G)(o.fz),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{("centric"===i||"radial"===i)&&(null===s.current?r((0,l.Lx)(t)):s.current!==t&&r((0,l.c5)({prev:s.current,next:t})),s.current=t)},[r,i,t]),(0,n.useLayoutEffect)(()=>()=>{s.current&&(r((0,l.u3)(s.current)),s.current=null)},[r]),null}},45992:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(12115),i=r(92191);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=(0,n.useRef)((0,i.NF)(t)),o=(0,n.useRef)(e);return o.current!==e&&(r.current=(0,i.NF)(t),o.current=e),r.current}},46009:(e,t,r)=>{"use strict";r.d(t,{SettingsMenuButton:()=>s});var n=r(19749),i=r(95155),o=r(89286),a=r(73299),l=r(12115);let s=e=>{let t,r=(0,n.c)(3),{settingsMenu:l}=e,{t:s}=(0,o.d)();return l&&0!==l.length?(r[0]!==l||r[1]!==s?(t=(0,i.jsx)(a.Popup,{button:(0,i.jsx)(a.GearIcon,{ariaLabel:s("general:menu")}),className:"settings-menu-button",horizontalAlign:"left",id:"settings-menu",size:"small",verticalAlign:"bottom",children:l.map(u)}),r[0]=l,r[1]=s,r[2]=t):t=r[2],t):null};function u(e,t){return(0,i.jsx)(l.Fragment,{children:e},`settings-menu-item-${t}`)}},46197:(e,t,r)=>{"use strict";r.d(t,{y:()=>D});var n,i,o,a,l,s=r(12115),u=r(70841),c=r.n(u),d=r(49804),f=r(29722),h=r(43527),p=r(80600),m=r(45992),g=r(92191),y=r(33966),v=r(55359),b=r(75726);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k=(e,t,r,s,u)=>{var c=r-s;return(0,b.Y)(n||(n=S(["M ",",",""])),e,t)+(0,b.Y)(i||(i=S(["L ",",",""])),e+r,t)+(0,b.Y)(o||(o=S(["L ",",",""])),e+r-c/2,t+u)+(0,b.Y)(a||(a=S(["L ",",",""])),e+r-c/2-s,t+u)+(0,b.Y)(l||(l=S(["L ",","," Z"])),e,t)}
40,O={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C=e=>{var t=(0,h.e)(e,O),{x:r,y:n,upperWidth:i,lowerWidth:o,height:a,className:l}=t,{animationEasing:u,animationDuration:c,animationBegin:d,isUpdateAnimationActive:b}=t,w=(0,s.useRef)(null),[S,C]=(0,s.useState)(-1),E=(0,s.useRef)(i),T=(0,s.useRef)(o),M=(0,s.useRef)(a),A=(0,s.useRef)(r),N=(0,s.useRef)(n),P=(0,m.n)(e,"trapezoid-");if((0,s.useEffect)(()=>{if(w.current&&w.current.getTotalLength)try{var e=w.current.getTotalLength();e&&C(e)}catch(e){}},[]),r!==+r||n!==+n||i!==+i||o!==+o||a!==+a||0===i&&0===o||0===a)return null;var j=(0,f.$)("recharts-trapezoid",l);if(!b)return s.createElement("g",null,s.createElement("path",_({},(0,v.a)(t),{className:j,d:k(r,n,i,o,a)})));var I=E.current,D=T.current,$=M.current,R=A.current,L=N.current,z="0px ".concat(-1===S?1:S,"px"),F="".concat(S,"px ").concat(S,"px"),B=(0,y.dl)(["strokeDasharray"],c,u);return s.createElement(p.J,{animationId:P,key:P,canBegin:S>0,duration:c,easing:u,isActive:b,begin:d},e=>{var l=(0,g.GW)(I,i,e),u=(0,g.GW)(D,o,e),c=(0,g.GW)($,a,e),d=(0,g.GW)(R,r,e),f=(0,g.GW)(L,n,e);w.current&&(E.current=l,T.current=u,M.current=c,A.current=d,N.current=f);var h=e>0?{transition:B,strokeDasharray:F}:{strokeDasharray:z};return s.createElement("path",_({},(0,v.a)(t),{className:j,d:k(d,f,l,u,c),ref:w,style:x(x({},h),t.style)}
40))})},E=r(25281),T=r(11058),M=r(93972),A=r(37214),N=["option","shapeType","activeClassName","inActiveClassName"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function I(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return s.createElement(d.M,r);case"trapezoid":return s.createElement(C,r);case"sector":return s.createElement(E.h,r);case"symbols":if("symbols"===t)return s.createElement(M.i,r);break;case"curve":return s.createElement(A.Ip,r);default:return null}}function D(e){var t,{option:r,shapeType:n,activeClassName:i="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,N);if((0,s.isValidElement)(r))t=(0,s.cloneElement)(r,j(j({},a),(0,s.isValidElement)(r)?r.props:r));else if("function"==typeof r)t=r(a,a.index);else if(c()(r)&&"boolean"!=typeof r){var l=j(j({},a),r);t=s.createElement(I,{shapeType:n,elementProps:l})}else t=s.createElement(I,{shapeType:n,elementProps:a});return a.isActive?s.createElement(T.W,{className:i},t):s.createElement(T.W,{className:o},t)}},46574:(e,t,r)=>{"use strict";r.d(t,{P:()=>o});var n=r(2834),i=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function o(e,t){for(var r of new Set([...Object.keys(e),...Object.keys(t)]))if(i.has(r)){if(null==e[r]&&null==t[r])continue;if(!(0,n.bN)(e[r],t[r]))return!1}else{var o,a;if(o=e[r],a=t[r],(null!=o||null!=a)&&("number"==typeof o&&"number"==typeof a?o!==a&&(o==o||a==a):o!==a))return!1}return!0}},46716:(e,t,r)=>{"use strict";r.d(t,{Pi:()=>C,ZI:()=>A,dJ:()=>v,fi:()=>O,gA:()=>E,jL:()=>x,jd:()=>w,xi:()=>b});var n=r(21),i=r(38695),o=r(83489),a=r(53310),l=r(43971);function s(e,t){if(void 0!==document.caretRangeFromPoint){let r=document.caretRangeFromPoint(e,t);return null===r?null:{node:r.startContainer,offset:r.startOffset}}if("undefined"!==document.caretPositionFromPoint){let r=document.caretPositionFromPoint(e,t);return null===r?null:{node:r.offsetNode,offset:r.offset}}return null}let u="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=u&&"documentMode"in document?document.documentMode:null,d=u&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),f=!(!u||!("InputEvent"in window)||c)&&"getTargetRanges"in new window.InputEvent("input"),h=u&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),p=u&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,m=u&&/^(?=.*Chrome).*/i.test(navigator.userAgent),g=u&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&d&&!m,y=(0,a.guI)("DRAG_DROP_PASTE_FILE");class v extends a.fGB{static getType(){return"quote"}static clone(e){return new v(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,a.ZB7)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:k,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,a.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return b().updateFromJSON(e)}insertNewAfter(e,t){let r=(0,a.lJ7)(),n=this.getDirection();return r.setDirection(n),this.insertAfter(r,t),r}collapseAtStart(){let e=(0,a.lJ7)();
40return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function b(){return(0,a.pTq)(new v)}function w(e){return e instanceof v}class x extends a.fGB{__tag;static getType(){return"heading"}static clone(e){return new x(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,r=document.createElement(t),n=e.theme.heading;if(void 0!==n){let e=n[t];(0,a.ZB7)(r,e)}return r}updateDOM(e,t,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:S,priority:0}),h2:e=>({conversion:S,priority:0}),h3:e=>({conversion:S,priority:0}),h4:e=>({conversion:S,priority:0}),h5:e=>({conversion:S,priority:0}),h6:e=>({conversion:S,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&_(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>_(e)?{conversion:e=>({node:O("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,a.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return O(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let r=e?e.anchor.offset:0,n=this.getLastDescendant(),i=n&&(!e||e.anchor.key!==n.getKey()||r!==n.getTextContentSize())&&e?O(this.getTag()):(0,a.lJ7)(),o=this.getDirection();if(i.setDirection(o),this.insertAfter(i,t),0===r&&!this.isEmpty()&&e){let e=(0,a.lJ7)();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?(0,a.lJ7)():O(this.getTag());
40return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function _(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function S(e){let t=e.nodeName.toLowerCase(),r=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(r=O(t),null!==e.style&&((0,a.dxY)(e,r),r.setFormat(e.style.textAlign))),{node:r}}function k(e){let t=b();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,a.dxY)(e,t)),{node:t}}function O(e="h1"){return(0,a.pTq)(new x(e))}function C(e){return e instanceof x}function E(e){let t=null;if((0,l.xj)(e,DragEvent)?t=e.dataTransfer:(0,l.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let r=t.types,n=r.includes("Files"),i=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),i]}function T(e){let t=(0,a.xL4)(e);return(0,a.Cyw)(t)}function M(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function A(e){return(0,a.Sdt)(e.registerCommand(a.d8p,e=>{let t=(0,a.vJq)();return!!(0,a.RTZ)(t)&&(t.clear(),!0)},a.jZM),e.registerCommand(a.WuB,e=>{let t=(0,a.vJq)();return(0,a.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,a.RTZ)(t)&&(t.deleteNodes(),!0)},a.jZM),e.registerCommand(a.hi0,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.deleteWord(e),!0)},a.jZM),e.registerCommand(a.viC,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.deleteLine(e),!0)},a.jZM),e.registerCommand(a.bM3,t=>{let r=(0,a.vJq)();if("string"==typeof t)null!==r&&r.insertText(t);else{if(null===r)return!1;let i=t.dataTransfer;if(null!=i)(0,n.Bi)(i,r,e);else if((0,a.I2P)(r)){let e=t.data;return e&&r.insertText(e),!0}}return!0},a.jZM),e.registerCommand(a.$ey,()=>{let e=(0,a.vJq)();return!!(0,a.I2P)(e)&&(e.removeText(),!0)},a.jZM),e.registerCommand(a.mB,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.formatText(e),!0)},a.jZM),e.registerCommand(a.fUS,e=>{let t=(0,a.vJq)();if(!(0,a.I2P)(t)&&!(0,a.RTZ)(t))return!1;for(let r of t.getNodes()){let t=(0,a.BtT)(r,e=>(0,a.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},a.jZM),e.registerCommand(a.FEN,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.insertLineBreak(e),!0)},a.jZM),e.registerCommand(a.XKQ,()=>{let e=(0,a.vJq)();return!!(0,a.I2P)(e)&&(e.insertParagraph(),!0)},a.jZM),e.registerCommand(a.YW5,()=>{let e=(0,a.ev7)(),t=(0,a.vJq)();return(0,a.I2P)(t)&&(e.setFormat(t.format),e.setStyle(t.style)),(0,a.H2A)([e]),!0},a.jZM),e.registerCommand(a.PiT,()=>(0,l.Jy)(e=>{let t=e.getIndent();e.setIndent(t+1)}),a.jZM),e.registerCommand(a.sik,()=>(0,l.Jy)(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),a.jZM),e.registerCommand(a.UDz,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}else if((0,a.I2P)(t)){let r=(0,a.B$P)(t.focus,!0);if(!e.shiftKey&&(0,a.Cyw)(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},a.jZM),e.registerCommand(a.bbF,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectNext(0,0),!0}else if((0,a.I2P)(t)){let r;if("root"===(r=t.focus).key&&r.offset===(0,a.NiT)().getChildrenSize())return e.preventDefault(),!0;let n=(0,a.B$P)(t.focus,!1);if(!e.shiftKey&&(0,a.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},a.jZM),e.registerCommand(a.AX0,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,o.dt)(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!(0,a.I2P)(t))return!1;if((0,o.Cb)(t,!0)){let r=e.shiftKey;return e.preventDefault(),(0,o.Rk)(t,r,!0),!0}return!1},a.jZM),e.registerCommand(a.JM3,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,o.dt)(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!(0,a.I2P)(t))return!1;let r=e.shiftKey;return!!(0,o.Cb)(t,!1)&&(e.preventDefault(),(0,o.Rk)(t,r,!1),!0)},a.jZM),e.registerCommand(a.gCZ,t=>{if(T(t.target))return!1;let r=(0,a.vJq)();if((0,a.I2P)(r)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let r=t.getNode();if((0,a.hVZ)(r))return!1;let n=(0,l.mB)(r);return n.getIndent()>0&&(n.is(r)||r.is(n.getFirstDescendant()))}(r))return t.preventDefault(),e.dispatchCommand(a.sik,void 0);if(p&&"ko-KR"===navigator.language)return!1}else if(!(0,a.RTZ)(r))return!1;return t.preventDefault(),e.dispatchCommand(a.WuB,!0)},a.jZM),e.registerCommand(a.w$Z,t=>{if(T(t.target))return!1;let r=(0,a.vJq)();return!(!(0,a.I2P)(r)&&!(0,a.RTZ)(r))&&(t.preventDefault(),e.dispatchCommand(a.WuB,!1))},a.jZM),e.registerCommand(a.RTo,t=>{let r=(0,a.vJq)();if(!(0,a.I2P)(r))return!1;if(M(r),null!==t){if((p||h||g)&&f)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(a.FEN,!1)}return e.dispatchCommand(a.XKQ,void 0)},a.jZM),e.registerCommand(a.Q$N,()=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(e.blur(),!0)},a.jZM),e.registerCommand(a.Sr4,t=>{let[,r]=E(t);if(r.length>0){let n=s(t.clientX,t.clientY);if(null!==n){let{offset:t,node:i}=n,o=(0,a.xL4)(i);if(null!==o){let e=(0,a.uTE)();if((0,a.kFe)(o))e.anchor.set(o.getKey(),t,"text"),e.focus.set(o.getKey(),t,"text");else{let t=o.getParentOrThrow().getKey(),r=o.getIndexWithinParent()+1;e.anchor.set(t,r,"element"),e.focus.set(t,r,"element")}let r=(0,a.CaD)(e);(0,a.n1P)(r)}e.dispatchCommand(y,r)}return t.preventDefault(),!0}let n=(0,a.vJq)();return!!(0,a.I2P)(n)},a.jZM),e.registerCommand(a.TgX,e=>{let[t]=E(e),r=(0,a.vJq)();return!(t&&!(0,a.I2P)(r))},a.jZM),e.registerCommand(a.riq,e=>{let[t]=E(e),r=(0,a.vJq)();if(t&&!(0,a.I2P)(r))return!1;let n=s(e.clientX,e.clientY);if(null!==n){let t=(0,a.xL4)(n.node);(0,a.Cyw)(t)&&e.preventDefault()}return!0},a.jZM),e.registerCommand(a.HYn,()=>((0,a.e1k)(),!0),a.jZM),e.registerCommand(a.u5G,t=>((0,n.lW)(e,(0,l.xj)(t,ClipboardEvent)?t:null),!0),a.jZM),e.registerCommand(a.VSO,t=>((async function(e,t){await (0,n.lW)(t,(0,l.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,a.vJq)();
40(0,a.I2P)(e)?e.removeText():(0,a.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),a.jZM),e.registerCommand(a.waI,t=>{let[,r,i]=E(t);return r.length>0&&!i?(e.dispatchCommand(y,r),!0):!((0,a.vAA)(t.target)&&(0,a.Z$U)(t.target))&&null!==(0,a.vJq)()&&(t.preventDefault(),e.update(()=>{let r=(0,a.vJq)(),i=(0,l.xj)(t,InputEvent)||(0,l.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==r&&(0,n.Bi)(i,r,e)},{tag:a.fwY}),!0)},a.jZM),e.registerCommand(a.Huu,e=>{let t=(0,a.vJq)();return(0,a.I2P)(t)&&M(t),!1},a.jZM),e.registerCommand(a.OXk,e=>{let t=(0,a.vJq)();return(0,a.I2P)(t)&&M(t),!1},a.jZM))}(0,a.vE9)({conflictsWith:["@lexical/plain-text"],dependencies:[i.P],name:"@lexical/rich-text",nodes:()=>[x,v],register:A})},46776:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let n={};function i(){return n}},46792:(e,t,r)=>{"use strict";r.d(t,{A:()=>ek});var n=r(82159),i=r(76865),o=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:r,...n}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},a=/^\s*>\s$/,l=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return o("blockquote",{...(0,n.KV)(this.options.HTMLAttributes,e),children:o("slot",{})})},parseMarkdown:(e,t)=>{var r;let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let r=[];return e.content.forEach((e,n)=>{var i,o;let a=(null!=(o=null==(i=t.renderChild)?void 0:i.call(t,e,n))?o:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?">":`> ${e}`);r.push(a.join("\n"))}),r.join(` 41> 42`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>((e,t)=>{var r;let{state:n,view:o}=e,{selection:a}=n;if(!a.empty)return!1;let{$from:l}=a;if(0!==l.parentOffset)return!1;let s=l.depth-1;if(s<0)return!1;let u=l.node(s),c=l.index(s);if(0===c)return!1;if(u.type===t)return e.commands.lift(t.name);let d=u.child(c-1);if(d.type!==t||!(null==(r=d.lastChild)?void 0:r.isTextblock))return!1;let f=l.before(),h=f-1-1,{tr:p}=n;return p.delete(f,l.after()).insert(h,l.parent.content),p.setSelection(i.U3.create(p.doc,h)),o.dispatch(p.scrollIntoView()),!0})(this.editor,this.type)}}
42,addInputRules(){return[(0,n.tG)({find:a,type:this.type})]}}),s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,u=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,d=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,f=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return o("strong",{...(0,n.KV)(this.options.HTMLAttributes,e),children:o("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
42,addInputRules(){return[(0,n.OX)({find:s,type:this.type}),(0,n.OX)({find:c,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:u,type:this.type}),(0,n.Zc)({find:d,type:this.type})]}}),h=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&"`"===e[t.index-1]?null:{index:t.index,text:t[0],replaceWith:t[1]}},p=e=>{let t,r=/`([^`]+)`(?!`)/g,n=[];for(;null!==(t=r.exec(e));)t.index>0&&"`"===e[t.index-1]||n.push({index:t.index,text:t[0],replaceWith:t[1]});return n},m=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}}
42,addInputRules(){return[(0,n.OX)({find:h,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:p,type:this.type})]}}),g=/^```([a-z]+)?[\s\n]$/,y=/^~~~([a-z]+)?[\s\n]$/,v=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:r}=this.options;if(!r)return null;let n=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,n.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return(null==(r=e.raw)?void 0:r.startsWith("```"))===!1&&(null==(n=e.raw)?void 0:n.startsWith("~~~"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.language)||"";return e.content?[`\`\`\`${n}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${n} 43 44\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!r||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:4,{state:n}=e,{selection:i}=n,{$from:o,empty:a}=i;if(o.parent.type!==this.type)return!1;let l=" ".repeat(r);return a?e.commands.insertContent(l):e.commands.command(({tr:e})=>{let{from:t,to:r}=i,o=n.doc.textBetween(t,r,"\n","\n").split("\n").map(e=>l+e).join("\n");return e.replaceWith(t,r,n.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:4,{state:n}=e,{selection:o}=n,{$from:a,empty:l}=o;return a.parent.type===this.type&&(l?e.commands.command(({tr:e})=>{var t;let{pos:o}=a,l=a.start(),s=a.end(),u=n.doc.textBetween(l,s,"\n","\n").split("\n"),c=0,d=0,f=o-l;for(let e=0;e<u.length;e+=1){if(d+u[e].length>=f){c=e;break}d+=u[e].length+1}let h=Math.min(((null==(t=u[c].match(/^ */))?void 0:t[0])||"").length,r);if(0===h)return!0;let p=l;for(let e=0;e<c;e+=1)p+=u[e].length+1;return e.delete(p,p+h),o-p<=h&&e.setSelection(i.U3.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:i}=o,a=n.doc.textBetween(t,i,"\n","\n").split("\n").map(e=>{var t;let n=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,r);return e.slice(n)}).join("\n");return e.replaceWith(t,i,n.schema.text(a)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:r}=t,{$from:n,empty:i}=r;if(!i||n.parent.type!==this.type)return!1;let o=n.parentOffset===n.parent.nodeSize-2,a=n.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:r,doc:n}=t,{$from:o,empty:a}=r;if(!a||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;let l=o.after();return void 0!==l&&(n.nodeAt(l)?e.commands.command(({tr:e})=>(e.setSelection(i.LN.near(n.resolve(l))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,n.JJ)({find:g,type:this.type,getAttributes:e=>({language:e[1]})}
44),(0,n.JJ)({find:y,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),o=n?JSON.parse(n):void 0,a=null==o?void 0:o.mode;if(!r||!a)return!1;let{tr:l,schema:s}=e.state,u=s.text(r.replace(/\r\n?/g,"\n"));return l.replaceSelectionWith(this.type.create({language:a},u)),l.selection.$from.parent.type!==this.type&&l.setSelection(i.U3.near(l.doc.resolve(Math.max(0,l.selection.from-2)))),l.setMeta("paste",!0),e.dispatch(l),!0}}})]}}),b=n.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),w=n.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,n.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>` 45`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:a}=n.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&o){let t=l.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.level)?parseInt(e.attrs.level,10):1,i="#".repeat(n);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
45)\\s$`),type:this.type,getAttributes:{level:e}}))}}),_=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$to:o}=r,a=e();return(0,n.BQ)(r)?a.insertContentAt(o.pos,{type:this.name}):a.insertContent({type:this.name}),a.command(({state:e,tr:t,dispatch:r})=>{if(r){let{$to:r}=t.selection,n=r.end();if(r.nodeAfter)r.nodeAfter.isTextblock?t.setSelection(i.U3.create(t.doc,r.pos+1)):r.nodeAfter.isBlock?t.setSelection(i.nh.create(t.doc,r.pos)):t.setSelection(i.U3.create(t.doc,r.pos));else{let o=e.schema.nodes[this.options.nextNodeType]||r.parent.type.contentMatch.defaultType,a=null==o?void 0:o.create();a&&(t.insert(n,a),t.setSelection(i.U3.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.Ce)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
45ype})]}}),S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,k=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,O=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,C=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,E=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
45,addInputRules(){return[(0,n.OX)({find:S,type:this.type}),(0,n.OX)({find:O,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:k,type:this.type}),(0,n.Zc)({find:C,type:this.type})]}}),T=r(59265),M=r(27050),A=Object.defineProperty,N="textStyle",P=/^\s*([-+*])\s$/,j=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(N)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:P,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:P,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(N),editor:this.editor})),[e]}}),I=(e,t)=>n.YY.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let r=()=>{let r;return r=this.editor,((e,t,r,n)=>{let i=((e,t,r)=>{let{selection:n}=e;if(!n.empty)return null;let{$from:i}=n;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let o=-1;for(let e=i.depth;e>0;e-=1)if(i.node(e).type.name===t){o=e;break}if(o<0)return null;let a=i.node(o),l=i.index(o);if(l+1>=a.childCount)return null;let s=a.child(l+1);if(!r.includes(s.type.name))return null;let u=e.schema.nodes[t],c=!1;if(s.forEach(e=>{e.type===u&&e.childCount>1&&(c=!0)}),!c)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!r.includes(d.type.name))return null;let f=[];
45return(d.forEach(e=>{f.push(e)}),0===f.length)?null:{listItemDepth:o,nestedList:d,nestedListPos:i.after(),insertPos:i.after(o),items:f}})(e,r,n);if(!i)return!1;let{selection:o}=e,{nestedList:a,nestedListPos:l,insertPos:s,items:u}=i,c=e.tr;c.delete(l,l+a.nodeSize);let d=c.mapping.map(s);return c.insert(d,M.FK.from(u)),c.setSelection(o.map(c.doc,c.mapping)),t&&t(c),!0})(r.state,r.view.dispatch,e,t)};return{Delete:r,"Mod-Delete":r}}}),D=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],$="abcdefghijklmnopqrstuvwxyz",R=String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;function L(e){let t=e,r="";for(let[e,n]of D)for(;t>=e;)r+=n,t-=e;return r}function z(e){return L(e).toUpperCase()}function F(e){let t=e.toLowerCase(),r=0,n=0;for(;r<t.length;){let e=!1;for(let[i,o]of D)if(t.startsWith(o,r)){n+=i,r+=o.length,e=!0;break}if(!e)return 0}return n}function B(e){if(e<=26)return $[e-1];let t=Math.floor((e-1)/26)-1,r=(e-1)%26;return t<0?$[r]:$[t]+$[r]}function K(e){if(!(!e||/^\d+$/.test(e))){if(function(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=F(e);return!(t<=0)&&(e===e.toLowerCase()?L(t):z(t))===e}(e))return e===e.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(e))return"a";if(/^[A-Z]{1,2}$/.test(e))return"A"}}function U(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=K(e);if("i"===t||"I"===t)return F(e);if("a"===t||"A"===t){let t,r=1===(t=e.toLowerCase()).length?t.charCodeAt(0)-97+1:2===t.length?(t.charCodeAt(0)-97+1)*26+(t.charCodeAt(1)-97)+1:0;return r>0?r:1}let r=parseInt(e,10);return Number.isNaN(r)?1:r}var W=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r,n,i,o;if("list_item"!==e.type)return[];let a=null!=(r=t.parseBlockChildren)?r:t.parseChildren,l=[];if(e.tokens&&e.tokens.length>0){let r;if(r=null==(n=e.tokens)?void 0:n[0],e.text&&(null==(i=e.tokens)?void 0:i.length)===1&&(null==r?void 0:r.type)==="list"&&r.ordered&&r.raw===e.text)return{type:"listItem",content:[{type:"paragraph",content:(o=e.text||"",t.tokenizeInline?t.parseInline(t.tokenizeInline(o)):t.parseInline([{type:"text",raw:o,text:o}]))}]};if(e.tokens.some(e=>"paragraph"===e.type))l=a(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(l=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=a(e.tokens.slice(1));l.push(...t)}}else l=a(e.tokens)}}return 0===l.length&&(l=[{type:"paragraph",content:[]}]),{type:"listItem",content:l}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r,n,i;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let o=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return function(e,t,r=". "){let n=t+1;if(!e||"1"===e)return`${n}${r}`;switch(e){case"a":return`${B(n)}${r}`;case"A":return`${B(n).toUpperCase()}${r}`;case"i":return`${L(n)}${r}`;case"I":return`${z(n)}${r}`;default:return`${n}${r}`}}(null==(i=null==(n=e.meta)?void 0:n.parentAttrs)?void 0:i.type,o-1+(e.index||0),". ")}return"- "},r),addExtensions(){return[I(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),H={},q={findListItemPos:()=>V,getNextListDepth:()=>G,handleBackspace:()=>Z,handleDelete:()=>ee,hasListBefore:()=>Y,hasListItemAfter:()=>et,hasListItemBefore:()=>er,listItemHasSubList:()=>en,nextListIsDeeper:()=>X,nextListIsHigher:()=>Q};for(var J in q)A(H,J,{get:q[J],enumerable:!0});var V=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),o=r.depth,a=r.pos,l=null;for(;o>0&&null===l;)r.node(o).type===i?l=o:(o-=1,a-=1);return null===l?null:{$pos:t.doc.resolve(a),depth:l}},G=(e,t)=>{let r=V(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},Y=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),o=e.doc.resolve(i).node();return!!o&&!!r.includes(o.type.name)}
45,Z=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&Y(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let o=i.at(-1);if(!o)return!1;let a=e.state.doc.resolve(n.start()+o.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},a.end()).joinForward().run()}return!!(0,n.rU)(e.state,t)&&!!(0,n.J_)(e.state)&&e.chain().liftListItem(t).run()},X=(e,t)=>{let r=G(e,t),n=V(e,t);return!!n&&!!r&&r>n.depth},Q=(e,t)=>{let r=G(e,t),n=V(e,t);return!!n&&!!r&&r<n.depth},ee=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:o}=r;return!(!r.empty&&i.sameParent(o))&&(X(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():Q(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},et=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},er=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},en=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),o=!1;return r.descendants(e=>{e.type===i&&(o=!0)}),o},ei=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&ee(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&ee(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&Z(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&Z(e,r,n)&&(t=!0)}),t}}}}),eo=RegExp(`^(\\s*)(${R})([.)])\\s+(.*)$`),ea=/^\s/,el={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/},es=RegExp(`^(${R})([.)])\\s+(.+)$`),eu="textStyle",ec=/^(\d+)\.\s$/;function ed(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}var ef=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute("type");if(t)return t;let r=e.getAttribute("style");if(r){let e=ed(r);if(e)return e}let n=e.querySelector("li");if(n){let e=n.getAttribute("style");if(e){let t=ed(e);if(t)return t}}return null}}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,type:r,...i}=e,o=(0,n.KV)(this.options.HTMLAttributes,i);return 1!==t&&(o.start=t),r&&"1"!==r&&(o.type=r),["ol",o,0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{var r;if("list"!==e.type||!e.ordered)return[];let n=e.start||1,i=e.typeMarker,o=e.items?(r=e.items,r.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})):[],a={};return(1!==n&&(a.start=n),i&&(a.type=i),Object.keys(a).length>0)?{type:"orderedList",attrs:a,content:o}:{type:"orderedList",content:o}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(e,t,r)=>{var n,i;let o=e.split("\n"),[a,l]=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],o=i.match(eo);if(!o)break;let[,a,l,s,u]=o,c=a.length,d=parseInt(l,10),f=isNaN(d)?K(l):void 0,h=isNaN(d)?U(l):d,p=[u],m=r+1,g=[i],y=!1;for(;m<e.length;){let t=e[m];if(t.match(eo))break;if(""===t.trim())g.push(t),p.push(""),y=!0,m+=1;else if(t.match(ea)){let e=t.length-t.trimStart().length,r=c+l.length+1;g.push(t),p.push(t.slice(Math.min(e,r))),m+=1}else{if(y||function(e){return Object.values(el).some(t=>t.test(e))}(t))break;g.push(t),p.push(t),m+=1}}t.push({indent:c,number:h,type:f,content:p.join("\n").trim(),contentLines:p,raw:g.join("\n")}),n=m,r=m}return[t,n]}(o);if(0===a.length)return;let s=function e(t,r,n){let i=[],o=0;for(;o<t.length;){let a=t[o];if(a.indent===r){let{paragraphLines:l,blockLines:s}=function(e){let t=[],r=[],n=!1;
45return e.forEach(e=>{let i;if(n)return void r.push(e);if(""===e.trim()||t.length>0&&(i=e.trimStart(),el.bulletItem.test(i)||eo.test(i.trimStart())||el.heading.test(i)||el.thematicBreak.test(i)&&!i.startsWith("-")||/^>\s?/.test(i)||el.codeFence.test(i))){n=!0,r.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:r}}(a.contentLines),u=l.join("\n").trim(),c=[];u&&c.push({type:"paragraph",raw:u,tokens:n.inlineTokens(u)});let d=s.join("\n").trim();if(d){let e=n.blockTokens(d);c.push(...e)}let f=o+1,h=[];for(;f<t.length&&t[f].indent>r;)h.push(t[f]),f+=1;if(h.length>0){let t=Math.min(...h.map(e=>e.indent)),r=e(h,t,n);c.push({type:"list",ordered:!0,start:h[0].number,typeMarker:h[0].type,items:r,raw:h.map(e=>e.raw).join("\n")})}i.push({type:"list_item",raw:a.raw,tokens:c}),o=f}else o+=1}return i}(a,a[0].indent,r);if(0!==s.length)return{type:"list",ordered:!0,start:(null==(n=a[0])?void 0:n.number)||1,typeMarker:null==(i=a[0])?void 0:i.type,items:s,raw:o.slice(0,l).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(eu)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins:()=>[new i.k_({props:{handlePaste:(e,t)=>
45{var r,n;let i=null==(r=t.clipboardData)?void 0:r.getData("text/html");if(null==i?void 0:i.trim())return!1;let o=null==(n=t.clipboardData)?void 0:n.getData("text/plain");if(!o)return!1;let a=function(e){let t=e.split("\n").filter(e=>e.trim().length>0);if(0===t.length)return null;let r=[];for(let e of t){let t=e.trim().match(es);if(!t)return null;r.push({marker:t[1],content:t[3]})}return!function(e){var t;if(0===e.length)return!1;let r=null!=(t=K(e[0]))?t:"numeric",n=U(e[0]);if(n<1)return!1;for(let t=0;t<e.length;t++){let i=function(e,t){if("numeric"===e)return String(t);switch(e){case"a":return B(t);case"A":return B(t).toUpperCase();case"i":return L(t);case"I":return z(t);default:return String(t)}}(r,n+t);if(e[t]!==i)return!1}return!0}(r.map(e=>e.marker))?null:{type:"orderedList",attrs:function(e){let{type:t,start:r}={type:K(e),start:U(e)},n={};return t&&(n.type=t),1!==r&&(n.start=r),n}(r[0].marker),content:r.map(e=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:e.content}]}]}))}}(o);if(!a)return!1;try{let t=e.state.schema.nodeFromJSON(a),r=e.state.tr.replaceSelectionWith(t);return e.dispatch(r),!0}catch{return!1}}}})],addInputRules(){let e=(e,t)=>(!t.attrs.type||"1"===t.attrs.type)&&t.childCount+t.attrs.start===+e[1],t=(0,n.tG)({find:ec,type:this.t
45ype,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,n.tG)({find:ec,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(eu)}),joinPredicate:e,editor:this.editor})),[t]}}),eh=/^\s*(\[([( |x])?\])\s$/,ep=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",o=`- [${i}] `;return(0,n.kj)(e,t,o)},addExtensions(){return this.options.nested?[I(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let o=document.createElement("li"),a=document.createElement("label"),l=document.createElement("span"),s=document.createElement("input"),u=document.createElement("div"),c=e=>{var t,r;s.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,s.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};c(e),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",e=>e.preventDefault()),s.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(s.checked=!s.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{o.setAttribute(e,t)}),o.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,l),o.append(a,u),Object.entries(t).forEach(([e,t])=>{o.setAttribute(e,t)});let d=new Set(Object.keys(t));return{dom:o,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;o.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,c(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),a=new Set(Object.keys(r)),l=this.options.HTMLAttributes;return d.forEach(e=>{a.has(e)||(e in l?o.setAttribute(e,l[e]):o.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in l?o.setAttribute(e,l[e]):o.removeAttribute(e):o.setAttribute(e,t)}),d=a,!0}}}}
45,addInputRules(){return[(0,n.tG)({find:eh,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),em=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(t){let n={type:"taskList",raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[n,...r.blockTokens(i)]:[n]}return r.blockTokens(e)},o=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(j.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(W.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(ei.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(ef.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(ep.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(em.configure(this.options.taskList)),e}});var eg=" ",ey=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);let n=t.parseInline(r);return 1===r.length&&"text"===r[0].type&&(r[0].raw===eg||r[0].text===eg||"\xa0"===r[0].raw||"\xa0"===r[0].text)&&1===n.length&&"text"===n[0].type&&(n[0].text===eg||"\xa0"===n[0].text)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,i;if(!e)return"";let o=Array.isArray(e.content)?e.content:[];if(0===o.length){let e=Array.isArray(null==(n=null==r?void 0:r.previousNode)?void 0:n.content)?r.previousNode.content:[];return(null==(i=null==r?void 0:r.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?eg:""}return t.renderChildren(o)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ev=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,eb=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,ew=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}}
45,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:ev,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:eb,type:this.type})]}}),ex=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),e_=r(83694),eS=r(62678),ek=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;let i=[];return!1!==this.options.bold&&i.push(f.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(l.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(j.configure(this.options.bulletList)),!1!==this.options.code&&i.push(m.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(v.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(eS.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(eS.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(eS.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(_.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(E.configure(this.options.italic)),!1!==this.options.listItem&&i.push(W.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(ei.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(T.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(ef.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(ey.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(ew.configure(this.options.strike)),!1!==this.options.text&&i.push(ex.configure(this.options.text)),!1!==this.options.underline&&i.push(e_.z.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push(eS.JU.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},47497:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},47834:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},48035:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var n=r(12115),i=r(95295),o=r(80598),a=["axis","item"],l=(0,n.forwardRef)((e,t)=>n.createElement(o.P,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},48418:(e,t)=>{"use strict";function r(e){let t,r=e.length,n=0,i=0;for(;i<r;)n++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r&&(64512&(t=e.charCodeAt(i)))==56320&&i++;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},48746:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(24650),i=r(92191),o=(e,t,r)=>{if(null!=e){var{scale:o,type:a}=e;if("auto"===o)return"category"===a&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>
45=0||r.indexOf("ComposedChart")>=0&&!t)?"point":"category"===a?"band":"linear";if("string"==typeof o)return"scale".concat((0,i.Zb)(o))in n?o:"point"}}},48796:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(97697);t.toNumber=function(e){return n.isSymbol(e)?NaN:Number(e)}},48809:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>a});var n=r(19749),i=r(95155),o=r(73299);r(12115);let a=()=>{let e,t=(0,n.c)(2),{navOpen:r}=(0,o.useNav)();return t[0]!==r?(e=(0,i.jsx)(o.Hamburger,{closeIcon:"collapse",isActive:r}),t[0]=r,t[1]=e):e=t[1],e}},48858:()=>{},49304:(e,t,r)=>{"use strict";var n=r(26801),i=r(81852),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|h(n,i),s=a(o),u=s.write(n,i);return u!==o&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),l.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return l.from(c,t,r);var p=function(e){if(l.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(i)return n?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,a,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=A[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<l;
vendor: 12,392 bytes, line 45
45o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+s>l&&(r=l-s),o=r;o>=0;o--){for(var d=!0,f=0;f<s;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(M(o,Uint8Array)&&(o=l.from(o)),!l.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:+(a<o)},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,l,s,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(s=(31&u)<<6|63&o)>127&&(c=s);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(s=(15&u)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:o=e[i+1],a=e[i+2],l=e[i+3],(192&o)==128&&(192&a)==128&&(192&l)==128&&(s=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",m=0;m<h;)p+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return p}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,o){return t*=1,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t*=1,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,l,s,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var l,s=parseInt(t.substr(2*a,2),16);if((l=s)!=l)break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,T(O(e,this.length-i),this,i,o);case"ascii":return a=t,l=r,T(C(e),this,a,l);case"latin1":case"binary":return function(e,t,r,n){return T(C(t),e,r,n)}(this,e,t,r);case"base64":return s=t,u=r,T(E(e),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,T(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,l=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===l&&0!==this[t+o-1]&&(l=1),this[t+o]=(e/a|0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,l=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/a|0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=l.isBuffer(e)?e:l.from(e,n),s=a.length;
45if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var k=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},49432:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(95155),i=r(12115),o=r(19749);r(4879);let a=e=>{let{alignCaret:t="center",boundingRef:r,children:a,className:l,delay:s=350,position:u,show:c=!0,staticPositioning:d=!1}=e,[f,h]=i.useState(c),[p,m]=i.useState("top"),[g,y]=((e,t)=>{let r,n,a,l=(0,o.c)(8),{root:s,rootMargin:u,threshold:c}=void 0===e?{}:e,[d,f]=(0,i.useState)(),[h,p]=(0,i.useState)(null),m=(0,i.useRef)("u">typeof window&&"IntersectionObserver"in window&&!t?new window.IntersectionObserver(e=>{let[t]=e;return f(t)},{root:void 0===s?null:s,rootMargin:void 0===u?"0px":u,threshold:void 0===c?0:c}):null);return l[0]!==t||l[1]!==h?(r=()=>{if(t)return;let{current:e}=m;return e.disconnect(),h&&e.observe(h),()=>e.disconnect()},n=[h,t],l[0]=t,l[1]=h,l[2]=r,l[3]=n):(r=l[2],n=l[3]),(0,i.useEffect)(r,n),l[4]!==d||l[5]!==h||l[6]!==p?(a=[p,d,h],l[4]=d,l[5]=h,l[6]=p,l[7]=a):a=l[7],a})({root:r?.current||null,rootMargin:"-145px 0px 0px 100px",threshold:0},d);return(0,i.useEffect)(()=>{let e;return s&&c?e=setTimeout(()=>{h(c)},s):h(c),()=>{e&&clearTimeout(e)}},[c,s]),(0,i.useEffect)(()=>{d||m(y?.isIntersecting?"top":"bottom")},[y,d]),(0,n.jsxs)(i.Fragment,{children:[!d&&(0,n.jsx)("aside",{"aria-hidden":"true",className:["tooltip",l,`tooltip--caret-${t}
45`,"tooltip--position-top"].filter(Boolean).join(" "),ref:g,style:{opacity:"0"},children:(0,n.jsx)("div",{className:"tooltip-content",children:a})}),(0,n.jsx)("aside",{className:["tooltip",l,f&&"tooltip--show",`tooltip--caret-${t}`,`tooltip--position-${u||p}`].filter(Boolean).join(" "),title:"string"==typeof a?a:"",children:(0,n.jsx)("div",{className:"tooltip-content",children:a})})]})}},49632:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(56340);t.cloneDeep=function(e){return n.cloneDeepWith(e)}},49674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;let n=r(4378),i=r(20804),o=r(89034),a=r(15571);function l(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,n._)`${i.parentData}[${i.parentDataProperty}]`))}function s(e,t,r){if(void 0===r)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){let{gen:r,keyword:i,schema:o,parentSchema:a,it:l}=e,u=t.macro.call(l.self,o,a,l),c=s(r,i,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);let d=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${l.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;let{gen:u,keyword:c,schema:d,parentSchema:f,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(p,t);let m=s(u,c,!h&&t.compile?t.compile.call(p.self,d,f,p):t.validate),g=u.let("valid");function y(r=t.async?(0,n._)`await `:n.nil){let a=p.opts.passContext?i.default.this:i.default.self,l=!("compile"in t&&!h||!1===t.schema);u.assign(g,(0,n._)`${r}${(0,o.callValidateCode)(e,m,a,l)}`,t.modifying)}function v(e){var r;u.if((0,n.not)(null!=(r=t.valid)?r:g),e)}e.block$data(g,function(){if(!1===t.errors)y(),t.modifying&&l(e),v(()=>e.error());else{let r,o,s=t.async?(r=u.let("ruleErrs",null),u.try(()=>y((0,n._)`await `),e=>u.assign(g,!1).if((0,n._)`${e} instanceof ${p.ValidationError}`,()=>u.assign(r,(0,n._)`${e}.errors`),()=>u.throw(e))),r):(o=(0,n._)`${m}.errors`,u.assign(o,null),y(n.nil),o);t.modifying&&l(e),v(()=>(function(e,t){let{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,()=>{r.assign(i.default.vErrors,(0,n._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,(0,n._)`${i.default.vErrors}.length`),(0,a.extendErrors)(e)},()=>e.error())})(e,s))}}),e.ok(null!=(r=t.valid)?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw Error("ajv implementation error");let a=i.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"===t.validateSchema)r.logger.error(e);else throw Error(e)}}},49804:(e,t,r)=>{"use strict";r.d(t,{M:()=>N});var n,i,o,a,l,s,u,c,d,f,h=r(12115),p=r(29722),m=r(43527),g=r(80600),y=r(92191),v=r(45992),b=r(33966),w=r(55359),x=r(75726),_=["radius"],S=["radius"];function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEac
45h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function E(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var M=(e,t,r,h,p)=>{var m=(0,x.L)(r),g=(0,x.L)(h),y=Math.min(Math.abs(m)/2,Math.abs(g)/2),v=g>=0?1:-1,b=m>=0?1:-1,w=+(g>=0&&m>=0||g<0&&m<0);if(y>0&&Array.isArray(p)){for(var _=[0,0,0,0],S=0;S<4;S++){var k,O,C=null!=(O=p[S])?O:0;_[S]=C>y?y:C}k=(0,x.Y)(n||(n=T(["M",",",""])),e,t+v*_[0]),_[0]>0&&(k+=(0,x.Y)(i||(i=T(["A ",",",",0,0,",",",",",""])),_[0],_[0],w,e+b*_[0],t)),k+=(0,x.Y)(o||(o=T(["L ",",",""])),e+r-b*_[1],t),_[1]>0&&(k+=(0,x.Y)(a||(a=T(["A ",",",",0,0,",",\n ",",",""])),_[1],_[1],w,e+r,t+v*_[1])),k+=(0,x.Y)(l||(l=T(["L ",",",""])),e+r,t+h-v*_[2]),_[2]>0&&(k+=(0,x.Y)(s||(s=T(["A ",",",",0,0,",",\n ",",",""])),_[2],_[2],w,e+r-b*_[2],t+h)),k+=(0,x.Y)(u||(u=T(["L ",",",""])),e+b*_[3],t+h),_[3]>0&&(k+=(0,x.Y)(c||(c=T(["A ",",",",0,0,",",\n ",",",""])),_[3],_[3],w,e,t+h-v*_[3])),k+="Z"}else if(y>0&&p===+p&&p>0){var E=Math.min(y,p);k=(0,x.Y)(d||(d=T(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+v*E,E,E,w,e+b*E,t,e+r-b*E,t,E,E,w,e+r,t+v*E,e+r,t+h-v*E,E,E,w,e+r-b*E,t+h,e+b*E,t+h,E,E,w,e,t+h-v*E)}else k=(0,x.Y)(f||(f=T(["M ",","," h "," v "," h "," Z"])),e,t,r,h,-r);return k},A={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},N=e=>{var t=(0,m.e)(e,A),r=(0,h.useRef)(null),[n,i]=(0,h.useState)(-1);(0,h.useEffect)(()=>{if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:o,y:a,width:l,height:s,radius:u,className:c}=t,{animationEasing:d,animationDuration:f,animationBegin:k,isAnimationActive:T,isUpdateAnimationActive:N}=t,P=(0,h.useRef)(l),j=(0,h.useRef)(s),I=(0,h.useRef)(o),D=(0,h.useRef)(a),$=(0,h.useMemo)(()=>({x:o,y:a,width:l,height:s,radius:u}),[o,a,l,s,u]),R=(0,v.n)($,"rectangle-");if(o!==+o||a!==+a||l!==+l||s!==+s||0===l||0===s)return null;var L=(0,p.$)("recharts-rectangle",c);if(!N){var z=(0,w.a)(t),{radius:F}=z,B=E(z,_);return h.createElement("path",C({},B,{x:(0,x.L)(o),y:(0,x.L)(a),width:(0,x.L)(l),height:(0,x.L)(s),radius:"number"==typeof u?u:void 0,className:L,d:M(o,a,l,s,u)}))}var K=P.current,U=j.current,W=I.current,H=D.current,q="0px ".concat(-1===n?1:n,"px"),J="".concat(n,"px ").concat(n,"px"),V=(0,b.dl)(["strokeDasharray"],f,"string"==typeof d?d:A.animationEasing);return h.createElement(g.J,{animationId:R,key:R,canBegin:n>0,duration:f,easing:d,isActive:N,begin:k},e=>{var n,i=(0,y.GW)(K,l,e),c=(0,y.GW)(U,s,e),d=(0,y.GW)(W,o,e),f=(0,y.GW)(H,a,e);r.current&&(P.current=i,j.current=c,I.current=d,D.current=f),n=T?e>0?{transition:V,strokeDasharray:J}:{strokeDasharray:q}:{strokeDasharray:J};var p=(0,w.a)(t),{radius:m}=p,g=E(p,S);return h.createElement("path",C({},g,{radius:"number"==typeof u?u:void 0,className:L,d:M(d,f,i,c,u),ref:r,style:O(O({},n),t.style)}))})}},49967:(e,t,r)=>{"use strict";let n,i;r.d(t,{MM:()=>Z,QZ:()=>O,iZ:()=>U,v:()=>C,vA:()=>u,vP:()=>g,xT:()=>W});var o=r(53310),a=r(43971);let l=Symbol.for("preact-signals");function s(){if(d>1)return void d--;let e,t=!1;for(;void 0!==i;){let r=i;for(i=void 0,f++;void 0!==r;){let n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&y(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(f=0,d--,t)throw e}function u(e){if(d>0)return e();d++;try{return e()}finally{s()}}function c(e){let t=n;n=void 0;try{return e()}finally{n=t}}let d=0,f=0,h=0;function p(e){if(void 0===n)return;let t=e.n;return void 0===t||t.t!==n?(t={i:0,S:e,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:t},void 0!==n.s&&(n.s.n=t),n.s=t,e.n=t,32&n.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=n.s,t.n=void 0,n.s.n=t,n.s=t),t):void 0}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function g(e,t){return new m(e,t)}function y(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function v(e){for(let t=e.s;void 0!==t;t=t.n){let r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function b(e){let t,r=e.s;for(;void 0!==r;){let e=r.p;-1===r.i?(r.S.U(r),void 0!==e&&(e.n=r.n),void 0!==r.n&&(r.n.p=e)):t=r,r.S.n=r.r,void 0!==r.r&&(r.r=void 0),r=e}e.s=t}function w(e,t){m.call(this,void 0),this.x=e,this.s=void 0,this.g=h-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function x(e){let t=e.u;if(e.u=void 0,"function"==typeof t){d++;let r=n;n=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,_(e),t}finally{n=r,s()}}}function _(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,x(e)}function S(e){if(n!==this)throw Error("Out-of-order effect");b(this),n=e,this.f&=-2,8&this.f&&_(this),s()}function k(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function O(e,t){let r=new k(e,t);try{r.c()}catch(e){throw r.d(),e}let n=r.d.bind(r);return n[Symbol.dispose]=n,n}function C(e,t={}){let r={};for(let n in e){let i=t[n],o=g(void 0===i?e[n]:i);r[n]=o}return r}function E(){let e=(0,o.NiT)(),t=(0,o.vJq)(),r=(0,o.lJ7)();e.clear(),e.append(r),null!==t&&r.select(),(0,o.I2P)(t)&&(t.format=0)}m.prototype.brand=l,m.prototype.h=function(){return!0},m.prototype.S=function(e){let t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:c(()=>{var e;null==(e=this.W)||e.call(this)}))},m.prototype.U=function(e){if(void 0!==this.t){let t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&c(()=>{var e;null==(e=this.Z)||e.call(this)}))}},m.prototype.subscribe=function(e){return O(()=>{let t=this.value,r=n;n=void 0;try{e(t)}finally{n=r}},{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){let e=n;n=void 0;try{return this.value}finally{n=e}},Object.defineProperty(m.prototype,"value",{get(){let e=p(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(f>100)throw Error("Cycle detected");this.v=e,this.i++,h++,d++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{s()}}}}),w.prototype=new m,w.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===h))return!0;
45if(this.g=h,this.f|=1,this.i>0&&!y(this))return this.f&=-2,!0;let e=n;try{v(this),n=this;let e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return n=e,b(this),this.f&=-2,!0},w.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}m.prototype.S.call(this,e)},w.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},w.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(w.prototype,"value",{get(){if(1&this.f)throw Error("Cycle detected");let e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),k.prototype.c=function(){let e=this.S();try{if(8&this.f||void 0===this.x)return;let e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},k.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,x(this),v(this),d++;let e=n;return n=this,S.bind(this,e)},k.prototype.N=function(){2&this.f||(this.f|=2,this.o=i,i=this)},k.prototype.d=function(){this.f|=8,1&this.f||_(this)},k.prototype.dispose=function(){this.d()},(0,o.vE9)({build:(e,t,r)=>C(t),config:(0,o.lVE)({defaultSelection:"rootEnd",disabled:!1}),name:"@lexical/extension/AutoFocus",register(e,t,r){let n=r.getOutput();return O(()=>n.disabled.value?void 0:e.registerRootListener(t=>{e.focus(()=>{let e=document.activeElement;null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})},{defaultSelection:n.defaultSelection.peek()})}))}}),(0,o.vE9)({build:(e,t,r)=>C(t),config:(0,o.lVE)({$onClear:E}),name:"@lexical/extension/ClearEditor",register(e,t,r){let{$onClear:n}=r.getOutput();return O(()=>(function(e,t=E){return e.registerCommand(o.SKc,r=>(e.update(t),!0),o.jZM)})(e,n.value))}});let T=(0,o.urt)("format",{parse:e=>"number"==typeof e?e:0});class M extends o.Kp7{$config(){return this.config("decorator-text",{extends:o.Kp7,stateConfigs:[{flat:!0,stateConfig:T}]})}getFormat(){return(0,o.I8X)(this,T)}getFormatFlags(e,t){return(0,o.FyW)(this.getFormat(),e,t)}hasFormat(e){let t=o.LZn[e];return 0!=(this.getFormat()&t)}setFormat(e){return(0,o.Chh)(this,T,e)}toggleFormat(e){let t=this.getFormat(),r=(0,o.FyW)(t,e,null);return this.setFormat(r)}isInline(){return!0}createDOM(){return document.createElement("span")}updateDOM(){return!1}}function A(e,t){let r;return g(e(),{unwatched(){r&&(r(),r=void 0)},watched(){this.value=e(),r=t(this)}})}(0,o.vE9)({name:"@lexical/extension/DecoratorText",nodes:()=>[M],register:(e,t,r)=>e.registerCommand(o.mB,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)||(0,o.I2P)(t))for(let r of t.getNodes())r instanceof M&&r.toggleFormat(e);return!1},o.AcJ)});let N=(0,o.vE9)({build:e=>A(()=>e.getEditorState(),t=>e.registerUpdateListener(e=>{t.value=e.editorState})),name:"@lexical/extension/EditorState"});function P(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let j=new Set;class I{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):o.Tc1;for(let r of this.configs)e=t(e,r);return e}init(e){let t,r=this.state;2===r.id||P(306,String(r.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},i={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=Object.assign(r,{config:this.mergeConfigs(),id:3,registerState:n});this.state=o,this.extension.init&&(t=this.extension.init(e,o.config,n)),this.state=Object.assign(o,{id:4,initResult:t,registerState:i})}build(e){let t,r=this.state;4!==r.id&&P(307,String(r.id),String(5)),this.extension.build&&(t=this.extension.build(e,r.config,r.registerState));let n={...r.registerState,getOutput:()=>t,getSignal:this.getSignal.bind(this)};this.state=Object.assign(r,{id:5,output:t,registerState:n})}register(e,t){this._signal=t;let r=this.state;5!==r.id&&P(308,String(r.id),String(5));let n=this.extension.register&&this.extension.register(e,r.config,r.registerState);return this.state=Object.assign(r,{id:6}),()=>{let e=this.state;7!==e.id&&P(309,String(r.id),String(7)),this.state=Object.assign(e,{id:5}),n&&n()}}afterRegistration(e){let t,r=this.state;return 6!==r.id&&P(310,String(r.id),String(6)),this.extension.afterRegistration&&(t=this.extension.afterRegistration(e,r.config,r.registerState)),this.state=Object.assign(r,{id:7}),t}getSignal(){return void 0===this._signal&&P(311),this._signal}getInitResult(){void 0===this.extension.init&&P(312,this.extension.name);let e=this.state;return e.id>=4||P(313,String(e.id),String(4)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return e.id>=3||P(314,String(e.id),String(3)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&P(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&P(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return e.id>=7||P(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||j}getPeerNameSet(){let e=this._peerNameSet;
45return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;e.id>=5||P(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}let D={tag:o.T40};function $(){let e=(0,o.NiT)();e.isEmpty()&&e.append((0,o.lJ7)())}let R=(0,o.vE9)({config:(0,o.lVE)({setOptions:D,updateOptions:D}),init:({$initialEditorState:e=$})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:r},n){let i=n.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:n}=i;if((0,o.v0B)(n))e.setEditorState(n,r);else if("function"==typeof n)e.update(()=>{n(e)},t);else if(n&&("string"==typeof n||"object"==typeof n)){let t=e.parseEditorState(n);e.setEditorState(t,r)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[o.haT,o.Ey8,o.GRK,o.MZu,o.fD3]}),L=Symbol.for("@lexical/extension/LexicalBuilder");function z(){}function F(e){throw e}function B(e){return Array.isArray(e)?e:[e]}let K="0.41.0+prod.esm";class U{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){for(const t of(this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=K,this.roots=e,e))this.addExtension(t)}static fromExtensions(e){let t=[B(R)];for(let r of e)t.push(B(r));return new U(t)}static maybeFromEditor(e){let t=e[L];return t&&(t.PACKAGE_VERSION!==K&&P(292,t.PACKAGE_VERSION,K),t instanceof U||P(293)),t}static fromEditor(e){let t=U.maybeFromEditor(e);return void 0===t&&P(294),t}constructEditor(){let{$initialEditorState:e,onError:t,...r}=this.buildCreateEditorArgs(),n=Object.assign((0,o.ieJ)({...r,...t?{onError:e=>{t(e,n)}}:{}}),{[L]:this});for(let e of this.sortedExtensionReps())e.build(n);return n}buildEditor(){let e=z;function t(){try{e()}finally{e=z}}let r=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});
45return e=(0,o.Sdt)(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&P(295,e.name),t}addEdge(e,t,r){let n=this.outgoingConfigEdges.get(e);n?n.set(t,r):this.outgoingConfigEdges.set(e,new Map([[t,r]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&P(296);let[t]=B(e);"string"!=typeof t.name&&P(297,typeof t.name);let r=this.extensionNameMap.get(t.name);if(void 0!==r&&r.extension!==t&&P(298,t.name),!r){r=new I(this,t),this.extensionNameMap.set(t.name,r);let e=this.conflicts.get(t.name);for(let r of("string"==typeof e&&P(299,t.name,e),t.conflictsWith||[]))this.extensionNameMap.has(r)&&P(299,t.name,r),this.conflicts.set(r,t.name);for(let e of t.dependencies||[]){let r=B(e);this.addEdge(t.name,r[0].name,r.slice(1)),this.addExtension(r)}for(let[e,r]of t.peerDependencies||[])this.addEdge(t.name,e,r?[r]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(r,n)=>{var i,o;let a=r.state;if(2===a.id)return;let l=r.extension.name;0===a.id||P(300,l,n||"[unknown]"),0===(i=a).id||P(304,String(i.id),String(0)),r.state=a=Object.assign(i,{id:1});let s=this.outgoingConfigEdges.get(l);if(s)for(let e of s.keys()){let r=this.extensionNameMap.get(e);r&&t(r,l)}1===(o=a).id||P(305,String(o.id),String(1)),r.state=a=Object.assign(o,{id:2}),e.push(r)};for(let e of this.extensionNameMap.values())0===e.state.id&&t(e);for(let t of e)for(let[e,r]of this.outgoingConfigEdges.get(t.extension.name)||[])if(r.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of r)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let r=this.extensionNameMap.get(e.name);for(let n of(void 0===r&&P(301,e.name),t))r.configs.add(n)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),r=new AbortController,n=[()=>r.abort()],i=r.signal;for(let r of t){let t=r.register(e,i);t&&n.push(t)}for(let r of t){let t=r.afterRegistration(e);t&&n.push(t)}return(0,o.Sdt)(...n)}buildCreateEditorArgs(){let e={},t=new Set,r=new Map,n=new Map,i={},o={},a=this.sortedExtensionReps();for(let l of a){let{extension:a}=l;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes){for(let e of("function"==typeof a.nodes?a.nodes():a.nodes)||[]){if("function"!=typeof e){let t=r.get(e.replace);t&&P(302,a.name,e.replace.name,t.extension.name),r.set(e.replace,l)}t.add(e)}}if(a.html){if(a.html.export)for(let[e,t]of a.html.export.entries())n.set(e,t);a.html.import&&Object.assign(i,a.html.import)}a.theme&&function e(t,r){if(t&&r&&!Array.isArray(r)&&"object"==typeof t&&"object"==typeof r){for(let n in r)t[n]=e(t[n],r[n]);return t}return r}(o,a.theme)}Object.keys(o).length>0&&(e.theme=o),t.size&&(e.nodes=[...t]);let l=Object.keys(i).length>0,s=n.size>0;for(let t of((l||s)&&(e.html={},l&&(e.html.import=i),s&&(e.html.export=n)),a))t.init(e);return e.onError||(e.onError=F),e}}function W(e,t){let r=U.fromEditor(e).extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}let H=new Set,q=(0,o.vE9)({build(e,t,r){let n=r.getDependency(N).output,i=g({watchedNodeKeys:new Map}),a=A(()=>{},()=>O(()=>{let e=a.peek(),{watchedNodeKeys:t}=i.value,r,l=!1;n.value.read(()=>{if((0,o.vJq)())for(let[n,i]of t.entries()){if(0===i.size){t.delete(n);continue}let a=(0,o.nsf)(n),s=a&&a.isSelected()||!1;l=l||s!==(!!e&&e.has(n)),s&&(r=r||new Set).add(n)}}),!l&&r&&e&&r.size===e.size||(a.value=r)}));
45return{watchNodeKey:function(e){let t=new w(()=>(a.value||H).has(e),void 0),{watchedNodeKeys:r}=i.peek(),n=r.get(e),o=void 0!==n;return(n=n||new Set).add(t),o||(r.set(e,n),i.value={watchedNodeKeys:r}),t}}},dependencies:[N],name:"@lexical/extension/NodeSelection"});(0,o.guI)("INSERT_HORIZONTAL_RULE_COMMAND");class J extends o.Kp7{static getType(){return"horizontalrule"}static clone(e){return new J(e.__key)}static importJSON(e){return G().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:V,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,o.ZB7)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function V(){return{node:G()}}function G(){return(0,o.phO)(J)}function Y(e){return e.canBeEmpty()}function Z(e,t,r=Y){return(0,o.Sdt)(e.registerCommand(o.OXk,t=>{let r=(0,o.vJq)();if(!(0,o.I2P)(r))return!1;t.preventDefault();let n=!function(e){if(e.getNodes().filter(e=>(0,o.y68)(e)&&e.canIndent()).length>0)return!0;let t=e.anchor,r=e.focus,n=r.isBefore(t)?r:t,i=n.getNode(),l=(0,a.mB)(i);if(l.canIndent()){let e=l.getKey(),t=(0,o.uTE)();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,o.CaD)(t)).anchor.is(n))return!0}return!1}(r)?o.YW5:t.shiftKey?o.sik:o.PiT;return e.dispatchCommand(n,void 0)},o.jZM),e.registerCommand(o.PiT,()=>{let e="number"==typeof t?t:t?t.peek():null,n=(0,o.vJq)();if(!(0,o.I2P)(n))return!1;let i="function"==typeof r?r:r.peek();return(0,a.Jy)(t=>{if(i(t)){let r=t.getIndent()+1;(!e||r<e)&&t.setIndent(r)}})},o.da8))}(0,o.vE9)({dependencies:[N,q],name:"@lexical/extension/HorizontalRule",nodes:()=>[J],register(e,t,r){let{watchNodeKey:n}=r.getDependency(q).output,i=g({nodeSelections:new Map}),a=e._config.theme.hrSelected??"selected";return(0,o.Sdt)(e.registerCommand(o.d8p,e=>{if((0,o.vAA)(e.target)){let t=(0,o.pJU)(e.target);if(t instanceof J)return function(e,t=!1){let r,n=(0,o.vJq)(),i=e.isSelected(),a=e.getKey();t&&(0,o.RTZ)(n)?r=n:(r=(0,o.rUs)(),(0,o.n1P)(r)),i?r.delete(a):r.add(a)}(t,e.shiftKey),!0}return!1},o.AcJ),e.registerMutationListener(J,(t,r)=>{u(()=>{let r=!1,{nodeSelections:o}=i.peek();for(let[i,a]of t.entries())if("destroyed"===a)o.delete(i),r=!0;else{let t=o.get(i),a=e.getElementByKey(i);t?t.domNode.value=a:(r=!0,o.set(i,{domNode:g(a),selectedSignal:n(i)}))}r&&(i.value={nodeSelections:o})})}),O(()=>{let e=[];for(let{domNode:t,selectedSignal:r}of i.value.nodeSelections.values())e.push(O(()=>{let e=t.value;e&&(r.value?(0,o.ZB7)(e,a):(0,o.HEf)(e,a))}));return(0,o.Sdt)(...e)}))}}),(0,o.vE9)({build:(e,t,r)=>C(t),config:(0,o.lVE)({$canIndent:Y,disabled:!1,maxIndent:null}),name:"@lexical/extension/TabIndentation",register(e,t,r){let{disabled:n,maxIndent:i,$canIndent:o}=r.getOutput();return O(()=>{if(!n.value)return Z(e,i,o)})}})},50038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(19831),o=r(58828),a=r(77208),l=r(83732);t.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){let{gen:t,data:r,schema:s,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw Error("discriminator: requires discriminator option");let f=s.propertyName;if("string"!=typeof f)throw Error("discriminator: requires propertyName");if(s.mapping)throw Error("discriminator: mapping is not supported");if(!d)throw Error("discriminator: requires oneOf keyword");let h=t.let("valid",!1),p=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(f)}`);t.if((0,n._)`typeof ${p} == "string"`,()=>(function(){let r=function(){var e;let t={},r=i(u),n=!0;for(let t=0;t<d.length;t++){let u=d[t];if((null==u?void 0:u.$ref)&&!(0,l.schemaHasRulesButRef)(u,c.self.RULES)){let e=u.$ref;if((u=o.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e))instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new a.default(c.opts.uriResolver,c.baseId,e)}let h=null==(e=null==u?void 0:u.properties)?void 0:e[f];if("object"!=typeof h)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||i(u)),function(e,t){if(e.const)s(e.const,t);else if(e.enum)for(let r of e.enum)s(r,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}(h,t)}if(!n)throw Error(`discriminator: "${f}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,r){if("string"!=typeof e||e in t)throw Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();for(let i in t.if(!1),r)t.elseIf((0,n._)`${p} === ${i}`),t.assign(h,function(r){let i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(o,n.Name),i}(r[i]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:p,tagName:f}),t.endIf()})(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:f})),e.ok(h)}}},51124:(e,t,r)=>{"use strict";r.d(t,{CU:()=>f,Lx:()=>u,c5:()=>c,h1:()=>s,hx:()=>l,u3:()=>d});var n=r(11785),i=r(30894),o=r(99050),a=(0,n.Z0)({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height}
45,setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push((0,o.h4)(t.payload))},prepare:(0,n.aA)()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,a=(0,i.ss)(e).payload.indexOf((0,o.h4)(r));a>-1&&(e.payload[a]=(0,o.h4)(n))},prepare:(0,n.aA)()},removeLegendPayload:{reducer(e,t){var r=(0,i.ss)(e).payload.indexOf((0,o.h4)(t.payload));r>-1&&e.payload.splice(r,1)},prepare:(0,n.aA)()}}}),{setLegendSize:l,setLegendSettings:s,addLegendPayload:u,replaceLegendPayload:c,removeLegendPayload:d}=a.actions,f=a.reducer},51205:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(98534),i=r(13037),o=r(35679),a=r(23094),l=r(73957);t.uniqBy=function(e,t=o.identity){return a.isArrayLikeObject(e)?n.uniqBy(Array.from(e),i.ary(l.iteratee(t),1)):[]}},51419:e=>{"use strict";var t=function(e){var t,n,i;return!!(t=e)&&"object"==typeof t&&(n=e,"[object RegExp]"!==(i=Object.prototype.toString.call(n))&&"[object Date]"!==i&&n.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function l(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,s):d?s.arrayMerge(e,r,s):(c={},(u=s).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=n(e[t],u)}),o(r).forEach(function(t){a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(a(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})},e.exports=l},51452:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r){var i,o;if(t===r)return!0;if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return -1===o}if(!i||"object"==typeof t){for(i in o=0,t)if(n.call(t,i)&&++o&&!n.call(r,i)||!(i in r)||!e(t[i],r[i]))return!1;return Object.keys(r).length===o}}return t!=t&&r!=r}});var n=Object.prototype.hasOwnProperty},51511:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(92191),i=r(16787),o=r(73400);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){if("string"==typeof e)return e}var u=(e,t,r,a,u,c,d)=>{if(null!=t&&null!=c){var{chartData:f,computedData:h,dataStartIndex:p,dataEndIndex:m}=r;return e.reduce((e,r)=>{var g,y,v,{dataDefinedOnItem:b,settings:w}=r,x=null!=b?b:f,_=Array.isArray(x)?(0,o.v)(x,p,m):x,S=null!=(g=null==w?void 0:w.dataKey)?g:a,k=null==w?void 0:w.nameKey;return Array.isArray(y=a&&Array.isArray(_)&&!Array.isArray(_[0])&&"axis"===d?(0,n.eP)(_,a,u):c(_,t,h,k))?y.forEac
45h(t=>{var r,n,o=function(e){if(null!=e&&"object"==typeof e){var t,r="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,n="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0,i="dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,o="payload"in e?e.payload:void 0;return{name:r,unit:n,dataKey:i,payload:o,color:"color"in e?s(e.color):void 0,fill:"fill"in e?s(e.fill):void 0}}}(t),a=null==o?void 0:o.name,u=null==o?void 0:o.dataKey,c=null==o?void 0:o.payload,d=l(l({},w),{},{name:a,unit:null==o?void 0:o.unit,color:null!=(r=null==o?void 0:o.color)?r:null==w?void 0:w.color,fill:null!=(n=null==o?void 0:o.fill)?n:null==w?void 0:w.fill});e.push((0,i.GF)({tooltipEntrySettings:d,dataKey:u,payload:c,value:(0,i.kr)(c,u),name:null==a?void 0:String(a)}))}):e.push((0,i.GF)({tooltipEntrySettings:w,dataKey:S,payload:y,value:(0,i.kr)(y,S),name:null!=(v=(0,i.kr)(y,k))?v:null==w?void 0:w.name})),e},[])}}},51531:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var n={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3}},51547:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});var n=(e,t)=>e===t||null!=e&&null!=t&&e[0]===t[0]&&e[1]===t[1]},51630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(97489),i=r(89034),o=r(83732),a=r(97303);t.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:l,data:s,it:u}=e;"all"===u.opts.removeAdditional&&void 0===l.additionalProperties&&a.default.code(new n.KeywordCxt(u,a.default,"additionalProperties"));let c=(0,i.allSchemaProperties)(r);for(let e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(c),u.props));let d=c.filter(e=>!(0,o.alwaysValidSchema)(u,r[e]));if(0===d.length)return;let f=t.name("valid");for(let n of d){var h;(h=n,u.opts.useDefaults&&!u.compositeRule&&void 0!==r[h].default)?p(n):(t.if((0,i.propertyInData)(t,s,n,u.opts.ownProperties)),p(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f)}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}}},51858:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=/^(?:0|[1-9]\d*)$/;t.isIndex=function(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return r.test(e)}}},51914:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},52530:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},52641:(e,t,r)=>{"use strict";r.d(t,{N:()=>d});var n=r(95155),i=r(98500),o=r(73321),a=r(12115);r(19749);let l=a.createContext({isTransitioning:!1,startRouteTransition:e=>{"function"==typeof e&&e()},transitionProgress:0}),s=/https?|ftp|gopher|file/;function u(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}let c="default"in i?i.default:i,d=({children:e,href:t,onClick:r,preventDefault:i=!0,ref:d,replace:f,scroll:h,...p})=>{let m=(0,o.useRouter)(),{startRouteTransition:g}=a.use(l);return(0,n.jsx)(c,{href:t,onClick:e=>{let n;if((n=e.currentTarget.getAttribute("target"))&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)return;r&&r(e),i&&e.preventDefault();let o="string"==typeof t?t:function(e){var t;let r,{auth:n}=e,{hostname:i}=e,o=e.protocol||"",a=e.pathname||"",l=e.hash||"",c=e.query||"",d=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?d=n+e.host:i&&(d=n+(~i.indexOf(":")?`[${i}]`:i),e.port&&(d+=":"+e.port)),c&&"object"==typeof c&&(c=String((t=c,r=new URLSearchParams,Object.entries(t).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>r.append(e,u(t))):r.set(e,u(t))}),r)));let f=e.search||c&&`?${c}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||s.test(o))&&!1!==d?(d="//"+(d||""),a&&"/"!==a[0]&&(a="/"+a)):d||(d=""),l&&"#"!==l[0]&&(l="#"+l),f&&"?"!==f[0]&&(f="?"+f),a=a.replace(/[?#]/g,encodeURIComponent),f=f.replace("#","%23"),`${o}${d}${a}${f}${l}`}(t);g(()=>{f?m.replace(o,{scroll:h}):m.push(o,{scroll:h})})},ref:d,...p,children:e})}},52735:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(41463);let i=e=>{let{adminRoute:t,apiRoute:r,includeBasePath:i,path:o="",relative:a=!1,serverURL:l}=e,s=n.env.NEXT_BASE_PATH||e.basePath||"",u=t||r,c=[u&&"/"!==u&&u,o&&o].filter(
45Boolean).join("")||"/",d=(s+c).replace(/\/$/,"")||"/";if(a||!l)return(i??!t)&&s?d:c;let f=new URL(l);return new URL(d,f.origin).toString()}},53157:(e,t,r)=>{"use strict";r.d(t,{Pu:()=>d});var n=r(89933);class i{constructor(e){!function(e,t,r){var n;(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),l=new i(a.cacheSize),s={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},u="recharts_measurement_span",c=(e,t)=>{try{var r=document.getElementById(u);r||((r=document.createElement("span")).setAttribute("id",u),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,s,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},d=function(e){var t,r,i,o,s,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.m.isSsr)return{width:0,height:0};if(!a.enableCache)return c(e,d);var f=(t=d.fontSize||"",r=d.fontFamily||"",i=d.fontWeight||"",o=d.fontStyle||"",s=d.letterSpacing||"",u=d.textTransform||"","".concat(e,"|").concat(t,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(s,"|").concat(u)),h=l.get(f);if(h)return h;var p=c(e,d);return l.set(f,p),p}},53201:(e,t,r)=>{"use strict";r.d(t,{Fq:()=>eC,L_:()=>ex});var n=r(12115),i=r(57258),o=r.n(i),a=r(29722),l=r(2842),s=r(57346),u=r(2242),c=r(16787),d=r(44531),f=r(65372),h=r(12968),p=r(6265),m=r(90744),g=r(18297),y=e=>e.graphicalItems.polarItems,v=(0,l.Mz)([h.N,p.E],d.eo),b=(0,l.Mz)([y,d.DP,v],d.ec),w=(0,l.Mz)([b],d.rj),x=(0,l.Mz)([w,s.z3],d.Nk),_=(0,l.Mz)([x,d.DP,b],d.fb);(0,l.Mz)([x,d.DP,b],(e,t,r)=>r.length>0?e.flatMap(e=>r.flatMap(r=>{var n;return{value:(0,c.kr)(e,null!=(n=t.dataKey)?n:r.dataKey),errorDomain:[]}})).filter(Boolean):(null==t?void 0:t.dataKey)!=null?e.map(e=>({value:(0,c.kr)(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]})));var S=()=>void 0,k=(0,l.Mz)([x,d.DP,b,d.CH,h.N,s.G7],d.EZ),O=(0,l.Mz)([d.DP,d.AV,d.Lu,S,k,S,f.fz,h.N],d.wL),C=(0,l.Mz)([d.DP,f.fz,x,_,m.eC,h.N,O],d.tP),E=(0,l.Mz)([C,d.tm,d.xM],d.xp),T=(0,l.Mz)([d.DP,C,E,h.N],d.g1);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
45t%2?M(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}(0,l.Mz)([d.xM,T],g.l);var N=(0,l.Mz)([y,(e,t)=>t],(e,t)=>e.filter(e=>"pie"===e.type).find(e=>e.id===t)),P=[],j=(e,t,r)=>(null==r?void 0:r.length)===0?P:r,I=(0,l.Mz)([s.z3,N,j],(e,t,r)=>{var n,{chartData:i}=e;if(null!=t&&((n=(null==t?void 0:t.data)!=null&&t.data.length>0?t.data:i)&&n.length||null==r||(n=r.map(e=>A(A({},t.presentationProps),e.props))),null!=n))return n}),D=(0,l.Mz)([I,N,j],(e,t,r)=>{if(null!=e&&null!=t)return e.map((e,n)=>{var i,o,a=(0,c.kr)(e,t.nameKey,t.name);return o=null!=r&&null!=(i=r[n])&&null!=(i=i.props)&&i.fill?r[n].props.fill:"object"==typeof e&&null!=e&&"fill"in e?e.fill:t.fill,{value:(0,c.uM)(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),$=(0,l.Mz)([I,N,j,u.HZ],(e,t,r,n)=>{if(null!=t&&null!=e)return ex({offset:n,pieSettings:t,displayedData:e,cells:r})}),R=r(10365),L=r(11058),z=r(37214),F=r(74254),B=r(67389),K=r(21966),U=r(21739),W=r(92191),H=r(18387),q=r(46197),J=r(94051),V=r(96561),G=r(541),Y=r(45970),Z=r(71615),X=r(45992),Q=r(43527),ee=r(604),et=r(9629),er=r(23651),en=r(80600),ei=r(85545),eo=r(10483),ea=r(51531),el=r(43665),es=["key"],eu=["onMouseEnter","onClick","onMouseLeave"],ec=["id"],ed=["id"];function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function eh(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function em(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eg(e){var t=(0,n.useMemo)(()=>(0,K.aS)(e.children,B.f),[e.children]),r=(0,R.G)(r=>D(r,e.id,t));return null==r?null:n.createElement(Y._,{legendPayload:r})}var ey=n.memo(e=>{var{dataKey:t,nameKey:r,sectors:i,stroke:o,strokeWidth:a,fill:l,name:s,hide:u,tooltipType:d,id:f,activeShape:h}=e,p=function(e){if(null!=e&&"boolean"!=typeof e&&"function"!=typeof e){if(n.isValidElement(e)){var t,r=null==(t=e.props)?void 0:t.fill;return"string"==typeof r?r:void 0}var{fill:i}=e;return"string"==typeof i?i:void 0}}(h),m={dataDefinedOnItem:i.map(e=>{var t=e.tooltipPayload;return null==p||null==t?t:t.map(e=>em(em({},e),{},{color:p,fill:p}))}),getPosition:e=>{var t;return null==(t=i[Number(e)])?void 0:t.tooltipPosition},settings:{stroke:o,strokeWidth:a,fill:l,dataKey:t,nameKey:r,name:(0,c.uM)(s,t),hide:u,type:d,color:l,unit:"",graphicalItemId:f}};return n.createElement(V.r,{tooltipEntrySettings:m})});function ev(e){var{sectors:t,props:r,showLabels:i}=e,{label:o,labelLine:l,dataKey:s}=r;if(!i||!o||!t)return null;var u=(0,er.uZ)(r),d=(0,er.ic)(o),f=(0,er.ic)(l),h="object"==typeof o&&"offsetRadius"in o&&"number"==typeof o.offsetRadius&&o.offsetRadius||20,p=t.map((e,t)=>{var r,i,p=(e.startAngle+e.endAngle)/2,m=(0,U.IZ)(e.cx,e.cy,e.outerRadius+h,p),g=em(em(em(em({},u),e),{},{stroke:"none"},d),{},{index:t,textAnchor:(r=m.x)>(i=e.cx)?"start":r<i?"end":"middle"},m),y=em(em(em(em({},u),e),{},{fill:"none",stroke:e.fill},f),{},{index:t,points:[(0,U.IZ)(e.cx,e.cy,e.outerRadius,p),m],key:"line"});return n.createElement(eo.g,{zIndex:ea.I.label,key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},n.createElement(L.W,null,l&&((e,t)=>{if(n.isValidElement(e))return n.cloneElement(e,t);if("function"==typeof e)return e(t);var r=(0,a.$)("recharts-pie-label-line","boolean"!=typeof e?e.className:""),{key:i}=t,o=eh(t,es);return n.createElement(z.Ip,ef({},o,{type:"linear",className:r}))})(l,y),((e,t,r)=>{if(n.isValidElement(e))return n.cloneElement(e,t);var i=r;if("function"==typeof e&&(i=e(t),n.isValidElement(i)))return i;var o=(0,a.$)("recharts-pie-label-text",(0,el.I)(e));return n.createElement(F.EY,ef({},t,{alignmentBaseline:"middle",className:o}),i)})(o,g,(0,c.kr)(e,s))))});return n.createElement(L.W,{className:"recharts-pie-labels"},p)}function eb(e){var{sectors:t,props:r,showLabels:i}=e,{label:o}=r;return"object"==typeof o&&null!=o&&"position"in o?n.createElement(ei.qY,{label:o}):n.createElement(ev,{sectors:t,props:r,showLabels:i})}function ew(e){var{sectors:t,activeShape:r,inactiveShape:i,allOtherPieProps:o,shape:a,id:l}=e,s=(0,R.G)(G.A2),u=(0,R.G)(G.Xb),c=(0,R.G)(G.fx),{onMouseEnter:d,onClick:f,onMouseLeave:h}=o,p=eh(o,eu),m=(0,J.Cj)(d,o.dataKey,l),g=(0,J.Pg)(h),y=(0,J.Ub)(f,o.dataKey,l);return null==t||0===t.length?null:n.createElement(n.Fragment,null,t.map((e,d)=>{if((null==e?void 0:e.startAngle)===0&&(null==e?void 0:e.endAngle)===0&&1!==t.length)return null;var f=null==c||c===l,h=String(d)===s&&(null==u||o.dataKey===u)&&f,v=r&&h?r:s?i:null,b=em(em({},e),{},{stroke:e.stroke,tabIndex:-1,[Z.F0]:d,[Z.yU]:l});return n.createElement(L.W,ef({key:"sector-".concat(null==e?void 0:e.startAngle,"-").concat(null==e?void 0:e.endAngle,"-").concat(e.midAngle,"-").concat(d),tabIndex:-1,
45className:"recharts-pie-sector"},(0,H.XC)(p,e,d),{onMouseEnter:m(e,d),onMouseLeave:g(e,d),onClick:y(e,d)}),n.createElement(q.y,ef({option:null!=a?a:v,index:d,shapeType:"sector",isActive:h},b)))}))}function ex(e){var t,r,n,{pieSettings:i,displayedData:o,cells:a,offset:l}=e,{cornerRadius:s,startAngle:u,endAngle:d,dataKey:f,nameKey:h,tooltipType:p}=i,m=Math.abs(i.minAngle),g=(0,W.sA)(d-u)*Math.min(Math.abs(d-u),360),y=Math.abs(g),v=o.length<=1?0:null!=(t=i.paddingAngle)?t:0,b=o.filter(e=>0!==(0,c.kr)(e,f,0)).length,w=o.reduce((e,t)=>{var r=(0,c.kr)(t,f,0);return e+((0,W.Et)(r)?r:0)},0),x=m>0&&w>0&&o.some(e=>{var t=(0,c.kr)(e,f,0),r=((0,W.Et)(t)?t:0)/w;return 0!==t&&r*y<m})?m:0,_=y-b*x-(y>=360?b:b-1)*v;return w>0&&(r=o.map((e,t)=>{var r,o=(0,c.kr)(e,f,0),d=(0,c.kr)(e,h,t),m=((e,t,r)=>{var n,{top:i,left:o,width:a,height:l}=t,s=(0,U.lY)(a,l),u=o+(0,W.F4)(e.cx,a,a/2),c=i+(0,W.F4)(e.cy,l,l/2),d=(0,W.F4)(e.innerRadius,s,0);return{cx:u,cy:c,innerRadius:d,outerRadius:(n=e.outerRadius,"function"==typeof n?(0,W.F4)(n(r),s,.8*s):(0,W.F4)(n,s,.8*s)),maxRadius:e.maxRadius||Math.sqrt(a*a+l*l)/2}})(i,l,e),y=((0,W.Et)(o)?o:0)/w,b=em(em({},e),a&&a[t]&&a[t].props),S=null!=b&&"fill"in b&&"string"==typeof b.fill?b.fill:i.fill,k=(r=t?n.endAngle+(0,W.sA)(g)*v*(0!==o):u)+(0,W.sA)(g)*((0!==o?x:0)+y*_),O=(r+k)/2,C=(m.innerRadius+m.outerRadius)/2,E=[{name:d,value:o,payload:b,dataKey:f,type:p,color:S,fill:S,graphicalItemId:i.id}],T=(0,U.IZ)(m.cx,m.cy,C,O);return n=em(em(em(em({},i.presentationProps),{},{percent:y,cornerRadius:"string"==typeof s?parseFloat(s):s,name:d,tooltipPayload:E,midAngle:O,middleRadius:C,tooltipPosition:T},b),m),{},{value:o,dataKey:f,startAngle:r,endAngle:k,payload:b,paddingAngle:0!==o?(0,W.sA)(g)*v:0})})),r}function e_(e){var{showLabels:t,sectors:r,children:i}=e,o=(0,n.useMemo)(()=>t&&r?r.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})):[],[r,t]);return n.createElement(ei.dL,{value:t?o:void 0},i)}function eS(e){var{props:t,previousSectorsRef:r,id:i}=e,{sectors:a,isAnimationActive:l,animationBegin:s,animationDuration:u,animationEasing:c,activeShape:d,inactiveShape:f,onAnimationStart:h,onAnimationEnd:p}
45=t,m=(0,X.n)(t,"recharts-pie-"),g=r.current,[y,v]=(0,n.useState)(!1),b=(0,n.useCallback)(()=>{"function"==typeof p&&p(),v(!1)},[p]),w=(0,n.useCallback)(()=>{"function"==typeof h&&h(),v(!0)},[h]);return n.createElement(e_,{showLabels:!y,sectors:a},n.createElement(en.J,{animationId:m,begin:s,duration:u,isActive:l,easing:c,onAnimationStart:w,onAnimationEnd:b,key:m},e=>{var l,s=[],u=a&&a[0],c=null!=(l=null==u?void 0:u.startAngle)?l:0;return null==a||a.forEach((t,r)=>{var n=g&&g[r],i=r>0?o()(t,"paddingAngle",0):0;if(n){var a=(0,W.GW)(n.endAngle-n.startAngle,t.endAngle-t.startAngle,e),l=em(em({},t),{},{startAngle:c+i,endAngle:c+a+i});s.push(l),c=l.endAngle}else{var{endAngle:u,startAngle:d}=t,f=(0,W.GW)(0,u-d,e),h=em(em({},t),{},{startAngle:c+i,endAngle:c+f+i});s.push(h),c=h.endAngle}}),r.current=s,n.createElement(L.W,null,n.createElement(ew,{sectors:s,activeShape:d,inactiveShape:f,allOtherPieProps:t,shape:t.shape,id:i}))}),n.createElement(eb,{showLabels:!y,sectors:a,props:t}),t.children)}var ek={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:ea.I.area};function eO(e){var{id:t}=e,r=eh(e,ec),{hide:i,className:o,rootTabIndex:l}=e,s=(0,n.useMemo)(()=>(0,K.aS)(e.children,B.f),[e.children]),u=(0,R.G)(e=>$(e,t,s)),c=(0,n.useRef)(null),d=(0,a.$)("recharts-pie",o);return i||null==u?(c.current=null,n.createElement(L.W,{tabIndex:l,className:d})):n.createElement(eo.g,{zIndex:e.zIndex},n.createElement(ey,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),n.createElement(L.W,{tabIndex:l,className:d},n.createElement(eS,{props:em(em({},r),{},{sectors:u}),previousSectorsRef:c,id:t})))}var eC=function(e){var t=(0,Q.e)(e,ek),{id:r}=t,i=eh(t,ed),o=(0,er.uZ)(i);return n.createElement(ee.x,{id:r,type:"pie"},e=>n.createElement(n.Fragment,null,n.createElement(et.v,{type:"pie",id:e,data:i.data,dataKey:i.dataKey,hide:i.hide,angleAxisId:0,radiusAxisId:0,name:i.name,nameKey:i.nameKey,tooltipType:i.tooltipType,legendType:i.legendType,fill:i.fill,cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,paddingAngle:i.paddingAngle,minAngle:i.minAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius,cornerRadius:i.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),n.createElement(eg,ef({},i,{id:e})),n.createElement(eO,ef({},i,{id:e}))))};eC.displayName="Pie"},53310:(e,t,r)=>{"use strict";function n(e,...t){let r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let r of(i.append("code",e),t))i.append("v",r);throw r.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);r.search=n.toString(),console.warn(`Minified Lexical warning #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}r.d(t,{$7r:()=>tc,$c$:()=>t3,$ey:()=>eF,$iu:()=>oD,A7V:()=>nT,AX0:()=>eG,AcJ:()=>nI,Ave:()=>oN,B$P:()=>iE,BtT:()=>oe,Bts:()=>oC,CHU:()=>iz,CaD:()=>G,Chh:()=>R,Cku:()=>rN,Csq:()=>oB,Cyw:()=>nx,Ey8:()=>rs,FEN:()=>e$,FtC:()=>oU,FyW:()=>n2,GMe:()=>nl,GRK:()=>t8,GYG:()=>oZ,GcU:()=>r9,Gew:()=>iR,H2A:()=>rQ,HEf:()=>oQ,HYn:()=>to,Huu:()=>e0,I2H:()=>td,I2P:()=>rE,I8X:()=>$,IlV:()=>om,IqF:()=>iL,JAT:()=>ij,JM3:()=>eJ,JjG:()=>nD,Jvg:()=>nW,K8K:()=>iG,KfJ:()=>tu,Kp7:()=>nw,LYZ:()=>nJ,LZn:()=>w,MZu:()=>rb,MvL:()=>eT,NG9:()=>o$,NiT:()=>ia,O0w:()=>oV,OBE:()=>rU,OQi:()=>t2,OSq:()=>iH,OXk:()=>e5,OpE:()=>oc,P6U:()=>ob,PiT:()=>e6,Q$N:()=>e2,RTZ:()=>rM,RTo:()=>eQ,Rb_:()=>nX,S1w:()=>rq,SKc:()=>ta,Sdt:()=>o0,Sr4:()=>e9,T40:()=>t0,TJt:()=>oO,Tc1:()=>oY,TgX:()=>te,U5P:()=>i5,UDz:()=>eZ,V30:()=>eH,VSO:()=>ti,WKo:()=>t7,WWb:()=>ts,WgU:()=>n$,WuB:()=>eD,XI_:()=>t5,XKQ:()=>eR,YW5:()=>e4,Z$U:()=>nq,ZB7:()=>oX,ZKf:()=>eW,_On:()=>iY,a9V:()=>iZ,bM3:()=>eL,bMH:()=>tQ,bSg:()=>nP,bbF:()=>eX,cmH:()=>od,d8p:()=>eA,da8:()=>nR,dxY:()=>i4,e1k:()=>iS,erb:()=>ow,ev7:()=>rw,fD3:()=>nM,fGB:()=>ny,fUS:()=>e7,ff4:()=>nv,fwY:()=>t1,gCZ:()=>e1,guI:()=>eE,hVZ:()=>nS,haT:()=>n_,hi0:()=>eB,i0_:()=>iQ,ieJ:()=>nz,jG6:()=>n3,jZM:()=>nj,k1Q:()=>oq,kBm:()=>tV,kFe:()=>ry,lJ7:()=>nN,lSZ:()=>oz,lVE:()=>oG,mB:()=>eU,mB$:()=>n0,mWO:()=>oS,n0X:()=>tX,n1P:()=>is,nYP:()=>iq,nsf:()=>n7,oqR:()=>eM,pGK:()=>oF,pJU:()=>ie,pTq:()=>iF,pd8:()=>i6,peL:()=>iW,phO:()=>i7,rN:()=>ou,rUs:()=>rK,riq:()=>tt,sTu:()=>rg,sWS:()=>ok,sby:()=>iJ,scG:()=>nG,sik:()=>e8,sne:()=>t6,t5V:()=>tl,u5G:()=>tn,uTE:()=>rB,urt:()=>D,uwZ:()=>ov,v0B:()=>nC,vAA:()=>iV,vE9:()=>oJ,vJq:()=>rH,viC:()=>eK,w$Z:()=>e3,w3H:()=>iX,wH$:()=>re,waI:()=>ez,wp6:()=>oP,xKE:()=>t4,xL4:()=>ir,xQ8:()=>oj,y68:()=>rz,z8s:()=>rS});let o="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=o&&"documentMode"in document?document.documentMode:null,l=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=o&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),u=!(!o||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),c=o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),d=o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f=o&&/Android/.test(navigator.userAgent),h=o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),p=o&&f&&h,m=o&&/AppleWeb
45Kit\/[\d.]+/.test(navigator.userAgent)&&l&&!h,g=c||d||m?"\xa0":"â",y=s?"\xa0":g,v="Ö-ß¿ï¬-﷽ﹰ-ﻼ",b="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",w=(RegExp("^[^"+b+"]*["+v+"]"),RegExp("^[^"+v+"]*["+b+"]"),{bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512}),x={directionless:1,unmergeable:2},_={center:2,end:6,justify:4,left:1,right:3,start:5},S={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},k={normal:0,segmented:2,token:1},O={0:"normal",2:"segmented",1:"token"},C="$config",E=!1,T=0;function M(e){T=e.timeStamp}function A(e,t,r){let n="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||n&&e.previousSibling===i)||n&&void 0!==it(e,r)}function N(e,t,r){E=!0;let n=performance.now()-T>100;try{np(e,()=>{let i=rH()||e.getEditorState().read(()=>{let e=rH();return null!==e?e.clone():null}),o=new Map,a=e.getRootElement(),l=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let r=0;r<t.length;r++){let f=t[r],h=f.type,p=f.target,m=function(e,t,r,n){var i;for(let o=e;o&&(i=o,!0!==i.__lexicalUnmanaged);o=iN(o)){let e=it(o,t);if(void 0!==e){let t=n7(e,r);if(t)return nx(t)||!iJ(o)?void 0:[o,t]}else if(o===n)return[n,il(r)]}}(p,e,l,a);if(!m)continue;let[g,y]=m;if("characterData"===h)n&&ry(y)&&nQ(p)&&function(e,t,r){if(rE(e)){let t=e.anchor.getNode();if(t.is(r)&&e.format!==t.getFormat())return!1}return nQ(t)&&r.isAttached()}(i,p,y)&&function(e,t,r){let n=iW(i$(r)),i=null,o=null;null!==n&&n.anchorNode===e&&(i=n.anchorOffset,o=n.focusOffset);let a=e.nodeValue;null!==a&&ig(t,a,i,o,!1)}(p,y,e);else if("childList"===h){c=!0;let t=f.addedNodes;for(let r=0;r<t.length;r++){let n=t[r],i=ie(n),o=n.parentNode;if(null!=o&&n!==u&&null===i&&!A(n,o,e)){if(s){let e=(iJ(n)?n.innerText:null)||n.nodeValue;e&&(d+=e)}o.removeChild(n)}}let r=f.removedNodes,n=r.length;if(n>0){let t=0;for(let i=0;i<n;i++){let n=r[i];(A(n,p,e)||u===n)&&(p.appendChild(n),t++)}n!==t&&o.set(g,y)}}}if(o.size>0)for(let[t,r]of o)r.reconcileObservedMutation(t,e);let f=r.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let r=f[t],n=r.addedNodes,i=r.target;for(let t=0;t<n.length;t++){let r=n[t],o=r.parentNode;null==o||"BR"!==r.nodeName||A(r,i,e)||o.removeChild(r)}}r.takeRecords()}null!==i&&(c&&is(i),s&&iT(e)&&i.insertRawText(d))})}finally{E=!1}}function P(e){let t=e._observer;null!==t&&N(e,t.takeRecords(),t)}function j(e){0===T&&i$(e).addEventListener("textInput",M,!0),e._observer=new MutationObserver((t,r)=>{N(e,t,r)})}class I{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||K).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}}function D(e,t){return new I(e,t)}function $(e,t,r="latest"){let n=("latest"===r?e.getLatest():e).__state;return n?n.getValue(t):t.defaultValue}function R(e,t,r){let n;if(r7(),"function"==typeof r){let i=e.getLatest(),o=$(i,t);if(n=r(o),t.isEqual(o,n))return i}else n=r;let i=e.getWritable();return z(i).updateFromKnown(t,n),i}class L{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,r,n=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=n;const{sharedConfigMap:o}=this.sharedNodeState,a=void 0!==i?i:function(e,t,r){let n=r.size;if(t)for(let i in t){let t=e.get(i);t&&r.has(t)||n++}return n}(o,r,n);this.size=a}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(r=e.parse(t)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,r]of this.knownState)t.isEqual(r,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(r);for(let r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return B(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:r}=this,n=new Map(this.knownState);return new L(e,t,function(e,t,r){let n;if(r)for(let[i,o]of Object.entries(r)){let r=e.get(i);r?t.has(r)||t.set(r,r.parse(o)):(n=n||{})[i]=o}return n}(t.sharedConfigMap,n,r),n,this.size)}updateFromKnown(e,t){let r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);let{knownState:n,unknownState:i}=this;n.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=B(i)),this.size++),n.set(e,t)}updateFromUnknown(e,t){let r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,r]of Object.entries(e))this.updateFromUnknown(t,r)}}function z(e){let t=e.getWritable(),r=t.__state?t.__state.getWritable(t):new L(t,F(t));return t.__state=r,r}function F(e){return e.__state?e.__state.sharedNodeState:nU(iQ(),e.getType()).sharedNodeState}function B(e){if(e)for(let t in e)return e}function K(e){return e}function U(e,t,r){for(let[n,i]of t.knownState){if(e.has(n.key))continue;e.add(n.key);let t=r?r.getValue(n):n.defaultValue;
45if(t!==i&&!n.isEqual(t,i))return!0}return!1}function W(e,t,r){let{unknownState:n}=t,i=r?r.unknownState:void 0;if(n){for(let[t,r]of Object.entries(n))if(!e.has(t)&&(e.add(t),r!==(i?i[t]:void 0)))return!0}return!1}function H(e,t){let r=e.__state;return r&&r.node===e?r.getWritable(t):r}function q(e,t){let r=e.__mode,n=e.__format,i=e.__style,o=t.__mode,a=t.__format,l=t.__style,s=e.__state,u=t.__state;return(null===r||r===o)&&(null===n||n===a)&&(null===i||i===l)&&(null===e.__state||s===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let r=new Set;return!(e&&U(r,e,t)||t&&U(r,t,e)||e&&W(r,e,t)||t&&W(r,t,e))}(s,u))}function J(e,t){let r=e.mergeWithSibling(t),n=nr()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function V(e){let t,r,n=e;if(""!==n.__text||!n.isSimpleText()||n.isUnmergeable()){for(;null!==(t=n.getPreviousSibling())&&ry(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){q(t,n)&&(n=J(t,n));break}t.remove()}for(;null!==(r=n.getNextSibling())&&ry(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(""!==r.__text){q(n,r)&&(n=J(n,r));break}r.remove()}}else n.remove()}function G(e){return Y(e.anchor),Y(e.focus),e}function Y(e){for(;"element"===e.type;){let t,r,n=e.getNode(),i=e.offset;if(i===n.getChildrenSize()?(t=n.getChildAtIndex(i-1),r=!0):(t=n.getChildAtIndex(i),r=!1),ry(t)){e.set(t.__key,r?t.getTextContentSize():0,"text",!0);break}if(!nv(t))break;e.set(t.__key,r?t.getChildrenSize():0,"element",!0)}}let Z,X,Q,ee,et,er,en,ei,eo,ea,el="",es=null,eu=null,ec=!1,ed=!1;function ef(e,t){let r=en.get(e);if(null!==t){let r=eC(e);r.parentNode===t&&t.removeChild(r)}if(ei.has(e)||X._keyToDOMMap.delete(e),nv(r)){let e=e_(r,en);eh(e,0,e.length-1,null)}void 0!==r&&iO(ea,Q,ee,r,"destroyed")}function eh(e,t,r,n){for(let i=t;i<=r;++i){let t=e[i];void 0!==t&&ef(t,n)}}function ep(e,t){e.setProperty("text-align",t)}function em(e,t){let r=Z.theme.indent;if("string"==typeof r){let n=e.classList.contains(r);t>0&&!n?e.classList.add(r):t<1&&n&&e.classList.remove(r)}if(0===t)return void e.style.setProperty("padding-inline-start","");let n=getComputedStyle(X._rootElement||e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",`calc(${t} * ${n})`)}function eg(e,t){let r=e.style;0===t?ep(r,""):1===t?ep(r,"left"):2===t?ep(r,"center"):3===t?ep(r,"right"):4===t?ep(r,"justify"):5===t?ep(r,"start"):6===t&&ep(r,"end")}function ey(e,t){let r=function(e){let t=e.__dir;if(null!==t)return t;if(nS(e))return null;let r=e.getParentOrThrow();return nS(r)&&null===r.__dir?"auto":null}(t);null!==r?e.dir=r:e.removeAttribute("dir")}function ev(e,t){var r;let i,o=ei.get(e);void 0===o&&n(60);let a=o.createDOM(Z,X);if(i=(r=X)._keyToDOMMap,a[`__lexicalKey_${r._key}`]=e,i.set(e,a),ry(o)?a.setAttribute("data-lexical-text","true"):nx(o)&&a.setAttribute("data-lexical-decorator","true"),nv(o)){let e=o.__indent,t=o.__size;ey(a,o),0!==e&&em(a,e),0!==t&&eb(e_(o,ei),o,0,t-1,o.getDOMSlot(a));let r=o.__format;0!==r&&eg(a,r),o.isInline()||ex(null,o,a)}else{let t=o.getTextContent();if(nx(o)){let t=o.decorate(X,Z);null!==t&&eS(e,t),a.contentEditable="false"}el+=t}return null!==t&&t.insertChild(a),iO(ea,Q,ee,o,"created"),a}function eb(e,t,r,n,i){let o=el;el="";let a=r;for(;a<=n;++a){ev(e[a],i);let t=ei.get(e[a]);null!==t&&ry(t)?null===es&&(es=t.getFormat(),eu=t.getStyle()):nv(t)&&a<n&&!t.isInline()&&(el+="\n\n")}i.element.__lexicalTextContent=el,el=o+el}function ew(e,t){if(e){let r=e.__last;if(r){let e=t.get(r);if(e)return re(e)?"line-break":nx(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ex(e,t,r){let n=ew(e,en),i=ew(t,ei);n!==i&&t.getDOMSlot(r).setManagedLineBreak(i)}function e_(e,t){let r=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&n(101),r.push(i),i=e.__next}return r}function eS(e,t){let r=X._pendingDecorators,n=X._decorators;if(null===r){if(n[e]===t)return;r=ii(X)}r[e]=t}function ek(e){let t=e.nextSibling;return null!==t&&t===X._blockCursorElement&&(t=t.nextSibling),t}function eO(e,t){let r=new Set;for(let n=t;n<e.length;n++)r.add(e[n]);return r}function eC(e){let t=eo.get(e);return void 0===t&&n(75,e),t}function eE(e){return{type:e}}let eT=eE("SELECTION_CHANGE_COMMAND"),eM=eE("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eA=eE("CLICK_COMMAND"),eN=eE("BEFORE_INPUT_COMMAND"),eP=eE("INPUT_COMMAND"),ej=eE("COMPOSITION_START_COMMAND"),eI=eE("COMPOSITION_END_COMMAND"),eD=eE("DELETE_CHARACTER_COMMAND"),e$=eE("INSERT_LINE_BREAK_COMMAND"),eR=eE("INSERT_PARAGRAPH_COMMAND"),eL=eE("CONTROLLED_TEXT_INSERTION_COMMAND"),ez=eE("PASTE_COMMAND"),eF=eE("REMOVE_TEXT_COMMAND"),eB=eE("DELETE_WORD_COMMAND"),eK=eE("DELETE_LINE_COMMAND"),eU=eE("FORMAT_TEXT_COMMAND"),eW=eE("UNDO_COMMAND"),eH=eE("REDO_COMMAND"),eq=eE("KEYDOWN_COMMAND"),eJ=eE("KEY_ARROW_RIGHT_COMMAND"),eV=eE("MOVE_TO_END"),eG=eE("KEY_ARROW_LEFT_COMMAND"),eY=eE("MOVE_TO_START"),eZ=eE("KEY_ARROW_UP_COMMAND"),eX=eE("KEY_ARROW_DOWN_COMMAND"),eQ=eE("KEY_ENTER_COMMAND"),e0=eE("KEY_SPACE_COMMAND"),e1=eE("KEY_BACKSPACE_COMMAND"),e2=eE("KEY_ESCAPE_COMMAND"),e3=eE("KEY_DELETE_COMMAND"),e5=eE("KEY_TAB_COMMAND"),e4=eE("INSERT_TAB_COMMAND"),e6=eE("INDENT_CONTENT_COMMAND"),e8=eE("OUTDENT_CONTENT_COMMAND"),e9=eE("DROP_COMMAND"),e7=eE("FORMAT_ELEMENT_COMMAND"),te=eE("DRAGSTART_COMMAND"),tt=eE("DRAGOVER_COMMAND"),tr=eE("DRAGEND_COMMAND"),tn=eE("COPY_COMMAND"),ti=eE("CUT_COMMAND"),to=eE("SELECT_ALL_COMMAND"),ta=eE("CLEAR_EDITOR_COMMAND"),tl=eE("CLEAR_HISTORY_COMMAND"),ts=eE("CAN_REDO_COMMAND"),tu=eE("CAN_UNDO_COMMAND"),tc=eE("FOCUS_COMMAND"),td=eE("BLUR_COMMAND"),tf=eE("KEY_MODIFIER_COMMAND"),th=Object.freeze({}),tp=[["keydown",function(e,t){tm=e.timeStamp,tg=e.key,t.isComposing()||iM(t,eq,e)}],["pointerdown",function(e,t){let r=e.target,n=e.pointerType;iV(r)&&"touch"!==n&&"pen"!==n&&0===e.button&&np(t,()=>{nx(ir(r))||(t_=!0)})}],["compositionstart",function(e,t){iM(t,ej,e)}],["compositionend",function(e,t){s?tk=!0:!d&&(c||m)?(tO=!0,tC=e.data):iM(t,eI,e)}],["input",function(e,t){e.stopPropagation(),np(t,()=>{t.dispatchCommand(eP,e)},{event:e}),tv=null}],["click",function(e,t){np(t,()=>{let r=rH(),n=iW(i$(t)),i=rq();if(n){if(rE(r)){let t=r.anchor,o=t.getNode();if("element"===t.type&&0===t.offset&&r.isCollapsed()&&!nS(o)&&1===ia().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i))n.removeAllRanges(),r.dirty=!0;else if(3===e.detail&&!r.isCollapsed()&&o!==r.focus.getNode()){let e=oe(o,e=>nv(e)&&!e.isInline());nv(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let r=n.anchorNode;(iJ(r)||nQ(r))&&is(rW(i,n,t,e))}}iM(t,eA,e)})}],["cut",th],["copy",th],["dragstart",th],["dragover",th],["dragend",th],["paste",th],["focus",th],["blur",th],["drop",th]];u&&tp.push(["beforeinput",(e,t)=>{let r;"deleteCompositionText"===(r=e.inputType)||s&&iT(t)||"insertCompositionText"!==r&&iM(t,eN,e)}]);let tm=0,tg=null,ty=0,tv=null,tb=new WeakMap,tw=new WeakMap,tx=!1,t_=!1,t
45S=!1,tk=!1,tO=!1,tC="",tE=null,tT=[0,"",0,"root",0];function tM(e,t,r,n,i){let o=e.anchor,a=e.focus,l=o.getNode(),s=nr(),c=iW(i$(s)),d=null!==c?c.anchorNode:null,f=o.key,h=s.getElementByKey(f),p=r.length;return f!==a.key||!ry(l)||(!i&&(!u||ty<n+50)||l.isDirty()&&p<2||ic(r))&&o.offset!==a.offset&&!l.isComposing()||nX(l)||l.isDirty()&&p>1||(i||!u)&&null!==h&&!l.isComposing()&&d!==n1(h)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!l.isComposing()&&(l.getFormat()!==e.format||l.getStyle()!==e.style)||function(e,t){let r;if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,i=t.getParentOrThrow(),o=nZ(t);return 0===n?!t.canInsertTextBefore()||!i.canInsertTextBefore()&&!t.isComposing()||o||(ry(r=t.getPreviousSibling())||nv(r)&&r.isInline())&&!r.canInsertTextAfter():n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!i.canInsertTextAfter()&&!t.isComposing()||o)}(e,l)}function tA(e,t){return nQ(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tN(e,t,r){let{anchorNode:i,anchorOffset:o,focusNode:a,focusOffset:l}=e;tx&&(tx=!1,tA(i,o)&&tA(a,l)&&!tE)||np(t,()=>{if(!r)return void is(null);if(!nJ(t,i,a))return;let s=rH();if(tE&&rE(s)&&s.isCollapsed()){let e=s.anchor,t=tE.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&is(s=tE.clone())}if(tE=null,rE(s)){let r=s.anchor,i=r.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);let o=i$(t).event,a=o?o.timeStamp:performance.now(),[l,u,c,d,f]=tT,h=ia(),p=!1===t.isComposing()&&""===h.getTextContent();if(a<f+200&&r.offset===c&&r.key===d)tP(s,l,u);else if("text"===r.type)ry(i)||n(141),tj(s,i);else if("element"===r.type&&!p){nv(i)||n(259);let e=r.getNode();e.isEmpty()?tP(s,e.getTextFormat(),e.getTextStyle()):tP(s,0,"")}}else{let e=r.key,t=s.focus.key,n=s.getNodes(),i=n.length,a=s.isBackward(),u=a?l:o,c=a?o:l,d=a?t:e,f=a?e:t,h=2047,p=!1;for(let e=0;e<i;e++){let t=n[e],r=t.getTextContentSize();if(ry(t)&&0!==r&&(0!==e||t.__key!==d||u!==r)&&(e!==i-1||t.__key!==f||0!==c)&&(p=!0,0==(h&=t.getFormat())))break}s.format=p?h:0}}iM(t,eT,void 0)})}function tP(e,t,r){e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}function tj(e,t){tP(e,t.getFormat(),t.getStyle())}function tI(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tD(e){var t;let r=e.inputType,i=tI(e),o=nr(),a=rH();if("deleteContentBackward"===r){if(null===a){let e=rq();if(!rE(e))return!0;is(e.clone())}if(rE(a)){let r=a.anchor.key===a.focus.key;if(t=e.timeStamp,"MediaLast"===tg&&t<tm+30&&o.isComposing()&&r){if(n8(null),tm=0,setTimeout(()=>{np(o,()=>{n8(null)})},30),rE(a)){let e=a.anchor.getNode();e.markDirty(),ry(e)||n(142),tj(a,e)}}else{n8(null),e.preventDefault();let t=a.anchor.getNode(),n=t.getTextContent(),i=t.canInsertTextAfter(),l=0===a.anchor.offset&&a.focus.offset===n.length,s=p&&r&&!l&&i;if(s&&a.isCollapsed()&&(s=!nx(iE(a.anchor,!0))),!s){iM(o,eD,!0);let e=rH();p&&rE(e)&&e.isCollapsed()&&(tE=e,setTimeout(()=>tE=null))}}return!0}}if(!rE(a))return!0;let l=e.data;null!==tv&&im(!1,o,tv),a.dirty&&null===tv||!a.isCollapsed()||nS(a.anchor.getNode())||null===i||a.applyDOMRange(i),tv=null;let s=a.anchor,u=a.focus,c=s.getNode(),f=u.getNode();if("insertText"===r||"insertTranspose"===r){if("\n"===l)e.preventDefault(),iM(o,e$,!1);else if("\n\n"===l)e.preventDefault(),iM(o,eR,void 0);else if(null==l&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),a.insertRawText(t)}else null!=l&&tM(a,i,l,e.timeStamp,!0)?(e.preventDefault(),iM(o,eL,l)):tv=l;return ty=e.timeStamp,!0}switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":iM(o,eL,e);break;case"insertFromComposition":n8(null),iM(o,eL,e);break;case"insertLineBreak":n8(null),iM(o,e$,!1);break;case"insertParagraph":n8(null),tS&&!d?(tS=!1,iM(o,e$,!1)):iM(o,eR,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":iM(o,ez,e);break;case"deleteByComposition":(c!==f||nv(c)||nv(f)||!nZ(c)||!nZ(f))&&iM(o,eF,e);break;case"deleteByDrag":case"deleteByCut":iM(o,eF,e);break;case"deleteContent":iM(o,eD,!1);break;case"deleteWordBackward":iM(o,eB,!0);break;
45case"deleteWordForward":iM(o,eB,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":iM(o,eK,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":iM(o,eK,!1);break;case"formatStrikeThrough":iM(o,eU,"strikethrough");break;case"formatBold":iM(o,eU,"bold");break;case"formatItalic":iM(o,eU,"italic");break;case"formatUnderline":iM(o,eU,"underline");break;case"historyUndo":iM(o,eW,void 0);break;case"historyRedo":iM(o,eH,void 0)}return!0}function t$(e){if(iJ(e.target)&&nx(ir(e.target)))return!0;let t=nr(),r=rH(),n=e.data,i=tI(e);if(null!=n&&rE(r)&&tM(r,i,n,e.timeStamp,!1)){tk&&(tz(t,n),tk=!1);let i=r.anchor.getNode(),o=iW(i$(t));if(null===o)return!0;let a=r.isBackward(),l=a?r.anchor.offset:r.focus.offset,c=a?r.focus.offset:r.anchor.offset;u&&!r.isCollapsed()&&ry(i)&&null!==o.anchorNode&&i.getTextContent().slice(0,l)+n+i.getTextContent().slice(l+c)===ip(o.anchorNode)||iM(t,eL,n);let d=n.length;s&&d>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(r.anchor.offset-=d),p&&t.isComposing()&&(tm=0,n8(null))}else im(!1,t,null!==n?n:void 0),tk&&(tz(t,n||void 0),tk=!1);return r7(),P(nr()),!0}function tR(e){let t=nr(),r=rH();if(rE(r)&&!t.isComposing()){let n=r.anchor,i=r.anchor.getNode();n8(n.key),ij(t4),(e.timeStamp<tm+30||"element"===n.type||!r.isCollapsed()||i.getFormat()!==r.format||ry(i)&&i.getStyle()!==r.style)&&iM(t,eL,y)}return!0}function tL(e){return tz(nr(),e.data),ij(t6),!0}function tz(e,t){let r=e._compositionKey;if(n8(null),null!==r&&null!=t){if(""===t){let t=n7(r),n=n1(e.getElementByKey(r));if(null!==n&&null!==n.nodeValue&&ry(t)){let r=iW(i$(e)),i=null,o=null;null!==r&&r.anchorNode===n&&(i=r.anchorOffset,o=r.focusOffset),ig(t,n.nodeValue,i,o,!0)}return}if("\n"===t[t.length-1]){let t=rH();if(rE(t)||rM(t)){if(rE(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void iM(e,eQ,null)}}}im(!0,e,t)}function tF(e){let t=nr();if(null==e.key)return!0;if(tO){if(i_(e))return np(t,()=>{tz(t,tC)}),tO=!1,tC="",!0;tO=!1,tC=""}if(ib(e,"ArrowRight",{shiftKey:"any"}))iM(t,eJ,e);else if(ib(e,"ArrowRight",iw))iM(t,eV,e);else if(ib(e,"ArrowLeft",{shiftKey:"any"}))iM(t,eG,e);else if(ib(e,"ArrowLeft",iw))iM(t,eY,e);else if(ib(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))iM(t,eZ,e);else if(ib(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))iM(t,eX,e);else if(ib(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tS=!0,iM(t,eQ,e);else if(" "===e.key)iM(t,e0,e);else if(l&&ib(e,"o",{ctrlKey:!0}))e.preventDefault(),tS=!0,iM(t,e$,!0);else if(ib(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tS=!1,iM(t,eQ,e);else if(ib(e,"Backspace",{shiftKey:"any"})||l&&ib(e,"h",{ctrlKey:!0}))i_(e)?iM(t,e1,e):(e.preventDefault(),iM(t,eD,!0));else if("Escape"===e.key)iM(t,e2,e);else if(ib(e,"Delete",{})||l&&ib(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),iM(t,eD,!1)):iM(t,e3,e);else if(ib(e,"Backspace",ix))e.preventDefault(),iM(t,eB,!0);else if(ib(e,"Delete",ix))e.preventDefault(),iM(t,eB,!1);else if(l&&ib(e,"Backspace",{metaKey:!0}))e.preventDefault(),iM(t,eK,!0);else if(l&&(ib(e,"Delete",{metaKey:!0})||ib(e,"k",{ctrlKey:!0})))e.preventDefault(),iM(t,eK,!1);else if(ib(e,"b",iw))e.preventDefault(),iM(t,eU,"bold");else if(ib(e,"u",iw))e.preventDefault(),iM(t,eU,"underline");else if(ib(e,"i",iw))e.preventDefault(),iM(t,eU,"italic");else if(ib(e,"Tab",{shiftKey:"any"}))iM(t,e5,e);else if(ib(e,"z",iw))e.preventDefault(),iM(t,eW,void 0);else if(l?ib(e,"z",{metaKey:!0,shiftKey:!0}):ib(e,"y",{ctrlKey:!0})||ib(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),iM(t,eH,void 0);else{let r=t._editorState._selection;null===r||rE(r)?ib(e,"a",iw)&&(e.preventDefault(),iM(t,to,e)):ib(e,"c",iw)?(e.preventDefault(),iM(t,tn,e)):ib(e,"x",iw)?(e.preventDefault(),iM(t,ti,e)):ib(e,"a",iw)&&(e.preventDefault(),iM(t,to,e))}return(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&t.dispatchCommand(tf,e),!0}function tB(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tK=new Map;function tU(e){let t=iH(e.target);if(null===t)return;let r=nG(t.anchorNode);if(null===r)return;t_&&(t_=!1,np(r,()=>{let n=rq(),i=t.anchorNode;(iJ(i)||nQ(i))&&is(rW(n,t,r,e))}));let n=id(r),i=n[n.length-1],o=i._key,a=tK.get(o),l=a||i;l!==r&&tN(t,l,!1),tN(t,r,!0),r!==i?tK.set(o,r):a&&tK.delete(o)}function tW(e){e._lexicalHandled=!0}function tH(e){return!0===e._lexicalHandled}let tq=()=>{};function tJ(e,t,r){r7();let n=e.__key,i=e.getParent();if(null===i)return;let o=function(e){let t=rH();if(!rE(t)||!nv(e))return t;let{anchor:r,focus:n}=t,i=r.getNode(),o=n.getNode();return iI(i,e)&&r.set(e.__key,0,"element"),iI(o,e)&&n.set(e.__key,0,"element"),t}(e),a=!1;if(rE(o)&&t){let t=o.anchor,r=o.focus;t.key===n&&(rG(t,e,i,e.getPreviousSibling(),e.getNextSibling()),a=!0),r.key===n&&(rG(r,e,i,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else rM(o)&&t&&e.isSelected()&&e.selectPrevious();if(rE(o)&&t&&!a){let t=e.getIndexWithinParent();n4(e),rJ(o,i,t,-1)}else n4(e);r||iL(i)||i.canBeEmpty()||!i.isEmpty()||tJ(i,t),t&&o&&nS(i)&&i.isEmpty()&&i.selectEnd()}function tV(e){return e}let tG=Symbol.for("ephemeral");function tY(e){return e[tG]||!1}class tZ{__type;__key;__parent;__prev;__next;__state;static getType(){let{ownNodeType:e}=i9(this);return void 0===e&&n(64,this.name),e}static clone(e){n(65,this.name)}$config(){return{}}config(e,t){let r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),n5(this,e)}getType(){return this.__type}isInline(){n(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=n7(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||rH();if(null==t)return!1;let r=t.getNodes().some(e=>e.__key===this.__key);if(ry(this))return r;if(rE(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(nx(this)&&this.isInline()&&e){let r=t.isBackward()?t.focus:t.anchor;if(e.is(r.getNode())&&r.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),r=0;for(;null!==t;){if(this.is(t))return r;r++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:n7(e)}getParentOrThrow(){let e=this.getParent();return null===e&&n(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(iL(t))return nv(e)||e===this&&nx(e)||n(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&n(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:n7(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let r=t.getFirstChild();for(;null!==r&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:n7(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=nv(this)?this:this.getParent(),r=nv(e)?e:e.getParent(),n=t&&r?oA(t,r):null;return n?n.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=oA(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===oT(t):("same"!==t.type&&"ancestor"!==t.type&&n(279),!1)))}isParentOf(e){let t=oA(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),r=[],i=new Set,o=this;for(;null!==o;){let a=o.__key;if(i.has(a)||(i.add(a),r.push(o)),o===e)break;
45let l=nv(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==l){o=l;continue}let s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}let u=o.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let c=null,d=u;do{if(null===d&&n(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||r.push(d)}while(null===c);o=c}return t||r.reverse(),r}isDirty(){let e=nr()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(tY(this))return this;let e=n7(this.__key);return null===e&&n(113),e}getWritable(){if(tY(this))return this;r7();let e=nt(),t=nr(),r=e._nodeMap,n=this.__key,i=this.getLatest(),o=t._cloneNotNeeded,a=rH();if(null!==a&&a.setCachedNodes(null),o.has(n))return n6(i),i;let l=i3(i);return o.add(n),n6(l),r.set(n,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){n(70)}updateDOM(e,t,r){n(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){n(18,this.name)}updateFromJSON(e){return function(e,t){let r=e.getWritable(),n=t.$,i=n;for(let e of F(r).flatKeys)e in t&&(void 0!==i&&i!==n||(i={...n}),i[e]=t[e]);return(r.__state||i)&&z(e).updateFromJSON(i),r}(this,e)}static transform(){return null}remove(e){tJ(this,!0,e)}replace(e,t){r7();let r=rH();null!==r&&(r=r.clone()),iB(this,e);let i=this.getLatest(),o=this.__key,a=e.__key,l=e.getWritable(),s=this.getParentOrThrow().getWritable(),u=s.__size;n4(l);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,h=i.__next,p=i.__parent;if((tJ(i,!1,!0),null===c)?s.__first=a:c.getWritable().__next=a,(l.__prev=f,null===d)?s.__last=a:d.getWritable().__prev=a,l.__next=h,l.__parent=p,s.__size=u,t&&(nv(this)&&nv(l)||n(139),this.getChildren().forEac
45h(e=>{l.append(e)})),rE(r)){is(r);let e=r.anchor,t=r.focus;e.key===o&&rO(e,l),t.key===o&&rO(t,l)}return n9()===o&&n8(a),l}insertAfter(e,t=!0){r7(),iB(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.getParent(),o=rH(),a=!1,l=!1;if(null!==i){let t=e.getIndexWithinParent();if(n4(n),rE(o)){let e=i.__key,r=o.anchor,n=o.focus;a="element"===r.type&&r.key===e&&r.offset===t+1,l="element"===n.type&&n.key===e&&n.offset===t+1}}let s=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=n.__key,d=r.__next;if(null===s?u.__last=c:s.getWritable().__prev=c,u.__size++,r.__next=c,n.__next=d,n.__prev=r.__key,n.__parent=r.__parent,t&&rE(o)){let e=this.getIndexWithinParent();rJ(o,u,e+1);let t=u.__key;a&&o.anchor.set(t,e+2,"element"),l&&o.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){r7(),iB(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.__key;n4(n);let o=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=r.__prev,s=this.getIndexWithinParent();null===o?a.__first=i:o.getWritable().__next=i,a.__size++,r.__prev=i,n.__prev=l,n.__next=r.__key,n.__parent=r.__parent;let u=rH();return t&&rE(u)&&rJ(u,this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return nN()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){r7();let r=this.getPreviousSibling(),n=this.getParentOrThrow();if(null===r)return n.select(0,0);if(nv(r))return r.select();if(!ry(r)){let e=r.getIndexWithinParent()+1;return n.select(e,e)}return r.select(e,t)}selectNext(e,t){r7();let r=this.getNextSibling(),n=this.getParentOrThrow();if(null===r)return n.select();if(nv(r))return r.select(0,0);if(!ry(r)){let e=r.getIndexWithinParent();return n.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}let tX="historic",tQ="history-push",t0="history-merge",t1="paste",t2="skip-scroll-into-view",t3="skip-dom-selection",t5="skip-selection-focus",t4="composition-start",t6="composition-end";class t8 extends tZ{static getType(){return"linebreak"}static clone(e){return new t8(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iZ(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rt(r)){let r=t.lastChild;if(r===e||r.previousSibling===e&&rt(r))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iZ(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rt(r))return!1;let n=t.lastChild;if(n===e||n.previousSibling===e&&rt(n))return!0}return!1}(e)?null:{conversion:t9,priority:0}}}static importJSON(e){return t7().updateFromJSON(e)}}function t9(e){return{node:t7()}}function t7(){return iF(new t8)}function re(e){return e instanceof t8}function rt(e){return nQ(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function rr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function rn(e,t){return 1&t?"strong":2&t?"em":"span"}function ri(e,t,r,n,i){let o=n.classList,a=ik(i,"base");void 0!==a&&o.add(...a);let l=!1,s=8&t&&4&t;for(let e in void 0!==(a=ik(i,"underlineStrikethrough"))&&(8&r&&4&r?(l=!0,s||o.add(...a)):s&&o.remove(...a)),w){let n=w[e];if(void 0!==(a=ik(i,e)))if(r&n){if(l&&("underline"===e||"strikethrough"===e)){t&n&&o.remove(...a);continue}(0==(t&n)||s&&"underline"===e||"strikethrough"===e)&&o.add(...a)}else t&n&&o.remove(...a)}}function ro(e,t,r){let n=t.firstChild,i=r.isComposing(),o=e+(i?g:"");if(null==n)t.textContent=o;else{let e=n.nodeValue;if(e!==o)if(i||s){let[t,r,i]=function(e,t){let r=e.length,n=t.length,i=0,o=0;for(;i<r&&i<n&&e[i]===t[i];)i++;for(;o+i<r&&o+i<n&&e[r-o-1]===t[n-o-1];)o++;return[i,r-i-o,t.slice(i,n-o)]}(e,o);0!==r&&n.deleteData(t,r),n.insertData(t,i)}else n.nodeValue=o}}function ra(e,t,r,n,i,o){ro(i,e,t);let a=o.theme.text;void 0!==a&&ri(0,0,n,e,a)}function rl(e,t){let r=document.createElement(t);return r.appendChild(e),r}class rs extends tZ{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new rs(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return O[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===n9()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=w[e];return 0!=(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return n2(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let r=this.__format,n=rr(0,r),i=rn(0,r),o=null===n?i:n,a=document.createElement(o),l=a;
45this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==n&&(l=document.createElement(i),a.appendChild(l)),ra(l,this,0,r,this.__text,e);let s=this.__style;return""!==s&&(a.style.cssText=s),a}updateDOM(e,t,r){let i=this.__text,o=e.__format,a=this.__format,l=rr(0,o),s=rr(0,a),u=rn(0,o),c=rn(0,a);if((null===l?u:l)!==(null===s?c:s))return!0;if(l===s&&u!==c){let e=t.firstChild;null==e&&n(48);let o=document.createElement(c);return ra(o,this,0,a,i,r),t.replaceChild(o,e),!1}let d=t;null!==s&&null!==l&&null==(d=t.firstChild)&&n(49),ro(i,d,this);let f=r.theme.text;void 0!==f&&o!==a&&ri(0,o,a,d,f);let h=e.__style,p=this.__style;return h!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:rf,priority:0}),b:()=>({conversion:rc,priority:0}),code:()=>({conversion:rm,priority:0}),em:()=>({conversion:rm,priority:0}),i:()=>({conversion:rm,priority:0}),mark:()=>({conversion:rm,priority:0}),s:()=>({conversion:rm,priority:0}),span:()=>({conversion:ru,priority:0}),strong:()=>({conversion:rm,priority:0}),sub:()=>({conversion:rm,priority:0}),sup:()=>({conversion:rm,priority:0}),u:()=>({conversion:rm,priority:0})}}static importJSON(e){return rg().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
45exportDOM(e){let{element:t}=super.exportDOM(e);return iJ(t)||n(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=rl(t,"b")),this.hasFormat("italic")&&(t=rl(t,"i")),this.hasFormat("strikethrough")&&(t=rl(t,"s")),this.hasFormat("underline")&&(t=rl(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?w[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?x[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=n2(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=k[e];if(this.__mode===t)return this;let r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){r7();let r=e,n=t,i=rH(),o=this.getTextContent(),a=this.__key;if("string"==typeof o){let e=o.length;void 0===r&&(r=e),void 0===n&&(n=e)}else r=0,n=0;if(!rE(i))return rF(a,r,a,n,"text","text");{let e=n9();e!==i.anchor.key&&e!==i.focus.key||n8(a),i.setTextNodeRange(this,r,this,n)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,n){let i=this.getWritable(),o=i.__text,a=r.length,l=e;l<0&&(l=a+l)<0&&(l=0);let s=rH();if(n&&rE(s)){let t=e+a;s.setTextNodeRange(i,t,i,t)}return i.__text=o.slice(0,l)+r+o.slice(l+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;r7();let r=this.getLatest(),n=r.getTextContent();if(""===n)return[];let i=r.__key,o=n9(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let l=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(l.push(n.slice(t,i)),t=i)}let u=l.length;if(1===u)return[r];let c=l[0],d=r.getParent(),f=r.getFormat(),h=r.getStyle(),p=r.__detail,m=!1,g=null,y=null,v=rH();if(rE(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];"text"===e.type&&e.key===i&&(g=e),"text"===t.type&&t.key===i&&(y=t)}r.isSegmented()?((t=rg(c)).__format=f,t.__style=h,t.__detail=p,t.__state=H(r,t),m=!0):t=r.setTextContent(c);let b=[t];for(let e=1;e<u;e++){let t=rg(l[e]);t.__format=f,t.__style=h,t.__detail=p,t.__state=H(r,t);let n=t.__key;o===i&&n8(n),b.push(t)}let w=g?g.offset:null,x=y?y.offset:null,_=0;for(let e of b){if(!g&&!y)break;let t=_+e.getTextContentSize();if(null!==g&&null!==w&&w<=t&&w>=_&&(g.set(e.getKey(),w-_,"text"),w<t&&(g=null)),null!==y&&null!==x&&x<=t&&x>=_){y.set(e.getKey(),x-_,"text");break}_=t}if(null!==d){let e,t;e=this.getPreviousSibling(),t=this.getNextSibling(),null!==e&&n6(e),null!==t&&n6(t);let r=d.getWritable(),n=this.getIndexWithinParent();m?(r.splice(n,0,b),this.remove()):r.splice(n,1,b),rE(v)&&rJ(v,d,n,u-1)}return b}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||n(50);let r=this.__key,i=e.__key,o=this.__text,a=o.length;n9()===i&&n8(r);let l=rH();if(rE(l)){let n=l.anchor,o=l.focus;null!==n&&n.key===i&&rY(n,t,r,e,a),null!==o&&o.key===i&&rY(o,t,r,e,a)}let s=e.__text,u=t?s+o:o+s;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function ru(e){return{forChild:rv(e.style),node:null}}function rc(e){let t="normal"===e.style.fontWeight;return{forChild:rv(e.style,t?void 0:"bold"),node:null}}let rd=new WeakMap;function rf(e){null===e.parentElement&&n(129);let t=e.textContent||"";if(null!==function(e){let t,r=e.parentNode,n=[e];for(;null!==r&&void 0===(t=rd.get(r))&&!function(e){if(!iJ(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(r);)n.push(r),r=r.parentNode;let i=void 0===t?r:t;for(let e=0;e<n.length;e++)rd.set(n[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),r=[],n=e.length;for(let t=0;t<n;t++){let n=e[t];"\n"===n||"\r\n"===n?r.push(t7()):" "===n?r.push(rw()):""!==n&&r.push(rg(n))}return{node:r}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let r=e,n=!0;for(;null!==r&&null!==(r=rh(r,!1));){let e=r.textContent||"";if(e.length>
450){/[ \t\n]$/.test(e)&&(t=t.slice(1)),n=!1;break}}n&&(t=t.slice(1))}if(" "===t[t.length-1]){let r=e,n=!0;for(;null!==r&&null!==(r=rh(r,!0));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){n=!1;break}n&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:rg(t)}}function rh(e,t){let r=e;for(;;){let e;for(;null===(e=t?r.nextSibling:r.previousSibling);){let e=r.parentElement;if(null===e)return null;r=e}if(iJ(r=e)){let e=r.style.display;if(""===e&&!iY(r)||""!==e&&!e.startsWith("inline"))return null}let n=r;for(;null!==(n=t?r.firstChild:r.lastChild);)r=n;if(nQ(r))return r;if("BR"===r.nodeName)return null}}let rp={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function rm(e){let t=rp[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:rv(e.style,t),node:null}}function rg(e=""){return iF(new rs(e))}function ry(e){return e instanceof rs}function rv(e,t){let r=e.fontWeight,n=e.textDecoration.split(" "),i="700"===r||"bold"===r,o=n.includes("line-through"),a="italic"===e.fontStyle,l=n.includes("underline"),s=e.verticalAlign;return e=>(ry(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),o&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),l&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==s||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==s||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class rb extends rs{static getType(){return"tab"}static clone(e){return new rb(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),r=ik(e.theme,"tab");return void 0!==r&&t.classList.add(...r),t}static importJSON(e){return rw().updateFromJSON(e)}setTextContent(e){return" "!==e&&""!==e&&i(126),super.setTextContent(" ")}spliceText(e,t,r,i){return""===r&&0===t||" "===r&&1===t||n(286),this}setDetail(e){return 2!==e&&n(127),this}setMode(e){return"normal"!==e&&n(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rw(){return iF(new rb)}function rx(e){return e instanceof rb}class r_{key;offset;type;_selection;constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>oE(oz(oN(this,"next")),oz(oN(e,"next")))}getNode(){let e=n7(this.key);return null===e&&n(20),e}set(e,t,r,n){let i=this._selection,o=this.key;n&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,r9()||(n9()===o&&n8(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function rS(e,t,r){return new r_(e,t,r)}function rk(e,t){let r=t.__key,n=e.offset,i="element";if(ry(t)){i="text";let e=t.getTextContentSize();n>e&&(n=e)}else if(!nv(t)){let e=t.getNextSibling();if(ry(e))r=e.__key,n=0,i="text";else{let e=t.getParent();e&&(r=e.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,i)}function rO(e,t){if(nv(t)){let r=t.getLastDescendant();nv(r)||ry(r)?rk(e,r):rk(e,t)}else rk(e,t)}class rC{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!rM(e))return!1;let t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(e=>r.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new rC(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,r=this.getNodes(),n=r.length,i=r[n-1];if(ry(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<n;e++)r[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,r=[];for(let e of t){let t=n7(e);null!==t&&r.push(t)}return r9()||(this._cachedNodes=r),r}getTextContent(){let e=this.getNodes(),t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){let e=this.getNodes();
45if((rH()||rq())===this&&e[0]){let t=om(e[0],"next");oj(oO(t,t))}for(let t of e)t.remove()}}function rE(e){return e instanceof rT}class rT{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,r,n){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=n,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!rE(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[r,n]=e.getTextSlices();r&&t.push(r.caret.origin);let i=new Set,o=new Set;for(let r of e)if(od(r)){let{origin:e}=r;0===t.length?i.add(e):(o.add(e),t.push(e))}else{let{origin:e}=r;nv(e)&&o.has(e)||t.push(e)}if(n&&t.push(n.caret.origin),oc(e.focus)&&nv(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let r=ov(e.focus.origin,"previous");od(r)&&i.has(r.origin)&&!r.origin.isEmpty()&&r.origin.is(t[t.length-1]);r=ow(r))i.delete(r.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!nv(e)||o.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let r=oz(e.anchor),n=oz(e.anchor.getFlipped()),i=e=>ou(e)?e.origin:e.getNodeAtCaret(),o=i(r)||i(n)||(e.anchor.getNodeAtCaret()?r.origin:n.origin);t.push(o)}return t}(oK(oD(this),"next"));return r9()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,n){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,n,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],r=e[e.length-1],n=this.anchor,i=this.focus,o=n.isBefore(i),[a,l]=rN(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(nv(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,ry(d)){let e=d.getTextContent();d===t?d===r?"element"===n.type&&"element"===i.type&&i.offset!==n.offset||(e=a<l?e.slice(a,l):e.slice(l,a)):e=o?e.slice(a):e.slice(l):d===r&&(e=o?e.slice(0,l):e.slice(0,a)),s+=e}else!nx(d)&&!re(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=nr(),r=t.getEditorState()._selection,n=rL(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(null===n)return;let[i,o]=n;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),G(this)}clone(){let e=this.anchor,t=this.focus;return new rT(rS(e.key,e.offset,e.type),rS(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=n2(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=w[e];return 0!=(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),r=[],n=t.length;for(let e=0;e<n;e++){let n=t[e];"\n"===n||"\r\n"===n?r.push(t7()):" "===n?r.push(rw()):r.push(rg(n))}this.insertNodes(r)}insertText(e){let t=this.anchor,r=this.focus,i=this.format,o=this.style,a=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(a=r,l=t),"element"===a.type&&function(e,t,r,n){let i=e.getNode(),o=i.getChildAtIndex(e.offset),a=rg();if(a.setFormat(r),a.setStyle(n),nP(o))o.splice(0,0,[a]);else{let e=nS(i)?nN().append(a):a;null===o?i.append(e):o.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(a,l,i,o),"element"===l.type&&oP(l,oz(oN(l,"next")));let s=a.offset,u=l.offset,c=this.getNodes(),d=c.length,f=c[0];ry(f)||n(26);let h=f.getTextContent().length,p=f.getParentOrThrow(),m=c[d-1];if(1===d&&"element"===l.type&&(u=h,l.set(a.key,u,"text")),this.isCollapsed()&&s===h&&(nX(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(ry(t)&&t.canInsertTextBefore()&&!nX(t)||((t=rg()).setFormat(i),t.setStyle(o),p.canInsertTextAfter()?f.insertAfter(t):p.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(nX(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(ry(t)&&!nX(t)||((t=rg()).setFormat(i),p.canInsertTextBefore()?f.insertBefore(t):p.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&s!==h){let e=rg(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||nv(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),rR(this.anchor,this.focus),void this.insertText(e)}if(1===d){if(nZ(f)){let t=rg(e);return t.select(),void f.replace(t)}let t=f.getFormat(),r=f.getStyle();if(s!==u||t===i&&r===o){if(rx(f)){let t=rg(e);return t.setFormat(i),t.setStyle(o),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=rg(e);if(t.setFormat(i),t.setStyle(o),t.select(),0===s)f.insertBefore(t,!1);else{let[e]=f.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(o)}let n=u-s;""===(f=f.spliceText(s,n,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=t,this.style=r,f.isComposing()&&(this.anchor.offset-=e.length))}else{let t=new Set([...f.getParentKeys(),...m.getParentKeys()]),r=nv(f)?f:f.getParentOrThrow(),n=nv(m)?m:m.getParentOrThrow(),i=m;if(!r.is(n)&&n.isInline())do i=n,n=n.getParentOrThrow();while(n.isInline());if("text"===l.type&&(0!==u||""===m.getTextContent())||"element"===l.type&&m.getIndexWithinParent()<u)if(ry(m)&&!nZ(m)&&u!==m.getTextContentSize()){if(m.isSegmented()){let e=rg(m.getTextContent());m.replace(e),m=e}nS(l.getNode())||"text"!==l.type||(m=m.spliceText(0,u,"")),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?m.remove():e.remove()}else t.add(m.__key);let o=n.getChildren(),a=new Set(c),p=r.is(n),g=r.isInline()&&null===f.getNextSibling()?r:f;for(let e=o.length-1;e>=0;
45e--){let t=o[e];if(t.is(f)||nv(t)&&t.isParentOf(f))break;t.isAttached()&&(!a.has(t)||t.is(i)?p||g.insertAfter(t,!1):t.remove())}if(!p){let e=n,r=null;for(;null!==e;){let n=e.getChildren(),i=n.length;(0===i||n[i-1].is(r))&&(t.delete(e.__key),r=e),e=e.getParent()}}if(nZ(f))if(s===h)f.select();else{let t=rg(e);t.select(),f.replace(t)}else""===(f=f.spliceText(s,h-s,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=f.getFormat(),this.style=f.getStyle(),f.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<d;e++){let r=c[e],n=r.__key;t.has(n)||r.remove()}}}removeText(){let e=rH()===this;oI(this,function(e,t="removeEmptySlices"){let r,i;if(e.isCollapsed())return e;let o="root",a="next",l=t,s=oK(e,a),u=oR(s.anchor,o),c=oR(s.focus.getFlipped(),o),d=new Set,f=[];for(let e of s.iterNodeCarets(o))if(od(e))d.add(e.origin.getKey());else if(oc(e)){let{origin:t}=e;nv(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of s.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,r=t.getTextContentSize(),n=o$(om(t,a)),i=t.getMode();if(Math.abs(e.distance)===r&&"removeEmptySlices"===l||"token"===i&&0!==e.distance)n.remove();else if(0!==e.distance){l="removeEmptySlices";let t=e.removeTextSlice(),r=e.caret.origin;if("segmented"===i){let e=t.origin,r=rg(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());n.replaceOrInsert(r),t=og(r,a,t.offset)}r.is(u[0].origin)&&(u[0]=t),r.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(oL(e)){r=oz(e);break}for(let e of c)if(oL(e)){i=oz(e);break}let h=function(e,t,r){let n;if(!e||!t)return null;let i=e.getParentAtCaret(),o=t.getParentAtCaret();if(!i||!o)return null;let a=i.getParents().reverse();a.push(i);let l=o.getParents().reverse();l.push(o);let s=Math.min(a.length,l.length);for(n=0;n<s&&a[n]===l[n];n++);let u=(e,t)=>{let r;for(let i=n;i<e.length;i++){let n=e[i];if(iL(n))return;!r&&t(n)&&(r=n)}return r},c=u(a,iX),d=c&&u(l,e=>r.has(e.getKey())&&iX(e));return c&&d?[c,d]:null}(r,i,d);if(h){let[e,t]=h;ov(e,"previous").splice(0,t.getChildren());let r=t.getParent();for(t.remove(!0);r&&r.isEmpty();){let e=r;r=r.getParent(),e.remove(!0)}}let p=[r,i,...u,...c].find(oL);if(p)return ok(oB(oz(p),e.direction));n(269,JSON.stringify(u.map(e=>e.origin.__key)))}(oD(this))),e&&rH()!==this&&is(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void n8(null);let r=this.getNodes(),n=[];for(let e of r)ry(e)&&n.push(e);let i=t=>{r.forEach(r=>{if(nv(r)){let n=r.getFormatFlags(e,t);r.setTextFormat(n)}})},o=n.length;if(0===o)return this.toggleFormat(e),n8(null),void i(t);let a=this.anchor,l=this.focus,s=this.isBackward(),u=s?l:a,c=s?a:l,d=0,f=n[0],h="element"===u.type?0:u.offset;if("text"===u.type&&h===f.getTextContentSize()&&(d=1,f=n[1],h=0),null==f)return;let p=f.getFormatFlags(e,t);i(p);let m=o-1,g=n[m],y="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(h===y)return;if(nX(f)||0===h&&y===f.getTextContentSize())f.setFormat(p);else{let e=f.splitText(h,y),t=0===h?e[0]:e[1];t.setFormat(p),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,y-h,"text")}return void(this.format=p)}0===h||nX(f)||([,f]=f.splitText(h),h=0),f.setFormat(p);let v=g.getFormatFlags(e,p);y>0&&(y===g.getTextContentSize()||nX(g)||([g]=g.splitText(y)),g.setFormat(v));for(let t=d+1;t<m;t++){let r=n[t],i=r.getFormatFlags(e,v);r.setFormat(i)}"text"===u.type&&u.set(f.__key,h,"text"),"text"===c.type&&c.set(g.__key,y,"text"),this.format=p|v}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=rH();return rE(t)||n(134),t.insertNodes(e)}let r=(this.isBackward()?this.focus:this.anchor).getNode(),i=oe(r,iX),o=e[e.length-1];if(nv(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=r0(this);i.splice(t,0,e),o.selectEnd()}return}if(!e.some(e=>(nv(e)||nx(e))&&!e.isInline())){nv(i)||n(211,r.constructor.name,r.getType());let t=r0(this);return i.splice(t,0,e),void o.selectEnd()}let a=function(e){let t=nN(),r=null;for(let n=0;n<e.length;n++){let i=e[n],o=re(i);if(o||nx(i)&&i.isInline()||nv(i)&&i.isInline()||ry(i)||i.isParentRequired()){if
45(null===r&&(r=i.createParentElementNode(),t.append(r),o))continue;null!==r&&r.append(i)}else t.append(i),r=null}return t}(e),l=a.getLastDescendant(),s=a.getChildren(),u=nv(i)&&i.isEmpty()?null:this.insertParagraph(),c=s[s.length-1],d=s[0];nv(t=d)&&iX(t)&&!t.isEmpty()&&nv(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(nv(i)||n(211,r.constructor.name,r.getType()),i.append(...d.getChildren()),d=s[1]),d&&(null===i&&n(212,r.constructor.name,r.getType()),function(e,t){let r=t.getParentOrThrow().getLastChild(),i=t,o=[t];for(;i!==r;)i.getNextSibling()||n(140),o.push(i=i.getNextSibling());let a=e;for(let e of o)a=a.insertAfter(e)}(i,d));let f=oe(l,iX);u&&nv(f)&&(u.canMergeWhenEmpty()||iX(c))&&(f.append(...u.getChildren()),u.remove()),nv(i)&&i.isEmpty()&&i.remove(),l.selectEnd();let h=nv(i)?i.getLastChild():null;re(h)&&f!==i&&h.remove()}insertParagraph(){if("root"===this.anchor.key){let e=nN();return ia().splice(this.anchor.offset,0,[e]),e.select(),e}let e=r0(this),t=oe(this.anchor.getNode(),iX);nv(t)||n(213);let r=t.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...i),o.selectStart(),o):null}insertLineBreak(e){let t=t7();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),r=t.getIndexWithinParent();e.select(r,r)}}extract(){let e=[...this.getNodes()],t=e.length,r=e[0],n=e[t-1],[i,o]=rN(this),a=this.isBackward(),[l,s]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[o,i]:[i,o];if(0===t)return[];if(1===t){if(ry(r)&&!this.isCollapsed()){let e=r.splitText(u,c),t=0===u?e[0]:e[1];return t?(l.set(t.getKey(),0,"text"),s.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[r]}if(ry(r)&&(u===r.getTextContentSize()?e.shift():0!==u&&([,r]=r.splitText(u),e[0]=r,l.set(r.getKey(),0,"text"))),ry(n)){let t=n.getTextContent().length;0===c?e.pop():c!==t&&([n]=n.splitText(c),e[e.length-1]=n,s.set(n.getKey(),n.getTextContentSize(),"text"))}return e}modify(e,t,r){var n;if(r1(this,e,t,r))return;let i="move"===e,o=nr(),a=iW(i$(o));if(!a)return;let l=o._blockCursorElement,s=o._rootElement,u=this.focus.getNode();if(null===s||null===l||!nv(u)||u.isInline()||u.canBeEmpty()||iU(l,o,s),this.dirty){let e=iA(o,this.anchor.key),t=iA(o,this.focus.key);"text"===this.anchor.type&&(e=n1(e)),"text"===this.focus.type&&(t=n1(t)),e&&t&&rZ(a,e,this.anchor.offset,t,this.focus.offset)}if(n=t?"backward":"forward",a.modify(e,n,r),a.rangeCount>0){let e=a.getRangeAt(0),r=this.anchor.getNode(),n=nS(r)?r:function(e){let t=e.getParentOrThrow();for(;null!==t&&!iL(t);)t=t.getParentOrThrow();return t}(r);if(this.applyDOMRange(e),this.dirty=!0,!i){let r,i,o,l,s,u=this.getNodes(),c=[],d=!1;for(let e=0;e<u.length;e++){let t=u[e];iI(t,n)?c.push(t):d=!0}if(d&&c.length>0)if(t){let e=c[0];nv(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=c[c.length-1];nv(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}a.anchorNode===e.startContainer&&a.anchorOffset===e.startOffset||(r=this.focus,o=(i=this.anchor).key,l=i.offset,s=i.type,i.set(r.key,r.offset,r.type,!0),r.set(o,l,s,!0))}}"lineboundary"===r&&r1(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&("element"===e.type&&nv(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),r=t.getNextSibling()||(null===e?null:e.getNextSibling());if(nv(r)&&r.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;let n=oS(oN(t,e?"previous":"next"));if(n.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of n.iterNodeCarets("shadowRoot"))if(od(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(nv(n.anchor.origin)&&n.anchor.origin.isEmpty()){let e=oz(t);oI(this,oO(e,e)),n.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(oc(t)){if(nv(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(n.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(nx(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&nv(n.anch
45or.origin)&&n.anchor.origin.isEmpty()){n.anchor.origin.remove();let e=rK();e.add(t.origin.getKey()),is(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:r}=e;return oI(this,oO(!t.origin.isEmpty()&&r.isEmpty()?o$(om(r,t.direction)):n.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&rP(this,t.getNode()))return}else{let n="text"===i.type?i.getNode():null;if(r="text"===t.type?t.getNode():null,null!==n&&n.isSegmented()){let t=i.offset,o=n.getTextContentSize();if(n.is(r)||e&&t!==o||!e&&0!==t)return void rI(n,e,t)}else if(null!==r&&r.isSegmented()){let i=t.offset,o=r.getTextContentSize();if(r.is(n)||e&&0!==i||!e&&i!==o)return void rI(r,e,i)}!function(e,t){let r=e.anchor,n=e.focus,i=r.getNode();if(i===n.getNode()&&"text"===r.type&&"text"===n.type){var o;let e=r.offset,a=n.offset,l=e<a,s=l?e:a,u=l?a:e,c=u-1;s===c||ic(o=i.getTextContent().slice(s,u))||rj(o)||(t?n.set(n.key,c,n.type):r.set(r.key,c,r.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&nS(e.getParent())&&null===e.getPreviousSibling()&&rP(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function rM(e){return e instanceof rC}function rA(e){let t=e.offset;if("text"===e.type)return t;let r=e.getNode();return t===r.getChildrenSize()?r.getTextContent().length:0}function rN(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[r,n]=t;return"element"===r.type&&"element"===n.type&&r.key===n.key&&r.offset===n.offset?[0,0]:[rA(r),rA(n)]}function rP(e,t){for(let r=t;r;r=r.getParent()){if(nv(r)){if(r.collapseAtStart(e))return!0;if(iL(r))break}if(r.getPreviousSibling())break}return!1}let rj=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("â¤ï¸")&&t("#ï¸â£")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function rI(e,t,r){let n=e.getTextContent().split(/(?=\s)/g),i=n.length,o=0,a=0;for(let e=0;e<i;e++){let l=e===i-1;if(a=o,o+=n[e].length,t&&o===r||o>r||l){n.splice(e,1),l&&(a=void 0);break}}let l=n.join("").trim();""===l?e.remove():(e.setTextContent(l),e.select(a,a))}function rD(e,t,r,i){let o,a=t;if(iJ(e)){let l=!1,s=e.childNodes,u=s.length,c=i._blockCursorElement;a===u&&(l=!0,a=u-1);let d=s[a],f=!1;if(d===c)d=s[a+1],f=!0;else if(null!==c){let r=c.parentNode;e===r&&t>Array.prototype.indexOf.call(r.children,c)&&a--}if(ry(o=iu(d)))a=oy(o,l?"next":"previous");else{let s=iu(e);if(null===s)return null;if(nv(s)){let u,c=i.getElementByKey(s.getKey());null===c&&n(214);let d=s.getDOMSlot(c);[s,a]=d.resolveChildIndex(s,c,e,t),nv(s)||n(215),l&&a>=s.getChildrenSize()&&(a=Math.max(0,s.getChildrenSize()-1));let h=s.getChildAtIndex(a);if(nv(h)&&(u=h.getParent(),null===r||null===u||!u.canBeEmpty()||u!==r.getNode())){let e=l?h.getLastDescendant():h.getFirstDescendant();s=null===e||nv(h=e)?h:h.getParentOrThrow(),a=0}ry(h)?(o=h,s=null,a=oy(h,l?"next":"previous")):h!==s&&l&&!f&&(nv(s)||n(216),a=Math.min(s.getChildrenSize(),a+1))}else{let r=s.getIndexWithinParent();a=0===t&&nx(s)&&iu(e)===s?r:r+1,s=s.getParentOrThrow()}if(nv(s))return rS(s.__key,a,"element")}}else o=iu(e);return ry(o)?rS(o.__key,oy(o,a,"clamp"),"text"):null}function r$(e,t,r){let n=e.offset,i=e.getNode();if(0===n){let n=i.getPreviousSibling(),o=i.getParent();if(t){if((r||!t)&&null===n&&nv(o)&&o.isInline()){let t=o.getPreviousSibling();ry(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else nv(n)&&!r&&n.isInline()?e.set(n.__key,n.getChildrenSize(),"element"):ry(n)&&e.set(n.__key,n.getTextContent().length,"text")}else if(n===i.getTextContent().length){let n=i.getNextSibling(),o=i.getParent();if(t&&nv(n)&&n.isInline())e.set(n.__key,0,"element");else if((r||t)&&null===n&&nv(o)&&o.isInline()&&!o.canInsertTextAfter()){let t=
45o.getNextSibling();ry(t)&&e.set(t.__key,0,"text")}}}function rR(e,t,r){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),n=e.is(t);r$(e,r,n),r$(t,!r,n),n&&t.set(e.key,e.offset,e.type)}}function rL(e,t,r,n,i,o){if(null===e||null===r||!nJ(i,e,r))return null;let a=rD(e,t,rE(o)?o.anchor:null,i);if(null===a)return null;let l=rD(r,n,rE(o)?o.focus:null,i);if(null===l)return null;if("element"===a.type&&"element"===l.type){let t=iu(e),n=iu(r);if(nx(t)&&nx(n))return null}return rR(a,l),[a,l]}function rz(e){return nv(e)&&!e.isInline()}function rF(e,t,r,n,i,o){let a=nt(),l=new rT(rS(e,t,i),rS(r,n,o),0,"");return l.dirty=!0,a._selection=l,l}function rB(){return new rT(rS("root",0,"element"),rS("root",0,"element"),0,"")}function rK(){return new rC(new Set)}function rU(e,t){return rW(null,e,t,null)}function rW(e,t,r,n){let i,o,a,l,s=r._window;if(null===s)return null;let u=n||s.event,c=u?u.type:void 0,d="selectionchange"===c,f=!E&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(rE(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,o=t.focusNode,a=t.anchorOffset,l=t.focusOffset,(d||void 0===c)&&rE(e)&&!nJ(r,i,o))return e.clone();let h=rL(i,a,o,l,r,e);if(null===h)return null;let[p,m]=h,g=0,y="";if(rE(e)){let t=e.anchor;if(p.key===t.key)g=e.format,y=e.style;else{let e=p.getNode();ry(e)?(g=e.getFormat(),y=e.getStyle()):nv(e)&&(g=e.getTextFormat(),y=e.getTextStyle())}}return new rT(p,m,g,y)}function rH(){return nt()._selection}function rq(){return nr()._editorState._selection}function rJ(e,t,r,n=1){let i=e.anchor,o=e.focus,a=i.getNode(),l=o.getNode();if(!t.is(a)&&!t.is(l))return;let s=t.__key;if(e.isCollapsed()){let t=i.offset;if(r<=t&&n>0||r<t&&n<0){let r=Math.max(0,t+n);i.set(s,r,"element"),o.set(s,r,"element"),rV(e)}}else{let a=e.isBackward(),l=a?o:i,u=l.getNode(),c=a?i:o,d=c.getNode();if(t.is(u)){let e=l.offset;(r<=e&&n>0||r<e&&n<0)&&l.set(s,Math.max(0,e+n),"element")}if(t.is(d)){let e=c.offset;(r<=e&&n>0||r<e&&n<0)&&c.set(s,Math.max(0,e+n),"element")}}rV(e)}function rV(e){let t=e.anchor,r=t.offset,n=e.focus,i=n.offset,o=t.getNode(),a=n.getNode();if(e.isCollapsed()){if(!nv(o))return;let e=o.getChildrenSize(),i=r>=e,a=i?o.getChildAtIndex(e-1):o.getChildAtIndex(r);if(ry(a)){let e=0;i&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),n.set(a.__key,e,"text")}return}if(nv(o)){let e=o.getChildrenSize(),n=r>=e,i=n?o.getChildAtIndex(e-1):o.getChildAtIndex(r);if(ry(i)){let e=0;n&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(nv(a)){let e=a.getChildrenSize(),t=i>=e,r=t?a.getChildAtIndex(e-1):a.getChildAtIndex(i);if(ry(r)){let e=0;t&&(e=r.getTextContentSize()),n.set(r.__key,e,"text")}}}function rG(e,t,r,n,i){let o=null,a=0,l=null;null!==n?(o=n.__key,ry(n)?(a=n.getTextContentSize(),l="text"):nv(n)&&(a=n.getChildrenSize(),l="element")):null!==i&&(o=i.__key,ry(i)?l="text":nv(i)&&(l="element")),null!==o&&null!==l?e.set(o,a,l):(-1===(a=t.getIndexWithinParent())&&(a=r.getChildrenSize()),e.set(r.__key,a,"element"))}function rY(e,t,r,n,i){"text"===e.type?e.set(r,e.offset+(t?0:i),"text"):e.offset>n.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function rZ(e,t,r,n,i){try{e.setBaseAndExtent(t,r,n,i)}catch(e){}}function rX(e,t,r){let n=iA(e,t.getKey());if(nv(t)){let e=t.getDOMSlot(n);return[e.element,r+e.getFirstChildOffset()]}return[n,r]}function rQ(e){let t=rH()||rq();null===t&&(t=ia().selectEnd()),t.insertNodes(e)}function r0(e){let t=e;e.isCollapsed()||t.removeText();let r=rH();rE(r)&&(t=r),rE(t)||n(161);let i=t.anchor,o=i.getNode(),a=i.offset;for(;!iX(o);){let e=o;if([o,a]=function(e,t){let r=e.getParent();if(!r){let e=nN();return ia().append(e),e.select(),[ia(),0]}if(ry(e)){let n=e.splitText(t);if(0===n.length)return[r,e.getIndexWithinParent()];let i=+(0!==t);return[r,n[0].getIndexWithinParent()+i]}if(!nv(e)||0===t)return[r,e.getIndexWithinParent()];let n=e.getChildAtIndex(t);if(n){let r=new rT(rS(e.__key,t,"element"),rS(e.__key,t,"element"),0,""),i=e.insertNewAfter(r);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}(o,a),e.is(o))break}return a}function r1(e,t,r,n,i="decorators-and-blocks"){if("move"===t&&"character"===n&&!e.isCollapsed()){let[t,n]=r===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return n.set(t.key,t.offset,t.type),!0}let o=oN(e.focus,r?"previous":"next"),a="lineboundary"===n,l="move"===t,s=o,u="decorators-and-blocks"===i;if(!oF(s)){for(let e of s){u=!1;let{origin:t}=e;if(!nx(t)||t.isIsolated()||(s=e,!a||!t.isInline()))break}if(u)for(let e of oS(o).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(od(e))e.origin.isInline()||(s=e);else{if(nv(e.origin))continue;nx(e.origin)&&!e.origin.isInline()&&(s=e)}break}}if(s===o)return!1;if(l&&!a&&nx(s.origin)&&s.origin.isKeyboardSelectable()){let e=rK();return e.add(s.origin.getKey()),is(e),!0}return s=oz(s),l&&oP(e.anchor,s),oP(e.focus,s),u||!a}let r2=null,r3=null,r5=!1,r4=!1,r6=0,r8={characterData:!0,childList:!0,subtree:!0};function r9(){return r5||null!==r2&&r2._readOnly}function r7(){r5&&n(13)}function ne(){r6>99&&n(14)}function nt(){return null===r2&&n(195,nn()),r2}function nr(){return null===r3&&n(196,nn()),r3}function nn(){let e=0,t=new Set,r=nF.version;if("u">typeof window)for(let n of document.querySelectorAll("[contenteditable]")){let i=nY(n);if(nV(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===r&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let n=` Detected on the page: ${e} compatible editor(s) with version ${r}`;return t.size&&(n+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),n}function ni(e,t,r){let n=t.__type,i=nU(e,n),o=r.get(n);void 0===o&&(o=Array.from(i.transforms),r.set(n,o));let a=o.length;for(let e=0;e<a&&(o[e](t),t.isAttached());e++);}function no(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function na(e,t){if(!t)return;let r=e._updateTags,n=t;for(let e of(Array.isArray(t)||(n=[t]),n))r.add(e)}function nl(e){return ns(e,nr()._nodes)}function ns(e,t){let r=e.type,i=t.get(r);void 0===i&&n(17,r);let o=i.klass;e.type!==o.getType()&&n(18,o.name);let a=o.importJSON(e),l=e.children;if(nv(a)&&Array.isArray(l))for(let e=0;e<l.length;e++){let r=ns(l[e],t);a.append(r)}return a}function nu(e,t,r){let n=r2,i=r5,o=r3;r2=t,r5=!0,r3=e;try{return r()}finally{r2=n,r5=i,r3=o}}function nc(e,t){let r,i,o=e._pendingEditorState,a=e._rootElement,l=e._headless||null===a;if(null===o)return;let u=e._editorState,c=u._selection,d=o._selection,f=0!==e._dirtyType,h=r2,p=r5,m=r3,g=e._updating,y=e._observer,v=null;if(e._pendingEditorState=null,e._editorState=o,!l&&f&&null!==y){r3=e,r2=o,r5=!1,e._updating=!0;try{let t,r=e._dirtyType,i=e._dirtyElements,a=e._dirtyLeaves;y.disconnect(),el="",ec=2===r,X=e,Z=e._config,Q=e._nodes,ee=X._listeners.mutation,et=i,er=a,en=u._nodeMap,ei=o._nodeMap,ed=o._readOnly,eo=new Map(e._keyToDOMMap),ea=t=new Map,function e(t,r){let i=en.get(t),o=ei.get(t);void 0!==i&&void 0!==o||n(61);let a=ec||er.has(t)||et.has(t),l=iA(X,t);if(i===o&&!a){let e;if(nv(i)){let t=l.__lexicalTextContent;"string"==typeof t?e=t:l.__lexicalTextContent=e=i.getTextContent()}else e=i.getTextContent();return el+=e,l}if(i!==o&&a&&iO(ea,Q,ee,o,"updated"),o.updateDOM(i,l,Z)){let e=ev(t,null);return null===r&&n(62),r.replaceChild(e,l),ef(t,null),e}if(nv(i)){nv(o)||n(334,t);let r=o.__indent;(ec||r!==i.__indent)&&em(l,r);let s=o.__format;if((ec||s!==i.__format)&&eg(l,s),a)(function(t,r,i){es=null,eu=null,function(t,r,i){let o=el,a=t.__size,l=r.__size;el="";let s=i.element;
45if(1===a&&1===l){let n=t.__first,i=r.__first;if(n===i)e(n,s);else{let e=eC(n),t=ev(i,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r)throw Error(`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${n}}.`);throw r}ef(n,null)}let o=ei.get(i);ry(o)&&null===es&&(es=o.getFormat(),eu=o.getStyle())}else{let o=e_(t,en),u=e_(r,ei);if(o.length!==a&&n(227),u.length!==l&&n(228),0===a)0!==l&&eb(u,0,0,l-1,i);else if(0===l){if(0!==a){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eh(o,0,a-1,e?null:s),e&&(s.textContent="")}}else!function(t,r,n,i,o){let a=n-1,l=i-1,s,u,c=o.getFirstChild(),d=0,f=0;for(;d<=a&&f<=l;){let n=t[d],i=r[f];if(n===i)c=ek(e(i,o.element)),d++,f++;else{if(void 0===u&&(u=eO(r,f)),void 0===s)s=eO(t,d);else if(!s.has(n)){d++;continue}if(!u.has(n)){c=ek(eC(n)),ef(n,o.element),d++,s.delete(n);continue}if(s.has(i)){let t=iA(X,i);t!==c&&o.withBefore(c).insertChild(t),c=ek(e(i,o.element)),d++,f++}else ev(i,o.withBefore(c)),f++}let a=ei.get(i);null!==a&&ry(a)?null===es&&(es=a.getFormat(),eu=a.getStyle()):nv(a)&&f<=l&&!a.isInline()&&(el+="\n\n")}let h=d>a,p=f>l;if(h&&!p){let e=r[l+1],t=void 0===e?null:X.getElementByKey(e);eb(r,0,f,l,o.withBefore(t))}else p&&!h&&eh(t,d,a,o.element)}(o,u,a,l,i)}s.__lexicalTextContent=el,el=o+el}(t,r,r.getDOMSlot(i)),null==es||es===r.__textFormat||ed||r.setTextFormat(es),null==eu||eu===r.__textStyle||ed||r.setTextStyle(eu)})(i,o,l),nS(o)||o.isInline()||ex(i,o,l);else{let e,t=l.__lexicalTextContent;"string"==typeof t?e=t:l.__lexicalTextContent=e=i.getTextContent(),el+=e}if((ec||o.__dir!==i.__dir)&&(ey(l,o),nS(o)&&!ec))for(let e of o.getChildren())nv(e)&&ey(iA(X,e.getKey()),e)}else{let e=o.getTextContent();if(nx(o)){let e=o.decorate(X,Z);null!==e&&eS(t,e)}el+=e}if(!ed&&nS(o)&&o.__cachedText!==el){let e=o.getWritable();e.__cachedText=el,o=e}return l}("root",null),X=void 0,Q=void 0,et=void 0,er=void 0,en=void 0,ei=void 0,Z=void 0,eo=void 0,ea=void 0,v=t}catch(t){if(t instanceof Error&&e._onError(t),r4)throw t;return nL(e,null,a,o),j(e),e._dirtyType=2,r4=!0,nc(e,u),void(r4=!1)}finally{y.observe(a,r8),e._updating=g,r2=h,r5=p,r3=m}}o._readOnly||(o._readOnly=!0);let b=e._dirtyLeaves,w=e._dirtyElements,x=e._normalizedNodes,_=e._updateTags,S=e._deferred;f&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let r,n=e._decorators,i=e._pendingDecorators||n,o=t._nodeMap;for(r in i)o.has(r)||(i===n&&(i=ii(e)),delete i[r])}(e,o);let k=l?null:iW(i$(e));if(e._editable&&null!==k&&(f||null===d||d.dirty||!d.is(c))&&null!==a&&!_.has(t3)){r3=e,r2=o;try{if(null!==y&&y.disconnect(),f||null===d||d.dirty){let t=e._blockCursorElement;null!==t&&iU(t,e,a),function(e,t,r,n,i,o){var a;let l=n.anchorNode,u=n.focusNode,c=n.anchorOffset,d=n.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==o||null!==f&&nq(f))return;if(!rE(t))return null!==e&&nJ(r,l,u)&&n.removeAllRanges();let h=t.anchor,p=t.focus,m=h.getNode(),g=p.getNode(),[y,v]=rX(r,m,h.offset),[b,w]=rX(r,g,p.offset),x=t.format,_=t.style,S=t.isCollapsed(),k=y,O=b,C=!1;if("text"===h.type?(k=n1(y),C=m.getFormat()!==x||m.getStyle()!==_):rE(e)&&"text"===e.anchor.type&&(C=!0),"text"===p.type&&(O=n1(b)),null!==k&&null!==O&&(S&&(null===e||C||rE(e)&&(e.format!==x||e.style!==_))&&(a=h.key,tT=[x,_,v,a,performance.now()]),c!==v||d!==w||l!==k||u!==O||"Range"===n.type&&S||(null!==f&&o.contains(f)||i.has(t5)||o.focus({preventScroll:!0}),"element"===h.type))){if(rZ(n,k,v,O,w),!s||!t.isCollapsed()||null===o||i.has(t5)||null!==document.activeElement&&o.contains(document.activeElement)||o.focus({preventScroll:!0}),!i.has(t2)&&t.isCollapsed()&&null!==o&&o===document.activeElement){let e=rE(t)&&"element"===t.anchor.type?k.childNodes[v]||null:n.rangeCount>0?n.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let r=document.createRange();r.selectNode(e),t=r.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,r){let n=iP(r),i=iD(n);if(null===n||null===i)return;let{top:o,bottom:a}=t,l=0,s=0,u=r;
45for(;null!==u;){let t=u===n.body;if(t)l=0,s=i$(e).innerHeight;else{let e=u.getBoundingClientRect();l=e.top,s=e.bottom}let r=0;if(o<l?r=-(l-o):a>s&&(r=a-s),0!==r)if(t)i.scrollBy(0,r);else{let e=u.scrollTop;u.scrollTop+=r;let t=u.scrollTop-e;o-=t,a-=t}if(t)break;u=iN(u)}}(r,t,o)}}tx=!0}}(c,d,e,k,_,a)}!function(e,t,r){let n=e._blockCursorElement;if(rE(r)&&r.isCollapsed()&&"element"===r.anchor.type&&t.contains(document.activeElement)){let i=r.anchor,o=i.getNode(),a=i.offset,l=!1,s=null;if(a===o.getChildrenSize())iK(o.getChildAtIndex(a-1))&&(l=!0);else{let t=o.getChildAtIndex(a);if(null!==t&&iK(t)){let r=t.getPreviousSibling();(null===r||iK(r))&&(l=!0,s=e.getElementByKey(t.__key))}}if(l){let r,i,a,l=e.getElementByKey(o.__key);return null===n&&(r=e._config.theme,(i=document.createElement("div")).contentEditable="false",i.setAttribute("data-lexical-cursor","true"),a=r.blockCursor,void 0!==a&&("string"==typeof a&&(a=r.blockCursor=oZ(a)),void 0!==a&&i.classList.add(...a)),e._blockCursorElement=n=i),t.style.caretColor="transparent",null===s?l.appendChild(n):l.insertBefore(n,s)}}null!==n&&iU(n,e,t)}(e,a,d)}finally{null!==y&&y.observe(a,r8),r3=m,r2=h}}null!==v&&function(e,t,r,n,i){let o=Array.from(e._listeners.mutation),a=o.length;for(let e=0;e<a;e++){let[a,l]=o[e];for(let e of l){let o=t.get(e);void 0!==o&&a(o,{dirtyLeaves:n,prevEditorState:i,updateTags:r})}}}(e,v,_,b,u),rE(d)||null===d||null!==c&&c.is(d)||e.dispatchCommand(eT,void 0);let O=e._pendingDecorators;null!==O&&(e._decorators=O,e._pendingDecorators=null,nd("decorator",e,!0,O)),r=io(t||u),r!==(i=io(o))&&nd("textcontent",e,!0,i),nd("update",e,!0,{dirtyElements:w,dirtyLeaves:b,editorState:o,mutatedNodes:v,normalizedNodes:x,prevEditorState:t||u,tags:_}),function(e,t){if(e._deferred=[],0!==t.length){let r=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=r}}}(e,S),function(e){let t=e._updates;if(0!==t.length){let r=t.shift();if(r){let[t,n]=r;nh(e,t,n)}}}(e)}function nd(e,t,r,...n){let i=t._updating;t._updating=r;try{let r=Array.from(t._listeners[e]);for(let e=0;e<r.length;e++)r[e].apply(null,n)}finally{t._updating=i}}function nf(e,t){let r=e._updates,i=t||!1;for(;0!==r.length;){let t=r.shift();if(t){let r,[o,a]=t,l=e._pendingEditorState;void 0!==a&&(r=a.onUpdate,a.skipTransforms&&(i=!0),a.discrete&&(null===l&&n(191),l._flushSync=!0),r&&e._deferred.push(r),na(e,a.tag)),null==l?nh(e,o,a):o()}}return i}function nh(e,t,r){let i=e._updateTags,o,a=!1,l=!1;void 0!==r&&(o=r.onUpdate,na(e,r.tag),a=r.skipTransforms||!1,l=r.discrete||!1),o&&e._deferred.push(o);let s=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=nk(u||s),c=!0),u._flushSync=l;let d=r2,f=r5,h=r3,p=e._updating;r2=u,r5=!1,e._updating=!0,r3=e;let m=e._headless||null===e.getRootElement();nB=null;try{var g;let i,o;c&&(m?null!==s._selection&&(u._selection=s._selection.clone()):u._selection=(g=r&&r.event||null,i=e.getEditorState()._selection,o=iW(i$(e)),rE(i)||null==i?rW(i,o,e,g):i.clone()));let l=e._compositionKey;t(),a=nf(e,a),function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(rE(n)){let e,t=n.anchor,i=n.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(r,n),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(r,n)}}}(u,e),0!==e._dirtyType&&(a?function(e,t){let r=t._dirtyLeaves,n=e._nodeMap;for(let e of r){let t=n.get(e);ry(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&V(t)}}(u,e):function(e,t){let r=t._dirtyLeaves,n=t._dirtyElements,i=e._nodeMap,o=n9(),a=new Map,l=r,s=l.size,u=n,c=u.size;for(;s>0||c>0;){if(s>0){for(let e of(t._dirtyLeaves=new Set,l)){let n=i.get(e);ry(n)&&n.isAttached()&&n.isSimpleText()&&!n.isUnmergeable()&&V(n),void 0!==n&&no(n,o)&&ni(t,n,a),r.add(e)}if((s=(l=t._dirtyLeaves).size)>0){r6++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let r=e[0],l=e[1];if(n.set(r,l),!l)continue;let s=i.get(r);void 0!==s&&no(s,o)&&ni(t,s,a)}s=(l=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,r6++}t._dirtyLeaves=r,t._dirtyElements=n}(u,e),nf(e),function(e,t,r,n){let i=e._nodeMap,o=t._nodeMap,a=[];
45for(let[e]of n){let t=o.get(e);void 0!==t&&(t.isAttached()||(nv(t)&&function e(t,r,n,i,o,a){let l=t.getFirstChild();for(;null!==l;){let t=l.__key;l.__parent===r&&(nv(l)&&e(l,t,n,i,o,a),n.has(t)||a.delete(t),o.push(t)),l=l.getNextSibling()}}(t,e,i,o,a,n),i.has(e)||n.delete(e),a.push(e)))}for(let e of a)o.delete(e);for(let e of r){let t=o.get(e);void 0===t||t.isAttached()||(i.has(e)||r.delete(e),o.delete(e))}}(s,u,e._dirtyLeaves,e._dirtyElements)),l!==e._compositionKey&&(u._flushSync=!0);let d=u._selection;if(rE(d)){let e=u._nodeMap,t=d.anchor.key,r=d.focus.key;void 0!==e.get(t)&&void 0!==e.get(r)||n(19)}else rM(d)&&0===d._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nc(e)}finally{r2=d,r5=f,r3=h,e._updating=p,r6=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(null!==n){if(n.dirty||!n.is(r))return!0}else if(null!==r)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,nc(e)):c&&nH(()=>{nc(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function np(e,t,r){r3===e&&void 0===r?t():nh(e,t,r)}class nm{element;before;after;constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new nm(this.element,e,this.after)}withAfter(e){return new nm(this.element,this.before,e)}withElement(e){return this.element===e?this:new nm(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&n(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&n(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&n(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(m||d||c))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,r="IMG"===e.nodeName?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let r=this.element,n=this.before,i=document.createElement("br");if(r.insertBefore(i,n),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",r.insertBefore(e,i),r.__lexicalLineBreak=e}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,n){if(r===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,n))]}let i=ng(t,r);i.push(n);let o=ng(t,this.element),a=e.getIndexWithinParent();for(let e=0;e<o.length;e++){let t=i[e],r=o[e];if(void 0===t||t<r)break;if(t>r){a+=1;break}}return[e.getParentOrThrow(),a]}}function ng(e,t){let r=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;r.push(e)}return i!==e&&n(225),r.reverse()}class ny extends tZ{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return S[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nr()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(ry(t)&&e.push(t),nv(t)){let r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;nv(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;nv(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),r=t.length;if(e>=r){let e=t[r-1];return nv(e)&&e.getLastDescendant()||e||null}let n=t[e];return nv(n)&&n.getFirstDescendant()||n||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:n7(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&n(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:n7(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&n(96,this.__key),e}getChildAtIndex(e){let t,r,n=this.getChildrenSize();if(e<n/2){for(t=this.getFirstChild(),r=0;null!==t&&r<=e;){if(r===e)return t;t=t.getNextSibling(),r++}return null}for(t=this.getLastChild(),r=n-1;null!==t&&r>=e;){if(r===e)return t;t=t.getPreviousSibling(),r--}return null}getTextContent(){let e="",t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContent(),nv(i)&&n!==r-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContentSize(),nv(i)&&n!==r-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=_[e];return 0!=(this.getFormat()&t)}return!1}hasTextFormat(e){let t=w[e];return 0!=(this.getTextFormat()&t)}getFormatFlags(e,t){return n2(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){r7();let r=rH(),n=e,i=t,o=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(ry(e)||nv(e))return e.select(0,0)}
45else if((void 0===e||e===o)&&(void 0===t||t===o)){let e=this.getLastChild();if(ry(e)||nv(e))return e.select()}}void 0===n&&(n=o),void 0===i&&(i=o);let a=this.__key;return rE(r)?(r.anchor.set(a,n,"element"),r.focus.set(a,i,"element"),r.dirty=!0,r):rF(a,n,a,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?_[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){tY(this)&&n(324,this.__key,this.__type);let i=this.getChildrenSize(),o=this.getWritable();e+t<=i||n(226,String(e),String(t),String(i));let a=o.__key,l=[],s=[],u=this.getChildAtIndex(e+t),c=null,d=i-t+r.length;if(0!==e)if(e===i)c=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let r=0;r<t;r++){null===e&&n(100);let t=e.getNextSibling(),r=e.__key;n4(e.getWritable()),s.push(r),e=t}}let f=c;for(let e of r){null!==f&&e.is(f)&&(c=f=f.getPreviousSibling());let t=e.getWritable();t.__parent===a&&d--,n4(t);let r=e.__key;if(null===f)o.__first=r,t.__prev=null;else{let e=f.getWritable();e.__next=r,t.__prev=e.__key}e.__key===a&&n(76),t.__parent=a,l.push(r),f=e}if(e+t===i)null!==f&&(f.getWritable().__next=null,o.__last=f.__key);else if(null!==u){let e=u.getWritable();if(null!==f){let t=f.getWritable();e.__prev=f.__key,t.__next=u.__key}else e.__prev=null}if(o.__size=d,s.length){let e=rH();if(rE(e)){let t=new Set(s),r=new Set(l),{anchor:n,focus:i}=e;nb(n,t,r)&&rG(n,n.getNode(),this,c,u),nb(i,t,r)&&rG(i,i.getNode(),this,c,u),0!==d||this.canBeEmpty()||iL(this)||this.remove()}}return o}getDOMSlot(e){return new nm(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iJ(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let r=this.getDirection();r&&(t.dir=r)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),r=this.getTextStyle();return 0===t&&""===r||iL(this)||this.getChildren().some(ry)||(0!==t&&(e.textFormat=t),""!==r&&(e.textStyle=r)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let r=this.getDOMSlot(e),n=r.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==n?(r.insertChild(i),n=i):n!==i&&r.replaceChild(i,n),n=n.nextSibling)}}}function nv(e){return e instanceof ny}function nb(e,t,r){let n=e.getNode();for(;n;){let e=n.__key;if(t.has(e)&&!r.has(e))return!0;n=n.getParent()}return!1}class nw extends tZ{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function nx(e){return e instanceof nw}class n_ extends ny{__cachedText;static getType(){return"root"}static clone(){return new n_}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){n(51)}getTextContent(){let e=this.__cachedText;return(r9()||0===nr()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){n(52)}replace(e){n(53)}insertBefore(e){n(54)}insertAfter(e){n(55)}updateDOM(e,t){return!1}splice(e,t,r){for(let e of r)nv(e)||nx(e)||n(282);return super.splice(e,t,r)}static importJSON(e){return ia().updateFromJSON(e)}collapseAtStart(){return!0}}function nS(e){return e instanceof n_}function nk(e){return new nE(new Map(e._nodeMap))}function nO(){return new nE(new Map([["root",new n_]]))}function nC(e){return e instanceof nE}class nE{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return nu(t&&t.editor||null,this,e)}clone(e){let t=new nE(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nu(null,this,()=>({root:function e(t){let r=t.exportJSON(),i=t.constructor;if(r.type!==i.getType()&&n(130,i.name),nv(t)){let o=r.children;Array.isArray(o)||n(59,i.name);let a=t.getChildren();for(let t=0;t<a.length;t++){let r=e(a[t]);o.push(r)}}return r}(ia())}))}}class nT extends ny{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class nM extends ny{static getType(){return"paragraph"}static clone(e){return new nM(e.__key)}createDOM(e){let t=document.createElement("p"),r=ik(e.theme,"paragraph");return void 0!==r&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:nA,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iJ(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return nN().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){let t=this.getChildren().find(ry);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let r=nN();r.setTextFormat(e.format),r.setTextStyle(e.style);let n=this.getDirection();return r.setDirection(n),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){let e=this.getChildren();if(0===e.length||ry(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function nA(e){let t=nN();if(e.style&&(t.setFormat(e.style.textAlign),i4(e,t)),""===t.getFormatType()){let r=e.getAttribute("align");r&&r&&r in _&&t.setFormat(r)}return{node:t}}function nN(){return iF(new nM)}function nP(e){return e instanceof nM}let nj=0,nI=1,nD=2,n$=3,nR=4;function nL(e,t,r,n){let i=e._keyToDOMMap;i.clear(),e._editorState=nO(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let o=e._observer;null!==o&&(o.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==r&&(r.textContent="",i.set("root",r))}function nz(e){var t,r;let n,i,o,a,l=e||{},s=r3,u=l.theme||{},c=void 0===e?s:l.parentEditor||null,d=l.disableEvents||!1,f=nO(),h=l.namespace||(null!==c?c._config.namespace:ih()),p=l.editorState,m=[n_,rs,t8,rb,nM,nT,...l.nodes||[]],{onError:g,html:y}=l,v=void 0===l.editable||l.editable;if(void 0===e&&null!==s)n=s._nodes;else{n=new Map;for(let e=0;e<m.length;e++){let t=m[e],r=null,i=null;if("function"!=typeof t){let e=t;t=e.replace,r=e.with,i=e.withKlass||null}i9(t);let o=t.getType(),a=function(e){let t=new Set,r=new Set,n=e;for(;n;){let{ownNodeConfig:e}=i9(n),i=n.transform;if(!r.has(i)){r.add(i);let e=n.transform();e&&t.add(e)}if(e){let r=e.$transform;r&&t.add(r),n=e.extends}else{let e=Object.getPrototypeOf(n);n=e.prototype instanceof tZ&&e!==tZ?e:void 0}}return t}(t);n.set(o,{exportDOM:y&&y.export?y.export.get(t):void 0,klass:t,replace:r,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,r=new Set;for(let n="function"==typeof e?e:e.replace;n.prototype&&void 0!==n.prototype.getType;n=Object.getPrototypeOf(n)){let{ownNodeConfig:e}=i9(n);if(e&&e.stateConfigs)for(let n of e.stateConfigs){let e;"stateConfig"in n?(e=n.stateConfig,n.flat&&r.add(e.key)):e=n,t.set(e.key,e)}}return{flatKeys:r,sharedConfigMap:t}}(m[e]),transforms:a})}}let b=new nF(f,c,n,{disableEvents:d,namespace:h,theme:u},g||console.error,(t=n,r=y?y.import:void 0,i=new Map,o=new Set,a=e=>{Object.keys(e).forEach(t=>{let r=i.get(t);void 0===r&&(r=[],i.set(t,r)),r.push(e[t])})}
45,t.forEach(e=>{let t=e.klass.importDOM;if(null==t||o.has(t))return;o.add(t);let r=t.call(e.klass);null!==r&&a(r)}),r&&a(r),i),v,e);return void 0!==p&&(b._pendingEditorState=p,b._dirtyType=2),b.registerCommand(eN,tD,nj),b.registerCommand(eP,t$,nj),b.registerCommand(ej,tR,nj),b.registerCommand(eI,tL,nj),b.registerCommand(eq,tF,nj),b}class nF{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,r,n,i,o,a,l){this._createEditorArgs=l,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=n,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=ih(),this._onError=i,this._htmlConversions=o,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){void 0===r&&n(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);void 0===o&&n(36,String(e));let a=o[r];return a.add(t),()=>{a.delete(t),o.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,r){let n=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,o=i.get(t);void 0===o&&(o=new Set,i.set(t,o)),o.add(n);let a=r&&r.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,n),()=>{o.delete(n),0===o.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&n(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let r=this._editorState,n=i2(r).get(t.getType());if(!n)return;let i=new Map;for(let e of n.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){let r=this.registerNodeTransformToKlass(e,t),n=[r],i=r.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);n.push(e)}return function(e,t){let r=i2(e.getEditorState()),n=[];for(let e of t){let t=r.get(e);t&&n.push(t)}0!==n.length&&e.update(()=>{for(let e of n)for(let t of e.keys()){let e=n7(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:t0}:void 0)}(this,n.map(e=>e.klass.getType())),()=>{n.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return iM(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let r=ik(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,nL(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=tb.get(e);if(void 0===t)return tq();let r=tw.get(t);if(void 0===r)return tq();let i=r-1;i>=0||n(164),tb.delete(e),tw.set(t,i),0===i&&t.removeEventListener("selectionchange",tU);let o=nY(e);nV(o)?(!function(e){if(null!==e._parentEditor){let t=id(e),r=t[t.length-1]._key;tK.get(r)===e&&tK.delete(r)}else tK.delete(e._key)}(o),e.__lexicalEditor=null):o&&n(198);let a=tB(e);for(let e=0;e<a.length;e++)a[e]();e.__lexicalEventHandles=[]}(t),null!=r&&t.classList.remove(...r)),null!==e){let t=iD(e),n=e.style;n.userSelect="text",n.whiteSpace="pre-wrap",n.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,j(this),this._updateTags.add(t0),nc(this),this._config.disableEvents||function(e,t){let r=e.ownerDocument;tb.set(e,r);let n=tw.get(r)??0;n<1&&r.addEventListener("selectionchange",tU),tw.set(r,n+1),e.__lexicalEditor=t;let i=tB(e);for(let r=0;r<tp.length;r++){let[n,o]=tp[r],a="function"==typeof o?e=>{tH(e)||(tW(e),(t.isEditable()||"click"===n)&&o(e,t))}:e=>{if(tH(e))return;tW(e);let r=t.isEditable();switch(n){case"cut":return r&&iM(t,ti,e);case"copy":return iM(t,tn,e);case"paste":return r&&iM(t,ez,e);case"dragstart":return r&&iM(t,te,e);case"dragover":return r&&iM(t,tt,e);case"dragend":return r&&iM(t,tr,e);case"focus":return r&&iM(t,tc,e);case"blur":return r&&iM(t,td,e);case"drop":return r&&iM(t,e9,e)}};e.addEventListener(n,a),i.push(()=>{e.removeEventListener(n,a)})}}(e,this),null!=r&&e.classList.add(...r)}else this._window=null,this._updateTags.add(t0),nc(this);nd("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&n(38);let r=e;r._readOnly&&((r=nk(e))._selection=e._selection?e._selection.clone():null),P(this);
45let i=this._pendingEditorState,o=this._updateTags,a=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=a&&o.add(a),nc(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=a&&o.add(a),this._updating||nc(this)}parseEditorState(e,t){return function(e,t,r){let n=nO(),i=r2,o=r5,a=r3,l=t._dirtyElements,s=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,r2=n,r5=!1,r3=t,nB=null;try{let i=t._nodes;ns(e.root,i),r&&r(),n._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=l,t._dirtyLeaves=s,t._cloneNotNeeded=u,t._dirtyType=c,r2=i,r5=o,r3=a}return n}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nc(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):nh(this,e,t)}focus(e,t={}){let r=this._rootElement;null!==r&&(r.setAttribute("autocapitalize","off"),np(this,()=>{var n;let i=rH(),o=ia();null!==i?i.dirty||is(i.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ij("focus"),n=()=>{r.removeAttribute("autocapitalize"),e&&e()},r7(),nr()._deferred.push(n)}),null===this._pendingEditorState&&r.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=iW(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nd("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}nF.version="0.41.0+prod.esm";let nB=null,nK=1;function nU(e,t){let r=nW(e,t);return void 0===r&&n(30,t),r}function nW(e,t){return e._nodes.get(t)}let nH="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function nq(e){let t=document.activeElement;if(!iJ(t))return!1;let r=t.nodeName;return nx(ir(e))&&("INPUT"===r||"TEXTAREA"===r||"true"===t.contentEditable&&null==nY(t))}function nJ(e,t,r){let n=e.getRootElement();try{return null!==n&&n.contains(t)&&n.contains(r)&&null!==t&&!nq(t)&&nG(t)===e}catch(e){return!1}}function nV(e){return e instanceof nF}function nG(e){let t=e;for(;null!=t;){let e=nY(t);if(nV(e))return e;t=iN(t)}return null}function nY(e){return e?e.__lexicalEditor:null}function nZ(e){return rx(e)||e.isToken()}function nX(e){return nZ(e)||e.isSegmented()}function nQ(e){return iV(e)&&3===e.nodeType}function n0(e){return iV(e)&&9===e.nodeType}function n1(e){let t=e;for(;null!=t;){if(nQ(t))return t;t=t.firstChild}return null}function n2(e,t,r){let n=w[t];if(null!==r&&(e&n)==(r&n))return e;let i=e^n;return"subscript"===t?i&=~w.superscript:"superscript"===t?i&=~w.subscript:"lowercase"===t?(i&=~w.uppercase,i&=~w.capitalize):"uppercase"===t?(i&=~w.lowercase,i&=~w.capitalize):"capitalize"===t&&(i&=~w.lowercase,i&=~w.uppercase),i}function n3(e){return ry(e)||re(e)||nx(e)}function n5(e,t){let r,n=(r=nB,nB=null,r);if(null!=(t=t||n&&n.__key))return void(e.__key=t);r7(),ne();let i=nr(),o=nt(),a=""+nK++;o._nodeMap.set(a,e),nv(e)?i._dirtyElements.set(a,!0):i._dirtyLeaves.add(a),i._cloneNotNeeded.add(a),i._dirtyType=1,e.__key=a}function n4(e){let t=e.getParent();if(null!==t){let r=e.getWritable(),n=t.getWritable(),i=e.getPreviousSibling(),o=e.getNextSibling(),a=null!==o?o.__key:null,l=null!==i?i.__key:null,s=null!==i?i.getWritable():null,u=null!==o?o.getWritable():null;null===i&&(n.__first=a),null===o&&(n.__last=l),null!==s&&(s.__next=a),null!==u&&(u.__prev=l),r.__prev=null,r.__next=null,r.__parent=null,n.__size--}}function n6(e){ne(),tY(e)&&n(323,e.__key,e.__type);let t=e.getLatest(),r=t.__parent,i=nt(),o=nr(),a=i._nodeMap,l=o._dirtyElements;null!==r&&function(e,t,r){let n=e;for(;null!==n;){if(r.has(n))return;let e=t.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}}(r,a,l);let s=t.__key;o._dirtyType=1,nv(e)?l.set(s,!0):o._dirtyLeaves.add(s)}function n8(e){r7();let t=nr(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,null!==r){let e=n7(r);null!==e&&e.getWritable()}if(null!==e){let t=n7(e);null!==t&&t.getWritable()}}}function n9(){return r9()?null:nr()._compositionKey}function n7(e,t){let r=(t||nt())._nodeMap.get(e);return void 0===r?null:r}function ie(e,t){let r=it(e,nr());return void 0!==r?n7(r,t):null}function it(e,t){return e[`__lexicalKey_${t._key}`]}function ir(e,t){let r=e;for(;null!=r;){let e=ie(r,t);if(null!==e)return e;r=iN(r)}return null}function ii(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function io(e){return e.read(()=>ia().getTextContent())}function ia(){return il(nt())}function il(e){return e._nodeMap.get("root")}function is(e){r7();let t=nt();
45null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function iu(e){let t=nr(),r=function(e,t){let r=e;for(;null!=r;){let e=it(r,t);if(void 0!==e)return e;r=iN(r)}return null}(e,t);return null===r?e===t.getRootElement()?n7("root"):null:n7(r)}function ic(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function id(e){let t=[],r=e;for(;null!==r;)t.push(r),r=r._parentEditor;return t}function ih(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ip(e){return nQ(e)?e.nodeValue:null}function im(e,t,r){let n=iW(i$(t));if(null===n)return;let i=n.anchorNode,{anchorOffset:o,focusOffset:a}=n;if(null!==i){let t=ip(i),n=ir(i);if(null!==t&&ry(n)){if((t===g||t===y)&&r){let e=r.length;t=r,o=e,a=e}null!==t&&ig(n,t,o,a,e)}}}function ig(e,t,r,n,i){let o=e;if(o.isAttached()&&(i||!o.isDirty())){let a=o.isComposing(),l=t;if((a||i)&&(t.endsWith(g)&&(l=t.slice(0,-g.length)),i)){let e;for(;-1!==(e=l.indexOf(y));)l=l.slice(0,e)+l.slice(e+y.length),null!==r&&r>e&&(r=Math.max(e,r-y.length)),null!==n&&n>e&&(n=Math.max(e,n-y.length))}let s=o.getTextContent();if(i||l!==s){if(""===l){if(n8(null),c||d||m)o.remove();else{let e=nr();setTimeout(()=>{e.update(()=>{o.isAttached()&&o.remove()})},20)}return}let t=o.getParent(),i=rq(),s=o.getTextContentSize(),u=n9(),f=o.getKey();if(o.isToken()||null!==u&&f===u&&!a||rE(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!a||i.focus.key===e.__key&&i.focus.offset===s&&!o.canInsertTextAfter()&&!a))return void o.markDirty();let h=rH();if(!rE(h)||null===r||null===n)return void iy(o,l,h);if(h.setTextNodeRange(o,r,o,n),o.isSegmented()){let e=rg(o.getTextContent());o.replace(e),o=e}iy(o,l,h)}}}function iy(e,t,r){if(e.setTextContent(t),rE(r)){let t=e.getKey();for(let n of["anchor","focus"]){let i=r[n];"text"===i.type&&i.key===t&&(i.offset=oy(e,i.offset,"clamp"))}}}function iv(e,t,r){let n=t[r]||!1;return"any"===n||n===e[r]}function ib(e,t,r){if(!(iv(e,r,"altKey")&&iv(e,r,"ctrlKey")&&iv(e,r,"shiftKey")&&iv(e,r,"metaKey")))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||1===e.key.length&&127>=e.key.charCodeAt(0))return!1;let n="Key"+t.toUpperCase();return e.code===n}let iw={ctrlKey:!l,metaKey:l},ix={altKey:l,ctrlKey:!l};function i_(e){return"Backspace"===e.key}function iS(e){let t=ia();if(rE(e)){let t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(n.getKey(),0,"element"),r.set(n.getKey(),n.getChildrenSize(),"element"),G(e),e}{let e=t.select(0,t.getChildrenSize());return is(G(e)),e}}function ik(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let r=e.__lexicalClassNameCache,n=r[t];if(void 0!==n)return n;let i=e[t];if("string"==typeof i){let e=oZ(i);return r[t]=e,e}return i}function iO(e,t,r,i,o){if(0===r.size)return;let a=i.__type,l=i.__key,s=t.get(a);void 0===s&&n(33,a);let u=s.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(l),f="destroyed"===d&&"created"===o;(void 0===d||f)&&c.set(l,f?"updated":o)}function iC(e,t,r){let n=e.getParent(),i=r,o=e;return null!==n&&(t&&0===r?(i=o.getIndexWithinParent(),o=n):t||r!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=n)),o.getChildAtIndex(t?i-1:i)}function iE(e,t){let r=e.offset;if("element"===e.type)return iC(e.getNode(),t,r);{let n=e.getNode();if(t&&0===r||!t&&r===n.getTextContentSize()){let e=t?n.getPreviousSibling():n.getNextSibling();return null===e?iC(n.getParentOrThrow(),t,n.getIndexWithinParent()+ +!t):e}}return null}function iT(e){let t=i$(e).event,r=t&&t.inputType;return"insertFromPaste"===r||"insertFromPasteAsQuotation"===r}function iM(e,t,r){return function(e,t,r){let n=id(e);for(let i=4;i>=0;i--)for(let o=0;o<n.length;o++){let a=n[o],l=a._commands.get(t);if(void 0!==l){let t=l[i];if(void 0!==t){let n=Array.from(t),i=n.length,o=!1;if(np(a,()=>{for(let t=0;t<i;t++)if(n[t](r,e))return void(o=!0)}),o)return o}}}return!1}(e,t,r)}function iA(e,t){let r=e._keyToDOMMap.get(t);return void 0===r&&n(75,t),r}function iN(e){let t=e.assignedSlot||e.parentElement;return iG(t)?t.host:t}function iP(e){return n0(e)?e:iJ(e)?e.ownerDocument:null}function ij(e){r7(),nr()._updateTags.add(e)}function iI(e,t){let r=e.getParent();for(;null!==r;){if(r.is(t))return!0;r=r.getParent()}return!1}function iD(e){let t=iP(e);return t?t.defaultView:null}function i$(e){let t=e._window;return null===t&&n(78),t}function iR(e){return nv(e)&&e.isInline()||nx(e)&&e.isInline()}function iL(e){return nS(e)||nv(e)&&e.isShadowRoot()}function iz(e){let t=e.constructor.clone(e);return n5(t,null),t.afterCloneFrom(e),t}function iF(e){let t=nr(),r=e.getType(),i=nW(t,r);void 0===i&&n(200,e.constructor.name,r);let{replace:o,replaceWithKlass:a}=i;
45if(null!==o){let t=o(e),i=t.constructor;return null!==a?t instanceof a||n(201,a.name,a.getType(),i.name,i.getType(),e.constructor.name,r):t instanceof e.constructor&&i!==e.constructor||n(202,i.name,i.getType(),e.constructor.name,r),t.__key===e.__key&&n(203,e.constructor.name,r,i.name,i.getType()),t}return e}function iB(e,t){!nS(e.getParent())||nv(t)||nx(t)||n(99)}function iK(e){return(nx(e)||nv(e)&&!e.canBeEmpty())&&!e.isInline()}function iU(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;let n=e.parentElement;null!==n&&n.removeChild(e)}function iW(e){return o?(e||window).getSelection():null}function iH(e){let t=iD(e);return t?t.getSelection():null}function iq(e){return iJ(e)&&"A"===e.tagName}function iJ(e){return iV(e)&&1===e.nodeType}function iV(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iG(e){return iV(e)&&11===e.nodeType}function iY(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iZ(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iX(e){if(nx(e)&&!e.isInline())return!0;if(!nv(e)||iL(e))return!1;let t=e.getFirstChild(),r=null===t||re(t)||ry(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&r}function iQ(){return nr()}let i0=new WeakMap,i1=new Map;function i2(e){if(!e._readOnly&&e.isEmpty())return i1;e._readOnly||n(192);let t=i0.get(e);return t||(t=function(e){let t=new Map;for(let[r,n]of e._nodeMap){let e=n.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(r,n)}return t}(e),i0.set(e,t)),t}function i3(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function i5(e){var t;return(t=i3(e))[tG]=!0,t}function i4(e,t){let r=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(r)}function i6(e){e.__lexicalUnmanaged=!0}function i8(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tZ[t]}function i9(e){let t=C in e.prototype?e.prototype[C]():void 0,r=function(e){if(!(e===tZ||e.prototype instanceof tZ)){let t="<unknown>",r="<unknown>";try{t=e.getType()}catch(e){}try{nF.version&&(r=JSON.parse(nF.version))}catch(e){}n(290,e.name,t,r)}return e===nw||e===ny||e===tZ}(e),i=!r&&i8(e,"getType")?e.getType():void 0,o,a=i;if(t)if(i)o=t[i];else for(let[e,r]of Object.entries(t))a=e,o=r;if(!r&&a&&(i8(e,"getType")||(e.getType=()=>a),i8(e,"clone")||(e.clone=t=>(nB=t,new e)),i8(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!i8(e,"importDOM")&&o)){let{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:a}}function i7(e){let t=iQ();return r7(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}let oe=(e,t)=>{let r=e;for(;null!=r&&!nS(r);){if(t(r))return r;r=r.getParent()}return null},ot={next:"previous",previous:"next"};class or{origin;constructor(e){this.origin=e}[Symbol.iterator](){return oC({hasNext:oc,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return om(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return om(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(null===r?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){let i=r===this.direction?t:Array.from(t).reverse(),o=this,a=this.getParentAtCaret(),l=new Map;for(let t=o.getAdjacentCaret();null!==t&&l.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();l.set(e.getKey(),e)}for(let e of i){if(l.size>0){let t=o.getNodeAtCaret();if(t)if(l.delete(t.getKey()),l.delete(e.getKey()),t.is(e)||o.origin.is(e));else{let r=e.getParent();r&&r.is(a)&&e.remove(),t.replace(e)}else null===t&&n(263,Array.from(l).join(" "))}else o.insert(e);o=om(e,this.direction)}for(let e of l.values())e.remove();return this}}class on extends or{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ov(e,this.direction)}getParentCaret(e="root"){return om(oo(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=ot[this.direction];return om(this.getNodeAtCaret(),e)||ov(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof on&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let oi={root:nS,shadowRoot:iL};function oo(e,t="root"){return oi[t](e)?null:e}class oa extends or{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:om(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return nv(this.origin)?ov(this.origin,this.direction):null}getParentCaret(e="root"){return om(oo(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=ot[this.direction];return om(this.getNodeAtCaret(),e)||ov(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof oa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof oa||e instanceof ol)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ol extends or{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:og(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return om(oo(this.getParentAtCaret(),e),this.direction)}getFlipped(){return og(this.origin,ot[this.direction],this.offset)}isSamePointCaret(e){return e instanceof ol&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof oa||e instanceof ol)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return om(this.origin,this.direction)}}function ou(e){return e instanceof ol}function oc(e){return e instanceof oa}function od(e){return e instanceof on}let of={next:class extends ol{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ol{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},oh={next:class extends oa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends oa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},op={next:class extends on{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends on{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function om(e,t){return e?new oh[t](e):null}function og(e,t,r){return e?new of[t](e,oy(e,r)):null}function oy(e,t,r="error"){let n=e.getTextContentSize(),o="next"===t?n:"previous"===t?0:t;return(o<0||o>
45n)&&("clamp"!==r&&i(284,String(t),String(n),e.getKey()),o=o<0?0:n),o}function ov(e,t){return nv(e)?new op[t](e):null}function ob(e){return e&&e.getChildCaret()||e}function ow(e){return e&&ob(e.getAdjacentCaret())}class ox{type="node-caret-range";direction;anchor;focus;constructor(e,t,r){this.anchor=e,this.focus=t,this.direction=r}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new ox(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return ou(t)?function(e,t){let{direction:r,origin:n}=e;return new o_(e,oy(n,"focus"===t?ot[r]:r)-e.offset)}(t,e):null},t=e("anchor"),r=e("focus");if(t&&r){let{caret:e}=t,{caret:n}=r;if(e.isSameNodeCaret(n))return[new o_(e,n.offset-e.offset),null]}return[t,r]}iterNodeCarets(e="root"){let t=ou(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),n=ou(r),i=t=>t.isSameNodeCaret(r)?null:ow(t)||t.getParentCaret(e);return oC({hasNext:e=>null!==e&&!(n&&r.isSameNodeCaret(e)),initial:t.isSameNodeCaret(r)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class o_{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[r,n]=this.getSliceIndices(),i=e.getTextContent();return og(e.setTextContent(i.slice(0,r)+i.slice(n)),t,r)}}function oS(e){return oO(e,om(ia(),e.direction))}function ok(e){return oO(e,e)}function oO(e,t){return e.direction!==t.direction&&n(265),new ox(e,t,e.direction)}function oC(e){let{initial:t,hasNext:r,step:n,map:i}=e,o=t;return{[Symbol.iterator](){return this},next(){if(!r(o))return{done:!0,value:void 0};let e={done:!1,value:i(o)};return o=n(o),e}}}function oE(e,t){let r=oA(e.origin,t.origin);switch(null===r&&n(275,e.origin.getKey(),t.origin.getKey()),r.type){case"same":{let r="text"===e.type,n="text"===t.type;return r&&n?Math.sign(e.offset-t.offset):e.type===t.type?0:r?-1:n?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return oT(r)}}function oT(e){let{a:t,b:r}=e,n=t.__key,i=r.__key,o=t,a=r;for(;o&&a;o=o.getNextSibling(),a=a.getNextSibling()){if(o.__key===i)return -1;if(a.__key===n)return 1}return null===o?1:-1}function oM(e){return nv(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function oA(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let r=new Map;for(let[t,n]=oM(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,o]=oM(t);i;o=i,i=i.getParent()){let a=r.get(i);if(void 0!==a)return null===a?(i.is(e)||n(276),{commonAncestor:i,type:"ancestor"}):null===o?(i.is(t)||n(277),{commonAncestor:i,type:"descendant"}):((nv(a)||a.is(e))&&(nv(o)||o.is(t))&&i.is(a.getParent())&&i.is(o.getParent())||n(278),{a:a,b:o,commonAncestor:i,type:"branch"})}return null}function oN(e,t){var r;let i,{type:o,key:a,offset:l}=e,s=(null===(i=n7(r=e.key))&&n(63,r),i);return"text"===o?(ry(s)||n(266,s.getType(),a),og(s,t,l)):(nv(s)||n(267,s.getType(),a),function(e,t,r){let n=ov(e,"next");for(let e=0;e<t;e++){let e=n.getAdjacentCaret();if(null===e)break;n=e}return oB(n,r)}(s,e.offset,t))}function oP(e,t){let{origin:r,direction:i}=t,o="next"===i;ou(t)?e.set(r.getKey(),t.offset,"text"):oc(t)?ry(r)?e.set(r.getKey(),oy(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+ +!!o,"element"):(od(t)&&nv(r)||n(268),e.set(r.getKey(),o?0:r.getChildrenSize(),"element"))}function oj(e){let t=rH(),r=rE(t)?t:rB();return oI(r,e),is(r),r}function oI(e,t){oP(e.anchor,t.anchor),oP(e.focus,t.focus)}function oD(e){let{anchor:t,focus:r}=e,n=oN(t,"next"),i=oN(r,"next"),o=0>=oE(n,i)?"next":"previous";return oO(oB(n,o),oB(i,o))}function o$(e){let{direction:t,origin:r}=e,n=om(r,ot[t]).getNodeAtCaret();return n?om(n,t):ov(r.getParentOrThrow(),t)}function oR(e,t="root"){let r=[e];for(let n=od(e)?e.getParentCaret(t):e.getSiblingCaret();null!==n;n=n.getParentCaret(t))r.push(o$(n));return r}function oL(e){return!!e&&e.origin.isAttached()}function oz(e){let t=function(e){let t=e;for(;od(t);){let e=ow(t);if(!od(e))break;t=e}return t}(e.getLatest()),{direction:r}=t;if(ry(t.origin))return ou(t)?t:og(t.origin,r,r);let n=t.getAdjacentCaret();return oc(n)&&ry(n.origin)?og(n.origin,r,ot[r]):t}function oF(e){return ou(e)&&e.offset!==oy(e.origin,e.direction)}function oB(e,t){return e.direction===t?e:e.getFlipped()}function oK(e,t){return e.direction===t?e:oO(oB(e.focus,t),oB(e.anchor,t))}function oU(e,t="root"){let r=0,n=e,i=ow(n);for(;null===i;){if(r--,!(i=n.getParentCaret(t)))return null;i=ow(n=i)}return i&&[i,r]}function oW(e){let{origin:t,offset:r,direction:i}=e;if(r===oy(t,i))return e.getSiblingCaret();if(r===oy(t,ot[i]))return o$(e.getSiblingCaret());let[o]=t.splitText(r);return ry(o)||n(281),oB(om(o,"next"),i)}function oH(e,t){return!0}function oq(e,{$copyElementNode:t=iz,$splitTextPointCaretNext:r=oW,rootMode:n="shadowRoot",$shouldSplit:i=oH}={}){if(ou(e))return r(e);let o=e.getParentCaret(n);if(o){let{origin:r}=o;if(od(e)&&(!r.canBeEmpty()||!i(r,"first")))return o$(o);let n=function(e){let t=[];for(let r=e.getAdjacentCaret();r;r=r.getAdjacentCaret())t.push(r.origin);return t}(e);(n.length>0||r.canBeEmpty()&&i(r,"last"))&&o.insert(t(r).splice(0,0,n))}return o}function oJ(e){return e}function oV(...e){return e}function oG(e){return e}function oY(e,t){if(!t||e===t)return e;for(let r in t)if(e[r]!==t[r])return{...e,...t};return e}function oZ(...e){let t=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))t.push(e);return t}function oX(e,...t){let r=oZ(...t);r.length>0&&e.classList.add(...r)}function oQ(e,...t){let r=oZ(...t);r.length>0&&e.classList.remove(...r)}function o0(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}},53356:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(35498);t.isBuffer=function(e){return void 0!==n.globalThis.Buffer&&n.globalThis.Buffer.isBuffer(e)}},53443:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{let r=(t=t||{}).delimiter||".",i=t.overwrite||!1,o=t.recursive||!1,a={};if(null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)||"[object Object]"!==Object.prototype.toString.call(e))return e;let l=e=>{let r=Number(e);return isNaN(r)||-1!==e.indexOf(".")||t.object?e:r};return Object.keys(e).sort((e,t)=>
45e.length-t.length).forEach(s=>{let u=s.split(r),c=l(u.shift()),d=l(u[0]),f=a;for(;void 0!==d;){if("__proto__"===c)return;let e=Object.prototype.toString.call(f[c]),r="[object Object]"===e||"[object Array]"===e;if(!i&&!r&&void 0!==f[c])return;(!i||r)&&(i||null!=f[c])||(f[c]="number"!=typeof d||t.object?{}:[]),f=f[c],u.length>0&&(c=l(u.shift()),d=l(u[0]))}f[c]=o?n(e[s],t):e[s]}),a}},53651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},53855:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;let o=r(27427),a=r(264),l=r(15571),s=r(4378),u=r(83732);function c(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(o.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}(i=n||(t.DataType=n={}))[i.Correct=0]="Correct",i[i.Wrong=1]="Wrong",t.getSchemaTypes=function(e){let t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){var r,i;let{gen:o,data:l,opts:u}=e,c=(r=t,(i=u.coerceTypes)?r.filter(e=>d.has(e)||"array"===i&&"array"===e):[]),f=t.length>0&&!(0===c.length&&1===t.length&&(0,a.schemaHasRulesForType)(e,t[0]));if(f){let r=h(t,l,u.strictNumbers,n.Wrong);o.if(r,()=>{c.length?function(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,s._)`typeof ${i}`),l=n.let("coerced",(0,s._)`undefined`);for(let e of("array"===o.coerceTypes&&n.if((0,s._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,s._)`${i}[0]`).assign(a,(0,s._)`typeof ${i}`).if(h(t,i,o.strictNumbers),()=>n.assign(l,i))),n.if((0,s._)`${l} !== undefined`),r))(d.has(e)||"array"===e&&"array"===o.coerceTypes)&&function(e){switch(e){case"string":n.elseIf((0,s._)`${a} == "number" || ${a} == "boolean"`).assign(l,(0,s._)`"" + ${i}`).elseIf((0,s._)`${i} === null`).assign(l,(0,s._)`""`);return;case"number":n.elseIf((0,s._)`${a} == "boolean" || ${i} === null 46 || (${a} == "string" && ${i} && ${i} == +${i})`).assign(l,(0,s._)`+${i}`);return;case"integer":n.elseIf((0,s._)`${a} === "boolean" || ${i} === null 47 || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,(0,s._)`+${i}`);return;case"boolean":n.elseIf((0,s._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf((0,s._)`${i} === "true" || ${i} === 1`).assign(l,!0);return;case"null":n.elseIf((0,s._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(l,null);return;case"array":n.elseIf((0,s._)`${a} === "string" || ${a} === "number" 48 || ${a} === "boolean" || ${i} === null`).assign(l,(0,s._)`[${i}]`)}}(e);n.else(),m(e),n.endIf(),n.if((0,s._)`${l} !== undefined`,()=>{n.assign(i,l),function({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,s._)`${t} !== undefined`,()=>e.assign((0,s._)`${t}[${r}]`,n))}(e,l)})}(e,t,c):m(e)})}return f};let d=new Set(["string","number","integer","boolean","null"]);function f(e,t,r,i=n.Correct){let o,a=i===n.Correct?s.operators.EQ:s.operators.NEQ;switch(e){case"null":return(0,s._)`${t} ${a} null`;case"array":o=(0,s._)`Array.isArray(${t})`;break;case"object":o=(0,s._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=l((0,s._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=l();break;default:return(0,s._)`typeof ${t} ${a} ${e}`}return i===n.Correct?o:(0,s.not)(o);function l(e=s.nil){return(0,s.and)((0,s._)`typeof ${t} == "number"`,e,r?(0,s._)`isFinite(${t})`:s.nil)}}function h(e,t,r,n){let i;if(1===e.length)return f(e[0],t,r,n);let o=(0,u.toHash)(e);if(o.array&&o.object){let e=(0,s._)`typeof ${t} != "object"`;i=o.null?e:(0,s._)`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;for(let e in o.number&&delete o.integer,o)i=(0,s.and)(i,f(e,t,r,n));return i}t.checkDataType=f,t.checkDataTypes=h;let p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,s._)`{type: ${e}}`:(0,s._)`{type: ${t}}`};function m(e){let t=function(e){let{gen:t,data:r,schema:n}=e,i=(0,u.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,l.reportError)(t,p)}t.reportTypeError=m},53970:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(24650),i=r(92191);function o(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var o=function(e){if(e in n&&"function"==typeof n[e])return n[e]();var t="scale".concat((0,i.Zb)(e));if(t in n&&"function"==typeof n[t])return n[t]()}(e);if(null!=o)return o.domain(t).range(r),o}}function a(e,t,r,n){if(null!=r&&null!=n)return"function"==typeof e.scale?o(e.scale,r,n):o(t,r,n)}},54490:(e,t,r)=>{"use strict";r.d(t,{As:()=>c,TK:()=>d,Vi:()=>u,ZF:()=>s,bF:()=>f,g5:()=>l,iZ:()=>h});var n=r(11785),i=r(30894),o=r(99050),a=(0,n.Z0)({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push((0,o.h4)(t.payload))},prepare:(0,n.aA)()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=(0,i.ss)(e).cartesianItems.indexOf((0,o.h4)(r));a>-1&&(e.cartesianItems[a]=(0,o.h4)(n))},prepare:(0,n.aA)()},removeCartesianGraphicalItem:{reducer(e,t){var r=(0,i.ss)(e).cartesianItems.indexOf((0,o.h4)(t.payload));r>-1&&e.cartesianItems.splice(r,1)},prepare:(0,n.aA)()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push((0,o.h4)(t.payload))},prepare:(0,n.aA)()},removePolarGraphicalItem:{reducer(e,t){var r=(0,i.ss)(e).polarItems.indexOf((0,o.h4)(t.payload));r>-1&&e.polarItems.splice(r,1)},prepare:(0,n.aA)()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=(0,i.ss)(e).polarItems.indexOf((0,o.h4)(r));a>-1&&(e.polarItems[a]=(0,o.h4)(n))},prepare:(0,n.aA)()}}}),{addCartesianGraphicalItem:l,replaceCartesianGraphicalItem:s,removeCartesianGraphicalItem:u,addPolarGraphicalItem:c,removePolarGraphicalItem:d,replacePolarGraphicalItem:f}=a.actions,h=a.reducer},54736:(e,t,r)=>{"use strict";r.d(t,{Gk:()=>eO,Vf:()=>ek});var n=r(12115),i=r(29722),o=r(37214),a=r(11058),l=r(85545),s=r(18387),u=r(23651),c=r(92191);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
48).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var f=e=>{var{cx:t,cy:r,r:o,className:a}=e,l=(0,i.$)("recharts-dot",a);return(0,c.Et)(t)&&(0,c.Et)(r)&&(0,c.Et)(o)?n.createElement("circle",d({},(0,u.uZ)(e),(0,s._U)(e),{className:l,cx:t,cy:r,r:o})):null},h=r(21966),p=r(55359),m=r(10483),g=r(51531),y=["points"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function x(e){var{option:t,dotProps:r,className:o}=e;if((0,n.isValidElement)(t))return(0,n.cloneElement)(t,r);if("function"==typeof t)return t(r);var a=(0,i.$)(o,"boolean"!=typeof t?t.className:""),l=null!=r?r:{},{points:s}=l,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(l,y);return n.createElement(f,w({},u,{className:a}))}function _(e){var{points:t,dot:r,className:i,dotClassName:o,dataKey:l,baseProps:s,needClip:u,clipPathId:c,zIndex:d=g.I.scatter}=e;if(null==t||!r&&1!==t.length)return null;var f=(0,h.y$)(r),y=(0,p.y)(r),v=t.map((e,i)=>{var a,u,c=b(b(b({r:3},s),y),{},{index:i,cx:null!=(a=e.x)?a:void 0,cy:null!=(u=e.y)?u:void 0,dataKey:l,value:e.value,payload:e.payload,points:t});return n.createElement(x,{key:"dot-".concat(i),option:r,dotProps:c,className:o})}),_={};return u&&null!=c&&(_.clipPath="url(#clipPath-".concat(f?"":"dots-").concat(c,")")),n.createElement(m.g,{zIndex:d},n.createElement(a.W,w({className:i},_),v))}var S=r(16787),k=r(10365),O=r(541),C=r(57747);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var M=e=>{var t,{point:r,childIndex:i,mainColor:o,activeDot:l,dataKey:c,clipPath:d}=e;if(!1===l||null==r.x||null==r.y)return null;var h=T(T(T({},{index:i,dataKey:c,cx:r.x,cy:r.y,r:4,fill:null!=o?o:"none",strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value}),(0,u.ic)(l)),(0,s._U)(l));return t=(0,n.isValidElement)(l)?(0,n.cloneElement)(l,h):"function"==typeof l?l(h):n.createElement(f,h),n.createElement(a.W,{className:"recharts-active-dot",clipPath:d},t)};function A(e){var{points:t,mainColor:r,activeDot:i,itemDataKey:o,clipPath:a,zIndex:l=g.I.activeDot}=e,s=(0,k.G)(O.A2),u=(0,C.EI)();if(null==t||null==u)return null;var d=t.find(e=>u.includes(e.payload));return(0,c.uy)(d)?null:n.createElement(m.g,{zIndex:l},n.createElement(M,{point:d,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:i,clipPath:a}))}var N=r(96561),P=r(36793),j=r(2842),I=r(44531),D=r(65372),$=r(57346),R=r(62082),L=r(90744),z=r(76592),F=(e,t,r)=>(0,I.Gx)(e,"xAxis",(0,z.W)(e,t),r),B=(e,t,r)=>(0,I.CR)(e,"xAxis",(0,z.W)(e,t),r),K=(e,t,r)=>(0,I.Gx)(e,"yAxis",(0,z.B)(e,t),r),U=(e,t,r)=>(0,I.CR)(e,"yAxis",(0,z.B)(e,t),r),W=(0,j.Mz)([D.fz,F,K,B,U],(e,t,r,n,i)=>
48(0,S._L)(e,"xAxis")?(0,S.Hj)(t,n,!1):(0,S.Hj)(r,i,!1)),H=(0,j.Mz)([I.ld,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),q=e=>{var t=(0,D.fz)(e);return(0,S._L)(t,"xAxis")?"yAxis":"xAxis"},J=(0,j.Mz)([H,(e,t,r)=>(0,I.TC)(e,q(e),"yAxis"===q(e)?(0,z.B)(e,t):(0,z.W)(e,t),r)],(e,t)=>{if(null!=e&&null!=t){var r,{stackId:n}=e,i=(0,R.x)(e);if(null!=n&&null!=i){var o=null==(r=t[n])?void 0:r.stackedData,a=null==o?void 0:o.find(e=>e.key===i);if(null!=a)return a.map(e=>[e[0],e[1]])}}}),V=(0,j.Mz)([D.fz,F,K,B,U,J,$.rN,W,H,L.vm],(e,t,r,n,i,o,a,l,s,u)=>{var c,{chartData:d,dataStartIndex:f,dataEndIndex:h}=a;if(null!=s&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=l){var{data:p}=s;if(null!=(c=p&&p.length>0?p:null==d?void 0:d.slice(f,h+1)))return ek({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:f,areaSettings:s,stackedData:o,displayedData:c,chartBaseValue:u,bandSize:l})}}),G=r(64105),Y=r(64289),Z=r(45970),X=r(45992),Q=r(43527),ee=r(99498),et=r(604),er=r(9629),en=r(80600),ei=r(46574),eo=["id"],ea=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function es(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ec(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ed(e,t){return e&&"none"!==e?e:t}var ef=n.memo(e=>{var{dataKey:t,data:r,stroke:i,strokeWidth:o,fill:a,name:l,hide:s,unit:u,tooltipType:d,id:f}=e,h={dataDefinedOnItem:r,getPosition:c.lQ,settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:void 0,name:(0,S.uM)(l,t),hide:s,type:d,color:ed(i,a),unit:u,graphicalItemId:f}};return n.createElement(N.r,{tooltipEntrySettings:h})});function eh(e){var{clipPathId:t,points:r,props:i}=e,{needClip:o,dot:a,dataKey:l}=i,s=(0,u.uZ)(i);return n.createElement(_,{points:r,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:s,needClip:o,clipPathId:t})}function ep(e){var{showLabels:t,children:r,points:i}=e,o=i.map(e=>{var t,r,n={x:null!=(t=e.x)?t:0,y:null!=(r=e.y)?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ec(ec({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return n.createElement(l.h8,{value:t?o:void 0},r)}function em(e){var{points:t,baseLine:r,needClip:i,clipPathId:l,props:s}=e,{layout:c,type:d,stroke:f,connectNulls:h,isRange:m}=s,{id:g}=s,y=es(s,eo),v=(0,u.uZ)(y),b=(0,p.a)(y);return n.createElement(n.Fragment,null,(null==t?void 0:t.length)>1&&n.createElement(a.W,{clipPath:i?"url(#clipPath-".concat(l,")"):void 0},n.createElement(o.Ip,el({},b,{id:g,points:t,connectNulls:h,type:d,baseLine:r,layout:c,stroke:"none",className:"recharts-area-area"})),"none"!==f&&n.createElement(o.Ip,el({},v,{className:"recharts-area-curve",layout:c,type:d,connectNulls:h,fill:"none",points:t})),"none"!==f&&m&&Array.isArray(r)&&n.createElement(o.Ip,el({},v,{className:"recharts-area-curve",layout:c,type:d,connectNulls:h,fill:"none",points:r}))),n.createElement(eh,{points:t,props:y,clipPathId:l}))}function eg(e){var t,r,{alpha:i,baseLine:o,points:a,strokeWidth:l}=e,s=null==(t=a[0])?void 0:t.y,u=null==(r=a[a.length-1])?void 0:r.y;if(!(0,ee.H)(s)||!(0,ee.H)(u))return null;var d=i*Math.abs(s-u),f=Math.max(...a.map(e=>e.x||0));return((0,c.Et)(o)?f=Math.max(o,f):o&&Array.isArray(o)&&o.length&&(f=Math.max(...o.map(e=>e.x||0),f)),(0,c.Et)(f))?n.createElement("rect",{x:0,y:s<u?s:s-d,width:f+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}function ey(e){var t,r,{alpha:i,baseLine:o,points:a,strokeWidth:l}=e,s=null==(t=a[0])?void 0:t.x,u=null==(r=a[a.length-1])?void 0:r.x;if(!(0,ee.H)(s)||!(0,ee.H)(u))return null;var d=i*Math.abs(s-u),f=Math.max(...a.map(e=>e.y||0));return((0,c.Et)(o)?f=Math.max(o,f):o&&Array.isArray(o)&&o.length&&(f=Math.max(...o.map(e=>e.y||0),f)),(0,c.Et)(f))?n.createElement("rect",{x:s<u?s:s-d,y:0,width:d,height:Math.floor(f+(l?parseInt("".concat(l),10):1))}):null}function ev(e){var{alpha:t,layout:r,points:i,baseLine:o,strokeWidth:a}=e;return"vertical"===r?n.createElement(eg,{alpha:t,points:i,baseLine:o,strokeWidth:a}):n.createElement(ey,{alpha:t,points:i,baseLine:o,strokeWidth:a})}function eb(e){var{needClip:t,clipPathId:r,props:i,previousPointsRef:o,previousBaselineRef:s}=e,{points:u,baseLine:d,isAnimationActive:f,animationBegin:h,animationDuration:p,animationEasing:m,onAnimationStart:g,onAnimationEnd:y}=i,v=(0,n.useMemo)(()=>({points:u,baseLine:d}),[u,d]),b=(0,X.n)(v,"recharts-area-"),w=(0,D.kz)(),[x,_]=(0,n.use
48State)(!1),S=(0,n.useCallback)(()=>{"function"==typeof y&&y(),_(!1)},[y]),k=(0,n.useCallback)(()=>{"function"==typeof g&&g(),_(!0)},[g]);if(null==w)return null;var O=o.current,C=s.current;return n.createElement(ep,{showLabels:!x,points:u},i.children,n.createElement(en.J,{animationId:b,begin:h,duration:p,isActive:f,easing:m,onAnimationEnd:S,onAnimationStart:k,key:b},e=>{if(O){var l,h=O.length/u.length,p=1===e?u:u.map((t,r)=>{var n=Math.floor(r*h);if(O[n]){var i=O[n];return ec(ec({},t),{},{x:(0,c.GW)(i.x,t.x,e),y:(0,c.GW)(i.y,t.y,e)})}return t});return l=(0,c.Et)(d)?(0,c.GW)(C,d,e):(0,c.uy)(d)||(0,c.M8)(d)?(0,c.GW)(C,0,e):d.map((t,r)=>{var n=Math.floor(r*h);if(Array.isArray(C)&&C[n]){var i=C[n];return ec(ec({},t),{},{x:(0,c.GW)(i.x,t.x,e),y:(0,c.GW)(i.y,t.y,e)})}return t}),e>0&&(o.current=p,s.current=l),n.createElement(em,{points:p,baseLine:l,needClip:t,clipPathId:r,props:i})}return e>0&&(o.current=u,s.current=d),n.createElement(a.W,null,f&&n.createElement("defs",null,n.createElement("clipPath",{id:"animationClipPath-".concat(r)},n.createElement(ev,{alpha:e,points:u,baseLine:d,layout:w,strokeWidth:i.strokeWidth}))),n.createElement(a.W,{clipPath:"url(#animationClipPath-".concat(r,")")},n.createElement(em,{points:u,baseLine:d,needClip:t,clipPathId:r,props:i})))}),n.createElement(l.qY,{label:i.label}))}function ew(e){var{needClip:t,clipPathId:r,props:i}=e,o=(0,n.useRef)(null),a=(0,n.useRef)();return n.createElement(eb,{needClip:t,clipPathId:r,props:i,previousPointsRef:o,previousBaselineRef:a})}class ex extends n.PureComponent{render(){var{hide:e,dot:t,points:r,className:o,top:l,left:s,needClip:c,xAxisId:d,yAxisId:f,width:p,height:g,id:y,baseLine:v,zIndex:b}=this.props;if(e)return null;var w=(0,i.$)("recharts-area",o),{r:x,strokeWidth:_}=function(e){var t=(0,u.ic)(e);if(null!=t){var{r,strokeWidth:n}=t,i=Number(r),o=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(o)||o<0)&&(o=2),{r:i,strokeWidth:o}}return{r:3,strokeWidth:2}}(t),S=(0,h.y$)(t),k=2*x+_,O=c?"url(#clipPath-".concat(S?"":"dots-").concat(y,")"):void 0;return n.createElement(m.g,{zIndex:b},n.createElement(a.W,{className:w},c&&n.createElement("defs",null,n.createElement(P.Q,{clipPathId:y,xAxisId:d,yAxisId:f}),!S&&n.createElement("clipPath",{id:"clipPath-dots-".concat(y)},n.createElement("rect",{x:s-k/2,y:l-k/2,width:p+k,height:g+k}))),n.createElement(ew,{needClip:c,clipPathId:y,props:this.props})),n.createElement(A,{points:r,mainColor:ed(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}),this.props.isRange&&Array.isArray(v)&&n.createElement(A,{points:v,mainColor:ed(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}))}}var e_={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:g.I.area};function eS(e){var t,{activeDot:r,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:l,dot:s,fill:u,fillOpacity:c,hide:d,isAnimationActive:f,legendType:h,stroke:p,xAxisId:m,yAxisId:g}=e,y=es(e,ea),v=(0,D.WX)(),b=(0,Y.fW)(),{needClip:w}=(0,P.l)(m,g),x=(0,G.r)(),{points:_,isRange:S,baseLine:O}=null!=(t=(0,k.G)(t=>V(t,e.id,x)))?t:{},E=(0,C.oM)();if("horizontal"!==v&&"vertical"!==v||null==E||"AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:T,width:M,x:A,y:N}=E;return _&&_.length?n.createElement(ex,el({},y,{activeDot:r,animationBegin:i,animationDuration:o,animationEasing:a,baseLine:O,connectNulls:l,dot:s,fill:u,fillOpacity:c,height:T,hide:d,layout:v,isAnimationActive:f,isRange:S,legendType:h,needClip:w,points:_,stroke:p,width:M,left:A,top:N,xAxisId:m,yAxisId:g})):null}function ek(e){var t,{areaSettings:{connectNulls:r,baseValue:n,dataKey:i},stackedData:o,layout:a,chartBaseValue:l,xAxis:s,yAxis:u,displayedData:d,dataStartIndex:f,xAxisTicks:h,yAxisTicks:p,bandSize:m}=e,g=o&&o.length,y=((e,t,r,n,i)=>{var o=null!=r?r:t;if((0,c.Et)(o))return o;var a="horizontal"===e?i:n,l=a.scale.domain();if("number"===a.type){var s=Math.max(l[0],l[1]),u=Math.min(l[0],l[1]);return"dataMin"===o?u:"dataMax"===o||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===o?l[0]:"dataMax"===o?l[1]:l[0]})(a,l,n,s,u),v="horizontal"===a,b=!1,w=d.map((e,t)=>{if(g)c=o[f+t];else{var n,a,l,c,d,w=(0,S.kr)(e,i);Array.isArray(w)?(c=w,b=!0):c=[y,w]}var x=null!=(n=null==(a=c)?void 0:a[1])?n:null,_=null==x||g&&!r&&null==(0,S.kr)(e,i);return v?{x:(0,S.nb)({axis:s,ticks:h,bandSize:m,entry:e,index:t}),y:_?null:null!=(d=u.scale.map(x))?d:null,value:c,payload:e}:{x:_?null:null!=(l=s.scale.map(x))?l:null,y:(0,S.nb)({axis:u,ticks:p,bandSize:m,entry:e,index:t}),value:c,payload:e}});return t=g||b?w.map(e=>{var t,r,n=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=n&&null!=e.y&&null!=(r=u.scale.map(n))?r:null,payload:e.payload}:{x:null!=n&&null!=(t=s.scale.map(n))?t:null,y:e.y,payload:e.payload}}):v?u.scale.map(y):s.scale.map(y),{points:w,baseLine:null!=t?t:0,isRange:b}}var eO=n.memo(function(e){var t=(0,Q.e)(e,e_),r=(0,G.r)();return n.createElement(et.x,{id:t.id,type:"area"},e=>n.createElement(n.Fragment,null,n.createElement(Z.A,{legendPayload:(e=>
48{var{dataKey:t,name:r,stroke:n,fill:i,legendType:o,hide:a}=e;return[{inactive:a,dataKey:t,type:o,color:ed(n,i),value:(0,S.uM)(r,t),payload:e}]})(t)}),n.createElement(ef,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),n.createElement(er.p,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:(0,S.$8)(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),n.createElement(eS,el({},t,{id:e}))))},ei.P);eO.displayName="Area"},54904:(e,t,r)=>{"use strict";r.d(t,{KS:()=>function e(t,r={}){if("object"!=typeof t||null===t||!("$$typeof"in t)||"symbol"!=typeof t.$$typeof){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map(t=>"object"!=typeof t||null===t?t:e(t,r));if(t instanceof File){if(r.excludeFiles)return;return t}if(t instanceof Date)return new Date(t);let n={};for(let i in t){let o=t[i];n[i]="object"!=typeof o||null===o?o:e(o,r)}return n}}});var n=r(49304).hp;let i=new Map;i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(a(Array.from(e),t))),i.set(Set,(e,t)=>new Set(a(Array.from(e),t))),i.set(RegExp,e=>new RegExp(e.source,e.flags));let o=null;function a(e,t){let r=Object.keys(e),a=Array(r.length);for(let s=0;s<r.length;s++){var l;let u=r[s],c=e[u];"object"!=typeof c||null===c?a[u]=c:c instanceof RegExp?a[u]=new RegExp(c.source,c.flags):c.constructor!==Object&&(o=i.get(c.constructor))?a[u]=o(c,t):ArrayBuffer.isView(c)?a[u]=(l=c)instanceof n?n.from(l):new l.constructor(l.buffer.slice(),l.byteOffset,l.length):a[u]=t(c)}return a}},55016:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=({collectionConfig:e,select:t})=>{e.upload&&t&&(t.mimeType=!0,t.thumbnailURL=!0,e.upload.imageSizes&&e.upload.imageSizes.length>0?e.upload.adminThumbnail&&"string"==typeof e.upload.adminThumbnail?t.sizes={[e.upload.adminThumbnail]:{filename:!0}}:t.sizes=e.upload.imageSizes.reduce((e,t)=>({...e,[t.name]:{filename:!0,url:!0,width:!0}}),{}):t.url=!0)}},55177:e=>{"use strict";var t=e.exports=function(e,r,n){"function"==typeof r&&(n=r,r={});var i="function"==typeof(n=r.cb||n)?n:n.pre||function(){};!function e(r,n,i,o,a,l,s,u,c,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,a,l,s,u,c,d),o){var h=o[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var p=0;p<h.length;p++)e(r,n,i,h[p],a+"/"+f+"/"+p,l,a,f,o,p)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)e(r,n,i,h[m],a+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),l,a,f,o,m)}else(f in t.keywords||r.allKeys&&!(f in t.skipKeywords))&&e(r,n,i,h,a+"/"+f,l,a,f,o)}i(o,a,l,s,u,c,d)}}(r,i,n.post||function(){},e,"",e)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},55243:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},55359:(e,t,r)=>{"use strict";r.d(t,{a:()=>a,y:()=>l});var n=r(12115),i=r(86954),o=r(23651);function a(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&((0,o.Rw)(r)||(0,o.Xc)(r)||(0,i.q)(r))&&(t[r]=e[r]);return t}function l(e){return null==e?null:(0,n.isValidElement)(e)?a(e.props):"object"!=typeof e||Array.isArray(e)?null:a(e)}},55559:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},55926:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("school",[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",ke
48y:"1rgiei"}],["path",{d:"M18 4.933V21",key:"tjwmp4"}],["path",{d:"m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6",key:"zywc2d"}],["path",{d:"m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11",key:"1d4ql0"}],["path",{d:"M6 4.933V21",key:"1ufz1j"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]])},55987:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=r(82159).YY.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(r=>t.updateAttributes(r,{textAlign:e})).some(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).some(e=>e),toggleTextAlign:e=>({editor:t,commands:r})=>!!this.options.alignments.includes(e)&&(t.isActive({textAlign:e})?r.unsetTextAlign():r.setTextAlign(e))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},56204:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},56340:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6967),i=r(91314),o=r(27403);t.cloneDeepWith=function(e,t){return n.cloneDeepWith(e,(r,a,l,s)=>
48{let u=t?.(r,a,l,s);if(void 0!==u)return u;if("object"==typeof e){if(i.getTag(e)===o.objectTag&&"function"!=typeof e.constructor){let t={};return s.set(e,t),n.copyProperties(t,e,l,s),t}switch(Object.prototype.toString.call(e)){case o.numberTag:case o.stringTag:case o.booleanTag:{let t=new e.constructor(e?.valueOf());return n.copyProperties(t,e),t}case o.argumentsTag:{let t={};return n.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}},57104:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(62082),i=r(16787);function o(e,t,r){var{chartData:o=[]}=t,{allowDuplicatedCategory:a,dataKey:l}=r,s=new Map;return e.forEach(e=>{var t,r=null!=(t=e.data)?t:o;if(null!=r&&0!==r.length){var u=(0,n.x)(e);r.forEach((t,r)=>{var n,o=null==l||a?r:String((0,i.kr)(t,l,null)),c=(0,i.kr)(t,e.dataKey,0);Object.assign(n=s.has(o)?s.get(o):{},{[u]:c}),s.set(o,n)})}}),Array.from(s.values())}},57258:(e,t,r)=>{e.exports=r(74751).get},57346:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u,LF:()=>i,k$:()=>a,lI:()=>c,lm:()=>s,rN:()=>l,z3:()=>o});var n=r(2842),i=e=>e.chartData,o=(0,n.Mz)([i],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),a=(e,t,r,n)=>n?o(e):i(e),l=(e,t,r)=>r?o(e):i(e),s=(0,n.Mz)([a],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]}),u=(0,n.Mz)([o],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]}),c=(0,n.Mz)([i],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]})},57420:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},57684:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},57747:(e,t,r)=>{"use strict";r.d(t,{EI:()=>d,oM:()=>c});var n=r(10365),i=r(541),o=r(2842),a=r(2242),l=(0,o.Mz)([a.HZ],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),s=r(30451),u=(0,o.Mz)([l,s.Lp,s.A$],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),c=()=>(0,n.G)(u),d=()=>(0,n.G)(i.JG)},58152:(e,t,r)=>{"use strict";e.exports=r(25964)},58411:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]])},58748:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e,t=1){let r=[],n=Math.floor(t),i=(e,t)=>{for(let o=0;o<e.length;o++){let a=e[o];Array.isArray(a)&&t<n?i(a,t+1):r.push(a)}};return i(e,0),r}},58828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;let n=r(4378),i=r(80081),o=r(20804),a=r(33120),l=r(83732),s=r(97489);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!=(t=e.baseId)?t:(0,a.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function c(e){let t,r,l=f.call(this,e);if(l)return l;let u=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:h}=this.opts,p=new n.CodeGen(this.scope,{es5:c,lines:d,ownProperties:h});e.$async&&(t=p.scopeValue("Error",{ref:i.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));let m=p.scopeName("validate");e.validateName=m;let g={gen:p,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:t,schema:e.schema,schemaEnv:e,rootId:u,baseId:e.baseId||u,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,s.validateFunctionCode)(g),p.optimize(this.opts.code.optimize);let t=p.toString();r=`${p.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let i=Function(`${o.default.self}`,`${o.default.scope}`,r)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),!0===this.opts.code.source&&(i.source={validateName:m,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){let{props:e,items:t}=g;i.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},i.source&&(i.source.evaluated=(0,n.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function f(e){for(let n of this._compilations){var t,r;if(t=n,r=e,t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n}}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){let r=this.opts.uriResolver.parse(t),n=(0,a._getFullPath)(this.opts.uriResolver,r),i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return g.call(this,r,e);let o=(0,a.normalizeId)(n),l=this.refs[o]||this.schemas[o];if("string"==typeof l){let t=p.call(this,e,l);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,r,t)}
48if("object"==typeof(null==l?void 0:l.schema)){if(l.validate||c.call(this,l),o===(0,a.normalizeId)(t)){let{schema:t}=l,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,n)),new u({schema:t,schemaId:r,root:e,baseId:i})}return g.call(this,r,l)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,r){var n;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=h.call(this,e,r);if(void 0===o){let i=null==(n=e.localRefs)?void 0:n[r],{schemaId:a}=this.opts;i&&(o=new u({schema:i,schemaId:a,root:e,baseId:t}))}if(void 0!==o)return e.refs[r]=d.call(this,o)},t.getCompilingSchema=f,t.resolveSchema=p;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:r,root:n}){var i;let o;if((null==(i=e.fragment)?void 0:i[0])!=="/")return;for(let n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;let e=r[(0,l.unescapeFragment)(n)];if(void 0===e)return;let i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}if("boolean"!=typeof r&&r.$ref&&!(0,l.schemaHasRulesButRef)(r,this.RULES)){let e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=p.call(this,n,e)}let{schemaId:s}=this.opts;if((o=o||new u({schema:r,schemaId:s,root:n,baseId:t})).schema!==o.root.schema)return o}},58837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(97489);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(4378);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});let o=r(80081),a=r(77208),l=r(27427),s=r(58828),u=r(4378),c=r(33120),d=r(53855),f=r(83732),h=r(96504),p=r(88011),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";let g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated
48ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...function(e){var t,r,n,i,o,a,l,s,u,c,d,f,h,g,y,v,b,w,x,_,S,k,O,C,E;let T=e.strict,M=null==(t=e.code)?void 0:t.optimize,A=!0===M||void 0===M?1:M||0,N=null!=(n=null==(r=e.code)?void 0:r.regExp)?n:m,P=null!=(i=e.uriResolver)?i:p.default;return{strictSchema:null==(a=null!=(o=e.strictSchema)?o:T)||a,strictNumbers:null==(s=null!=(l=e.strictNumbers)?l:T)||s,strictTypes:null!=(c=null!=(u=e.strictTypes)?u:T)?c:"log",strictTuples:null!=(f=null!=(d=e.strictTuples)?d:T)?f:"log",strictRequired:null!=(g=null!=(h=e.strictRequired)?h:T)&&g,code:e.code?{...e.code,optimize:A,regExp:N}:{optimize:A,regExp:N},loopRequired:null!=(y=e.loopRequired)?y:200,loopEnum:null!=(v=e.loopEnum)?v:200,meta:null==(b=e.meta)||b,messages:null==(w=e.messages)||w,inlineRefs:null==(x=e.inlineRefs)||x,schemaId:null!=(_=e.schemaId)?_:"$id",addUsedSchema:null==(S=e.addUsedSchema)||S,validateSchema:null==(k=e.validateSchema)||k,validateFormats:null==(O=e.validateFormats)||O,unicodeRegExp:null==(C=e.unicodeRegExp)||C,int32range:null==(E=e.int32range)||E,uriResolver:P}}(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:y,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,l.getRules)(),x.call(this,v,e,"NOT SUPPORTED"),x.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=C.call(this),e.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&O.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,n=h;"id"===r&&((n={...h}).id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);let r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return l.call(this,t),await s.call(this,t.missingSchema),o.call(this,e)}}function l({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function s(e){let r=await u.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){let i;
48if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,r,n);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(i=e[t])&&"string"!=typeof i)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){let r;if("boolean"==typeof e)return!0;if(void 0!==(r=e.$schema)&&"string"!=typeof r)throw Error("$schema must be a string");if(!(r=r||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(r,e);if(!n&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=_.call(this,e));)e=t;if(void 0===t){let{schemaId:r}=this.opts,n=new s.SchemaEnv({schema:{},schemaId:r});if(!(t=s.resolveSchema.call(this,n,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=_.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,c.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if("object"==typeof e&&void 0===t){if(Array.isArray(r=(t=e).keyword)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(M.call(this,r,t),!t)return(0,f.eachItem)(r,e=>A.call(this,e)),this;P.call(this,t);let n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>A.call(this,e,n):e=>n.type.forEach(t=>A.call(this,e,n,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let r of(delete t.keywords[e],delete t.all[e],t.rules)){let t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){let r=this.RULES.all;for(let n of(e=JSON.parse(JSON.stringify(e)),t)){let t=n.split("/").slice(1),i=e;for(let e of t)i=i[e];for(let e in r){let t=r[e];if("object"!=typeof t)continue;let{$data:n}=t.definition,o=i[e];n&&o&&(i[e]=I(o))}}return e}_removeAllSchemas(e,t){for(let r in e){let n=e[r];(!t||t.test(r))&&("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof e)throw Error("schema must be object or boolean");let l=this._cache.get(e);if(void 0!==l)return l;r=(0,c.normalizeId)(o||r);let u=c.getSchemaRefs.call(this,e,r);return l=new s.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:u}),this._cache.set(l.schema,l),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=l),n&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}}function x(e,t,r,n="error"){for(let i in e)i in t&&this.logger[n](`${r}: option ${i}. ${e[i]}`)}
48function _(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function k(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(e){if(Array.isArray(e))return void this.addVocabulary(e);for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function C(){let e={...this.opts};for(let t of g)delete e[t];return e}w.ValidationError=o.default,w.MissingRefError=a.default,t.default=w;let E={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function M(e,t){let{RULES:r}=this;if((0,f.eachItem)(e,e=>{if(r.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!T.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function A(e,t,r){var n;let i=null==t?void 0:t.post;if(r&&i)throw Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:e})=>e===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let l={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?N.call(this,a,l,t.before):a.rules.push(l),o.all[e]=l,null==(n=t.implements)||n.forEach(e=>this.addKeyword(e))}function N(e,t,r){let n=e.rules.findIndex(e=>e.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function P(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=I(t)),e.validateSchema=this.compile(t,!0))}let j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function I(e){return{anyOf:[e,j]}}},58875:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6967);t.cloneDeep=function(e){return n.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},59061:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var n=(0,r(53310).guI)("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND")},59190:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(65372),i=e=>{var t=(0,n.fz)(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"}},59265:(e,t,r)=>{"use strict";r.d(t,{N_:()=>eH,Ay:()=>eq});var n=r(82159);let i="numeric",o="ascii",a="alpha",l="asciinumeric",s="alphanumeric",u="domain",c="emoji",d="whitespace";function f(e,t,r){for(let n in t[i]&&(t[l]=!0,t[s]=!0),t[o]&&(t[l]=!0,t[a]=!0),t[l]&&(t[s]=!0),t[a]&&(t[s]=!0),t[s]&&(t[u]=!0),t[c]&&(t[u]=!0),t){let t=(n in r||(r[n]=[]),r[n]);0>t.indexOf(e)&&t.push(e)}}function h(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}h.groups={},h.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let r=this.jr[t][0],n=this.jr[t][1];if(n&&r.test(e))return n}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||h.groups,t&&t.j?i=t:(i=new h(t),r&&n&&f(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,r,n)},tt(e,t,r,n){if(n=n||h.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new h).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new h,t&&(n&&(i.t&&"string"==typeof i.t?f(t,Object.assign(function(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}(i.t,n),r),n):r&&f(t,r,n)),i.t=t),this.j[e]=i,i}};let p=(e,t,r,n,i)=>e.ta(t,r,n,i),m=(e,t,r,n,i)=>e.tr(t,r,n,i),g=(e,t,r,n,i)=>e.ts(t,r,n,i),y=(e,t,r,n,i)=>e.tt(t,r,n,i),v="WORD",b="UWORD",w="ASCIINUMERICAL",x="ALPHANUMERICAL",_="LOCALHOST",S="UTLD",k="SCHEME",O="SLASH_SCHEME",C="OPENBRACE",E="CLOSEBRACE",T="OPENBRACKET",M="CLOSEBRACKET",A="OPENPAREN",N="CLOSEPAREN",P="OPENANGLEBRACKET",j="CLOSEANGLEBRACKET",I="FULLWIDTHLEFTPAREN",D="FULLWIDTHRIGHTPAREN",$="LEFTCORNERBRACKET",R="RIGHTCORNERBRACKET",L="LEFTWHITECORNERBRACKET",z="RIGHTWHITECORNERBRACKET",F="FULLWIDTHLESSTHAN",B="FULLWIDTHGREATERTHAN",K="AMPERSAND",U="APOSTROPHE",W="ASTERISK",H="BACKSLASH",q="BACKTICK",J="CARET",V="
48COLON",G="COMMA",Y="DOLLAR",Z="EQUALS",X="EXCLAMATION",Q="HYPHEN",ee="PERCENT",et="PIPE",er="PLUS",en="POUND",ei="QUERY",eo="QUOTE",ea="FULLWIDTHMIDDLEDOT",el="SEMI",es="SLASH",eu="TILDE",ec="UNDERSCORE",ed="EMOJI";var ef=Object.freeze({__proto__:null,ALPHANUMERICAL:x,AMPERSAND:K,APOSTROPHE:U,ASCIINUMERICAL:w,ASTERISK:W,AT:"AT",BACKSLASH:H,BACKTICK:q,CARET:J,CLOSEANGLEBRACKET:j,CLOSEBRACE:E,CLOSEBRACKET:M,CLOSEPAREN:N,COLON:V,COMMA:G,DOLLAR:Y,DOT:"DOT",EMOJI:ed,EQUALS:Z,EXCLAMATION:X,FULLWIDTHGREATERTHAN:B,FULLWIDTHLEFTPAREN:I,FULLWIDTHLESSTHAN:F,FULLWIDTHMIDDLEDOT:ea,FULLWIDTHRIGHTPAREN:D,HYPHEN:Q,LEFTCORNERBRACKET:$,LEFTWHITECORNERBRACKET:L,LOCALHOST:_,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:P,OPENBRACE:C,OPENBRACKET:T,OPENPAREN:A,PERCENT:ee,PIPE:et,PLUS:er,POUND:en,QUERY:ei,QUOTE:eo,RIGHTCORNERBRACKET:R,RIGHTWHITECORNERBRACKET:z,SCHEME:k,SEMI:el,SLASH:es,SLASH_SCHEME:O,SYM:"SYM",TILDE:eu,TLD:"TLD",UNDERSCORE:ec,UTLD:S,UWORD:b,WORD:v,WS:"WS"});let eh=/[a-z]/,ep=/\p{L}/u,em=/\p{Emoji}/u,eg=/\d/,ey=/\s/,ev=null,eb=null;function ew(e,t){let r=function(e){let t=[],r=e.length,n=0;for(;n<r;){let i,o=e.charCodeAt(n),a=o<55296||o>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(a),n+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],o=0,a=0;for(;a<n;){let l=e,s=null,u=0,c=null,d=-1,f=-1;for(;a<n&&(s=l.go(r[a]));)(l=s).accepts()?(d=0,f=0,c=l):d>=0&&(d+=r[a].length,f++),u+=r[a].length,o+=r[a].length,a++;o-=d,a-=f,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function ex(e,t,r,n,i){let o,a=t.length;for(let r=0;r<a-1;r++){let a=t[r];e.j[a]?o=e.j[a]:((o=new h(n)).jr=i.slice(),e.j[a]=o),e=o}return(o=new h(r)).jr=i.slice(),e.j[t[a-1]]=o,o}function e_(e){let t=[],r=[],n=0;for(;n<e.length;){let i=0;for(;"0123456789".indexOf(e[n+i])>=0;)i++;if(i>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+i),10);t>0;t--)r.pop();n+=i}else r.push(e[n]),n++}return t}let eS={defaultProtocol:"http",events:null,format:eO,formatHref:eO,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ek(e,t=null){let r=Object.assign({},eS);e&&(r=Object.assign(r,e instanceof ek?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function eO(e){return e}function eC(e,t){this.t="token",this.v=e,this.tk=t}function eE(e,t){class r extends eC{constructor(t,r){super(t,r),this.t=e}}for(let e in t)r.prototype[e]=t[e];return r.t=e,r}ek.prototype={o:eS,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eS[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eC.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"â¦":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eS.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",t,this),n=e.get("tagName",t,this),i=this.toFormattedString(e),o={},a=e.get("className",t,this),l=e.get("target",t,this),s=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=r,a&&(o.class=a),l&&(o.target=l),s&&(o.rel=s),u&&Object.assign(o,u),{tagName:n,attributes:o,content:i,eventListeners:c}}};let eT=eE("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eM=eE("text"),eA=eE("nl"),eN=eE("url",{isLink:!0,toHref(e=eS.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==_&&e[1].t===V}}),eP=e=>new h(e);function ej(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let eI="u">typeof console&&console&&console.warn||(()=>{}),eD={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function e$(e,t=!1){if(eD.initialized&&eI(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 491. Must only contain digits, lowercase ASCII letters or "-" 502. Cannot start or end with "-" 513. "-" cannot repeat`);eD.customSchemes.push([e,t])}function eR(e){return eD.initialized||function(){eD.scanner=function(e=[]){let t={};h.groups=t;let r=new h;null==ev&&(ev=e_("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
51ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==eb&&(eb=e_("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
51ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),y(r,"'",U),y(r,"{",C),y(r,"}",E),y(r,"[",T),y(r,"]",M),y(r,"(",A),y(r,")",N),y(r,"<",P),y(r,">",j),y(r,"ï¼",I),y(r,"ï¼",D),y(r,"ã",$),y(r,"ã",R),y(r,"ã",L),y(r,"ã",z),y(r,"ï¼",F),y(r,"ï¼",B),y(r,"&",K),y(r,"*",W),y(r,"@","AT"),y(r,"`",q),y(r,"^",J),y(r,":",V),y(r,",",G),y(r,"$",Y),y(r,".","DOT"),y(r,"=",Z),y(r,"!",X),y(r,"-",Q),y(r,"%",ee),y(r,"|",et),y(r,"+",er),y(r,"#",en),y(r,"?",ei),y(r,'"',eo),y(r,"/",es),y(r,";",el),y(r,"~",eu),y(r,"_",ec),y(r,"\\",H),y(r,"ã»",ea);let n=m(r,eg,"NUM",{[i]:!0});m(n,eg,n);let p=m(n,eh,w,{[l]:!0}),ew=m(n,ep,x,{[s]:!0}),eS=m(r,eh,v,{[o]:!0});m(eS,eg,p),m(eS,eh,eS),m(p,eg,p),m(p,eh,p);let ek=m(r,ep,b,{[a]:!0});m(ek,eh),m(ek,eg,ew),m(ek,ep,ek),m(ew,eg,ew),m(ew,eh),m(ew,ep,ew);let eO=y(r,"\n","NL",{[d]:!0}),eC=y(r,"\r","WS",{[d]:!0}),eE=m(r,ey,"WS",{[d]:!0});y(r,"",eE),y(eC,"\n",eO),y(eC,"",eE),m(eC,ey,eE),y(eE,"\r"),y(eE,"\n"),m(eE,ey,eE),y(eE,"",eE);let eT=m(r,em,ed,{[c]:!0});y(eT,"#"),m(eT,em,eT),y(eT,"ï¸",eT);let eM=y(eT,"â");y(eM,"#"),m(eM,em,eT);let eA=[[eh,eS],[eg,p]],eN=[[eh,null],[ep,ek],[eg,ew]];for(let e=0;e<ev.length;e++)ex(r,ev[e],"TLD",v,eA);for(let e=0;e<eb.length;e++)ex(r,eb[e],S,b,eN);f("TLD",{tld:!0,ascii:!0},t),f(S,{utld:!0,alpha:!0},t),ex(r,"file",k,v,eA),ex(r,"mailto",k,v,eA),ex(r,"http",O,v,eA),ex(r,"https",O,v,eA),ex(r,"ftp",O,v,eA),ex(r,"ftps",O,v,eA),f(k,{scheme:!0,ascii:!0},t),f(O,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],a=e[t][1]?{scheme:!0}:{slashscheme:!0};n.indexOf("-")>=0?a[u]=!0:eh.test(n)?eg.test(n)?a[l]=!0:a[o]=!0:a[i]=!0,g(r,n,n,a)}return g(r,"localhost",_,{ascii:!0}),r.jd=new h("SYM"),{start:r,tokens:Object.assign({groups:t},ef)}}(eD.customSchemes);for(let e=0;e<eD.tokenQueue.length;e++)eD.tokenQueue[e][1]({scanner:eD.scanner});eD.parser=function({groups:e}){let t=e.domain.concat([K,W,"AT",H,q,J,Y,Z,Q,"NUM",ee,et,er,en,es,"SYM",eu,ec]),r=[U,V,G,"DOT",X,ee,ei,eo,el,P,j,C,E,M,T,A,N,I,D,$,R,L,z,F,B],n=[K,U,W,H,q,J,Y,Z,Q,C,E,ee,et,er,en,ei,es,"SYM",eu,ec],i=eP(),o=y(i,eu);p(o,n,o),p(o,e.domain,o);let a=eP(),l=eP(),s=eP();p(i,e.domain,a),p(i,e.scheme,l),p(i,e.slashscheme,s),p(a,n,o),p(a,e.domain,a);let u=y(a,"AT");y(o,"AT",u),y(l,"AT",u),y(s,"AT",u);let c=y(o,"DOT");p(c,n,o),p(c,e.domain,o);let d=eP();p(u,e.domain,d),p(d,e.domain,d);let f=y(d,"DOT");p(f,e.domain,d);let h=eP(eT);p(f,e.tld,h),p(f,e.utld,h),y(u,_,h);let m=y(d,Q);y(m,Q,m),p(m,e.domain,d),p(h,e.domain,d),y(h,"DOT",f),y(h,Q,m);let g=y(a,Q),v=y(a,"DOT");y(g,Q,g),p(g,e.domain,a),p(v,n,o),p(v,e.domain,a);let b=eP(eN);p(v,e.tld,b),p(v,e.utld,b),p(b,e.domain,a),p(b,n,o),y(b,"DOT",v),y(b,Q,g),y(b,"AT",u);let w=y(b,V),x=eP(eN);p(w,e.numeric,x);let S=eP(eN),k=eP();p(S,t,S),p(S,r,k),p(k,t,S),p(k,r,k),y(b,es,S),y(x,es,S);let O=y(l,V),ea=y(s,V),ed=y(ea,es),eh=y(ed,es);p(l,e.domain,a),y(l,"DOT",v),y(l,Q,g),p(s,e.domain,a),y(s,"DOT",v),y(s,Q,g),p(O,e.domain,S),y(O,es,S),y(O,ei,S),p(eh,e.domain,S),p(eh,t,S),y(eh,es,S);let ep=[[C,E],[T,M],[A,N],[P,j],[I,D],[$,R],[L,z],[F,B]];for(let e=0;e<ep.length;e++){let[n,i]=ep[e],o=y(S,n);y(k,n,o);let a=eP(eN);p(o,t,a);let l=eP();p(o,r,l),y(o,i,S),p(a,t,a),p(a,r,l),p(l,t,a),p(l,r,l),y(a,i,S),y(l,i,S)}return y(i,_,b),y(i,"NL",eA),{start:i,tokens:ef}}(eD.scanner.tokens);for(let e=0;e<eD.pluginQueue.length;e++)eD.pluginQueue[e][1]({scanner:eD.scanner,parser:eD.parser});eD.initialized=!0}(),function(e,t,r){let n=r.length,i=0,o=[],a=[];for(;i<n;){let l=e,s=null,u=null,c=0,d=null,f=-1;for(;i<n&&!(s=l.go(r[i].t));)a.push(r[i++]);for(;i<n&&(u=s||l.go(r[i].t));)s=null,(l=u).accepts()?(f=0,d=l):f>=0&&f++,i++,c++;if(f<0)(i-=c)<n&&(a.push(r[i]),i++);else{a.length>0&&(o.push(ej(eM,t,a)),a=[]),i-=f,c-=f;let e=d.t,n=r.slice(i-c,i);o.push(ej(e,t,n))}}return a.length>0&&o.push(ej(eM,t,a)),o}(eD.parser.start,e,ew(eD.scanner.start,e))}function eL(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new ek(r),i=eR(e),o=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&o.push(r.toFormattedObject(n))}return o}eR.scan=ew;var ez=r(76865),eF="[\0- \xa0áá â-\u2029âã]",eB=new RegExp(eF),eK=RegExp(`${eF}$`),eU=RegExp(eF,"g");function eW(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];
51return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(eU,"").match(RegExp(`^(?:(?:${r.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}var eH=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"==typeof e?e$(e):e$(e.scheme,e.optionalSlashes)})},onDestroy(){h.groups={},eD.scanner=null,eD.parser=null,eD.tokenQueue=[],eD.pluginQueue=[],eD.customSchemes=[],eD.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!eW(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){var e,t,r;return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:null!=(e=this.options.HTMLAttributes.target)?e:null},rel:{default:null!=(t=this.options.HTMLAttributes.rel)?t:null},class:{default:null!=(r=this.options.HTMLAttributes.class)?r:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,o;let a=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",l=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",s=t.renderChildren(e);return l?`[${s}](${a} "${l}")`:`[${s}](${a})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=eL(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!eW(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
51,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,r;let i=[],{protocols:o,defaultProtocol:a}=this.options;return this.options.autolink&&i.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!eW(e,o),protocols:o,defaultProtocol:a}),shouldAutoLink:this.options.shouldAutoLink},new ez.k_({key:new ez.hs("autolink"),appendTransaction:(t,r,i)=>{let o=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),a=t.some(e=>e.getMeta("preventAutolink"));if(!o||a)return;let{tr:l}=i,s=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(s).forEach(({newRange:t})=>{let r,o,a=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(a.length>1)r=a[0],o=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(a.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!eK.test(e))return;r=a[0],o=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&o){let t=o.split(eB).filter(Boolean);if(t.length<=0)return!1;let a=t[t.length-1],s=r.pos+o.lastIndexOf(a);if(!a)return!1;let u=eR(a).map(t=>t.toObject(e.defaultProtocol));if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}}))),i.push((t={type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection},new ez.k_({key:new ez.hs("handleClickLink"),props:{handleClick:(e,r,i)=>{var o,a;if(0!==i.button||!e.editable)return!1;let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let e=i.target;if(!e)return!1;let r=t.editor.view.dom;(l=e.closest("a"))&&!r.contains(l)&&(l=null)}if(!l)return!1;let s=!1;if(t.enableClickSelection&&(s=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){let r=(0,n.gu)(e.state,t.type.name),i=null!=(o=l.href)?o:r.href,u=null!=(a=l.target)?a:r.target;i&&(window.open(i,u),s=!0)}return s}}}))),this.options.linkOnPaste&&i.push((r={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new ez.k_({key:new ez.hs("handlePasteLink"),props:{handlePaste:(e,t,n)=>{let{shouldAutoLink:i}=r,{state:o}=e,{selection:a}=o,{empty:l}=a;if(l)return!1;let s="";n.content.forEach(e=>{s+=e.textContent});let u=eL(s,{defaultProtocol:r.defaultProtocol}).find(e=>e.isLink&&e.value===s);return!!s&&!!u&&(void 0===i||!!i(u.value))&&r.editor.commands.setMark(r.type,{href:u.href})}}}))),i}}),eq=eH},59464:(e,t,r)=>{"use strict";r.d(t,{I:()=>l,h:()=>a});var n=r(2842),i=r(27467),o=r(51531),a=(0,n.Mz)(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),l=(0,n.Mz)(e=>e.zIndex.zIndexMap,e=>Array.from(new Set(Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(o.I)))).sort((e,t)=>e-t),{memoizeOptions:{resultEqualityCheck:i.W}})},59656:(e,t,r)=>{"use strict";r.d(t,{h:()=>C});var n=r(12115),i=r(29722),o=r(32848),a=r(26028),l=r(10365),s=r(44531),u=r(2242),c=r(64105),d=r(85663),f=r(43527),h=r(93189),p=r(65372),m=r(87485),g=["type"],y=["dangerouslySetInnerHTML","ticks","scale"],v=["id","scale"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
51t%2?w(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function S(e){var t=(0,l.j)(),r=(0,n.useRef)(null),i=(0,p.kz)(),{type:o}=e,s=_(e,g),u=(0,m.a)(i,"yAxis",o),c=(0,n.useMemo)(()=>{if(null!=u)return x(x({},s),{},{type:u})},[u,s]);return(0,n.useLayoutEffect)(()=>{null!=c&&(null===r.current?t((0,a.cU)(c)):r.current!==c&&t((0,a.hd)({prev:r.current,next:c})),r.current=c)},[c,t]),(0,n.useLayoutEffect)(()=>()=>{r.current&&(t((0,a.fR)(r.current)),r.current=null)},[t]),null}function k(e){var{yAxisId:t,className:r,width:f,label:h}=e,p=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,l.G)(u.c2),w=(0,c.r)(),x=(0,l.j)(),S="yAxis",k=(0,l.G)(e=>(0,s.wP)(e,t)),O=(0,l.G)(e=>(0,s.KR)(e,t)),C=(0,l.G)(e=>(0,s.Zi)(e,S,t,w)),E=(0,l.G)(e=>(0,s.hc)(e,t));if((0,n.useLayoutEffect)(()=>{if(!("auto"!==f||!k||(0,d.ZY)(h)||(0,n.isValidElement)(h))&&null!=E){var e=p.current;if(e){var r=e.getCalculatedWidth();Math.round(k.width)!==Math.round(r)&&x((0,a.QG)({id:t,width:r}))}}},[C,k,x,h,t,f,E]),null==k||null==O||null==E)return null;var{dangerouslySetInnerHTML:T,ticks:M,scale:A}=e,N=_(e,y),{id:P,scale:j}=E,I=_(E,v);return n.createElement(o.u,b({},N,I,{ref:p,labelRef:m,x:O.x,y:O.y,tickTextProps:"auto"===f?{width:void 0}:{width:f},width:k.width,height:k.height,className:(0,i.$)("recharts-".concat(S," ").concat(S),r),viewBox:g,ticks:C,axisType:S,axisId:t}))}var O={allowDataOverflow:s.cd.allowDataOverflow,allowDecimals:s.cd.allowDecimals,allowDuplicatedCategory:s.cd.allowDuplicatedCategory,angle:s.cd.angle,axisLine:o.F.axisLine,hide:!1,includeHidden:s.cd.includeHidden,interval:s.cd.interval,label:!1,minTickGap:s.cd.minTickGap,mirror:s.cd.mirror,orientation:s.cd.orientation,padding:s.c
51d.padding,reversed:s.cd.reversed,scale:s.cd.scale,tick:s.cd.tick,tickCount:s.cd.tickCount,tickLine:o.F.tickLine,tickSize:o.F.tickSize,type:s.cd.type,niceTicks:s.cd.niceTicks,width:s.cd.width,yAxisId:0},C=n.memo(e=>{var t=(0,f.e)(e,O);return n.createElement(n.Fragment,null,n.createElement(S,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),n.createElement(k,t))},h.Q);C.displayName="YAxis"},60668:(e,t,r)=>{"use strict";r.d(t,{x4:()=>o});let{isPlural:n,singular:i}=r(91688),o=(e,t=!1)=>{let r=(e||"").trim().split(/[\s-]/),n=[];return r.forEach(e=>{if(""!==e){let t=e.split(/(?=[A-Z])/).join(" ");n.push(t.charAt(0).toUpperCase()+t.slice(1))}}),t?n.join("").replace(/\s/g,""):n.join(" ")}},60766:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});let n=JSON;if(void 0===i)var i={};let o=i||{};i.JSOX=o,o.version="1.2.121";let a="function"==typeof BigInt,l=["ab","u8","cu8","s8","u16","s16","u32","s32","u64","s64","f32","f64"],s=null,u=null,c=[ArrayBuffer,Uint8Array,Uint8ClampedArray,Int8Array,Uint16Array,Int16Array,Uint32Array,Int32Array,null,null,Float32Array,Float64Array],d={true:!0,false:!1,null:null,NaN:NaN,Infinity:1/0,undefined:void 0};class f extends Date{constructor(e,t){super(e),this.ns=t||0}}o.DateNS=f;let h=[];function p(){let e=h.pop();return e||(e={context:0,current_proto:null,current_class:null,current_class_field:0,arrayType:-1,valueType:0,elements:null}),e}function m(e){h.push(e)}o.updateContext=function(){};let g=[];o.escape=function(e){let t,r="";if(!e)return e;for(t=0;t<e.length;t++)('"'==e[t]||"\\"==e[t]||"`"==e[t]||"'"==e[t])&&(r+="\\"),r+=e[t];return r};let y=new WeakMap,v=new Map,b=new Map,w=[];o.reset=function(){y=new WeakMap,v=new Map,b=new Map,w=[]},o.begin=function(e,t){let r,n={name:null,value_type:0,string:"",contains:null,className:null},i={line:1,col:1},o=0,s=new Map,u=0,d=!0,h=!1,y=!1,v=null,w=null,x,_={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t,this.length++},pop(){let e=this.last;return(this.last=e.prior)||(this.first=null),e.next=this.saved,this.last&&(this.last.next=null),e.next||(e.first=null),this.saved=e,this.length--,e.node},length:0},S=[],k={},O=null,C=null,T=0,M=-1,A=0,N=0,P=!1,j=!1,I=!1,D=!1,$=!1,R={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t},shift(){let e=this.first;return e?((this.first=e.next)||(this.last=null),e.next=this.saved,this.saved=e,e.node):null},unshift(e){let t=this.saved;this.saved=t.next,t.node=e,t.next=this.first,t.prior=null,this.first||(this.last=t),this.first=t}},L=null,z=!1,F=!1,B=!1,K=!1,U=!1,W=!1,H=!1,q=0,J=0,V=!1,G=!1,Y=!1;function Z(e){throw Error(`${e} at ${o} [${i.line}:${i.col}]`)}return{fromJSOX(e,t,r){if(s.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t||(t=function(){}),t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");s.set(e,{protoCon:t.prototype.constructor,cb:r})},registerFromJSOX(e,t){throw Error("registerFromJSOX is deprecated, please update to use fromJSOX instead:"+e+t.toString())},finalError(){0!==N&&(1===N&&Z("Comment began at end of document"),3===N&&Z("Open comment '/*' is missing close at end of document"),4===N&&Z("Incomplete '/* *' close at end of document")),z&&Z("Incomplete string")},value(){this.finalError();let e=v;return v=void 0,e},reset(){u=0,d=!0,R.last&&(R.last.next=R.save),R.save=R.first,R.first=R.last=null,_.last&&(_.last.next=_.save),_.length=0,_.save=R.first,_.first=_.last=null,x=void 0,A=0,S=[],k={}
51,O=null,C=null,T=0,n.value_type=0,n.name=null,n.string="",n.className=null,i.line=1,i.col=1,y=!1,N=0,V=!1,z=!1,B=!1,K=!1,G=!1},usePrototype(e,t){k[e]=t},write(r){let n;if("string"!=typeof r&&void 0!==r&&(r=String(r)),!d)throw Error("Parser is still in an error state, please reset before resuming");for(n=this._write(r,!1);n>0&&("function"==typeof t&&function e(r,n){let i,o,a=r[n];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(r,n,a)}({"":v},""),v=e(v),!(n<2));n=this._write());},parse(e,t){"string"!=typeof e&&(e=String(e)),this.reset();let r=this._write(e,!0);if(r>0){let e=this.value();if(void 0===e&&r>1)throw Error("Pending value could not complete");return"function"==typeof t?function e(r,n){let i,o,a=r[n];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(r,n,a)}({"":e},""):e}this.finalError()},_write(e,t){let k,Z,X,Q=0;function ee(e,t){throw Error(`${e} '${String.fromCodePoint(t)}' unexpected at ${o} (near '${X.substr(o>4?o-4:0,o>4?3:o-1)}[${String.fromCodePoint(t)}]${X.substr(o,10)}') [${i.line}:${i.col}]`)}function et(){n.value_type=0,n.string="",n.contains=null}function er(){let e=null;switch(n.value_type){case 5:if(!(n.string.length>13)&&(13!=n.string.length||!(n[0]>"2"))||G||$||D||j||(Y=!0),Y)if(a)return BigInt(n.string);else throw Error("no builtin BigInt()",0);if(G){let e=n.string.match(/\.(\d\d\d\d*)/),t=e?e[1]:null;if(!t||t.length<4){let e=new Date(n.string);return isNaN(e.getTime())&&ee("Bad Date format",k),e}{let e=t.substr(3);for(;e.length<6;)e+="0";let r=new f(n.string,Number(e));return isNaN(r.getTime())&&ee("Bad DateNS format"+r+r.getTime(),k),r}}return(y?-1:1)*Number(n.string);case 4:if(n.className){if((e=s.get(n.className))||(e=b.get(n.className)),e&&e.cb)return n.className=null,e.cb.call(n.string);throw Error("Double string error, no constructor for: new "+n.className+"("+n.string+")")}return n.string;case 2:return!0;case 3:return!1;case 7:case 8:return NaN;case 9:return-1/0;case 10:return 1/0;case 1:return null;case -1:case 12:return;case 6:if(n.className&&((e=s.get(n.className))||(e=b.get(n.className)),n.className=null,e&&e.cb))return n.contains=e.cb.call(n.contains);return n.contains;case 13:if(M>=0){let e;if(e=n.contains.length?E(n.contains[0]):E(n.string),0===M)return M=-1,e;{let t=new c[M](e);return M=-1,t}}if(-2===M){let e,t=w,r=n.contains.length;for(e=0;e<r;e++){let i=n.contains[e],o=t[i];if(!o){let i=_.first,a=0;for(;i&&a<r&&a<_.length;){let r=n.contains[a];if(!i.next||r!==i.next.node.name)break;if(i.next)if("number"==typeof r){let e=i.next.node.elements;if(e&&r>=e.length)if(a===_.length-1){console.log("This is actually at the current object so use that",a,n.contains,x),o=x,a++,i=i.next;break}else{if(i.next.next&&r===e.length){o=i.next.next.node.elements,i=i.next,a++,t=o;continue}o=x,a++;break}}else if(r!==i.next.node.name){o=i.next.node.elements[r],e=a;break}else o=i.next.next?i.next.next.node.elements:x;else o=o[r];i=i.next,a++}e=a<r?a-1:a}if("object"==typeof o&&!o)throw Error("Path did not resolve properly:"+n.contains+" at "+i+"("+e+")");t=o}return M=-3,t}if(n.className&&((e=s.get(n.className))||(e=b.get(n.className)),n.className=null,e&&e.cb))return e.cb.call(n.contains);return n.contains;default:console.log("Unhandled value conversion.",n)}}function en(){if(-3==M){6===n.value_type&&x.push(n.contains),M=-1;return}12===n.value_type?(x.push(void 0),delete x[x.length-1]):x.push(er()),et()}function ei(){if(-3===M&&13===n.value_type){et(),M=-1;return}if(12===n.value_type)return;!n.name&&C&&(n.name=C.fields[T++]);let e=er();O&&O.protoDef&&O.protoDef.cb?(e=O.protoDef.cb.call(x,n.name,e))&&(x[n.name]=e):x[n.name]=e,et()}function eo(e){if(0!==u){switch(y&&ee("Negative outside of quotes, being converted to a string (would lose count of leading '-' characters)",e),u){case 31:switch(n.value_type){case 2:n.string+="true";break;case 3:n.string+="false";break;case 1:n.string+="null";break;case 10:n.string+="Infinity";break;case 9:n.string+="-Infinity",ee("Negative outside of quotes, being converted to a string",e);break;case 8:n.string+="NaN";break;case 7:n.string+="-NaN",ee("Negative outside of quotes, being converted to a string",e);break;case -1:n.string+="undefined";break;case 4:case 0:break;default:console.log("Value of type "+n.value_type+" is not restored...")}break;case 1:n.string+="t";break;case 2:n.string+="tr";break;case 3:n.string+="tru";break;case 5:n.string+="f";break;case 6:n.string+="fa";break;case 7:n.string+="fal";break;case 8:n.string+="fals";break;case 9:n.string+="n";break;case 10:n.string+="nu";break;case 11:n.string+="nul";break;case 12:n.string+="u";break;case 13:n.string+="un";break;case 14:n.string+="und";break;case 15:n.string+="unde";break;case 16:n.string+="undef";break;case 17:n.string+="undefi";break;case 18:n.string+="undefin";break;case 19:n.string+="undefine";break;case 20:n.string+="N";break;case 21:n.string+="Na";break;case 22:n.string+="I";break;case 23:n.string+="In";break;case 24:n.string+="Inf";break;case 25:n.string+="Infi";break;case 26:n.string+="Infin";break;case 27:n.string+="Infini";break;case 28:n.string+="Infinit";break;case 0:case 29:case 30:break;case 32:ee("String-keyword recovery fail (after whitespace)",e)}n.value_type=4,u<29&&(u=31)}else u=31,n.value_type=4;if(123==e)es();else if(91==e)eu();else if(44==e);else{if(32==e||13==e||10==e||9==e||65279==e||8232==e||8233==e)return;44==e||125==e||93==e||58==e?ee("Invalid character near identifier",e):n.string+=r}}function ea(e){let t=0;for(;0==t&&o<X.length;){r=X.charAt(o);let a=X.codePointAt(o++);if(a>=65536&&(r+=X.charAt(o),o++),i.col++,a==e)B?(H?ee("Incomplete hexidecimal sequence",a):W?ee("Incomplete long unicode sequence",a):U&&ee("Incomplete unicode sequence",a),K?(K=!1,t=1):n.string+=r,B=!1):t=1;
51else if(B){if(U){if(125==a){n.string+=String.fromCodePoint(q),U=!1,W=!1,B=!1;continue}q*=16,a>=48&&a<=57?q+=a-48:a>=65&&a<=70?q+=a-65+10:a>=97&&a<=102?q+=a-97+10:(ee("(escaped character, parsing hex of \\u)",a),t=-1,U=!1,B=!1);continue}if(H||W){if(0===J&&123===a){U=!0;continue}if(J<2||W&&J<4){if(q*=16,a>=48&&a<=57)q+=a-48;else if(a>=65&&a<=70)q+=a-65+10;else if(a>=97&&a<=102)q+=a-97+10;else{ee(W?"(escaped character, parsing hex of \\u)":"(escaped character, parsing hex of \\x)",a),t=-1,H=!1,B=!1;continue}J++,W?4==J&&(n.string+=String.fromCodePoint(q),W=!1,B=!1):2==J&&(n.string+=String.fromCodePoint(q),H=!1,B=!1);continue}}switch(a){case 13:K=!0,i.col=1;continue;case 8232:case 8233:i.col=1;case 10:K?K=!1:i.col=1,i.line++;break;case 116:n.string+=" ";break;case 98:n.string+="\b";break;case 110:n.string+="\n";break;case 114:n.string+="\r";break;case 102:n.string+="\f";break;case 118:n.string+="\v";break;case 48:n.string+="\0";break;case 120:H=!0,J=0,q=0;continue;case 117:W=!0,J=0,q=0;continue;default:n.string+=r}B=!1}else 92===a?B?(n.string+="\\",B=!1):(B=!0,q=0,J=0):(K&&(K=!1,i.line++,i.col=2),n.string+=r)}return t}function el(){let e;for(;(e=o)<X.length;){r=X.charAt(e);let a=X.codePointAt(o++);if(a>=256){i.col-=o-e,o=e;break}if(95!=a)if(i.col++,a>=48&&a<=57)I&&($=!0),n.string+=r;else if(45==a||43==a)0!=n.string.length&&(!I||D||$)?(y&&(n.string="-"+n.string,y=!1),n.string+=r,G=!0):(45!=a||I||(y=!y),n.string+=r,D=!0);else if(78==a){if(0==u){F=!1,u=20;return}ee("fault while parsing number;",a);break}else if(73==a){if(0==u){F=!1,u=22;return}ee("fault while parsing number;",a);break}else if(58==a&&G)y&&(n.string="-"+n.string,y=!1),n.string+=r,G=!0;else if(84==a&&G)y&&(n.string="-"+n.string,y=!1),n.string+=r,G=!0;else if(90==a&&G)y&&(n.string="-"+n.string,y=!1),n.string+=r,G=!0;else if(46==a)if(j||P||I){d=!1,ee("fault while parsing number;",a);break}else n.string+=r,j=!0;else if(110==a){Y=!0;break}else if(P&&(a>=95&&a<=102||a>=65&&a<=70))n.string+=r;else if(120==a||98==a||111==a||88==a||66==a||79==a)if(P||"0"!=n.string){d=!1,ee("fault while parsing number;",a);break}else P=!0,n.string+=r;else if(101==a||69==a)if(I){d=!1,ee("fault while parsing number;",a);break}else n.string+=r,I=!0;else if(32==a||13==a||10==a||9==a||47==a||35==a||44==a||125==a||93==a||123==a||91==a||34==a||39==a||96==a||58==a){i.col-=o-e,o=e;break}else{t&&(d=!1,ee("fault while parsing number;",a));break}}t||o!=X.length?(F=!1,n.value_type=5,0==A&&(V=!0)):F=!0}function es(){let e,t=2,r=null,i={};if(u>0&&u<29&&eo(123),e=ec(),0==A)29==u||31==u&&(e||n.string.length)?(e&&e.protoDef&&e.protoDef.protoCon&&(i=new e.protoDef.protoCon),e&&(e.protoDef||!n.string)||((r=S.find(e=>e.name===n.string))?h?(r.fields.length=0,t=4):(i=new r.protoCon,t=5):(S.push(r={name:n.string,protoCon:e&&e.protoDef&&e.protoDef.protoCon||(function(){}).constructor,fields:[]}),t=4),h=!1),C=r,u=0):u=29;else if(29==u||1===A||3===A||5==A)if(0!=u||4==n.value_type){if(e&&e.protoDef)i=new e.protoDef.protoCon;else if(r=S.find(e=>e.name===n.string))t=5,i={};else{function o(){}s.set(n.string,{protoCon:o.prototype.constructor,cb:null}),i=new o}u=0}else u=0;else if(2==A&&0==u)return ee("fault while parsing; getting field name unexpected ",k),d=!1,!1;let a=p();return n.value_type=6,0===A?x=i:1==A?n.name=x.length:(3==A||5==A)&&(!n.name&&C&&(n.name=C.fields[T++]),x[n.name]=i),a.context=A,a.elements=x,a.name=n.name,a.current_proto=O,a.current_class=C,a.current_class_field=T,a.valueType=n.value_type,a.arrayType=M,a.className=n.className,n.className=null,n.name=null,O=e,C=r,T=0,x=i,w||(w=x),_.push(a),et(),A=t,!0}function eu(){if(u>0&&u<29&&eo(91),31==u&&n.string.length){let e=l.findIndex(e=>e===n.string);u=0,e>=0?(M=e,n.className=n.string,n.string=null):"ref"===n.string?(n.className=null,M=-2):s.get(n.string)||b.get(n.string)?n.className=n.string:ee(`Unknown type '${n.string}' specified for array`,k)}else if(2==A||29==u||30==u)return ee("Fault while parsing; while getting field name unexpected",k),d=!1,!1;{let e=p();n.value_type=13;let t=[];if(0==A)x=t;else if(1==A)-1==M&&x.push(t),n.name=x.length;else if(3==A)if(n.name||(console.log("This says it's resolved......."),M=-3),O&&O.protoDef)if(O.protoDef.cb){let e=O.protoDef.cb.call(x,n.name,t);void 0!==e&&(t=x[n.name]=e)}else x[n.name]=t;else x[n.name]=t;e.context=A,e.elements=x,e.name=n.name,e.current_proto=O,e.current_class=C,e.current_class_field=T,e.valueType=n.value_type,e.arrayType=-1==M?-3:M,e.className=n.className,M=-1,n.className=null,n.name=null,O=null,C=null,T=0,x=t,w||(w=t),_.push(e),et(),A=1}return!0}function ec(){let e={protoDef:null,cls:null};return(e.protoDef=s.get(n.string))?n.className||(n.className=n.string,n.str
51ing=null):(e.protoDef=b.get(n.string))&&!n.className&&(n.className=n.string,n.string=null),n.string&&(e.cls=S.find(e=>e.name===n.string),!e.protoDef&&!e.cls),e.protoDef||e.cls?e:null}if(!d)return -1;if(e&&e.length){let t;(t=g.pop())?t.n=0:t={buf:null,n:0},(Z=t).buf=e,R.push(Z)}else F&&(F=!1,n.value_type=5,0==A&&(V=!0),Q=1),0!==A&&ee("Unclosed object at end of stream.",k);for(;d&&(Z=R.shift());){if(o=Z.n,X=Z.buf,z){let e=ea(L);e<0?d=!1:e>0&&(z=!1,d&&(n.value_type=4))}for(F&&el();!V&&d&&o<X.length;){if(r=X.charAt(o),(k=X.codePointAt(o++))>=65536&&(r+=X.charAt(o),o++),i.col++,N){if(1==N)if(42==k)N=3;else{if(47!=k)return ee("fault while parsing;",k);N=2}else 2==N?(10==k||13==k)&&(N=0):3==N?42==k&&(N=4):N=3*(47!=k);continue}switch(k){case 35:N=2;break;case 47:N=1;break;case 123:es();break;case 91:eu();break;case 58:if(5==A)u=0,n.name=n.string,n.string="",n.value_type=0;else if(2==A||4==A)if(4==A){if(!Object.keys(x).length){console.log("This is a full object, not a class def...",n.className);let e=()=>{};s.set(_.last.node.current_class.name,{protoCon:e.prototype.constructor,cb:null}),x=new e,A=3,n.name=n.string,u=0,n.string="",n.value_type=0,console.log("don't do default;s do a revive...")}}else 0!=u&&31!=u&&29!=u&&30!=u&&eo(32),u=0,n.name=n.string,n.string="",A=2===A?3:6,n.value_type=0;else 0==A?(console.log("Override colon found, allow class redefinition",A),h=!0):(1==A?ee("(in array, got colon out of string):parsing fault;",k):3==A?ee("String unexpected",k):ee("(outside any object, got colon out of string):parsing fault;",k),d=!1);break;case 125:if(31==u&&(u=0),4==A)if(C){n.string&&C.fields.push(n.string),et();let e=_.pop();A=0,u=0,n.name=e.name,x=e.elements,C=e.current_class,T=e.current_class_field,M=e.arrayType,n.value_type=e.valueType,n.className=e.className,w=null,m(e)}else ee("State error; gathering class fields, and lost the class",k);else if(2==A||5==A){0!=n.value_type&&(C&&(n.name=C.fields[T++]),ei()),n.value_type=6,O&&O.protoDef&&(console.log("SOMETHING SHOULD AHVE BEEN REPLACED HERE??",O),console.log("The other version only revives on init"),x=new O.protoDef.cb(x,void 0,void 0)),n.contains=x,n.string="";let e=_.pop();A=e.context,n.name=e.name,x=e.elements,C=e.current_class,O=e.current_proto,T=e.current_class_field,M=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==A&&(V=!0)}else if(3==A){0===n.value_type&&ee("Fault while parsing; unexpected",k),ei(),n.value_type=6,n.contains=x,u=0;let e=_.pop();A=e.context,n.name=e.name,x=e.elements,O=e.current_proto,C=e.current_class,T=e.current_class_field,M=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==A&&(V=!0)}else ee("Fault while parsing; unexpected",k),d=!1;y=!1;break;case 93:if(u>=30&&(u=0),1==A){0!=n.value_type&&en(),n.contains=x;{let e=_.pop();n.name=e.name,n.className=e.className,A=e.context,x=e.elements,O=e.current_proto,C=e.current_class,T=e.current_class_field,M=e.arrayType,n.value_type=e.valueType,m(e)}n.value_type=13,0==A&&(V=!0)}else ee(`bad context ${A}; fault while parsing`,k),d=!1;y=!1;break;case 44:u<30&&0!=u&&eo(k),(31==u||29==u)&&(u=0),4==A?C?(C.fields.push(n.string),n.string="",u=29):ee("State error; gathering class fields, and lost the class",k):2==A?C?(n.name=C.fields[T++],0!=n.value_type&&(ei(),et())):(n.string||n.value_type)&&ee("State error; comma in field name and/or lost the class",k):5==A?(C?(-3==M||n.name||(n.name=C.fields[T++]),0!=n.value_type&&(-3!=M&&ei(),et())):0!=n.value_type&&(ei(),et()),n.name=null):1==A?(0==n.value_type&&(n.value_type=12),en(),et(),u=0):3==A&&0!=n.value_type?(A=2,0!=n.value_type&&(ei(),et()),u=0):(d=!1,ee("bad context; excessive commas while parsing;",k)),y=!1;break;default:switch(k){default:if(0==A||3==A&&29==u||2==A||29==u||4==A)switch(k){case 96:case 34:case 39:0==u||29==u?(n.string.length&&(console.log("IN ARRAY AND FIXING?"),n.className=n.string,n.string=""),ea(k)?n.value_type=4:(L=k,z=!0)):ee("fault while parsing; quote not at start of field name",k);break;case 10:i.line++,i.col=1;case 13:case 32:case 8232:case 8233:case 9:case 65279:if(0===A&&31===u){u=0,0===A&&(V=!0);break}if(0===u||30===u)0==A&&n.value_type&&(V=!0);else if(29===u){if(0===A){u=0,V=!0;break}n.string.length&&console.log("STEP TO NEXT TOKEN."),u=30}else d=!1,ee("fault while parsing; whitepsace unexpected",k);break;default:if(0==u&&(k>=48&&k<=57||43==k||46==k||45==k)){P=!1,I=!1,G=!1,Y=!1,D=!1,$=!1,j=!1,n.string=r,Z.n=o,el();break}if(30===u&&(d=!1,ee("fault while parsing;
51 character unexpected",k)),0===u){u=29,n.value_type=4,n.string+=r;break}if(0==n.value_type)0!==u&&31!==u&&eo(k);else{if(31===u||29===u){n.string+=r;break}if(2==A){if(29==u){n.string+=r;break}ee("Multiple values found in field name",k)}3==A&&ee("String unexpected",k)}}else 0==u&&(k>=48&&k<=57||43==k||46==k||45==k)?(P=!1,I=!1,G=!1,Y=!1,D=!1,$=!1,j=!1,n.string=r,Z.n=o,el()):0==n.value_type?0!=u?eo(k):(u=31,n.string+=r,n.value_type=4):2==A?ee("Multiple values found in field name",k):3==A?(4!=n.value_type&&((6==n.value_type||13==n.value_type)&&ee("String unexpected",k),eo(k)),30==u?ec()?n.string=r:ee("String unexpected",k):31==u?n.string+=r:ee("String unexpected",k)):1==A&&(30==u?(n.className||(n.className=n.string,n.string=""),n.string+=r):31==u&&(n.string+=r));break;case 96:case 34:case 39:n.string&&(n.className=n.string),n.string="",ea(k)?(n.value_type=4,u=31):(L=k,z=!0);break;case 10:i.line++,i.col=1;case 32:case 9:case 13:case 8232:case 8233:case 65279:if(31==u){if(0==A){u=0,V=!0;break}else if(3==A){u=32;break}else if(2==A){u=30;break}else if(1==A){u=30;break}}0==u||30==u||(29==u?n.string.length&&(u=30):u<31&&eo(k));break;case 116:0==u?u=1:27==u?u=28:eo(k);break;case 114:1==u?u=2:eo(k);break;case 117:2==u?u=3:9==u?u=10:0==u?u=12:eo(k);break;case 101:3==u?(n.value_type=2,u=31):8==u?(n.value_type=3,u=31):14==u?u=15:18==u?u=19:eo(k);break;case 110:0==u?u=9:12==u?u=13:17==u?u=18:22==u?u=23:25==u?u=26:eo(k);break;case 100:13==u?u=14:19==u?(n.value_type=-1,u=31):eo(k);break;case 105:16==u?u=17:24==u?u=25:26==u?u=27:eo(k);break;case 108:10==u?u=11:11==u?(n.value_type=1,u=31):6==u?u=7:eo(k);break;case 102:0==u?u=5:15==u?u=16:23==u?u=24:eo(k);break;case 97:5==u?u=6:20==u?u=21:eo(k);break;case 115:7==u?u=8:eo(k);break;case 73:0==u?u=22:eo(k);break;case 78:0==u?u=20:21==u?(n.value_type=y?7:8,y=!1,u=31):eo(k);break;case 121:28==u?(n.value_type=y?9:10,y=!1,u=31):eo(k);break;case 45:0==u?y=!y:eo(k);break;case 43:0!==u&&eo(k)}}if(V){31==u&&(u=0);break}}if(o==X.length){var ed;ed=Z,g.push(ed),z||F||2==A?Q=0:0==A&&(0!=n.value_type||v)&&(V=!0,Q=1)}else Z.n=o,R.unshift(Z),Q=2;if(V){w=null;break}}return d?(V&&0!=n.value_type&&(u=0,v=er(),y=!1,n.string="",n.value_type=0),V=!1,Q):-1}}};let x=[Object.freeze(o.begin())],_=0;function S(){return this&&this.valueOf()}o.parse=function(e,t){let r,n=_++;x.length<=n&&x.push(Object.freeze(o.begin())),r=x[n],"string"!=typeof e&&(e=String(e)),r.reset();let i=r._write(e,!0);if(i>0){let e=r.value();if(void 0===e&&i>1)throw Error("Pending value could not complete");return e="function"==typeof t?function e(r,n){let i,o,a=r[n];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(r,n,a)}({"":e},""):e,_--,e}r.finalError()},o.defineClass=function(e,t){let r,n=Object.keys(t);for(let e=1;e<n.length;e++){let t,r;(t=n[e-1])>(r=n[e])&&(n[e-1]=r,n[e]=t,e?e-=2:e--)}w.push(r={name:e,tag:n.toString(),proto:Object.getPrototypeOf(t),fields:Object.keys(t)});for(let e=1;e<r.fields.length;e++)if(r.fields[e]<r.fields[e-1]){let t=r.fields[e-1];r.fields[e-1]=r.fields[e],r.fields[e]=t,e>1&&(e-=2)}r.proto===Object.getPrototypeOf({})&&(r.proto=null)},o.toJSOX=o.registerToJSOX=function(e,t,r){if(t.prototype&&t.prototype===Object.prototype){let n=Object.keys(t).toString();if(v.get(n))throw Error("Existing toJSOX has been registered for object type");v.set(n,{external:!0,name:e,cb:r})}else{if(y.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");y.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}},o.fromJSOX=function(e,t,r){if(t||(t=(function(){}).prototype),b.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");b.set(e,{protoCon:t.prototype.constructor,cb:r})},o.registerFromJSOX=function(e,t){throw Error("deprecated; please adjust code to use fromJSOX:"+e+t.toString())},o.addType=function(e,t,r,n){o.toJSOX(e,t,r),o.fromJSOX(e,t,n)},o.registerToFrom=function(e,t){throw Error("registerToFrom deprecated; please use addType:"+e+t.toString())},o.stringifier=function(){let e=[],t='"',r=new WeakMap,i=[],a=[],l=new WeakMap,c=new Map,h=null,p=[],m=!1;function g(e){return"string"==typeof e&&""===e?'""':"number"!=typeof e||isNaN(e)?e.includes("\uFEFF")||e in d||/[0-9\-]/.test(e[0])||/[\n\r\t #\[\]{}()<>\~!+*/.:,\-"'`]/.test(e)?t+o.escape(e)+t:e:["'",e.toString(),"'"].join("")}y.get(Object.prototype)||(y.set(Object.prototype,{external:!1,name:Object.prototype.constructor.name,cb:null}),y.set(Date.prototype,{external:!1,name:"Date",cb:function(){let e;if(-621672192e5===this.getTime())return"0000-01-01T00:00:00.000Z";let t=-this.getTimezoneOffset(),r=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return[this.getFullYear(),"-",r(this.getMonth()+1),"-",r(this.getDate()),"T",r(this.getHours()),":",r(this.getMinutes()),":",r(this.getSeconds()),"."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":"")+e+(t>=0?"+":"-"),r(t/60),":",r(t%60)].join("")}}),y.set(f.prototype,{external:!1,name:"DateNS",cb:function(){let e,t,r=-this.getTimezoneOffset(),n=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return[this.getFullYear(),"-",n(this.getMonth()+1),"-",n(this.getDate()),"T",n(this.getHours()),":",n(this.getMinutes()),":",n(this.getSeconds()),"."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":"")+e+(((t=Math.floor(Math.abs(this.ns)))<1e5?"0":"")+(t<1e4?"0":"")+(t<1e3?"0":"")+(t<100?"0":""))+(t<10?"0":"")+t+(r>=0?"+":"-"),n(r/60),":",n(r%60)].join("")}}),y.set(Boolean.prototype,{external:!1,name:"Boolean",cb:S}),y.set(Number.prototype,{external:!1,name:"Number",cb:function(){return isNaN(this)?"NaN":isFinite(this)?String(this):this<0?"-Infinity":"Infinity"}}),y.set(String.prototype,{external:!1,name:"String",cb:function(){return'"'+o.escape(S.apply(this))+'"'}}),"function"==typeof BigInt&&y.set(BigInt.prototype,{external:!1,name:"BigInt",cb:function(){return this+"n"}}),y.set(ArrayBuffer.prototype,{external:!0,name:"ab",cb:function(){return"["+g(C(this))+"]"}}),y.set(Uint8Array.prototype,{external:!0,name:"u8",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Uint8ClampedArray.prototype,{external:!0,name:"uc8",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Int8Array.prototype,{external:!0,name:"s8",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Uint16Array.prototype,{external:!0,name:"u16",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Int16Array.prototype,{external:!0,name:"s16",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Uint32Array.prototype,{external:!0,name:"u32",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Int32Array.prototype,{external:!0,name:"s32",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Float32Array.prototype,{external:!0,name:"f32",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+g(C(this.buffer))+"]"}}),y.set(RegExp.prototype,u={external:!0,name:"regex",cb:function(e,t){return"'"+escape(this.source)+"'"}}),b.set("regex",{protoCon:RegExp,cb:function(e,t){return new RegExp(this)}}),y.set(Map.prototype,u={external:!0,name:"map",cb:null}),b.set("map",{protoCon:Map,cb:function(e,t){return e?void this.set(e,t):this}}),y.set(Array.prototype,s={external:!1,name:Array.prototype.constructor.name,cb:null}));let x={defineClass(t,r){let n,i=Object.keys(r);for(let e=1;e<i.length;e++){let t,r;(t=i[e-1])>(r=i[e])&&(i[e-1]=r,i[e]=t,e?e-=2:e--)}
51e.push(n={name:t,tag:i.toString(),proto:Object.getPrototypeOf(r),fields:Object.keys(r)});for(let e=1;e<n.fields.length;e++)if(n.fields[e]<n.fields[e-1]){let t=n.fields[e-1];n.fields[e-1]=n.fields[e],n.fields[e]=t,e>1&&(e-=2)}n.proto===Object.getPrototypeOf({})&&(n.proto=null)},setDefaultObjectToJSOX(e){h=e},isEncoding:e=>!!a.find((t,r)=>t===e&&r<a.length-1),encodeObject(e){return h?h.apply(e,[this]):e},stringify:(t,n,o)=>(function(t,n,o){let d,f,b;if(void 0===t)return"undefined";if(null===t)return;let S=typeof o,O=typeof n;if(d="",f="","number"===S)for(b=0;b<o;b+=1)f+=" ";else"string"===S&&(f=o);if(n&&"function"!==O&&("object"!==O||"number"!=typeof n.length))throw Error("JSOX.stringify");i.length=0,r=new WeakMap;let C=function t(r,o){var b=d;let S=s.cb,O=u.cb;s.cb=function(){let e=[],r=i.length;for(let n=0;n<this.length;n+=1)i[r]=n,e[n]=t(n,this)||"null";return i.length=r,a.length=r,0===e.length?"[]":d?["[\n",d,e.join(",\n"+d),"\n",b,"]"].join(""):"["+e.join(",")+"]"},u.cb=function(){let e={tmp:null},r="{",n=!0;for(let[o,a]of this){e.tmp=a;let l=i.length;i[l]=o,r+=(n?"":",")+g(o)+":"+t("tmp",e),i.length=l,n=!1}return r+"}"};let C=function(r,o){let s,u,S,O,C,E,T,M=i.length,A=!0,N=o[r],P="object"==typeof N;P&&null!==N&&h&&!p.find(e=>e===N)&&(p.push(N),a[M]=N,A=!1,P="object"==typeof(N=h.apply(N,[x])),p.pop(),a.length=M,P="object"==typeof N);let j=null!=N&&Object.getPrototypeOf(N),I=j&&(l.get(j)||y.get(j)||null),D=!I&&null!=N&&(c.get(Object.keys(N).toString())||v.get(Object.keys(N).toString())||null);"function"==typeof n&&(A=!1,N=n.call(o,r,N));let $=I&&I.cb||D&&D.cb;if(null!=N&&"object"==typeof N&&"function"==typeof $)if(p.find(e=>e===N))S=_(N);else{if("object"==typeof N&&(S=_(N)))return S;p.push(N),a[M]=N,N=$.call(N,x),A=!1,p.pop(),I&&I.name&&"string"==typeof N&&"-"!==N[0]&&(N[0]<"0"||N[0]>"9")&&'"'!==N[0]&&"'"!==N[0]&&"`"!==N[0]&&"["!==N[0]&&"{"!==N[0]&&(N=" "+N),a.length=M}else if("object"==typeof N&&(S=_(N)))return S;switch(typeof N){case"bigint":return N+"n";case"string":{N=A?g(N):N;let t="";if(""===r&&(t=e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+w.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+(d?"\n":"")),I&&I.external)return t+I.name+N;if(D&&D.external)return t+D.name+N;return t+N}case"number":case"boolean":case"null":return String(N);case"object":if(S)return"ref"+S;if(!N)return"null";if(d+=f,C=null,E=[],n&&"object"==typeof n){for(O=n.length,C=k(N,n),s=0;s<O;s+=1)"string"==typeof n[s]&&(u=n[s],i[M]=u,void 0!==(S=t(u,N))&&(C?E.push(S):E.push(g(u)+(d?": ":":")+S)));i.splice(M,1)}else{C=k(N);let e=[];for(u in N)if((!m||Object.prototype.propertyIsEnumerable.call(N,u))&&Object.prototype.hasOwnProperty.call(N,u)){let t;for(t=0;t<e.length;t++)if(e[t]>u){e.splice(t,0,u);break}t==e.length&&e.push(u)}for(let r=0;r<e.length;r++)u=e[r],Object.prototype.hasOwnProperty.call(N,u)&&(i[M]=u,void 0!==(S=t(u,N))&&(C?E.push(S):E.push(g(u)+(d?": ":":")+S)));i.splice(M,1)}T=""===r?(e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")||w.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":""))+(d?"\n":""):"",I&&I.external&&(T+=g(I.name));let R=null;return C&&(R=g(C.name)),S=T+(0===E.length?"{}":d?(C?R:"")+"{\n"+d+E.join(",\n"+d)+"\n"+b+"}":(C?R:"")+"{"+E.join(",")+"}"),d=b,S}}(r,o);return s.cb=S,u.cb=O,C}("",{"":t});return w.length=0,C})(t,n,o),setQuote(e){t=e},registerToJSOX(e,t,r){return this.toJSOX(e,t,r)},toJSOX(e,t,r){if(t.prototype&&t.prototype!==Object.prototype){if(l.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");l.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}else{let n=Object.keys(t).toString();if(c.get(n))throw Error("Existing toJSOX has been registered for object type");c.set(n,{external:!0,name:e,cb:r})}},get ignoreNonEnumerable(){return m},set ignoreNonEnumerable(val){m=val}};return x;function _(e){if(null===e)return;let t=r.get(e);return t?"ref"+t:void r.set(e,n.stringify(i))}function k(t,r){let n,i,o=Object.getPrototypeOf(t);if(i=e.find(e=>{if(e.proto&&e.proto===o)return!0}))return i;if(e.length||w.length){if(r)n=(r=r.map(e=>"string"==typeof e?e:void 0)).toString();else{let e=Object.keys(t);for(let t=1;t<e.length;t++){let r,n;(r=e[t-1])>(n=e[t])&&(e[t-1]=n,e[t]=r,t?t-=2:t--)}n=e.toString()}(i=e.find(e=>{if(e.tag===n)return!0}))||(i=w.find(e=>{if(e.tag===n)return!0}))}return i}};let k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_",O={"~":-1,"=":-1,$:62,_:63,"+":62,"-":62,".":62,"/":63,",":63};for(let e=0;e<k.length;e++)O[k[e]]=e;function C(e){let t,r,n,i,o,a="",l=new Uint8Array(e),s=l.byteLength,u=s%3,c=s-u;for(let e=0;e<c;e+=3)t=(0xfc0000&(o=l[e]<<16|l[e+1]<<8|l[e+2]))>>18,r=(258048&o)>>12,n=(4032&o)>>6,i=63&o,a+=k[t]+k[r]+k[n]+k[i];return 1==u?(t=(252&(o=l[c]))>>2,r=(3&o)<<4,a+=k[t]+k[r]+"=="):2==u&&(t=(64512&(o=l[c]<<8|l[c+1]))>>10,r=(1008&o)>>4,n=(15&o)<<2,a+=k[t]+k[r]+k[n]+"="),a}function E(e){let t,r=new ArrayBuffer(e.length%4==1?((e.length+3)/4|0)*3-3:e.length%4==2?((e.length+3)/4|0)*3-2:e.length%4==3?((e.length+3)/4|0)*3-1:-1==O[e[e.length-3]]?((e.length+3)/4|0)*3-3:-1==O[e[e.length-2]]?((e.length+3)/4|0)*3-2:-1==O[e[e.length-1]]?((e.length+3)/4|0)*3-1:((e.length+3)/4|0)*3),n=new Uint8Array(r),i=e.length+3>>2;for(t=0;t<i;t++){let r=O[e[4*t]],i=4*t+1<e.length?O[e[4*t+1]]:-1,o=i>
51=0&&4*t+2<e.length?O[e[4*t+2]]:-1,a=o>=0&&4*t+3<e.length?O[e[4*t+3]]:-1;i>=0&&(n[3*t+0]=r<<2|i>>4),o>=0&&(n[3*t+1]=i<<4|o>>2&15),a>=0&&(n[3*t+2]=o<<6|63&a)}return r}Object.freeze(O),o.stringify=function(e,t,r){return o.stringifier().stringify(e,t,r)},[[0,256,[0xffd9ff,0xff6aff,130048,3670016,0,0xfffff8,0xffffff,8388607]]].map(e=>({firstChar:e[0],lastChar:e[1],bits:e[2]}))},61754:(e,t,r)=>{"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{HY:()=>u,Qd:()=>l,Tw:()=>d,Zz:()=>c,ve:()=>f,y$:()=>s});var i="function"==typeof Symbol&&Symbol.observable||"@@observable",o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function l(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,r){if("function"!=typeof e)throw Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(n(1));return r(s)(e,t)}let o=e,u=t,c=new Map,d=c,f=0,h=!1;function p(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function m(){if(h)throw Error(n(3));return u}function g(e){if("function"!=typeof e)throw Error(n(4));if(h)throw Error(n(5));let t=!0;p();let r=f++;return d.set(r,e),function(){if(t){if(h)throw Error(n(6));t=!1,p(),d.delete(r),c=null}}}function y(e){if(!l(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if("string"!=typeof e.type)throw Error(n(17));if(h)throw Error(n(9));try{h=!0,u=o(u,e)}finally{h=!1}return(c=d).forEach(e=>{e()}),e}return y({type:a.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(n(10));o=e,y({type:a.REPLACE})},[i]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(m())}return t(),{unsubscribe:g(t)}},[i](){return this}}}}}function u(e){let t,r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof e[n]&&(i[n]=e[n])}let o=Object.keys(i);
51try{Object.keys(i).forEach(e=>{let t=i[e];if(void 0===t(void 0,{type:a.INIT}))throw Error(n(12));if(void 0===t(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let a=!1,l={};for(let t=0;t<o.length;t++){let s=o[t],u=i[s],c=e[s],d=u(c,r);if(void 0===d)throw r&&r.type,Error(n(14));l[s]=d,a=a||d!==c}return(a=a||o.length!==Object.keys(e).length)?l:e}}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(...e){return t=>(r,i)=>{let o=t(r,i),a=()=>{throw Error(n(15))},l={getState:o.getState,dispatch:(e,...t)=>a(e,...t)};return a=c(...e.map(e=>e(l)))(o.dispatch),{...o,dispatch:a}}}function f(e){return l(e)&&"type"in e&&"string"==typeof e.type}},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},62082:(e,t,r)=>{"use strict";function n(e){return null==e?void 0:e.id}r.d(t,{x:()=>n})},62239:(e,t,r)=>{"use strict";r.d(t,{AX:()=>S,FJ:()=>h});var n=r(53310),i=r(43971),o=r(49967);let a=new Set(["http:","https:","mailto:","sms:","tel:"]);class l extends n.fGB{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},r){super(r);const{target:n=null,rel:i=null,title:o=null}=t;this.__url=e,this.__target=n,this.__rel=i,this.__title=o}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),(0,n.ZB7)(t,e.theme.link),t}updateLinkDOM(e,t,r){if((0,n.nYP)(t))for(let r of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let n=`__${r}`,i=this[n];e&&e[n]===i||(i?t[r]=i:t.removeAttribute(r))}}updateDOM(e,t,r){return this.updateLinkDOM(e,t,r),!1}static importDOM(){return{a:e=>({conversion:d,priority:1})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=x(e);try{let t=new URL(x(e));if(!a.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let r=f(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,n.I2P)(t))return!1;let i=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(i)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function s(e){let t=(0,n.Ave)(e,"next");return[t,t.getFlipped()]}function u(e,t){for(let r of t)if(r.origin.isAttached()){let t=(0,n.lSZ)(r);return void(0,n.wp6)(e,t)}}function c(e){let t=(0,n.vJq)(),r=null,o=null;for(let a of((0,n.I2P)(t)&&(r=s(t.anchor),o=s(t.focus)),(0,n.uwZ)(e,"next"))){let t=a.origin;if((0,n.ff4)(t)&&!t.isInline()){let r=t.getChildren();if(r.length>0){let i=(0,n.CHU)(e);i.append(...r),t.append(i)}(0,i.rd)(t,(0,n.NG9)(a),{$shouldSplit:()=>!1})}}if(e.isEmpty()){let t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}(0,n.I2P)(t)&&(u(t.anchor,r),u(t.focus,o),(0,n.CaD)(t))}function d(e){let t=null;if((0,n.nYP)(e)){let r=e.textContent;(null!==r&&""!==r||e.children.length>0)&&(t=f(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function f(e="",t){return(0,n.pTq)(new l(e,t))}function h(e){return e instanceof l}class p extends l{__isUnlinked;constructor(e="",t={},r){super(e,t,r),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new p(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return m().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let r=m(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}}function m(e="",t){return(0,n.pTq)(new p(e,t))}function g(e){return e instanceof p}let y=(0,n.guI)("TOGGLE_LINK_COMMAND");function v(e,t){if("element"===e.type){let r=e.getNode();return(0,n.ff4)(r)||function(...e){let t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let t of(r.append("code",252),e))r.append("v",t);throw t.search=r.toString(),Error(`Minified Lexical error #252; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(),r.getChildren()[e.offset+t]||null}return null}function b(e,t={}){let r;if(e&&"object"==typeof e){let{url:n,...i}=e;r=n,t={...i,...t}}else r=e;let{target:i,title:o}=t,a=void 0===t.rel?"noreferrer":t.rel,l=(0,n.vJq)();if(null===l||!(0,n.I2P)(l)&&!(0,n.RTZ)(l))return;if((0,n.RTZ)(l)){let e=l.getNodes();if(0===e.length)return;
51return void e.forEach(e=>{if(null===r){let t=(0,n.BtT)(e,e=>!g(e)&&h(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{let t=(0,n.BtT)(e,e=>!g(e)&&h(e));if(t)t.setURL(r),void 0!==i&&t.setTarget(i),void 0!==a&&t.setRel(a);else{let t=f(r,{rel:a,target:i});e.insertBefore(t),t.append(e)}}})}if(l.isCollapsed()&&null===r)for(let e of l.getNodes()){let t=(0,n.BtT)(e,e=>!g(e)&&h(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}let s=l.extract();if(null===r){let e=new Set;return void s.forEach(t=>{let r=(0,n.BtT)(t,e=>!g(e)&&h(e));if(null!==r){let t=r.getKey();if(e.has(t))return;!function(e,t){let r=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),i=e.getChildren(),o=i=>r.has(i.getKey())||(0,n.ff4)(i)&&t.some(t=>e.isParentOf(t)&&i.isParentOf(t)),a=i.filter(o);if(a.length===i.length)return i.forEach(t=>e.insertBefore(t)),e.remove();let l=i.findIndex(o),s=i.findLastIndex(o),u=s===i.length-1;if(0===l)a.forEach(t=>e.insertBefore(t));else if(u)for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);else{for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);let t=i.slice(s+1);if(t.length>0){let r=f(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});a[a.length-1].insertAfter(r),t.forEach(e=>r.append(e))}}}(r,s),e.add(t)}})}let u=new Set,c=e=>{u.has(e.getKey())||(u.add(e.getKey()),e.setURL(r),void 0!==i&&e.setTarget(i),void 0!==a&&e.setRel(a),void 0!==o&&e.setTitle(o))};if(1===s.length){let e=s[0],t=(0,n.BtT)(e,h);if(null!==t)return c(t)}!function(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return e();let r=(0,n.CaD)(t),i=r.isBackward(),o=v(r.anchor,i?-1:0),a=v(r.focus,i?0:-1);if(e(),o||a){let e=(0,n.vJq)();if((0,n.I2P)(e)){let t=e.clone();if(o){let e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+ +!!i,"element")}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!i,"element")}(0,n.n1P)((0,n.CaD)(t))}}}(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let l=(0,n.BtT)(t,h);if(l){c(l);continue}if((0,n.ff4)(t)){if(!t.isInline())continue;if(h(t)){if(!(g(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();h(s)&&s.is(e)?s.append(t):(e=f(r,{rel:a,target:i,title:o}),t.insertAfter(e),e.append(t))}})}let w=/^\+?[0-9\s()-]{5,}$/;function x(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:w.test(e)?`tel:${e}`:`https://${e}`}let _=(0,n.vE9)({build:(e,t,r)=>(0,o.v)(t),config:{attributes:void 0,validateUrl:void 0},mergeConfig(e,t){let r=(0,n.Tc1)(e,t);return e.attributes&&(r.attributes=(0,n.Tc1)(e.attributes,r.attributes)),r},name:"@lexical/link/Link",nodes:()=>[l],register:(e,t,r)=>{var a;return a=r.getOutput(),(0,n.Sdt)(e.registerNodeTransform(l,c),(0,o.QZ)(()=>e.registerCommand(y,e=>{let t=a.validateUrl.peek(),r=a.attributes.peek();if(null===e)return b(null),!0;if("string"==typeof e)return!(void 0!==t&&!t(e))&&(b(e,r),!0);{let{url:t,target:n,rel:i,title:o}=e;return b(t,{...r,rel:i,target:n,title:o}),!0}},n.AcJ)),(0,o.QZ)(()=>{let t=a.validateUrl.value;if(!t)return;let r=a.attributes.value;return e.registerCommand(n.waI,o=>{let a=(0,n.vJq)();if(!(0,n.I2P)(a)||a.isCollapsed()||!(0,i.xj)(o,ClipboardEvent)||null===o.clipboardData)return!1;let l=o.clipboardData.getData("text");return!!t(l)&&!a.getNodes().some(e=>(0,n.ff4)(e))&&(e.dispatchCommand(y,{...r,url:l}),o.preventDefault(),!0)},n.AcJ)}))}});function S(e,t,r={}){let i=r=>{let i=r.target;if(!(0,n.vAA)(i))return;let o=(0,n.scG)(i);if(null===o)return;let a=null,l=null;if(o.update(()=>{let e=(0,n.xL4)(i);if(null!==e){let r=(0,n.BtT)(e,n.ff4);if(!t.disabled.peek())if(h(r))a=r.sanitizeUrl(r.getURL()),l=r.getTarget();else{let e=function(e,t){let r=e;for(;null!=r;){if(t(r))return r;r=r.parentNode}return null}(i,n.nYP);null!==e&&(a=e.href,l=e.target)}}}),null===a||""===a)return;let s=e.getEditorState().read(n.vJq);if((0,n.I2P)(s)&&!s.isCollapsed())return void r.preventDefault();let u="auxclick"===r.type&&1===r.button;window.open(a,t.newTab.peek()||u||r.metaKey||r.ctrlKey||"_blank"===l?"_blank":"_self"),r.preventDefault()},o=e=>{1===e.button&&i(e)};return e.registerRootListener((e,t)=>
51{null!==t&&(t.removeEventListener("click",i),t.removeEventListener("mouseup",o)),null!==e&&(e.addEventListener("click",i,r),e.addEventListener("mouseup",o,r))})}function k(e,t){for(let r=0;r<t.length;r++){let n=t[r](e);if(n)return n}return null}(0,n.vE9)({build:(e,t,r)=>(0,o.v)(t),config:(0,n.lVE)({disabled:!1,newTab:!1}),dependencies:[_],name:"@lexical/link/ClickableLink",register:(e,t,r)=>S(e,r.getOutput())});let O=/[.,;\s]/;function C(e){return O.test(e)}function E(e){return C(e[e.length-1])}function T(e){let t=e.getPreviousSibling();return(0,n.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&E(t.getTextContent())}function M(e){let t=e.getNextSibling();return(0,n.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&C(t.getTextContent()[0])}function A(e,t,r){let i=e.getChildren(),o=i.length;for(let t=0;t<o;t++){let o=i[t];if(!(0,n.kFe)(o)||!o.isSimpleText())return N(e),void r(null,e.getURL())}let a=e.getTextContent(),l=k(a,t);if(null===l||l.text!==a||!T(e)||!M(e))return N(e),void r(null,e.getURL());let s=e.getURL();if(s!==l.url&&(e.setURL(l.url),r(l.url,s)),l.attributes){let t=e.getRel();t!==l.attributes.rel&&(e.setRel(l.attributes.rel||null),r(l.attributes.rel||null,t));let n=e.getTarget();n!==l.attributes.target&&(e.setTarget(l.attributes.target||null),r(l.attributes.target||null,n))}}function N(e){let t=e.getChildren();for(let r=t.length-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(e=>e.getLatest())}let P={changeHandlers:[],excludeParents:[],matchers:[]};(0,n.vE9)({config:P,dependencies:[_],mergeConfig(e,t){let r=(0,n.Tc1)(e,t);for(let n of["matchers","changeHandlers","excludeParents"]){let i=t[n];Array.isArray(i)&&(r[n]=[...e[n],...i])}return r},name:"@lexical/link/AutoLink",nodes:[p],register:function(e,t=P){let{matchers:r,changeHandlers:i,excludeParents:o}=t,a=(e,t)=>{for(let r of i)r(e,t)};return(0,n.Sdt)(e.registerNodeTransform(n.Ey8,e=>{let t=e.getParentOrThrow(),i=e.getPreviousSibling();g(t)&&!t.getIsUnlinked()?A(t,r,a):h(t)||o.some(e=>e(t))||(e.isSimpleText()&&(C(e.getTextContent()[0])||!g(i))&&function(e,t,r){for(let t of e){let e=t.getParent();if(g(e)&&!e.getIsUnlinked())return}let i=[...e],o=i.map(e=>e.getTextContent()).join(""),a,l=o,s=0;for(;(a=k(l,t))&&null!==a;){var u,c,d;let e=a.index,t=e+a.length;if(u=s+e,c=s+t,d=i,(u>0?C(o[u-1]):T(d[0]))&&(c<o.length?C(o[c]):M(d[d.length-1]))){let[o,,u,c]=function(e,t,r){let n=[],i=[],o=[],a=0,l=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=l;l+u<=t?(n.push(e),a+=u):c>=r?o.push(e):i.push(e),l+=u,s.shift()}return[a,n,i,o]}(i,s+e,s+t),d=!1;for(let e of u){let t=e.getParent();if(g(t)&&!t.getIsUnlinked()){d=!0;break}}if(d){s+=t,l=l.substring(t);continue}let f=function(e,t,r,i){let o=m(i.url,i.attributes);if(1===e.length){let a,l=e[0];0===t?[a,l]=l.splitText(r):[,a,l]=l.splitText(t,r);let s=(0,n.sTu)(i.text);return s.setFormat(a.getFormat()),s.setDetail(a.getDetail()),s.setStyle(a.getStyle()),o.append(s),a.replace(o),l}if(e.length>1){let i,a=e[0],l,s=a.getTextContent().length;0===t?l=a:[,l]=a.splitText(t);let u=[];for(let t=1;t<e.length;t++){let n=e[t],o=n.getTextContent().length,a=s;if(a<r)if(s+o<=r)u.push(n);else{let[e,t]=n.splitText(r-a);u.push(e),i=t}s+=o}let c=(0,n.vJq)(),d=c?c.getNodes().find(n.kFe):void 0,f=(0,n.sTu)(l.getTextContent());return f.setFormat(l.getFormat()),f.setDetail(l.getDetail()),f.setStyle(l.getStyle()),o.append(f,...u),d&&d===l&&((0,n.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,n.RTZ)(c)&&f.select(0,f.getTextContent().length)),l.replace(o),i}}(u,s+e-o,s+t-o,a);i=f?[f,...c]:c,r(a.url,null),s=0}else s+=t;l=l.substring(t)}}(function(e){let t=[e],r=e.getNextSibling();for(;null!==r&&(0,n.kFe)(r)&&r.isSimpleText()&&(t.push(r),!/[\s]/.test(r.getTextContent()));)r=r.getNextSibling();return t}(e),r,a),!function(e,t,r){let n=e.getParent(),i=e.getPreviousSibling(),o=e.getNextSibling(),a=e.getTextContent();if(!g(n)||n.getIsUnlinked()){if(g(i)&&!i.getIsUnlinked()&&i.is(e.getPreviousSibling())&&e.getParent()===i.getParent()){if(!C(a[0]))return N(i),r(null,i.getURL());if(i.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(a):/^\.[a-zA-Z0-9]{1,}/.test(a)){let n=i.getTextContent()+a,o=k(n,t);null!==o&&o.text===n&&(i.append(e),A(i,t,r),r(null,i.getURL()))}}!g(o)||o.getIsUnlinked()||E(a)||o.is(e.getNextSibling())&&e.getParent()===o.getParent()&&
51(N(o),r(null,o.getURL()))}}(e,r,a))}),e.registerCommand(y,e=>{let t=(0,n.vJq)();return null===e&&!!(0,n.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();g(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},n.AcJ))}})},62517:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}r.d(t,{A:()=>n}),Array.prototype.slice},62678:(e,t,r)=>{"use strict";r.d(t,{QO:()=>D,vR:()=>$,Or:()=>H,JU:()=>V,lb:()=>G});var n=r(82159),i=r(76865),o=r(8242);class a{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(null!=this.cursorPos&&t.doc!=e.state.doc)if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,o=this.editorView.dom,a=o.getBoundingClientRect(),l=a.width/o.offsetWidth,s=a.height/o.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),o=e?n.bottom:n.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let a=this.width/2*s;i={left:n.left,right:n.right,top:o-a,bottom:o+a}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let r=u.getBoundingClientRect(),n=r.width/u.offsetWidth,i=r.height/u.offsetHeight;e=r.left-u.scrollLeft*n,t=r.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/s+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,o.Um)(this.editorView.state.doc,a,this.editorView.dragging.slice);null!=e&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);null!=t&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var l=r(63197),s=r(12894),u=r(27050);class c extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return c.valid(r)?new c(r):i.LN.near(r)}content(){return u.Ji.empty}eq(e){return e instanceof c&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new c(e.resolve(t.pos))}getBookmark(){return new d(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||f(e.type))return!0;
51if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||f(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){i:for(;;){if(!r&&c.valid(e))return e;let n=e.pos,o=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){o=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let a=e.doc.resolve(n);if(c.valid(a))return a}for(;;){let a=t>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(n+o.nodeSize*t),r=!1;continue i}break}o=a,n+=t;let l=e.doc.resolve(n);if(c.valid(l))return l}return null}}}c.prototype.visible=!1,c.findFrom=c.findGapCursorFrom,i.LN.jsonID("gapcursor",c);class d{constructor(e){this.pos=e}map(e){return new d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return c.valid(t)?new c(t):i.LN.near(t)}}function f(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}let h=(0,s.K)({ArrowLeft:p("horiz",-1),ArrowRight:p("horiz",1),ArrowUp:p("vert",-1),ArrowDown:p("vert",1)});function p(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,o){let a=e.selection,l=t>0?a.$to:a.$from,s=a.empty;if(a instanceof i.U3){if(!o.endOfTextblock(r)||0==l.depth)return!1;s=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=c.findGapCursorFrom(l,t,s);return!!u&&(n&&n(e.tr.setSelection(new c(u))),!0)}}function m(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!c.valid(n))return!1;let o=e.posAtCoords({left:r.clientX,top:r.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new c(n))),!0)}function g(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof c))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let o=u.FK.empty;for(let e=n.length-1;e>=0;e--)o=u.FK.from(n[e].createAndFill(null,o));let a=e.state.tr.replace(r.pos,r.pos,new u.Ji(o,0,0));return a.setSelection(i.U3.near(a.doc.resolve(r.pos+1))),e.dispatch(a),!1}function y(e){if(!(e.selection instanceof c))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",l.zF.create(e.doc,[l.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var v=function(){};v.prototype.append=function(e){return e.length?(e=v.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},v.prototype.prepend=function(e){return e.length?v.from(e).append(this):this},v.prototype.appendInner=function(e){return new w(this,e)},v.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?v.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},v.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},v.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},v.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},v.from=function(e){return e instanceof v?e:e&&e.length?new b(e):v.empty};var b=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(v);v.empty=new b([]);var w=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>
51i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(v);class x{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(n=(r=this.remapping(a,this.items.length)).maps.length);let l=e.tr,s=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(a,t+1)).maps.length),n--,u.push(e);return}if(r){u.push(new _(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],s.push(new _(i,void 0,void 0,s.length+u.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,o=new x(this.items.slice(0,a).append(u.reverse().concat(s)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:l,selection:i}}addTransform(e,t,r,n){var i,o;let a,l=[],s=this.eventCount,u=this.items,c=!n&&u.length?u.get(u.length-1):null;for(let r=0;r<e.steps.length;r++){let i=e.steps[r].invert(e.docs[r]),o=new _(e.mapping.maps[r],i,t),a;(a=c&&c.merge(o))&&(o=a,r?l.pop():u=u.slice(0,u.length-1)),l.push(o),t&&(s++,t=void 0),n||(c=o)}let d=s-r.depth;return d>k&&(i=u,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return a=t,!1}),u=i.slice(a),s-=d),new x(u.append(l),s)}remapping(e,t){let r=new o.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new x(this.items.append(e.map(e=>new _(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;o=Math.min(o,n);let s=i.maps[n];if(t.step){let o=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(l+1,n));u&&a++,r.push(new _(s,o,u))}else r.push(new _(s))},n);let s=[];for(let e=t;e<o;e++)s.push(new _(i.maps[e]));let u=new x(this.items.slice(0,n).append(s).append(r),a);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)n.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(r)),a=e&&e.getMap();if(r--,a&&t.appendMap(a,r),e){let l=o.selection&&o.selection.map(t.slice(r));l&&i++;let s=new _(a.invert(),e,l),u,c=n.length-1;(u=n.length&&n[c].merge(s))?n[c]=u:n.push(s)}}else o.map&&r--},this.items.length,0),new x(v.from(n.reverse()),i)}}x.empty=new x(v.empty,0);class _{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new _(t.getMap().invert(),t,this.selection)}}}class S{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let k=20;function O(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function C(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),o=t.map(e[n+1],-1);i<=o&&r.push(i,o)}return r}let E=!1,T=null;function M(e){let t=e.plugins;if(T!=t){E=!1,T=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){E=!0;break}}return E}let A=new i.hs("history"),N=new i.hs("closeHistory");function P(e,t){return(r,n)=>{let i=A.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let o=function(e,t,r){let n=M(t),i=A.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,n);if(!o)return null;let a=o.selection.resolve(o.transform.doc),l=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,n),s=new S(r?l:o.remaining,r?o.remaining:l,null,0,-1);return o.transform.setSelection(a).setMeta(A,{redo:r,historyState:s})}(i,r,e);o&&n(t?o.scrollIntoView():o)}return!0}}let j=P(!1,!0),I=P(!0,!0);P(!1,!1),P(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,autoTrim:!0,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new i.k_({key:new i.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit,o=this.options.autoTrim;if(null==i||0===i||!1===o){e=!0;return}let a=this.storage.characters({node:n.doc});if(a>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let t=n.tr.deleteRange(0,a-i);return e=!0,t}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;
51if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos;return e.deleteRange(o-(i-r),o),!(this.storage.characters({node:e.doc})>r)}})]}});var D=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new i.k_({view:t=>new a(t,e)})}(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,o=[];if(!r||!n)return l.zF.create(e,[]);let a=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;a+=1}});let s=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((s+=1,"deepest"===this.options.mode&&a-s>0||"shallowest"===this.options.mode&&s>1)?"deepest"===this.options.mode:void o.push(l.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),l.zF.create(e,o)}}})]}});var $=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new i.k_({props:{decorations:y,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&c.valid(r)?new c(r):null,handleClick:m,handleKeyDown:h,handleDOMEvents:{beforeinput
51:g}}})],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),R="placeholder",L=new i.hs("tiptap__placeholder");function z(e){let{editor:t,placeholder:r,dataAttribute:n,pos:i,node:o,isEmptyDoc:a,hasAnchor:s,classes:{emptyNode:u,emptyEditor:c}}=e,d=[u];return a&&d.push(c),l.NZ.node(i,i+o.nodeSize,{class:d.join(" "),[n]:"function"==typeof r?r({editor:t,node:o,pos:i,hasAnchor:s}):r})}function F(e,t){return"function"==typeof e?e(t):e}function B({editor:e,options:t,dataAttribute:r,doc:i,selection:o,from:a,to:l}){let{anchor:s}=o,u=[],c=e.isEmpty;return i.nodesBetween(a,l,(i,o)=>{let a=s>=o&&s<=o+i.nodeSize,l=!i.isLeaf&&(0,n.Op)(i);return i.type.isTextblock&&(a||!t.showOnlyCurrent)&&l&&u.push(z({editor:e,isEmptyDoc:c,dataAttribute:r,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:F(t.emptyNodeClass,{editor:e,node:i,pos:o,hasAnchor:a})},node:i,pos:o})),t.includeChildren}),u}function K({editor:e,options:t,dataAttribute:r,doc:i,selection:o}){if(!(e.isEditable||!t.showOnlyWhenEditable))return null;let{anchor:a}=o,s=[],u=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let o=i.resolve(a),l=o.depth>0?o.node(1):o.nodeAfter,c=o.depth>0?o.before(1):a;if(l&&l.type.isTextblock&&(0,n.Op)(l)){let n=a>=c&&a<=c+l.nodeSize;s.push(z({editor:e,isEmptyDoc:u,dataAttribute:r,hasAnchor:n,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:F(t.emptyNodeClass,{editor:e,node:l,pos:c,hasAnchor:n})},node:l,pos:c}))}}else s.push(...B({editor:e,options:t,dataAttribute:r,doc:i,selection:o,from:0,to:i.content.size}));return l.zF.create(i,s)}function U(e,t){var r;let n=e.resolve(t);if(0===n.depth){let e=null!=(r=n.nodeAfter)?r:n.nodeBefore;if(!e)return{from:t,to:t};let i=n.nodeAfter?t:t-e.nodeSize;return{from:i,to:i+e.nodeSize}}let i=n.before(1);return{from:i,to:i+n.node(1).nodeSize}}function W(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}var H=n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:R,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[function({editor:e,options:t}){let r=t.dataAttribute?`data-${t.dataAttribute.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}`:`data-${R}`,o=t.showOnlyCurrent&&!t.includeChildren;return new i.k_({key:L,...o?{}:{state:function({editor:e,options:t,dataAttribute:r}){return{init(n,i){let o=K({editor:e,options:t,dataAttribute:r,doc:i.doc,selection:i.selection});return null!=o?o:l.zF.empty},apply:(i,o,a,l)=>i.docChanged||i.selectionSet?function({decorations:e,ranges:t,editor:r,options:n,dataAttribute:i,doc:o,selection:a}){let l=e;for(let e of t){let{from:t,to:s}=function(e,t,r){let n=Math.max(0,Math.min(e,r.content.size)),i=Math.max(n,Math.min(t,r.content.size));return{from:n,to:i}}(e.from,e.to,o),u=l.find(t,s).filter(e=>e.from>=t&&e.to<=s);u.length&&(l=l.remove(u));let c=B({editor:r,options:n,dataAttribute:i,doc:o,selection:a,from:t,to:s});c.length&&(l=l.add(o,c))}return l}({decorations:o.map(i.mapping,i.doc),ranges:function(e,t,r){let i=[];if(e.docChanged)for(let t of(0,n.FF)(e))i.push(...function(e,t){var r,n;let i,o=(r=t.from,n=t.to,i=[],e.forEach((e,t)=>{let o=t+e.nodeSize,a=o+1;t+1<n&&a>r&&i.push({from:t,to:o})}),i);return o.push(W(e,U(e,t.from))),t.to>t.from?o.push(W(e,U(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&o.push(W(e,U(e,Math.min(t.from+1,e.content.size)))),o}(r.doc,t.newRange));return e.selectionSet&&(i.push(W(r.doc,U(r.doc,e.mapping.map(t.selection.anchor)))),i.push(W(r.doc,U(r.doc,r.selection.anchor)))),function(e){if(0===e.length)return[];let t=[...e].sort((e,t)=>e.from-t.from),r=[{...t[0]}];for(let e=1;e<t.length;e+=1){let n=r[r.length-1],i=t[e];i.from<=n.to?n.to=Math.max(n.to,i.to):r.push({...i})}return r}(i)}(i,a,l),editor:e,options:t,dataAttribute:r,doc:l.doc,selection:l.selection}):o}}({editor:e,options:t,dataAttribute:r})},props:{decorations:o?({doc:n,selection:i})=>K({editor:e,options:t,dataAttribute:r,doc:n,selection:i}):r=>{var n;return t.showOnlyWhenEditable&&!e.isEditable?l.zF.empty:null!=(n=L.getState(r))?n:l.zF.empty}}})}({editor:this.editor,options:this.options})]}});function q(e,t){return!e.selection.empty&&!(0,n.BQ)(e.selection)&&t.isEditable}function J({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new i.k_({key:new i.hs("selection"),props:{decorations:r=>!q(r,e)||e.isFocused||e.view.dragging?null:l.zF.create(r.doc,[l.NZ.inline(r.selection.from,r.selection.to,{class:t.className})]),handleDOMEvents:{blur(t){var r;return!!q(t.state,e)&&(null==(r=window.getSelection())||r.removeAllRanges(),!1)},focus:t=>!!q(t.state,e)&&(requestAnimationFrame(()=>
51{!e.isDestroyed&&t.hasFocus()&&t.focus()}),!1)}}})]}});var V=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new i.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new i.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:o,tr:a,schema:l}=i,s=t.getState(i),u=o.content.size,c=l.nodes[r];if(!e.some(e=>e.getMeta("skipTrailingNode"))&&s)return a.insert(u,c.create())},state:{init:(e,t)=>!J({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!J({node:e.doc.lastChild,types:n})}})]}}),G=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>j(e,t),redo:()=>({state:e,dispatch:t})=>I(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new i.k_({key:A,state:{init:()=>new S(x.empty,x.empty,null,0,-1),apply:(t,r,n)=>(function(e,t,r,n){let i=r.getMeta(A),o;if(i)return i.historyState;r.getMeta(N)&&(e=new S(e.done,e.undone,null,0,-1));let a=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(a&&a.getMeta(A))if(a.getMeta(A).redo)return new S(e.done.addTransform(r,void 0,n,M(t)),e.undone,O(r.mapping.maps),e.prevTime,e.prevComposition);else return new S(e.done,e.undone.addTransform(r,void 0,n,M(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))if(o=r.getMeta("rebased"))return new S(e.done.rebased(r,o),e.undone.rebased(r,o),C(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new S(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),C(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}(r,e.prevRanges)),l=a?C(e.prevRanges,r.mapping):O(r.mapping.maps);return new S(e.done.addTransform(r,o?t.selection.getBookmark():void 0,n,M(t)),x.empty,l,r.time,null==i?e.prevComposition:i)}})(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?j:"historyRedo"==r?I:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}})},62791:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},62817:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]])},63020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732),o=r(45673);t.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:r,$data:a,schemaCode:l,schema:s}=e;a||s&&"object"==typeof s?e.fail$data((0,n._)`!${(0,i.useFunc)(t,o.default)}(${r}, ${l})`):e.fail((0,n._)`${s} !== ${r}`)}}},63337:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=({sizes:e,targetSizeMax:t=180,targetSizeMin:r=40,thumbnailURL:n,url:i,width:o})=>n||e&&Object.values(e).reduce((e,n)=>!n.width||n.width<r?e:n.width>=r&&n.width<=t?!e.width||n.width<e.width||e.width<r||e.width>t?n:e:!e.width||!e.original&&e.width<r&&n.width>e.width||e.width>t&&n.width<e.width?n:e,{original:!0,url:i,width:o}).url||i},64105:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var n=r(12115),i=(0,n.createContext)(null),o=()=>null!=(0,n.useContext)(i)},64246:(e,t,r)=>{"use strict";r.d(t,{D:()=>o,d:()=>i});var n=r(53310);class i extends n.Kp7{__format;constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}
51isInline(){return!1}}function o(e){return e instanceof i}},64289:(e,t,r)=>{"use strict";r.d(t,{aX:()=>K,dS:()=>L,BZ:()=>z,pg:()=>R,yn:()=>B,r1:()=>P,dp:()=>D,u9:()=>F,fW:()=>T});var n=r(2842),i=r(83643),o=r.n(i),a=r(10365),l=r(16787),s=r(57346),u=r(541),c=r(44531),d=r(90744),f=r(65372),h=r(2242),p=r(30451),m=r(36544),g=r(90738),y=r(12979),v=r(13530),b=r(3608),w=r(5768),x=r(5364),_=r(51511),S=r(21739),k=r(92191);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=(e,t,r,n,i)=>{var o=null!=(d=null==t?void 0:t.length)?d:0;if(o<=1||null==e)return 0;if("angleAxis"===n&&null!=i&&1e-6>=Math.abs(Math.abs(i[1]-i[0])-360))for(var a=0;a<o;a++){var l=a>0?null==(f=r[a-1])?void 0:f.coordinate:null==(h=r[o-1])?void 0:h.coordinate,s=null==(p=r[a])?void 0:p.coordinate,u=a>=o-1?null==(m=r[0])?void 0:m.coordinate:null==(g=r[a+1])?void 0:g.coordinate,c=void 0;if(null!=l&&null!=s&&null!=u)if((0,k.sA)(s-l)!==(0,k.sA)(u-s)){var d,f,h,p,m,g,y,v=[];if((0,k.sA)(u-s)===(0,k.sA)(i[1]-i[0])){c=u;var b=s+i[1]-i[0];v[0]=Math.min(b,(b+l)/2),v[1]=Math.max(b,(b+l)/2)}else{c=l;var w=u+i[1]-i[0];v[0]=Math.min(s,(w+s)/2),v[1]=Math.max(s,(w+s)/2)}var x=[Math.min(s,(c+s)/2),Math.max(s,(c+s)/2)];if(e>x[0]&&e<=x[1]||e>=v[0]&&e<=v[1])return null==(y=r[a])?void 0:y.index}else{var _,S=Math.min(l,u),O=Math.max(l,u);if(e>(S+s)/2&&e<=(O+s)/2)return null==(_=r[a])?void 0:_.index}}else if(t)for(var C=0;C<o;C++){var E=t[C];if(null!=E){var T=t[C+1],M=t[C-1];if(0===C&&null!=T&&e<=(E.coordinate+T.coordinate)/2||C===o-1&&null!=M&&e>(E.coordinate+M.coordinate)/2||C>0&&C<o-1&&null!=M&&null!=T&&e>(E.coordinate+M.coordinate)/2&&e<=(E.coordinate+T.coordinate)/2)return E.index}}return -1},T=()=>(0,a.G)(d.iO),M=(e,t)=>t,A=(e,t,r)=>r,N=(e,t,r,n)=>n,P=(0,n.Mz)(u.R4,e=>o()(e,e=>e.coordinate)),j=(0,n.Mz)([x.J,M,A,N],g.i),I=(0,n.Mz)([j,u.n4,c.K6,u.FO],y.P),D=(e,t,r)=>{if(null!=t){var n=(0,x.J)(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},$=(0,n.Mz)([x.J,M,A,N],b.q),R=(0,n.Mz)([p.Lp,p.A$,f.fz,h.HZ,u.R4,N,$],v.o),L=(0,n.Mz)([j,R],(e,t)=>{var r;return null!=(r=e.coordinate)?r:t}),z=(0,n.Mz)([u.R4,I],m.E),F=(0,n.Mz)([$,I,s.LF,c.K6,z,w.x,M],_.N),B=(0,n.Mz)([j,I],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),K=(e,t,r,n,i,o,a,s)=>{if(e&&t&&n&&i&&o){if("horizontal"===t||"vertical"===t){if(!e||!n||!i||!o)return;if(function(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,s)){var u=E((0,l.sr)(e,t),a,o,n,i),c=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("horizontal"===e)return{x:i.coordinate,y:n.relativeY};if("vertical"===e)return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}})(t,o,u,e);return{activeIndex:String(u),activeCoordinate:c}}return}if(e&&n&&i&&o&&r){var d=(0,S.yy)(e,r);if(d){var f=E((0,l.eB)(d,t),a,o,n,i),h=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("centric"===e){var o=i.coordinate,{radius:a}=n;return C(C(C({},n),(0,S.IZ)(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var l=i.coordinate,{angle:s}=n;return C(C(C({},n),(0,S.IZ)(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,o,f,d);return{activeIndex:String(f),activeCoordinate:h}}return}}}},64411:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var l=new i(n,o||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i<o;i++)a[i]=n[i].fn;return a},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,o,a){var l=r?r+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;
51if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,s=Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!s)for(f=1,s=Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||a(this,o);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l},64511:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("contact-round",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M17.915 22a6 6 0 0 0-12 0",key:"suqz9p"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]])},64557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(89034),i=r(83732),o=r(4378);t.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,o.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,o._)`{pattern: ${e}}`},code(e){let{gen:t,data:r,$data:a,schema:l,schemaCode:s,it:u}=e,c=u.opts.unicodeRegExp?"u":"";if(a){let{regExp:n}=u.opts.code,a="new RegExp"===n.code?(0,o._)`new RegExp`:(0,i.useFunc)(t,n),l=t.let("valid");t.try(()=>t.assign(l,(0,o._)`${a}(${s}, ${c}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,o._)`!${l}`)}else{let t=(0,n.usePattern)(e,l);e.fail$data((0,o._)`!${t}.test(${r})`)}}}},65372:(e,t,r)=>{"use strict";r.d(t,{A3:()=>k,Kp:()=>v,RT:()=>_,SG:()=>S,W7:()=>m,WX:()=>w,fz:()=>b,kz:()=>x,qC:()=>f,rY:()=>y,sk:()=>h,yi:()=>g});var n=r(12115),i=r(10365),o=r(22377),a=r(2242),l=r(30451),s=r(64105),u=r(41106),c=r(1728),d=r(99498);function f(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var h=()=>{var e,t=(0,s.r)(),r=(0,i.G)(a.Ds),n=(0,i.G)(u.U),o=null==(e=(0,i.G)(u.C))?void 0:e.padding;return t&&n&&o?{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}:r},p={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},m=()=>{var e;return null!=(e=(0,i.G)(a.HZ))?e:p},g=()=>(0,i.G)(l.Lp),y=()=>(0,i.G)(l.A$),v=()=>(0,i.G)(e=>e.layout.margin),b=e=>e.layout.layoutType,w=()=>(0,i.G)(b),x=()=>{var e=w();if("horizontal"===e||"vertical"===e)return e},_=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},S=()=>void 0!==w(),k=e=>{var t=(0,i.j)(),r=(0,s.r)(),{width:a,height:l}=e,u=(0,c.w)(),f=a,h=l;return u&&(f=u.width>0?u.width:a,h=u.height>0?u.height:l),(0,n.useEffect)(()=>{!r&&(0,d.F)(f)&&(0,d.F)(h)&&t((0,o.gX)({width:f,height:h}))},[t,r,f,h]),null}},65538:(e,t,r)=>{"use strict";var n=r(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return l(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},65583:(e,t,r)=>{"use strict";r.d(t,{e:()=>m,k:()=>g});
51var n=r(11785),i=r(74624),o=r(67489),a=r(78636),l=r(21433),s=r(71615),u=r(2842),c=r(5364),d=(0,u.Mz)([c.J],e=>e.tooltipItemPayloads),f=(0,u.Mz)([d,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(null!=t){var n=e.find(e=>e.settings.graphicalItemId===r);if(null!=n){var{getPosition:i}=n;if(null!=i)return i(t)}}}),h=r(541),p=r(82906),m=(0,n.VP)("touchMove"),g=(0,n.Nc)(),y=null,v=null,b=null,w=null;g.startListening({actionCreator:m,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){w=(0,p.r)(r);var{throttleDelay:n,throttledEvents:u}=t.getState().eventSettings,c="all"===u||u.includes("touchmove");null!==y&&(cancelAnimationFrame(y),y=null),null===v||"number"==typeof n&&c||(clearTimeout(v),v=null),b=Array.from(r.touches).map(e=>(0,a.X)({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var d=()=>{if(null!=w){var e=t.getState(),r=(0,l.au)(e,e.tooltip.settings.shared);if("axis"===r){var n,a=null==(n=b)?void 0:n[0];if(null==a){y=null,v=null;return}var u=(0,o.g)(e,a);(null==u?void 0:u.activeIndex)!=null&&t.dispatch((0,i.Nt)({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate}))}else if("item"===r){var c,d=w.touches[0];if(null==document.elementFromPoint||null==d)return;var p=document.elementFromPoint(d.clientX,d.clientY);if(!p||!p.getAttribute)return;var m=p.getAttribute(s.F0),g=null!=(c=p.getAttribute(s.yU))?c:void 0,x=(0,h.AA)(e).find(e=>e.id===g);if(null==m||null==x||null==g)return;var{dataKey:_}=x,S=f(e,m,g);t.dispatch((0,i.RD)({activeDataKey:_,activeIndex:m,activeCoordinate:S,activeGraphicalItemId:g}))}y=null,v=null}};if(!c)return void d();"raf"===n?y=requestAnimationFrame(d):"number"==typeof n&&null===v&&(d(),w=null,v=setTimeout(()=>{w?d():(v=null,y=null)},n))}}})},65671:(e,t,r)=>{"use strict";r.d(t,{m:()=>ed});var n=r(12115),i=r(47650),o=r(83643),a=r.n(o),l=r(29722),s=r(92191);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e){return Array.isArray(e)&&(0,s.vh)(e[0])&&(0,s.vh)(e[1])?e.join(" ~ "):e}var h={margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},p={display:"block",paddingTop:4,paddingBottom:4,color:"#000"},m={},g=e=>{var{separator:t=" : ",contentStyle:r,itemStyle:i,labelStyle:o=m,payload:c,formatter:g,itemSorter:y,wrapperClassName:v,labelClassName:b,label:w,labelFormatter:x,accessibilityLayer:_=!1}=e,S=d(d({},h),r),k=d({margin:0},o),O=!(0,s.uy)(w),C=O?w:"",E=(0,l.$)("recharts-default-tooltip",v),T=(0,l.$)("recharts-tooltip-label",b);return O&&x&&null!=c&&(C=x(w,c)),n.createElement("div",u({className:E,style:S},_?{role:"status","aria-live":"assertive"}:{}),n.createElement("p",{className:T,style:k},n.isValidElement(C)?C:"".concat(C)),(()=>{if(c&&c.length){var e=(null==y?c:a()(c,y)).map((e,r)=>{if(!e||"none"===e.type)return null;var o=e.formatter||g||f,{value:a,name:l}=e,u=a,h=l;if(o){var m=o(a,l,e,r,c);if(Array.isArray(m))[u,h]=m;else{if(null==m)return null;u=m}}var y=d(d({},p),{},{color:e.color||p.color},i);return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:y},(0,s.vh)(h)?n.createElement("span",{className:"recharts-tooltip-item-name"},h):null,(0,s.vh)(h)?n.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,n.createElement("span",{className:"recharts-tooltip-item-value"},u),n.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},y="recharts-tooltip-wrapper",v={visibility:"hidden"};function b(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:o,reverseDirection:a,tooltipDimension:l,viewBox:u,viewBoxDimension:c}=e;
51if(o&&(0,s.Et)(o[n]))return o[n];var d=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return a[n]?d:f;var h=u[n];return null==h?0:a[n]?d<h?Math.max(f,h):Math.max(d,h):null==c?0:f+l>h+c?Math.max(d,h):Math.max(f,h)}var w=r(40060);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S=n.memo(function(e){var t,r,i,o,a,u,c=(0,w.j)(),[d,f]=n.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));n.useEffect(()=>{var t=t=>
51{if("Escape"===t.key){var r,n,i,o;f({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=e.coordinate)?void 0:n.x)?r:0,y:null!=(i=null==(o=e.coordinate)?void 0:o.y)?i:0}})}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null==(t=e.coordinate)?void 0:t.x,null==(r=e.coordinate)?void 0:r.y]),d.dismissed&&((null!=(i=null==(o=e.coordinate)?void 0:o.x)?i:0)!==d.dismissedAtCoordinate.x||(null!=(a=null==(u=e.coordinate)?void 0:u.y)?a:0)!==d.dismissedAtCoordinate.y)&&f(_(_({},d),{},{dismissed:!1}));var{cssClasses:h,cssProperties:p}=function(e){var t,r,n,{allowEscapeViewBox:i,coordinate:o,offsetTop:a,offsetLeft:u,position:c,reverseDirection:d,tooltipBox:f,useTranslate3d:h,viewBox:p}=e;return{cssProperties:t=f.height>0&&f.width>0&&o?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=b({allowEscapeViewBox:i,coordinate:o,key:"x",offset:u,position:c,reverseDirection:d,tooltipDimension:f.width,viewBox:p,viewBoxDimension:p.width}),translateY:n=b({allowEscapeViewBox:i,coordinate:o,key:"y",offset:a,position:c,reverseDirection:d,tooltipDimension:f.height,viewBox:p,viewBoxDimension:p.height}),useTranslate3d:h}):v,cssClasses:function(e){var{coordinate:t,translateX:r,translateY:n}=e;return(0,l.$)(y,{["".concat(y,"-right")]:(0,s.Et)(r)&&t&&(0,s.Et)(t.x)&&r>=t.x,["".concat(y,"-left")]:(0,s.Et)(r)&&t&&(0,s.Et)(t.x)&&r<t.x,["".concat(y,"-bottom")]:(0,s.Et)(n)&&t&&(0,s.Et)(t.y)&&n>=t.y,["".concat(y,"-top")]:(0,s.Et)(n)&&t&&(0,s.Et)(t.y)&&n<t.y})}({translateX:r,translateY:n,coordinate:o})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),m=e.hasPortalFromProps?{}:_(_({transition:function(e){if((!e.prefersReducedMotion||"auto"!==e.isAnimationActive)&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}({prefersReducedMotion:c,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},p),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),g=_(_({},m),{},{visibility:!d.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return n.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:h,style:g,ref:e.innerRef},e.children)}),k=r(1760),O=r(65372),C=r(12614),E=r(2644),T=r(18387),M=r(37214),A=r(55359),N=["x","y","top","left","width","height","className"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var I=e=>{var{x:t=0,y:r=0,top:i=0,left:o=0,width:a=0,height:u=0,className:c}=e,d=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:r,top:i,left:o,width:a,height:u},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,N));return(0,s.Et)(t)&&(0,s.Et)(r)&&(0,s.Et)(a)&&(0,s.Et)(u)&&(0,s.Et)(i)&&(0,s.Et)(o)?n.createElement("path",P({},(0,A.a)(d),{className:(0,l.$)("recharts-cross",c),d:"M".concat(t,",").concat(i,"v").concat(u,"M").concat(o,",").concat(r,"h").concat(a)}
51)):null},D=r(49804),$=r(21739);function R(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:o}=e;return{points:[(0,$.IZ)(t,r,n,i),(0,$.IZ)(t,r,n,o)],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}var L=r(25281),z=r(10365),F=r(16787),B=r(44531),K=r(541);function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var H=r(64289),q=r(23651),J=r(10483),V=r(51531);function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function X(e){var{cursor:t,cursorComp:r,cursorProps:i}=e;return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,i):(0,n.createElement)(r,i)}function Q(e){var t,r,i,o,a,{coordinate:s,payload:u,index:c,offset:d,tooltipAxisBandSize:f,layout:h,cursor:p,tooltipEventType:m,chartName:g}=e;if(!p||!s||"ScatterChart"!==g&&"axis"!==m)return null;if("ScatterChart"===g)i=s,o=I,a=V.I.cursorLine;else if("BarChart"===g)t=f/2,i={stroke:"none",fill:"#ccc",x:"horizontal"===h?s.x-t:d.left+.5,y:"horizontal"===h?d.top+.5:s.y-t,width:"horizontal"===h?f:d.width-1,height:"horizontal"===h?d.height-1:f},o=D.M,a=V.I.cursorRectangle;else if("radial"===h&&(0,T.TT)(s)){var{cx:y,cy:v,radius:b,startAngle:w,endAngle:x}=R(s);i={cx:y,cy:v,startAngle:w,endAngle:x,innerRadius:b,outerRadius:b},o=L.h,a=V.I.cursorLine}else i={points:function(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if((0,T.TT)(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:o,outerRadius:a,angle:l}=t,s=(0,$.IZ)(n,i,o,l),u=(0,$.IZ)(n,i,a,l);return[{x:s.x,y:s.y},{x:u.x,y:u.y}]}return R(t)}}(h,s,d)},o=M.Ip,a=V.I.cursorLine;var _="object"==typeof p&&"className"in p?p.className:void 0,S=Z(Z(Z(Z({stroke:"#ccc",pointerEvents:"none"},d),i),(0,q.ic)(p)),{},{payload:u,payloadIndex:c,className:(0,l.$)("recharts-tooltip-cursor",_)});return n.createElement(J.g,{zIndex:null!=(r=e.zIndex)?r:a},n.createElement(X,{cursor:p,cursorComp:o,cursorProps:S}))}function ee(e){var t,r,i,o=(t=(0,z.G)(B.Dn),r=(0,z.G)(K.R4),i=(0,z.G)(K.fl),t&&i?(0,F.Hj)(W(W({},t),{},{scale:i}),r):(0,F.Hj)(void 0,r)),a=(0,O.W7)(),l=(0,O.WX)(),s=(0,H.fW)();return null==o||null==a||null==l||null==s?null:n.createElement(Q,G({},e,{offset:a,layout:l,tooltipAxisBandSize:o,chartName:s}))}var et=r(35885),er=r(74624),en=r(4284),ei=r(21433),eo=r(43527);function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
51t%2?ea(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function es(e){return e.dataKey}var eu=[],ec={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function ed(e){var t,r,o=(0,eo.e)(e,ec),{active:a,allowEscapeViewBox:l,animationDuration:s,animationEasing:u,content:c,filterNull:d,isAnimationActive:f,offset:h,payloadUniqBy:p,position:m,reverseDirection:y,useTranslate3d:v,wrapperStyle:b,cursor:w,shared:x,trigger:_,defaultIndex:T,portal:M,axisId:A}=o,N=(0,z.j)(),P="number"==typeof T?String(T):T;(0,n.useEffect)(()=>{N((0,er.UF)({shared:x,trigger:_,axisId:A,active:a,defaultIndex:P}))},[N,x,_,A,a,P]);var j=(0,O.sk)(),I=(0,C.$)(),D=(0,ei.Td)(x),{activeIndex:$,isActive:R}=null!=(t=(0,z.G)(e=>(0,H.yn)(e,D,_,P)))?t:{},L=(0,z.G)(e=>(0,H.u9)(e,D,_,P)),F=(0,z.G)(e=>(0,H.BZ)(e,D,_,P)),B=(0,z.G)(e=>(0,H.dS)(e,D,_,P)),K=(0,et.X)(),U=null!=(r=null!=a?a:R)&&r,[W,q]=(0,E.V)([L,U]),J="axis"===D?F:void 0;(0,en.m7)(D,_,B,J,$,U);var V=null!=M?M:K;if(null==V||null==j||null==D)return null;var G=null!=L?L:eu;U||(G=eu),d&&G.length&&(G=(0,k.s)(G.filter(e=>null!=e.value&&(!0!==e.hide||o.includeHidden)),p,es));var Y=G.length>0,Z=el(el({},o),{},{payload:G,label:J,active:U,activeIndex:$,coordinate:B,accessibilityLayer:I}),X=n.createElement(S,{allowEscapeViewBox:l,animationDuration:s,animationEasing:u,isAnimationActive:f,active:U,coordinate:B,hasPayload:Y,offset:h,position:m,reverseDirection:y,useTranslate3d:v,viewBox:j,wrapperStyle:b,lastBoundingBox:W,innerRef:q,hasPortalFromProps:!!M},n.isValidElement(c)?n.cloneElement(c,Z):"function"==typeof c?n.createElement(c,Z):n.createElement(g,Z));return n.createElement(n.Fragment,null,(0,i.createPortal)(X,V),U&&n.createElement(ee,{cursor:w,tooltipEventType:D,coordinate:B,payload:G,index:$}))}},66088:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66350:()=>{},67051:(e,t,r)=>{"use strict";r.d(t,{mZ:()=>l,vE:()=>a});var n=r(11785),i={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},o=(0,n.Z0)({name:"rootProps",initialState:i,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!=(r=t.payload.barGap)?r:i.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),a=o.reducer,{updateOptions:l}=o.actions},67121:(e,t,r)=>{"use strict";function n(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{k:()=>n})},67389:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});var n=e=>null;n.displayName="Cell"},67463:(e,t,r)=>{"use strict";let{normalizeIPv6:n,removeDotSegments:i,recomposeAuthority:o,normalizePercentEncoding:a,normalizePathEncoding:l,escapePreservingEscapes:s,reescapeHostDelimiters:u,isIPv4:c,nonSimpleDomain:d}=r(99274),{SCHEMES:f,getSchemeHandler:h}=r(40051);function p(e,t,r,n){let o={};return n||(e=w(m(e,r),r),t=w(m(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=i(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=i(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function m(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),l=[],u=h(n.scheme||r.scheme);u&&u.serialize&&u.serialize(r,n),void 0!==r.path&&(n.skipEscape?r.path=a(r.path):(r.path=s(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==n.reference&&r.scheme&&l.push(r.scheme,":");let c=o(r);if(void 0!==c&&("suffix"!==n.reference&&l.push("//"),l.push(c),r.path&&"/"!==r.path[0]&&l.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||u&&u.absolutePath||(e=i(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),l.push(e)}return void 0!==r.query&&l.push("?",r.query),void 0!==r.fragment&&l.push("#",r.fragment),l.join("")}let g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,y=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,v=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function b(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,a=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);let s=e.match(y);null!==s&&-1!==s[1].indexOf("\\")&&(i.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(v);if(null!==f){let e=f[1],t=e.replace(/[\t\n\r]/g,"");t.length>=2&&("//"!==t.slice(0,2)?(i.error=i.error||"URI authority must not contain a literal backslash.",o=!0):e.length!==t.length&&(i.error=i.error||"URI authority introducer must not contain whitespace.",o=!0))}let p=e.match(g);if(p){i.scheme=p[1],i.userinfo=p[3],i.host=p[4],i.port=parseInt(p[5],10),i.path=p[6]||"",i.query=p[7],i.fragment=p[8],isNaN(i.port)&&(i.port=p[5]);let t=void 0!==p[2]&&i.path&&"/"!==i.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof i.port&&(i.port<0||i.port>65535)?"URI port is malformed.":void 0;if(void 0!==t&&(i.error=i.error||t,o=!0),i.host)if(!1===c(i.host)){let e=n(i.host);i.host=e.host.toLowerCase(),a=e.isIPV6}else a=!0;void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let s=h(r.scheme||i.scheme);if(!r.unicodeSupport&&(!s||!s.unicodeSupport)&&i.host&&(r.domainHost||s&&s.domainHost)&&!1===a&&d(i.host))try{i.host=new URL("http://"+i.host).hostname}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}
51if((!s||s&&!s.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=u(unescape(i.host),a))),i.path&&(i.path=l(i.path)),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}s&&s.parse&&s.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:o}}function w(e,t){return b(e,t).parsed}function x(e,t){let{parsed:r,malformedAuthorityOrPort:n}=b(e,t);return{normalized:n?e:m(r,t),malformedAuthorityOrPort:n}}function _(e,t){if("string"==typeof e){let{normalized:r,malformedAuthorityOrPort:n}=x(e,t);return n?void 0:r}if("object"==typeof e)return m(e,t)}let S={SCHEMES:f,normalize:function(e,t){return"string"==typeof e?e=x(e,t).normalized:"object"==typeof e&&(e=w(m(e,t),t)),e},resolve:function(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:i,malformedAuthorityOrPort:o}=b(e,n),{parsed:a,malformedAuthorityOrPort:l}=b(t,n);if(o||l)throw Error(i.error||a.error||"URI is malformed.");let s=p(i,a,n,!0);return n.skipEscape=!0,m(s,n)},resolveComponent:p,equal:function(e,t,r){let n=_(e,r),i=_(t,r);return void 0!==n&&void 0!==i&&n.toLowerCase()===i.toLowerCase()},serialize:m,parse:w};e.exports=S,e.exports.default=S,e.exports.fastUri=S},67489:(e,t,r)=>{"use strict";r.d(t,{g:()=>c});var n=r(2842),i=r(65372),o=r(541),a=r(2242),l=r(64289),s=r(68976),u=r(59190),c=(0,n.Mz)([(e,t)=>t,i.fz,s.D0,u.R,o.gL,o.R4,l.r1,a.HZ],l.aX)},67635:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},67816:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});var n=r(12115),i=r(29722),o=r(55359),a=["children","width","height","viewBox","className","style","title","desc"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var s=(0,n.forwardRef)((e,t)=>{var{children:r,width:s,height:u,viewBox:c,className:d,style:f,title:h,desc:p}=e,m=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),g=c||{width:s,height:u,x:0,y:0},y=(0,i.$)("recharts-surface",d);return n.createElement("svg",l({},(0,o.a)(m),{className:y,width:s,height:u,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height),ref:t}),n.createElement("title",null,h),n.createElement("desc",null,p),r)})},67975:(e,t,r)=>{"use strict";r.d(t,{D4:()=>m,F7:()=>x,Pe:()=>b,Rj:()=>s,gd:()=>v,h1:()=>p,kg:()=>w,lF:()=>g,oE:()=>y});var n=r(28326);let i=Object.prototype.hasOwnProperty,o=Array.isArray,a=new WeakMap;var l=function(e,t){return a.set(e,t),e};function s(e){return a.has(e)}var u=function(e){return a.get(e)},c=function(e,t){a.set(e,t)};let d=function(){let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){let t=e.pop(),r=t.obj[t.prop];if(o(r)){let e=[];for(let t=0;t<r.length;++t)void 0!==r[t]&&e.push(r[t]);t.obj[t.prop]=e}}},h=function(e,t){let r=t&&t.plainObjects?Object.create(null):{};for(let t=0;t<e.length;++t)void 0!==e[t]&&(r[t]=e[t]);return r},p=function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(s(t)){var a=u(t)+1;t[a]=r,c(t,a)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(s(r)){for(var d=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<d.length;p++)f[parseInt(d[p],10)+1]=r[d[p]];return l(f,u(r)+1)}return[t].concat(r)}let m=t;return(o(t)&&!o(r)&&(m=h(t,n)),o(t)&&o(r))?(r.forEach(function(r,o){if(i.call(t,o)){let i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){let a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},m)},m=function(e){let t=e.replace(/\+/g," ");try{return decodeURIComponent(t)}catch(e){return t}},g=function(e,t,r,i){if(0===e.length)return e;let o=e;
51"symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e));let a="";for(let e=0;e<o.length;e+=1024){let t=o.length>=1024?o.slice(e,e+1024):o,r=[];for(let e=0;e<t.length;++e){let o=t.charCodeAt(e);if(45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||i===n.j1&&(40===o||41===o)){r[r.length]=t.charAt(e);continue}if(o<128){r[r.length]=d[o];continue}if(o<2048){r[r.length]=d[192|o>>6]+d[128|63&o];continue}if(o<55296||o>=57344){r[r.length]=d[224|o>>12]+d[128|o>>6&63]+d[128|63&o];continue}e+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(e)),r[r.length]=d[240|o>>18]+d[128|o>>12&63]+d[128|o>>6&63]+d[128|63&o]}a+=r.join("")}return a},y=function(e){let t=[{obj:{o:e},prop:"o"}],r=[];for(let e=0;e<t.length;++e){let n=t[e],i=n.obj[n.prop],o=Object.keys(i);for(let e=0;e<o.length;++e){let n=o[e],a=i[n];"object"==typeof a&&null!==a&&-1===r.indexOf(a)&&(t.push({obj:i,prop:n}),r.push(a))}}return f(t),e},v=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},b=function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},w=function(e,t,r,n){if(s(e)){var i=u(e)+1;return e[i]=t,c(e,i),e}var o=[].concat(e,t);return o.length>r?l(h(o,{plainObjects:n}),o.length-1):o},x=function(e,t){if(o(e)){let r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}},68054:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},68308:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i,d:()=>o});let n=e=>0===Object.keys(e).length,i=(e,t)=>n(t)?e:n(e)?t:("and"in e&&e.and?e.and.push(t):("or"in e,e={and:[e,t]}),e),o=({collectionConfig:e,search:t,where:r={}})=>{if(t){let o={...r||{}},a=(e.admin.listSearchableFields||[e.admin?.useAsTitle||"id"]).map(e=>({[e]:{like:t}}));a.length>0&&(o=i(o,{or:a})),n(o)||(r=o)}return r}},68558:(e,t,r)=>{"use strict";r.d(t,{Wrapper:()=>a});var n=r(19749),i=r(95155),o=r(73299);r(12115);let a=e=>{let t,r,a=(0,n.c)(9),{baseClass:l,children:s,className:u}=e,{hydrated:c,navOpen:d,shouldAnimate:f}=(0,o.useNav)(),h=d&&`${l}--nav-open`,p=f&&`${l}--nav-animate`,m=c&&`${l}--nav-hydrated`;a[0]!==l||a[1]!==u||a[2]!==h||a[3]!==p||a[4]!==m?(t=[l,u,h,p,m].filter(Boolean),a[0]=l,a[1]=u,a[2]=h,a[3]=p,a[4]=m,a[5]=t):t=a[5];let g=t.join(" ");return a[6]!==s||a[7]!==g?(r=(0,i.jsx)("div",{className:g,children:s}),a[6]=s,a[7]=g,a[8]=r):r=a[8],r}},68869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378);t.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} properties`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,o="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${o} ${i}`)}}},68922:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(89010),i=r(58875);t.matches=function(e){return e=i.cloneDeep(e),t=>n.isMatch(t,e)}},68976:(e,t,r)=>{"use strict";r.d(t,{Be:()=>v,Cv:()=>k,D0:()=>C,Gl:()=>b,Dc:()=>O});var n=r(2842),i=r(30451),o=r(2242),a=r(21739),l=r(92191),s=r(51531),u={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:s.I.axis},c={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine
51:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:s.I.axis},d=r(11792),f=r(65372),h=r(87485);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g={allowDataOverflow:u.allowDataOverflow,allowDecimals:u.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:u.angleAxisId,includeHidden:!1,name:void 0,reversed:u.reversed,scale:u.scale,tick:u.tick,tickCount:void 0,ticks:void 0,type:u.type,unit:void 0,niceTicks:"auto"},y={allowDataOverflow:c.allowDataOverflow,allowDecimals:c.allowDecimals,allowDuplicatedCategory:c.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:c.radiusAxisId,includeHidden:c.includeHidden,name:void 0,reversed:c.reversed,scale:c.scale,tick:c.tick,tickCount:c.tickCount,ticks:void 0,type:c.type,unit:void 0,niceTicks:"auto"},v=(0,n.Mz)([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},f.RT],(e,t)=>{if(null!=e)return e;var r,n=null!=(r=(0,h.a)(t,"angleAxis",g.type))?r:"category";return m(m({},g),{},{type:n})}),b=(0,n.Mz)([(e,t)=>e.polarAxis.radiusAxis[t],f.RT],(e,t)=>{if(null!=e)return e;var r,n=null!=(r=(0,h.a)(t,"radiusAxis",y.type))?r:"category";return m(m({},y),{},{type:n})}),w=e=>e.polarOptions,x=(0,n.Mz)([i.Lp,i.A$,o.HZ],a.lY),_=(0,n.Mz)([w,x],(e,t)=>{if(null!=e)return(0,l.F4)(e.innerRadius,t,0)}),S=(0,n.Mz)([w,x],(e,t)=>{if(null!=e)return(0,l.F4)(e.outerRadius,t,.8*t)}),k=(0,n.Mz)([w],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});(0,n.Mz)([v,k],d.I);var O=(0,n.Mz)([x,_,S],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});(0,n.Mz)([b,O],d.I);var C=(0,n.Mz)([f.fz,w,_,S,i.Lp,i.A$],(e,t,r,n,i,o)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:a,cy:s,startAngle:u,endAngle:c}=t;return{cx:(0,l.F4)(a,i,i/2),cy:(0,l.F4)(s,o,o/2),innerRadius:r,outerRadius:n,startAngle:u,endAngle:c,clockWise:!1}}})},69074:(e,t,r)=>{"use strict";function n(e,t=0){if(0===e)return"0 bytes";let r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(t<0?0:t))}${[" bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}`}r.d(t,{B:()=>n})},69367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(96709),i=r(78184),o=r(13320),a=r(64557),l=r(68869),s=r(4636),u=r(90768),c=r(92446),d=r(63020),f=r(12928);t.default=[n.default,i.default,o.default,a.default,l.default,s.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default]},69653:(e,t,r)=>{"use strict";function n(e){return null!=e&&("string"!=typeof e||""!==e.trim())&&!Number.isNaN(Number(e))}r.d(t,{E:()=>n})},69720:(e,t,r)=>{"use strict";function n(e,t="and"){if(0===e.length)return{};let r=e.reduce((e,r)=>(r&&"object"==typeof r&&Object.keys(r).length>0&&(t in r?e[t]=[...e[t],...r[t]]:e[t]?.push(r)),e),{[t]:[]});return r[t]?.length===0?{}:r}r.d(t,{h:()=>n})},69762:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;let o=r(25103);
51class a extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}(i=n||(t.UsedValueState=n={}))[i.Started=0]="Started",i[i.Completed=1]="Completed",t.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class l{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof o.Name?e:this.name(e)}name(e){return new o.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if((null==(r=null==(t=this._parent)?void 0:t._prefixes)?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=l;class s extends o.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,o._)`.${new o.Name(t)}[${r}]`}}t.ValueScopeName=s;let u=(0,o._)`\n`;class c extends l{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?u:o.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=null!=(r=t.key)?r:t.ref,a=this._values[i];if(a){let e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,n);let l=this._scope[i]||(this._scope[i]=[]),s=l.length;return l[s]=t.ref,n.setValue(t,{property:i,itemIndex:s}),n}getValue(e,t){let r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw Error(`CodeGen: name "${t}" has no value`);return(0,o._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,i={},l){let s=o.nil;for(let u in e){let c=e[u];if(!c)continue;let d=i[u]=i[u]||new Map;c.forEach(e=>{if(d.has(e))return;d.set(e,n.Started);let i=r(e);if(i){let r=this.opts.es5?t.varKinds.var:t.varKinds.const;s=(0,o._)`${s}${r} ${e} = ${i};${this.opts._n}`}else if(i=null==l?void 0:l(e))s=(0,o._)`${s}${i}${this.opts._n}`;else throw new a(e);d.set(e,n.Completed)})}return s}}t.ValueScope=c},70061:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(91993);function i(e,...t){let r=n.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}},70446:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79423),i=r(36829),o=r(38786);t.orderBy=function(e,t,r,a){if(null==e)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(r)||(r=null==r?[]:[r]),r=r.map(e=>String(e));let l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},s=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||i.isKey(e))?e:{key:e,path:o.toPath(e)});return e.map(e=>({original:e,criteria:s.map(t=>{var r,n;return r=t,null==(n=e)||null==r?n:"object"==typeof r&&"key"in r?Object.hasOwn(n,r.key)?n[r.key]:l(n,r.path):"function"==typeof r?r(n):Array.isArray(r)?l(n,r):"object"==typeof n?n[r]:n})})).slice().sort((e,t)=>{for(let i=0;i<s.length;i++){let o=n.compareValues(e.criteria[i],t.criteria[i],r[i]);if(0!==o)return o}return 0}).map(e=>e.original)}},70841:(e,t,r)=>{e.exports=r(79700).isPlainObject},71542:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}},71615:(e,t,r)=>{"use strict";r.d(t,{F0:()=>n,tQ:()=>o,yU:()=>i});var n="data-recharts-item-index",i="data-recharts-item-id",o=60},71832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},72135:(e,t,r)=>{for(var n=r(41463),i=r(49304).hp,o=Math.floor(0xffffff*Math.random()),a=p.index=parseInt(0xffffff*Math.random(),10),l=(void 0===n||"number"!=typeof n.pid?Math.floor(1e5*Math.random()):n.pid)%65535,s=(()=>{try{return _Buffer}catch(e){try{return i}catch(e){return null}}})(),u=function(e){return!!(null!=e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},c=[],d=0;d<256;d++)c[d]=(d<=15?"0":"")+d.toString(16);var f=RegExp("^[0-9a-fA-F]{24}$"),h=[];for(d=0;d<10;)h[48+d]=d++;for(;d<16;)h[55+d]=h[87+d]=d++;function p(e){if(!(this instanceof p))return new p(e);if(e&&(e instanceof p||"ObjectID"===e._bsontype))return e;if(this._bsontype="ObjectID",null==e||"number"==typeof e){this.id=this.generate(e);return}var t=p.isValid(e);if(t||null==e)if(t&&"string"==typeof e&&24===e.length)return p.createFromHexString(e);else if(null!=e&&12===e.length)this.id=e;else if(null!=e&&"function"==typeof e.toHexString)return e;else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}e.exports=p,p.default=p,p.createFromTime=function(e){var t;return new p((8===(t=(t=e=parseInt(e,10)%0xffffffff).toString(16)).length?t:"00000000".substring(t.length,8)+t)+"0000000000000000")},p.createFromHexString=function(e){if(void 0===e||null!=e&&24!==e.length)throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");for(var t="",r=0;r<24;)t+=String.fromCharCode(h[e.charCodeAt(r++)]<<4|h[e.charCodeAt(r++)]);return new p(t)},p.isValid=function(e){return null!=e&&("number"==typeof e||("string"==typeof e?12===e.length||24===e.length&&f.test(e):e instanceof p||(u(e)?p.isValid(e.toString("hex")):"function"==typeof e.toHexString&&!!s&&(e.id instanceof s||"string"==typeof e.id)&&(12===e.id.length||24===e.id.length&&f.test(e.id)))))},p.prototype={constructor:p,toHexString:function(){if(!this.id||!this.id.length)throw Error("invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is ["+JSON.stringify(this.id)+"]");if(24===this.id.length)return this.id;
51if(u(this.id))return this.id.toString("hex");for(var e="",t=0;t<this.id.length;t++)e+=c[this.id.charCodeAt(t)];return e},equals:function(e){if(e instanceof p)return this.toString()===e.toString();if("string"==typeof e&&p.isValid(e)&&12===e.length&&u(this.id))return e===this.id.toString("binary");if("string"==typeof e&&p.isValid(e)&&24===e.length)return e.toLowerCase()===this.toHexString();if("string"==typeof e&&p.isValid(e)&&12===e.length)return e===this.id;if(null!=e&&(e instanceof p||e.toHexString))return e.toHexString()===this.toHexString();else return!1},getTimestamp:function(){var e,t=new Date;return e=u(this.id)?this.id[3]|this.id[2]<<8|this.id[1]<<16|this.id[0]<<24:this.id.charCodeAt(3)|this.id.charCodeAt(2)<<8|this.id.charCodeAt(1)<<16|this.id.charCodeAt(0)<<24,t.setTime(1e3*Math.floor(e)),t},generate:function(e){"number"!=typeof e&&(e=~~(Date.now()/1e3)),e=parseInt(e,10)%0xffffffff;var t=a=(a+1)%0xffffff;return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e,o>>16&255,o>>8&255,255&o,l>>8&255,255&l,t>>16&255,t>>8&255,255&t)}};var m=Symbol&&Symbol.for&&Symbol.for("nodejs.util.inspect.custom")||"inspect";p.prototype[m]=function(){return"ObjectID("+this+")"},p.prototype.toJSON=p.prototype.toHexString,p.prototype.toString=p.prototype.toHexString},72481:(e,t,r)=>{"use strict";r.d(t,{x:()=>l,y:()=>a});var n=r(11785),i=r(541),o=r(82906),a=(0,n.VP)("externalEvent"),l=(0,n.Nc)(),s=new Map,u=new Map,c=new Map;l.startListening({actionCreator:a,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var a=n.type,l=(0,o.r)(n);c.set(a,{handler:r,reactEvent:l});var d=s.get(a);void 0!==d&&(cancelAnimationFrame(d),s.delete(a));var{throttleDelay:f,throttledEvents:h}=t.getState().eventSettings,p="all"===h||(null==h?void 0:h.includes(a)),m=u.get(a);void 0===m||"number"==typeof f&&p||(clearTimeout(m),u.delete(a));var g=()=>{var e=c.get(a);try{if(!e)return;var{handler:r,reactEvent:n}=e,o=t.getState(),l={activeCoordinate:(0,i.eE)(o),activeDataKey:(0,i.Xb)(o),activeIndex:(0,i.A2)(o),activeLabel:(0,i.BZ)(o),activeTooltipIndex:(0,i.A2)(o),isTooltipActive:(0,i.yn)(o)};r&&r(l,n)}finally{s.delete(a),u.delete(a),c.delete(a)}};if(!p)return void g();if("raf"===f){var y=requestAnimationFrame(g);s.set(a,y)}else if("number"==typeof f){if(!u.has(a)){g();var v=setTimeout(g,f);u.set(a,v)}}else g()}}})},73160:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n=e=>{let t=e.split(" ");return RegExp(t.reduce((e,r,n)=>{let i=r.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return`${e}(?=.*(?:(?:[^\\p{L}\\p{N}])|^).*${i}.*(?=[^\\p{L}\\p{N}]|$))${n+1===t.length?".+":""}`},""),"i")}},73321:(e,t,r)=>{"use strict";var n=r(74645);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},73400:(e,t,r)=>{"use strict";function n(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}r.d(t,{v:()=>n})},73550:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},73957:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(35679),i=r(21116),o=r(68922),a=r(23767);t.iteratee=function(e){if(null==e)return n.identity;switch(typeof e){case"function":return e;case"object":if(Array.isArray(e)&&2===e.length)return a.matchesProperty(e[0],e[1]);return o.matches(e);case"string":case"symbol":case"number":return i.property(e)}}},74102:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("message-square-quote",[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]])},74254:(e,t,r)=>{"use strict";r.d(t,{EY:()=>L,Gt:()=>N,fU:()=>A});var n,i,o,a=r(12115),l=r(29722),s=r(92191),u=r(89933),c=r(53157),d=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,h=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,p=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,m={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},g=["cm","mm","pt","pc","in","Q","px"];class y{static parse(e){var t,[,r,n]=null!=(t=p.exec(e))?t:[];return null==r?y.NaN:new y(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,(0,s.M8)(e)&&(this.unit=""),""===t||h.test(t)||(this.num=NaN,this.unit=""),function(e){return g.includes(e)}(t)&&(this.num=function(e,t){return e*m[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new y(NaN,""):new y(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new y(NaN,""):new y(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new y(NaN,""):new y(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new y(NaN,""):new y(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return(0,s.M8)(this.num)}}function v(e){if(null==e||e.includes("NaN"))return"NaN";for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,o]=null!=(r=d.exec(t))?r:[],a=y.parse(null!=n?n:""),l=y.parse(null!=o?o:""),s="*"===i?a.multiply(l):a.divide(l);if(s.isNaN())return"NaN";t=t.replace(d,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,c,h,p]=null!=(u=f.exec(t))?u:[],m=y.parse(null!=c?c:""),g=y.parse(null!=p?p:""),v="+"===h?m.add(g):m.subtract(g);if(v.isNaN())return"NaN";t=t.replace(f,v.toString())}return t}i="NaN",o=new y(NaN,""),(i="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"))?n:n+"")in y?Object.defineProperty(y,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):y[i]=o;var b=/\(([^()]*)\)/;function w(e){var t=function(e){try{var t;return t=e.replace(/\s+/g,""),t=function(e){for(var t,r=e;null!=(t=b.exec(r));){var[,n]=t;r=r.replace(b,v(n))}return r}(t),t=v(t)}catch(e){return"NaN"}}(e.slice(5,-1));return"NaN"===t?"":t}var x=r(55359),_=r(43527),S=r(99498),k=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],O=["dx","dy","angle","className","breakAll"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
51).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function E(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var T=/[ \f\n\r\t\v\u2028\u2029]+/,M=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];(0,s.uy)(t)||(i=r?t.toString().split(""):t.toString().split(T));var o=i.map(e=>({word:e,width:(0,c.Pu)(e,n).width})),a=r?0:(0,c.Pu)("\xa0",n).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch(e){return null}};function A(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}function N(e){return(0,s.uy)(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}var P=(e,t,r,n)=>e.reduce((e,i)=>{var{word:o,width:a}=i,l=e[e.length-1];return l&&null!=a&&(null==t||n||l.width+a+r<Number(t))?(l.words.push(o),l.width+=a+r):e.push({words:[o],width:a}),e},[]),j=e=>e.reduce((e,t)=>e.width>t.width?e:t),I=(e,t,r,n,i,o,a,l)=>{var s=M({breakAll:r,style:n,children:e.slice(0,t)+"â¦"});if(!s)return[!1,[]];var u=P(s.wordsWithComputedWidth,o,a,l);return[u.length>i||j(u).width>Number(o),u]},D=e=>[{words:(0,s.uy)(e)?[]:e.toString().split(T),width:void 0}],$="#808080",R={angle:0,breakAll:!1,capHeight:"0.71em",fill:$,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},L=(0,a.forwardRef)((e,t)=>{var r,n=(0,_.e)(e,R),{x:i,y:o,lineHeight:c,capHeight:d,fill:f,scaleToFit:h,textAnchor:p,verticalAnchor:m}=n,g=E(n,k),y=(0,a.useMemo)(()=>(e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:o,maxLines:a}=e;if((t||r)&&!u.m.isSsr){var l=M({breakAll:o,children:n,style:i});if(!l)return D(n);var{wordsWithComputedWidth:c,spaceWidth:d}=l;return((e,t,r,n,i)=>{var o,{maxLines:a,children:l,style:u,breakAll:c}=e,d=(0,s.Et)(a),f=String(l),h=P(t,n,r,i);if(!d||i||!(h.length>a||j(h).width>Number(n)))return h;for(var p=0,m=f.length-1,g=0;p<=m&&g<=f.length-1;){var y=Math.floor((p+m)/2),[v,b]=I(f,y-1,c,u,a,n,r,i),[w]=I(f,y,c,u,a,n,r,i);if(v||w||(p=y+1),v&&w&&(m=y-1),!v&&w){o=b;break}g++}return o||h})({breakAll:o,children:n,maxLines:a,style:i},c,d,t,!!r)}return D(n)})({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:h,style:g.style,width:g.width}),[g.breakAll,g.children,g.maxLines,h,g.style,g.width]),{dx:v,dy:b,angle:T,className:A,breakAll:N}=g,L=E(g,O);if(!(0,s.vh)(i)||!(0,s.vh)(o)||0===y.length)return null;var z=Number(i)+((0,s.Et)(v)?v:0),F=Number(o)+((0,s.Et)(b)?b:0);if(!(0,S.H)(z)||!(0,S.H)(F))return null;switch(m){case"start":r=w("calc(".concat(d,")"));break;case"middle":r=w("calc(".concat((y.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:r=w("calc(".concat(y.length-1," * -").concat(c,")"))}var B=[],K=y[0];if(h&&null!=K){var U=K.width,{width:W}=g;B.push("scale(".concat((0,s.Et)(W)&&(0,s.Et)(U)?W/U:1,")"))}return T&&B.push("rotate(".concat(T,", ").concat(z,", ").concat(F,")")),B.length&&(L.transform=B.join(" ")),a.createElement("text",C({},(0,x.a)(L),{ref:t,x:z,y:F,className:(0,l.$)("recharts-text",A),textAnchor:p,fill:f.includes("url")?$:f}),y.map((e,t)=>{var n=e.words.join(N?"":" ");return a.createElement("tspan",{x:z,dy:0===t?r:c,key:"".concat(n,"-").concat(t)},n)}))});L.displayName="Text"},74272:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]])},74463:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var n=e=>e.tooltip.settings.axisId},74592:(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.d(t,{A:()=>n})},74624:(e,t,r)=>{"use strict";r.d(t,{E1:()=>v,En:()=>w,Ix:()=>s,ML:()=>m,Nt:()=>g,RD:()=>f,UF:()=>d,XB:()=>c,Zp:()=>u,jF:()=>y,k_:()=>a,o4:()=>b,oP:()=>h,xS:()=>p});var n=r(11785),i=r(30894),o=r(99050),a={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},l=(0,n.Z0)({name:"tooltip",initialState:{itemInteraction:{click:a,hover:a},axisInteraction:{click:a,hover:a},keyboardInteraction:a,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push((0,o.h4)(t.payload))},prepare:(0,n.aA)()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,a=(0,i.ss)(e).tooltipItemPayloads.indexOf((0,o.h4)(r));a>-1&&(e.tooltipItemPayloads[a]=(0,o.h4)(n))},prepare:(0,n.aA)()},removeTooltipEntrySettings:{reducer(e,t){var r=(0,i.ss)(e).tooltipItemPayloads.indexOf((0,o.h4)(t.payload));r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:(0,n.aA)()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:s,replaceTooltipEntrySettings:u,removeTooltipEntrySettings:c,setTooltipSettingsState:d,setActiveMouseOverItemIndex:f,mouseLeaveItem:h,mouseLeaveChart:p,setA
51ctiveClickItemIndex:m,setMouseOverAxisIndex:g,setMouseClickAxisIndex:y,setSyncInteraction:v,setKeyboardInteraction:b}=l.actions,w=l.reducer},74751:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73550),i=r(32951),o=r(71542),a=r(38786);t.get=function e(t,r,l){if(null==t)return l;switch(typeof r){case"string":{if(n.isUnsafeProperty(r))return l;let o=t[r];if(void 0===o)if(i.isDeepKey(r))return e(t,a.toPath(r),l);else return l;return o}case"number":case"symbol":{"number"==typeof r&&(r=o.toKey(r));let e=t[r];if(void 0===e)return l;return e}default:{if(Array.isArray(r)){var s=t,u=r,c=l;if(0===u.length)return c;let e=s;for(let t=0;t<u.length;t++){if(null==e||n.isUnsafeProperty(u[t]))return c;e=e[u[t]]}return void 0===e?c:e}if(r=Object.is(r?.valueOf(),-0)?"-0":String(r),n.isUnsafeProperty(r))return l;let e=t[r];if(void 0===e)return l;return e}}}},75450:(e,t,r)=>{"use strict";r.d(t,{O6:()=>l,QG:()=>s,zp:()=>o});var n=r(11785),i=r(99050),o={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},a=(0,n.Z0)({name:"eventSettings",initialState:o,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=(0,i.h4)(t.payload.throttledEvents))}}}),{setEventSettings:l}=a.actions,s=a.reducer},75726:(e,t,r)=>{"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return e.reduce((e,t,i)=>{var o=r[i-1];return"string"==typeof o?e+o+t:void 0!==o?e+n(o)+t:e+t},"")}r.d(t,{L:()=>n,Y:()=>i})},75887:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});let n=async e=>{let t;switch(e){case"ar":t=(await r.e(5540).then(r.bind(r,75540))).ar;break;case"az":t=(await r.e(2768).then(r.bind(r,70387))).az;break;case"bg":t=(await r.e(3235).then(r.bind(r,13235))).bg;break;case"bn-BD":case"bn-IN":t=(await r.e(9408).then(r.bind(r,39408))).bn;break;case"ca":t=(await r.e(4808).then(r.bind(r,44808))).ca;break;case"cs":t=(await r.e(4960).then(r.bind(r,74960))).cs;break;case"da":t=(await r.e(5880).then(r.bind(r,95880))).da;break;case"de":t=(await r.e(512).then(r.bind(r,70512))).de;break;case"en-US":t=(await Promise.resolve().then(r.bind(r,24395))).enUS;break;case"es":t=(await r.e(7055).then(r.bind(r,27055))).es;break;case"et":t=(await r.e(8879).then(r.bind(r,98879))).et;break;case"fa-IR":t=(await r.e(9661).then(r.bind(r,89661))).faIR;break;case"fr":t=(await r.e(1279).then(r.bind(r,91279))).fr;break;case"he":t=(await r.e(9975).then(r.bind(r,55213))).he;break;case"hr":t=(await r.e(9894).then(r.bind(r,19894))).hr;break;case"hu":t=(await r.e(4208).then(r.bind(r,44208))).hu;break;case"id":t=(await r.e(9998).then(r.bind(r,89998))).id;break;case"is":t=(await r.e(253).then(r.bind(r,70253))).is;break;case"it":t=(await r.e(3884).then(r.bind(r,83884))).it;break;case"ja":t=(await r.e(6606).then(r.bind(r,36606))).ja;break;case"ko":t=(await r.e(734).then(r.bind(r,40734))).ko;break;case"lt":t=(await r.e(7594).then(r.bind(r,25213))).lt;break;case"lv":t=(await r.e(2591).then(r.bind(r,62591))).lv;break;case"nb":t=(await r.e(6082).then(r.bind(r,86082))).nb;break;case"nl":t=(await r.e(6897).then(r.bind(r,26897))).nl;break;case"pl":t=(await r.e(9807).then(r.bind(r,99807))).pl;break;case"pt":t=(await r.e(6582).then(r.bind(r,86582))).pt;break;case"ro":t=(await r.e(7315).then(r.bind(r,7315))).ro;break;case"rs":t=(await r.e(330).then(r.bind(r,40330))).sr;break;case"rs-Latin":t=(await r.e(3933).then(r.bind(r,53933))).srLatn;break;case"ru":t=(await r.e(9982).then(r.bind(r,89982))).ru;break;case"sk":t=(await r.e(766).then(r.bind(r,30766))).sk;break;case"sl-SI":t=(await r.e(7651).then(r.bind(r,20032))).sl;break;case"sv":t=(await r.e(6489).then(r.bind(r,56489))).sv;break;case"ta":t=(await r.e(9342).then(r.bind(r,49342))).ta;break;case"th":t=(await r.e(5698).then(r.bind(r,25698))).th;break;case"tr":t=(await r.e(3035).then(r.bind(r,33035))).tr;break;case"uk":t=(await r.e(8763).then(r.bind(r,48763))).uk;break;case"vi":t=(await r.e(9288).then(r.bind(r,79288))).vi;break;case"zh-CN":t=(await r.e(4404).then(r.bind(r,54404))).zhCN;break;case"zh-TW":t=(await r.e(2265).then(r.bind(r,92265))).zhTW}return t?.default?t.default:t}},76059:(e,t,r)=>{"use strict";
51Object.defineProperty(t,"__esModule",{value:!0});let n=r(83732);t.default={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let o=t.name("valid");r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;let a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)})}}},76147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(71832),i=r(40530);t.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default]},76592:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,W:()=>i});var n=r(26028);function i(e,t){var r,i;return null!=(r=null==(i=e.graphicalItems.cartesianItems.find(e=>e.id===t))?void 0:i.xAxisId)?r:n.W3}function o(e,t){var r,i;return null!=(r=null==(i=e.graphicalItems.cartesianItems.find(e=>e.id===t))?void 0:i.yAxisId)?r:n.W3}},76755:(e,t,r)=>{"use strict";r.d(t,{g:()=>l});var n=r(49967),i=r(62239),o=r(36997),a=r(12115);function l({newTab:e=!0,disabled:t=!1}){let[r]=(0,o.DF)();return(0,a.useEffect)(()=>(0,i.AX)(r,(0,n.v)({disabled:t,newTab:e})),[r,e,t]),null}},76865:(e,t,r)=>{"use strict";r.d(t,{$t:()=>S,LN:()=>a,U3:()=>c,hs:()=>E,i5:()=>p,k_:()=>k,nh:()=>f});var n=r(27050),i=r(8242);let o=Object.create(null);class a{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let o=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:s,$to:u}=a[l],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(u.pos),l?n.Ji.empty:t),0==l&&y(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:o,$to:a}=n[i],l=e.mapping.slice(r),s=l.map(o.pos),u=l.map(a.pos);i?e.deleteRange(s,u):(e.replaceRangeWith(s,u,t),y(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}
51static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=o[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let s=!1;function u(e){s||e.parent.inlineContent||(s=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends a{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return a.near(r);let n=e.resolve(t.map(this.anchor));return new c(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,r,!0)||a.findFrom(t,-r,!0);if(!e)return a.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(a.findFrom(e,-r,!0)||a.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new c(e,t)}}a.jsonID("text",c);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class f extends a{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?a.near(i):new f(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof f&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new h(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new f(e.resolve(t.anchor))}static create(e,t){return new f(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}f.prototype.visible=!1,a.jsonID("node",f);class h{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new d(r,r):new h(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&f.isSelectable(r)?new f(t):a.near(t)}}class p extends a{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=a.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new p(e)}map(e){return new p(e)}eq(e){return e instanceof p}getBookmark(){return m}}a.jsonID("all",p);let m={map(){return this},resolve:e=>new p(e)};function g(e,t,r,n,i,o=!1){if(t.inlineContent)return c.create(e,r);for(let a=n-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let n=t.child(a);if(n.isAtom){if(!o&&f.isSelectable(n))return f.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,o);if(t)return t}r+=n.nodeSize*i}return null}function y(e,t,r){let n,o=e.steps.length-1;if(o<t)return;let l=e.steps[o];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(a.near(e.doc.resolve(n),r)))}class v extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,r){this.name=e,this.init=b(t.init,r),this.apply=b(t.apply,r)}}let x=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>
51e.selection||a.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class _{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let l=n?n[o].n:0,s=n?n[o].state:this,u=l<t.length&&a.spec.appendTransaction.call(a,l?t.slice(l):t,s,r);if(u&&r.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<o?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}n&&(n[o]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new S(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new v(this)}static create(e){let t=new _(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new S(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new _(this.schema,e.plugins),r=t.fields,n=new S(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new _(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let a=r[n],l=a.spec.state;if(a.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){o[i.name]=l.fromJSON.call(a,e,t[n],o);return}}o[i.name]=i.init(e,o)}}),o}}class k{constructor(e){this.spec=e,this.props={},e.props&&function e(t,r,n){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(r):"handleDOMEvents"==i&&(o=e(o,r,{})),n[i]=o}return n}(e.props,this,this.props),this.key=e.key?e.key.key:C("plugin")}getState(e){return e[this.key]}}let O=Object.create(null);function C(e){return e in O?e+"$"+ ++O[e]:(O[e]=0,e+"$")}class E{constructor(e="key"){this.key=C(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},76867:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(99491),i=r(36997),o=r(53310),a=r(12115);function l({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){let[r]=(0,i.DF)();return(0,a.useEffect)(()=>{if(!r.hasNodes([n.v5,n.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[r]),(0,a.useEffect)(()=>(0,o.Sdt)((0,n.cz)(r,{restoreNumbering:t}),e?(0,n.Js)(r):()=>{}),[r,e,t]),(0,a.useEffect)(()=>(0,n.cz)(r),[r]),null}},77182:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},77208:(e,t,r)=>{"use strict";
51Object.defineProperty(t,"__esModule",{value:!0});let n=r(33120);class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},77989:(e,t,r)=>{"use strict";r.d(t,{_P:()=>o,my:()=>n,w4:()=>i});let n=6048e5,i=864e5,o=Symbol.for("constructDateFrom")},78184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378);t.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`},code(e){let{gen:t,data:r,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,l=t.let("res"),s=a?(0,n._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:(0,n._)`${l} !== parseInt(${l})`;e.fail$data((0,n._)`(${i} === 0 || (${l} = ${r}/${i}, ${s}))`)}}},78636:(e,t,r)=>{"use strict";function n(e){var t,r,n=e.currentTarget.getBoundingClientRect();if("getBBox"in e.currentTarget&&"function"==typeof e.currentTarget.getBBox){var i=e.currentTarget.getBBox();t=i.width>0?n.width/i.width:1,r=i.height>0?n.height/i.height:1}else{var o=e.currentTarget;t=o.offsetWidth>0?n.width/o.offsetWidth:1,r=o.offsetHeight>0?n.height/o.offsetHeight:1}var a=(e,i)=>({relativeX:Math.round((e-n.left)/t),relativeY:Math.round((i-n.top)/r)});return"touches"in e?Array.from(e.touches).map(e=>a(e.clientX,e.clientY)):a(e.clientX,e.clientY)}r.d(t,{X:()=>n})},79423:(e,t)=>{"use strict";function r(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:4*(e!=e)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.compareValues=(e,t,n)=>{if(e!==t){let i=r(e),o=r(t);if(i===o&&0===i){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?o-i:i-o}return 0}},79700:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},80081:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},80367:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("shield-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]])},80598:(e,t,r)=>{"use strict";r.d(t,{P:()=>p});var n=r(12115),i=r(6342),o=r(33646),a=r(32230),l=r(92343),s=r(98814),u=r(30961),c=r(43527);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var h=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},r(75450).zp),p=(0,n.forwardRef)(function(e,t){var r,f=(0,c.e)(e.categoricalChartProps,h),{chartName:p,defaultTooltipEventType:m,validateTooltipEventTypes:g,tooltipPayloadSearcher:y,categoricalChartProps:v}=e;return n.createElement(i.J,{preloadedState:{options:{chartName:p,defaultTooltipEventType:m,validateTooltipEventTypes:g,tooltipPayloadSearcher:y,eventEmitter:void 0}},reduxStoreName:null!=(r=v.id)?r:p},n.createElement(o.TK,{chartData:v.data}),n.createElement(a.s,{layout:f.layout,margin:f.margin}),n.createElement(s.M,{throttleDelay:f.throttleDelay,throttledEvents:f.throttledEvents}),n.createElement(l.p,{baseValue:f.baseValue,accessibilityLayer:f.accessibilityLayer,barCategoryGap:f.barCategoryGap,maxBarSize:f.maxBarSize,stackOffset:f.stackOffset,barGap:f.barGap,barSize:f.barSize,syncId:f.syncId,syncMethod:f.syncMethod,className:f.className,reverseStackOrder:f.reverseStackOrder}),n.createElement(u.L,d({},f,{ref:t})))})},80600:(e,t,r)=>{"use strict";r.d(t,{J:()=>O});var n=r(12115),i=r(92191),o=r(43527),a=r(33966);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var u=(e,t,r)=>e+(t-e)*r,c=e=>{var{from:t,to:r}=e;return t!==r},d=(e,t,r)=>{var n=(0,a.s8)((t,r)=>{if(c(r)){var[n,i]=e(r.from,r.to,r.velocity);return s(s({},r),{},{from:n,velocity:i})}return r},t);return r<1?(0,a.s8)((e,t)=>c(t)&&null!=n[e]?s(s({},t),{},{velocity:u(t.velocity,n[e].velocity,r),from:u(t.from,n[e].from,r)}):t,t):d(e,n,r-1)},f=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],h=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),p=(e,t)=>r=>h(f(e,t),r),m=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null==(t=r[1])||null==(t=t.split(")")[0])?void 0:t.split(",");if(null==n||4!==n.length)return null;var i=n.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]},g=function(){return((e,t,r,n)=>{var i=p(e,r),o=p(t,n),a=t=>h([...f(e,r).map((e,t)=>e*t).slice(1),0],t),l=e=>e>1?1:e<0?0:e,s=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var s=i(r)-t,u=a(r);if(1e-4>Math.abs(s-t)||u<1e-4)break;r=l(r-s/u)}return o(r)};return s.isStepper=!1,s})(...m(...arguments))},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,i=(e,i,o)=>{var a=o+(-(e-i)*t-o*r)*n/1e3,l=o*n/1e3+e;return 1e-4>Math.abs(l-i)&&1e-4>Math.abs(a)?[i,0]:[l,a]};return i.isStepper=!0,i.dt=n,i};class v{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,i=o=>{o-r>=t?e(o):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>{null!=n&&cancelAnimationFrame(n)}}}var b=(0,n.createContext)(function(){var e,t,r,n,i;return e=new v,t=()=>null,r=!1,n=null,i=o=>
51{if(!r){if(Array.isArray(o)){if(!o.length)return;var[a,...l]=o;if("number"==typeof a){n=e.setTimeout(i.bind(null,l),a);return}i(a),n=e.setTimeout(i.bind(null,l));return}"string"==typeof o&&t(o),"object"==typeof o&&t(o),"function"==typeof o&&o()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}),w=r(89933),x=r(40060),_={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},S={t:0},k={t:1};function O(e){var t,r,l,f=(0,o.e)(e,_),{isActive:h,canBegin:p,duration:m,easing:v,begin:O,onAnimationEnd:C,onAnimationStart:E,children:T}=f,M=(0,x.j)(),A="auto"===h?!w.m.isSsr&&!M:h,N=(t=f.animationId,r=f.animationManager,l=(0,n.useContext)(b),(0,n.useMemo)(()=>null!=r?r:l(t),[t,r,l])),[P,j]=(0,n.useState)(A?S:k),I=(0,n.useRef)(null);return(0,n.useEffect)(()=>{A||j(k)},[A]),(0,n.useEffect)(()=>{if(!A||!p)return i.lQ;var e=((e,t,r,n,i,o)=>{var l,f,h,p,m,g,y,v,b=(0,a.mP)(e,t);return null==r?()=>(i(s(s({},e),t)),()=>{}):!0===r.isStepper?(f=b.reduce((r,n)=>s(s({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),h=null,p=n=>{l||(l=n);var u=(n-l)/r.dt;f=d(r,f,u),i(s(s(s({},e),t),(0,a.s8)((e,t)=>t.from,f))),l=n,Object.values(f).filter(c).length&&(h=o.setTimeout(p))},()=>(h=o.setTimeout(p),()=>{var e;null==(e=h)||e()})):(g=null,y=b.reduce((r,n)=>{var i=e[n],o=t[n];return null==i||null==o?r:s(s({},r),{},{[n]:[i,o]})},{}),v=l=>{m||(m=l);var c=(l-m)/n,d=(0,a.s8)((e,t)=>u(...t,r(c)),y);if(i(s(s(s({},e),t),d)),c<1)g=o.setTimeout(v);else{var f=(0,a.s8)((e,t)=>u(...t,r(1)),y);i(s(s(s({},e),t),f))}},()=>(g=o.setTimeout(v),()=>{var e;null==(e=g)||e()}))})(S,k,(e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return g(e);case"spring":return y();default:if("cubic-bezier"===e.split("(")[0])return g(e)}return"function"==typeof e?e:null})(v),m,j,N.getTimeoutController());return N.start([E,O,()=>{I.current=e()},m,C]),()=>{N.stop(),I.current&&I.current(),C()}},[A,p,m,v,O,E,C,N]),T(P.t)}},80856:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=({collectionPermissions:e,field:t,operation:r,parentName:n,permissions:i})=>{let o=!0===i||i?.[r]===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||r in i[t.name]&&i[t.name][r]),a=null==i||!0===i||("name"in t?i[t.name]:i),l=!0===i||i?.read===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||"read"in i[t.name]&&i[t.name].read);if(!(!0===i||"object"==typeof i&&null!==i&&Object.keys(i).length>0)&&e){let t=!!e.read,n=!1;return"create"===r&&"create"in e?n=!!e.create:"update"===r&&(n=!!e.update),{operation:n,permissions:{read:t},read:t}}return{operation:!!o,permissions:a,read:!!l}}},80865:(e,t,r)=>{"use strict";r.d(t,{r:()=>O});var n=r(12115),i=r(95295),o=r(6342),a=r(33646),l=r(32230),s=r(92343),u=r(98814),c=r(10365),d=r(42381);function f(e){var t=(0,c.j)();return(0,n.useEffect)(()=>{t((0,d.U)(e))},[t,e]),null}var h=r(30961),p=r(43527),m=r(75450),g=["layout"];function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var b=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},m.zp),w=(0,n.forwardRef)(function(e,t){var r,i=(0,p.e)(e.categoricalChartProps,b),{layout:c}=i,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(i,g),{chartName:m,defaultTooltipEventType:v,validateTooltipEventTypes:w,tooltipPayloadSearcher:x}=e;return n.createElement(o.J,{preloadedState:{options:{chartName:m,defaultTooltipEventType:v,validateTooltipEventTypes:w,tooltipPayloadSearcher:x,eventEmitter:void 0}},reduxStoreName:null!=(r=i.id)?r:m},n.createElement(a.TK,{chartData:i.data}),n.createElement(l.s,{layout:c,margin:i.margin}),n.createElement(u.M,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),n.createElement(s.p,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),n.createElement(f,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),n.createElement(h.L,y({},d,{ref:t})))});function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S=["item"],k=_(_({},b),{},{layout:"centric",startAngle:0,endAngle:360}),O=(0,n.forwardRef)((e,t)=>{var r=(0,p.e)(e,k);return n.createElement(w,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:S,tooltipPayloadSearcher:i.uN,categoricalChartProps:r,ref:t})})},80975:(e,t,r)=>{"use strict";function n({field:e,index:t,parentIndexPath:r,parentPath:i="",parentSchemaPath:o}){let a=i.split("."),l=a?.[a.length-1]?.startsWith("_index-"),s=l?a.slice(0,-1).join("."):i,u=l?s:i;if("name"in e)return{indexPath:"",path:`${u?u+".":""}${e.name}`,schemaPath:`${o?o+".":""}${e.name}`};let c=`_index-${r?r+"-":""}${t}`,d=o.split(".");return{indexPath:`${r?r+"-":""}${t}`,path:`${u?u+".":""}${c}`,schemaPath:d?.[d.length-1]?.startsWith("_index-")?`${o}-${t}`:`${o?o+".":""}${c}`}}r.d(t,{Z:()=>n})},80997:(e,t,r)=>{"use strict";r.d(t,{B8:()=>p,WO:()=>h,ZV:()=>f,v3:()=>m,wR:()=>d});var n=r(11785),i=r(99050),o=r(51531);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s={zIndexMap:Object.values(o.I).reduce((e,t)=>l(l({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},u=new Set(Object.values(o.I)),c=(0,n.Z0)({name:"zIndex",initialState:s,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:(0,n.aA)()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!u.has(r)&&delete e.zIndexMap[r])},prepare:(0,n.aA)()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=(0,i.h4)(n):e.zIndexMap[r].element=(0,i.h4)(n):e.zIndexMap[r]={consumers:0,element:o?void 0:(0,i.h4)(n),panoramaElement:o?(0,i.h4)(n):void 0}},prepare:(0,n.aA)()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:(0,n.aA)()}}}),{registerZIndexPortal:d,unregisterZIndexPortal:f,registerZIndexPortalElement:h,unregisterZIndexPortalElement:p}=c.actions,m=c.reducer},81697:()=>{},81852:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,l=8*i-n-1,s=(1<<l)-1,u=s>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=l;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,l,s,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(a++,s/=2),a+d>=c?(l=0,a=c):a+d>=1?(l=(t*s-1)*Math.pow(2,i),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&l,h+=p,l/=256,i-=8);for(a=a<<i|l,u+=i;u>0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},82482:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},82906:(e,t,r)=>{"use strict";function n(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,r)=>{if("currentTarget"===r)return t;var n=Reflect.get(e,r);return"function"==typeof n?n.bind(e):n}})}r.d(t,{r:()=>n})},83253:(e,t,r)=>{"use strict";r.d(t,{q:()=>f});var n=r(67975);let i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,comma:!1,decodeDotInKeys:!1,decoder:n.D4,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t){let r,s={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,c);for(r=0;r<d.length;++r){let e,u,c=d[r],f=c.indexOf("]="),h=-1===f?c.indexOf("="):f+1;-1===h?(e=t.decoder(c,a.decoder,"key"),u=t.strictNullHandling?null:""):(e=t.decoder(c.slice(0,h),a.decoder,"key"),u=n.F7(l(c.slice(h+1),t),function(e){return t.decoder(e,a.decoder,"value")})),c.indexOf("[]=")>-1&&(u=o(u)?[u]:u),t.comma&&o(u)&&u.length>t.arrayLimit&&(u=n.kg([],u,t.arrayLimit,t.plainObjects));let p=i.call(s,e);p&&"combine"===t.duplicates?s[e]=n.kg(s[e],u,t.arrayLimit,t.plainObjects):p&&"last"!==t.duplicates||(s[e]=u)}return s},u=function(e,t,r,i){let o=i?t:l(t,r);for(let t=e.length-1;t>=0;--t){let i,a=e[t];if("[]"===a&&r.parseArrays)i=n.Rj(o)?o:r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:n.kg([],o,r.arrayLimit,r.plainObjects);else{i=r.plainObjects?Object.create(null):{};let e="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,t=r.decodeDotInKeys?e.replace(/%2E/g,"."):e,n=parseInt(t,10);r.parseArrays||""!==t?!isNaN(n)&&a!==t&&String(n)===t&&n>=0&&r.parseArrays&&n<=r.arrayLimit?(i=[])[n]=o:"__proto__"!==t&&(i[t]=o):i={0:o}}o=i}return o},c=function(e,t,r,n){if(!e)return;let o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=l?o.slice(0,l.index):o,c=[];if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}let d=0;for(;r.depth>0&&null!==(l=a.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),u(c,t,r,n)},d=function(e){if(!e)return a;
51if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");let t=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.gd(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};function f(e,t){let r=d(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};let i="string"==typeof e?s(e,r):e,o=r.plainObjects?Object.create(null):{},a=Object.keys(i);for(let t=0;t<a.length;++t){let l=a[t],s=c(l,i[l],r,"string"==typeof e);o=n.h1(o,s,r)}return!0===r.allowSparse?o:n.oE(o)}},83393:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});let n=e=>({canLoginWithEmail:!e||e.allowEmailLogin,canLoginWithUsername:!!e})},83489:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>v,Nx:()=>d,Rk:()=>w,SD:()=>c,Vs:()=>h,Wh:()=>a,Xg:()=>f,dt:()=>u,zI:()=>m});var n=r(53310);let i=new Map;function o(e){let t={};if(!e)return t;for(let r of e.split(";"))if(""!==r){let[e,n]=r.split(/:([^]+)/);e&&n&&(t[e.trim()]=n.trim())}return t}function a(e){let t=i.get(e);return void 0===t&&(t=o(e),i.set(e,t)),t}function l(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return null;let r=t.ownerDocument.defaultView;return null===r?null:r.getComputedStyle(t)}function s(e){return l((0,n.hVZ)(e)?e:e.getParentOrThrow())}function u(e){let t=s(e);return null!==t&&"rtl"===t.direction}function c(e,t,r="self"){let i=e.getStartEndPoints();if(t.isSelected(e)&&!(0,n.Rb_)(t)&&null!==i){let[o,a]=i,l=e.isBackward(),s=o.getNode(),u=a.getNode(),c=t.is(s),d=t.is(u);if(c||d){let[i,o]=(0,n.Cku)(e),a=s.is(u),c=t.is(l?u:s),d=t.is(l?s:u),f,h=0;a?(h=i>o?o:i,f=i>o?i:o):c?(h=l?o:i,f=void 0):d&&(h=0,f=l?i:o);let p=t.__text.slice(h,f);p!==t.__text&&("clone"===r&&(t=(0,n.U5P)(t)),t.__text=p)}}return t}function d(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,n.ff4)(t)||function(...e){let t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let t of(r.append("code",177),e))r.append("v",t);throw t.search=r.toString(),Error(`Minified Lexical error #177; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(),e.offset===t.getChildrenSize()}function f(e){let t=e.getStyle(),r=o(t);i.set(t,r)}function h(e){let t=(0,n.vJq)();if(!t)return;let r=new Map,i=e=>r.get(e.getKey())||[0,e.getTextContentSize()];if((0,n.I2P)(t))for(let e of(0,n.$iu)(t).getTextSlices())e&&r.set(e.caret.origin.getKey(),e.getSliceIndices());for(let r of t.getNodes()){if(!(0,n.kFe)(r)||!r.canHaveFormat())continue;let[t,o]=i(r);o!==t&&e((0,n.Rb_)(r)||0===t&&o===r.getTextContentSize()?r:r.splitText(t,o)[+(0!==t)])}(0,n.I2P)(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){let{anchor:t,focus:r}=e,{key:n,offset:i,type:o}=t;t.set(r.key,r.offset,r.type),r.set(n,i,o)}}(t)}function p(e,t){let r=e.getFormatType(),n=e.getIndent();r!==t.getFormatType()&&t.setFormat(r),n!==t.getIndent()&&t.setIndent(n)}
51function m(e,t,r=p){if(null===e)return;let i=e.getStartEndPoints(),o=new Map,a=null;if(i){let[e,t]=i;(a=(0,n.uTE)()).anchor.set(e.key,e.offset,e.type),a.focus.set(t.key,t.offset,t.type);let r=(0,n.BtT)(e.getNode(),n.w3H),l=(0,n.BtT)(t.getNode(),n.w3H);(0,n.ff4)(r)&&o.set(r.getKey(),r),(0,n.ff4)(l)&&o.set(l.getKey(),l)}for(let t of e.getNodes())if((0,n.ff4)(t)&&(0,n.w3H)(t))o.set(t.getKey(),t);else if(null===i){let e=(0,n.BtT)(t,n.w3H);(0,n.ff4)(e)&&o.set(e.getKey(),e)}for(let[e,n]of o){let i=t();r(n,i),n.replace(i,!0),a&&(e===a.anchor.key&&a.anchor.set(i.getKey(),a.anchor.offset,a.anchor.type),e===a.focus.key&&a.focus.set(i.getKey(),a.focus.offset,a.focus.type))}a&&e.is((0,n.vJq)())&&(0,n.n1P)(a)}function g(e){let t=y(e);return null!==t&&"vertical-rl"===t.writingMode}function y(e){let t=e.anchor.getNode();return(0,n.ff4)(t)?l(t):s(t)}function v(e,t){let r=g(e)?!t:t;b(e)&&(r=!r);let i=(0,n.Ave)(e.focus,r?"previous":"next");if((0,n.pGK)(i))return!1;for(let e of(0,n.mWO)(i)){if((0,n.cmH)(e))return!e.origin.isInline();if(!(0,n.ff4)(e.origin)){if((0,n.Cyw)(e.origin))return!0;break}}return!1}function b(e){let t=y(e);return null!==t&&"rtl"===t.direction}function w(e,t,r){let n,i=b(e);n=g(e)||i?!r:r,e.modify(t?"extend":"move",n,"character")}},83643:(e,t,r)=>{e.exports=r(6868).sortBy},83694:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,z:()=>i});var n=r(82159),i=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;let i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),o=i},83732:(e,t,r)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;let o=r(4378),a=r(25103);function l(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||"boolean"==typeof t)return;let i=n.RULES.keywords;for(let r in t)i[r]||m(e,`unknown keyword: "${r}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(let r in e)if(t[r])return!0;return!1}function u(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function d({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,a,l,s)=>{let u=void 0===l?a:l instanceof o.Name?(a instanceof o.Name?e(i,a,l):t(i,a,l),l):a instanceof o.Name?(t(i,l,a),a):r(a,l);return s!==o.Name||u instanceof o.Name?u:n(i,u)}}function f(e,t){if(!0===t)return e.var("props",!0);let r=e.var("props",(0,o._)`{}`);return void 0!==t&&h(e,r,t),r}function h(e,t,r){Object.keys(r).forEach(r=>e.assign((0,o._)`${t}${(0,o.getProperty)(r)}`,!0))}t.toHash=function(e){let t={};for(let r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(l(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=l,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return(0,o._)`${r}`}return(0,o._)`${e}${t}${(0,o.getProperty)(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(u(e))},t.escapeJsonPointer=u,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)},t.mergeEvaluated={props:d({mergeNames:(e,t,r)=>e.if((0,o._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,o._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,o._)`${r} || {}`).code((0,o._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,o._)`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,o._)`${r} || {}`),h(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:f}),items:d({mergeNames:(e,t,r)=>e.if((0,o._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,o._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,o._)`${r} !== true`,()=>e.assign(r,!0===t||(0,o._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>
51e.var("items",t)})},t.evaluatedPropsToName=f,t.setEvaluated=h;let p={};function m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:p[t.code]||(p[t.code]=new a._Code(t.code))})},(i=n||(t.Type=n={}))[i.Num=0]="Num",i[i.Str=1]="Str",t.getErrorPath=function(e,t,r){if(e instanceof o.Name){let i=t===n.Num;return r?i?(0,o._)`"[" + ${e} + "]"`:(0,o._)`"['" + ${e} + "']"`:i?(0,o._)`"/" + ${e}`:(0,o._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,o.getProperty)(e).toString():"/"+u(e)},t.checkStrictMode=m},83990:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(12600),i=r(53443);let o=(e,t)=>{let r;if(!e)return null;if(-1===t.indexOf("."))return(0,n.r)(e,!0);let o={},a=t.split(".");return r=Number.isNaN(Number(a[a.length-1]))?t.substring(0,t.lastIndexOf(".")+1):`${t}.`,Object.keys(e).forEach(t=>{e[t]?.disableFormData||0!==t.indexOf(r)||(o[t.replace(r,"")]=e[t]?.value)}),(0,i.s)(o)}},84224:(e,t,r)=>{"use strict";function n(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}r.d(t,{g:()=>n})},84609:(e,t,r)=>{"use strict";r.d(t,{DefaultNavClient:()=>h});var n=r(19749),i=r(95155),o=r(18863),a=r(11022),l=r(89286),s=r(73299),u=r(35120),c=r(73321),d=r(52735),f=r(12115);let h=e=>{let t,r=(0,n.c)(13),{groups:h,navPreferences:p}=e,m=(0,c.usePathname)(),{config:g}=(0,a.c)(),{admin:y,folders:v,routes:b}=g,{routes:w}=y,{browseByFolder:x}=w,{admin:_}=b,{i18n:S}=(0,l.d)();if(r[0]!==_||r[1]!==v||r[2]!==x||r[3]!==h||r[4]!==S||r[5]!==p?.groups||r[6]!==m){let e,n=(0,d.Q)({adminRoute:_,path:x}),a=m.startsWith(n);r[8]!==_||r[9]!==S||r[10]!==p?.groups||r[11]!==m?(e=(e,t)=>{let{entities:r,label:n}=e;return(0,i.jsx)(s.NavGroup,{isOpen:p?.groups?.[n]?.open,label:n,children:r.map((e,t)=>{let r,n,{slug:a,type:l,label:c}=e;l===u.ck.collection&&(r=(0,d.Q)({adminRoute:_,path:`/collections/${a}`}),n=`nav-${a}`),l===u.ck.global&&(r=(0,d.Q)({adminRoute:_,path:`/globals/${a}`}),n=`nav-global-${a}`);let f=m.startsWith(r)&&["/",void 0].includes(m[r.length]),h=(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)("div",{className:"nav__link-indicator"}),(0,i.jsx)("span",{className:"nav__link-label",children:(0,o.s)(c,S)})]});return m===r?(0,i.jsx)("div",{className:"nav__link",id:n,children:h},t):(0,i.jsx)(s.Link,{className:"nav__link",href:r,id:n,prefetch:!1,children:h},t)})},t)},r[8]=_,r[9]=S,r[10]=p?.groups,r[11]=m,r[12]=e):e=r[12],t=(0,i.jsxs)(f.Fragment,{children:[v&&v.browseByFolder&&(0,i.jsx)(s.BrowseByFolderButton,{active:a}),h.map(e)]}),r[0]=_,r[1]=v,r[2]=x,r[3]=h,r[4]=S,r[5]=p?.groups,r[6]=m,r[7]=t}else t=r[7];return t}},84675:(e,t,r)=>{"use strict";r.d(t,{NavWrapper:()=>a});var n=r(19749),i=r(95155),o=r(73299);r(12115);let a=e=>{let t,r,a=(0,n.c)(11),{baseClass:l,children:s}=e,{hydrated:u,navOpen:c,navRef:d,shouldAnimate:f}=(0,o.useNav)(),h=c&&`${l}--nav-open`,p=f&&`${l}--nav-animate`,m=u&&`${l}--nav-hydrated`;a[0]!==l||a[1]!==h||a[2]!==p||a[3]!==m?(t=[l,h,p,m].filter(Boolean),a[0]=l,a[1]=h,a[2]=p,a[3]=m,a[4]=t):t=a[4];let g=t.join(" "),y=!c||void 0,v=`${l}__scroll`;return a[5]!==s||a[6]!==d||a[7]!==g||a[8]!==y||a[9]!==v?(r=(0,i.jsx)("aside",{className:g,inert:y,children:(0,i.jsx)("div",{className:v,ref:d,children:s})}),a[5]=s,a[6]=d,a[7]=g,a[8]=y,a[9]=v,a[10]=r):r=a[10],r}},84957:(e,t,r)=>{"use strict";r.d(t,{FolderTableCellClient:()=>u});var n=r(95155),i=r(52735),o=r(12115),a=r(11022),l=r(89286),s=r(73299);let u=({collectionSlug:e,data:t,docTitle:r,folderCollectionSlug:u,folderFieldName:c,viewType:d})=>{let f=t.id,h=t?.[c],{config:p}=(0,a.c)(),{t:m}=(0,l.d)(),[g,y]=o.useState(()=>h?`${m("general:loading")}...`:m("folder:noFolder")),[v,b]=o.useState(h),w=o.useRef(!1),x=o.useCallback(async({id:t,name:r})=>{try{await fetch((0,i.Q)({apiRoute:p.routes.api,path:`/${e}/${f}`}),{body:JSON.stringify({[c]:t}),credentials:"include",headers:{"Content-Type":"application/json"},method:"PATCH"}),b(t),y(r||m("folder:noFolder"))}catch(e){console.error("Error moving document to folder",e)}},[p.routes.api,e,f,c,m]);return(0,o.useEffect)(()=>{let e=async()=>{try{let e=await fetch((0,i.Q)({apiRoute:p.routes.api,path:`/${u}${h?`/${h}`:""}`}),{credentials:"include",headers:{"Content-Type":"application/json"},method:"GET"}),t=await e.json();y(t?.name||m("folder:noFolder"))}catch(e){console.error("Error moving document to folder",e)}};w.current||(e(),w.current=!0)},[p.routes.api,u,h,m]),(0,n.jsx)(s.MoveDocToFolderButton,{buttonProps:{disabled:"trash"===d,size:"small"},collectionSlug:e,docData:t,docID:f,docTitle:r,folderCollectionSlug:u,folderFieldName:c,fromFolderID:v,fromFolderName:g,modalSlug:`move-doc-to-folder-cell--${f}`,onConfirm:x,skipConfirmModal:!1})}},85092:(e,t,r)=>{"use strict";r.d(t,{VersionsPill:()=>a});var n=r(19749),i=r(95155),o=r(73299);r(12115);let a=()=>{let e,t=(0,n.c)(2),{versionCount:r}=(0,o.useDocumentInfo)();return r?(t[0]!==r?(e=(0,i.jsx)("span",{className:"pill-version-count",children:r}),t[0]=r,t[1]=e):e=t[1],e):null}},85118:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
510 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},85545:(e,t,r)=>{"use strict";r.d(t,{dL:()=>w,h8:()=>v,qY:()=>_});var n=r(12115),i=r(85663),o=r(11058),a=r(16787),l=r(92191),s=r(55359),u=r(10483),c=r(51531),d=r(74254),f=["valueAccessor"],h=["dataKey","clockWise","id","textBreakAll","zIndex"];function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var g=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if((0,d.Gt)(t))return t},y=(0,n.createContext)(void 0),v=y.Provider,b=(0,n.createContext)(void 0),w=b.Provider;function x(e){var{valueAccessor:t=g}=e,r=m(e,f),{dataKey:d,clockWise:v,id:w,textBreakAll:x,zIndex:_}=r,S=m(r,h),k=(0,n.useContext)(y),O=(0,n.useContext)(b),C=k||O;return C&&C.length?n.createElement(u.g,{zIndex:null!=_?_:c.I.label},n.createElement(o.W,{className:"recharts-label-list"},C.map((e,o)=>{var u,c=(0,l.uy)(d)?t(e,o):(0,a.kr)(e.payload,d),f=(0,l.uy)(w)?{}:{id:"".concat(w,"-").concat(o)};return n.createElement(i.JU,p({key:"label-".concat(o)},(0,s.a)(e),S,f,{fill:null!=(u=r.fill)?u:e.fill,parentViewBox:e.parentViewBox,value:c,textBreakAll:x,viewBox:e.viewBox,index:o,zIndex:0}))}))):null}function _(e){var{label:t}=e;return t?!0===t?n.createElement(x,{key:"labelList-implicit"}):n.isValidElement(t)||(0,i.ZY)(t)?n.createElement(x,{key:"labelList-implicit",content:t}):"object"==typeof t?n.createElement(x,p({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}x.displayName="LabelList"},85663:(e,t,r)=>{"use strict";r.d(t,{zJ:()=>k,_I:()=>N,JU:()=>A,ZY:()=>E});var n=r(12115),i=r(29722),o=r(74254),a=r(92191),l=r(21739),s=r(65372),u=r(10365),c=r(68976),d=r(43527),f=r(55359),h=r(10483),p=r(51531);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=["labelRef"],v=["content"];function b(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var S=(0,n.createContext)(null),k=e=>{var{x:t,y:r,upperWidth:i,lowerWidth:o,width:a,height:l,children:s}=e,u=(0,n.useMemo)(()=>({x:t,y:r,upperWidth:i,lowerWidth:o,width:a,height:l}),[t,r,i,o,a,l]);return n.createElement(S.Provider,{value:u},s)},O=()=>{var e=(0,n.useContext)(S),t=(0,s.sk)();return e||(t?(0,s.qC)(t):void 0)},C=(0,n.createContext)(null),E=e=>null!=e&&"function"==typeof e,T=e=>null!=e&&"cx"in e&&(0,a.Et)(e.cx),M={angle:0,offset:5,zIndex:p.I.label,position:"middle",textBreakAll:!1};function A(e){var t,r,p,m,w,S=(0,d.e)(e,M),{viewBox:k,parentViewBox:E,position:A,value:N,children:P,content:j,className:I="",textBreakAll:D,labelRef:$}=S,R=(t=(0,n.useContext)(C),r=(0,u.G)(c.D0),t||r),L=O(),z=function(e){if(!T(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=2*n;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}(p=null==k?"center"===A?L:null!=R?R:L:T(k)?k:(0,s.qC)(k));if(!p||(0,a.uy)(N)&&(0,a.uy)(P)&&!(0,n.isValidElement)(j)&&"function"!=typeof j)return null;var F=x(x({},S),{},{viewBox:p});if((0,n.isValidElement)(j)){var{labelRef:B}=F,K=b(F,y);return(0,n.cloneElement)(j,K)}if("function"==typeof j){var{content:U}=F,W=b(F,v);if(m=(0,n.createElement)(j,W),(0,n.isValidElement)(m))return m}else m=(e=>{var{value:t,formatter:r}=e,n=(0,a.uy)(e.children)?t:e.children;return"function"==typeof r?r(n):n})(S);var H=(0,f.a)(S);if(T(p)){if("insideStart"===A||"insideEnd"===A||"end"===A)return((e,t,r,o,s)=>{var u,c,{offset:d,className:f}=e,{cx:h,cy:p,innerRadius:m,outerRadius:g,startAngle:y,endAngle:v,clockWise:b}=s,w=(m+g)/2,x=(0,a.sA)(v-y)*Math.min(Math.abs(v-y),360),S=x>=0?1:-1;switch(t){case"insideStart":u=y+S*d,c=b;break;case"insideEnd":u=v-S*d,c=!b;break;case"end":u=v+S*d,c=b;break;default:throw Error("Unsupported position ".concat(t))}c=x<=0?c:!c;var k=(0,l.IZ)(h,p,w,u),O=(0,l.IZ)(h,p,w,u+(c?1:-1)*359),C="M".concat(k.x,",").concat(k.y,"\n A").concat(w,",").concat(w,",0,1,").concat(+!c,",\n ").concat(O.x,",").concat(O.y),E=(0,a.uy)(e.id)?(0,a.NF)("recharts-radial-line-"):e.id;return n.createElement("text",_({},o,{dominantBaseline:"central",className:(0,i.$)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:E,d:C})),n.createElement("textPath",{xlinkHref:"#".concat(E)},r))})(S,A,m,H,p);w=((e,t,r)=>{var{cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:u}=e,c=(s+u)/2;if("outside"===r){var{x:d,y:f}=(0,l.IZ)(n,i,a+t,c);return{x:d,y:f,textAnchor:d>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var{x:h,y:p}=(0,l.IZ)(n,i,(o+a)/2,c);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}})(p,S.offset,S.position)}else{if(!z)return null;var q=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i,clamp:o}=e,{x:l,y:u,height:c,upperWidth:d,lowerWidth:f}=(0,s.qC)(t),h=l+(d-f)/2,p=(l+h)/2,m=(d+f)/2,y=c>=0?1:-1,v=y*n,b=y>0?"end":"start",w=y>0?"start":"end",x=d>=0?1:-1,_=x*n,S=x>0?"end":"start",k=x>0?"start":"end";if("top"===r){var O={x:l+d/2,y:u-v,horizontalAnchor:"middle",verticalAnchor:b};return o&&i&&(O.height=Math.max(u-i.y,0),O.width=d),O}if("bottom"===r){var C={x:h+f/2,y:u+c+v,horizontalAnchor:"middle",verticalAnchor:w};return o&&i&&(C.height=Math.max(i.y+i.height-(u+c),0),C.width=f),C}if("left"===r){var E={x:p-_,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"};return o&&i&&(E.width=Math.max(E.x-i.x,0),E.height=c),E}if("right"===r){var T={x:p+m+_,y:u+c/2,horizontalAnchor:k,verticalAnchor:"middle"};return o&&i&&(T.width=Math.max(i.x+i.width-T.x,0),T.height=c),T}var M=o&&i?{width:m,height:c}:{};return"insideLeft"===r?g({x:p+_,y:u+c/2,horizontalAnchor:k,verticalAnchor:"middle"},M):"insideRight"===r?g({x:p+m-_,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"},M):"insideTop"===r?g({x:l+d/2,y:u+v,horizontalAnchor:"middle",verticalAnchor:w},M):"insideBottom"===r?g({x:h+f/2,y:u+c-v,horizontalAnchor:"middle",verticalAnchor:b},M):"insideTopLeft"===r?g({x:l+_,y:u+v,horizontalAnchor:k,verticalAnchor:w},M):"insideTopRight"===r?g({x:l+d-_,y:u+v,horizontalAnchor:S,verticalAnchor:w},M):"insideBottomLeft"===r?g({x:h+_,y:u+c-v,horizontalAnchor:k,verticalAnchor:b},M):"insideBottomRight"===r?g({x:h+f-_,y:u+c-v,horizontalAnchor:S,verticalAnchor:b},M):r&&"object"==typeof r&&((0,a.Et)(r.x)||(0,a._3)(r.x))&&((0,a.Et)(r.y)||(0,a._3)(r.y))?g({x:l+(0,a.F4)(r.x,m),y:u+(0,a.F4)(r.y,c),horizontalAnchor:"end",verticalAnchor:"end"},M):g({x:l+d/2,y:u+c/2,horizontalAnchor:"middle",verticalAnchor:"middle"},M)})({viewBox:z,position:A,offset:S.offset,parentViewBox:T(E)?void 0:E,clamp:!0});w=x(x({x:q.x,y:q.y,textAnchor:q.horizontalAnchor,verticalAnchor:q.verticalAnchor},void 0!==q.width?{width:q.width}:{}
51),void 0!==q.height?{height:q.height}:{})}return n.createElement(h.g,{zIndex:S.zIndex},n.createElement(o.EY,_({ref:$,className:(0,i.$)("recharts-label",I)},H,w,{textAnchor:(0,o.fU)(H.textAnchor)?H.textAnchor:w.textAnchor,breakAll:D}),m))}function N(e){var{label:t,labelRef:r}=e;return((e,t,r)=>{if(!e)return null;var i={viewBox:t,labelRef:r};return!0===e?n.createElement(A,_({key:"label-implicit"},i)):(0,a.vh)(e)?n.createElement(A,_({key:"label-implicit",value:e},i)):(0,n.isValidElement)(e)?e.type===A?(0,n.cloneElement)(e,x({key:"label-implicit"},i)):n.createElement(A,_({key:"label-implicit",content:e},i)):E(e)?n.createElement(A,_({key:"label-implicit",content:e},i)):e&&"object"==typeof e?n.createElement(A,_({},e,{key:"label-implicit"},i)):null})(t,O(),r)||null}A.displayName="Label"},85758:(e,t,r)=>{"use strict";r.d(t,{a:()=>m,b:()=>g});var n=r(8201),i=r(19749),o=r(95155),a=r(73299),l=r(12115),s=r(36629),u=r(89286),c=r(35120),d=r(54904),f=r(91010),h=r(53310),p=({data:e,featureKey:t,fieldMapOverride:r,handleDrawerSubmit:i,schemaFieldsPathOverride:h,schemaPath:p,schemaPathSuffix:m})=>{let{t:g}=(0,u.d)(),{id:y,collectionSlug:v,getDocPreferences:b,globalSlug:w}=(0,a.useDocumentInfo)(),{fields:x}=(0,a.useDocumentForm)(),_=(0,s.a)(),S=(0,l.useRef)(new AbortController),[k,O]=(0,l.useState)(!1),{fieldProps:{featureClientSchemaMap:C}}=(0,n.b)(),{getFormState:E}=(0,a.useServerFunctions)(),T=h??`${p}.lexical_internal_feature.${t}${m?`.${m}`:""}`,M=r??C[t]?.[T],A=(0,a.useEffectEvent)(async t=>{let{state:r}=await E({id:y,collectionSlug:v,data:e??{},docPermissions:{fields:!0},docPreferences:await b(),documentFormState:(0,d.KS)(x,{excludeFiles:!0}),globalSlug:w,initialBlockData:e,operation:"update",readOnly:!_,renderAllFields:!0,schemaPath:T,signal:t.signal});O(r)});(0,l.useEffect)(()=>{let e=new AbortController;return A(e),()=>{(0,c.eS)(e)}},[T,y,e,E,v,_,w,b]);let N=(0,l.useCallback)(async({formState:e})=>{(0,c.eS)(S.current);let t=new AbortController;S.current=t;let{state:r}=await E({id:y,collectionSlug:v,docPermissions:{fields:!0},docPreferences:await b(),documentFormState:(0,d.KS)(x,{excludeFiles:!0}),formState:e,globalSlug:w,initialBlockFormState:e,operation:"update",readOnly:!_,schemaPath:T,signal:t.signal});return r||e},[E,y,_,v,b,x,w,T]);return(0,l.useEffect)(()=>()=>{(0,c.eS)(S.current)},[]),!1===k?null:(0,o.jsxs)(a.Form,{beforeSubmit:[N],disableValidationOnSubmit:!0,fields:Array.isArray(M)?M:[],initialState:k,onChange:[N],onSubmit:i,uuid:(0,f.A)(),children:[(0,o.jsx)(a.RenderFields,{fields:Array.isArray(M)?M:[],forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:T,permissions:!0,readOnly:!_}),(0,o.jsx)(a.FormSubmit,{children:g("fields:saveChanges")})]})},m=e=>{let t,r=(0,i.c)(15),{className:n,data:l,drawerSlug:s,drawerTitle:u,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:f,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:g}=e,{closeModal:y}=(0,a.useModal)(),v=u??"",b;return r[0]!==y||r[1]!==s||r[2]!==f?(b=(e,t)=>{y(s),setTimeout(()=>{f(e,t)},1)},r[0]=y,r[1]=s,r[2]=f,r[3]=b):b=r[3],r[4]!==n||r[5]!==l||r[6]!==s||r[7]!==c||r[8]!==d||r[9]!==h||r[10]!==m||r[11]!==g||r[12]!==v||r[13]!==b?(t=(0,o.jsx)(a.EditDepthProvider,{children:(0,o.jsx)(a.Drawer,{className:n,slug:s,title:v,children:(0,o.jsx)(p,{data:l,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:b,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:g})})}),r[4]=n,r[5]=l,r[6]=s,r[7]=c,r[8]=d,r[9]=h,r[10]=m,r[11]=g,r[12]=v,r[13]=b,r[14]=t):t=r[14],t},g=(0,h.guI)("INSERT_UPLOAD_WITH_DRAWER_COMMAND")},85802:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});let n=Math.PI,i=2*n,o=i-1e-6;function a(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class l{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?a:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n}
51,${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,i,o){if(e*=1,t*=1,r*=1,i*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let a=this._x1,l=this._y1,s=r-e,u=i-t,c=a-e,d=l-t,f=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>1e-6)if(Math.abs(d*s-u*c)>1e-6&&o){let h=r-a,p=i-l,m=s*s+u*u,g=Math.sqrt(m),y=Math.sqrt(f),v=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*g*y)))/2),b=v/y,w=v/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*d}`,this._append`A${o},${o},0,0,${+(d*h>c*p)},${this._x1=e+w*s},${this._y1=t+w*u}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,a,l,s){if(e*=1,t*=1,r*=1,s=!!s,r<0)throw Error(`negative radius: ${r}`);let u=r*Math.cos(a),c=r*Math.sin(a),d=e+u,f=t+c,h=1^s,p=s?a-l:l-a;null===this._x1?this._append`M${d},${f}`:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&this._append`L${d},${f}`,r&&(p<0&&(p=p%i+i),p>o?this._append`A${r},${r},0,1,${h},${e-u},${t-c}A${r},${r},0,1,${h},${this._x1=d},${this._y1=f}`:p>1e-6&&this._append`A${r},${r},0,${+(p>=n)},${h},${this._x1=e+r*Math.cos(l)},${this._y1=t+r*Math.sin(l)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function s(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new l(t)}l.prototype},86505:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>e?e.or&&!e.and?{or:e.or.map(e=>e.and?e:{and:[e]})}:e.and&&!e.or?{or:[{and:e.and}]}:e.or||e.and?e:{or:[{and:[e]}]}:{}},86901:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
51],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},86954:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function i(e){return"string"==typeof e&&n.includes(e)}},87284:()=>{},87384:(e,t,r)=>{"use strict";r.d(t,{f:()=>d});var n=r(92191),i=r(53157),o=r(89933),a=function(e){var{width:t,height:r}=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n%180+180)%180*Math.PI/180,o=Math.atan(r/t);return Math.abs(i>o&&i<Math.PI-o?r/Math.sin(i):t/Math.cos(i))};function l(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];void 0!==i&&r.push(i)}return r}function s(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){var u,{tick:d,ticks:f,viewBox:h,minTickGap:p,orientation:m,interval:g,tickFormatter:y,unit:v,angle:b}=e;if(!f||!f.length||!d)return[];if((0,n.Et)(g)||o.m.isSsr)return null!=(u=l(f,((0,n.Et)(g)?g:0)+1))?u:[];var w="top"===m||"bottom"===m?"width":"height",x=v&&"width"===w?(0,i.Pu)(v,{fontSize:t,letterSpacing:r}):{width:0,height:0},_=(e,n)=>{var o,l="function"==typeof y?y(e.value,n):e.value;return"width"===w?(o=(0,i.Pu)(l,{fontSize:t,letterSpacing:r}),a({width:o.width+x.width,height:o.height+x.height},b)):(0,i.Pu)(l,{fontSize:t,letterSpacing:r})[w]},S=f[0],k=f[1],O=f.length>=2&&null!=S&&null!=k?(0,n.sA)(k.coordinate-S.coordinate):1,C=function(e,t,r){var n="width"===r,{x:i,y:o,width:a,height:l}=e;return 1===t?{start:n?i:o,end:n?i+a:o+l}:{start:n?i+a:o+l,end:n?i:o}}(h,O,w);return"equidistantPreserveStart"===g?function(e,t,r,n,i){for(var o,a=(n||[]).slice(),{start:u,end:c}=t,d=0,f=1,h=u;f<=a.length;)if(o=function(){var t,o=null==n?void 0:n[d];if(void 0===o)return{v:l(n,f)};var a=d,p=()=>(void 0===t&&(t=r(o,a)),t),m=o.coordinate,g=0===d||s(e,m,p,h,c);g||(d=0,h=u,f+=1),g&&(h=m+e*(p()/2+i),d+=f)}())return o.v;return[]}(O,C,_,f,p):"equidistantPreserveEnd"===g?function(e,t,r,n,i){var o=(n||[]).slice().length;if(0===o)return[];for(var{start:a,end:l}=t,u=1;u<=o;u++){for(var c,d=(o-1)%u,f=a,h=!0,p=d;p<o&&(0===(c=function(){var t,o=n[p];if(null==o)return 0;var a=p,u=()=>(void 0===t&&(t=r(o,a)),t),c=o.coordinate,m=p===d||s(e,c,u,f,l);if(!m)return h=!1,1;m&&(f=c+e*(u()/2+i))}())||1!==c);p+=u);if(h){for(var m=[],g=d;g<o;g+=u){var y=n[g];null!=y&&m.push(y)}return m}}return[]}(O,C,_,f,p):("preserveStart"===g||"preserveStartEnd"===g?function(e,t,r,n,i,o){var a=(n||[]).slice(),l=a.length,{start:u,end:d}=t;if(o){var f=n[l-1];if(null!=f){var h=r(f,l-1),p=e*(f.coordinate+e*h/2-d);a[l-1]=f=c(c({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate}),null!=f.tickCoord&&s(e,f.tickCoord,()=>h,u,d)&&(d=f.tickCoord-e*(h/2+i),a[l-1]=c(c({},f),{},{isShow:!0}))}}for(var m=o?l-1:l,g=function(t){var n,o=a[t];if(null==o)return 1;var l=o,f=()=>(void 0===n&&(n=r(o,t)),n);if(0===t){var h=e*(l.coordinate-e*f()/2-u);a[t]=l=c(c({},l),{},{tickCoord:h<0?l.coordinate-h*e:l.coordinate})}else a[t]=l=c(c({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&s(e,l.tickCoord,f,u,d)&&(u=l.tickCoord+e*(f()/2+i),a[t]=c(c({},l),{},{isShow:!0}))},y=0;y<m;y++)if(g(y))continue;return a}(O,C,_,f,p,"preserveStartEnd"===g):function(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,{start:l}=t,{end:u}=t,d=function(t){var n,d=o[t];if(null==d)return 1;var f=d,h=()=>(void 0===n&&(n=r(d,t)),n);if(t===a-1){var p=e*(f.coordinate+e*h()/2-u);o[t]=f=c(c({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate})}else o[t]=f=c(c({},f),{},{tickCoord:f.coordinate});null!=f.tickCoord&&s(e,f.tickCoord,h,l,u)&&(u=f.tickCoord-e*(h()/2+i),o[t]=c(c({},f),{},{isShow:!0}))},f=a-1;f>=0;f--)if(d(f))continue;return o}(O,C,_,f,p)).filter(e=>e.isShow)}},87485:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(16787);function i(e,t,r){return"auto"!==r?r:null!=e?(0,n._L)(e,t)?"category":"number":void 0}},87561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;let n=r(4378),i=r(83732),o=r(89034);function a(e,t,r=e.schema){let{gen:o,parentSchema:l,data:s,keyword:u,it:c}=e;(function(e){let{opts:n,errSchemaPath:o}=c,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){let e=`"${u}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,n.strictTuples)}})(l),c.opts.unevaluated&&r.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,r.length,c.items));let d=o.name("valid"),f=o.const("len",(0,n._)`${s}.length`);r.forEach((t,r)=>{(0,i.alwaysValidSchema)(c,t)||(o.if((0,n._)`${f} > ${r}`,()=>e.subschema({keyword:u,schemaProp:r,dataProp:r},d)),e.ok(d))})}t.validateTuple=a,t.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}}},88011:(e,t,r)=>{"use strict";
51Object.defineProperty(t,"__esModule",{value:!0});let n=r(67463);n.code='require("ajv/dist/runtime/uri").default',t.default=n},88068:(e,t,r)=>{"use strict";r.d(t,{L:()=>function e(t=[],r){let{i18n:o,keepPresentationalFields:a,labelPrefix:l,moveSubFieldsToTop:s=!1,pathPrefix:u}="boolean"==typeof r?{keepPresentationalFields:r}:r??{};return t.reduce((t,c)=>{if("group"===c.type&&"fields"in c)if(s){let r="name"in c&&"string"==typeof c.name&&!!c.name,i="name"in c?c.name:void 0,d="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,f=l?`${l} > ${d??i}`:d??i,h="name"in c&&c.name?u?`${u}.${c.name}`:c.name:u;t.push(c,...e(c.fields,{i18n:o,keepPresentationalFields:a,labelPrefix:r?f:l,moveSubFieldsToTop:s,pathPrefix:r?h:u}))}else(0,i.Z7)(c)?t.push(c):t.push(...e(c.fields,r));else if("tabs"===c.type&&"tabs"in c)return[...t,...c.tabs.reduce((t,c)=>{if(!(0,i.pz)(c))return[...t,...e(c.fields,r)];if(!s)return[...t,{...c,type:"tab"}];{let r="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,i=l?`${l} > ${r??c.name}`:r??c.name,d=c.name?u?`${u}.${c.name}`:c.name:u;return[...t,...e(c.fields,{i18n:o,keepPresentationalFields:a,labelPrefix:i,moveSubFieldsToTop:s,pathPrefix:d})]}},[])];else if((0,i.sd)(c)&&["collapsible","row"].includes(c.type))t.push(...e(c.fields,r));else if((0,i.Z7)(c)||a&&(0,i.aO)(c)){if("id"===c.name&&void 0!==l)return t;let e="label"in c&&c.label&&o?(0,n.s)(c.label,o):void 0,r="name"in c?c.name:void 0,i=void 0!==u||void 0!==l;t.push({...c,...s&&i&&{accessor:u&&r?`${u}.${r}`:r??"",labelWithPrefix:l?`${l} > ${e??r}`:e??r}})}return t},[])}});var n=r(18863),i=r(96405)},88101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(87561);t.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")}},88161:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>{setTimeout(t,e)})}r.d(t,{u:()=>n})},88973:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=({allowAbsoluteUrls:e=!1,fallbackTo:t="/",redirectTo:r})=>{let n;if("string"!=typeof r)return t;try{n=decodeURIComponent(r.trim())}catch{return t}let i=n.startsWith("/")&&!n.startsWith("//")&&!n.startsWith("/%2F")&&!n.startsWith("/\\/")&&!n.startsWith("/\\\\")&&!n.startsWith("/\\")&&!n.toLowerCase().startsWith("/javascript:")&&!n.toLowerCase().startsWith("/http"),o=e&&/^https?:\/\/\S+$/i.test(n);return i||o?n:t}},89010:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(91050);t.isMatch=function(e,t){return n.isMatchWith(e,t,()=>void 0)}},89034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;let n=r(4378),i=r(83732),o=r(20804),a=r(83732);function l(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}function s(e,t,r){return(0,n._)`${l(e)}.call(${t}, ${r})`}
51function u(e,t,r,i){let o=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(o,(0,n.not)(s(e,t,r))):o}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){let{gen:r,data:i,it:o}=e;r.if(u(r,i,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,n._)`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,o){return(0,n.or)(...i.map(i=>(0,n.and)(u(e,t,i,r.ownProperties),(0,n._)`${o} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=l,t.isOwnProperty=s,t.propertyInData=function(e,t,r,i){let o=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return i?(0,n._)`${o} && ${s(e,t,r)}`:o},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter(r=>!(0,i.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:a,errorPath:l},it:s},u,c,d){let f=d?(0,n._)`${e}, ${t}, ${i}${a}`:t,h=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,l)],[o.default.parentData,s.parentData],[o.default.parentDataProperty,s.parentDataProperty],[o.default.rootData,o.default.rootData]];s.opts.dynamicRef&&h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let p=(0,n._)`${f}, ${r.object(...h)}`;return c!==n.nil?(0,n._)`${u}.call(${c}, ${p})`:(0,n._)`${u}(${p})`};let d=(0,n._)`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,l=o(r,i);return e.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,n._)`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${r}, ${i})`})},t.validateArray=function(e){let{gen:t,data:r,keyword:o,it:a}=e,l=t.name("valid");if(a.allErrors){let e=t.let("valid",!0);return s(()=>t.assign(e,!1)),e}return t.var(l,!0),s(()=>t.break()),l;function s(a){let s=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,s,r=>{e.subschema({keyword:o,dataProp:r,dataPropType:i.Type.Num},l),t.if((0,n.not)(l),a)})}},t.validateUnion=function(e){let{gen:t,schema:r,keyword:o,it:a}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some(e=>(0,i.alwaysValidSchema)(a,e))&&!a.opts.unevaluated)return;let l=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((r,i)=>{let a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},s);t.assign(l,(0,n._)`${l} || ${s}`),e.mergeValidEvaluated(a,s)||t.if((0,n.not)(l))})),e.result(l,()=>e.reset(),()=>e.error(!0))}},89043:(e,t,r)=>{"use strict";var n=r(12115);n.useSyncExternalStore,n.useRef,n.useEffect,n.useMemo,n.useDebugValue},89533:(e,t,r)=>{"use strict";r.d(t,{S3ClientUploadHandler:()=>s});var n=r(95155),i=r(73299),o=r(11022),a=r(12115),l=r(52735);let s=(({handler:e})=>function({children:t,collectionSlug:r,enabled:l,extra:s,prefix:u,serverHandlerPath:c}){let{setUploadHandler:d}=(0,i.useUploadHandlers)(),{config:{routes:{api:f},serverURL:h}}=(0,o.c)(),p=(0,i.useEffectEvent)(()=>{l&&d({collectionSlug:r,handler:({docPrefix:t,file:n,updateFilename:i})=>e({apiRoute:f,collectionSlug:r,docPrefix:t,extra:s,file:n,prefix:u,serverHandlerPath:c,serverURL:h,updateFilename:i})})});return(0,a.useEffect)(()=>{p()},[]),(0,n.jsx)(a.Fragment,{children:t})})({handler:async({apiRoute:e,collectionSlug:t,docPrefix:r,file:n,serverHandlerPath:i,serverURL:o,updateFilename:a})=>{let s=(0,l.Q)({apiRoute:e,path:i,serverURL:o}),u=await fetch(s,{body:JSON.stringify({collectionSlug:t,docPrefix:r,filename:n.name,filesize:n.size,mimeType:n.type}),credentials:"include",method:"POST"});if(!u.ok){let{errors:e}=await u.json();throw Error(e.reduce((e,t)=>`${e?`${e}, `:""}${t.message}`,""))}let{docPrefix:c,filename:d,url:f}=await u.json();return d&&d!==n.name&&a(d),await fetch(f,{body:n,headers:{"Content-Length":n.size.toString(),"Content-Type":n.type},method:"PUT"}),{prefix:c}}})},89901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;let n=r(58837),i=r(37691),o=r(50038),a=r(2426),l=["/properties"],s="http://json-schema.org/draft-07/schema";class u extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e
51=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=r(97489);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=r(4378);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(80081);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(77208);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},89920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732);t.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:r,parentSchema:o,it:a}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;let l=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(function(){r.forEach((r,o)=>{let c;(0,i.alwaysValidSchema)(a,r)?t.var(u,!0):c=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if((0,n._)`${u} && ${l}`).assign(l,!1).assign(s,(0,n._)`[${s}, ${o}]`).else(),t.if(u,()=>{t.assign(l,!0),t.assign(s,o),c&&e.mergeEvaluated(c,n.Name)})})}),e.result(l,()=>e.reset(),()=>e.error(!0))}}},89933:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n={devToolsEnabled:!0,isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout)}},89974:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},89978:(e,t,r)=>{"use strict";r.d(t,{a:()=>O,b:()=>C,c:()=>x,d:()=>_,e:()=>S});var n=r(3202),i=r(8201),o=r(95155),a=r(36997),l=r(36629),s=r(18863),u=r(89286),c=r(73299),d=r(11022),f=r(35120),h=r(53310),p=r(54904),m=r(12600),g=r(12115),y=r(91010),v=r(72135),b=class extends h.Kp7{__cacheBuster;__fields;constructor({cacheBuster:e,fields:t,key:r}){super(r),this.__fields=t,this.__cacheBuster=e||0}static clone(e){return new this({cacheBuster:e.__cacheBuster,fields:e.__fields,key:e.__key})}static getType(){return"inlineBlock"}static importDOM(){return{}}static importJSON(e){var t;return t=e.fields,(0,h.pTq)(new b({fields:{...t,id:t?.id||new v.default().toHexString()}}))}static isInline(){return!1}canIndent(){return!0}createDOM(e){let t=document.createElement("span");return(0,h.ZB7)(t,e?.theme?.inlineBlock),t}decorate(e,t){return null}exportDOM(){let e=document.createElement("span");e.classList.add("inline-block-container");let t=document.createTextNode(this.getTextContent());return e.append(t),{element:e}}exportJSON(){return{type:"inlineBlock",fields:this.getFields(),version:1}}getCacheBuster(){return this.getLatest().__cacheBuster}getFields(){return this.getLatest().__fields}getTextContent(){return"Block Field"}isInline(){return!0}setFields(e,t){let r=this.getWritable();r.__fields=e,t||r.__cacheBuster++}updateDOM(){return!1}},w=g.lazy(()=>r.e(8443).then(r.bind(r,8443)).then(e=>({default:e.InlineBlockComponent}))),x=class extends b{static clone(e){return super.clone(e)}static getType(){return super.getType()}static importJSON(e){return _(e.fields)}decorate(...[e,t,r,n]){return(0,o.jsx)(w,{cacheBuster:this.getCacheBuster(),className:t.theme.inlineBlock??"LexicalEditorTheme__inlineBlock",CustomBlock:r,CustomLabel:n,formData:this.getFields(),nodeKey:this.getKey()})}
51exportJSON(){return super.exportJSON()}};function _(e){return(0,h.pTq)(new x({fields:{...e,id:e?.id||new v.default().toHexString()}}))}function S(e){return e instanceof x}var k=(0,g.createContext)({initialState:!1}),O=()=>g.use(k),C=e=>{let{cacheBuster:t,className:r,CustomBlock:v,CustomLabel:b,formData:w,nodeKey:x}=e,[_]=(0,a.DF)(),C=(0,l.a)(),{i18n:E,t:T}=(0,u.d)(),{createdInlineBlock:M,fieldProps:{featureClientSchemaMap:A,initialLexicalFormState:N,schemaPath:P},setCreatedInlineBlock:j,uuid:I}=(0,i.b)(),{fields:D}=(0,c.useDocumentForm)(),{getFormState:$}=(0,c.useServerFunctions)(),R=(0,c.useEditDepth)(),L=(0,g.useRef)(!1),[z,F]=g.useState(()=>{let e=N?.[w.id]?.formState;return!!e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,e in w?{...t,initialValue:w[e],value:w[e]}:t]))}),B=(0,g.useRef)(!1),K=(0,g.useRef)(t);(0,g.useEffect)(()=>{B.current?(K.current!==t&&F(!1),K.current=t):B.current=!0},[t]);let[U]=g.useState(()=>(0,y.A)()),[W,H]=g.useState(()=>{if(!b)return z?._components?.customComponents?.BlockLabel??void 0}),[q,J]=g.useState(()=>{if(!v)return z?._components?.customComponents?.Block??void 0}),V=(0,g.useMemo)(()=>v?(0,o.jsx)(v,{className:r,formData:w,isEditor:!0,isJSXConverter:!1,nodeKey:x,useInlineBlockComponentContext:O}):q,[v,r,w,x,q]),G=(0,g.useMemo)(()=>b?(0,o.jsx)(b,{className:r,formData:w,isEditor:!0,isJSXConverter:!1,nodeKey:x,useInlineBlockComponentContext:O}):W,[b,r,w,x,W]),Y=(0,c.formatDrawerSlug)({slug:`lexical-inlineBlocks-create-${I}-${w.id}`,depth:R}),{toggleDrawer:Z}=(0,n.a)(Y,!0),X=(0,g.useRef)(null),{id:Q,collectionSlug:ee,getDocPreferences:et,globalSlug:er}=(0,c.useDocumentInfo)(),{config:en}=(0,d.c)(),ei=`${P}.lexical_internal_feature.blocks.lexical_inline_blocks.${w.blockType}`,eo=A.blocks?.[ei]?.[0],ea=eo.blockReferences?"string"==typeof eo?.blockReferences?.[0]?en.blocksMap[eo?.blockReferences?.[0]]:eo?.blockReferences?.[0]:eo?.blocks?.[0],el=ea?.fields??[];(0,g.useEffect)(()=>{L.current||M?.getKey()!==x||(el.length>2&&Z(),j?.(void 0),L.current=!0)},[el.length,M,x,j,Z]);let es=(0,g.useCallback)(()=>{_.update(()=>{(0,h.nsf)(x)?.remove()})},[_,x]),eu=ea?.labels?.singular?(0,s.s)(ea?.labels.singular,E):ea?.slug,ec=(0,g.useRef)(new AbortController),ed=`${P}.lexical_internal_feature.blocks.lexical_inline_blocks.${ea?.slug}.fields`;(0,g.useEffect)(()=>{let e=new AbortController;return w&&!z&&(async()=>{let{state:t}=await $({id:Q,collectionSlug:ee,data:w,docPermissions:{fields:!0},docPreferences:await et(),documentFormState:(0,p.KS)(D,{excludeFiles:!0}),globalSlug:er,initialBlockData:w,initialBlockFormState:w,operation:"update",readOnly:!C,renderAllFields:!0,schemaPath:ed,signal:e.signal});if(t){let e=(0,m.r)((0,p.KS)(t,{excludeFiles:!0}),!0);_.update(()=>{let t=(0,h.nsf)(x);t&&S(t)&&(e.blockType=w.blockType,t.setFields(e,!0))},{tag:h.$c$}),F(t),b||H(t._components?.customComponents?.BlockLabel),v||J(t._components?.customComponents?.Block)}})(),()=>{(0,f.eS)(e)}},[$,_,x,C,b,v,ed,Q,w,z,ee,er,et,D]);let ef=(0,g.useCallback)(async({formState:e,submit:t})=>{(0,f.eS)(ec.current);let r=new AbortController;ec.current=r;let{state:n}=await $({id:Q,collectionSlug:ee,docPermissions:{fields:!0},docPreferences:await et(),documentFormState:(0,p.KS)(D,{excludeFiles:!0}),formState:e,globalSlug:er,initialBlockFormState:e,operation:"update",readOnly:!C,renderAllFields:!!t,schemaPath:ed,signal:r.signal});return n?(t&&(b||H(n._components?.customComponents?.BlockLabel),v||J(n._components?.customComponents?.Block)),n):e},[$,Q,ee,et,D,er,C,ed,v,b]);(0,g.useEffect)(()=>()=>{z&&Object.keys(z).some(e=>z[e]&&w[e]!==z[e].value)&&F(!1),(0,f.eS)(ec.current)},[w,z]);let eh=(0,g.useCallback)((e,t)=>{t.blockType=w.blockType,_.update(()=>{let e=(0,h.nsf)(x);e&&S(e)&&e.setFields(t,!0)},{tag:h.$c$})},[_,x,w]),ep=(0,g.useMemo)(()=>()=>(0,o.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__removeButton`,disabled:!C,icon:"x",onClick:e=>{e.preventDefault(),es()},round:!0,size:"small",tooltip:T("lexical:blocks:inlineBlocks:remove",{label:eu})}),[r,eu,C,es,T]),em=(0,g.useMemo)(()=>()=>(0,o.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__editButton`,disabled:!C,el:"button",icon:"edit",onClick:()=>{Z()},round:!0,size:"small",tooltip:T("lexical:blocks:inlineBlocks:edit",{label:eu})}),[r,eu,C,T,Z]),eg=(0,g.useMemo)(()=>({children:e,className:t})=>(0,o.jsx)("div",{className:[`${r}
51__container`,r+"-"+w.blockType,t].filter(Boolean).join(" "),ref:X,children:e}),[r,w.blockType]),ey=(0,g.useMemo)(()=>G?()=>G:()=>(0,o.jsx)("div",{children:ea?.labels?(0,s.s)(ea?.labels.singular,E):""}),[G,ea?.labels,E]);return ea?(0,o.jsxs)(c.Form,{beforeSubmit:[async({formState:e})=>await ef({formState:e,submit:!0})],disableValidationOnSubmit:!0,el:"div",fields:ea?.fields,initialState:z||{},onChange:[ef],onSubmit:(e,t)=>{eh(e,t),Z()},uuid:U,children:[(0,o.jsx)(c.EditDepthProvider,{children:(0,o.jsx)(c.Drawer,{className:"",slug:Y,title:T(`lexical:blocks:inlineBlocks:${w?.id?"edit":"create"}`,{label:eu??T("lexical:blocks:inlineBlocks:label")}),children:z?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.RenderFields,{fields:ea?.fields,forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:ed,permissions:!0,readOnly:!C}),(0,o.jsx)(c.FormSubmit,{programmaticSubmit:!0,children:T("fields:saveChanges")})]}):null})}),V?(0,o.jsx)(k,{value:{EditButton:em,initialState:z,InlineBlockContainer:eg,Label:ey,nodeKey:x,RemoveButton:ep},children:V}):(0,o.jsxs)(eg,{children:[z?(0,o.jsx)(ey,{}):(0,o.jsx)(d.f,{height:"15px",width:"40px"}),C?(0,o.jsxs)("div",{className:`${r}__actions`,children:[(0,o.jsx)(em,{}),(0,o.jsx)(ep,{})]}):null]})]}):(0,o.jsxs)(eg,{className:`${r}-not-found`,children:[(0,o.jsxs)("span",{children:["Error: Block '",w.blockType,"' not found"]}),C?(0,o.jsx)("div",{className:`${r}__actions`,children:(0,o.jsx)(ep,{})}):null]})}},90101:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("clapperboard",[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]])},90463:(e,t,r)=>{e.exports=r(98987).range},90639:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(12115),i=r(95295),o=r(80598),a=["axis"],l=(0,n.forwardRef)((e,t)=>n.createElement(o.P,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:a,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},90738:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(74624);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var a=(e,t,r,i)=>{if(null==t)return n.k_;var a,l,s,u=(a=e,l=t,s=r,"axis"===l?"click"===s?a.axisInteraction.click:a.axisInteraction.hover:"click"===s?a.itemInteraction.click:a.itemInteraction.hover);if(null==u)return n.k_;if(u.active)return u;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var c=!0===e.settings.active;if(null!=u.index){if(c)return o(o({},u),{},{active:!0})}else if(null!=i)return{active:!0,coordinate:void 0,dataKey:void 0,index:i,graphicalItemId:void 0};return o(o({},n.k_),{},{coordinate:u.coordinate})}},90744:(e,t,r)=>{"use strict";r.d(t,{JN:()=>n,Lb:()=>s,_5:()=>i,eC:()=>l,gY:()=>o,hX:()=>d,iO:()=>u,lZ:()=>c,pH:()=>f,vm:()=>h,x3:()=>a});var n=e=>e.rootProps.maxBarSize,i=e=>e.rootProps.barGap,o=e=>e.rootProps.barCategoryGap,a=e=>e.rootProps.barSize,l=e=>e.rootProps.stackOffset,s=e=>e.rootProps.reverseStackOrder,u=e=>e.options.chartName,c=e=>e.rootProps.syncId,d=e=>e.rootProps.syncMethod,f=e=>e.options.eventEmitter,h=e=>e.rootProps.baseValue},90768:(e,t,r)=>{"use strict";
51Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378);t.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,o="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${o} ${i}`)}}},91010:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>l});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let l=function(e,t,r){if(i&&!t&&!e)return i();var l=e,s=r;let u=(l=l||{}).random??l.rng?.()??function(){if(!n){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((s=s||0)<0||s+16>t.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[s+e]=u[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(u)}},91050:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77182),i=r(39339),o=r(40841);function a(e,t,r,u){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,r,n){if(null==t)return!0;if(Array.isArray(t))return l(e,t,r,n);if(t instanceof Map){var o=e,a=t,u=r,c=n;if(0===a.size)return!0;if(!(o instanceof Map))return!1;for(let[e,t]of a.entries())if(!1===u(o.get(e),t,e,o,a,c))return!1;return!0}if(t instanceof Set)return s(e,t,r,n);let d=Object.keys(t);if(null==e||i.isPrimitive(e))return 0===d.length;if(0===d.length)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let o=0;o<d.length;o++){let a=d[o];if(!i.isPrimitive(e)&&!(a in e)||void 0===t[a]&&void 0!==e[a]||null===t[a]&&null!==e[a]||!r(e[a],t[a],a,e,t,n))return!1}return!0}finally{n?.delete(t)}}(e,t,r,u);case"function":if(Object.keys(t).length>0)return a(e,{...t},r,u);return o.isEqualsSameValueZero(e,t);default:if(!n.isObject(e))return o.isEqualsSameValueZero(e,t);if("string"==typeof t)return""===t;return!0}}function l(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let o=0;o<t.length;o++){let a=t[o],l=!1;for(let s=0;s<e.length;s++){if(i.has(s))continue;let u=e[s],c=!1;if(r(u,a,o,e,t,n)&&(c=!0),c){i.add(s),l=!0;break}}if(!l)return!1}return!0}function s(e,t,r,n){return 0===t.size||e instanceof Set&&l([...e],[...t],r,n)}t.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>void 0):a(t,r,function e(t,r,i,o,l,s){let u=n(t,r,i,o,l,s);return void 0!==u?!!u:a(t,r,e,s)},new Map)},t.isSetMatch=s},91219:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(99491),i=r(36997),o=r(12115);function a({disableTakeFocusOnClick:e=!1}){let[t]=(0,i.DF)();return(0,o.useEffect)(()=>(0,n.GO)(t,{disableTakeFocusOnClick:e}),[t,e]),null}},91298:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},91314:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},91688:function(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function o(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var o=n[i];if(o[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var i,o,l=(i=t[1],o=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return o[t]||""}));return""===r?a(e[n-1],l):a(r,l)})}(t,o)}return t}function s(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?a(n,i):e.hasOwnProperty(i)?a(n,e[i]):l(i,n,r)}}function u(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&l(i,i,r)===i}}function c(e,t,r){var n=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+n}return c.plural=s(i,n,e),c.isPlural=u(i,n,e),c.singular=s(n,i,t),c.isSingular=u(n,i,t),c.addPluralRule=function(t,r){e.push([o(t),r])},c.addSingularRule=function(e,r){t.push([o(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),i[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEac
51h(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}()},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},91992:(e,t,r)=>{"use strict";let n;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{default:()=>eb});let o=Object.entries,a=Object.setPrototypeOf,l=Object.isFrozen,s=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,c=Object.freeze,d=Object.seal,f=Object.create,h="u">typeof Reflect&&Reflect,p=h.apply,m=h.construct;c||(c=function(e){return e}),d||(d=function(e){return e}),p||(p=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(t,n)}),m||(m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});let g=$(Array.prototype.forEach),y=$(Array.prototype.lastIndexOf),v=$(Array.prototype.pop),b=$(Array.prototype.push),w=$(Array.prototype.splice),x=Array.isArray,_=$(String.prototype.toLowerCase),S=$(String.prototype.toString),k=$(String.prototype.match),O=$(String.prototype.replace),C=$(String.prototype.indexOf),E=$(String.prototype.trim),T=$
51(Number.prototype.toString),M=$(Boolean.prototype.toString),A="u"<typeof BigInt?null:$(BigInt.prototype.toString),N="u"<typeof Symbol?null:$(Symbol.prototype.toString),P=$(Object.prototype.hasOwnProperty),j=$(Object.prototype.toString),I=$(RegExp.prototype.test),D=(ev=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return m(ev,t)});function $(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return p(e,t,n)}}function R(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(a&&a(e,null),!x(t))return e;let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){let e=r(i);e!==i&&(l(t)||(t[n]=e),i=e)}e[i]=!0}return e}function L(e){let t=f(null);for(let n of o(e)){var r=function(e){if(Array.isArray(e))return e}(n)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,o,a=[],l=!0,s=!1;try{i=(t=t.call(e)).next,!1;for(;!(l=(r=i.call(t)).done)&&(a.push(r.value),2!==a.length);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw n}}return a}}(n)||function(e){if(e){if("string"==typeof e)return i(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let o=r[0],a=r[1];P(e,o)&&(x(a)?t[o]=function(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=L(a):t[o]=a)}return t}function z(e,t){for(;null!==e;){let r=u(e,t);if(r){if(r.get)return $(r.get);if("function"==typeof r.value)return $(r.value)}e=s(e)}return function(){return null}}let F=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),K=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=c(["#text"]),J=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
51spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=c(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=d(/{{[\w\W]*|^[\w\W]*}}/g),X=d(/<%[\w\W]*|^[\w\W]*%>/g),Q=d(/\${[\w\W]*/g),ee=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),et=d(/^aria-[\-\w]+$/),er=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=d(/^(?:\w+script|data):/i),ei=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=d(/^html$/i),ea=d(/^[a-z][.\w]*(-[.\w]+)+$/i),el=d(/<[/\w!]/g),es=d(/<[/\w]/g),eu=d(/<\/no(script|embed|frames)/i),ec=d(/\/>/i),ed=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ef=c(R({},ed)),eh=(n={},g(ed,e=>{n[e]=d(RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),c(n)),ep=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},em=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},eg=function(e,t,r,n){return P(e,t)&&x(e[t])?R(n.base?L(n.base):{},e[t],n.transform):r},ey=function(e,t,r){let n=P(e,t)?e[t]:void 0;return n&&"object"==typeof n?L(n):r()};var ev,eb=function e(){let t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=t=>e(t);if(i.version="3.4.15",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let a=n.document,l=a,s=l.currentScript;n.DocumentFragment;let u=n.HTMLTemplateElement,h=n.Node,p=n.Element,m=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let $=n.DOMParser,ed=n.trustedTypes,ev=p.prototype,eb=z(ev,"cloneNode"),ew=z(ev,"remove"),ex=z(ev,"removeAttributeNode"),e_=z(ev,"nextSibling"),eS=z(ev,"childNodes"),ek=z(ev,"parentNode"),eO=z(ev,"shadowRoot"),eC=z(ev,"attributes"),eE=h&&h.prototype?z(h.prototype,"nodeType"):null,eT=h&&h.prototype?z(h.prototype,"nodeName"):null,eM=h&&h.prototype?z(h.prototype,"ownerDocument"):null,eA=function(e){return eE?eE(e):e.nodeType},eN=function(e){return eT?eT(e):e.nodeName};if("function"==typeof u){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let eP="",ej=!1,eI=0,eD=function(){if(eI>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},e$=function(e){eD(),eI++;try{return t.createHTML(e)}finally{eI--}},eR=function(e){eD(),eI++;try{return t.createScriptURL(e)}finally{eI--}},eL=a,ez=eL.implementation,eF=eL.createNodeIterator,eB=eL.createDocumentFragment,eK=eL.getElementsByTagName,eU=l.importNode,eW=em
51();i.isSupported="function"==typeof o&&"function"==typeof ek&&ez&&void 0!==ez.createHTMLDocument;let eH=er,eq=null,eJ=R({},[...F,...B,...K,...W,...q]),eV=null,eG=R({},[...J,...V,...G,...Y]),eY=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eZ=null,eX=null,eQ=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e0=!0,e1=!0,e2=!1,e3=!0,e5=!1,e4=!0,e6=!1,e8=!1,e9=null,e7=null,te=!1,tt=!1,tr=!1,tn=!1,ti=!0,to=!1,ta="user-content-",tl=!0,ts=!1,tu={},tc=null,td=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tf=null,th=R({},["audio","video","img","source","image","track"]),tp=null,tm=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tg="http://www.w3.org/1998/Math/MathML",ty="http://www.w3.org/2000/svg",tv="http://www.w3.org/1999/xhtml",tb=tv,tw=!1,tx=null,t_=R({},[tg,ty,tv],S),tS=c(["mi","mo","mn","ms","mtext"]),tk=R({},tS),tO=c(["annotation-xml"]),tC=R({},tO),tE=R({},["title","style","font","a","script"]),tT=null,tM=["application/xhtml+xml","text/html"],tA=null,tN=null,tP=a.createElement("form"),tj=function(e){return e instanceof RegExp||e instanceof Function},tI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tN&&tN===e)return;e&&"object"==typeof e||(e={}),e=L(e),tA="application/xhtml+xml"===(tT=-1===tM.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?S:_,eq=eg(e,"ALLOWED_TAGS",eJ,{transform:tA}),eV=eg(e,"ALLOWED_ATTR",eG,{transform:tA}),tx=eg(e,"ALLOWED_NAMESPACES",t_,{transform:S}),tp=eg(e,"ADD_URI_SAFE_ATTR",tm,{transform:tA,base:tm}),tf=eg(e,"ADD_DATA_URI_TAGS",th,{transform:tA,base:th}),tc=eg(e,"FORBID_CONTENTS",td,{transform:tA}),eZ=eg(e,"FORBID_TAGS",L({}),{transform:tA}),eX=eg(e,"FORBID_ATTR",L({}),{transform:tA}),tu=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?L(e.USE_PROFILES):e.USE_PROFILES),e0=!1!==e.ALLOW_ARIA_ATTR,e1=!1!==e.ALLOW_DATA_ATTR,e2=e.ALLOW_UNKNOWN_PROTOCOLS||!1,e3=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e5=e.SAFE_FOR_TEMPLATES||!1,e4=!1!==e.SAFE_FOR_XML,e6=e.WHOLE_DOCUMENT||!1,tt=e.RETURN_DOM||!1,tr=e.RETURN_DOM_FRAGMENT||!1,tn=e.RETURN_TRUSTED_TYPE||!1,te=e.FORCE_BODY||!1,ti=!1!==e.SANITIZE_DOM,to=e.SANITIZE_NAMED_PROPS||!1,tl=!1!==e.KEEP_CONTENT,ts=e.IN_PLACE||!1,eH=!function(e){try{return I(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?er:e.ALLOWED_URI_REGEXP,tb="string"==typeof e.NAMESPACE?e.NAMESPACE:tv,tk=ey(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>R({},tS)),tC=ey(e,"HTML_INTEGRATION_POINTS",()=>R({},tO));let n=ey(e,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(eY=f(null),P(n,"tagNameCheck")&&tj(n.tagNameCheck)&&(eY.tagNameCheck=n.tagNameCheck),P(n,"attributeNameCheck")&&tj(n.attributeNameCheck)&&(eY.attributeNameCheck=n.attributeNameCheck),P(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eY.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),d(eY),e5&&(e1=!1),tr&&(tt=!0),tu&&(eq=R({},q),eV=f(null),!0===tu.html&&(R(eq,F),R(eV,J)),!0===tu.svg&&(R(eq,B),R(eV,V),R(eV,Y)),!0===tu.svgFilters&&(R(eq,K),R(eV,V),R(eV,Y)),!0===tu.mathMl&&(R(eq,W),R(eV,G),R(eV,Y))),eQ.tagCheck=null,eQ.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eQ.tagCheck=e.ADD_TAGS:x(e.ADD_TAGS)&&(eq===eJ&&(eq=L(eq)),R(eq,e.ADD_TAGS,tA))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eQ.attributeCheck=e.ADD_ATTR:x(e.ADD_ATTR)&&(eV===eG&&(eV=L(eV)),R(eV,e.ADD_ATTR,tA))),P(e,"ADD_FORBID_CONTENTS")&&x(e.ADD_FORBID_CONTENTS)&&(tc===td&&(tc=L(tc)),R(tc,e.ADD_FORBID_CONTENTS,tA)),tl&&(eq["#text"]=!0),e6&&R(eq,["html","head","body"]),eq.table&&(R(eq,["tbody"]),delete eZ.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=t;t=e.TRUSTED_TYPES_POLICY;try{eP=e$("")}catch(e){throw t=r,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eP=""):(void 0===t&&(ej||(r=ep(ed,s),ej=!0),t=r),t&&"string"==typeof eP&&(eP=e$("")));c&&c(e),tN=e},tD=R({},[...B,...K,...U]),t$=R({},[...W,...H]),tR=function(e){var t,r,n;let i=ek(e);i&&i.tagName||(i={namespaceURI:tb,tagName:"template"});let o=_(e.tagName),a=_(i.tagName);return!!tx[e.namespaceURI]&&(e.namespaceURI===ty?(t=i).namespaceURI===tv?"svg"===o:t.namespaceURI===tg?"svg"===o&&("annotation-xml"===a||tk[a]):!!tD[o]:e.namespaceURI===tg?(r=i).namespaceURI===tv?"math"===o:r.namespaceURI===ty?"math"===o&&tC[a]:!!t$[o]:e.namespaceURI===tv?((n=i).namespaceURI!==ty||!!tC[a])&&(n.namespaceURI!==tg||!!tk[a])&&!t$[o]&&(tE[o]||!tD[o]
51):"application/xhtml+xml"===tT&&!!tx[e.namespaceURI])},tL=function(e){b(i.removed,{element:e});try{ek(e).removeChild(e)}catch(t){if(ew(e),!ek(e))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tz=function(e,t,r){try{ex(e,t)}catch(t){try{e.removeAttribute(r)}catch(e){}}},tF=function(e){tU(e);let t=eS(e);if(t){let e=[];g(t,t=>{b(e,t)}),g(e,e=>{try{ew(e)}catch(e){}})}let r=eC(e);if(r)for(let t=r.length-1;t>=0;--t){let n=r[t],i=n&&n.name;"string"==typeof i&&tz(e,n,i)}},tB=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(e){r=null}b(i.removed,{attribute:r||null,from:t});try{r?ex(t,r):t.removeAttribute(e)}catch(r){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tt||tr)try{tL(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tK=function(e){let t=eC(e);if(t)for(let r=t.length-1;r>=0;--r){let n=t[r],i=n&&n.name;"string"!=typeof i||eV[tA(i)]||tz(e,n,i)}},tU=function(e){let t=[e];for(;t.length>0;){let e=t.pop();1===eA(e)&&tK(e);let r=eS(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tW=function(e,t){return!!e4&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},tH=function(e){if(!e4)return;let t=[e];for(;t.length>0;){let e=t.pop(),r=eA(e);if(7===r||8===r&&I(es,e.data)){try{ew(e)}catch(e){}continue}if(1===r){let t=tA(eN(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&tW("for",t)&&e.removeAttribute("for")}catch(e){}}let n=eS(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tq=function(e){let r=null,n=null;if(te)e="<remove></remove>"+e;else{let t=k(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===tT&&tb===tv&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?e$(e):e;if(tb===tv)try{r=new $().parseFromString(i,tT)}catch(e){}if(!r||!r.documentElement){r=ez.createDocument(tb,"template",null);try{r.documentElement.innerHTML=tw?eP:i}catch(e){}}let o=r.body||r.documentElement;return(e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),tb===tv)?eK.call(r,e6?"html":"body")[0]:e6?r.documentElement:o},tJ=function(e){let t=eM?eM(e):e.ownerDocument;return eF.call(t||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},tV=function(e){return e=O(e,Z," "),e=O(e,X," "),e=O(e,Q," ")},tG=function(e){var t;e.normalize();let r=eM?eM(e):e.ownerDocument,n=eF.call(r||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=tV(i.data),i=n.nextNode();let o=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");o&&g(o,e=>{tZ(e.content)&&tG(e.content)})},tY=function(e){let t=eT?eT(e):null;return"string"==typeof t&&"form"===tA(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eC(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eE(e)||e.childNodes!==eS(e))},tZ=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return 11===eE(e)}catch(e){return!1}},tX=function(e){if(!eE||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eE(e)}catch(e){return!1}};function tQ(e,t,r){0!==e.length&&g(e,e=>{e.call(i,t,r,tN)})}let t0=function(e,t){if(e instanceof RegExp)return I(e,t);if(e instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return!!e(t,...n)}return!1},t1=function(e,t,r){if(!eZ[t]&&t8(t)&&t0(eY.tagNameCheck,t))return!1;if(tl&&!tc[t]){let t=ek(e),n=eS(e);if(n&&t){let i=n.length;for(let o=i-1;o>=0;--o){let i=e===r?eb(n[o],!0):n[o];t.insertBefore(i,e_(e))}}}return tL(e),!0},t2=function(e,t,r,n){return 0===e.length?t:t===r||t===n?L(t):t},t3=function(e,t){return e!==t&&null===ek(e)&&(ts&&tU(e),!0)},t5=function(e,t){if(tQ(eW.beforeSanitizeElements,e,null),t3(e,t))return!0;
51if(tY(e))return tL(e),!0;let r=tA(eN(e));if(eq=t2(eW.uponSanitizeElement,eq,eJ,e9),tQ(eW.uponSanitizeElement,e,{tagName:r,allowedTags:eq}),t3(e,t))return!0;if(e4&&e.hasChildNodes()&&!tX(e.firstElementChild)&&I(el,e.textContent)&&I(el,e.innerHTML)||e4&&e.namespaceURI===tv&&ef[r]&&(tX(e.firstElementChild)||"string"==typeof e.textContent&&I(eh[r],e.textContent))||7===e.nodeType||e4&&8===e.nodeType&&I(es,e.data))return tL(e),!0;if(eZ[r]||!(eQ.tagCheck instanceof Function&&eQ.tagCheck(r))&&!eq[r]){let n=t1(e,r,t);return!1===n&&tQ(eW.afterSanitizeElements,e,null),n}if(1===eA(e)&&!tR(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&I(eu,e.innerHTML))return tL(e),!0;if(e5&&3===e.nodeType){let t=tV(e.textContent);e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)}return tQ(eW.afterSanitizeElements,e,null),!1},t4=function(e,t,r){if(eX[t]||tW(t,e)||ti&&("id"===t||"name"===t)&&(r in a||r in tP))return!1;let n=eV[t]||eQ.attributeCheck instanceof Function&&eQ.attributeCheck(t,e);return!!(e1&&I(ee,t)||e0&&I(et,t))||(n?!(!(tp[t]||I(eH,O(r,ei,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(r,"data:")||!tf[e])&&(!e2||I(en,O(r,ei,""))))||!r:t8(e)&&t0(eY.tagNameCheck,e)&&t0(eY.attributeNameCheck,t,e)||"is"===t&&eY.allowCustomizedBuiltInElements&&t0(eY.tagNameCheck,r))},t6=R({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),t8=function(e){return!t6[_(e)]&&I(ea,e)},t9=function(e,r,n,i){if(t&&"object"==typeof ed&&"function"==typeof ed.getAttributeType&&!n)switch(ed.getAttributeType(e,r)){case"TrustedHTML":return e$(i);case"TrustedScriptURL":return eR(i)}return i},t7=function(e,t,r,n){try{if(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n),tY(e))return tL(e),!1;return!0}catch(r){return tB(t,e),!1}},re=function(e){tQ(eW.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tY(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eV=t2(eW.uponSanitizeAttribute,eV,eG,e7),forceKeepAttr:void 0},n=t.length,o=tA(e.nodeName);for(;n--;){let a=t[n],l=a.name,s=a.namespaceURI,u=a.value,c=tA(l),d="value"===l?u:E(u),f=!1;if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,tQ(eW.uponSanitizeAttribute,e,r),d=r.attrValue,to&&("id"===c||"name"===c)&&0!==C(d,ta)&&(tB(l,e,a),d=ta+d,f=!0),e4&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===c&&k(d,"href")){tB(l,e,a);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!e3&&I(ec,d)||(e5&&(d=tV(d)),!t4(o,c,d))){tB(l,e,a);continue}(d=t9(o,c,s,d))!==u&&t7(e,l,s,d)&&f&&v(i.removed)}}tQ(eW.afterSanitizeAttributes,e,null)},rt=function(e){let t=null,r=tJ(e);for(tQ(eW.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(tQ(eW.uponSanitizeShadowNode,t,null),t5(t,e),re(t),tZ(t.content)&&rt(t.content),1===eA(t)){let e=eO(t);tZ(e)&&(rr(e),rt(e))}tQ(eW.afterSanitizeShadowDOM,e,null)},rr=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){rt(e.shadow);continue}let r=e.node,n=1===eA(r),i=eS(r);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(n){let e=eT?eT(r):null;if("string"==typeof e&&"template"===tA(e)){let e=r.content;tZ(e)&&t.push({node:e,shadow:null})}}if(n){let e=eO(r);tZ(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,s=null;if((tw=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tX(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return T(e);case"boolean":return M(e);case"bigint":return A?A(e):"0";case"symbol":return N?N(e):"Symbol()";case"undefined":default:return j(e);case"function":case"object":{if(null===e)return j(e);let t=z(e,"toString");if("function"==typeof t){let r=t(e);return"string"==typeof r?r:j(r)}return j(e)}}}(e)))throw D("dirty is not a string, aborting");if(!i.isSupported)return e;e8?(eq=e9,eV=e7):tI(r),(eW.uponSanitizeElement.length>0||eW.uponSanitizeAttribute.length>0)&&(eq=L(eq)),eW.uponSanitizeAttribute.length>0&&(eV=L(eV)),i.removed=[];let u=ts&&"string"!=typeof e&&tX(e);if(u){tH(e);let t=eN(e);if("string"==typeof t){let r=tA(t);if(!eq[r]||eZ[r])throw tF(e),D("root node is forbidden and cannot be sanitized in-place")}if(tY(e))throw tF(e),D("root node is clobbered and cannot be sanitized in-place");try{rr(e)}catch(t){throw tF(e),t}}else if(tX(e))1===(o=(n=tq("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),rr(n);else{if(!tt&&!e5&&!e6&&-1===e.indexOf("<"))return t&&tn?e$(e):e;if(!(n=tq(e)))return tt?null:tn?eP:""}n&&te&&tL(n.firstChild);let c=u?e:n;try{let e=tJ(c);for(;a=e.nextNode();
51)t5(a,c),re(a),tZ(a.content)&&rt(a.content)}catch(t){throw u&&(tF(e),g(i.removed,e=>{e.element&&tU(e.element)})),t}if(u)return g(i.removed,e=>{e.element&&tU(e.element)}),e5&&tG(e),e;if(tt){if(e5&&tG(n),tr)for(s=eB.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(eV.shadowroot||eV.shadowrootmode)&&(s=eU.call(l,s,!0)),s}let d=e6?n.outerHTML:n.innerHTML;return e6&&eq["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&I(eo,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),e5&&(d=tV(d)),t&&tn?e$(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tI(e),e8=!0,e9=eq,e7=eV},i.clearConfig=function(){tN=null,e8=!1,e9=null,e7=null,t=r,eP=""},i.isValidAttribute=function(e,t,r){return tN||tI({}),t4(tA(e),tA(t),r)},i.addHook=function(e,t){"function"!=typeof t||P(eW,e)&&b(eW[e],t)},i.removeHook=function(e,t){if(P(eW,e)){if(void 0!==t){let r=y(eW[e],t);return -1===r?void 0:w(eW[e],r,1)[0]}return v(eW[e])}},i.removeHooks=function(e){P(eW,e)&&(eW[e]=[])},i.removeAllHooks=function(){eW=em()},i}()},91993:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(77989);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},92191:(e,t,r)=>{"use strict";r.d(t,{CG:()=>p,Et:()=>u,F4:()=>h,GW:()=>m,M8:()=>l,NF:()=>f,Zb:()=>v,_3:()=>s,eP:()=>g,lQ:()=>w,n9:()=>b,sA:()=>a,uy:()=>y,vh:()=>c});var n=r(57258),i=r.n(n),o=r(75726),a=e=>0===e?0:e>0?1:-1,l=e=>"number"==typeof e&&e!=+e,s=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,u=e=>("number"==typeof e||e instanceof Number)&&!l(e),c=e=>u(e)||"string"==typeof e,d=0,f=e=>{var t=++d;return"".concat(e||"").concat(t)},h=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!u(e)&&"string"!=typeof e)return n;if(s(e)){if(null==t)return n;var o=e.indexOf("%");r=t*parseFloat(e.slice(0,o))/100}else r=+e;return l(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},p=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(r[String(e[n])])return!0;else r[String(e[n])]=!0;return!1};function m(e,t,r){return u(e)&&u(t)?(0,o.L)(e+r*(t-e)):t}function g(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):i()(e,t))===r)}var y=e=>null==e,v=e=>y(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function b(e){return null!=e}function w(){}},92289:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},92343:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(12115),i=r(67051),o=r(10365);function a(e){var t=(0,o.j)();return(0,n.useEffect)(()=>{t((0,i.mZ)(e))},[t,e]),null}},92446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(53855),i=r(4378),o=r(83732),a=r(45673);t.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,i.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,i._)`{i: ${e}, j: ${t}}`},code(e){let{gen:t,data:r,$data:l,schema:s,parentSchema:u,schemaCode:c,it:d}=e;if(!l&&!s)return;let f=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(f,function(){let l=t.let("i",(0,i._)`${r}.length`),s=t.let("j");e.setParams({i:l,j:s}),t.assign(f,!0),t.if((0,i._)`${l} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?function(o,a){let l=t.name("item"),s=(0,n.checkDataTypes)(h,l,d.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",(0,i._)`{}`);t.for((0,i._)`;${o}--;`,()=>{t.let(l,(0,i._)`${r}[${o}]`),t.if(s,(0,i._)`continue`),h.length>1&&t.if((0,i._)`typeof ${l} == "string"`,(0,i._)`${l} += "_"`),t.if((0,i._)`typeof ${u}[${l}] == "number"`,()=>{t.assign(a,(0,i._)`${u}[${l}]`),e.error(),t.assign(f,!1).break()}).code((0,i._)`${u}[${l}] = ${o}`)})}:function(n,l){let s=(0,o.useFunc)(t,a.default),u=t.name("outer");t.label(u).for((0,i._)`;${n}--;`,()=>t.for((0,i._)`${l} = ${n}; ${l}--;`,()=>t.if((0,i._)`${s}(${r}[${n}], ${r}[${l}])`,()=>{e.error(),t.assign(f,!1).break(u)})))}
51)(l,s))},(0,i._)`${c} === false`),e.ok(f)}}},92451:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},92477:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(91993);function i(e,t){return(0,n.w)(t||e,e)}},92509:(e,t,r)=>{"use strict";r.d(t,{Button:()=>y});var n=r(95155),i=r(12115);r(87284);let o=({ariaLabel:e,className:t,direction:r,size:i})=>(0,n.jsx)("svg",{"aria-label":e,className:["icon icon--chevron",t,i&&`icon--size-${i}`].filter(Boolean).join(" "),height:"100%",style:{transform:"left"===r?"rotate(90deg)":"right"===r?"rotate(-90deg)":"up"===r?"rotate(180deg)":void 0},viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M14 8L10 12L6 8",strokeLinecap:"square"})});r(25),r(81697),r(29109),r(22046),r(93603);var a=r(52641),l=r(47650);let s="function"==typeof i.useEffectEvent?i.useEffectEvent:e=>{let t=(0,i.useRef)(e);return(0,i.useInsertionEffect)(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>(0,t.current)(...e),[])};r(41994),r(13969);let u="popup-button",c=e=>{let{active:t,button:r,buttonType:i,className:o,disabled:a,noBackground:l,setActive:s,size:c}=e,d=[u,o,`${u}--${i}`,!l&&`${u}--background`,c&&`${u}--size-${c}`,a&&`${u}--disabled`].filter(Boolean).join(" "),f=()=>{s(!t,!1)},h=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s(!t,!0))};return"none"===i?null:"custom"===i?(0,n.jsx)("div",{className:d,onClick:f,onKeyDown:h,role:"button",tabIndex:0,children:r}):(0,n.jsx)("button",{className:d,disabled:a,onClick:f,onKeyDown:h,tabIndex:0,type:"button",children:r})},d="popup",f=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]","summary"].map(e=>`${e}:not([tabindex="-1"])`).join(", "),h=e=>{let{id:t,button:r,buttonClassName:o,buttonSize:a,buttonType:u="default",caret:h=!0,children:p,className:m,disabled:g,forceOpen:y,horizontalAlign:v="left",initActive:b=!1,noBackground:w,onToggleClose:x,onToggleOpen:_,portalClassName:S,render:k,showOnHover:O=!1,showScrollbar:C=!1,size:E="medium",verticalAlign:T="bottom"}=e,M=(0,i.useRef)(null),A=(0,i.useRef)(null),N=(0,i.useRef)(!1),[P,j]=(0,i.useState)(!1),[I,D]=(0,i.useState)(b),[$,R]=(0,i.useState)("top"===T);(0,i.useEffect)(()=>{j(!0)},[]);let L=(0,i.useCallback)((e,t=!1)=>{e?(N.current=t,_?.(!0)):x?.(),D(e)},[x,_]),z=s(()=>{let e,t=A.current,r=M.current;if(!t||!r)return;let n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),o="top"===T;"bottom"===T?(e=n.bottom+window.scrollY+10,n.bottom+i.height+10>window.innerHeight&&(e=n.top+window.scrollY-i.height-10,o=!0)):(e=n.top+window.scrollY-i.height-10,n.top-i.height-10<0&&(e=n.bottom+window.scrollY+10,o=!1)),R(o);let a="right"===v?n.right-i.width:"center"===v?n.left+n.width/2-i.width/2:n.left;a=Math.max(10,Math.min(a,window.innerWidth-i.width-10));let l=Math.max(12,Math.min(n.left+n.width/2-a,i.width-12)),s=`${Math.round(e)}px`,u=`${Math.round(a+window.scrollX)}px`,c=`${Math.round(l)}px`;r.style.top!==s&&(r.style.top=s),r.style.left!==u&&(r.style.left=u),r.style.getPropertyValue("--caret-left")!==c&&r.style.setProperty("--caret-left",c)}),F=s(e=>{let t=!M.current?.contains(e.target),r=!A.current?.contains(e.target);t&&r&&L(!1)}),B=s(e=>{let t=M.current;if(t&&I){if("Escape"===e.key){e.preventDefault(),L(!1),A.current?.querySelector('button, [tabindex="0"]')?.focus();return}if("Tab"===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){let r,n=Array.from(t.querySelectorAll(f));if(0===n.length)return;e.preventDefault();let i=n.findIndex(e=>e===document.activeElement),o="ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey;r=-1===i?o?n.length-1:0:o?0===i?n.length-1:i-1:i===n.length-1?0:i+1,n[r].focus()}}}),K=s(e=>{let t=e.target;if(t.closest("[data-popup-prevent-close]"))return;let r=t.closest('button, a[href], [role="button"], [role="menuitem"]');r&&M.current?.contains(r)&&L(!1)});(0,i.useEffect)(()=>
51{if(!I)return;let e=M.current;if(e)return z(),N.current&&requestAnimationFrame(()=>{let t=e.querySelector(f);t?.focus()}),window.addEventListener("resize",z),window.addEventListener("scroll",z,{capture:!0,passive:!0}),document.addEventListener("mousedown",F),document.addEventListener("keydown",B),e.addEventListener("click",K),()=>{window.removeEventListener("resize",z),window.removeEventListener("scroll",z,{capture:!0}),document.removeEventListener("mousedown",F),document.removeEventListener("keydown",B),e.removeEventListener("click",K)}},[I]),(0,i.useEffect)(()=>{void 0!==y&&L(y)},[y,L]);let U=(0,n.jsx)(c,{active:I,button:r,buttonType:u,className:o,disabled:g,noBackground:w,setActive:L,size:a});return(0,n.jsxs)("div",{className:[d,m].filter(Boolean).join(" "),id:t,children:[(0,n.jsx)("div",{className:`${d}__trigger-wrap`,ref:A,children:O?(0,n.jsx)("div",{className:`${d}__on-hover-watch`,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),role:"button",tabIndex:0,children:U}):U}),P?(0,l.createPortal)((0,n.jsxs)("div",{className:I?[`${d}__content`,`${d}--size-${E}`,$?`${d}--v-top`:`${d}--v-bottom`,S].filter(Boolean).join(" "):`${d}__hidden-content`,"data-popup-id":t||void 0,ref:M,children:[(0,n.jsxs)("div",{className:`${d}__scroll-container${C?` ${d}__scroll-container--show-scrollbar`:""}`,children:[k?.({close:()=>L(!1)}),p]}),h&&(0,n.jsx)("div",{className:`${d}__caret`})]}),document.body):null]})};r(15968);var p=r(49432);let m={chevron:o,edit:({className:e})=>(0,n.jsx)("svg",{className:[e,"icon icon--edit"].filter(Boolean).join(" "),viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M9.68531 4.62938H5.2634C4.92833 4.62938 4.60698 4.76248 4.37004 4.99942C4.13311 5.23635 4 5.5577 4 5.89278V14.7366C4 15.0717 4.13311 15.393 4.37004 15.63C4.60698 15.8669 4.92833 16 5.2634 16H14.1072C14.4423 16 14.7636 15.8669 15.0006 15.63C15.2375 15.393 15.3706 15.0717 15.3706 14.7366V10.3147M13.7124 4.39249C13.9637 4.14118 14.3046 4 14.66 4C15.0154 4 15.3562 4.14118 15.6075 4.39249C15.8588 4.6438 16 4.98464 16 5.34004C16 5.69544 15.8588 6.03629 15.6075 6.28759L9.91399 11.9817C9.76399 12.1316 9.57868 12.2413 9.37515 12.3008L7.56027 12.8314C7.50591 12.8472 7.44829 12.8482 7.39344 12.8341C7.33859 12.8201 7.28853 12.7915 7.24849 12.7515C7.20845 12.7115 7.17991 12.6614 7.16586 12.6066C7.15181 12.5517 7.15276 12.4941 7.16861 12.4397L7.69924 10.6249C7.75896 10.4215 7.86888 10.2364 8.01888 10.0866L13.7124 4.39249Z",strokeLinecap:"square"})}),link:()=>(0,n.jsx)("svg",{"aria-hidden":"true",className:"graphic link icon icon--link",fill:"none",focu
51sable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M7.99999 13.3333H6.66666C5.78261 13.3333 4.93476 12.9821 4.30964 12.357C3.68452 11.7319 3.33333 10.884 3.33333 9.99999C3.33333 9.11593 3.68452 8.26809 4.30964 7.64297C4.93476 7.01785 5.78261 6.66666 6.66666 6.66666H7.99999M12 6.66666H13.3333C14.2174 6.66666 15.0652 7.01785 15.6904 7.64297C16.3155 8.26809 16.6667 9.11593 16.6667 9.99999C16.6667 10.884 16.3155 11.7319 15.6904 12.357C15.0652 12.9821 14.2174 13.3333 13.3333 13.3333H12M7.33333 9.99999H12.6667",strokeLinecap:"square"})}),plus:()=>(0,n.jsx)("svg",{className:"icon icon--plus",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M5.33333 9.99998H14.6667M9.99999 5.33331V14.6666",strokeLinecap:"square"})}),swap:()=>(0,n.jsx)("svg",{className:"icon icon--swap",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M7.33334 4L4.66667 6.66667M4.66667 6.66667L7.33334 9.33333M4.66667 6.66667H15.3333M12.6667 16L15.3333 13.3333M15.3333 13.3333L12.6667 10.6667M15.3333 13.3333H4.66667",strokeLinecap:"square"})}),x:({className:e})=>(0,n.jsx)("svg",{className:[e,"icon icon--x"].filter(Boolean).join(" "),height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M14 6L6 14M6 6L14 14",strokeLinecap:"square"})})},g=({children:e,icon:t,showTooltip:r,tooltip:o})=>{let a=m[t];return(0,n.jsxs)(i.Fragment,{children:[o&&(0,n.jsx)(p.m,{className:"btn__tooltip",show:r,children:o}),(0,n.jsxs)("span",{className:"btn__content",children:[e&&(0,n.jsx)("span",{className:"btn__label",children:e}),t&&(0,n.jsxs)("span",{className:"btn__icon",children:[(0,i.isValidElement)(t)&&t,a&&(0,n.jsx)(a,{})]})]})]})},y=e=>{let t,{id:r,type:l="button","aria-label":s,buttonStyle:u="primary",children:c,className:d,disabled:f,el:p="button",enableSubMenu:m,extraButtonProps:y={},icon:v,iconPosition:b="right",iconStyle:w="without-border",margin:x=!0,newTab:_,onClick:S,onMouseDown:k,ref:O,round:C,size:E="medium",SubMenuPopupContent:T,to:M,tooltip:A,url:N}=e,[P,j]=i.useState(!1),I=["btn",d&&d,v&&"btn--icon",w&&`btn--icon-style-${w}`,v&&!c&&"btn--icon-only",E&&`btn--size-${E}`,v&&b&&`btn--icon-position-${b}`,A&&"btn--has-tooltip",!T&&"btn--withoutPopup",!x&&"btn--no-margin"].filter(Boolean).join(" "),D=[u&&`btn--style-${u}`,f&&"btn--disabled",C&&"btn--round",T?"btn--withPopup":"btn--withoutPopup"].filter(Boolean).join(" "),$={id:r,type:l,"aria-disabled":f,"aria-label":s,className:T?I:[I,D].join(" "),disabled:f,onClick:f?void 0:function(e){j(!1),"submit"!==l&&S&&e.preventDefault(),S&&S(e)},onMouseDown:f?void 0:k,onPointerEnter:A?()=>j(!0):void 0,onPointerLeave:A?()=>j(!1):void 0,rel:_?"noopener noreferrer":void 0,target:_?"_blank":void 0,title:s,...y};switch(p){case"anchor":t=(0,n.jsx)("a",{...$,href:f?void 0:N,ref:O,children:(0,n.jsx)(g,{icon:v,showTooltip:P,tooltip:A,children:c})});break;case"link":f&&(t=(0,n.jsx)("div",{...$,children:(0,n.jsx)(g,{icon:v,showTooltip:P,tooltip:A,children:c})})),t=(0,n.jsx)(a.N,{...$,href:M||N,prefetch:!1,children:(0,n.jsx)(g,{icon:v,showTooltip:P,tooltip:A,children:c})});break;default:t=(0,n.jsx)(p,{ref:O,...$,children:(0,n.jsx)(g,{icon:v,showTooltip:P,tooltip:A,children:c})})}return T?(0,n.jsxs)("div",{className:D,children:[t,(0,n.jsx)(h,{button:(0,n.jsx)(o,{}),buttonSize:E,className:f&&!m?"btn--popup-disabled":"",disabled:f&&!m,horizontalAlign:"right",id:`${r}-popup`,noBackground:!0,render:({close:e})=>T({close:()=>e()}),size:"large",verticalAlign:"bottom"})]}):t}},92527:(e,t,r)=>{"use strict";function n(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{o:()=>n})},92564:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])},93027:(e,t,r)=>{"use strict";r.d(t,{ag:()=>s,s8:()=>o,wA:()=>a,gD:()=>n,jq:()=>i,_N:()=>l});let n=e=>
51!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts),i=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.localizeStatus),o=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave),a=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.validate),l=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.schedulePublish),s=e=>{let t=2e3;return e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave&&"object"==typeof e.versions.drafts.autosave&&(t=e.versions.drafts.autosave.interval??2e3),t}},93189:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(46574),i=["domain","range"],o=["domain","range"];function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l(e,t){return e===t||!!(Array.isArray(e)&&2===e.length&&Array.isArray(t))&&2===t.length&&e[0]===t[0]&&e[1]===t[1]}function s(e,t){if(e===t)return!0;var{domain:r,range:s}=e,u=a(e,i),{domain:c,range:d}=t,f=a(t,o);return!!l(r,c)&&!!l(s,d)&&(0,n.P)(u,f)}},93541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;let n=r(4378),i=r(83732);function o(e,t,r){let{gen:o,compositeRule:a,data:l,opts:s}=e;if(void 0===r)return;let u=(0,n._)`${l}${(0,n.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=(0,n._)`${u} === undefined`;"empty"===s.useDefaults&&(c=(0,n._)`${c} || ${u} === null || ${u} === ""`),o.if(c,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){let{properties:r,items:n}=e.schema;if("object"===t&&r)for(let t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,r)=>o(e,r,t.default))}},93603:()=>{},93778:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(53443);let i=(e,t)=>{let r=t.substring(0,t.lastIndexOf(".")+1),i=t.split(".").pop(),o={};Object.keys(e).forEach(n=>{!e[n]?.disableFormData&&(0===n.indexOf(`${t}.`)||n===t)&&(o[n.replace(r,"")]=e[n]?.value,e[n]?.rows&&0===e[n].rows.length&&(o[n.replace(r,"")]=[]))});let a=(0,n.s)(o);return a?.[i]}},93972:(e,t,r)=>{"use strict";r.d(t,{i:()=>A});var n=r(12115);let i=Math.cos,o=Math.sin,a=Math.sqrt,l=Math.PI,s=2*l,u={draw(e,t){let r=a(t/l);e.moveTo(r,0),e.arc(0,0,r,0,s)}},c=a(1/3),d=2*c,f=o(l/10)/o(7*l/10),h=o(s/10)*f,p=-i(s/10)*f,m=a(3),g=a(3)/2,y=1/a(12),v=(y/2+1)*3;var b=r(74592),w=r(85802);a(3),a(3);var x=r(29722),_=r(92191),S=r(55359),k=["type","size","sizeType"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var T={symbolCircle:u,symbolCross:{draw(e,t){let r=a(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},symbolDiamond:{draw(e,t){let r=a(t/d),n=r*c;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},symbolSquare:{draw(e,t){let r=a(t),n=-r/2;e.rect(n,n,r,r)}},symbolStar:{draw(e,t){let r=a(.8908130915292852*t),n=h*r,l=p*r;e.moveTo(0,-r),e.lineTo(n,l);for(let t=1;t<5;++t){let a=s*t/5,u=i(a),c=o(a);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*l,c*n+u*l)}e.closePath()}},symbolTriangle:{draw(e,t){let r=-a(t/(3*m));e.moveTo(0,2*r),e.lineTo(-m*r,-r),e.lineTo(m*r,-r),e.closePath()}},symbolWye:{draw(e,t){let r=a(t/v),n=r/2,i=r*y,o=r*y+r,l=-n;e.moveTo(n,i),e.lineTo(n,o),e.lineTo(l,o),e.lineTo(-.5*n-g*i,g*n+-.5*i),e.lineTo(-.5*n-g*o,g*n+-.5*o),e.lineTo(-.5*l-g*o,g*l+-.5*o),e.lineTo(-.5*n+g*i,-.5*i-g*n),e.lineTo(-.5*n+g*o,-.5*o-g*n),e.lineTo(-.5*l+g*o,-.5*o-g*l),e.closePath()}}},M=Math.PI/180,A=e=>{var{type:t="circle",size:r=64,sizeType:i="area"}=e,o=E(E({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,k)),{},{type:t,size:r,sizeType:i}),a="circle";"string"==typeof t&&(a=t);var{className:l,cx:s,cy:c}=o,d=(0,S.a)(o);return(0,_.Et)(s)&&(0,_.Et)(c)&&(0,_.Et)(r)?n.createElement("path",O({}
51,d,{className:(0,x.$)("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:(()=>{var e,t=(e=a,T["symbol".concat((0,_.Zb)(e))]||u),n=(function(e,t){let r=null,n=(0,w.i)(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:(0,b.A)(e||u),t="function"==typeof t?t:(0,b.A)(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,b.A)(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,b.A)(+e),i):t},i.context=function(e){return arguments.length?(r=null==e?null:e,i):r},i})().type(t).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*M;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(r,i,a))();if(null!==n)return n})()})):null};A.registerSymbol=(e,t)=>{T["symbol".concat((0,_.Zb)(e))]=t}},94051:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>o,Pg:()=>a,Ub:()=>l});var n=r(10365),i=r(74624),o=(e,t,r)=>{var o=(0,n.j)();return(n,a)=>l=>{null==e||e(n,a,l),o((0,i.RD)({activeIndex:String(a),activeDataKey:t,activeCoordinate:n.tooltipPosition,activeGraphicalItemId:r}))}},a=e=>{var t=(0,n.j)();return(r,n)=>o=>{null==e||e(r,n,o),t((0,i.oP)())}},l=(e,t,r)=>{var o=(0,n.j)();return(n,a)=>l=>{null==e||e(n,a,l),o((0,i.ML)({activeIndex:String(a),activeDataKey:t,activeCoordinate:n.tooltipPosition,activeGraphicalItemId:r}))}}},94313:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(91298);t.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&n.isLength(e.length)}},94318:(e,t,r)=>{"use strict";r.d(t,{Card:()=>a});var n=r(95155);r(12115);var i=r(92509);r(66350);let o="card",a=e=>{let{id:t,actions:r,buttonAriaLabel:a,href:l,onClick:s,title:u,titleAs:c}=e,d=[o,t,(s||l)&&`${o}--has-onclick`].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:d,id:t,children:[(0,n.jsx)(c??"div",{className:`${o}__title`,children:u}),r&&(0,n.jsx)("div",{className:`${o}__actions`,children:r}),(s||l)&&(0,n.jsx)(i.Button,{"aria-label":a,buttonStyle:"none",className:`${o}__click`,el:"link",onClick:s,to:l})]})}},94514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},94577:(e,t,r)=>{"use strict";e.exports=r(99617)},94852:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]])},94961:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},95153:(e,t,r)=>{"use strict";r.d(t,{C5:()=>s,Rp:()=>u,wJ:()=>l,Qq:()=>a,Xh:()=>c}),r(89901);var n=r(72135);r(69653);let i="default"in n?n.default:n,o="default"in n?n.default:n,a=(e,{hasMany:t,maxLength:r,maxRows:n,minLength:i,minRows:o,req:{payload:{config:a},t:l},required:s})=>{let u;if(!s&&null==e)return!0;if(!0===t){let t=d(e,{maxRows:n,minRows:o,required:s,t:l});if("string"==typeof t)return t}for(let t of("number"==typeof a?.defaultMaxTextLength&&(u=a.defaultMaxTextLength),"number"==typeof r&&(u=r),Array.isArray(e)?e:[e])){let e=t?.length||0;if("number"==typeof u&&e>u)return l("validation:shorterThanMax",{label:l("general:value"),maxLength:u,stringValue:t});if("number"==typeof i&&e<i)return l("validation:longerThanMin",{label:l("general:value"),minLength:i,stringValue:t})}return!(s&&(!e||("string"==typeof e||Array.isArray(e))&&0===e.length))||l("validation:required")},l=(e,{maxLength:t,minLength:r=3,req:{payload:{config:n},t:i},required:o})=>{let a;return("number"==typeof n?.defaultMaxTextLength&&(a=n.defaultMaxTextLength),"number"==typeof t&&(a=t),e&&a&&e.length>a)?i("validation:shorterThanMax",{maxLength:a}):e&&r&&e.length<r?i("validation:longerThanMin",{minLength:r}):!o||!!e||i("validation:required")},s=(e,{req:{t},required:r,siblingData:n})=>r&&!e?t("validation:required"):!e||e===n.password||t("fields:passwordsDoNotMatch"),u=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:o,siblingData:a})=>{if(t){let o=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);
51if(o.auth.loginWithUsername&&!o.auth.loginWithUsername?.requireUsername&&!o.auth.loginWithUsername?.requireEmail&&!e&&!a?.username)return i("validation:required")}return(!e||!!/^(?!.*\.\.)[\w!#$%&'*+/=?^`{|}~-](?:[\w!#$%&'*+/=?^`{|}~.-]*[\w!#$%&'*+/=?^`{|}~-])?@[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*\.[a-z]{2,}$/i.test(e))&&(!!e||!o)||i("validation:emailAddress")},c=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:o,siblingData:a})=>{let l;if(t){let o=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);if(o.auth.loginWithUsername&&!o.auth.loginWithUsername?.requireUsername&&!o.auth.loginWithUsername?.requireEmail&&!e&&!a?.email)return i("validation:required")}return("number"==typeof n?.defaultMaxTextLength&&(l=n.defaultMaxTextLength),e&&l&&e.length>l)?i("validation:shorterThanMax",{maxLength:l}):!!e||!o||i("validation:required")},d=(e,t)=>{let{maxRows:r,minRows:n,required:i,t:o}=t,a=Array.isArray(e)?e.length:e||0;return!i&&0===a||(n&&a<n?o("validation:requiresAtLeast",{count:n,label:o("general:rows")}):r&&a>r?o("validation:requiresNoMoreThan",{count:r,label:o("general:rows")}):!i||!!a||o("validation:requiresAtLeast",{count:1,label:o("general:row")}))}},95163:(e,t,r)=>{"use strict";r.d(t,{YF:()=>u,dj:()=>c,fP:()=>d,ky:()=>s});var n=r(11785),i=r(74624),o=r(67489),a=r(21433),l=r(78636),s=(0,n.VP)("mouseClick"),u=(0,n.Nc)();u.startListening({actionCreator:s,effect:(e,t)=>{var r=e.payload,n=(0,o.g)(t.getState(),(0,l.X)(r));(null==n?void 0:n.activeIndex)!=null&&t.dispatch((0,i.jF)({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var c=(0,n.VP)("mouseMove"),d=(0,n.Nc)(),f=null,h=null,p=null;d.startListening({actionCreator:c,effect:(e,t)=>{var r=e.payload,{throttleDelay:n,throttledEvents:s}=t.getState().eventSettings,u="all"===s||(null==s?void 0:s.includes("mousemove"));null!==f&&(cancelAnimationFrame(f),f=null),null===h||"number"==typeof n&&u||(clearTimeout(h),h=null),p=(0,l.X)(r);var c=()=>{var e=t.getState(),r=(0,a.au)(e,e.tooltip.settings.shared);if(!p){f=null,h=null;return}if("axis"===r){var n=(0,o.g)(e,p);(null==n?void 0:n.activeIndex)!=null?t.dispatch((0,i.Nt)({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch((0,i.xS)())}f=null,h=null};u?"raf"===n?f=requestAnimationFrame(c):"number"==typeof n&&null===h&&(h=setTimeout(c,n)):c()}})},95295:(e,t,r)=>{"use strict";r.d(t,{dl:()=>s,lJ:()=>l,uN:()=>o});var n=r(11785),i=r(92191),o=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!(0,i.M8)(r))return e[r]}},a=(0,n.Z0)({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),l=a.reducer,{createEventEmitter:s}=a.actions},95334:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var n=(0,r(12115).createContext)(null)},95957:(e,t,r)=>{"use strict";r.d(t,{a:()=>p,b:()=>m,c:()=>g,d:()=>y,e:()=>b,f:()=>w});var n,i,o=r(12115),a=r(47650);function l(e){if("react"===e)return n||(n=r.t(o,2));if("react-dom"===e)return i||(i=r.t(a,2));throw Error(`Unknown module ${e}`)}var s=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=l,m=(e,t)=>()=>(e&&(t=e(e=0)),t),g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},v=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of d(t))h.call(e,i)||i===r||u(e,i,{get:()=>t[i],enumerable:!(n=c(t,i))||n.enumerable});return e},b=(e,t,r)=>(r=null!=e?s(f(e)):{},v(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)),w=e=>v(u({},"__esModule",{value:!0}),e)},96003:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=r(91992),i=n.default;n.default.sanitize.bind(n.default),n.default.isSupported,n.default.addHook.bind(n.default),n.default.removeHook.bind(n.default),n.default.removeHooks.bind(n.default),n.default.removeAllHooks.bind(n.default),n.default.setConfig.bind(n.default),n.default.clearConfig.bind(n.default),n.default.isValidAttribute.bind(n.default),n.default.version,n.default.removed},96035:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},96151:(e,t,r)=>{"use strict";r.d(t,{DocumentTabLink:()=>s});var n=r(19749),i=r(95155),o=r(73299),a=r(73321),l=r(52735);r(12115);let s=e=>{let t,r,s=(0,n.c)(13),{adminRoute:u,ariaLabel:c,baseClass:d,children:f,href:h,isActive:p,newTab:m}=e,g=(0,a.usePathname)(),y=(0,a.useParams)(),v=(0,a.useSearchParams)().get("locale"),[b,w,x,_]=y.segments||[],S="collections"===b,k=`/${S?"collections":"globals"}/${w}`;s[0]!==u||s[1]!==k?(t=(0,l.Q)({adminRoute:u,path:k}
51),s[0]=u,s[1]=k,s[2]=t):t=s[2];let O=t;S&&("trash"===x&&_?O+=`/trash/${_}`:x&&(O+=`/${x}`));let C=`${O}${h}`,E=`${C}${v?`?locale=${v}`:""}`;if(s[3]!==c||s[4]!==d||s[5]!==f||s[6]!==O||s[7]!==C||s[8]!==E||s[9]!==p||s[10]!==m||s[11]!==g){let e=C===O&&g===O||C!==O&&g.startsWith(C)||p;r=(0,i.jsx)(o.Button,{"aria-label":c,buttonStyle:"tab",className:[d,e&&`${d}--active`].filter(Boolean).join(" "),disabled:e,el:e&&C===g?"div":"link",margin:!1,newTab:m,size:"medium",to:e&&C===g?void 0:E,children:f}),s[3]=c,s[4]=d,s[5]=f,s[6]=O,s[7]=C,s[8]=E,s[9]=p,s[10]=m,s[11]=g,s[12]=r}else r=s[12];return r}},96194:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});let n={BROWSE_BY_FOLDER:"browse-by-folder",DASHBOARD_LAYOUT:"dashboard-layout",NAV:"nav"}},96338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(89034),i=r(4378),o=r(83732),a=r(83732);t.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:l,parentSchema:s,it:u}=e,{opts:c}=u,d=(0,n.allSchemaProperties)(r),f=d.filter(e=>(0,o.alwaysValidSchema)(u,r[e]));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;let h=c.strictSchema&&!c.allowMatchingProperties&&s.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,a.evaluatedPropsToName)(t,u.props));let{props:m}=u;for(let e of d)h&&function(e){for(let t in h)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),u.allErrors?g(e):(t.var(p,!0),g(e),t.if(p));function g(r){t.forIn("key",l,o=>{t.if((0,i._)`${(0,n.usePattern)(e,r)}.test(${o})`,()=>{let n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:a.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign((0,i._)`${m}[${o}]`,!0):n||u.allErrors||t.if((0,i.not)(p),()=>t.break())})})}}}},96405:(e,t,r)=>{"use strict";r.d(t,{Cd:()=>g,I2:()=>f,MT:()=>a,Vh:()=>s,Z7:()=>h,aO:()=>u,eE:()=>o,jY:()=>m,pz:()=>p,sd:()=>i,uT:()=>d,vs:()=>l,zj:()=>c});var n=r(41463);function i(e){return"group"===e.type||"array"===e.type||"row"===e.type||"collapsible"===e.type}function o(e){return"array"===e.type}function a(e){return"blocks"===e.type}function l(e){return"object"==typeof e}function s(e){return Array.isArray(e)&&"object"==typeof e?.[0]}function u(e){return"ui"===e.type}function c(e){return"admin"in e&&"position"in e.admin&&"sidebar"===e.admin.position}function d(e){return"name"in e&&"id"===e.name}function f(e){return"hidden"in e&&e.hidden||"admin"in e&&"disabled"in e.admin&&e.admin.disabled}function h(e){return"name"in e&&!u(e)}function p(e){return"name"in e}function m(e){return"name"in e}function g({field:e,parentIsLocalized:t}){return!!("localized"in e&&e.localized&&(!t||"true"===n.env.NEXT_PUBLIC_PAYLOAD_COMPATIBILITY_allowLocalizedWithinLocalized))}},96504:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},96561:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var n=r(12115),i=r(10365),o=r(74624),a=r(64105);function l(e){var{tooltipEntrySettings:t}=e,r=(0,i.j)(),l=(0,a.r)(),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{l||(null===s.current?r((0,o.Ix)(t)):s.current!==t&&r((0,o.Zp)({prev:s.current,next:t})),s.current=t)},[t,r,l]),(0,n.useLayoutEffect)(()=>()=>{s.current&&(r((0,o.XB)(s.current)),s.current=null)},[r]),null}},96647:(e,t,r)=>{"use strict";r.d(t,{s:()=>I});var n=r(12115),i=r(47650),o=r(30125),a=r(29722),l=r(67816),s=r(93972),u=r(18387),c=r(43527);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
51t%2?f(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var p={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function m(e){var{data:t,iconType:r,inactiveColor:i}=e,o=32/6,a=32/3,l=t.inactive?i:t.color,u=null!=r?r:t.type;if("none"===u)return null;if("plainline"===u)return n.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:function(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}(t.payload),x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===u)return n.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(16,"h").concat(a,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(16,"\n H").concat(32,"M").concat(2*a,",").concat(16,"\n A").concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(16),className:"recharts-legend-icon"});if("rect"===u)return n.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(n.isValidElement(t.legendIcon)){var c=h({},t);return delete c.legendIcon,n.cloneElement(t.legendIcon,c)}return n.createElement(s.i,{fill:l,cx:16,cy:16,size:32,sizeType:"diameter",type:u})}function g(e){var{payload:t,iconSize:r,layout:i,formatter:o,inactiveColor:s,iconType:c,labelStyle:f}=e,p={x:0,y:0,width:32,height:32},g={display:"horizontal"===i?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,i)=>{var v=t.formatter||o,b=(0,a.$)({"recharts-legend-item":!0,["legend-item-".concat(i)]:!0,inactive:t.inactive});if("none"===t.type)return null;var w="object"==typeof f?h({},f):{};w.color=t.inactive?s:w.color||t.color;var x=v?v(t.value,t,i):t.value;return n.createElement("li",d({className:b,style:g,key:"legend-item-".concat(i)},(0,u.XC)(e,t,i)),n.createElement(l.u,{width:r,height:r,viewBox:p,style:y,"aria-label":"".concat(t.value," legend icon")},n.createElement(m,{data:t,iconType:c,inactiveColor:s})),n.createElement("span",{className:"recharts-legend-item-text",style:w},x))})}var y=e=>{var t=(0,c.e)(e,p),{payload:r,layout:i,align:o}=t;return r&&r.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===i?o:"left"}},n.createElement(g,d({},t,{payload:r}))):null},v=r(1760),b=r(10365),w=r(33313),x=r(2644),_=r(65372),S=r(51124),k=r(46574),O=["contextPayload"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEac
51h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function M(e){return e.value}function A(e){var{contextPayload:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,O),i=(0,v.s)(t,e.payloadUniqBy,M),o=T(T({},r),{},{payload:i});return n.isValidElement(e.content)?n.cloneElement(e.content,o):"function"==typeof e.content?n.createElement(e.content,o):n.createElement(y,o)}function N(e){var t=(0,b.j)();return(0,n.useEffect)(()=>{t((0,S.h1)(e))},[t,e]),null}function P(e){var t=(0,b.j)();return(0,n.useEffect)(()=>(t((0,S.hx)(e)),()=>{t((0,S.hx)({width:0,height:0}))}),[t,e]),null}var j={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"},I=n.memo(function(e){var t,r=(0,c.e)(e,j),a=(0,b.G)(w.g0),l=(0,o.M)(),s=(0,_.Kp)(),{width:u,height:d,wrapperStyle:f,portal:h}=r,[p,m]=(0,x.V)([a]),g=(0,_.yi)(),y=(0,_.rY)();if(null==g||null==y)return null;var v=g-((null==s?void 0:s.left)||0)-((null==s?void 0:s.right)||0),S=(t=r.layout,"vertical"===t&&null!=d?{height:d}:"horizontal"===t?{width:u||v}:null),k=h?f:T(T({position:"absolute",width:(null==S?void 0:S.width)||u||"auto",height:(null==S?void 0:S.height)||d||"auto"},function(e,t,r,n,i,o){var a,l,{layout:s,align:u,verticalAlign:c}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(a="center"===u&&"vertical"===s?{left:((n||0)-o.width)/2}:"right"===u?{right:r&&r.right||0}:{left:r&&r.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(l="middle"===c?{top:((i||0)-o.height)/2}:"bottom"===c?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),T(T({},a),l)}(f,r,s,g,y,p)),f),O=null!=h?h:l;if(null==O||null==a)return null;var E=n.createElement("div",{className:"recharts-legend-wrapper",style:k,ref:m},n.createElement(N,{layout:r.layout,align:r.align,verticalAlign:r.verticalAlign,itemSorter:r.itemSorter}),!h&&n.createElement(P,{width:p.width,height:p.height}),n.createElement(A,C({},r,S,{margin:s,chartWidth:g,chartHeight:y,contextPayload:a})));return(0,i.createPortal)(E,O)},k.P);I.displayName="Legend"},96709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=n.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}};t.default={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${o[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,n._)`${r} ${o[t].fail} ${i} || isNaN(${r})`)}}},97144:(e,t,r)=>{"use strict";r.d(t,{$f:()=>A,G2:()=>b,I$:()=>k,Im:()=>P,Qv:()=>s,Sd:()=>y,Z1:()=>O,_G:()=>c,_e:()=>h,bh:()=>w,eB:()=>u,eT:()=>g,ec:()=>N,hy:()=>E,iz:()=>C,pC:()=>_,yY:()=>x,y_:()=>j});var n=r(8242),i=r(27050),o=r(76865);let a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let s=(e,t,r)=>{let a=l(e,r);if(!a)return!1;let s=p(a);if(!s){let r=a.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=s.nodeBefore;if(T(e,s,t,-1))return!0;if(0==a.parent.content.size&&(f(u,"end")||o.nh.isSelectable(u)))for(let r=a.depth;;r--){let l=(0,n.$L)(e.doc,a.before(r),a.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(f(u,"end")?o.LN.findFrom(r.doc.resolve(r.mapping.map(s.pos,-1)),-1):o.nh.create(r.doc,s.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||a.node(r-1).childCount>1)break}return!!u.isAtom&&s.depth==a.depth-1&&(t&&t(e.tr.delete(s.pos-u.nodeSize,s.pos).scrollIntoView()),!0)},u=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=p(n);return!!i&&d(e,i,t)},c=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=v(n);return!!i&&d(e,i,t)};function d(e,t,r){let a=t.nodeBefore,l=t.pos-1;for(;!a.isTextblock;l--){if(a.type.spec.isolating)return!1;let e=a.lastChild;if(!e)return!1;a=e}let s=t.nodeAfter,u=t.pos+1;for(;!s.isTextblock;u++){if(s.type.spec.isolating)return!1;let e=s.firstChild;if(!e)return!1;s=e}let c=(0,n.$L)(e.doc,l,u,i.Ji.empty);if(!c||c.from!=l||c instanceof n.Ln&&c.slice.size>=u-l)return!1;if(r){let t=e.tr.step(c);t.setSelection(o.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function f(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;
51if(r&&1!=n.childCount)break}return!1}let h=(e,t,r)=>{let{$head:n,empty:i}=e.selection,a=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;a=p(n)}let l=a&&a.nodeBefore;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,a.pos-l.nodeSize)).scrollIntoView()),!0)};function p(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let a=m(e,r);if(!a)return!1;let l=v(a);if(!l)return!1;let s=l.nodeAfter;if(T(e,l,t,1))return!0;if(0==a.parent.content.size&&(f(s,"start")||o.nh.isSelectable(s))){let r=(0,n.$L)(e.doc,a.before(),a.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(f(s,"start")?o.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):o.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!s.isAtom&&l.depth==a.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+s.nodeSize).scrollIntoView()),!0)},y=(e,t,r)=>{let{$head:n,empty:i}=e.selection,a=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;a=v(n)}let l=a&&a.nodeAfter;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,a.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let b=(e,t)=>{let r=e.selection,i=r instanceof o.nh,a;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;a=r.from}else if(null==(a=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(a);i&&r.setSelection(o.nh.create(r.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},w=(e,t)=>{let r=e.selection,i;if(r instanceof o.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},x=(e,t)=>{let{$from:r,$to:i}=e.selection,o=r.blockRange(i),a=o&&(0,n.jP)(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)},_=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function S(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let k=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),a=r.indexAfter(-1),l=S(i.contentMatchAt(a));if(!l||!i.canReplaceWith(a,a,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},O=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof o.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let a=S(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,a.createAndFill());l.setSelection(o.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},C=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),o=i&&(0,n.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},E=(e,t)=>{let{$from:r,to:n}=e.selection,i,a=r.sharedDepth(n);return 0!=a&&(i=r.before(a),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)};function T(e,t,r,a){let l,s,u,c=t.nodeBefore,d=t.nodeAfter,h,p,m=c.type.spec.isolating||d.type.spec.isolating;if(!m&&(l=t.nodeBefore,s=t.nodeAfter,u=t.index(),l&&s&&l.type.compatibleContent(s.type)&&(!l.content.size&&t.parent.canReplace(u-1,u)?(r&&r(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(s.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(h=(p=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&p.matchType(h[0]||d.type).validEnd){if(r){let o=t.pos+d.nodeSize,a=i.FK.empty;for(let e=h.length-1;e>=0;e--)a=i.FK.from(h[e].create(null,a));a=i.FK.from(c.copy(a));let l=e.tr.step(new n.Wg(t.pos-1,o,t.pos,o,new i.Ji(a,1,0),h.length,!0)),s=l.doc.resolve(o+2*h.length);s.nodeAfter&&s.nodeAfter.type==c.type&&(0,n.n9)(l.doc,s.pos)&&l.join(s.pos),r(l.scrollIntoView())}return!0}let y=d.type.spec.isolating||a>0&&m?null:o.LN.findFrom(t,1),v=y&&y.$from.blockRange(y.$to),b=v&&(0,n.jP)(v);if(null!=b&&b>=t.depth)return r&&r(e.tr.lift(v,b).scrollIntoView()),!0;if(g&&f(d,"start",!0)&&f(c,"end")){let o=c,a=[];for(;a.push(o),!o.isTextblock;)o=o.lastChild;let l=d,s=1;for(;!l.isTextblock;l=l.firstChild)s++;
51if(o.canReplace(o.childCount,o.childCount,l.content)){if(r){let o=i.FK.empty;for(let e=a.length-1;e>=0;e--)o=i.FK.from(a[e].copy(o));r(e.tr.step(new n.Wg(t.pos-a.length,t.pos+d.nodeSize,t.pos+s,t.pos+d.nodeSize-s,new i.Ji(o,a.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function M(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(r&&r(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}let A=M(-1),N=M(1);function P(e,t=null){return function(r,i){let{$from:o,$to:a}=r.selection,l=o.blockRange(a),s=l&&(0,n.oM)(l,e,t);return!!s&&(i&&i(r.tr.wrap(l,s).scrollIntoView()),!0)}}function j(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:o},$to:{pos:a}}=r.selection.ranges[n];r.doc.nodesBetween(o,a,(n,o)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(o),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:o},$to:{pos:a}}=r.selection.ranges[n];i.setBlockType(o,a,e,t)}n(i.scrollIntoView())}return!0}}function I(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let D=I(a,s,h),$=I(a,g,y),R={Enter:I(_,O,C,(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],l,s,u=!1,c=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){let t;u=r.end(e)==r.pos+(r.depth-e),c=r.start(e)==r.pos-(r.depth-e),s=S(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));a.unshift(t||(u&&s?{type:s}:null)),l=e;break}if(1==e)return!1;a.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let f=d.mapping.map(r.pos),h=(0,n.zy)(d.doc,f,a.length,a);if(h||(a[0]=s?{type:s}:null,h=(0,n.zy)(d.doc,f,a.length,a)),!h)return!1;if(d.split(f,a.length,a),!u&&c&&r.node(l).type!=s){let e=d.mapping.map(r.before(l)),t=d.doc.resolve(e);s&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,s)&&d.setNodeMarkup(d.mapping.map(r.before(l)),s)}return t&&t(d.scrollIntoView()),!0}),"Mod-Enter":k,Backspace:D,"Mod-Backspace":D,"Shift-Backspace":D,Delete:$,"Mod-Delete":$,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},L={"Ctrl-h":R.Backspace,"Alt-Backspace":R["Mod-Backspace"],"Ctrl-d":R.Delete,"Ctrl-Alt-Backspace":R["Mod-Delete"],"Alt-Delete":R["Mod-Delete"],"Alt-d":R["Mod-Delete"],"Ctrl-a":A,"Ctrl-e":N};for(let e in R)L[e]=R[e];"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform()},97233:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},97303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(89034),i=r(4378),o=r(20804),a=r(83732);t.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,i._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:r,parentSchema:l,data:s,errsCount:u,it:c}=e;if(!u)throw Error("ajv implementation error");let{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&(0,a.alwaysValidSchema)(c,r))return;let h=(0,n.allSchemaProperties)(l.properties),p=(0,n.allSchemaProperties)(l.patternProperties);function m(e){t.code((0,i._)`delete ${s}[${e}]`)}function g(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)return void m(n);if(!1===r){e.setParams({additionalProperty:n}),e.error(),d||t.break();return}if("object"==typeof r&&!(0,a.alwaysValidSchema)(c,r)){let r=t.name("valid");"failing"===f.removeAdditional?(y(n,r,!1),t.if((0,i.not)(r),()=>{e.reset(),m(n)})):(y(n,r),d||t.if((0,i.not)(r),()=>t.break()))}}function y(t,r,n){let i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",s,r=>{h.length||p.length?t.if(function(r){let o;if(h.length>8){let e=(0,a.schemaRefOrVal)(c,l.properties,"properties");o=(0,n.isOwnProperty)(t,e,r)}else o=h.length?(0,i.or)(...h.map(e=>(0,i._)`${r} === ${e}`)):i.nil;return p.length&&(o=(0,i.or)(o,...p.map(t=>(0,i._)`${(0,n.usePattern)(e,t)}.test(${r})`))),(0,i.not)(o)}(r),()=>g(r)):g(r)}),e.ok((0,i._)`${u} === ${o.default.errors}`)}}},97489:(e,t,r)=>{"use strict";
51Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;let n=r(12936),i=r(53855),o=r(264),a=r(53855),l=r(93541),s=r(49674),u=r(39168),c=r(4378),d=r(20804),f=r(33120),h=r(83732),p=r(15571);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){var a;i.code.es5?e.func(t,(0,c._)`${d.default.data}, ${d.default.valCxt}`,n.$async,()=>{var t,n;e.code((0,c._)`"use strict"; ${g(r,i)}`),t=e,n=i,t.if(d.default.valCxt,()=>{t.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),t.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),t.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),t.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{t.var(d.default.instancePath,(0,c._)`""`),t.var(d.default.parentData,(0,c._)`undefined`),t.var(d.default.parentDataProperty,(0,c._)`undefined`),t.var(d.default.rootData,d.default.data),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`{}`)}),e.code(o)}):e.func(t,(0,c._)`${d.default.data}, ${(a=i,(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${a.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`)}`,n.$async,()=>e.code(g(r,i)).code(o))}function g(e,t){let r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${r} */`:c.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function w(e,t){if(e.opts.jtd)return _(e,[],!1,t);let r=(0,i.getSchemaTypes)(e.schema),n=(0,i.coerceAndCheckDataType)(e,r);_(e,r,!n,t)}function x({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(!0===i.$comment)e.code((0,c._)`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){let r=(0,c.str)`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code((0,c._)`${d.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function _(e,t,r,n){var i,l,s,u;let{gen:f,schema:p,data:m,allErrors:g,opts:y,self:v}=e,{RULES:b}=v;if(p.$ref&&(y.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(p,b)))return void f.block(()=>E(e,"$ref",b.all.$ref.definition));function w(i){(0,o.shouldUseGroup)(p,i)&&(i.type?(f.if((0,a.checkDataType)(i.type,m,y.strictNumbers)),S(e,i),1===t.length&&t[0]===i.type&&r&&(f.else(),(0,a.reportTypeError)(e)),f.endIf()):S(e,i),g||f.if((0,c._)`${d.default.errors} === ${n||0}`))}y.jtd||(i=e,l=t,!i.schemaEnv.meta&&i.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{k(e.dataTypes,t)||O(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let r=[];for(let n of e.dataTypes)k(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)}}(i,l),i.opts.allowUnionTypes||(s=i,(u=l).length>1&&!(2===u.length&&u.includes("null"))&&O(s,"use allowUnionTypes to allow union type keyword")),function(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){let{type:r}=i.definition;r.length&&!r.some(e=>{var r,n;return r=t,n=e,r.includes(n)||"number"===n&&r.includes("integer")})&&O(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(i,i.dataTypes))),f.block(()=>{for(let e of b.rules)w(e);w(b.post)})}function S(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,l.assignDefaults)(e,t.type),r.block(()=>{for(let r of t.rules)(0,o.shouldUseRule)(n,r)&&E(e,r.keyword,r.definition,t.type)})}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function O(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}
51" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),y(e))?function(e){let{schema:t,opts:r,gen:n}=e;m(e,()=>{r.$comment&&t.$comment&&x(e),function(e){let{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,c._)`${r}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}(e),w(e),function(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,c._)`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw((0,c._)`new ${i}(${d.default.vErrors})`)):(t.assign((0,c._)`${n}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof c.Name&&e.assign((0,c._)`${t}.props`,r),n instanceof c.Name&&e.assign((0,c._)`${t}.items`,n)}(e),t.return((0,c._)`${d.default.errors} === 0`))}(e)})}(e):m(e,()=>(0,n.topBoolOrEmptySchema)(e))};class C{constructor(e,t,r){if((0,s.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",A(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,c.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=c.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,c.or)((0,c._)`${n} === undefined`,t)),e!==c.nil&&r.assign(e,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,c.or)(function(){if(r.length){if(!(t instanceof c.Name))throw Error("ajv implementation error");let e=Array.isArray(r)?r:[r];return(0,c._)`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}(),function(){if(n.validateSchema){let r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,c._)`!${r}(${t})`}return c.nil}())}subschema(e,t){let r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return!function(e,t){if(v(e)&&(b(e),y(e)))return function(e,t){var r;let n,{schema:i,gen:o,opts:a}=e;a.$comment&&i.$comment&&x(e),(n=(r=e).schema[r.opts.schemaId])&&(r.baseId=(0,f.resolveUrl)(r.opts.uriResolver,r.baseId,n)
51),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(e);let l=o.const("_errs",d.default.errors);w(e,l),o.var(t,(0,c._)`${l} === ${d.default.errors}`)}(e,t);(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){let{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){let{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function E(e,t,r,n){let i=new C(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,s.funcKeywordCode)(i,r):"macro"in r?(0,s.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,s.funcKeywordCode)(i,r)}t.KeywordCxt=C;let T=/^\/(?:[^~]|~0|~1)*$/,M=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function A(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!T.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{let a=M.exec(e);if(!a)throw Error(`Invalid JSON-pointer: ${e}`);let s=+a[1];if("#"===(i=a[2])){if(s>=t)throw Error(l("property/index",s));return n[t-s]}if(s>t)throw Error(l("data",s));if(o=r[t-s],!i)return o}let a=o;for(let e of i.split("/"))e&&(o=(0,c._)`${o}${(0,c.getProperty)((0,h.unescapeJsonPointer)(e))}`,a=(0,c._)`${a} && ${o}`);return a;function l(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=A},97651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(73623),a=r(95413),l=r(38437),s=o._(r(36095));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,90,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=l.Image},97697:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}},98401:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(12588).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},98534:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){let r=new Map;for(let n=0;n<e.length;n++){let i=e[n],o=t(i,n,e);r.has(o)||r.set(o,i)}return Array.from(r.values())}},98607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[r(29566).default]},98814:(e,t,r)=>{"use strict";r.d(t,{M:()=>l});var n=r(12115),i=r(10365),o=r(75450),a=r(46574),l=(0,n.memo)(e=>{var t=(0,i.j)();return(0,n.useEffect)(()=>{t((0,o.O6)(e))},[t,e]),null},a.P)},98820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4378),i=r(83732);function o(e,t){let r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`},code(e){let t,{gen:r,parentSchema:a,it:l}=e;void 0===a.then&&void 0===a.else&&(0,i.checkStrictMode)(l,'"if" without "then" and "else" is ignored');let s=o(l,"then"),u=o(l,"else");if(!s&&!u)return;let c=r.let("valid",!0),d=r.name("_valid");if(t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d),e.mergeEvaluated(t),e.reset(),s&&u){let t=r.let("ifClause");e.setParams({ifClause:t}),r.if(d,f("then",t),f("else",t))}else s?r.if(d,f("then")):r.if((0,n.not)(d),f("else"));function f(t,i){return()=>{let o=e.subschema({keyword:t},d);r.assign(c,d),e.mergeValidEvaluated(o,c),i?r.assign(i,(0,n._)`${t}`):e.setParams({ifClause:t})}}e.pass(c,()=>e.error(!0))}}},98987:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(11691),i=r(4882);t.range=function(e,t,r){r&&"number"!=typeof r&&n.isIterateeCall(e,t,r)&&(t=r=void 0),e=i.toFinite(e),void 0===t?(t=e,e=0):t=i.toFinite(t),r=void 0===r?e<t?1:-1:i.toFinite(r);let o=Math.max(Math.ceil((t-e)/(r||1)),0),a=Array(o);for(let t=0;t<o;t++)a[t]=e,e+=r;return a}},99050:(e,t,r)=>{"use strict";r.d(t,{h4:()=>U});var n,i=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function l(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function u(e){return!!e&&!!e[a]}function c(e){return!!e&&(h(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||v(e)||b(e))}var d=Object.prototype.constructor.toString(),f=new WeakMap;function h(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;
51if("function"!=typeof r)return!1;let n=f.get(r);return void 0===n&&(n=Function.toString.call(r),f.set(r,n)),n===d}function p(e,t,r=!0){0===m(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function m(e){let t=e[a];return t?t.type_:Array.isArray(e)?1:v(e)?2:3*!!b(e)}function g(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,r){let n=m(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function v(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(v(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=h(e);if(!0!==t&&("class_only"!==t||r)){let t=s(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}}function _(e,t=!1){return k(e)||u(e)||!c(e)||(m(e)>1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>_(e,!0))),e}var S={value:function(){l(2)}};function k(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var O={};function C(e){let t=O[e];return t||l(0),t}function E(e,t){t&&(C("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function T(e){M(e),e.drafts_.forEach(N),e.drafts_=null}function M(e){e===n&&(n=e.parent_)}function A(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function N(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function P(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[a].modified_&&(T(t),l(4)),c(e)&&(e=j(t,e),t.parent_||D(t,e)),t.patches_&&C("Patches").generateReplacementPatches_(r[a].base_,e,t.patches_,t.inversePatches_)):e=j(t,r,[]),T(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function j(e,t,r){if(k(t))return t;let n=e.immer_.shouldUseStrictIteration(),i=t[a];if(!i)return p(t,(n,o)=>I(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return D(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),p(o,(n,o)=>I(e,i,t,n,o,r,a),n),D(e,t,!1),r&&e.patches_&&C("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function I(e,t,r,n,i,o,a){if(null==i||"object"!=typeof i&&!a)return;let l=k(i);if(!l||a){if(u(i)){let a=j(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,n)?o.concat(n):void 0);if(y(r,n,a),!u(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(c(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&l)return;j(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(v(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&D(e,i)}}}function D(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,r)}var $={get(e,t){if(t===a)return e;let r=w(e);if(!g(r,t)){var n;let i;return n=e,(i=z(r,t))?"value"in i?i.value:i.get?.call(n.draft_):void 0}let i=r[t];return e.finalized_||!c(i)?i:i===L(e.base_,t)?(B(e),e.copy_[t]=K(i,e)):i},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,r){let n=z(w(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=L(w(e),t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||g(e.base_,t)))return!0;B(e),F(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==L(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,B(e),F(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=w(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){l(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){l(12)}},R={};function L(e,t){let r=e[a];return(r?w(r):e)[t]}function z(e,t){if(!(t in e))return;let r=s(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=s(r)}}function F(e){!e.modified_&&(e.modified_=!0,e.parent_&&F(e.parent_))}function B(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function K(e,t){let r=v(e)?C("MapSet").proxyMap_(e,t):b(e)?C("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=i,a=$;r&&(o=[i],a=R);let{revoke:l,proxy:s}=Proxy.revocable(o,a);return i.draft_=s,i.revoke_=l,s}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function U(e){return e}p($,(e,t)=>{R[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),R.deleteProperty=function(e,t){return R.set.call(this,e,t,void 0)},R.set=function(e,t,r){return $.set.call(this,e[0],t,r,e[0])},new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&l(6),void 0!==r&&"function"!=typeof r&&l(7),c(e)){let i=A(this),o=K(e,void 0),a=!0;try{n=t(o),a=!1}finally{a?T(i):M(i)}return E(i,r),P(n,i)}if(e&&"object"==typeof e)l(1);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&_(n,!0),r){let t=[],i=[];C("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;c(e)||l(8),u(e)&&(u(t=e)||l(10),e=function e(t){let r;if(!c(t)||k(t))return t;let n=t[a],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=x(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=x(t,!0);return p(r,(t,n)=>{y(r,t,e(n))},i),n&&(n.finalized_=!1),r}(t));let r=A(this),n=K(e,void 0);return n[a].isManual_=!0,M(r),n}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||l(9);let{scope_:n}=r;return E(n,t),P(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];
51if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=C("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce},99274:e=>{"use strict";let t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function a(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(48!==(r=e[n].charCodeAt(0))){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(!((r=e[n].charCodeAt(0))>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}let l=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(e){return e.length=0,!0}function u(e,t,r){if(e.length){let n=a(e);if(""===n)return r.error=!0,!1;t.push(n),e.length=0}return!0}function c(e){if(2>function(e){let t=0;for(let r=0;r<e.length;r++)":"===e[r]&&t++;return t}(e))return{host:e,isIPV6:!1};let t=function(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,l=!1,c=u;for(let a=0;a<e.length;a++){let u=e[a];if("["!==u&&"]"!==u)if(":"===u){if(!0===o&&(l=!0),!c(i,n,r))break;if(++t>7){r.error=!0;break}a>0&&":"===e[a-1]&&(o=!0),n.push(":");continue}else if("%"===u){if(!c(i,n,r))break;c=s}else{i.push(u);continue}}return i.length&&(c===s?r.zone=i.join(""):l?n.push(i.join("")):n.push(a(i))),r.address=n.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}let d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,h=/[@/?#]/g;function p(e,t){let r=t?h:f;return r.lastIndex=0,e.replace(r,e=>d[e])}e.exports={nonSimpleDomain:l,recomposeAuthority:function(e){let t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let n=unescape(e.host);if(!r(n)){let e=c(n);n=!0===e.isIPV6?`[${e.escapedHost}]`:p(n,!1)}t.push(n)}return("number"==typeof e.port||"string"==typeof e.port)&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},reescapeHostDelimiters:p,normalizePercentEncoding:function(e,t=!1){if(-1===e.indexOf("%"))return e;let r="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){let a=e.slice(o+1,o+3);if(n(a)){let e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));t&&i(n)?r+=n:r+="%"+e,o+=2;continue}}r+=e[o]}return r},normalizePathEncoding:function(e){let t="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){let o=e.slice(r+1,r+3);if(n(o)){let e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?t+=n:t+="%"+e,r+=2;continue}}o(e[r])?t+=e[r]:t+=escape(e[r])}return t},escapePreservingEscapes:function(e){let t="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){let i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t},removeDotSegments:function(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(1===i)if("."===t)break;else if("/"===t){r.push("/");break}else{r.push(t);break}if(2===i){if("."===t[0]){if("."===t[1])break;else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===i&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}else if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(n=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:a}},99491:(e,t,r)=>{"use strict";r.d(t,{DE:()=>T,GO:()=>N,HY:()=>M,Js:()=>F,Mz:()=>_,YW:()=>v,cz:()=>z,i:()=>x,mJ:()=>A,q7:()=>$,v5:()=>S,x:()=>R});var n=r(49967),i=r(43971),o=r(53310),a=r(83489);function l(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e){let t=1,r=e.getParent();for(;null!=r;){if(_(r)){let e=r.getParent();if(M(e)){t++,r=e.getParent();continue}l(40)}break}return t}function u(e){let t=e.getParent();M(t)||l(40);let r=t;for(;null!==r;)M(r=r.getParent())&&(t=r);return t}function c(e){return _(e)&&M(e.getFirstChild())}function d(e){return x().append(e)}function f(e,t){return _(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function h(e){let t=(0,o.vJq)();if(null!==t){let r=t.getNodes();if((0,o.I2P)(t)){let n=t.getStartEndPoints();null===n&&l(143);let[i]=n,a=i.getNode(),s=a.getParent();if((0,o.IqF)(a)){let e=a.getFirstChild();if(e)r=e.selectStart().getNodes();else{let e=(0,o.lJ7)();a.append(e),r=e.select().getNodes()}}else if(f(a,r)){let t=T(e);if((0,o.IqF)(s)){a.replace(t);let e=x();(0,o.ff4)(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),t.append(e)}else if(_(a)){let e=a.getParentOrThrow();p(t,e.getChildren()),e.replace(t)}return}}let n=new Set;for(let t=0;t<r.length;t++){let i=r[t];if((0,o.ff4)(i)&&i.isEmpty()&&!_(i)&&!n.has(i.getKey())){m(i,e);continue}let a=(0,o.jG6)(i)?i.getParent():_(i)&&i.isEmpty()?i:null;for(;null!=a;){let t=a.getKey();if(M(a)){if(!n.has(t)){let r=T(e);p(r,a.getChildren()),a.replace(r),n.add(t)}break}{let r=a.getParent();if((0,o.IqF)(r)&&!n.has(t)){n.add(t),m(a,e);break}a=r}}}}}function p(e,t){e.splice(e.getChildrenSize(),0,t)}function m(e,t){let r;if(M(e))return e;let n=e.getPreviousSibling(),i=e.getNextSibling(),a=x();if(p(a,e.getChildren()),M(n)&&t===n.getListType())n.append(a),M(i)&&t===i.getListType()&&(p(n,i.getChildren()),i.remove()),r=n;else if(M(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(a),r=i;else{let n=T(t);n.append(a),e.replace(n),r=n}a.setFormat(e.getFormatType()),a.setIndent(e.getIndent());let l=(0,o.vJq)();return(0,o.I2P)(l)&&(r.getKey()===l.anchor.key&&l.anchor.set(a.getKey(),l.anchor.offset,"element"),r.getKey()===l.focus.key&&l.focus.set(a.getKey(),l.focus.offset,"element")),e.remove(),r}function g(e,t){let r=e.getLastChild(),n=t.getFirstChild();r&&n&&c(r)&&c(n)&&(g(r.getFirstChild(),n.getFirstChild()),n.remove());let i=t.getChildren();i.length>
510&&e.append(...i),t.remove()}function y(e){let t="check"!==e.getListType(),r=e.getStart();for(let n of e.getChildren())_(n)&&(n.getValue()!==r&&n.setValue(r),t&&null!=n.getLatest().__checked&&n.setChecked(void 0),M(n.getFirstChild())||r++)}class v extends o.fGB{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();M(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:o.fGB,importDOM:(0,o.kBm)({li:()=>({conversion:b,priority:0})})})}constructor(e=1,t,r){super(r),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,r){let n;!M(n=this.getParent())||"check"!==n.getListType()||M(this.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),e&&this.__checked===e.__checked||t.setAttribute("aria-checked",this.getChecked()?"true":"false")),t.value=this.__value,function(e,t,r){let n,i=[],a=[],l=t.list,s=l?l.listitem:void 0;if(l&&l.nested&&(n=l.nested.listitem),void 0!==s&&i.push(...(0,o.GYG)(s)),l){let e=r.getParent(),t=M(e)&&"check"===e.getListType(),n=r.getChecked();t&&!n||a.push(l.listitemUnchecked),t&&n||a.push(l.listitemChecked),t&&i.push(n?l.listitemChecked:l.listitemUnchecked)}if(void 0!==n){let e=(0,o.GYG)(n);r.getChildren().some(e=>M(e))?i.push(...e):a.push(...e)}a.length>0&&(0,o.HEf)(e,...a),i.length>0&&(0,o.ZB7)(e,...i)}(t,r.theme,this);let i=e?e.__style:"",l=this.__style;i!==l&&(""===l?t.removeAttribute("style"):t.style.cssText=l),function(e,t,r){let n=(0,a.Wh)(t.__textStyle);for(let t in n)e.style.setProperty(`--listitem-marker-${t}`,n[t]);if(r)for(let t in(0,a.Wh)(r.__textStyle))t in n||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,r){return this.updateListItemDOM(e,t,r),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),r=this.getFormatType();r&&(t.style.textAlign=r);let n=this.getDirection();return n&&(t.dir=n),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let r=e[t];if((0,o.ff4)(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(_(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!M(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let t=T(r.getListType()),n=this.getNextSibling();for(;n;){let e=n;n=n.getNextSibling(),t.append(e)}r.insertAfter(e),e.insertAfter(t)}
51return t&&((0,o.ff4)(e)||l(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===r.getChildrenSize()&&r.remove(),e}insertAfter(e,t=!0){let r=this.getParentOrThrow();if(M(r)||l(39),_(e))return super.insertAfter(e,t);let n=this.getNextSiblings();if(r.insertAfter(e,t),0!==n.length){let i=T(r.getListType());n.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&c(t)&&c(r)&&(g(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){let r=x().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){let t=(0,o.lJ7)();this.getChildren().forEach(e=>t.append(e));let r=this.getParentOrThrow(),n=r.getParentOrThrow(),i=_(n);if(1===r.getChildrenSize())if(i)r.remove(),n.select();else{r.insertBefore(t),r.remove();let n=e.anchor,i=e.focus,o=t.getKey();"element"===n.type&&n.getNode().is(this)&&n.set(o,n.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(o,i.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),r=this.getParent();return M(r)&&(e=r.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;_(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){"number"!=typeof e&&l(117),(e=Math.floor(e))>=0||l(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(c(e)||t.has(e.getKey()))return;let r=e.getParent(),n=e.getNextSibling(),i=e.getPreviousSibling();if(c(n)&&c(i)){let r=i.getFirstChild();if(M(r)){r.append(e);let i=n.getFirstChild();M(i)&&(p(r,i.getChildren()),n.remove(),t.add(n.getKey()))}}else if(c(n)){let t=n.getFirstChild();if(M(t)){let r=t.getFirstChild();null!==r&&r.insertBefore(e)}}else if(c(i)){let t=i.getFirstChild();M(t)&&t.append(e)}else if(M(r)){let t=x().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),o=T(r.getListType()).setTextFormat(r.getTextFormat()).setTextStyle(r.getTextStyle());t.append(o),o.append(e),i?i.insertAfter(t):n?n.insertBefore(t):r.append(t)}}(this),t++):(function(e){if(c(e))return;let t=e.getParent(),r=t?t.getParent():void 0;if(M(r?r.getParent():void 0)&&_(r)&&M(t)){let n=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(n))r.insertBefore(e),t.isEmpty()&&r.remove();else if(e.is(i))r.insertAfter(e),t.isEmpty()&&r.remove();else{let n=t.getListType(),i=x(),o=T(n);
51i.append(o),e.getPreviousSiblings().forEach(e=>o.append(e));let a=x(),l=T(n);a.append(l),p(l,e.getNextSiblings()),r.insertBefore(i),r.insertAfter(a),r.replace(e)}}}(this),t--);return this}canInsertAfter(e){return _(e)}canReplaceWith(e){return _(e)}canMergeWith(e){return _(e)||(0,o.bSg)(e)}extractWithChild(e,t){if(!(0,o.I2P)(t))return!1;let r=t.anchor.getNode(),n=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(n)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return T("bullet")}canMergeWhenEmpty(){return!0}}function b(e){if(e.classList.contains("task-list-item")){for(let t of e.children)if("INPUT"===t.tagName)return w(t)}if(e.classList.contains("joplin-checkbox")){for(let t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return w(t.children[0])}let t=e.getAttribute("aria-checked");return{node:x("true"===t||"false"!==t&&void 0)}}function w(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:x(e.hasAttribute("checked"))}}function x(e){return(0,o.pTq)(new v(void 0,e))}function _(e){return e instanceof v}class S extends o.fGB{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{let t;M(t=e.getNextSibling())&&e.getListType()===t.getListType()&&g(e,t),y(e)},extends:o.fGB,importDOM:(0,o.kBm)({ol:()=>({conversion:C,priority:0}),ul:()=>({conversion:C,priority:0})})})}constructor(e="number",t=1,r){super(r);const n=E[e]||e;this.__listType=n,this.__tag="number"===n?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let r=this.__tag,n=document.createElement(r);return 1!==this.__start&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,k(n,e.theme,this),n}updateDOM(e,t,r){return e.__tag!==this.__tag||e.__listType!==this.__listType||(k(t,r.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,o.sby)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,r){let n=r;for(let e=0;e<r.length;e++){let t=r[e];_(t)||(n===r&&(n=[...r]),n[e]=x().append(!(0,o.ff4)(t)||M(t)||t.isInline()?t:(0,o.sTu)(t.getTextContent())))}return super.splice(e,t,n)}extractWithChild(e){return _(e)}}function k(e,t,r){let n=[],i=[],a=t.list;if(void 0!==a){let e,t=a[`${r.__tag}Depth`]||[],l=s(r)-1,u=l%t.length,c=t[u],d=a[r.__tag],f=a.nested,h=a.checklist;if(void 0!==f&&f.list&&(e=f.list),void 0!==d&&n.push(d),void 0!==h&&"check"===r.__listType&&n.push(h),void 0!==c){n.push(...(0,o.GYG)(c));for(let e=0;e<t.length;e++)e!==u&&i.push(r.__tag+e)}if(void 0!==e){let t=(0,o.GYG)(e);l>1?n.push(...t):i.push(...t)}}i.length>0&&(0,o.HEf)(e,...i),n.length>0&&(0,o.ZB7)(e,...n)}function O(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){t.push(n);let e=n.getChildren();e.length>1&&e.forEach(e=>{M(e)&&t.push(d(e))})}else t.push(d(n))}return t}function C(e){let t=e.nodeName.toLowerCase(),r=null;return"ol"===t?r=T("number",e.start):"ul"===t&&(r=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(let t of e.childNodes)if((0,o.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?T("bullet"):T("check")),{after:O,node:r}}let E={ol:"number",ul:"bullet"};function T(e="number",t=1){return(0,o.pTq)(new S(e,t))}function M(e){return e instanceof S}let A=(0,o.guI)("INSERT_CHECK_LIST_COMMAND");function N(e,t){let r=t&&t.disableTakeFocusOnClick||!1,n=e=>{P(e,()=>{if((0,o.sby)(e.target)){let t=e.target,n=(0,o.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,o.xL4)(t);_(e)&&(r?((0,o.JAT)(o.XI_),(0,o.JAT)(o.$c$)):t.focus(),e.toggleChecked())})}})},i=e=>{P(e,()=>{e.preventDefault(),r&&e.stopPropagation()})};return(0,o.Sdt)(e.registerCommand(A,()=>(h("check"),!0),o.AcJ),e.registerCommand(o.bbF,t=>I(t,e,!1),o.AcJ),e.registerCommand(o.UDz,t=>I(t,e,!0),o.AcJ),e.registerCommand(o.Q$N,()=>{if(null!=j()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},o.AcJ),e.registerCommand(o.Huu,t=>{let r=j();return!(null==r||!e.isEditable())&&(e.update(()=>{let e=(0,o.xL4)(r);_(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},o.AcJ),e.registerCommand(o.AX0,t=>e.getEditorState().read(()=>{let r=(0,o.vJq)();if((0,o.I2P)(r)&&r.isCollapsed()){let{anchor:n}=r,i="element"===n.type;if(i||0===n.offset){let r=n.getNode(),a=(0,o.BtT)(r,e=>(0,o.ff4)(e)&&!e.isInline());if(_(a)){let n=a.getParent();if(M(n)&&"check"===n.getListType()&&(i||a.getFirstDescendant()===r)){let r=e.getElementByKey(a.__key);
51if(null!=r&&document.activeElement!==r)return r.focus(),t.preventDefault(),!0}}}}return!1}),o.AcJ),e.registerRootListener((e,t)=>{null!==e&&(e.addEventListener("click",n),e.addEventListener("pointerdown",i,{capture:!0}),e.addEventListener("mousedown",i,{capture:!0}),e.addEventListener("touchstart",i,{capture:!0,passive:!1})),null!==t&&(t.removeEventListener("click",n),t.removeEventListener("pointerdown",i,{capture:!0}),t.removeEventListener("mousedown",i,{capture:!0}),t.removeEventListener("touchstart",i,{capture:!0}))}))}function P(e,t){let r=e.target;if(!(0,o.sby)(r))return;let n=r.firstChild;if((0,o.sby)(n)&&("UL"===n.tagName||"OL"===n.tagName))return;let a=r.parentNode;if(!a||"check"!==a.__lexicalListType)return;let l=null,s=null;if("clientX"in e)l=e.clientX;else if("touches"in e){let t=e.touches;t.length>0&&(l=t[0].clientX,s="touch")}if(null==l)return;let u=r.getBoundingClientRect(),c=l/(0,i.OV)(r),d=parseFloat((window.getComputedStyle?window.getComputedStyle(r,"::before"):{width:"0px"}).width),f=32*("touch"===s||"touch"===e.pointerType);("rtl"===r.dir?c<u.right+f&&c>u.right-d-f:c>u.left-f&&c<u.left+d+f)&&t()}function j(){let e=document.activeElement;return(0,o.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function I(e,t,r){let n=j();return null!=n&&t.update(()=>{let i=(0,o.xL4)(n);if(!_(i))return;let a=function(e,t){let r=t?e.getPreviousSibling():e.getNextSibling(),n=e;for(;null==r&&_(n);)null!=(n=n.getParentOrThrow().getParent())&&(r=t?n.getPreviousSibling():n.getNextSibling());for(;_(r);){let e=t?r.getLastChild():r.getFirstChild();if(!M(e))return r;r=t?e.getLastChild():e.getFirstChild()}return null}(i,r);if(null!=a){a.selectStart();let r=t.getElementByKey(a.__key);null!=r&&(e.preventDefault(),setTimeout(()=>{r.focus()},0))}}),!1}let D=(0,o.guI)("UPDATE_LIST_START_COMMAND"),$=(0,o.guI)("INSERT_UNORDERED_LIST_COMMAND"),R=(0,o.guI)("INSERT_ORDERED_LIST_COMMAND"),L=(0,o.guI)("REMOVE_LIST_COMMAND");function z(e,t){return(0,o.Sdt)(e.registerCommand(R,()=>(h("number"),!0),o.AcJ),e.registerCommand(D,e=>{let{listNodeKey:t,newStart:r}=e,n=(0,o.nsf)(t);return!!M(n)&&("number"===n.getListType()&&(n.setStart(r),y(n)),!0)},o.AcJ),e.registerCommand($,()=>(h("bullet"),!0),o.AcJ),e.registerCommand(L,()=>((function(){let e=(0,o.vJq)();if((0,o.I2P)(e)){let t=new Set,r=e.getNodes(),n=e.anchor.getNode();if(f(n,r))t.add(u(n));else for(let e=0;e<r.length;e++){let n=r[e];if((0,o.jG6)(n)){let e=(0,i.eu)(n,v);null!=e&&t.add(u(e))}}for(let r of t){let t=r;for(let n of function e(t){let r=[],n=t.getChildren().filter(_);for(let t=0;t<n.length;t++){let i=n[t],o=i.getFirstChild();M(o)?r=r.concat(e(o)):r.push(i)}return r}(r)){let r=(0,o.lJ7)().setTextStyle(e.style).setTextFormat(e.format);p(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&(0,o.wp6)(e.anchor,(0,o.lSZ)((0,o.uwZ)(r,"next"))),n.__key===e.focus.key&&(0,o.wp6)(e.focus,(0,o.lSZ)((0,o.uwZ)(r,"next"))),n.remove()}r.remove()}}})(),!0),o.AcJ),e.registerCommand(o.XKQ,()=>(function(e=!1){let t,r=(0,o.vJq)();if(!(0,o.I2P)(r)||!r.isCollapsed())return!1;let n=r.anchor.getNode(),i=null;if(_(n)&&0===n.getChildrenSize())i=n;else if((0,o.kFe)(n)){let e=n.getParent();_(e)&&e.getChildren().every(e=>(0,o.kFe)(e)&&""===e.getTextContent().trim())&&(i=e)}if(null===i)return!1;let a=u(i),s=i.getParent();M(s)||l(40);let c=s.getParent();if((0,o.IqF)(c))t=(0,o.lJ7)(),a.insertAfter(t);else{if(!_(c))return!1;t=x(),c.insertAfter(t)}t.setTextStyle(r.style).setTextFormat(r.format).select();let d=i.getNextSiblings();if(d.length>0){var f;let r=e?(f=i,s.getStart()+f.getIndexWithinParent()):1,n=T(s.getListType(),r);if(_(t)){let e=x();e.append(n),t.insertAfter(e)}else t.insertAfter(n);n.append(...d)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!_(e)&&!M(e))break;t=e}t.remove()}(i),!0})(!!(t&&t.restoreNumbering)),o.AcJ),e.registerNodeTransform(v,e=>{let t=e.getFirstChild();if(t){if((0,o.kFe)(t)){let r=t.getStyle(),n=t.getFormat();e.getTextStyle()!==r&&e.setTextStyle(r),e.getTextFormat()!==n&&e.setTextFormat(n)}}else{let t=(0,o.vJq)();(0,o.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(o.Ey8,e=>{let t=e.getParent();if(_(t)&&e.is(t.getFirstChild())){let r=e.getStyle(),n=e.getFormat();r===t.getTextStyle()&&n===t.getTextFormat()||t.setTextStyle(r).setTextFormat(n)}}))}function F(e){let t=e=>{let t=e.getParent();if(M(e.getFirstChild())||!M(t))return;let r=(0,o.BtT)(e,e=>_(e)&&M(e.getParent())&&_(e.getPreviousSibling()));if(null===r&&e.getIndent()>0)e.setIndent(0);else if(_(r)){let n=r.getPreviousSibling();if(_(n)){let r=(function(e){let t=e,r=t.getFirstChild();for(;M(r);){let e=r.getLastChild();if(!_(e))break;r=(t=e).getFirstChild()}return t})(n).getParent();if(M(r)){let n=s(r);n+1<s(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(S,e=>{let r=[e];for(;r.length>0;){let e=r.shift();if(M(e)){for(let n of e.getChildren())if(_(n)){t(n);let e=n.getFirstChild();M(e)&&r.push(e)}}}})}let B=(0,o.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,o.lVE)({hasStrictIndent:!1,shouldPreserveNumbering:!1}),name:"@lexical/list/List",nodes:()=>[S,v],register(e,t,r){let i=r.getOutput();return(0,o.Sdt)((0,n.QZ)(()=>z(e,{restoreNumbering:i.shouldPreserveNumbering.value})),(0,n.QZ)(()=>i.hasStrictIndent.value?F(e):void 0))}});(0,o.vE9)({config:(0,o.lVE)({disableTakeFocusOnClick:!1}),dependencies:[B],name:"@lexical/list/CheckList",register:N})},99498:(e,t,r)=>{"use strict";function n(e){return Number.isFinite(e)}function i(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}r.d(t,{F:()=>i,H:()=>n})},99617:(e,t,r)=>{"use strict";var n=r(12115),i=r(8039),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,l=n.useRef,s=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!s){if(s=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return l=t}return l=e}if(t=l,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(a=e,t):(a=e,l=r)}var a,l,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.