1
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879],{94090:function(e,t,n){"use strict";n.d(t,{UQ:function(){return A},KF:function(){return N},XE:function(){return M},Qd:function(){return I},Hk:function(){return R}});var r=n(10894),i=n(105),o=n(37496),a=n(44592),s=n(52829),u=n(67294),c=n(40242),l=n(97375);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=["onChange","defaultIndex","index","allowMultiple","allowToggle"],p=["isDisabled","isFocusable","id"],m=(0,c.n)(),g=m[0],v=(m[1],m[2]),y=m[3];function b(e){var t=e.onChange,n=e.defaultIndex,r=e.index,i=e.allowMultiple,o=e.allowToggle,s=f(e,h);!function(e){var t=e.index||e.defaultIndex,n=!(0,a.o8)(t)&&!(0,a.kJ)(t)&&e.allowMultiple;(0,a.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,a.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var c=v(),d=(0,u.useState)(-1),p=d[0],m=d[1];(0,l.zq)((function(){m(-1)}));var g=(0,l.Tx)({value:r,defaultValue:function(){return i?null!=n?n:[]:null!=n?n:-1},onChange:t}),y=g[0],b=g[1];return{index:y,setIndex:b,htmlProps:s,getAccordionItemProps:function(e){var t=!1;null!==e&&(t=(0,a.kJ)(y)?y.includes(e):y===e);return{isOpen:t,onChange:function(t){if(null!==e)if(i&&(0,a.kJ)(y)){var n=t?(0,a.jX)(y,e):(0,a.cl)(y,e);b(n)}else t?b(e):o&&b(-1)}}},focusedIndex:p,setFocusedIndex:m,descendants:c}}var E=(0,s.kr)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"}),T=E[0],x=E[1];function _(e){var t=e.isDisabled,n=e.isFocusable,r=e.id,i=f(e,p),o=x(),c=o.getAccordionItemProps,h=o.setFocusedIndex,m=(0,u.useRef)(null),g=(0,l.ZS)(r,"accordion-button","accordion-panel"),v=g[0],b=g[1];!function(e){(0,a.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);var E=y({disabled:t&&!n}),T=E.register,_=E.index,w=E.descendants,k=c(-1===_?null:_),C=k.isOpen,A=k.onChange;!function(e){(0,a.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:C,isDisabled:t});var S=(0,u.useCallback)((function(){null==A||A(!C),h(_)}),[_,h,C,A]),O=(0,u.useCallback)((function(e){var t={ArrowDown:function(){var e=w.nextEnabled(_);e&&(0,a.T_)(e.node)},ArrowUp:function(){var e=w.prevEnabled(_);e&&(0,a.T_)(e.node)},Home:function(){var e=w.firstEnabled();e&&(0,a.T_)(e.node)},End:function(){var e=w.lastEnabled();e&&(0,a.T_)(e.node)}}[(0,a.uh)(e)];t&&(e.preventDefault(),t(e))}),[w,_]),D=(0,u.useCallback)((function(){h(_)}),[h,_]),I=(0,u.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),d({},e,{type:"button",ref:(0,s.lq)(T,m,n),id:v,disabled:!!t,"aria-expanded":!!C,"aria-controls":b,onClick:(0,a.v0)(e.onClick,S),onFocus:(0,a.v0)(e.onFocus,D),onKeyDown:(0,a.v0)(e.onKeyDown,O)})}),[v,t,C,S,D,O,b,T]),N=(0,u.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),d({},e,{ref:t,role:"region",id:b,"aria-labelledby":v,hidden:!C})}),[v,C,b]);return{isOpen:C,isDisabled:t,isFocusable:n,onOpen:function(){null==A||A(!0)},onClose:function(){null==A||A(!1)},getButtonProps:I,getPanelProps:N,htmlProps:i}}var w=["children","reduceMotion"],k=["htmlProps","descendants"],C=["htmlProps"],A=(0,i.Gp)((function(e,t){var n=e.children,r=e.reduceMotion,o=f(e,w),s=(0,i.jC)("Accordion",o),c=b((0,i.Lr)(o)),l=c.htmlProps,h=c.descendants,p=f(c,k),m=u.useMemo((function(){return d({},p,{reduceMotion:!!r})}),[p,r]);return u.createElement(g,{value:h},u.createElement(T,{value:m},u.createElement(i.Fo,{value:s},u.createElement(i.m$.div,d({ref:t},l,{className:(0,a.cx)("chakra-accordion",o.className)}),n))))}));a.Ts&&(A.displayName="Accordion");var S=(0,s.kr)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),O=S[0],D=S[1],I=(0,i.Gp)((function(e,t){var n=e.children,r=e.className,o=_(e),s=o.htmlProps,c=f(o,C),l=d({},(0,i.yK)().container,{overflowAnchor:"none"}),h=u.useMemo((function(){return c}),[c]);return u.createElement(O,{value:h},u.createElement(i.m$.div,d({ref:t},s,{className:(0,a.cx)("chakra-accordion__item",r),__css:l}),(0,a.Pu)(n,{isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled})))}));a.Ts&&(I.displayName="AccordionItem");var N=(0,i.Gp)((function(e,t){var n=(0,D().getButtonProps)(e,t),r=d({display:"flex",alignItems:"center",width:"100%",outline:0},(0,i.yK)().button);return u.createElement(i.m$.button,d({},n,{className:(0,a.cx)("chakra-accordion__button",e.className),__css:r}))}));a.Ts&&(N.displayName="AccordionButton");var R=(0,i.Gp)((function(e,t){var n=x().reduceMotion,r=D(),s=r.getPanelProps,c=r.isOpen,l=s(e,t),f=(0,a.cx)("chakra-accordion__panel",e.className),h=(0,i.yK)();n||delete l.hidden;var p=u.createElement(i.m$.div,d({},l,{__css:h.panel,className:f}));return n?p:u.createElement(o.UO,{in:c},p)}));a.Ts&&(R.displayName="AccordionPanel");var M=function(e){var t=D(),n=t.isOpen,o=t.isDisabled,s=x().reduceMotion,c=(0,a.cx)("chakra-accordion__icon",e.className),l=d({opacity:o?.4:1,transform:n?"rotate(-180deg)":void 0,transition:s?void 0:"transform 0.2s",transformOrigin:"center"},(0,i.yK)().icon);return u.createElement(r.JO,d({viewBox:"0 0 24 24","aria-hidden":!0,className:c,__css:l},e),u.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};a.Ts&&(M.displayName="AccordionIcon")},68921:function(e,t,n){"use strict";n.r(t),n.d(t,{Button:function(){return S},ButtonGroup:function(){return x},ButtonSpinner:function(){return w},IconButton:function(){return I},useButtonGroup:function(){return T}});var r=n(97375),i=n(105),o=n(44592),a=n(38554),s=n.n(a),u=n(67294),c=n(52829),l=n(70917),d=n(1358);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=["label","thickness","speed","emptyColor","className"],p=(0,l.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Spinner",e),r=(0,i.Lr)(e),a=r.label,s=void 0===a?"Loading...":a,c=r.thickness,l=void 0===c?"2px":c,m=r.speed,g=void 0===m?"0.45s":m,v=r.emptyColor,y=void 0===v?"transparent":v,b=r.className,E=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,h),T=(0,o.cx)("chakra-spinner",b),x=f({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:y,borderLeftColor:y,animation:p+" "+g+" linear infinite"},n);return u.createElement(i.m$.div,f({ref:t,__css:x,className:T},E),s&&u.createElement(d.TX,null,s))}));function g(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}o.Ts&&(m.displayName="Spinner");var y=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],b=(0,c.kr)({strict:!1,name:"ButtonGroupContext"}),E=b[0],T=b[1],x=(0,i.Gp)((function(e,t){var n=e.size,r=e.colorScheme,a=e.variant,s=e.className,c=e.spacing,l=void 0===c?"0.5rem":c,d=e.isAttached,f=e.isDisabled,h=g(e,y),p=(0,o.cx)("chakra-button__group",s),m=u.useMemo((function(){return{size:n,colorScheme:r,variant:a,isDisabled:f}}),[n,r,a,f]),b={display:"inline-flex"};return b=v({},b,d?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),u.createElement(E,{value:m},u.createElement(i.m$.div,v({ref:t,role:"group",__css:b,className:p},h)))}));o.Ts&&(x.displayName="ButtonGroup");var _=["label","placement","spacing","children","className","__css"],w=function(e){var t=e.label,n=e.placement,r=e.spacing,a=void 0===r?"0.5rem":r,s=e.children,c=void 0===s?u.createElement(m,{color:"currentColor",width:"1em",height:"1em"}):s,l=e.className,d=e.__css,f=g(e,_),h=(0,o.cx)("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",y=u.useMemo((function(){var e;return v(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[p]=t?a:0,e.fontSize="1em",e.lineHeight="normal",e),d)}),[d,t,p,a]);return u.createElement(i.m$.div,v({className:h},f,{__css:y}),c)};o.Ts&&(w.displayName="ButtonSpinner");var k=["children","className"],C=function(e){var t=e.children,n=e.className,r=g(e,k),a=u.isValidElement(t)?u.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,o.cx)("chakra-button__icon",n);return u.createElement(i.m$.span,v({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:s}),a)};o.Ts&&(C.displayName="ButtonIcon");var A=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],S=(0,i.Gp)((function(e,t){var n=T(),a=(0,i.mq)("Button",v({},n,e)),c=(0,i.Lr)(e),l=c.isDisabled,d=void 0===l?null==n?void 0:n.isDisabled:l,f=c.isLoading,h=c.isActive,p=c.isFullWidth,m=c.children,y=c.leftIcon,b=c.rightIcon,E=c.loadingText,x=c.iconSpacing,_=void 0===x?"0.5rem":x,k=c.type,C=c.spinner,S=c.spinnerPlacement,D=void 0===S?"start":S,I=c.className,N=c.as,R=g(c,A),M=u.useMemo((function(){var e,t=s()({},null!=(e=null==a?void 0:a._focus)?e:{},{zIndex:1});return v({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:p?"100%":"auto"},a,!!n&&{_focus:t})}),[a,n,p]),P=function(e){var t=u.useState(!e),n=t[0],r=t[1];return{ref:u.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),type:n?"button":void 0}}(N),L=P.ref,F=P.type,j={rightIcon:b,leftIcon:y,iconSpacing:_,children:m};return u.createElement(i.m$.button,v({disabled:d||f,ref:(0,r.qq)(t,L),as:N,type:null!=k?k:F,"data-active":(0,o.PB)(h),"data-loading":(0,o.PB)(f),__css:M,className:(0,o.cx)("chakra-button",I)},R),f&&"start"===D&&u.createElement(w,{className:"chakra-button__spinner--start",label:E,placement:"start",spacing:_},C),f?E||u.createElement(i.m$.span,{opacity:0},u.createElement(O,j)):u.createElement(O,j),f&&"end"===D&&u.createElement(w,{className:"chakra-button__spinner--end",label:E,placement:"end",spacing:_},C))}));function O(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,i=e.iconSpacing;return u.createElement(u.Fragment,null,t&&u.createElement(C,{marginEnd:i},t),r,n&&u.createElement(C,{marginStart:i},n))}o.Ts&&(S.displayName="Button");var D=["icon","children","isRound","aria-label"],I=(0,i.Gp)((function(e,t){var n=e.icon,r=e.children,i=e.isRound,o=e["aria-label"],a=g(e,D),s=n||r,c=u.isValidElement(s)?u.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.createElement(S,v({padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o},a),c)}));o.Ts&&(I.displayName="IconButton")},84746:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(10894),i=n(105),o=n(44592),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=["children","isDisabled","__css"],c=function(e){return a.createElement(r.JO,s({focusable:"false","aria-hidden":!0},e),a.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},l=(0,i.Gp)((function(e,t){var n=(0,i.mq)("CloseButton",e),r=(0,i.Lr)(e),o=r.children,l=r.isDisabled,d=r.__css,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,u);return a.createElement(i.m$.button,s({type:"button","aria-label":"Close",ref:t,disabled:l,__css:s({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,d)},f),o||a.createElement(c,{width:"1em",height:"1em"}))}));o.Ts&&(l.displayName="CloseButton")},40242:function(e,t,n){"use strict";n.d(t,{n:function(){return p}});var r=n(52829),i=n(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e){return e.sort((function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function s(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function u(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}var c="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,l=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=a(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(t){e.descendants.forEach((function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=a(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var i=o({node:t,index:-1},n);e.descendants.set(t,i),e.assignIndex(r)}}};var d=(0,r.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=d[0],h=d[1];function p(){return[f,function(){return h()},function(){return function(){var e=(0,i.useRef)(new l);return c((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var t=h(),n=(0,i.useState)(-1),o=n[0],a=n[1],s=(0,i.useRef)(null);c((function(){return function(){s.current&&t.unregister(s.current)}}),[]),c((function(){if(s.current){var e=Number(s.current.dataset.index);o==e||Number.isNaN(e)||a(e)}}));var u=e?t.register(e):t.register;return{descendants:t,index:o,enabledIndex:t.enabledIndexOf(s.current),register:(0,r.lq)(u,s)}}(e)}]}},79762:function(e,t,n){"use strict";n.r(t),n.d(t,{FormControl:function(){return g},FormErrorIcon:function(){return _},FormErrorMessage:function(){return x},FormHelperText:function(){return v},FormLabel:function(){return k},RequiredIndicator:function(){return C},useFormControl:function(){return E},useFormControlContext:function(){return m},useFormControlProps:function(){return T}});var r=n(97375),i=n(105),o=n(44592),a=n(52829),s=n(67294),u=n(10894);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["id","isRequired","isInvalid","isDisabled","isReadOnly"],f=["getRootProps","htmlProps"],h=(0,a.kr)({strict:!1,name:"FormControlContext"}),p=h[0],m=h[1];var g=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Form",e),u=function(e){var t=e.id,n=e.isRequired,i=e.isInvalid,u=e.isDisabled,f=e.isReadOnly,h=l(e,d),p=(0,r.Me)(),m=t||"field-"+p,g=m+"-label",v=m+"-feedback",y=m+"-helptext",b=s.useState(!1),E=b[0],T=b[1],x=s.useState(!1),_=x[0],w=x[1],k=(0,r.kt)(),C=k[0],A=k[1],S=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:y},e,{ref:(0,a.lq)(t,(function(e){e&&w(!0)}))})}),[y]),O=s.useCallback((function(e,t){var n,r;return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,"data-focus":(0,o.PB)(C),"data-disabled":(0,o.PB)(u),"data-invalid":(0,o.PB)(i),"data-readonly":(0,o.PB)(f),id:null!=(n=e.id)?n:g,htmlFor:null!=(r=e.htmlFor)?r:m})}),[m,u,C,i,f,g]),D=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:v},e,{ref:(0,a.lq)(t,(function(e){e&&T(!0)})),"aria-live":"polite"})}),[v]),I=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,h,{ref:t,role:"group"})}),[h]),N=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!f,isDisabled:!!u,isFocused:!!C,onFocus:A.on,onBlur:A.off,hasFeedbackText:E,setHasFeedbackText:T,hasHelpText:_,setHasHelpText:w,id:m,labelId:g,feedbackId:v,helpTextId:y,htmlProps:h,getHelpTextProps:S,getErrorMessageProps:D,getRootProps:I,getLabelProps:O,getRequiredIndicatorProps:N}}((0,i.Lr)(e)),h=u.getRootProps;u.htmlProps;var m=l(u,f),g=(0,o.cx)("chakra-form-control",e.className),v=s.useMemo((function(){return m}),[m]);return s.createElement(p,{value:v},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},h({},t),{className:g,__css:n.container}))))}));o.Ts&&(g.displayName="FormControl");var v=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)(),a=(0,o.cx)("chakra-form__helper-text",e.className);return s.createElement(i.m$.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));o.Ts&&(v.displayName="FormHelperText");var y=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function E(e){var t=T(e),n=t.isDisabled,r=t.isInvalid,i=t.isReadOnly,a=t.isRequired;return c({},l(t,y),{disabled:n,readOnly:i,required:a,"aria-invalid":(0,o.Qm)(r),"aria-required":(0,o.Qm)(a),"aria-readonly":(0,o.Qm)(i)})}function T(e){var t,n,r,i=m(),a=e.id,s=e.disabled,u=e.readOnly,d=e.required,f=e.isRequired,h=e.isInvalid,p=e.isReadOnly,g=e.isDisabled,v=e.onFocus,y=e.onBlur,E=l(e,b),T=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&T.push(i.feedbackId),null!=i&&i.hasHelpText&&T.push(i.helpTextId),c({},E,{"aria-describedby":T.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:g)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=u?u:p)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=d?d:f)?r:null==i?void 0:i.isRequired,isInvalid:null!=h?h:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,v),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,y)})}var x=(0,i.Gp)((function(e,t){var n=(0,i.jC)("FormError",e),r=(0,i.Lr)(e),a=m();return null!=a&&a.isInvalid?s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},null==a?void 0:a.getErrorMessageProps(r,t),{className:(0,o.cx)("chakra-form__error-message",e.className),__css:c({display:"flex",alignItems:"center"},n.text)}))):null}));o.Ts&&(x.displayName="FormErrorMessage");var _=(0,i.Gp)((function(e,t){var n=(0,i.yK)(),r=m();if(null==r||!r.isInvalid)return null;var a=(0,o.cx)("chakra-form__error-icon",e.className);return s.createElement(u.ZP,c({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:a}),s.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));o.Ts&&(_.displayName="FormErrorIcon");var w=["className","children","requiredIndicator"],k=(0,i.Gp)((function(e,t){var n,r=(0,i.mq)("FormLabel",e),a=(0,i.Lr)(e);a.className;var u=a.children,d=a.requiredIndicator,f=void 0===d?s.createElement(C,null):d,h=l(a,w),p=m(),g=null!=(n=null==p?void 0:p.getLabelProps(h,t))?n:c({ref:t},h);return s.createElement(i.m$.label,c({},g,{className:(0,o.cx)("chakra-form__label",a.className),__css:c({display:"block",textAlign:"start"},r)}),u,null!=p&&p.isRequired?f:null)}));o.Ts&&(k.displayName="FormLabel");var C=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)();if(null==n||!n.isRequired)return null;var a=(0,o.cx)("chakra-form__required-indicator",e.className);return s.createElement(i.m$.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:a}))}));o.Ts&&(C.displayName="RequiredIndicator")},94998:function(e,t,n){"use strict";n.d(t,{h:function(){return r.c}});n(67294);var r=n(78698)},10894:function(e,t,n){"use strict";n.d(t,{JO:function(){return c},ZP:function(){return l}});var r=n(105),i=n(44592),o=n(67294);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=["as","viewBox","color","focusable","children","className","__css"],u={path:o.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},o.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),o.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),o.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},c=(0,r.Gp)((function(e,t){var n=e.as,c=e.viewBox,l=e.color,d=void 0===l?"currentColor":l,f=e.focusable,h=void 0!==f&&f,p=e.children,m=e.className,g=e.__css,v=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s),y={ref:t,focusable:h,className:(0,i.cx)("chakra-icon",m),__css:a({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d},g)},b=null!=c?c:u.viewBox;if(n&&"string"!==typeof n)return o.createElement(r.m$.svg,a({as:n},y,v));var E=null!=p?p:u.path;return o.createElement(r.m$.svg,a({verticalAlign:"middle",viewBox:b},y,v),E)}));i.Ts&&(c.displayName="Icon");var l=c},52072:function(e,t,n){"use strict";n.r(t),n.d(t,{AddIcon:function(){return v},ArrowBackIcon:function(){return M},ArrowDownIcon:function(){return j},ArrowForwardIcon:function(){return P},ArrowLeftIcon:function(){return q},ArrowRightIcon:function(){return K},ArrowUpDownIcon:function(){return F},ArrowUpIcon:function(){return L},AtSignIcon:function(){return W},AttachmentIcon:function(){return $},BellIcon:function(){return se},CalendarIcon:function(){return U},ChatIcon:function(){return V},CheckCircleIcon:function(){return E},CheckIcon:function(){return he},ChevronDownIcon:function(){return N},ChevronLeftIcon:function(){return D},ChevronRightIcon:function(){return I},ChevronUpIcon:function(){return R},CloseIcon:function(){return te},CopyIcon:function(){return f},DeleteIcon:function(){return C},DownloadIcon:function(){return k},DragHandleIcon:function(){return J},EditIcon:function(){return O},EmailIcon:function(){return X},ExternalLinkIcon:function(){return H},HamburgerIcon:function(){return me},Icon:function(){return l},InfoIcon:function(){return ue},InfoOutlineIcon:function(){return ae},LinkIcon:function(){return B},LockIcon:function(){return T},MinusIcon:function(){return pe},MoonIcon:function(){return m},NotAllowedIcon:function(){return re},PhoneIcon:function(){return Q},PlusSquareIcon:function(){return z},QuestionIcon:function(){return ce},QuestionOutlineIcon:function(){return le},RepeatClockIcon:function(){return S},RepeatIcon:function(){return A},Search2Icon:function(){return p},SearchIcon:function(){return h},SettingsIcon:function(){return b},SmallAddIcon:function(){return y},SmallCloseIcon:function(){return ne},SpinnerIcon:function(){return ee},StarIcon:function(){return Y},SunIcon:function(){return g},TimeIcon:function(){return G},TriangleDownIcon:function(){return ie},TriangleUpIcon:function(){return oe},UnlockIcon:function(){return x},UpDownIcon:function(){return Z},ViewIcon:function(){return _},ViewOffIcon:function(){return w},WarningIcon:function(){return de},WarningTwoIcon:function(){return fe},createIcon:function(){return d}});var r=n(105);n(38554),n(9839);var i=!1;!function(e){var t=new WeakMap}((function(e,t,n,r){var i="string"===typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}));"undefined"===typeof window||!window.document||window.document.createElement;["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function o(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t=e.apply(this,r),e=null}return t}}o((function(e){return function(){e.condition,e.message}})),o((function(e){return function(){e.condition,e.message}}));Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;Object.freeze(["base","sm","md","lg","xl","2xl"]);var a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=["as","viewBox","color","focusable","children","className","__css"],c={path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),a.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},l=(0,r.Gp)((function(e,t){var n=e.as,i=e.viewBox,o=e.color,l=void 0===o?"currentColor":o,d=e.focusable,f=void 0!==d&&d,h=e.children,p=e.className,m=e.__css,g=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,u),v={ref:t,focusable:f,className:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}("chakra-icon",p),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l},m)},y=null!=i?i:c.viewBox;if(n&&"string"!==typeof n)return a.createElement(r.m$.svg,s({as:n},v,g));var b=null!=h?h:c.path;return a.createElement(r.m$.svg,s({verticalAlign:"middle",viewBox:y},v,g),b)}));function d(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,i=e.d,o=e.path,u=(e.displayName,e.defaultProps),c=void 0===u?{}:u,d=(0,r.Gp)((function(e,t){return a.createElement(l,s({ref:t,viewBox:n},c,e),null!=o?o:a.createElement("path",{fill:"currentColor",d:i}))}));return d}var f=d({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),h=d({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),p=d({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),m=d({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),g=d({displayName:"SunIcon",path:a.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},a.createElement("circle",{cx:"12",cy:"12",r:"5"}),a.createElement("path",{d:"M12 1v2"}),a.createElement("path",{d:"M12 21v2"}),a.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),a.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),a.createElement("path",{d:"M1 12h2"}),a.createElement("path",{d:"M21 12h2"}),a.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),a.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))}),v=d({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),y=d({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:a.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),b=d({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),E=d({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),T=d({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),x=d({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"}),_=d({displayName:"ViewIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),a.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),w=d({displayName:"ViewOffIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),a.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))}),k=d({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),C=d({displayName:"DeleteIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),A=d({displayName:"RepeatIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),a.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),S=d({displayName:"RepeatClockIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),a.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),O=d({displayName:"EditIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),a.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),D=d({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),I=d({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"}),N=d({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),R=d({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),M=d({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),P=d({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),L=d({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),F=d({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),j=d({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),H=d({displayName:"ExternalLinkIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),a.createElement("path",{d:"M15 3h6v6"}),a.createElement("path",{d:"M10 14L21 3"}))}),B=d({displayName:"LinkIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),a.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),z=d({displayName:"PlusSquareIcon",path:a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},a.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),a.createElement("path",{d:"M12 8v8"}),a.createElement("path",{d:"M8 12h8"}))}),U=d({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),V=d({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),G=d({displayName:"TimeIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),a.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),K=d({displayName:"ArrowRightIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),a.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),q=d({displayName:"ArrowLeftIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),a.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),W=d({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),$=d({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),Z=d({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),Y=d({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),X=d({displayName:"EmailIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),a.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),Q=d({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),J=d({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),ee=d({displayName:"SpinnerIcon",path:a.createElement(a.Fragment,null,a.createElement("defs",null,a.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},a.createElement("stop",{stopColor:"currentColor",offset:"0%"}),a.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),a.createElement("g",{transform:"translate(2)",fill:"none"},a.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),a.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),a.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),te=d({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),ne=d({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:a.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),re=d({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),ie=d({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),oe=d({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),ae=d({displayName:"InfoOutlineIcon",path:a.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},a.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),a.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),a.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),se=d({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),ue=d({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),ce=d({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),le=d({displayName:"QuestionOutlineIcon",path:a.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},a.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),a.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),a.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),de=d({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),fe=d({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),he=d({viewBox:"0 0 14 14",path:a.createElement("g",{fill:"currentColor"},a.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),pe=d({displayName:"MinusIcon",path:a.createElement("g",{fill:"currentColor"},a.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))}),me=d({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"})},4612:function(e,t,n){"use strict";n.r(t),n.d(t,{Input:function(){return c},InputAddon:function(){return p},InputGroup:function(){return y},InputLeftAddon:function(){return m},InputLeftElement:function(){return w},InputRightAddon:function(){return g},InputRightElement:function(){return k}});var r=n(79762),i=n(105),o=n(44592),a=n(67294),s=n(52829);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Input",e),s=(0,i.Lr)(e),c=(0,r.useFormControl)(s),l=(0,o.cx)("chakra-input",e.className);return a.createElement(i.m$.input,u({},c,{__css:n.field,ref:t,className:l}))}));function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}o.Ts&&(c.displayName="Input"),c.id="Input";var d=["placement"],f={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},h=(0,i.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),p=(0,i.Gp)((function(e,t){var n,r=e.placement,o=void 0===r?"left":r,s=l(e,d),c=null!=(n=f[o])?n:{},p=(0,i.yK)();return a.createElement(h,u({ref:t},s,{__css:u({},p.addon,c)}))}));o.Ts&&(p.displayName="InputAddon");var m=(0,i.Gp)((function(e,t){return a.createElement(p,u({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));o.Ts&&(m.displayName="InputLeftAddon"),m.id="InputLeftAddon";var g=(0,i.Gp)((function(e,t){return a.createElement(p,u({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));o.Ts&&(g.displayName="InputRightAddon"),g.id="InputRightAddon";var v=["children","className"],y=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Input",e),r=(0,i.Lr)(e),c=r.children,d=r.className,f=l(r,v),h=(0,o.cx)("chakra-input__group",d),p={},m=(0,s.WR)(c),g=n.field;m.forEach((function(e){if(n){var t,r;if(g&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=g.height)?t:g.h;if(g&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(r=g.height)?r:g.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var y=m.map((function(t){var n,r,i=(0,o.YU)({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?a.cloneElement(t,i):a.cloneElement(t,Object.assign(i,p,t.props))}));return a.createElement(i.m$.div,u({className:h,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},f),a.createElement(i.Fo,{value:n},y))}));o.Ts&&(y.displayName="InputGroup");var b=["placement"],E=["className"],T=["className"],x=(0,i.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),_=(0,i.Gp)((function(e,t){var n,r,o,s=e.placement,c=void 0===s?"left":s,d=l(e,b),f=(0,i.yK)().field,h=((o={})["left"===c?"insetStart":"insetEnd"]="0",o.width=null!=(n=null==f?void 0:f.height)?n:null==f?void 0:f.h,o.height=null!=(r=null==f?void 0:f.height)?r:null==f?void 0:f.h,o.fontSize=null==f?void 0:f.fontSize,o);return a.createElement(x,u({ref:t,__css:h},d))}));_.id="InputElement",o.Ts&&(_.displayName="InputElement");var w=(0,i.Gp)((function(e,t){var n=e.className,r=l(e,E),i=(0,o.cx)("chakra-input__left-element",n);return a.createElement(_,u({ref:t,placement:"left",className:i},r))}));w.id="InputLeftElement",o.Ts&&(w.displayName="InputLeftElement");var k=(0,i.Gp)((function(e,t){var n=e.className,r=l(e,T),i=(0,o.cx)("chakra-input__right-element",n);return a.createElement(_,u({ref:t,placement:"right",className:i},r))}));k.id="InputRightElement",o.Ts&&(k.displayName="InputRightElement")},68527:function(e,t,n){"use strict";n.r(t),n.d(t,{AbsoluteCenter:function(){return _},AspectRatio:function(){return f},Badge:function(){return p},Box:function(){return v},Center:function(){return T},Circle:function(){return b},Code:function(){return k},Container:function(){return A},Divider:function(){return D},Flex:function(){return N},Grid:function(){return P},GridItem:function(){return F},HStack:function(){return ce},Heading:function(){return H},Kbd:function(){return z},Link:function(){return V},LinkBox:function(){return Ee},LinkOverlay:function(){return be},List:function(){return Y},ListIcon:function(){return ee},ListItem:function(){return J},OrderedList:function(){return X},SimpleGrid:function(){return ne},Spacer:function(){return re},Square:function(){return y},Stack:function(){return ue},StackDivider:function(){return ae},StackItem:function(){return se},Text:function(){return fe},UnorderedList:function(){return Q},VStack:function(){return le},Wrap:function(){return me},WrapItem:function(){return ge}});var r=n(105),i=n(94244),o=n(44592),a=n(67294),s=n(10894),u=n(52829);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["ratio","children","className"],f=(0,r.Gp)((function(e,t){var n=e.ratio,i=void 0===n?4/3:n,s=e.children,u=e.className,f=l(e,d),h=a.Children.only(s),p=(0,o.cx)("chakra-aspect-ratio",u);return a.createElement(r.m$.div,c({ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.XQ)(i,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},f),h)}));o.Ts&&(f.displayName="AspectRatio");var h=["className"],p=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Badge",e),i=(0,r.Lr)(e);i.className;var s=l(i,h);return a.createElement(r.m$.span,c({ref:t,className:(0,o.cx)("chakra-badge",e.className)},s,{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));o.Ts&&(p.displayName="Badge");var m=["size","centerContent"],g=["size"],v=(0,r.m$)("div");o.Ts&&(v.displayName="Box");var y=(0,r.Gp)((function(e,t){var n=e.size,r=e.centerContent,i=void 0===r||r,o=l(e,m),s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(v,c({ref:t,boxSize:n,__css:c({},s,{flexShrink:0,flexGrow:0})},o))}));o.Ts&&(y.displayName="Square");var b=(0,r.Gp)((function(e,t){var n=e.size,r=l(e,g);return a.createElement(y,c({size:n,ref:t,borderRadius:"9999px"},r))}));o.Ts&&(b.displayName="Circle");var E=["axis"],T=(0,r.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});o.Ts&&(T.displayName="Center");var x={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},_=(0,r.Gp)((function(e,t){var n=e.axis,i=void 0===n?"both":n,o=l(e,E);return a.createElement(r.m$.div,c({ref:t,__css:x[i]},o,{position:"absolute"}))})),w=["className"],k=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Code",e),i=(0,r.Lr)(e);i.className;var s=l(i,w);return a.createElement(r.m$.code,c({ref:t,className:(0,o.cx)("chakra-code",e.className)},s,{__css:c({display:"inline-block"},n)}))}));o.Ts&&(k.displayName="Code");var C=["className","centerContent"],A=(0,r.Gp)((function(e,t){var n=(0,r.Lr)(e),i=n.className,s=n.centerContent,u=l(n,C),d=(0,r.mq)("Container",e);return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-container",i)},u,{__css:c({},d,s&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));o.Ts&&(A.displayName="Container");var S=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],O=["className","orientation","__css"],D=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Divider",e),i=n.borderLeftWidth,s=n.borderBottomWidth,u=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,h=n.borderStyle,p=n.borderColor,m=l(n,S),g=(0,r.Lr)(e),v=g.className,y=g.orientation,b=void 0===y?"horizontal":y,E=g.__css,T=l(g,O),x={vertical:{borderLeftWidth:i||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:s||u||f||"1px",width:"100%"}};return a.createElement(r.m$.hr,c({ref:t,"aria-orientation":b},T,{__css:c({},m,{border:"0",borderColor:p,borderStyle:h},x[b],E),className:(0,o.cx)("chakra-divider",v)}))}));o.Ts&&(D.displayName="Divider");var I=["direction","align","justify","wrap","basis","grow","shrink"],N=(0,r.Gp)((function(e,t){var n=e.direction,i=e.align,o=e.justify,s=e.wrap,u=e.basis,d=e.grow,f=e.shrink,h=l(e,I),p={display:"flex",flexDirection:n,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:u,flexGrow:d,flexShrink:f};return a.createElement(r.m$.div,c({ref:t,__css:p},h))}));o.Ts&&(N.displayName="Flex");var R=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],M=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],P=(0,r.Gp)((function(e,t){var n=e.area,i=e.templateAreas,o=e.gap,s=e.rowGap,u=e.columnGap,d=e.column,f=e.row,h=e.autoFlow,p=e.autoRows,m=e.templateRows,g=e.autoColumns,v=e.templateColumns,y=l(e,R),b={display:"grid",gridArea:n,gridTemplateAreas:i,gridGap:o,gridRowGap:s,gridColumnGap:u,gridAutoColumns:g,gridColumn:d,gridRow:f,gridAutoFlow:h,gridAutoRows:p,gridTemplateRows:m,gridTemplateColumns:v};return a.createElement(r.m$.div,c({ref:t,__css:b},y))}));function L(e){return(0,o.XQ)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}o.Ts&&(P.displayName="Grid");var F=(0,r.Gp)((function(e,t){var n=e.area,i=e.colSpan,s=e.colStart,u=e.colEnd,d=e.rowEnd,f=e.rowSpan,h=e.rowStart,p=l(e,M),m=(0,o.YU)({gridArea:n,gridColumn:L(i),gridRow:L(f),gridColumnStart:s,gridColumnEnd:u,gridRowStart:h,gridRowEnd:d});return a.createElement(r.m$.div,c({ref:t,__css:m},p))})),j=["className"],H=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Heading",e),i=(0,r.Lr)(e);i.className;var s=l(i,j);return a.createElement(r.m$.h2,c({ref:t,className:(0,o.cx)("chakra-heading",e.className)},s,{__css:n}))}));o.Ts&&(H.displayName="Heading");var B=["className"],z=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Kbd",e),i=(0,r.Lr)(e),s=i.className,u=l(i,B);return a.createElement(r.m$.kbd,c({ref:t,className:(0,o.cx)("chakra-kbd",s)},u,{__css:c({fontFamily:"mono"},n)}))}));o.Ts&&(z.displayName="Kbd");var U=["className","isExternal"],V=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Link",e),i=(0,r.Lr)(e),s=i.className,u=i.isExternal,d=l(i,U);return a.createElement(r.m$.a,c({target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",s)},d,{__css:n}))}));o.Ts&&(V.displayName="Link");var G=["children","styleType","stylePosition","spacing"],K=["as"],q=["as"],W=(0,u.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),$=W[0],Z=W[1],Y=(0,r.Gp)((function(e,t){var n,i=(0,r.jC)("List",e),o=(0,r.Lr)(e),s=o.children,d=o.styleType,f=void 0===d?"none":d,h=o.stylePosition,p=o.spacing,m=l(o,G),g=(0,u.WR)(s),v=p?((n={})["& > *:not(style) ~ *:not(style)"]={mt:p},n):{};return a.createElement($,{value:i},a.createElement(r.m$.ul,c({ref:t,listStyleType:f,listStylePosition:h,role:"list",__css:c({},i.container,v)},m),g))}));o.Ts&&(Y.displayName="List");var X=(0,r.Gp)((function(e,t){e.as;var n=l(e,K);return a.createElement(Y,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));o.Ts&&(X.displayName="OrderedList");var Q=(0,r.Gp)((function(e,t){e.as;var n=l(e,q);return a.createElement(Y,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));o.Ts&&(Q.displayName="UnorderedList");var J=(0,r.Gp)((function(e,t){var n=Z();return a.createElement(r.m$.li,c({ref:t},e,{__css:n.item}))}));o.Ts&&(J.displayName="ListItem");var ee=(0,r.Gp)((function(e,t){var n=Z();return a.createElement(s.JO,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));o.Ts&&(ee.displayName="ListIcon");var te=["columns","spacingX","spacingY","spacing","minChildWidth"],ne=(0,r.Gp)((function(e,t){var n,r,i=e.columns,s=e.spacingX,u=e.spacingY,d=e.spacing,f=e.minChildWidth,h=l(e,te),p=f?(r=f,(0,o.XQ)(r,(function(e){return(0,o.Ft)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.hj)(t)?t+"px":t)+", 1fr))");var t}))):(n=i,(0,o.XQ)(n,(function(e){return(0,o.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return a.createElement(P,c({ref:t,gap:d,columnGap:s,rowGap:u,templateColumns:p},h))}));o.Ts&&(ne.displayName="SimpleGrid");var re=(0,r.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});o.Ts&&(re.displayName="Spacer");var ie="& > *:not(style) ~ *:not(style)";var oe=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ae=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__divider"},e,{__css:c({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))},se=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},ue=(0,r.Gp)((function(e,t){var n,i=e.isInline,s=e.direction,d=e.align,f=e.justify,h=e.spacing,p=void 0===h?"0.5rem":h,m=e.wrap,g=e.children,v=e.divider,y=e.className,b=e.shouldWrapChildren,E=l(e,oe),T=i?"row":null!=s?s:"column",x=a.useMemo((function(){return function(e){var t,n=e.spacing,r=e.direction,i={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:r})[ie]=(0,o.XQ)(r,(function(e){return i[e]})),t}({direction:T,spacing:p})}),[T,p]),_=a.useMemo((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,o.XQ)(n,(function(e){return r[e]}))}}({spacing:p,direction:T})}),[p,T]),w=!!v,k=!b&&!w,C=(0,u.WR)(g),A=k?C:C.map((function(e,t){var n="undefined"!==typeof e.key?e.key:t,r=t+1===C.length,i=b?a.createElement(se,{key:n},e):e;if(!w)return i;var o=r?null:a.cloneElement(v,{__css:_});return a.createElement(a.Fragment,{key:n},i,o)})),S=(0,o.cx)("chakra-stack",y);return a.createElement(r.m$.div,c({ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:x.flexDirection,flexWrap:m,className:S,__css:w?{}:(n={},n[ie]=x[ie],n)},E),A)}));o.Ts&&(ue.displayName="Stack");var ce=(0,r.Gp)((function(e,t){return a.createElement(ue,c({align:"center"},e,{direction:"row",ref:t}))}));o.Ts&&(ce.displayName="HStack");var le=(0,r.Gp)((function(e,t){return a.createElement(ue,c({align:"center"},e,{direction:"column",ref:t}))}));o.Ts&&(le.displayName="VStack");var de=["className","align","decoration","casing"],fe=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Text",e),i=(0,r.Lr)(e);i.className,i.align,i.decoration,i.casing;var s=l(i,de),u=(0,o.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(r.m$.p,c({ref:t,className:(0,o.cx)("chakra-text",e.className)},u,s,{__css:n}))}));o.Ts&&(fe.displayName="Text");var he=["spacing","children","justify","direction","align","className","shouldWrapChildren"],pe=["className"],me=(0,r.Gp)((function(e,t){var n=e.spacing,s=void 0===n?"0.5rem":n,u=e.children,d=e.justify,f=e.direction,h=e.align,p=e.className,m=e.shouldWrapChildren,g=l(e,he),v=a.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.XQ)(s,(function(t){return(0,i.fr)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[s,d,h,f]),y=m?a.Children.map(u,(function(e,t){return a.createElement(ge,{key:t},e)})):u;return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-wrap",p)},g),a.createElement(r.m$.ul,{className:"chakra-wrap__list",__css:v},y))}));o.Ts&&(me.displayName="Wrap");var ge=(0,r.Gp)((function(e,t){var n=e.className,i=l(e,pe);return a.createElement(r.m$.li,c({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},i))}));o.Ts&&(ge.displayName="WrapItem");var ve=["isExternal","target","rel","className"],ye=["className"],be=(0,r.Gp)((function(e,t){var n=e.isExternal,i=e.target,s=e.rel,u=e.className,d=l(e,ve);return a.createElement(r.m$.a,c({},d,{ref:t,className:(0,o.cx)("chakra-linkbox__overlay",u),rel:n?"noopener noreferrer":s,target:n?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))})),Ee=(0,r.Gp)((function(e,t){var n=e.className,i=l(e,ye);return a.createElement(r.m$.div,c({ref:t,position:"relative"},i,{className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}))},57324:function(e,t,n){"use strict";n.d(t,{v2:function(){return U},j2:function(){return G},R:function(){return ne},sN:function(){return Z},ii:function(){return X},qy:function(){return W},__:function(){return Q}});var r=n(105),i=n(44592),o=n(99860),a=n(67294),s=n(52829);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function l(e){var t=e.target,n=t.tagName,r=t.isContentEditable;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function d(e){void 0===e&&(e={});var t=e,n=t.ref,r=t.isDisabled,o=t.isFocusable,d=t.clickOnEnter,f=void 0===d||d,h=t.clickOnSpace,p=void 0===h||h,m=t.onMouseDown,g=t.onMouseUp,v=t.onClick,y=t.onKeyDown,b=t.onKeyUp,E=t.tabIndex,T=t.onMouseOver,x=t.onMouseLeave,_=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,c),w=a.useState(!0),k=w[0],C=w[1],A=a.useState(!1),S=A[0],O=A[1],D=function(){var e=a.useRef(new Map),t=e.current,n=a.useCallback((function(t,n,r,i){e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)}),[]),r=a.useCallback((function(t,n,r,i){t.removeEventListener(n,r,i),e.current.delete(r)}),[]);return a.useEffect((function(){return function(){t.forEach((function(e,t){r(e.el,e.type,t,e.options)}))}}),[r,t]),{add:n,remove:r}}(),I=k?E:E||0,N=r&&!o,R=a.useCallback((function(e){if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==v||v(e)}),[r,v]),M=a.useCallback((function(e){S&&l(e)&&(e.preventDefault(),e.stopPropagation(),O(!1),D.remove(document,"keyup",M,!1))}),[S,D]),P=a.useCallback((function(e){if(null==y||y(e),!(r||e.defaultPrevented||e.metaKey)&&l(e.nativeEvent)&&!k){var t=f&&"Enter"===e.key;if(p&&" "===e.key&&(e.preventDefault(),O(!0)),t)e.preventDefault(),e.currentTarget.click();D.add(document,"keyup",M,!1)}}),[r,k,y,f,p,D,M]),L=a.useCallback((function(e){(null==b||b(e),r||e.defaultPrevented||e.metaKey)||l(e.nativeEvent)&&!k&&p&&" "===e.key&&(e.preventDefault(),O(!1),e.currentTarget.click())}),[p,k,r,b]),F=a.useCallback((function(e){0===e.button&&(O(!1),D.remove(document,"mouseup",F,!1))}),[D]),j=a.useCallback((function(e){if(!(0,i.n_)(e)){if(r)return e.stopPropagation(),void e.preventDefault();k||O(!0),e.currentTarget.focus({preventScroll:!0}),D.add(document,"mouseup",F,!1),null==m||m(e)}}),[r,k,m,D,F]),H=a.useCallback((function(e){(0,i.n_)(e)||(k||O(!1),null==g||g(e))}),[g,k]),B=a.useCallback((function(e){r?e.preventDefault():null==T||T(e)}),[r,T]),z=a.useCallback((function(e){S&&(e.preventDefault(),O(!1)),null==x||x(e)}),[S,x]),U=(0,s.lq)(n,(function(e){e&&"BUTTON"!==e.tagName&&C(!1)}));return u({},_,k?{ref:U,type:"button","aria-disabled":N?void 0:r,disabled:N,onClick:R,onMouseDown:m,onMouseUp:g,onKeyUp:b,onKeyDown:y,onMouseOver:T,onMouseLeave:x}:{ref:U,role:"button","data-active":(0,i.PB)(S),"aria-disabled":r?"true":void 0,tabIndex:N?void 0:I,onClick:R,onMouseDown:j,onMouseUp:H,onKeyUp:L,onKeyDown:P,onMouseOver:B,onMouseLeave:z})}var f=n(40242),h=n(97375),p=n(94998),m=n(66197);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var y=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],b=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"],E=["type","isChecked"],T=["children","type","value","defaultValue","onChange"],x=(0,f.n)(),_=x[0],w=x[1],k=x[2],C=x[3],A=(0,s.kr)({strict:!1,name:"MenuContext"}),S=A[0],O=A[1];function D(e){var t;return(0,i.Re)(e)&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function I(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e,r=n.onMouseEnter,o=n.onMouseMove,u=n.onMouseLeave,c=n.onClick,l=n.isDisabled,f=n.isFocusable,p=n.closeOnSelect,m=v(n,b),y=O(),E=y.setFocusedIndex,T=y.focusedIndex,x=y.closeOnSelect,_=y.onClose,w=y.menuRef,k=y.isOpen,A=y.menuId,S=a.useRef(null),I=A+"-menuitem-"+(0,h.Me)(),N=C({disabled:l&&!f}),R=N.index,M=N.register,P=a.useCallback((function(e){null==r||r(e),l||E(R)}),[E,R,l,r]),L=a.useCallback((function(e){null==o||o(e),S.current&&!(0,i.H9)(S.current)&&P(e)}),[P,o]),F=a.useCallback((function(e){null==u||u(e),l||E(-1)}),[E,l,u]),j=a.useCallback((function(e){null==c||c(e),D(e.currentTarget)&&(null!=p?p:x)&&_()}),[_,c,x,p]),H=R===T,B=l&&!f;return(0,h.rf)((function(){k&&(H&&!B&&S.current?(0,i.T_)(S.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):w.current&&!(0,i.H9)(w.current)&&(0,i.T_)(w.current,{preventScroll:!1}))}),[H,B,w,k]),g({},m,d({onClick:j,onMouseEnter:P,onMouseMove:L,onMouseLeave:F,ref:(0,s.lq)(M,S,t),isDisabled:l,isFocusable:f}),{id:I,role:"menuitem",tabIndex:H?0:-1})}var N=["descendants"],R=["children","as"],M=["rootProps"],P=["type"],L=["icon","iconSpacing","command","commandSpacing","children"],F=["icon","iconSpacing"],j=["className","title"],H=["title","children","className"],B=["className","children"],z=["className"],U=function(e){var t=e.children,n=(0,r.jC)("Menu",e),o=function(e){void 0===e&&(e={});var t=e,n=t.id,r=t.closeOnSelect,o=void 0===r||r,s=t.closeOnBlur,u=void 0===s||s,c=t.autoSelect,l=void 0===c||c,d=t.isLazy,f=t.isOpen,b=t.defaultIsOpen,E=t.onClose,T=t.onOpen,x=t.placement,_=void 0===x?"bottom-start":x,w=t.lazyBehavior,C=void 0===w?"unmount":w,A=t.direction,S=t.computePositionOnMount,O=void 0!==S&&S,D=v(t,y),I=a.useRef(null),N=a.useRef(null),R=k(),M=a.useCallback((function(){(0,i.T_)(I.current,{nextTick:!0,selectTextIfInput:!1})}),[]),P=a.useCallback((function(){var e=setTimeout((function(){var e=R.firstEnabled();e&&q(e.index)}));Q.current.add(e)}),[R]),L=a.useCallback((function(){var e=setTimeout((function(){var e=R.lastEnabled();e&&q(e.index)}));Q.current.add(e)}),[R]),F=a.useCallback((function(){null==T||T(),l?P():M()}),[l,P,M,T]),j=(0,h.qY)({isOpen:f,defaultIsOpen:b,onClose:E,onOpen:F}),H=j.isOpen,B=j.onOpen,z=j.onClose,U=j.onToggle;(0,h.O3)({enabled:H&&u,ref:I,handler:function(e){var t;null!=(t=N.current)&&t.contains(e.target)||z()}});var V=(0,m.D)(g({},D,{enabled:H||O,placement:_,direction:A})),G=a.useState(-1),K=G[0],q=G[1];(0,h.rf)((function(){H||q(-1)}),[H]),(0,h.Ck)(I,{focusRef:N,visible:H,shouldFocus:!0});var W=(0,p.h)({isOpen:H,ref:I}),$=(0,h.ZS)(n,"menu-button","menu-list"),Z=$[0],Y=$[1],X=a.useCallback((function(){B(),M()}),[B,M]),Q=a.useRef(new Set([]));return(0,h.zq)((function(){Q.current.forEach((function(e){return clearTimeout(e)})),Q.current.clear()})),{openAndFocusMenu:X,openAndFocusFirstItem:a.useCallback((function(){B(),P()}),[P,B]),openAndFocusLastItem:a.useCallback((function(){B(),L()}),[B,L]),onTransitionEnd:a.useCallback((function(){var e,t,n=(0,i.lZ)(I.current),r=null==(e=I.current)?void 0:e.contains(n.activeElement);if(H&&!r){var o=null==(t=R.item(K))?void 0:t.node;o&&(0,i.T_)(o,{selectTextIfInput:!1,preventScroll:!1})}}),[H,K,R]),unstable__animationState:W,descendants:R,popper:V,buttonId:Z,menuId:Y,forceUpdate:V.forceUpdate,orientation:"vertical",isOpen:H,onToggle:U,onOpen:B,onClose:z,menuRef:I,buttonRef:N,focusedIndex:K,closeOnSelect:o,closeOnBlur:u,autoSelect:l,setFocusedIndex:q,isLazy:d,lazyBehavior:C}}(g({},(0,r.Lr)(e),{direction:(0,r.Fg)().direction})),s=o.descendants,u=v(o,N),c=a.useMemo((function(){return u}),[u]),l=c.isOpen,d=c.onClose,f=c.forceUpdate;return a.createElement(_,{value:s},a.createElement(S,{value:c},a.createElement(r.Fo,{value:n},(0,i.Pu)(t,{isOpen:l,onClose:d,forceUpdate:f}))))};i.Ts&&(U.displayName="Menu");var V=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return a.createElement(r.m$.button,g({ref:t},e,{__css:g({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),G=(0,r.Gp)((function(e,t){e.children;var n=e.as,o=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=O(),r=n.onToggle,o=n.popper,u=n.openAndFocusFirstItem,c=n.openAndFocusLastItem,l=a.useCallback((function(e){var t=(0,i.uh)(e),n={Enter:u,ArrowDown:u,ArrowUp:c}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[u,c]);return g({},e,{ref:(0,s.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,i.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,i.v0)(e.onClick,r),onKeyDown:(0,i.v0)(e.onKeyDown,l)})}(v(e,R),t),u=n||V;return a.createElement(u,g({},o,{className:(0,i.cx)("chakra-menu__menu-button",e.className)}),a.createElement(r.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));i.Ts&&(G.displayName="MenuButton");var K={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},q="custom"in o.E?o.E.custom(r.m$.div):(0,o.E)(r.m$.div),W=(0,r.Gp)((function(e,t){var n,o,u=e.rootProps,c=v(e,M),l=O(),d=l.isOpen,f=l.onTransitionEnd,p=l.unstable__animationState,m=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=O();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var r=n.focusedIndex,o=n.setFocusedIndex,u=n.menuRef,c=n.isOpen,l=n.onClose,d=n.menuId,f=n.isLazy,p=n.lazyBehavior,m=n.unstable__animationState,v=w(),y=(0,h.bx)({preventDefault:function(e){return" "!==e.key&&D(e.target)}}),b=a.useCallback((function(e){var t=(0,i.uh)(e),n={Tab:function(e){return e.preventDefault()},Escape:l,ArrowDown:function(){var e=v.nextEnabled(r);e&&o(e.index)},ArrowUp:function(){var e=v.prevEnabled(r);e&&o(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var a=y((function(e){var t=(0,i.LP)(v.values(),e,(function(e){var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""}),v.item(r));if(t){var n=v.indexOf(t.node);o(n)}}));D(e.target)&&a(e)}),[v,r,y,l,o]),E=a.useRef(!1);c&&(E.current=!0);var T=(0,i.VI)({hasBeenSelected:E.current,isLazy:f,lazyBehavior:p,isSelected:m.present});return g({},e,{ref:(0,s.lq)(u,t),children:T?e.children:null,tabIndex:-1,role:"menu",id:d,style:g({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,i.v0)(e.onKeyDown,b)})}(c,t),y=function(e){void 0===e&&(e={});var t=O(),n=t.popper,r=t.isOpen;return n.getPopperProps(g({},e,{style:g({visibility:r?"visible":"hidden"},e.style)}))}(u),b=(0,r.yK)();return a.createElement(r.m$.div,g({},y,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(o=b.list)?void 0:o.zIndex}}),a.createElement(q,g({},m,{onUpdate:f,onAnimationComplete:(0,i.PP)(p.onComplete,m.onAnimationComplete),className:(0,i.cx)("chakra-menu__menu-list",m.className),variants:K,initial:!1,animate:d?"enter":"exit",__css:g({outline:0},b.list)})))}));i.Ts&&(W.displayName="MenuList");var $=(0,r.Gp)((function(e,t){var n=e.type,i=v(e,P),o=(0,r.yK)(),s=i.as?null!=n?n:void 0:"button",u=g({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item);return a.createElement(r.m$.button,g({ref:t,type:s},i,{__css:u}))})),Z=(0,r.Gp)((function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,s=e.command,u=e.commandSpacing,c=void 0===u?"0.75rem":u,l=e.children,d=I(v(e,L),t),f=n||s?a.createElement("span",{style:{pointerEvents:"none",flex:1}},l):l;return a.createElement($,g({},d,{className:(0,i.cx)("chakra-menu__menuitem",d.className)}),n&&a.createElement(te,{fontSize:"0.8em",marginEnd:o},n),f,s&&a.createElement(ee,{marginStart:c},s))}));i.Ts&&(Z.displayName="MenuItem");var Y=function(e){return a.createElement("svg",g({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),a.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},X=(0,r.Gp)((function(e,t){var n=e.icon,r=e.iconSpacing,o=void 0===r?"0.75rem":r,s=v(e,F),u=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e,r=n.type,i=void 0===r?"radio":r,o=n.isChecked;return g({},I(v(n,E),t),{role:"menuitem"+i,"aria-checked":o})}(s,t);return a.createElement($,g({},u,{className:(0,i.cx)("chakra-menu__menuitem-option",s.className)}),a.createElement(te,{fontSize:"0.8em",marginEnd:o,opacity:e.isChecked?1:0},n||a.createElement(Y,null)),a.createElement("span",{style:{flex:1}},u.children))}));X.id="MenuItemOption",i.Ts&&(X.displayName="MenuItemOption");var Q=function(e){var t=e.className,n=e.title,r=function(e){void 0===e&&(e={});var t=e,n=t.children,r=t.type,o=void 0===r?"radio":r,u=t.value,c=t.defaultValue,l=t.onChange,d=v(t,T),f="radio"===o?"":[],p=(0,h.Tx)({defaultValue:null!=c?c:f,value:u,onChange:l}),m=p[0],y=p[1],b=a.useCallback((function(e){if("radio"===o&&(0,i.HD)(m)&&y(e),"checkbox"===o&&(0,i.kJ)(m)){var t=m.includes(e)?(0,i.cl)(m,e):(0,i.jX)(m,e);y(t)}}),[m,y,o]);return g({},d,{children:(0,s.WR)(n).map((function(e){if("MenuItemOption"!==e.type.id)return e;var t="radio"===o?e.props.value===m:m.includes(e.props.value);return a.cloneElement(e,{type:o,onClick:function(t){b(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(v(e,j));return a.createElement(J,g({title:n,className:(0,i.cx)("chakra-menu__option-group",t)},r))};i.Ts&&(Q.displayName="MenuOptionGroup");var J=(0,r.Gp)((function(e,t){var n=e.title,o=e.children,s=e.className,u=v(e,H),c=(0,i.cx)("chakra-menu__group__title",s),l=(0,r.yK)();return a.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&a.createElement(r.m$.p,g({className:c},u,{__css:l.groupTitle}),n),o)}));i.Ts&&(J.displayName="MenuGroup");var ee=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return a.createElement(r.m$.span,g({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));i.Ts&&(ee.displayName="MenuCommand");var te=function(e){var t=e.className,n=e.children,o=v(e,B),s=a.Children.only(n),u=a.isValidElement(s)?a.cloneElement(s,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",s.props.className)}):null,c=(0,i.cx)("chakra-menu__icon-wrapper",t);return a.createElement(r.m$.span,g({className:c},o,{__css:{flexShrink:0}}),u)};i.Ts&&(te.displayName="MenuIcon");var ne=function(e){var t=e.className,n=v(e,z),o=(0,r.yK)();return a.createElement(r.m$.hr,g({role:"separator","aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t)},n,{__css:o.divider}))};i.Ts&&(ne.displayName="MenuDivider")},90232:function(e,t,n){"use strict";n.d(t,{u_:function(){return Mt},fe:function(){return Bt},ol:function(){return Ut},hz:function(){return Lt},mz:function(){return zt},xB:function(){return Ht},ZA:function(){return jt}});var r=n(84746),i=n(67294),o=n(63366),a=n(87462),s="data-focus-lock",u="data-focus-lock-disabled";function c(e,t){return function(e,t){var n=(0,i.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var l={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=function(e){var t=e.children;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};d.propTypes={},d.defaultProps={children:null};var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function h(e){return e}function p(e,t){void 0===t&&(t=h);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function m(e,t){return void 0===t&&(t=h),p(e,t)}function g(e){void 0===e&&(e={});var t=p(null);return t.options=f({async:!0,ssr:!1},e),t}var v=m({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=m(),b=m(),E=g({async:!0}),T=[],x=i.forwardRef((function(e,t){var n,r=i.useState(),o=r[0],d=r[1],f=i.useRef(),h=i.useRef(!1),p=i.useRef(null),m=e.children,g=e.disabled,b=e.noFocusGuards,x=e.persistentFocus,_=e.crossFrame,w=e.autoFocus,k=(e.allowTextSelection,e.group),C=e.className,A=e.whiteList,S=e.shards,O=void 0===S?T:S,D=e.as,I=void 0===D?"div":D,N=e.lockProps,R=void 0===N?{}:N,M=e.sideCar,P=e.returnFocus,L=e.onActivation,F=e.onDeactivation,j=i.useState({})[0],H=i.useCallback((function(){p.current=p.current||document&&document.activeElement,f.current&&L&&L(f.current),h.current=!0}),[L]),B=i.useCallback((function(){h.current=!1,F&&F(f.current)}),[F]),z=i.useCallback((function(e){var t=p.current;if(Boolean(P)&&t&&t.focus){var n="object"===typeof P?P:void 0;p.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[P]),U=i.useCallback((function(e){h.current&&v.useMedium(e)}),[]),V=y.useMedium,G=i.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var K=(0,a.Z)(((n={})[u]=g&&"disabled",n[s]=k,n),R),q=!0!==b,W=q&&"tail"!==b,$=c([t,G]);return i.createElement(i.Fragment,null,q&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:l}),i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:l})],!g&&i.createElement(M,{id:j,sideCar:E,observed:o,disabled:g,persistentFocus:x,crossFrame:_,autoFocus:w,whiteList:A,shards:O,onActivation:H,onDeactivation:B,returnFocus:z}),i.createElement(I,(0,a.Z)({ref:$},K,{className:C,onBlur:V,onFocus:U}),m),W&&i.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:l}))}));x.propTypes={},x.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var _=x,w=n(94578);var k=function(e,t){return function(n){var r,o=[];function a(){r=e(o.map((function(e){return e.props}))),t(r)}var s,u,c,l=function(e){function t(){return e.apply(this,arguments)||this}(0,w.Z)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return i.createElement(n,this.props)},t}(i.PureComponent);return s=l,u="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",u in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,l}},C=function(e){return"INPUT"===e.tagName&&"radio"===e.type},A=function(e,t){return C(e)&&e.name?function(e,t){return t.filter(C).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},S=function(e){return e[0]&&e.length>1?A(e[0],e):e[0]},O=function(e,t){return e.length>1?e.indexOf(A(e[t],e)):t},D=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},I=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=D(t,I.bind(void 0,e));return e.set(t,r),r},N=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},R=function(e){return!N(e)},M=function(e){return Boolean(e)},P="NEW_FOCUS",L=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=N(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),c=r?t.indexOf(r):u,l=r?e.indexOf(r):-1,d=u-c,f=t.indexOf(o),h=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(n){return t.add(A(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=p.indexOf(n)-(r?p.indexOf(r):u),g=O(e,0),v=O(e,i-1);return-1===u||-1===l?P:!d&&l>=0?l:u<=f&&s&&Math.abs(d)>1?v:u>=h&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?l:u<=f?v:u>h?g:d?Math.abs(d)>1?l:(i+l+d)%i:void 0}},F=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},j=function(e){return Array.isArray(e)?e:[e]},H=function(e){return e.parentNode?H(e.parentNode):e},B=function(e){return j(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(s);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(F(H(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+u+'="disabled"])'))):[t]),e}),[])},z=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},U=function(e,t,n){return F(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(z)},V=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),G=V+", [data-focus-guard]",K=function(e,t){return e.reduce((function(e,n){return e.concat(F(n.querySelectorAll(t?G:V)),n.parentNode?F(n.parentNode.querySelectorAll(V)).filter((function(e){return e===n})):[])}),[])},q=function(e,t){return F(e).filter((function(e){return I(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},W=function(e,t,n){return U(q(K(e,n),t),!0,n)},$=function(e,t){return U(q(K(e),t),!1)},Z=function(e,t){return q(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return F(t).map((function(e){return K([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},Y=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Y(e.parentNode,t),t},X=function(e,t){for(var n=Y(e),r=Y(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},Q=function(e,t,n){var r=j(e),i=j(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=X(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=X(o,e);t&&(a=!a||t.contains(a)?t:X(t,a))}))})),a},J=function(e,t){var n=document&&document.activeElement,r=B(e).filter(R),i=Q(n||e,e,r),o=new Map,a=$(r,o),s=W(r,o).filter((function(e){var t=e.node;return R(t)}));if(s[0]||(s=a)[0]){var u,c=$([i],o).map((function(e){return e.node})),l=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(M)}(c,s),d=l.map((function(e){return e.node})),f=L(d,c,n,t);if(f===P){var h=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(Z(n,t))}),[])}(r,o),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:h&&h.length?S(h):S(d)}}return void 0===f?f:l[f]}},ee=0,te=!1,ne=function(e,t){var n,r=J(e,t);if(!te&&r){if(ee>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),te=!0,void setTimeout((function(){te=!1}),1);ee++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),ee--}},re=function(e){return Boolean(F(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},ie=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&B(e).reduce((function(e,n){return e||n.contains(t)||re(n)}),!1)};function oe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ae=function(){return document&&document.activeElement===document.body||document&&F(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},se=null,ue=null,ce=null,le=!1,de=function(){return!0};function fe(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var he=function(e){return e&&"current"in e?e.current:e},pe=function(){var e,t=!1;if(se){var n=se,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||ce&&ce.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(he).filter(Boolean));if(c&&!function(e){return(se.whiteList||de)(e)}(c)||(i||(s?Boolean(le):"meanwhile"===le)||!ae()||!ue&&o)&&(!u||ie(l)||(e=c,ce&&ce.portaledElement===e)||(document&&!ue&&c&&!o?(c.blur&&c.blur(),document.body.focus()):(t=ne(l,ue),ce={})),le=!1,ue=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=B(e).filter(R),n=Q(e,e,t),r=new Map,i=W([n],r,!0),o=W(t,r).filter((function(e){var t=e.node;return R(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:N(t)}}))}(l),h=f.map((function(e){return e.node})).indexOf(d);h>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),fe(h,f.length,1,f),fe(h,-1,-1,f))}}}return t},me=function(e){pe()&&e&&(e.stopPropagation(),e.preventDefault())},ge=function(){return oe(pe)},ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ce={observerNode:n,portaledElement:t})},ye=function(){le="just",setTimeout((function(){le="meanwhile"}),0)};v.assignSyncMedium(ve),y.assignMedium(ge),b.assignMedium((function(e){return e({moveFocusInside:ne,focusInside:ie})}));var be=k((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!se&&(document.addEventListener("focusin",me,!0),document.addEventListener("focusout",ge),window.addEventListener("blur",ye));var n=se,r=n&&t&&t.id===n.id;se=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ue=null,r&&n.observed===t.observed||t.onActivation(),pe(),oe(pe)):(document.removeEventListener("focusin",me,!0),document.removeEventListener("focusout",ge),window.removeEventListener("blur",ye),ue=null)}))((function(){return null})),Ee=i.forwardRef((function(e,t){return i.createElement(_,(0,a.Z)({sideCar:be,ref:t},e))})),Te=_.propTypes||{};Te.sideCar,(0,o.Z)(Te,["sideCar"]);Ee.propTypes={};var xe=Ee,_e=n(44592),we=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,r=e.contentRef,o=e.restoreFocus,a=e.children,s=e.isDisabled,u=e.autoFocus,c=e.persistentFocus,l=e.lockFocusAcrossFrames,d=i.useCallback((function(){if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,_e.t5)(r.current).length&&(0,_e.T_)(r.current,{nextTick:!0})}}),[t,r]),f=i.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),h=o&&!n;return i.createElement(xe,{crossFrame:l,persistentFocus:c,autoFocus:u,disabled:s,onActivation:d,onDeactivation:f,returnFocus:h},a)};_e.Ts&&(we.displayName="FocusLock");var ke=n(46871),Ce=n(105),Ae=n(37496),Se=n(52829),Oe=n(99860),De=n(53869),Ie=n(69283);var Ne=function(){return(Ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var Re="right-scroll-bar-position",Me="width-before-scroll-bar",Pe=g(),Le=function(){},Fe=i.forwardRef((function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Le,onWheelCapture:Le,onTouchMoveCapture:Le}),o=r[0],a=r[1],s=e.forwardProps,u=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=p,x=c([n,t]),_=Ne({},E,o);return i.createElement(i.Fragment,null,f&&i.createElement(T,{sideCar:Pe,removeScrollBar:d,shards:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),s?i.cloneElement(i.Children.only(u),Ne({},_,{ref:x})):i.createElement(b,Ne({},_,{className:l,ref:x}),u))}));Fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fe.classNames={fullWidth:Me,zeroRight:Re};var je,He=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,f({},n))};He.isSideCarExport=!0;function Be(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je||n.nc;return t&&e.setAttribute("nonce",t),e}var ze=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=Be())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ue=function(){var e=function(){var e=ze();return function(t){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Ve={left:0,top:0,right:0,gap:0},Ge=function(e){return parseInt(e||"",10)||0},Ke=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Ve;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Ge(n),Ge(r),Ge(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qe=Ue(),We=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+s+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+i+"px;\n padding-top: "+o+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+s+"px "+r+";\n ","padding"===n&&"padding-right: "+s+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n ."+Re+" {\n right: "+s+"px "+r+";\n }\n \n ."+Me+" {\n margin-right: "+s+"px "+r+";\n }\n \n ."+Re+" ."+Re+" {\n right: 0 "+r+";\n }\n \n ."+Me+" ."+Me+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+s+"px;\n }\n"},$e=function(e){var t=i.useState(Ke(e.gapMode)),n=t[0],r=t[1];i.useEffect((function(){r(Ke(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return i.createElement(qe,{styles:We(n,!o,u,a?"":"!important")})},Ze=function(e,t){var n=t;do{if(Ye(e,n)){var r=Xe(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ye=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Xe=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Qe=!1;if("undefined"!==typeof window)try{var Je=Object.defineProperty({},"passive",{get:function(){return Qe=!0,!0}});window.addEventListener("test",Je,Je),window.removeEventListener("test",Je,Je)}catch($t){Qe=!1}var et=!!Qe&&{passive:!1},tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nt=function(e){return[e.deltaX,e.deltaY]},rt=function(e){return e&&"current"in e?e.current:e},it=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},ot=0,at=[];var st,ut=(st=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ot++)[0],a=i.useState((function(){return Ue()}))[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(rt)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=tt(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v",f=Ze(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=Ze(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=i),!i)return!0;var h=r.current||i;return function(e,t,n,r,i){var o=r,a=n.target,s=t.contains(a),u=!1,c=o>0,l=0,d=0;do{var f=Xe(e,a),h=f[0],p=f[1]-f[2]-h;(h||p)&&Ye(e,a)&&(l+=p,d+=h),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(i&&0===l||!i&&o>l)||!c&&(i&&0===d||!i&&-o>d))&&(u=!0),u}(h,t,e,"h"===h?u:c,!0)}),[]),c=i.useCallback((function(e){var n=e;if(at.length&&at[at.length-1]===a){var r="deltaY"in n?nt(n):tt(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(rt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?u(n,o[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=i.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=i.useCallback((function(e){n.current=tt(e),r.current=void 0}),[]),f=i.useCallback((function(t){l(t.type,nt(t),t.target,u(t,e.lockRef.current))}),[]),h=i.useCallback((function(t){l(t.type,tt(t),t.target,u(t,e.lockRef.current))}),[]);i.useEffect((function(){return at.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,et),document.addEventListener("touchmove",c,et),document.addEventListener("touchstart",d,et),function(){at=at.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,et),document.removeEventListener("touchmove",c,et),document.removeEventListener("touchstart",d,et)}}),[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:it(o)}):null,p?i.createElement($e,{gapMode:"margin"}):null)},Pe.useMedium(st),He),ct=i.forwardRef((function(e,t){return i.createElement(Fe,Ne({},e,{ref:t,sideCar:ut}))}));ct.classNames=Fe.classNames;var lt=ct,dt=n(97375),ft=new WeakMap,ht=new WeakMap,pt={},mt=0,gt=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];pt[n]||(pt[n]=new WeakMap);var i=pt[n],o=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};r.forEach(s);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,s=(ft.get(e)||0)+1,c=(i.get(e)||0)+1;ft.set(e,s),i.set(e,c),o.push(e),1===s&&r&&ht.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),mt++,function(){o.forEach((function(e){var t=ft.get(e)-1,r=i.get(e)-1;ft.set(e,t),i.set(e,r),t||(ht.has(e)||e.removeAttribute("aria-hidden"),ht.delete(e)),r||e.removeAttribute(n)})),--mt||(ft=new WeakMap,ft=new WeakMap,ht=new WeakMap,pt={})}};function vt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function yt(){return(yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bt=["preset"],Et={slideInBottom:yt({},Ae.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:yt({},Ae.Xc,{custom:{offsetX:16,reverse:!0}}),scale:yt({},Ae.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},Tt=(0,Ce.m$)(Oe.E.section),xt=i.forwardRef((function(e,t){var n=e.preset,r=vt(e,bt),o=Et[n];return i.createElement(Tt,yt({ref:t},o,r))})),_t=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function wt(e){var t,n,r=e.isOpen,o=e.onClose,a=e.id,s=e.closeOnOverlayClick,u=void 0===s||s,c=e.closeOnEsc,l=void 0===c||c,d=e.useInert,f=void 0===d||d,h=e.onOverlayClick,p=e.onEsc,m=(0,i.useRef)(null),g=(0,i.useRef)(null),v=(0,dt.ZS)(a,"chakra-modal","chakra-modal--header","chakra-modal--body"),y=v[0],b=v[1],E=v[2];t=m,n=r&&f,(0,i.useEffect)((function(){if(t.current){var e=null;return n&&t.current&&(e=gt(t.current)),function(){n&&(null==e||e())}}}),[n,t]),function(e,t){(0,i.useEffect)((function(){return t&&_t.add(e),function(){_t.remove(e)}}),[t,e])}(m,r);var T=(0,i.useRef)(null),x=(0,i.useCallback)((function(e){T.current=e.target}),[]),_=(0,i.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),l&&(null==o||o()),null==p||p())}),[l,o,p]),w=(0,i.useState)(!1),k=w[0],C=w[1],A=(0,i.useState)(!1),S=A[0],O=A[1],D=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),yt({role:"dialog"},e,{ref:(0,Se.lq)(t,m),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?b:void 0,"aria-describedby":S?E:void 0,onClick:(0,_e.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[E,S,y,b,k]),I=(0,i.useCallback)((function(e){e.stopPropagation(),T.current===e.target&&_t.isTopModal(m)&&(u&&(null==o||o()),null==h||h())}),[o,u,h]),N=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),yt({},e,{ref:(0,Se.lq)(t,g),onClick:(0,_e.v0)(e.onClick,I),onKeyDown:(0,_e.v0)(e.onKeyDown,_),onMouseDown:(0,_e.v0)(e.onMouseDown,x)})}),[_,x,I]);return{isOpen:r,onClose:o,headerId:b,bodyId:E,setBodyMounted:O,setHeaderMounted:C,dialogRef:m,overlayRef:g,getDialogProps:D,getDialogContainerProps:N}}var kt=["className","children","containerProps"],Ct=["className","transition"],At=["className"],St=["className"],Ot=["className"],Dt=["onClick","className"],It=(0,Se.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Nt=It[0],Rt=It[1],Mt=function(e){var t=e.portalProps,n=e.children,r=e.autoFocus,o=e.trapFocus,a=e.initialFocusRef,s=e.finalFocusRef,u=e.returnFocusOnClose,c=e.blockScrollOnMount,l=e.allowPinchZoom,d=e.preserveScrollBarGap,f=e.motionPreset,h=e.lockFocusAcrossFrames,p=(0,Ce.jC)("Modal",e),m=yt({},wt(e),{autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h});return i.createElement(Nt,{value:m},i.createElement(Ce.Fo,{value:p},i.createElement(De.M,null,m.isOpen&&i.createElement(ke.h_,t,n))))};Mt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},_e.Ts&&(Mt.displayName="Modal");var Pt=(0,Ce.m$)(Oe.E.div),Lt=(0,Ce.Gp)((function(e,t){var n=e.className,r=e.children,o=e.containerProps,a=vt(e,kt),s=Rt(),u=s.getDialogProps,c=s.getDialogContainerProps,l=u(a,t),d=c(o),f=(0,_e.cx)("chakra-modal__content",n),h=(0,Ce.yK)(),p=yt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},h.dialog),m=yt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},h.dialogContainer),g=Rt().motionPreset;return i.createElement(Ft,null,i.createElement(Ce.m$.div,yt({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:m}),i.createElement(xt,yt({preset:g,className:f},l,{__css:p}),r)))}));function Ft(e){var t=Rt(),n=t.autoFocus,r=t.trapFocus,o=t.dialogRef,a=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,c=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,f=t.lockFocusAcrossFrames,h=(0,Ie.oO)(),p=h[0],m=h[1];return i.useEffect((function(){!p&&m&&setTimeout(m)}),[p,m]),i.createElement(we,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:c,restoreFocus:l,contentRef:o,lockFocusAcrossFrames:f},i.createElement(lt,{removeScrollBar:!d,allowPinchZoom:u,enabled:s,forwardProps:!0},e.children))}_e.Ts&&(Lt.displayName="ModalContent");var jt=(0,Ce.Gp)((function(e,t){var n=e.className;e.transition;var r=vt(e,Ct),o=(0,_e.cx)("chakra-modal__overlay",n),a=yt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Ce.yK)().overlay),s="none"===Rt().motionPreset?{}:Ae.uf;return i.createElement(Pt,yt({},s,{__css:a,ref:t,className:o},r))}));_e.Ts&&(jt.displayName="ModalOverlay");var Ht=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,At),o=Rt(),a=o.headerId,s=o.setHeaderMounted;i.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,_e.cx)("chakra-modal__header",n),c=yt({flex:0},(0,Ce.yK)().header);return i.createElement(Ce.m$.header,yt({ref:t,className:u,id:a},r,{__css:c}))}));_e.Ts&&(Ht.displayName="ModalHeader");var Bt=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,St),o=Rt(),a=o.bodyId,s=o.setBodyMounted;i.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,_e.cx)("chakra-modal__body",n),c=(0,Ce.yK)();return i.createElement(Ce.m$.div,yt({ref:t,className:u,id:a},r,{__css:c.body}))}));_e.Ts&&(Bt.displayName="ModalBody");var zt=(0,Ce.Gp)((function(e,t){var n=e.className,r=vt(e,Ot),o=(0,_e.cx)("chakra-modal__footer",n),a=yt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Ce.yK)().footer);return i.createElement(Ce.m$.footer,yt({ref:t},r,{__css:a,className:o}))}));_e.Ts&&(zt.displayName="ModalFooter");var Ut=(0,Ce.Gp)((function(e,t){var n=e.onClick,o=e.className,a=vt(e,Dt),s=Rt().onClose,u=(0,_e.cx)("chakra-modal__close-btn",o),c=(0,Ce.yK)();return i.createElement(r.P,yt({ref:t,__css:c.closeButton,className:u,onClick:(0,_e.v0)(n,(function(e){e.stopPropagation(),s()}))},a))}));_e.Ts&&(Ut.displayName="ModalCloseButton");var Vt=["className","children"],Gt=(0,Se.kr)(),Kt=(Gt[0],Gt[1]);var qt=(0,Ce.m$)(Ae.Mi),Wt=(0,Ce.Gp)((function(e,t){var n=e.className,r=e.children,o=vt(e,Vt),a=Rt(),s=a.getDialogProps,u=a.getDialogContainerProps,c=a.isOpen,l=s(o,t),d=u(),f=(0,_e.cx)("chakra-modal__content",n),h=(0,Ce.yK)(),p=yt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},h.dialog),m=yt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},h.dialogContainer),g=Kt().placement;return i.createElement(Ce.m$.div,yt({},d,{className:"chakra-modal__content-container",__css:m}),i.createElement(Ft,null,i.createElement(qt,yt({direction:g,in:c,className:f},l,{__css:p}),r)))}));_e.Ts&&(Wt.displayName="DrawerContent")},32095:function(e,t,n){"use strict";n.d(t,{J2:function(){return C},QH:function(){return I},b:function(){return D},yk:function(){return S},xo:function(){return A}});n(84746);var r=n(105),i=n(38554),o=n.n(i),a=n(44592),s=n(67294),u=n(52829),c=n(99860),l=n(97375),d=n(94998),f=n(66197);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var m=(0,u.kr)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),g=m[0],v=m[1],y=function(e){if(e)return o()(e,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},b=(0,c.E)(r.m$.section),E=s.forwardRef((function(e,t){var n=v().isOpen;return s.createElement(b,h({ref:t,variants:y(e.variants)},e,{initial:!1,animate:n?"enter":"exit"}))}));E.defaultProps={variants:{exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}}};var T=["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"],x="click",_="hover";var w=["children"],k=["rootProps"],C=function(e){var t=(0,r.jC)("Popover",e),n=(0,r.Lr)(e),i=n.children,o=function(e){void 0===e&&(e={});var t=e,n=t.closeOnBlur,r=void 0===n||n,i=t.closeOnEsc,o=void 0===i||i,c=t.initialFocusRef,m=t.id,g=t.returnFocusOnClose,v=void 0===g||g,y=t.autoFocus,b=void 0===y||y,E=t.arrowSize,w=t.arrowShadowColor,k=t.trigger,C=void 0===k?x:k,A=t.openDelay,S=void 0===A?200:A,O=t.closeDelay,D=void 0===O?200:O,I=t.isLazy,N=t.lazyBehavior,R=void 0===N?"unmount":N,M=t.computePositionOnMount,P=p(t,T),L=(0,l.qY)(e),F=L.isOpen,j=L.onClose,H=L.onOpen,B=L.onToggle,z=(0,s.useRef)(null),U=(0,s.useRef)(null),V=(0,s.useRef)(null),G=(0,s.useRef)(!1),K=(0,s.useRef)(!1);F&&(K.current=!0);var q=(0,s.useState)(!1),W=q[0],$=q[1],Z=(0,s.useState)(!1),Y=Z[0],X=Z[1],Q=(0,l.ZS)(m,"popover-trigger","popover-content","popover-header","popover-body"),J=Q[0],ee=Q[1],te=Q[2],ne=Q[3],re=(0,f.D)(h({},P,{enabled:F||!!M})),ie=re.referenceRef,oe=re.getArrowProps,ae=re.getPopperProps,se=re.getArrowInnerProps,ue=re.forceUpdate,ce=(0,d.h)({isOpen:F,ref:V});(0,l.s9)({enabled:F,ref:U}),(0,l.Ck)(V,{focusRef:U,visible:F,shouldFocus:v&&C===x}),(0,l.Gp)(V,{focusRef:c,visible:F,shouldFocus:b&&C===x});var le=(0,a.VI)({hasBeenSelected:K.current,isLazy:I,lazyBehavior:R,isSelected:ce.present}),de=(0,s.useCallback)((function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t=null);var i=h({},e,{style:h({},e.style,(n={transformOrigin:f.j.transformOrigin.varRef},n[f.j.arrowSize.var]=E?(0,a.px)(E):void 0,n[f.j.arrowShadowColor.var]=w,n)),ref:(0,u.lq)(V,t),children:le?e.children:null,id:ee,tabIndex:-1,role:"dialog",onKeyDown:(0,a.v0)(e.onKeyDown,(function(e){o&&"Escape"===e.key&&j()})),onBlur:(0,a.v0)(e.onBlur,(function(e){var t=(0,a.wN)(e),n=(0,a.r3)(V.current,t),i=(0,a.r3)(U.current,t);F&&r&&!n&&!i&&j()})),"aria-labelledby":W?te:void 0,"aria-describedby":Y?ne:void 0});return C===_&&(i.role="tooltip",i.onMouseEnter=(0,a.v0)(e.onMouseEnter,(function(){G.current=!0})),i.onMouseLeave=(0,a.v0)(e.onMouseLeave,(function(){G.current=!1,setTimeout(j,D)}))),i}),[le,ee,W,te,Y,ne,C,o,j,F,r,D,w,E]),fe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ae(h({},e,{style:h({visibility:F?"visible":"hidden"},e.style)}),t)}),[F,ae]),he=(0,s.useCallback)((function(e,t){return void 0===t&&(t=null),h({},e,{ref:(0,u.lq)(t,z,ie)})}),[z,ie]),pe=(0,s.useRef)(),me=(0,s.useRef)(),ge=(0,s.useCallback)((function(e){null==z.current&&ie(e)}),[ie]),ve=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=h({},e,{ref:(0,u.lq)(U,t,ge),id:J,"aria-haspopup":"dialog","aria-expanded":F,"aria-controls":ee});return C===x&&(n.onClick=(0,a.v0)(e.onClick,B)),C===_&&(n.onFocus=(0,a.v0)(e.onFocus,H),n.onBlur=(0,a.v0)(e.onBlur,(function(e){var t=(0,a.wN)(e),n=!(0,a.r3)(V.current,t);F&&r&&n&&j()})),n.onKeyDown=(0,a.v0)(e.onKeyDown,(function(e){"Escape"===e.key&&j()})),n.onMouseEnter=(0,a.v0)(e.onMouseEnter,(function(){G.current=!0,pe.current=window.setTimeout(H,S)})),n.onMouseLeave=(0,a.v0)(e.onMouseLeave,(function(){G.current=!1,pe.current&&(clearTimeout(pe.current),pe.current=void 0),me.current=window.setTimeout((function(){!1===G.current&&j()}),D)}))),n}),[J,F,ee,C,ge,B,H,r,j,S,D]);(0,s.useEffect)((function(){return function(){pe.current&&clearTimeout(pe.current),me.current&&clearTimeout(me.current)}}),[]);var ye=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:te,ref:(0,u.lq)(t,(function(e){$(!!e)}))})}),[te]),be=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),h({},e,{id:ne,ref:(0,u.lq)(t,(function(e){X(!!e)}))})}),[ne]);return{forceUpdate:ue,isOpen:F,onAnimationComplete:ce.onComplete,onClose:j,getAnchorProps:he,getArrowProps:oe,getArrowInnerProps:se,getPopoverPositionerProps:fe,getPopoverProps:de,getTriggerProps:ve,getHeaderProps:ye,getBodyProps:be}}(h({},p(n,w),{direction:(0,r.Fg)().direction}));return s.createElement(g,{value:o},s.createElement(r.Fo,{value:t},(0,a.Pu)(i,{isOpen:o.isOpen,onClose:o.onClose,forceUpdate:o.forceUpdate})))};a.Ts&&(C.displayName="Popover");a.Ts;var A=function(e){var t=s.Children.only(e.children),n=v().getTriggerProps;return s.cloneElement(t,n(t.props,t.ref))};a.Ts&&(A.displayName="PopoverTrigger");var S=(0,r.Gp)((function(e,t){var n=e.rootProps,i=p(e,k),o=v(),u=o.getPopoverProps,c=o.getPopoverPositionerProps,l=o.onAnimationComplete,d=(0,r.yK)(),f=h({position:"relative",display:"flex",flexDirection:"column"},d.content);return s.createElement(r.m$.div,h({},c(n),{__css:d.popper,className:"chakra-popover__popper"}),s.createElement(E,h({},u(i,t),{onAnimationComplete:(0,a.PP)(l,i.onAnimationComplete),className:(0,a.cx)("chakra-popover__content",e.className),__css:f})))}));a.Ts&&(S.displayName="PopoverContent");var O=(0,r.Gp)((function(e,t){var n=v().getHeaderProps,i=(0,r.yK)();return s.createElement(r.m$.header,h({},n(e,t),{className:(0,a.cx)("chakra-popover__header",e.className),__css:i.header}))}));a.Ts&&(O.displayName="PopoverHeader");var D=(0,r.Gp)((function(e,t){var n=v().getBodyProps,i=(0,r.yK)();return s.createElement(r.m$.div,h({},n(e,t),{className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body}))}));a.Ts&&(D.displayName="PopoverBody");a.Ts;a.Ts;var I=function(e){var t,n=e.bg,i=e.bgColor,o=e.backgroundColor,u=v(),c=u.getArrowProps,l=u.getArrowInnerProps,d=(0,r.yK)(),f=null!=(t=null!=n?n:i)?t:o;return s.createElement(r.m$.div,h({},c(),{className:"chakra-popover__arrow-positioner"}),s.createElement(r.m$.div,h({className:(0,a.cx)("chakra-popover__arrow",e.className)},l(e),{__css:h({},d.arrow,{"--popper-arrow-bg":f?"colors."+f+", "+f:void 0})})))};a.Ts&&(I.displayName="PopoverArrow")},66197:function(e,t,n){"use strict";n.d(t,{j:function(){return me},D:function(){return Oe}});var r=n(52829);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof i(e).Element||e instanceof Element}function a(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,c=Math.min,l=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(a(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(r=l(n.width)/s||1),o>0&&(i=l(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return d(p(e)).left+f(e).scrollLeft}function g(e){return i(e).getComputedStyle(e)}function v(e){var t=g(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e,t,n){void 0===n&&(n=!1);var r=a(t),o=a(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=p(t),u=d(e,o),c={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(r||!r&&!n)&&(("body"!==h(t)||v(s))&&(c=function(e){return e!==i(e)&&a(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),a(t)?((g=d(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):s&&(g.x=m(s))),{x:u.left+c.scrollLeft-g.x,y:u.top+c.scrollTop-g.y,width:u.width,height:u.height}}function b(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||p(e)}function T(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:a(e)&&v(e)?e:T(E(e))}function x(e,t){var n;void 0===t&&(t=[]);var r=T(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r),s=o?[a].concat(a.visualViewport||[],v(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(x(E(s)))}function _(e){return["table","td","th"].indexOf(h(e))>=0}function w(e){return a(e)&&"fixed"!==g(e).position?e.offsetParent:null}function k(e){for(var t=i(e),n=w(e);n&&_(n)&&"static"===g(n).position;)n=w(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&a(e)&&"fixed"===g(e).position)return null;for(var n=E(e);a(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",A="bottom",S="right",O="left",D="auto",I=[C,A,S,O],N="start",R="end",M="viewport",P="popper",L=I.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+R])}),[]),F=[].concat(I,[D]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+R])}),[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function B(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var z={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?z:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},z,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:i,setOptions:function(n){var u="function"===typeof n?n(i.options):n;l(),i.options=Object.assign({},a,i.options,u),i.scrollParents={reference:o(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var d=function(e){var t=H(e);return j.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var a=o({state:i,name:t,instance:c,options:r}),u=function(){};s.push(a||u)}})),c.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,n=e.popper;if(U(t,n)){i.rects={reference:y(t,k(n),"fixed"===i.options.strategy),popper:b(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"===typeof a&&(i=a({state:i,options:l,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:B((function(){return new Promise((function(e){c.forceUpdate(),e(i)}))})),destroy:function(){l(),u=!0}};if(!U(e,t))return c;function l(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var G={passive:!0};function K(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?K(i):null,a=i?q(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case C:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:u};break;case O:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?W(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case N:t[c]=t[c]-(n[l]/2-r[l]/2);break;case R:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,v=void 0===m?0:m,y=s.y,b=void 0===y?0:y,E="function"===typeof f?f({x:v,y:b}):{x:v,y:b};v=E.x,b=E.y;var T=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),_=O,w=C,D=window;if(d){var I=k(n),N="clientHeight",M="clientWidth";if(I===i(n)&&"static"!==g(I=p(n)).position&&"absolute"===u&&(N="scrollHeight",M="scrollWidth"),I=I,o===C||(o===O||o===S)&&a===R)w=A,b-=(h&&D.visualViewport?D.visualViewport.height:I[N])-r.height,b*=c?1:-1;if(o===O||(o===C||o===A)&&a===R)_=S,v-=(h&&D.visualViewport?D.visualViewport.width:I[M])-r.width,v*=c?1:-1}var P,L=Object.assign({position:u},d&&Z),F=!0===f?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:l(t*r)/r||0,y:l(n*r)/r||0}}({x:v,y:b}):{x:v,y:b};return v=F.x,b=F.y,c?Object.assign({},L,((P={})[w]=x?"0":"",P[_]=T?"0":"",P.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",P)):Object.assign({},L,((t={})[w]=x?b+"px":"",t[_]=T?v+"px":"",t.transform="",t))}var X={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t){return t===M?ne(function(e){var t=i(e),n=p(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:s+m(e),y:u}}(e)):o(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ne(function(e){var t,n=p(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=u(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+m(e),c=-r.scrollTop;return"rtl"===g(i||n).direction&&(s+=u(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(p(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=x(E(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&a(e)?k(e):e;return o(n)?t.filter((function(e){return o(e)&&te(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),s=i[0],l=i.reduce((function(t,n){var r=re(e,n);return t.top=u(r.top,t.top),t.right=c(r.right,t.right),t.bottom=c(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),re(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?M:u,l=n.elementContext,f=void 0===l?P:l,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=oe("number"!==typeof v?v:ae(v,I)),b=f===P?"reference":P,E=e.rects.popper,T=e.elements[m?b:f],x=ie(o(T)?T:T.contextElement||p(e.elements.popper),s,c),_=d(e.elements.reference),w=$({reference:_,element:E,strategy:"absolute",placement:i}),k=ne(Object.assign({},E,w)),O=f===P?k:_,D={top:x.top-O.top+y.top,bottom:O.bottom-x.bottom+y.bottom,left:x.left-O.left+y.left,right:O.right-x.right+y.right},N=e.modifiersData.offset;if(f===P&&N){var R=N[i];Object.keys(D).forEach((function(e){var t=[S,A].indexOf(e)>=0?1:-1,n=[C,A].indexOf(e)>=0?"y":"x";D[e]+=R[n]*t}))}return D}function ue(e,t,n){return u(e,c(t,n))}function ce(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function le(e){return[C,S,A,O].some((function(t){return e[t]>=0}))}var de=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,u=void 0===s||s,c=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,G)})),u&&c.addEventListener("resize",n.update,G),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),u&&c.removeEventListener("resize",n.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:K(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];a(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(r)&&h(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=F.reduce((function(e,n){return e[n]=function(e,t,n){var r=K(e),i=[O,C].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[O,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=K(g),y=u||(v===g||!p?[Q(g)]:function(e){if(K(e)===D)return[];var t=Q(e);return[ee(e),t,ee(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(K(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?F:u,l=q(r),d=l?s?L:L.filter((function(e){return q(e)===l})):I,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[K(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),E=t.rects.reference,T=t.rects.popper,x=new Map,_=!0,w=b[0],k=0;k<b.length;k++){var R=b[k],M=K(R),P=q(R)===N,j=[C,A].indexOf(M)>=0,H=j?"width":"height",B=se(t,{placement:R,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),z=j?P?S:O:P?A:C;E[H]>T[H]&&(z=Q(z));var U=Q(z),V=[];if(o&&V.push(B[M]<=0),s&&V.push(B[z]<=0,B[U]<=0),V.every((function(e){return e}))){w=R,_=!1;break}x.set(R,V)}if(_)for(var G=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},W=p?3:1;W>0;W--){if("break"===G(W))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=se(t,{boundary:l,rootBoundary:d,padding:h,altBoundary:f}),E=K(t.placement),T=q(t.placement),x=!T,_=W(E),w="x"===_?"y":"x",D=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,M="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,P="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(D){if(o){var j,H="y"===_?C:O,B="y"===_?A:S,z="y"===_?"height":"width",U=D[_],V=U+y[H],G=U-y[B],$=m?-R[z]/2:0,Z=T===N?I[z]:R[z],Y=T===N?-R[z]:-I[z],X=t.elements.arrow,Q=m&&X?b(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[H],te=J[B],ne=ue(0,I[z],Q[z]),re=x?I[z]/2-$-ne-ee-P.mainAxis:Z-ne-ee-P.mainAxis,ie=x?-I[z]/2+$+ne+te+P.mainAxis:Y+ne+te+P.mainAxis,oe=t.elements.arrow&&k(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,ce=null!=(j=null==L?void 0:L[_])?j:0,le=U+ie-ce,de=ue(m?c(V,U+re-ce-ae):V,U,m?u(G,le):G);D[_]=de,F[_]=de-U}if(s){var fe,he="x"===_?C:O,pe="x"===_?A:S,me=D[w],ge="y"===w?"height":"width",ve=me+y[he],ye=me-y[pe],be=-1!==[C,O].indexOf(E),Ee=null!=(fe=null==L?void 0:L[w])?fe:0,Te=be?ve:me-I[ge]-R[ge]-Ee+P.altAxis,xe=be?me+I[ge]+R[ge]-Ee-P.altAxis:ye,_e=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(Te,me,xe):ue(m?Te:ve,me,m?xe:ye);D[w]=_e,F[w]=_e-me}t.modifiersData[r]=F}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=K(n.placement),u=W(s),c=[O,S].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return oe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,I))}(i.padding,n),d=b(o),f="y"===u?C:O,h="y"===u?A:S,p=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],g=k(o),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,E=l[f],T=v-d[c]-l[h],x=v/2-d[c]/2+y,_=ue(E,x,T),w=u;n.modifiersData[r]=((t={})[w]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),u=ce(a,r),c=ce(s,i,o),l=le(u),d=le(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),fe=n(67294);function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},me={arrowShadowColor:pe("--popper-arrow-shadow-color"),arrowSize:pe("--popper-arrow-size","8px"),arrowSizeHalf:pe("--popper-arrow-size-half"),arrowBg:pe("--popper-arrow-bg"),transformOrigin:pe("--popper-transform-origin"),arrowOffset:pe("--popper-arrow-offset")};var ge={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ve={scroll:!0,resize:!0};var ye={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},be={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;Ee(t)},effect:function(e){var t=e.state;return function(){Ee(t)}}},Ee=function(e){var t;e.elements.popper.style.setProperty(me.transformOrigin.var,(t=e.placement,ge[t]))},Te={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;xe(t)}},xe=function(e){var t;if(e.placement){var n=_e(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,i;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=me.arrowSize.varRef,r.height=me.arrowSize.varRef,r.zIndex=-1,r));var o=((i={})[me.arrowSizeHalf.var]="calc("+me.arrowSize.varRef+" / 2)",i[me.arrowOffset.var]="calc("+me.arrowSizeHalf.varRef+" * -1)",i);for(var a in o)e.elements.arrow.style.setProperty(a,o[a])}}},_e=function(e){return e.startsWith("top")?{property:"bottom",value:me.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:me.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:me.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:me.arrowOffset.varRef}:void 0},we={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;ke(t)},effect:function(e){var t=e.state;return function(){ke(t)}}},ke=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(n)Object.assign(n.style,{transform:"rotate(45deg)",background:me.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ce={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Ae={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};var Se=["size","shadowColor","bg","style"];function Oe(e){void 0===e&&(e={});var t=e,n=t.enabled,i=void 0===n||n,o=t.modifiers,a=t.placement,s=void 0===a?"bottom":a,u=t.strategy,c=void 0===u?"absolute":u,l=t.arrowPadding,d=void 0===l?8:l,f=t.eventListeners,h=void 0===f||f,p=t.offset,m=t.gutter,g=void 0===m?8:m,v=t.flip,y=void 0===v||v,b=t.boundary,E=void 0===b?"clippingParents":b,T=t.preventOverflow,x=void 0===T||T,_=t.matchWidth,w=t.direction,k=void 0===w?"ltr":w,C=(0,fe.useRef)(null),A=(0,fe.useRef)(null),S=(0,fe.useRef)(null),O=function(e,t){var n,r;void 0===t&&(t="ltr");var i=(null==(n=Ce[e])?void 0:n[t])||e;return"ltr"===t?i:null!=(r=Ae[e])?r:i}(s,k),D=(0,fe.useRef)((function(){})),I=(0,fe.useCallback)((function(){var e;i&&C.current&&A.current&&(null==D.current||D.current(),S.current=de(C.current,A.current,{placement:O,modifiers:[we,Te,be,he({},ye,{enabled:!!_}),he({name:"eventListeners"},(e=h,"object"===typeof e?{enabled:!0,options:he({},ve,e)}:{enabled:e,options:ve})),{name:"arrow",options:{padding:d}},{name:"offset",options:{offset:null!=p?p:[0,g]}},{name:"flip",enabled:!!y,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:E}}].concat(null!=o?o:[]),strategy:c}),S.current.forceUpdate(),D.current=S.current.destroy)}),[O,i,o,_,h,d,p,g,y,x,E,c]);(0,fe.useEffect)((function(){return function(){var e;C.current||A.current||(null==(e=S.current)||e.destroy(),S.current=null)}}),[]);var N=(0,fe.useCallback)((function(e){C.current=e,I()}),[I]),R=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:(0,r.lq)(N,t)})}),[N]),M=(0,fe.useCallback)((function(e){A.current=e,I()}),[I]),P=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:(0,r.lq)(M,t),style:he({},e.style,{position:c,minWidth:"max-content",inset:"0 auto auto 0"})})}),[c,M]),L=(0,fe.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e;return n.size,n.shadowColor,n.bg,n.style,he({},function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,Se),{ref:t,"data-popper-arrow":"",style:De(e)})}),[]),F=(0,fe.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),he({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=S.current)||e.update()},forceUpdate:function(){var e;null==(e=S.current)||e.forceUpdate()},transformOrigin:me.transformOrigin.varRef,referenceRef:N,popperRef:M,getPopperProps:P,getArrowProps:L,getArrowInnerProps:F,getReferenceProps:R}}function De(e){var t=e.size,n=e.shadowColor,r=e.bg,i=he({},e.style,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}},11391:function(e,t,n){"use strict";n.d(t,{Ph:function(){return g}});var r=n(79762),i=n(105),o=n(94244),a=n(44592),s=n(38554),u=n.n(s),c=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=["children","placeholder","className"],h=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"],p=["children"],m=(0,i.Gp)((function(e,t){var n=e.children,r=e.placeholder,o=e.className,s=d(e,f);return c.createElement(i.m$.select,l({},s,{ref:t,className:(0,a.cx)("chakra-select",o)}),r&&c.createElement("option",{value:""},r),n)}));a.Ts&&(m.displayName="SelectField");var g=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Select",e),s=(0,i.Lr)(e),f=s.rootProps,p=s.placeholder,g=s.icon,v=s.color,y=s.height,E=s.h,T=s.minH,x=s.minHeight,_=s.iconColor,w=s.iconSize;s.isFullWidth;var k=d(s,h),C=(0,a.Vl)(k,o.oE),A=C[0],S=C[1],O=(0,r.useFormControl)(S),D={width:"100%",height:"fit-content",position:"relative",color:v},I=u()({paddingEnd:"2rem"},n.field,{_focus:{zIndex:"unset"}});return c.createElement(i.m$.div,l({className:"chakra-select__wrapper",__css:D},A,f),c.createElement(m,l({ref:t,height:null!=E?E:y,minH:null!=T?T:x,placeholder:p},O,{__css:I}),e.children),c.createElement(b,l({"data-disabled":(0,a.PB)(O.disabled)},(_||v)&&{color:_||v},{__css:n.icon},w&&{fontSize:w}),g))}));a.Ts&&(g.displayName="Select");var v=function(e){return c.createElement("svg",l({viewBox:"0 0 24 24"},e),c.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},y=(0,i.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),b=function(e){var t=e.children,n=void 0===t?c.createElement(v,null):t,r=d(e,p),i=c.cloneElement(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return c.createElement(y,l({},r,{className:"chakra-select__icon-wrapper"}),c.isValidElement(n)?i:null)};a.Ts&&(b.displayName="SelectIcon")},80918:function(e,t,n){"use strict";n.d(t,{iR:function(){return F},Ms:function(){return B},gs:function(){return j},Uj:function(){return H}});var r=n(52829),i=n(105),o=n(44592),a=n(70580),s=n(67294),u=n(78698),c=n(97375);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}var h={width:0,height:0};function p(e){var t=e.orientation,n=e.thumbPercents,r=e.thumbRects,i=e.isReversed,o="vertical"===t?r.reduce((function(e,t){return e.height>t.height?e:t}),h):r.reduce((function(e,t){return e.width>t.width?e:t}),h),a=l({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},f({orientation:t,vertical:{paddingLeft:o.width/2,paddingRight:o.width/2},horizontal:{paddingTop:o.height/2,paddingBottom:o.height/2}})),s=l({position:"absolute"},f({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})),u=1===n.length,c=[0,i?100-n[0]:n[0]],d=u?c:n,p=d[0];!u&&i&&(p=100-p);var m=Math.abs(d[d.length-1]-d[0]);return{trackStyle:s,innerTrackStyle:l({},s,f({orientation:t,vertical:i?{height:m+"%",top:p+"%"}:{height:m+"%",bottom:p+"%"},horizontal:i?{width:m+"%",right:p+"%"}:{width:m+"%",left:p+"%"}})),rootStyle:a,getThumbStyle:function(e){return l({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},f({orientation:t,vertical:{bottom:"calc("+n[e]+"% - "+r[e].height/2+"px)"},horizontal:{left:"calc("+n[e]+"% - "+r[e].width/2+"px)"}}))}}}function m(e){var t=e.isReversed,n=e.direction,r=e.orientation;return"ltr"===n||"vertical"===r?t:!t}var g=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange","minStepsBetweenThumbs"],v=["index"],y=["value"],b=["index"];function E(e){var t=e.min,n=void 0===t?0:t,i=e.max,a=void 0===i?100:i,h=e.onChange,E=e.value,x=e.defaultValue,_=e.isReversed,w=e.direction,k=void 0===w?"ltr":w,C=e.orientation,A=void 0===C?"horizontal":C,S=e.id,O=e.isDisabled,D=e.isReadOnly,I=e.onChangeStart,N=e.onChangeEnd,R=e.step,M=void 0===R?1:R,P=e.getAriaValueText,L=e["aria-valuetext"],F=e["aria-label"],j=e["aria-labelledby"],H=e.name,B=e.focusThumbOnChange,z=void 0===B||B,U=e.minStepsBetweenThumbs,V=void 0===U?0:U,G=d(e,g),K=(0,u.u)(I),q=(0,u.u)(N),W=(0,u.u)(P),$=m({isReversed:_,direction:k,orientation:A}),Z=(0,c.Tx)({value:E,defaultValue:null!=x?x:[25,75],onChange:h}),Y=Z[0],X=Z[1];if(!Array.isArray(Y))throw new TypeError("[range-slider] You passed an invalid value for `value` or `defaultValue`, expected `Array` but got `"+typeof Y+"`");var Q=(0,c.kt)(),J=Q[0],ee=Q[1],te=(0,c.kt)(),ne=te[0],re=te[1],ie=(0,s.useState)(-1),oe=ie[0],ae=ie[1],se=(0,s.useRef)(null),ue=!(O||D),ce=(0,s.useRef)(Y),le=Y.map((function(e){return(0,o.HU)(e,n,a)})),de=(0,c.II)(le),fe=T(le,n,a,V*M),he=le.map((function(e){return a-e+n})),pe=($?he:le).map((function(e){return(0,o.Rg)(e,n,a)})),me="vertical"===A,ge=(0,s.useState)(Array.from({length:le.length}).map((function(){return{width:0,height:0}}))),ve=ge[0],ye=ge[1];(0,s.useEffect)((function(){var e;if(Te.current){var t=Array.from(null==(e=Te.current)?void 0:e.querySelectorAll("[role=slider]")).map((function(e){return{width:e.offsetWidth,height:e.offsetHeight}}));t.length&&ye(t)}}),[]);var be,Ee=(0,s.useRef)(null),Te=(0,s.useRef)(null),xe=(0,c.Me)(S),_e={root:"slider-root-"+(be=xe),getThumb:function(e){return"slider-thumb-"+be+"-"+e},getInput:function(e){return"slider-input-"+be+"-"+e},track:"slider-track-"+be,innerTrack:"slider-filled-track-"+be,getMarker:function(e){return"slider-marker-"+be+"-"+e},output:"slider-output-"+be},we=(0,s.useCallback)((function(e){var t,r;if(Ee.current){se.current="pointer";var i=Ee.current.getBoundingClientRect(),s=null!=(t=null==(r=e.touches)?void 0:r[0])?t:e,u=s.clientX,c=s.clientY,l=(me?i.bottom-c:u-i.left)/(me?i.height:i.width);return $&&(l=1-l),(0,o.WS)(l,n,a)}}),[me,$,a,n]),ke=(a-n)/10,Ce=M||(a-n)/100,Ae=(0,s.useMemo)((function(){return{setValueAtIndex:function(e,t){if(ue){var n=fe[e];t=parseFloat((0,o.WP)(t,n.min,Ce)),t=(0,o.HU)(t,n.min,n.max);var r=[].concat(le);r[e]=t,X(r)}},setActiveIndex:ae,stepUp:function(e,t){void 0===t&&(t=Ce);var n=le[e],r=$?n-t:n+t;Ae.setValueAtIndex(e,r)},stepDown:function(e,t){void 0===t&&(t=Ce);var n=le[e],r=$?n+t:n-t;Ae.setValueAtIndex(e,r)},reset:function(){return X(ce.current)}}}),[Ce,le,$,X,ue,fe]),Se=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return Ae.stepUp(oe)},ArrowUp:function(){return Ae.stepUp(oe)},ArrowLeft:function(){return Ae.stepDown(oe)},ArrowDown:function(){return Ae.stepDown(oe)},PageUp:function(){return Ae.stepUp(oe,ke)},PageDown:function(){return Ae.stepDown(oe,ke)},Home:function(){var e=fe[oe].min;Ae.setValueAtIndex(oe,e)},End:function(){var e=fe[oe].max;Ae.setValueAtIndex(oe,e)}}[(0,o.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),se.current="keyboard")}),[Ae,oe,ke,fe]),Oe=(0,s.useMemo)((function(){return p({isReversed:$,orientation:A,thumbRects:ve,thumbPercents:pe})}),[$,A,pe,ve]),De=Oe.getThumbStyle,Ie=Oe.rootStyle,Ne=Oe.trackStyle,Re=Oe.innerTrackStyle,Me=(0,s.useCallback)((function(e){var t=null!=e?e:oe;if(-1!==t&&z){var n,r=_e.getThumb(t),i=null==(n=Te.current)?void 0:n.ownerDocument.getElementById(r);i&&setTimeout((function(){return(0,o.T_)(i)}))}}),[z,oe,_e]);(0,c.rf)((function(){"keyboard"===se.current&&(null==q||q(de.current))}),[le,q]);(0,c.PO)(Te,{onPanSessionStart:function(e){ue&&(ee.on(),function(e){var t=we(e)||0,n=le.map((function(e){return Math.abs(e-t)})),r=Math.min.apply(Math,n),i=n.indexOf(r),o=n.filter((function(e){return e===r}));o.length>1&&t>le[i]&&(i=i+o.length-1),ae(i),Ae.setValueAtIndex(i,t),Me(i)}(e),null==K||K(de.current))},onPanSessionEnd:function(){ue&&(ee.off(),null==q||q(de.current))},onPan:function(e){ue&&function(e){if(-1!=oe){var t=we(e)||0;ae(oe),Ae.setValueAtIndex(oe,t),Me(oe)}}(e)}});var Pe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,G,{id:_e.root,ref:(0,r.lq)(t,Te),tabIndex:-1,"aria-disabled":(0,o.Qm)(O),"data-focused":(0,o.PB)(ne),style:l({},e.style,Ie)})}),[G,O,ne,Ie,_e]),Le=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,Ee),id:_e.track,"data-disabled":(0,o.PB)(O),style:l({},e.style,Ne)})}),[O,Ne,_e]),Fe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:_e.innerTrack,style:l({},e.style,Re)})}),[Re,_e]),je=(0,s.useCallback)((function(e,t){var n;void 0===t&&(t=null);var r=e.index,i=d(e,v),a=le[r];if(null==a)throw new TypeError("[range-slider > thumb] Cannot find value at index `"+r+"`. The `value` or `defaultValue` length is : "+le.length);var s=fe[r];return l({},i,{ref:t,role:"slider",tabIndex:ue?0:void 0,id:_e.getThumb(r),"data-active":(0,o.PB)(J&&oe===r),"aria-valuetext":null!=(n=null==W?void 0:W(a))?n:null==L?void 0:L[r],"aria-valuemin":s.min,"aria-valuemax":s.max,"aria-valuenow":a,"aria-orientation":A,"aria-disabled":(0,o.Qm)(O),"aria-readonly":(0,o.Qm)(D),"aria-label":null==F?void 0:F[r],"aria-labelledby":null!=F&&F[r]||null==j?void 0:j[r],style:l({},e.style,De(r)),onKeyDown:(0,o.v0)(e.onKeyDown,Se),onFocus:(0,o.v0)(e.onFocus,(function(){re.on(),ae(r)})),onBlur:(0,o.v0)(e.onBlur,(function(){re.off(),ae(-1)}))})}),[_e,le,fe,ue,J,oe,W,L,A,O,D,F,j,De,Se,re]),He=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:_e.output,htmlFor:le.map((function(e,t){return _e.getThumb(t)})).join(" "),"aria-live":"off"})}),[_e,le]),Be=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e,i=r.value,s=d(r,y),u=!(i<n||i>a),c=i>=le[0]&&i<=le[le.length-1],h=(0,o.Rg)(i,n,a),p=l({position:"absolute",pointerEvents:"none"},f({orientation:A,vertical:{bottom:(h=$?100-h:h)+"%"},horizontal:{left:h+"%"}}));return l({},s,{ref:t,id:_e.getMarker(e.value),role:"presentation","aria-hidden":!0,"data-disabled":(0,o.PB)(O),"data-invalid":(0,o.PB)(!u),"data-highlighted":(0,o.PB)(c),style:l({},e.style,p)})}),[O,$,a,n,A,le,_e]),ze=(0,s.useCallback)((function(e,t){void 0===t&&(t=null);var n=e.index;return l({},d(e,b),{ref:t,id:_e.getInput(n),type:"hidden",value:le[n],name:Array.isArray(H)?H[n]:H+"-"+n})}),[H,le,_e]);return{state:{value:le,isFocused:ne,isDragging:J,getThumbPercent:function(e){return pe[e]},getThumbMinValue:function(e){return fe[e].min},getThumbMaxValue:function(e){return fe[e].max}},actions:Ae,getRootProps:Pe,getTrackProps:Le,getInnerTrackProps:Fe,getThumbProps:je,getMarkerProps:Be,getInputProps:ze,getOutputProps:He}}var T=function(e,t,n,r){return e.map((function(i,o){return{min:0===o?t:e[o-1]+r,max:o===e.length-1?n:e[o+1]-r}}))},x=["getRootProps"],_=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),w=_[0],k=_[1],C=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Slider",e),r=(0,i.Lr)(e),o=(0,i.Fg)().direction;r.direction=o;var a=E(r),u=a.getRootProps,c=d(a,x),f=s.useMemo((function(){return l({},c,{name:e.name})}),[c,e.name]);return s.createElement(w,{value:f},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,l({},u({},t),{className:"chakra-slider",__css:n.container}),e.children)))}));C.defaultProps={orientation:"horizontal"},o.Ts&&(C.displayName="RangeSlider");var A=(0,i.Gp)((function(e,t){var n=k(),r=n.getThumbProps,a=n.getInputProps,u=n.name,c=(0,i.yK)(),d=r(e,t);return s.createElement(i.m$.div,l({},d,{className:(0,o.cx)("chakra-slider__thumb",e.className),__css:c.thumb}),d.children,u&&s.createElement("input",a({index:e.index})))}));o.Ts&&(A.displayName="RangeSliderThumb");var S=(0,i.Gp)((function(e,t){var n=k().getTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__track",e.className),__css:r.track,"data-testid":"chakra-range-slider-track"}))}));o.Ts&&(S.displayName="RangeSliderTrack");var O=(0,i.Gp)((function(e,t){var n=k().getInnerTrackProps,r=(0,i.yK)(),o=n(e,t);return s.createElement(i.m$.div,l({},o,{className:"chakra-slider__filled-track",__css:r.filledTrack}))}));o.Ts&&(O.displayName="RangeSliderFilledTrack");var D=(0,i.Gp)((function(e,t){var n=(0,k().getMarkerProps)(e,t);return s.createElement(i.m$.div,l({},n,{className:(0,o.cx)("chakra-slider__marker",e.className)}))}));o.Ts&&(D.displayName="RangeSliderMark");var I=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"];function N(e,t){return t<e?e:e+(t-e)/2}var R=["getInputProps","getRootProps"],M=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />"}),P=M[0],L=M[1],F=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Slider",e),f=(0,i.Lr)(e),h=(0,i.Fg)().direction;f.direction=h;var g=function(e){var t,n=e.min,i=void 0===n?0:n,f=e.max,h=void 0===f?100:f,g=e.onChange,v=e.value,y=e.defaultValue,b=e.isReversed,E=e.direction,T=void 0===E?"ltr":E,x=e.orientation,_=void 0===x?"horizontal":x,w=e.id,k=e.isDisabled,C=e.isReadOnly,A=e.onChangeStart,S=e.onChangeEnd,O=e.step,D=void 0===O?1:O,R=e.getAriaValueText,M=e["aria-valuetext"],P=e["aria-label"],L=e["aria-labelledby"],F=e.name,j=e.focusThumbOnChange,H=void 0===j||j,B=d(e,I),z=(0,u.u)(A),U=(0,u.u)(S),V=(0,u.u)(R),G=m({isReversed:b,direction:T,orientation:_}),K=(0,c.Tx)({value:v,defaultValue:null!=y?y:N(i,h),onChange:g}),q=K[0],W=K[1],$=(0,c.kt)(),Z=$[0],Y=$[1],X=(0,c.kt)(),Q=X[0],J=X[1],ee=(0,s.useRef)(null),te=!(k||C),ne=(0,o.HU)(q,i,h),re=(0,c.II)(ne),ie=(0,s.useRef)(re.current),oe=G?h-ne+i:ne,ae=(0,o.Rg)(oe,i,h),se="vertical"===_,ue=(0,s.useRef)(null),ce=(0,s.useRef)(null),le=(0,s.useRef)(null),de=(0,c.ZS)(w,"slider-thumb","slider-track"),fe=de[0],he=de[1],pe=(0,s.useCallback)((function(e){var t,n;if(ue.current){ee.current="pointer";var r=(0,a.iz)(ue.current).borderBox,s=null!=(t=null==(n=e.touches)?void 0:n[0])?t:e,u=s.clientX,c=s.clientY,l=(se?r.bottom-c:u-r.left)/(se?r.height:r.width);G&&(l=1-l);var d=(0,o.WS)(l,i,h);return D&&(d=parseFloat((0,o.WP)(d,i,D))),(0,o.HU)(d,i,h)}}),[se,G,h,i,D]),me=(h-i)/10,ge=D||(h-i)/100,ve=(0,s.useCallback)((function(e){te&&(e=parseFloat((0,o.WP)(e,i,ge)),e=(0,o.HU)(e,i,h),W(e))}),[ge,h,i,W,te]),ye=(0,s.useMemo)((function(){return{stepUp:function(e){void 0===e&&(e=ge),ve(G?ne-e:ne+e)},stepDown:function(e){void 0===e&&(e=ge),ve(G?ne+e:ne-e)},reset:function(){return ve(y||0)},stepTo:function(e){return ve(e)}}}),[ve,G,ne,ge,y]),be=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return ye.stepUp()},ArrowUp:function(){return ye.stepUp()},ArrowLeft:function(){return ye.stepDown()},ArrowDown:function(){return ye.stepDown()},PageUp:function(){return ye.stepUp(me)},PageDown:function(){return ye.stepDown(me)},Home:function(){return ve(i)},End:function(){return ve(h)}}[(0,o.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),ee.current="keyboard")}),[ye,ve,h,i,me]),Ee=null!=(t=null==V?void 0:V(ne))?t:M,Te=(0,c.Di)(ce),xe=(0,s.useMemo)((function(){var e,t=null!=(e=null==Te?void 0:Te.borderBox)?e:{width:0,height:0};return p({isReversed:G,orientation:_,thumbRects:[t],thumbPercents:[ae]})}),[G,_,null==Te?void 0:Te.borderBox,ae]),_e=xe.getThumbStyle,we=xe.rootStyle,ke=xe.trackStyle,Ce=xe.innerTrackStyle,Ae=(0,s.useCallback)((function(){ce.current&&H&&setTimeout((function(){return(0,o.T_)(ce.current)}))}),[H]);(0,c.rf)((function(){Ae(),"keyboard"===ee.current&&(null==U||U(re.current))}),[ne,U]);var Se=function(e){var t=pe(e);null!=t&&t!==re.current&&W(t)};(0,c.PO)(le,{onPanSessionStart:function(e){te&&(Y.on(),Ae(),Se(e),null==z||z(re.current))},onPanSessionEnd:function(){te&&(Y.off(),null==U||U(re.current),ie.current=re.current)},onPan:function(e){te&&Se(e)}});var Oe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,B,{ref:(0,r.lq)(t,le),tabIndex:-1,"aria-disabled":(0,o.Qm)(k),"data-focused":(0,o.PB)(Q),style:l({},e.style,we)})}),[B,k,Q,we]),De=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ue),id:he,"data-disabled":(0,o.PB)(k),style:l({},e.style,ke)})}),[k,he,ke]),Ie=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,style:l({},e.style,Ce)})}),[Ce]),Ne=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ce),role:"slider",tabIndex:te?0:void 0,id:fe,"data-active":(0,o.PB)(Z),"aria-valuetext":Ee,"aria-valuemin":i,"aria-valuemax":h,"aria-valuenow":ne,"aria-orientation":_,"aria-disabled":(0,o.Qm)(k),"aria-readonly":(0,o.Qm)(C),"aria-label":P,"aria-labelledby":P?void 0:L,style:l({},e.style,_e(0)),onKeyDown:(0,o.v0)(e.onKeyDown,be),onFocus:(0,o.v0)(e.onFocus,J.on),onBlur:(0,o.v0)(e.onBlur,J.off)})}),[te,fe,Z,Ee,i,h,ne,_,k,C,P,L,_e,be,J.on,J.off]),Re=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=!(e.value<i||e.value>h),r=ne>=e.value,a=(0,o.Rg)(e.value,i,h),s=l({position:"absolute",pointerEvents:"none"},function(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}({orientation:_,vertical:{bottom:G?100-a+"%":a+"%"},horizontal:{left:G?100-a+"%":a+"%"}}));return l({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,o.PB)(k),"data-invalid":(0,o.PB)(!n),"data-highlighted":(0,o.PB)(r),style:l({},e.style,s)})}),[k,G,h,i,_,ne]),Me=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,type:"hidden",value:ne,name:F})}),[F,ne]);return{state:{value:ne,isFocused:Q,isDragging:Z},actions:ye,getRootProps:Oe,getTrackProps:De,getInnerTrackProps:Ie,getThumbProps:Ne,getMarkerProps:Re,getInputProps:Me}}(f),v=g.getInputProps,y=g.getRootProps,b=d(g,R),E=y(),T=v({},t);return s.createElement(P,{value:b},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,l({},E,{className:(0,o.cx)("chakra-slider",e.className),__css:n.container}),e.children,s.createElement("input",T))))}));F.defaultProps={orientation:"horizontal"},o.Ts&&(F.displayName="Slider");var j=(0,i.Gp)((function(e,t){var n=L().getThumbProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__thumb",e.className),__css:r.thumb}))}));o.Ts&&(j.displayName="SliderThumb");var H=(0,i.Gp)((function(e,t){var n=L().getTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__track",e.className),__css:r.track}))}));o.Ts&&(H.displayName="SliderTrack");var B=(0,i.Gp)((function(e,t){var n=L().getInnerTrackProps,r=(0,i.yK)(),a=n(e,t);return s.createElement(i.m$.div,l({},a,{className:(0,o.cx)("chakra-slider__filled-track",e.className),__css:r.filledTrack}))}));o.Ts&&(B.displayName="SliderFilledTrack");var z=(0,i.Gp)((function(e,t){var n=(0,L().getMarkerProps)(e,t);return s.createElement(i.m$.div,l({},n,{className:(0,o.cx)("chakra-slider__marker",e.className)}))}));o.Ts&&(z.displayName="SliderMark")},88696:function(e,t,n){"use strict";n.d(t,{r:function(){return I}});var r=n(44592),i=n(52829),o=n(67294),a=n(97375),s=n(78698),u=n(105),c=n(99860),l=n(53869),d=n(1358);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=(0,i.kr)({name:"CheckboxGroupContext",strict:!1}),p=(h[0],h[1]);function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}r.Ts;var g=["isIndeterminate","isChecked"],v="custom"in c.E?c.E.custom(u.m$.svg):(0,c.E)(u.m$.svg),y=function(e){return o.createElement(v,f({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),o.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},b=function(e){return o.createElement(v,f({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),o.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},E=function(e){var t=e.open,n=e.children;return o.createElement(l.M,{initial:!1},t&&o.createElement(c.E.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},T=function(e){var t=e.isIndeterminate,n=e.isChecked,r=m(e,g),i=t?b:y;return o.createElement(E,{open:n||t},o.createElement(i,r))},x=["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isIndeterminate","isInvalid","name","value","id","onBlur","onFocus","tabIndex","aria-label","aria-labelledby","aria-invalid","aria-describedby"];function _(e){void 0===e&&(e={});var t=e,n=t.defaultIsChecked,u=t.defaultChecked,c=void 0===u?n:u,l=t.isChecked,h=t.isFocusable,p=t.isDisabled,g=t.isReadOnly,v=t.isRequired,y=t.onChange,b=t.isIndeterminate,E=t.isInvalid,T=t.name,_=t.value,k=t.id,C=t.onBlur,A=t.onFocus,S=t.tabIndex,O=void 0===S?void 0:S,D=t["aria-label"],I=t["aria-labelledby"],N=t["aria-invalid"],R=t["aria-describedby"],M=m(t,x),P=(0,s.u)(y),L=(0,s.u)(C),F=(0,s.u)(A),j=(0,a.kt)(),H=j[0],B=j[1],z=(0,a.kt)(),U=z[0],V=z[1],G=(0,a.kt)(),K=G[0],q=G[1],W=(0,o.useRef)(null),$=(0,o.useState)(!0),Z=$[0],Y=$[1],X=(0,o.useState)(!!c),Q=X[0],J=X[1],ee=(0,a.pY)(l,Q),te=ee[0],ne=ee[1];(0,r.ZK)({condition:!!n,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var re=(0,o.useCallback)((function(e){g||p?e.preventDefault():(te||J(ne?e.target.checked:!!b||e.target.checked),null==P||P(e))}),[g,p,ne,te,b,P]);(0,s.a)((function(){W.current&&(W.current.indeterminate=Boolean(b))}),[b]),(0,a.rf)((function(){p&&B.off()}),[p,B]);var ie=p&&!h,oe=(0,o.useCallback)((function(e){" "===e.key&&q.on()}),[q]),ae=(0,o.useCallback)((function(e){" "===e.key&&q.off()}),[q]);(0,s.a)((function(){W.current&&(W.current.checked!==ne&&J(W.current.checked))}),[W.current]);var se=(0,o.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return f({},e,{ref:t,"data-active":(0,r.PB)(K),"data-hover":(0,r.PB)(U),"data-checked":(0,r.PB)(ne),"data-focus":(0,r.PB)(H),"data-indeterminate":(0,r.PB)(b),"data-disabled":(0,r.PB)(p),"data-invalid":(0,r.PB)(E),"data-readonly":(0,r.PB)(g),"aria-hidden":!0,onMouseDown:(0,r.v0)(e.onMouseDown,(function(e){e.preventDefault(),q.on()})),onMouseUp:(0,r.v0)(e.onMouseUp,q.off),onMouseEnter:(0,r.v0)(e.onMouseEnter,V.on),onMouseLeave:(0,r.v0)(e.onMouseLeave,V.off)})}),[K,ne,p,H,U,b,E,g,q,V.off,V.on]),ue=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},M,e,{ref:(0,i.lq)(t,(function(e){e&&Y("LABEL"===e.tagName)})),onClick:(0,r.v0)(e.onClick,(function(){var e;Z||(null==(e=W.current)||e.click(),(0,r.T_)(W.current,{nextTick:!0}))})),"data-disabled":(0,r.PB)(p),"data-checked":(0,r.PB)(ne),"data-invalid":(0,r.PB)(E)})}),[M,p,ne,E,Z]),ce=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},e,{ref:(0,i.lq)(W,t),type:"checkbox",name:T,value:_,id:k,tabIndex:O,onChange:(0,r.v0)(e.onChange,re),onBlur:(0,r.v0)(e.onBlur,L,B.off),onFocus:(0,r.v0)(e.onFocus,F,B.on),onKeyDown:(0,r.v0)(e.onKeyDown,oe),onKeyUp:(0,r.v0)(e.onKeyUp,ae),required:v,checked:ne,disabled:ie,readOnly:g,"aria-label":D,"aria-labelledby":I,"aria-invalid":N?Boolean(N):E,"aria-describedby":R,"aria-disabled":p,style:d.NL})}),[T,_,k,re,B.off,B.on,L,F,oe,ae,v,ne,ie,g,D,I,N,E,R,p,O]),le=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),f({},e,{ref:t,onMouseDown:(0,r.v0)(e.onMouseDown,w),onTouchStart:(0,r.v0)(e.onTouchStart,w),"data-disabled":(0,r.PB)(p),"data-checked":(0,r.PB)(ne),"data-invalid":(0,r.PB)(E)})}),[ne,p,E]);return{state:{isInvalid:E,isFocused:H,isChecked:ne,isActive:K,isHovered:U,isIndeterminate:b,isDisabled:p,isReadOnly:g,isRequired:v},getRootProps:ue,getCheckboxProps:se,getInputProps:ce,getLabelProps:le,htmlProps:M}}function w(e){e.preventDefault(),e.stopPropagation()}var k=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange"],C=(0,u.m$)("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),A=(0,u.m$)("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative",_disabled:{cursor:"not-allowed"}}}),S=(0,u.Gp)((function(e,t){var n=p(),i=f({},n,e),a=(0,u.jC)("Checkbox",i),s=(0,u.Lr)(e),c=s.spacing,l=void 0===c?"0.5rem":c,d=s.className,h=s.children,g=s.iconColor,v=s.iconSize,y=s.icon,b=void 0===y?o.createElement(T,null):y,E=s.isChecked,x=s.isDisabled,w=void 0===x?null==n?void 0:n.isDisabled:x,S=s.onChange,O=m(s,k),D=E;null!=n&&n.value&&s.value&&(D=n.value.includes(s.value));var I=S;null!=n&&n.onChange&&s.value&&(I=(0,r.PP)(n.onChange,S));var N=_(f({},O,{isDisabled:w,isChecked:D,onChange:I})),R=N.state,M=N.getInputProps,P=N.getCheckboxProps,L=N.getLabelProps,F=N.getRootProps,j=o.useMemo((function(){return f({opacity:R.isChecked||R.isIndeterminate?1:0,transform:R.isChecked||R.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:v,color:g},a.icon)}),[g,v,R.isChecked,R.isIndeterminate,a.icon]),H=o.cloneElement(b,{__css:j,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return o.createElement(A,f({__css:a.container,className:(0,r.cx)("chakra-checkbox",d)},F()),o.createElement("input",f({className:"chakra-checkbox__input"},M({},t))),o.createElement(C,f({__css:a.control,className:"chakra-checkbox__control"},P()),H),h&&o.createElement(u.m$.span,f({className:"chakra-checkbox__label"},L(),{__css:f({marginStart:l},a.label)}),h))}));function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}r.Ts&&(S.displayName="Checkbox");var D=["spacing","children"],I=(0,u.Gp)((function(e,t){var n=(0,u.jC)("Switch",e),i=(0,u.Lr)(e),a=i.spacing,s=void 0===a?"0.5rem":a,c=i.children,l=_(function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,D)),d=l.state,f=l.getInputProps,h=l.getCheckboxProps,p=l.getRootProps,m=l.getLabelProps,g=o.useMemo((function(){return O({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:"normal"},n.container)}),[n.container]),v=o.useMemo((function(){return O({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)}),[n.track]),y=o.useMemo((function(){return O({userSelect:"none",marginStart:s},n.label)}),[s,n.label]);return o.createElement(u.m$.label,O({},p(),{className:(0,r.cx)("chakra-switch",e.className),__css:g}),o.createElement("input",O({className:"chakra-switch__input"},f({},t))),o.createElement(u.m$.span,O({},h(),{className:"chakra-switch__track",__css:v}),o.createElement(u.m$.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":(0,r.PB)(d.isChecked),"data-hover":(0,r.PB)(d.isHovered)})),c&&o.createElement(u.m$.span,O({className:"chakra-switch__label"},m(),{__css:y}),c))}));r.Ts&&(I.displayName="Switch")},96356:function(e,t,n){"use strict";n.r(t),n.d(t,{Tag:function(){return c},TagCloseButton:function(){return p},TagLabel:function(){return l},TagLeftIcon:function(){return d},TagRightIcon:function(){return f}});var r=n(10894),i=n(105),o=n(44592),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=["isDisabled","children"],c=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Tag",e),r=(0,i.Lr)(e),o=s({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return a.createElement(i.Fo,{value:n},a.createElement(i.m$.span,s({ref:t},r,{__css:o})))}));o.Ts&&(c.displayName="Tag");var l=(0,i.Gp)((function(e,t){var n=(0,i.yK)();return a.createElement(i.m$.span,s({ref:t,isTruncated:!0},e,{__css:n.label}))}));o.Ts&&(l.displayName="TagLabel");var d=(0,i.Gp)((function(e,t){return a.createElement(r.JO,s({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))}));o.Ts&&(d.displayName="TagLeftIcon");var f=(0,i.Gp)((function(e,t){return a.createElement(r.JO,s({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))}));o.Ts&&(f.displayName="TagRightIcon");var h=function(e){return a.createElement(r.JO,s({verticalAlign:"inherit",viewBox:"0 0 512 512"},e),a.createElement("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}))};o.Ts&&(h.displayName="TagCloseIcon");var p=function(e){var t=e.isDisabled,n=e.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,u),o=s({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,i.yK)().closeButton);return a.createElement(i.m$.button,s({},r,{type:"button","aria-label":"close",disabled:t,__css:o}),n||a.createElement(h,null))};o.Ts&&(p.displayName="TagCloseButton")},47398:function(e,t,n){"use strict";n.d(t,{u:function(){return E}});var r=n(66197),i=n(46871),o=n(105),a=n(44592),s=n(1358),u=n(99860),c=n(53869),l=n(67294),d=n(97375),f=n(78698),h=n(52829);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var g={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},v=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"];var y=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"],b=(0,o.m$)(u.E.div),E=(0,o.Gp)((function(e,t){var n=(0,o.mq)("Tooltip",e),u=(0,o.Lr)(e),E=(0,o.Fg)(),T=u.children,x=u.label,_=u.shouldWrapChildren,w=u["aria-label"],k=u.hasArrow,C=u.bg,A=u.portalProps,S=m(u,y);C&&(n.bg=C,n[r.j.arrowBg.var]=(0,a.K1)(E,"colors",C));var O,D=function(e){void 0===e&&(e={});var t=e,n=t.openDelay,i=void 0===n?0:n,o=t.closeDelay,s=void 0===o?0:o,u=t.closeOnClick,c=void 0===u||u,g=t.closeOnMouseDown,y=t.onOpen,b=t.onClose,E=t.placement,T=t.id,x=t.isOpen,_=t.defaultIsOpen,w=t.arrowSize,k=void 0===w?10:w,C=t.arrowShadowColor,A=t.arrowPadding,S=t.modifiers,O=t.isDisabled,D=t.gutter,I=t.offset,N=t.direction,R=m(t,v),M=(0,d.qY)({isOpen:x,defaultIsOpen:_,onOpen:y,onClose:b}),P=M.isOpen,L=M.onOpen,F=M.onClose,j=(0,r.D)({enabled:P,placement:E,arrowPadding:A,modifiers:S,gutter:D,offset:I,direction:N}),H=j.referenceRef,B=j.getPopperProps,z=j.getArrowInnerProps,U=j.getArrowProps,V=(0,d.Me)(T,"tooltip"),G=l.useRef(null),K=l.useRef(),q=l.useRef(),W=l.useCallback((function(){O||(K.current=window.setTimeout(L,i))}),[O,L,i]),$=l.useCallback((function(){K.current&&clearTimeout(K.current),q.current=window.setTimeout(F,s)}),[s,F]),Z=l.useCallback((function(){c&&$()}),[c,$]),Y=l.useCallback((function(){g&&$()}),[g,$]),X=l.useCallback((function(e){P&&"Escape"===e.key&&$()}),[P,$]);(0,f.b)("keydown",X),l.useEffect((function(){return function(){clearTimeout(K.current),clearTimeout(q.current)}}),[]),(0,f.b)("mouseleave",$,(function(){return G.current}));var Q=l.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:(0,h.lq)(G,t,H),onMouseEnter:(0,a.v0)(e.onMouseEnter,W),onClick:(0,a.v0)(e.onClick,Z),onMouseDown:(0,a.v0)(e.onMouseDown,Y),onFocus:(0,a.v0)(e.onFocus,W),onBlur:(0,a.v0)(e.onBlur,$),"aria-describedby":P?V:void 0})}),[W,$,Y,P,V,Z,H]),J=l.useCallback((function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),B(p({},e,{style:p({},e.style,(n={},n[r.j.arrowSize.var]=k?(0,a.px)(k):void 0,n[r.j.arrowShadowColor.var]=C,n))}),t)}),[B,k,C]),ee=l.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({ref:t},R,e,{id:V,role:"tooltip",style:p({},e.style,{position:"relative",transformOrigin:r.j.transformOrigin.varRef})})}),[R,V]);return{isOpen:P,show:W,hide:$,getTriggerProps:Q,getTooltipProps:ee,getTooltipPositionerProps:J,getArrowProps:U,getArrowInnerProps:z}}(p({},S,{direction:E.direction}));if((0,a.HD)(T)||_)O=l.createElement(o.m$.span,p({tabIndex:0},D.getTriggerProps()),T);else{var I=l.Children.only(T);O=l.cloneElement(I,D.getTriggerProps(I.props,I.ref))}var N=!!w,R=D.getTooltipProps({},t),M=N?(0,a.CE)(R,["role","id"]):R,P=(0,a.ei)(R,["role","id"]);return x?l.createElement(l.Fragment,null,O,l.createElement(c.M,null,D.isOpen&&l.createElement(i.h_,A,l.createElement(o.m$.div,p({},D.getTooltipPositionerProps(),{__css:{zIndex:n.zIndex,pointerEvents:"none"}}),l.createElement(b,p({variants:g},M,{initial:"exit",animate:"enter",exit:"exit",__css:n}),x,N&&l.createElement(s.TX,P,w),k&&l.createElement(o.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},l.createElement(o.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):l.createElement(l.Fragment,null,T)}));a.Ts&&(E.displayName="Tooltip")},37496:function(e,t,n){"use strict";n.d(t,{UO:function(){return _},Mi:function(){return R},uf:function(){return k},Qh:function(){return S},Xc:function(){return P}});var r=n(44592),i=n(38554),o=n.n(i),a=n(53869),s=n(99860),u=n(67294);function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},f={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},h={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},p={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},m={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function g(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":return h;case"left":return f;case"bottom":return m;case"top":return p;default:return h}}var v={enter:{duration:.2,ease:d.easeOut},exit:{duration:.1,ease:d.easeIn}},y=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter})},b=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})},E=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],T={exit:{height:{duration:.2,ease:d.ease},opacity:{duration:.3,ease:d.ease}},enter:{height:{duration:.3,ease:d.ease},opacity:{duration:.4,ease:d.ease}}},x={exit:function(e){var t,n,r=e.animateOpacity,i=e.startingHeight,o=e.transition,a=e.transitionEnd,s=e.delay;return l({},r&&{opacity:(n=i,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:i,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:b(T.exit,s)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,i=e.transition,o=e.transitionEnd,a=e.delay;return l({},n&&{opacity:1},{height:r,transitionEnd:null==o?void 0:o.enter,transition:null!=(t=null==i?void 0:i.enter)?t:y(T.enter,a)})}},_=u.forwardRef((function(e,t){var n=e.in,i=e.unmountOnExit,d=e.animateOpacity,f=void 0===d||d,h=e.startingHeight,p=void 0===h?0:h,m=e.endingHeight,g=void 0===m?"auto":m,v=e.style,y=e.className,b=e.transition,T=e.transitionEnd,_=c(e,E),w=u.useState(!1),k=w[0],C=w[1];u.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,r.ZK)({condition:Boolean(p>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var A=parseFloat(p.toString())>0,S={startingHeight:p,endingHeight:g,animateOpacity:f,transition:k?b:{enter:{duration:0}},transitionEnd:o()(T,{enter:{overflow:"initial"},exit:i?void 0:{display:A?"block":"none"}})},O=!i||n,D=n||i?"enter":"exit";return u.createElement(a.M,{initial:!1,custom:S},O&&u.createElement(s.E.div,l({ref:t},_,{className:(0,r.cx)("chakra-collapse",y),style:l({overflow:"hidden",display:"block"},v),custom:S,variants:x,initial:!!i&&"exit",animate:D,exit:"exit"})))}));r.Ts&&(_.displayName="Collapse");var w=["unmountOnExit","in","className","transition","transitionEnd","delay"],k={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(v.enter,o),transitionEnd:null==i?void 0:i.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:b(v.exit,o),transitionEnd:null==i?void 0:i.exit}}}},C=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.className,d=e.transition,f=e.transitionEnd,h=e.delay,p=c(e,w),m=i||n?"enter":"exit",g=!n||i&&n,v={transition:d,transitionEnd:f,delay:h};return u.createElement(a.M,{custom:v},g&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-fade",o),custom:v},k,{animate:m},p)))}));r.Ts&&(C.displayName="Fade");var A=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],S={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(e){var t,n=e.reverse,r=e.initialScale,i=e.transition,o=e.transitionEnd,a=e.delay;return l({opacity:0},n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:l({scale:r},null==o?void 0:o.exit)},{transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,i=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(v.enter,i),transitionEnd:null==n?void 0:n.enter}}}},O=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.initialScale,h=void 0===f?.95:f,p=e.className,m=e.transition,g=e.transitionEnd,v=e.delay,y=c(e,A),b=!n||i&&n,E=i||n?"enter":"exit",T={initialScale:h,reverse:d,transition:m,transitionEnd:g,delay:v};return u.createElement(a.M,{custom:T},b&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",p)},S,{animate:E,custom:T},y)))}));r.Ts&&(O.displayName="ScaleFade");var D=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],I={exit:{duration:.15,ease:d.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},N={exit:function(e){var t,n=e.direction,r=e.transition,i=e.transitionEnd,o=e.delay;return l({},g({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:b(I.exit,o),transitionEnd:null==i?void 0:i.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,i=e.transition,o=e.delay;return l({},g({direction:n}).enter,{transition:null!=(t=null==i?void 0:i.enter)?t:y(I.enter,o),transitionEnd:null==r?void 0:r.enter})}},R=u.forwardRef((function(e,t){var n=e.direction,i=void 0===n?"right":n,o=e.style,d=e.unmountOnExit,f=e.in,h=e.className,p=e.transition,m=e.transitionEnd,v=e.delay,y=c(e,D),b=g({direction:i}),E=Object.assign({position:"fixed"},b.position,o),T=!d||f&&d,x=f||d?"enter":"exit",_={transitionEnd:m,transition:p,direction:i,delay:v};return u.createElement(a.M,{custom:_},T&&u.createElement(s.E.div,l({},y,{ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",h),animate:x,exit:"exit",custom:_,variants:N,style:E})))}));r.Ts&&(R.displayName="Slide");var M=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],P={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(e){var t,n=e.offsetX,r=e.offsetY,i=e.transition,o=e.transitionEnd,a=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,i=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:y(v.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,i=e.transition,o=e.transitionEnd,a=e.reverse,s=e.delay,u={x:r,y:n};return l({opacity:0,transition:null!=(t=null==i?void 0:i.exit)?t:b(v.exit,s)},a?l({},u,{transitionEnd:null==o?void 0:o.exit}):{transitionEnd:l({},u,null==o?void 0:o.exit)})}}},L=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.className,h=e.offsetX,p=void 0===h?0:h,m=e.offsetY,g=void 0===m?8:m,v=e.transition,y=e.transitionEnd,b=e.delay,E=c(e,M),T=!n||i&&n,x=i||n?"enter":"exit",_={offsetX:p,offsetY:g,reverse:d,transition:v,transitionEnd:y,delay:b};return u.createElement(a.M,{custom:_},T&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",f),custom:_},P,{animate:x},E)))}));r.Ts&&(L.displayName="SlideFade")},1358:function(e,t,n){"use strict";n.d(t,{TX:function(){return a},NL:function(){return o}});var r=n(105),i=n(44592),o={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:o});i.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:o});i.Ts&&(s.displayName="VisuallyHiddenInput")},46600:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},27549:function(e,t,n){"use strict";n.d(t,{_7:function(){return g}});var r=n(67294);var i=function(e){(0,r.useEffect)((function(){e()}),[])};var o=function(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var a=function(e){var t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)((function(){return function(){t.current()}}),[])};"undefined"!==typeof window&&"undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t};function l(e,t){for(var n=0;n<e.length&&n<t.length;n++)if(!c(t[n],e[n]))return!1;return!0}var d=function(e){var t=(0,r.useRef)(e);return t.current=e,t};var f=function(e){var t=d(e),n=(0,r.useRef)();return void 0===n.current&&(n.current=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(this,n)}),n.current};function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var i,o=!1,s=!0;"number"===typeof n?i=n:"object"===h(n)&&n&&("wait"in n&&(i=+n.wait),"leading"in n&&(o=!!n.leading),"trailing"in n&&(s=!!n.trailing));var u=(0,r.useRef)(),c=(0,r.useRef)(),l=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),m=(0,r.useRef)(),g=f((function(){var n=Date.now(),r=n-p.current,o=n-m.current;if(d.current&&clearTimeout(d.current),r>=i||e&&o>=i)d.current=void 0,p.current=void 0,s&&c.current&&(m.current=n,l.current=t.apply(u.current,c.current));else{var a=i-r,f=i-o,h=e?Math.min(a,f):a;d.current=setTimeout(g,h)}})),v=f((function(){var e=Date.now(),n=p.current;u.current=this;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return c.current=a,p.current=e,(void 0===n||e-n>=i)&&void 0===d.current&&(m.current=e,d.current=setTimeout(g,i),o&&(l.current=t.apply(u.current,c.current))),l.current})),y=(0,r.useCallback)((function(){void 0!==d.current&&(clearTimeout(d.current),d.current=void 0),u.current=void 0,c.current=void 0,p.current=void 0,m.current=void 0}),[]),b=f((function(){return void 0!==d.current&&c.current&&(l.current=t.apply(u.current,c.current),y()),l.current}));return a(y),[v,{flush:b,cancel:y}]}};var m=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e);return function(e,n){var i=d(e),a=u((0,r.useState)(e),2),s=a[0],l=a[1],h=(0,r.useRef)(s);function p(e){c(h.current,e)||(h.current=e,l(e))}var m=u(t(p,n),2),g=m[0],v=m[1].cancel,y=f((function(e){v(),p(arguments.length>0?e:i.current)}));return o((function(){g(e)}),[e]),[s,{flush:y,cancel:v}]}};m(!1),m(!0),p(!1),p(!0);"undefined"!==typeof window&&window.requestIdleCallback&&window.cancelIdleCallback&&(window.requestIdleCallback,window.cancelIdleCallback);var g=function(e,t){var n,i;"number"===typeof t?n=t:"object"===h(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(i=t.algorithm));var o=(0,r.useRef)(),s=(0,r.useRef)(),u=f(e),c=f((function(e){void 0===s.current&&(s.current=e);var t=e-s.current,r=n>0?t/n:1;r<0&&(r=0),r>1&&(r=1),r<1&&(o.current=requestAnimationFrame(c)),u(i?i(r):r)})),l=(0,r.useCallback)((function(){void 0!==o.current&&(cancelAnimationFrame(o.current),o.current=void 0),s.current=void 0}),[]),d=f((function(){l(),o.current=requestAnimationFrame(c)}));return a(l),[d,l]};var v=function(){var e=(0,r.useRef)(!1);return i((function(){e.current=!0})),e};var y=function(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(e);return n.current=t.current,t.current=e,n};var b=function(e,t,n,i){var o,a,s;"boolean"===typeof i?o=i:"object"===h(i)&&null!==i&&("capture"in i&&(o=!!i.capture),"once"in i&&(a=!!i.once),"passive"in i&&(s=!!i.passive));var u=f(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,u,{capture:o,once:a,passive:s}),function(){e.removeEventListener(t,u,{capture:o})}}),[e,t,u,o,a,s])};"undefined"!==typeof window&&"undefined"!==typeof window.navigator&&window.navigator.onLine;var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=v(),i=y(t),o=(0,r.useRef)();return n.current&&l(i.current,t)||(o.current=e()),o.current},T={ico:"image/x-icon",png:"image/png",gif:"image/gif"};"undefined"!==typeof window&&window.matchMedia;n(36808);function x(e,t){var n=(0,r.useRef)(),i=u((0,r.useState)(t),2),a=i[0],s=i[1],c=f((function(e){n.current=e,s(e)})),l=f((function(){s(t)}));return o((function(){n.current=void 0,s(t)}),[e]),o((function(){void 0===n.current&&s(t)}),[t]),[a,{set:c,remove:l}]}var _=function(e){return e?function(t,n,i){var a=i&&i.serialize?i.serialize:JSON.stringify,s=i&&i.deserialize?i.deserialize:JSON.parse,c=f((function(){try{var r=e.getItem(t);return null!==r?s(r):n}catch(i){return n}})),l=f((function(n){try{e.setItem(t,a(n))}catch(r){}})),d=f((function(){e.removeItem(t)})),p=u((0,r.useState)(c()),2),m=p[0],g=p[1],v=f((function(e){l(e),g(e)})),y=f((function(){d(),g(c())}));return o((function(){g(c())}),[t]),o((function(){null===e.getItem(t)&&g(n)}),[n]),(0,r.useEffect)((function(){function n(n){n.storageArea===e&&n.key===t&&g(c())}if(void 0!==("undefined"===typeof window?"undefined":h(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[m,{set:v,remove:y}]}:x};_("undefined"!==typeof localStorage?localStorage:null),_("undefined"!==typeof sessionStorage?sessionStorage:null)},90478:function(e,t,n){"use strict";var r=n(50791),i=Object.prototype.hasOwnProperty,o={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in o)i.call(o,t)&&void 0!==e.properties[t]&&(s(e,o[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+t+": "+n+";";e.properties.style=i}e.exports=function(e){return r(e,"element",a),e}},93790:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return i;if("object"===typeof e)return("length"in e?r:n)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n}(e),r=n.length;return function(){var e=-1;for(;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=t},11150:function(e,t,n){"use strict";e.exports=a;var r=n(93790),i="skip",o=!1;function a(e,t,n,a){var u;function c(e,r,l){var d,f=[];return(t&&!u(e,r,l[l.length-1]||null)||(f=s(n(e,l)))[0]!==o)&&e.children&&f[0]!==i&&(d=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?d:f}"function"===typeof t&&"function"!==typeof n&&(a=n,n=t,t=null),u=r(t),c(e,null,[])}function s(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[true,e]:[e]}a.CONTINUE=true,a.SKIP=i,a.EXIT=o},50791:function(e,t,n){"use strict";e.exports=s;var r=n(11150),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},74376:function(e,t,n){"use strict";n.d(t,{iP:function(){return l}});var r=n(67294);var i=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const o=(e,t=100,n=!1)=>{const o=i(e),a=r.useRef(),s=[t,n,o];function u(){a.current&&clearTimeout(a.current),a.current=void 0}function c(){a.current=void 0}return r.useEffect((()=>u),s),r.useCallback((function(){const e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(c,t),o.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,o.current.apply(null,e)}),t)}),s)};var a=function(e,t,n,i){const o=r.useRef(n),a=r.useRef(i);r.useEffect((()=>{o.current=n,a.current=i})),r.useEffect((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function i(...e){r||o.current.apply(this,e)}n.addEventListener(t,i);const s=a.current;return()=>{r=1,n.removeEventListener(t,i),s&&s()}}),[e,t])};const s={},u="undefined"===typeof window?null:window,c=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],l=(e=s)=>{const{wait:t,leading:n,initialWidth:i=0,initialHeight:l=0}=e,[d,f]=((e,t,n)=>{const i=r.useState(e);return[i[0],o(i[1],t,n)]})("undefined"===typeof document?[i,l]:c,t,n),h=()=>f(c);return a(u,"resize",h),a(u,"orientationchange",h),d}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return i}});var r=n(34155),i={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-i.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*i.Bounce.In(2*e):.5*i.Bounce.Out(2*e-1)+.5}}},o="undefined"===typeof self&&"undefined"!==typeof r&&r.hrtime?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!==typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=o()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var i=this._tweens[n[r]],a=!t;i&&!1===i.update(e,a)&&!t&&delete this._tweens[n[r]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),s={Linear:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.Linear;return t<0?o(e[0],e[1],r):t>1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=s.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:function(){var e=[1];return function(t){var n=1;if(e[t])return e[t];for(var r=t;r>1;r--)n*=r;return e[t]=n,n}}(),CatmullRom:function(e,t,n,r,i){var o=.5*(n-e),a=.5*(r-t),s=i*i;return(2*t-2*n+o+a)*(i*s)+(-3*t+3*n-2*o-a)*s+o*i+t}}},u=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),c=new a,l=function(){function e(e,t){void 0===t&&(t=c),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"===typeof e?o()+parseFloat(e):e:o(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,r){for(var i in n){var o=e[i],a=Array.isArray(o),s=a?"array":typeof o,u=!a&&Array.isArray(n[i]);if("undefined"!==s&&"function"!==s){if(u){var c=n[i];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(c)}if("object"!==s&&!a||!o||u)"undefined"===typeof t[i]&&(t[i]=o),a||(t[i]*=1),r[i]=u?n[i].slice().reverse():t[i]||0;else{for(var l in t[i]=a?[]:{},o)t[i][l]=o[l];r[i]=a?[]:{},this._setupProperties(o,t[i],n[i],r[i])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=o()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=o()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(void 0===e&&(e=o()),void 0===t&&(t=!0),this._isPaused)return!0;var n,r,i=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>i)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),r=(e-this._startTime)/this._duration,r=0===this._duration||r>1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s<u;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,r){for(var i in n)if(void 0!==t[i]){var o=t[i]||0,a=n[i],s=Array.isArray(e[i]),u=Array.isArray(a);!s&&u?e[i]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(e[i],o,a,r):"number"===typeof(a=this._handleRelativeValue(o,a))&&(e[i]=o+(a-o)*r)}},e.prototype._handleRelativeValue=function(e,t){return"string"!==typeof t?t:"+"===t.charAt(0)||"-"===t.charAt(0)?e+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];this._valuesStartRepeat[e]="string"===typeof n?this._valuesStartRepeat[e]+parseFloat(n):this._valuesEnd[e],this._valuesEnd[e]=t},e}(),d=u.nextId,f=c,h=f.getAll.bind(f),p=f.removeAll.bind(f),m=f.add.bind(f),g=f.remove.bind(f),v=f.update.bind(f),y={Easing:i,Group:a,Interpolation:s,now:o,Sequence:u,nextId:d,Tween:l,VERSION:"18.6.4",getAll:h,removeAll:p,add:m,remove:g,update:v};t.ZP=y},92539:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e instanceof Function?e:"string"===typeof e?function(t){return t[e]}:function(t){return e}}},93379:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,n){return"number"!==typeof n||t[e]?n:n+"px"}},60401:function(e,t,n){n(52406),n(29874),n(59236),n(82578),n(36699)},20203:function(e){e.exports=THREE.ColladaLoader=function(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager},THREE.ColladaLoader.prototype={constructor:THREE.ColladaLoader,crossOrigin:"anonymous",load:function(e,t,n,r){var i=this,o=void 0===i.path?THREE.LoaderUtils.extractUrlBase(e):i.path,a=new THREE.FileLoader(i.manager);a.setPath(i.path),a.load(e,(function(e){t(i.parse(e,o))}),n,r)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},options:{set convertUpAxis(e){console.warn("THREE.ColladaLoader: options.convertUpAxis() has been removed. Up axis is converted automatically.")}},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(e,t){function n(e,t){for(var n=[],r=e.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];a.nodeName===t&&n.push(a)}return n}function r(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=t[r];return n}function i(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=parseFloat(t[r]);return n}function o(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=parseInt(t[r]);return n}function a(e){return e.substring(1)}function s(e){return 0===Object.keys(e).length}function u(e){return void 0!==e&&!0===e.hasAttribute("meter")?parseFloat(e.getAttribute("meter")):1}function c(e){return void 0!==e?e.textContent:"Y_UP"}function l(e,t,r,i){var o=n(e,t)[0];if(void 0!==o)for(var a=n(o,r),s=0;s<a.length;s++)i(a[s])}function d(e,t){for(var n in e){e[n].build=t(e[n])}}function f(e,t){return void 0!==e.build||(e.build=t(e)),e.build}function h(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=a(i.getAttribute("source")),s=i.getAttribute("semantic");t.inputs[s]=o}}return t}function p(e){var t={},n=e.getAttribute("target").split("/"),r=n.shift(),i=n.shift(),o=-1!==i.indexOf("("),s=-1!==i.indexOf(".");if(s)n=i.split("."),i=n.shift(),t.member=n.shift();else if(o){var u=i.split("(");i=u.shift();for(var c=0;c<u.length;c++)u[c]=parseInt(u[c].replace(/\)/,""));t.indices=u}return t.id=r,t.sid=i,t.arraySyntax=o,t.memberSyntax=s,t.sampler=a(e.getAttribute("source")),t}function m(e){var t=[],n=e.channels,r=e.samplers,i=e.sources;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],s=r[a.sampler],u=s.inputs.INPUT,c=s.inputs.OUTPUT;T(v(a,i[u],i[c]),t)}return t}function g(e){return f(qe.animations[e],m)}function v(e,t,n){var r,i,o,a,s,u,c=qe.nodes[e.id],l=Pe(c.id),d=c.transforms[e.sid],f=c.matrix.clone().transpose(),h={};switch(d){case"matrix":for(o=0,a=t.array.length;o<a;o++)if(r=t.array[o],i=o*n.stride,void 0===h[r]&&(h[r]={}),!0===e.arraySyntax){var p=n.array[i],m=e.indices[0]+4*e.indices[1];h[r][m]=p}else for(s=0,u=n.stride;s<u;s++)h[r][s]=n.array[i+s];break;case"translate":case"rotate":case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',d)}var g=function(e,t){var n=[];for(var r in e)n.push({time:parseFloat(r),value:e[r]});n.sort(o);for(var i=0;i<16;i++)x(n,i,t.elements[i]);return n;function o(e,t){return e.time-t.time}}(h,f);return{name:l.uuid,keyframes:g}}var y=new THREE.Vector3,b=new THREE.Vector3,E=new THREE.Quaternion;function T(e,t){for(var n=e.keyframes,r=e.name,i=[],o=[],a=[],s=[],u=0,c=n.length;u<c;u++){var l=n[u],d=l.time,f=l.value;we.fromArray(f).transpose(),we.decompose(y,E,b),i.push(d),o.push(y.x,y.y,y.z),a.push(E.x,E.y,E.z,E.w),s.push(b.x,b.y,b.z)}return o.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".position",i,o)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",i,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",i,s)),t}function x(e,t,n){var r,i,o,a=!0;for(i=0,o=e.length;i<o;i++)void 0===(r=e[i]).value[t]?r.value[t]=null:a=!1;if(!0===a)for(i=0,o=e.length;i<o;i++)(r=e[i]).value[t]=n;else!function(e,t){for(var n,r,i=0,o=e.length;i<o;i++){var a=e[i];if(null===a.value[t]){if(n=_(e,i,t),r=w(e,i,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}k(a,n,r,t)}}}(e,t)}function _(e,t,n){for(;t>=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function w(e,t,n){for(;t<e.length;){var r=e[t];if(null!==r.value[n])return r;t++}return null}function k(e,t,n,r){n.time-t.time!==0?e.value[r]=(e.time-t.time)*(n.value[r]-t.value[r])/(n.time-t.time)+t.value[r]:e.value[r]=t.value[r]}function C(e){for(var t=[],n=e.name,r=e.end-e.start||-1,i=e.animations,o=0,a=i.length;o<a;o++)for(var s=g(i[o]),u=0,c=s.length;u<c;u++)t.push(s[u]);return new THREE.AnimationClip(n,r,t)}function A(e){return f(qe.clips[e],C)}function S(e){for(var t={sources:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=i(o.textContent);break;case"source":var a=o.getAttribute("id");t.sources[a]=ie(o);break;case"joints":t.joints=O(o);break;case"vertex_weights":t.vertexWeights=D(o)}}return t}function O(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var o=i.getAttribute("semantic"),s=a(i.getAttribute("source"));t.inputs[o]=s}}return t}function D(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=i.getAttribute("semantic"),u=a(i.getAttribute("source")),c=parseInt(i.getAttribute("offset"));t.inputs[s]={id:u,offset:c};break;case"vcount":t.vcount=o(i.textContent);break;case"v":t.v=o(i.textContent)}}return t}function I(e){var t={id:e.id},n=qe.geometries[t.id];return void 0!==e.skin&&(t.skin=function(e){var t,n,r,i=4,o={joints:[],indices:{array:[],stride:i},weights:{array:[],stride:i}},a=e.sources,s=e.vertexWeights,u=s.vcount,c=s.v,l=s.inputs.JOINT.offset,d=s.inputs.WEIGHT.offset,f=e.sources[e.joints.inputs.JOINT],h=e.sources[e.joints.inputs.INV_BIND_MATRIX],p=a[s.inputs.WEIGHT.id].array,m=0;for(t=0,r=u.length;t<r;t++){var g=u[t],v=[];for(n=0;n<g;n++){var y=c[m+l],b=p[c[m+d]];v.push({index:y,weight:b}),m+=2}for(v.sort(_),n=0;n<i;n++){var E=v[n];void 0!==E?(o.indices.array.push(E.index),o.weights.array.push(E.weight)):(o.indices.array.push(0),o.weights.array.push(0))}}e.bindShapeMatrix?o.bindMatrix=(new THREE.Matrix4).fromArray(e.bindShapeMatrix).transpose():o.bindMatrix=(new THREE.Matrix4).identity();for(t=0,r=f.array.length;t<r;t++){var T=f.array[t],x=(new THREE.Matrix4).fromArray(h.array,t*h.stride).transpose();o.joints.push({name:T,boneInverse:x})}return o;function _(e,t){return t.weight-e.weight}}(e.skin),n.sources.skinIndices=t.skin.indices,n.sources.skinWeights=t.skin.weights),t}function N(e){return void 0!==e.build?e.build:e.init_from}function R(e){var t=qe.images[e];return void 0!==t?f(t,N):(console.warn("THREE.ColladaLoader: Couldn't find image with ID:",e),null)}function M(e){for(var t={surfaces:{},samplers:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"newparam":P(i,t);break;case"technique":t.technique=j(i);break;case"extra":t.extra=G(i)}}return t}function P(e,t){for(var n=e.getAttribute("sid"),r=0,i=e.childNodes.length;r<i;r++){var o=e.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"surface":t.surfaces[n]=L(o);break;case"sampler2D":t.samplers[n]=F(o)}}}function L(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"init_from":t.init_from=i.textContent}}return t}function F(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"source":t.source=i.textContent}}return t}function j(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"constant":case"lambert":case"blinn":case"phong":t.type=i.nodeName,t.parameters=H(i)}}return t}function H(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[i.nodeName]=B(i);break;case"transparent":t[i.nodeName]={opaque:i.getAttribute("opaque"),data:B(i)}}}return t}function B(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"color":t[o.nodeName]=i(o.textContent);break;case"float":t[o.nodeName]=parseFloat(o.textContent);break;case"texture":t[o.nodeName]={id:o.getAttribute("texture"),extra:z(o)}}}return t}function z(e){for(var t={technique:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"extra":U(i,t)}}return t}function U(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique":V(i,t)}}}function V(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[i.nodeName]=parseFloat(i.textContent);break;case"wrapU":case"wrapV":"TRUE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=1:"FALSE"===i.textContent.toUpperCase()?t.technique[i.nodeName]=0:t.technique[i.nodeName]=parseInt(i.textContent)}}}function G(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique":t.technique=K(i)}}return t}function K(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"double_sided":t[i.nodeName]=parseInt(i.textContent)}}return t}function q(e){return e}function W(e){var t,n,r=(t=e.url,f(qe.effects[t],q)),i=r.profile.technique,o=r.profile.extra;switch(i.type){case"phong":case"blinn":n=new THREE.MeshPhongMaterial;break;case"lambert":n=new THREE.MeshLambertMaterial;break;default:n=new THREE.MeshBasicMaterial}function a(e){var t=r.profile.samplers[e.id],n=null;void 0!==t?n=R(r.profile.surfaces[t.source].init_from):(console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),n=R(e.id));if(null!==n){var i=function(e){var t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));switch(n=n.toLowerCase()){case"tga":t=Be;break;default:t=Ue}return t}(n);if(void 0!==i){var o=i.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var u=a.technique;o.wrapS=u.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.wrapT=u.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,o.offset.set(u.offsetU||0,u.offsetV||0),o.repeat.set(u.repeatU||1,u.repeatV||1)}else o.wrapS=THREE.RepeatWrapping,o.wrapT=THREE.RepeatWrapping;return o}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",n),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}n.name=e.name;var u=i.parameters;for(var c in u){var l=u[c];switch(c){case"diffuse":l.color&&n.color.fromArray(l.color),l.texture&&(n.map=a(l.texture));break;case"specular":l.color&&n.specular&&n.specular.fromArray(l.color),l.texture&&(n.specularMap=a(l.texture));break;case"bump":l.texture&&(n.normalMap=a(l.texture));break;case"ambient":l.texture&&(n.lightMap=a(l.texture));break;case"shininess":l.float&&n.shininess&&(n.shininess=l.float);break;case"emission":l.color&&n.emissive&&n.emissive.fromArray(l.color),l.texture&&(n.emissiveMap=a(l.texture))}}var d=u.transparent,h=u.transparency;if(void 0===h&&d&&(h={float:1}),void 0===d&&h&&(d={opaque:"A_ONE",data:{color:[1,1,1,1]}}),d&&h)if(d.data.texture)n.transparent=!0;else{var p=d.data.color;switch(d.opaque){case"A_ONE":n.opacity=p[3]*h.float;break;case"RGB_ZERO":n.opacity=1-p[0]*h.float;break;case"A_ZERO":n.opacity=1-p[3]*h.float;break;case"RGB_ONE":n.opacity=p[0]*h.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',d.opaque)}n.opacity<1&&(n.transparent=!0)}return void 0!==o&&void 0!==o.technique&&1===o.technique.double_sided&&(n.side=THREE.DoubleSide),n}function $(e){return f(qe.materials[e],W)}function Z(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];switch(n.nodeName){case"technique_common":return Y(n)}}return{}}function Y(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"perspective":case"orthographic":t.technique=r.nodeName,t.parameters=X(r)}}return t}function X(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"xfov":case"yfov":case"xmag":case"ymag":case"znear":case"zfar":case"aspect_ratio":t[r.nodeName]=parseFloat(r.textContent)}}return t}function Q(e){var t;switch(e.optics.technique){case"perspective":t=new THREE.PerspectiveCamera(e.optics.parameters.yfov,e.optics.parameters.aspect_ratio,e.optics.parameters.znear,e.optics.parameters.zfar);break;case"orthographic":var n=e.optics.parameters.ymag,r=e.optics.parameters.xmag,i=e.optics.parameters.aspect_ratio;r=void 0===r?n*i:r,n=void 0===n?r/i:n,r*=.5,n*=.5,t=new THREE.OrthographicCamera(-r,r,n,-n,e.optics.parameters.znear,e.optics.parameters.zfar);break;default:t=new THREE.PerspectiveCamera}return t.name=e.name,t}function J(e){var t=qe.cameras[e];return void 0!==t?f(t,Q):(console.warn("THREE.ColladaLoader: Couldn't find camera with ID:",e),null)}function ee(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=i.nodeName,t.parameters=te(i)}}return t}function te(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"color":var a=i(o.textContent);t.color=(new THREE.Color).fromArray(a);break;case"falloff_angle":t.falloffAngle=parseFloat(o.textContent);break;case"quadratic_attenuation":var s=parseFloat(o.textContent);t.distance=s?Math.sqrt(1/s):0}}return t}function ne(e){var t;switch(e.technique){case"directional":t=new THREE.DirectionalLight;break;case"point":t=new THREE.PointLight;break;case"spot":t=new THREE.SpotLight;break;case"ambient":t=new THREE.AmbientLight}return e.parameters.color&&t.color.copy(e.parameters.color),e.parameters.distance&&(t.distance=e.parameters.distance),t}function re(e){var t=qe.lights[e];return void 0!==t?f(t,ne):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",e),null)}function ie(e){for(var t={array:[],stride:3},o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];if(1===a.nodeType)switch(a.nodeName){case"float_array":t.array=i(a.textContent);break;case"Name_array":t.array=r(a.textContent);break;case"technique_common":var s=n(a,"accessor")[0];void 0!==s&&(t.stride=parseInt(s.getAttribute("stride")))}}return t}function oe(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];1===r.nodeType&&(t[r.getAttribute("semantic")]=a(r.getAttribute("source")))}return t}function ae(e){for(var t={type:e.nodeName,material:e.getAttribute("material"),count:parseInt(e.getAttribute("count")),inputs:{},stride:0,hasUV:!1},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"input":var s=a(i.getAttribute("source")),u=i.getAttribute("semantic"),c=parseInt(i.getAttribute("offset")),l=parseInt(i.getAttribute("set")),d=l>0?u+l:u;t.inputs[d]={id:s,offset:c},t.stride=Math.max(t.stride,c+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=o(i.textContent);break;case"p":t.p=o(i.textContent)}}return t}function se(e){for(var t=0,n=0,r=e.length;n<r;n++){!0===e[n].hasUV&&t++}t>0&&t<e.length&&(e.uvsNeedsFix=!0)}function ue(e){var t={},n=e.sources,r=e.vertices,i=e.primitives;if(0===i.length)return{};var o=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];void 0===t[r.type]&&(t[r.type]=[]),t[r.type].push(r)}return t}(i);for(var a in o){var s=o[a];se(s),t[a]=ce(s,n,r)}return t}function ce(e,t,n){for(var r={},i={array:[],stride:0},o={array:[],stride:0},a={array:[],stride:0},s={array:[],stride:0},u={array:[],stride:0},c=[],l=4,d=[],f=4,h=new THREE.BufferGeometry,p=[],m=0,g=0;g<e.length;g++){var v=e[g],y=v.inputs,b=0;switch(v.type){case"lines":case"linestrips":b=2*v.count;break;case"triangles":b=3*v.count;break;case"polylist":for(var E=0;E<v.count;E++){var T=v.vcount[E];switch(T){case 3:b+=3;break;case 4:b+=6;break;default:b+=3*(T-2)}}break;default:console.warn("THREE.ColladaLoader: Unknow primitive type:",v.type)}for(var x in h.addGroup(m,b,g),m+=b,v.material&&p.push(v.material),y){var _=y[x];switch(x){case"VERTEX":for(var w in n){var k=n[w];switch(w){case"POSITION":var C=i.array.length;if(le(v,t[k],_.offset,i.array),i.stride=t[k].stride,t.skinWeights&&t.skinIndices&&(le(v,t.skinIndices,_.offset,c),le(v,t.skinWeights,_.offset,d)),!1===v.hasUV&&!0===e.uvsNeedsFix){b=(i.array.length-C)/i.stride;for(var A=0;A<b;A++)a.array.push(0,0)}break;case"NORMAL":le(v,t[k],_.offset,o.array),o.stride=t[k].stride;break;case"COLOR":le(v,t[k],_.offset,u.array),u.stride=t[k].stride;break;case"TEXCOORD":le(v,t[k],_.offset,a.array),a.stride=t[k].stride;break;case"TEXCOORD1":le(v,t[k],_.offset,s.array),a.stride=t[k].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',w)}}break;case"NORMAL":le(v,t[_.id],_.offset,o.array),o.stride=t[_.id].stride;break;case"COLOR":le(v,t[_.id],_.offset,u.array),u.stride=t[_.id].stride;break;case"TEXCOORD":le(v,t[_.id],_.offset,a.array),a.stride=t[_.id].stride;break;case"TEXCOORD1":le(v,t[_.id],_.offset,s.array),s.stride=t[_.id].stride}}}return i.array.length>0&&h.addAttribute("position",new THREE.Float32BufferAttribute(i.array,i.stride)),o.array.length>0&&h.addAttribute("normal",new THREE.Float32BufferAttribute(o.array,o.stride)),u.array.length>0&&h.addAttribute("color",new THREE.Float32BufferAttribute(u.array,u.stride)),a.array.length>0&&h.addAttribute("uv",new THREE.Float32BufferAttribute(a.array,a.stride)),s.array.length>0&&h.addAttribute("uv2",new THREE.Float32BufferAttribute(s.array,s.stride)),c.length>0&&h.addAttribute("skinIndex",new THREE.Float32BufferAttribute(c,l)),d.length>0&&h.addAttribute("skinWeight",new THREE.Float32BufferAttribute(d,f)),r.data=h,r.type=e[0].type,r.materialKeys=p,r}function le(e,t,n,r){var i=e.p,o=e.stride,a=e.vcount;function s(e){for(var t=i[e+n]*c,o=t+c;t<o;t++)r.push(u[t])}var u=t.array,c=t.stride;if(void 0!==e.vcount)for(var l=0,d=0,f=a.length;d<f;d++){var h=a[d];if(4===h){var p=l+1*o,m=l+2*o,g=l+3*o;s(l+0*o),s(p),s(g),s(p),s(m),s(g)}else if(3===h){p=l+1*o,m=l+2*o;s(l+0*o),s(p),s(m)}else if(h>4)for(var v=1,y=h-2;v<=y;v++){p=l+o*v,m=l+o*(v+1);s(l+0*o),s(p),s(m)}l+=o*h}else for(d=0,f=i.length;d<f;d+=o)s(d)}function de(e){return f(qe.geometries[e],ue)}function fe(e){return void 0!==e.build?e.build:e}function he(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"joint":t.joints[r.getAttribute("sid")]=pe(r);break;case"link":t.links.push(ge(r))}}}function pe(e){for(var t,n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"prismatic":case"revolute":t=me(r)}}return t}function me(e,t){t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",axis:new THREE.Vector3,limits:{min:0,max:0},type:e.nodeName,static:!1,zeroPosition:0,middlePosition:0};for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var o=i(r.textContent);t.axis.fromArray(o);break;case"limits":var a=r.getElementsByTagName("max")[0],s=r.getElementsByTagName("min")[0];t.limits.max=parseFloat(a.textContent),t.limits.min=parseFloat(s.textContent)}}return t.limits.min>=t.limits.max&&(t.static=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function ge(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"attachment_full":t.attachments.push(ve(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ve(e){for(var t={joint:e.getAttribute("joint").split("/").pop(),transforms:[],links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"link":t.links.push(ge(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ye(e){var t={type:e.nodeName},n=i(e.textContent);switch(t.type){case"matrix":t.obj=new THREE.Matrix4,t.obj.fromArray(n).transpose();break;case"translate":t.obj=new THREE.Vector3,t.obj.fromArray(n);break;case"rotate":t.obj=new THREE.Vector3,t.obj.fromArray(n),t.angle=THREE.Math.degToRad(n[3])}return t}function be(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":Ee(r,t)}}}function Ee(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"inertia":t.inertia=i(r.textContent);break;case"mass":t.mass=i(r.textContent)[0]}}}function Te(e){for(var t={target:e.getAttribute("target").split("/").pop()},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var i=r.getElementsByTagName("param")[0];t.axis=i.textContent;var o=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=o.substr(0,o.length-1)}}return t}function xe(e){return void 0!==e.build?e.build:e}function _e(e){for(var t=[],n=je.querySelector('[id="'+e.id+'"]'),r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];if(1===o.nodeType)switch(o.nodeName){case"matrix":var a=i(o.textContent),s=(new THREE.Matrix4).fromArray(a).transpose();t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:s});break;case"translate":case"scale":a=i(o.textContent);var u=(new THREE.Vector3).fromArray(a);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u});break;case"rotate":a=i(o.textContent),u=(new THREE.Vector3).fromArray(a);var c=THREE.Math.degToRad(a[3]);t.push({sid:o.getAttribute("sid"),type:o.nodeName,obj:u,angle:c})}}return t}var we=new THREE.Matrix4,ke=new THREE.Vector3;function Ce(e){for(var t={name:e.getAttribute("name")||"",type:e.getAttribute("type"),id:e.getAttribute("id"),sid:e.getAttribute("sid"),matrix:new THREE.Matrix4,nodes:[],instanceCameras:[],instanceControllers:[],instanceLights:[],instanceGeometries:[],instanceNodes:[],transforms:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"node":t.nodes.push(r.getAttribute("id")),Ce(r);break;case"instance_camera":t.instanceCameras.push(a(r.getAttribute("url")));break;case"instance_controller":t.instanceControllers.push(Ae(r));break;case"instance_light":t.instanceLights.push(a(r.getAttribute("url")));break;case"instance_geometry":t.instanceGeometries.push(Ae(r));break;case"instance_node":t.instanceNodes.push(a(r.getAttribute("url")));break;case"matrix":var o=i(r.textContent);t.matrix.multiply(we.fromArray(o).transpose()),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"translate":o=i(r.textContent);ke.fromArray(o),t.matrix.multiply(we.makeTranslation(ke.x,ke.y,ke.z)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"rotate":o=i(r.textContent);var s=THREE.Math.degToRad(o[3]);t.matrix.multiply(we.makeRotationAxis(ke.fromArray(o),s)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"scale":o=i(r.textContent);t.matrix.scale(ke.fromArray(o)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"extra":break;default:console.log(r)}}return Me(t.id)?console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.",t.id):qe.nodes[t.id]=t,t}function Ae(e){for(var t={id:a(e.getAttribute("url")),materials:{},skeletons:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"bind_material":for(var i=r.getElementsByTagName("instance_material"),o=0;o<i.length;o++){var s=i[o],u=s.getAttribute("symbol"),c=s.getAttribute("target");t.materials[u]=a(c)}break;case"skeleton":t.skeletons.push(a(r.textContent))}}return t}function Se(e,t){var n,r,i,o=[],a=[];for(n=0;n<e.length;n++){var s=e[n];if(Me(s))Oe(Pe(s),t,o);else if(i=s,void 0!==qe.visualScenes[i])for(var u=qe.visualScenes[s].children,c=0;c<u.length;c++){var l=u[c];if("JOINT"===l.type)Oe(Pe(l.id),t,o)}else console.error("THREE.ColladaLoader: Unable to find root bone of skeleton with ID:",s)}for(n=0;n<t.length;n++)for(c=0;c<o.length;c++)if((r=o[c]).bone.name===t[n].name){a[n]=r,r.processed=!0;break}for(n=0;n<o.length;n++)!1===(r=o[n]).processed&&(a.push(r),r.processed=!0);var d=[],f=[];for(n=0;n<a.length;n++)r=a[n],d.push(r.bone),f.push(r.boneInverse);return new THREE.Skeleton(d,f)}function Oe(e,t,n){e.traverse((function(e){if(!0===e.isBone){for(var r,i=0;i<t.length;i++){var o=t[i];if(o.name===e.name){r=o.boneInverse;break}}void 0===r&&(r=new THREE.Matrix4),n.push({bone:e,boneInverse:r,processed:!1})}}))}function De(e){for(var t,n=[],r=e.matrix,i=e.nodes,o=e.type,a=e.instanceCameras,s=e.instanceControllers,u=e.instanceLights,c=e.instanceGeometries,l=e.instanceNodes,d=0,h=i.length;d<h;d++)n.push(Pe(i[d]));for(d=0,h=a.length;d<h;d++){var p=J(a[d]);null!==p&&n.push(p.clone())}for(d=0,h=s.length;d<h;d++)for(var m=s[d],g=(t=m.id,f(qe.controllers[t],I)),v=Re(de(g.id),m.materials),y=Se(m.skeletons,g.skin.joints),b=0,E=v.length;b<E;b++){var T;(T=v[b]).isSkinnedMesh&&(T.bind(y,g.skin.bindMatrix),T.normalizeSkinWeights()),n.push(T)}for(d=0,h=u.length;d<h;d++){var x=re(u[d]);null!==x&&n.push(x.clone())}for(d=0,h=c.length;d<h;d++)for(b=0,E=(v=Re(de((m=c[d]).id),m.materials)).length;b<E;b++)n.push(v[b]);for(d=0,h=l.length;d<h;d++)n.push(Pe(l[d]).clone());if(0===i.length&&1===n.length)T=n[0];else{T="JOINT"===o?new THREE.Bone:new THREE.Group;for(d=0;d<n.length;d++)T.add(n[d])}return""===T.name&&(T.name="JOINT"===o?e.sid:e.name),T.matrix.copy(r),T.matrix.decompose(T.position,T.quaternion,T.scale),T}var Ie=new THREE.MeshBasicMaterial({color:16711935});function Ne(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=t[e[r]];void 0===o?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",e[r]),n.push(Ie)):n.push($(o))}return n}function Re(e,t){var n=[];for(var r in e){var i=e[r],o=Ne(i.materialKeys,t);0===o.length&&("lines"===r||"linestrips"===r?o.push(new THREE.LineBasicMaterial):o.push(new THREE.MeshPhongMaterial));var a=void 0!==i.data.attributes.skinIndex;if(a)for(var s=0,u=o.length;s<u;s++)o[s].skinning=!0;var c,l=1===o.length?o[0]:o;switch(r){case"lines":c=new THREE.LineSegments(i.data,l);break;case"linestrips":c=new THREE.Line(i.data,l);break;case"triangles":case"polylist":c=a?new THREE.SkinnedMesh(i.data,l):new THREE.Mesh(i.data,l)}n.push(c)}return n}function Me(e){return void 0!==qe.nodes[e]}function Pe(e){return f(qe.nodes[e],De)}function Le(e){var t=new THREE.Group;t.name=e.name;for(var n=e.children,r=0;r<n.length;r++){var i=n[r];t.add(Pe(i.id))}return t}function Fe(e){return f(qe.visualScenes[e],Le)}if(0===e.length)return{scene:new THREE.Scene};var je=n((new DOMParser).parseFromString(e,"application/xml"),"COLLADA")[0],He=je.getAttribute("version");console.log("THREE.ColladaLoader: File version",He);var Be,ze=function(e){return{unit:u(n(e,"unit")[0]),upAxis:c(n(e,"up_axis")[0])}}(n(je,"asset")[0]),Ue=new THREE.TextureLoader(this.manager);Ue.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),THREE.TGALoader&&(Be=new THREE.TGALoader(this.manager)).setPath(this.resourcePath||t);var Ve=[],Ge={},Ke=0,qe={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};l(je,"library_animations","animation",(function(e){for(var t={sources:{},samplers:{},channels:{}},n=0,r=e.childNodes.length;n<r;n++){var i,o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"source":i=o.getAttribute("id"),t.sources[i]=ie(o);break;case"sampler":i=o.getAttribute("id"),t.samplers[i]=h(o);break;case"channel":i=o.getAttribute("target"),t.channels[i]=p(o);break;default:console.log(o)}}qe.animations[e.getAttribute("id")]=t})),l(je,"library_animation_clips","animation_clip",(function(e){for(var t={name:e.getAttribute("id")||"default",start:parseFloat(e.getAttribute("start")||0),end:parseFloat(e.getAttribute("end")||0),animations:[]},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_animation":t.animations.push(a(i.getAttribute("url")))}}qe.clips[e.getAttribute("id")]=t})),l(je,"library_controllers","controller",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"skin":t.id=a(i.getAttribute("source")),t.skin=S(i);break;case"morph":t.id=a(i.getAttribute("source")),console.warn("THREE.ColladaLoader: Morph target animation not supported yet.")}}qe.controllers[e.getAttribute("id")]=t})),l(je,"library_images","image",(function(e){var t={init_from:n(e,"init_from")[0].textContent};qe.images[e.getAttribute("id")]=t})),l(je,"library_effects","effect",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"profile_COMMON":t.profile=M(i)}}qe.effects[e.getAttribute("id")]=t})),l(je,"library_materials","material",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"instance_effect":t.url=a(i.getAttribute("url"))}}qe.materials[e.getAttribute("id")]=t})),l(je,"library_cameras","camera",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"optics":t.optics=Z(i)}}qe.cameras[e.getAttribute("id")]=t})),l(je,"library_lights","light",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"technique_common":t=ee(i)}}qe.lights[e.getAttribute("id")]=t})),l(je,"library_geometries","geometry",(function(e){var t={name:e.getAttribute("name"),sources:{},vertices:{},primitives:[]},r=n(e,"mesh")[0];if(void 0!==r){for(var i=0;i<r.childNodes.length;i++){var o=r.childNodes[i];if(1===o.nodeType){var a=o.getAttribute("id");switch(o.nodeName){case"source":t.sources[a]=ie(o);break;case"vertices":t.vertices=oe(o);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",o.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(ae(o));break;default:console.log(o)}}}qe.geometries[e.getAttribute("id")]=t}})),l(je,"library_nodes","node",Ce),l(je,"library_visual_scenes","visual_scene",(function(e){var t={name:e.getAttribute("name"),children:[]};!function(e){for(var t=e.getElementsByTagName("node"),n=0;n<t.length;n++){var r=t[n];!1===r.hasAttribute("id")&&r.setAttribute("id","three_default_"+Ke++)}}(e);for(var r=n(e,"node"),i=0;i<r.length;i++)t.children.push(Ce(r[i]));qe.visualScenes[e.getAttribute("id")]=t})),l(je,"library_kinematics_models","kinematics_model",(function(e){for(var t={name:e.getAttribute("name")||"",joints:{},links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":he(r,t)}}qe.kinematicsModels[e.getAttribute("id")]=t})),l(je,"library_physics_models","physics_model",(function(e){for(var t={name:e.getAttribute("name")||"",rigidBodies:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"rigid_body":t.rigidBodies[r.getAttribute("name")]={},be(r,t.rigidBodies[r.getAttribute("name")])}}qe.physicsModels[e.getAttribute("id")]=t})),l(je,"scene","instance_kinematics_scene",(function(e){for(var t={bindJointAxis:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"bind_joint_axis":t.bindJointAxis.push(Te(r))}}qe.kinematicsScenes[a(e.getAttribute("url"))]=t})),d(qe.animations,m),d(qe.clips,C),d(qe.controllers,I),d(qe.images,N),d(qe.effects,q),d(qe.materials,W),d(qe.cameras,Q),d(qe.lights,ne),d(qe.geometries,ue),d(qe.visualScenes,Le),function(){var e=qe.clips;if(!0===s(e)){if(!1===s(qe.animations)){var t=[];for(var n in qe.animations)for(var r=g(n),i=0,o=r.length;i<o;i++)t.push(r[i]);Ve.push(new THREE.AnimationClip("default",-1,t))}}else for(var n in e)Ve.push(A(n))}(),function(){var e=Object.keys(qe.kinematicsModels)[0],t=Object.keys(qe.kinematicsScenes)[0],n=Object.keys(qe.visualScenes)[0];if(void 0!==e&&void 0!==t){for(var r,i=(r=e,f(qe.kinematicsModels[r],fe)),o=function(e){return f(qe.kinematicsScenes[e],xe)}(t),a=Fe(n),s=o.bindJointAxis,u={},c=0,l=s.length;c<l;c++){var d=s[c],h=je.querySelector('[sid="'+d.target+'"]');if(h){var p=h.parentElement;g(d.jointIndex,p)}}var m=new THREE.Matrix4;Ge={joints:i&&i.joints,getJointValue:function(e){var t=u[e];if(t)return t.position;console.warn("THREE.ColladaLoader: Joint "+e+" doesn't exist.")},setJointValue:function(e,t){var n=u[e];if(n){var r=n.joint;if(t>r.limits.max||t<r.limits.min)console.warn("THREE.ColladaLoader: Joint "+e+" value "+t+" outside of limits (min: "+r.limits.min+", max: "+r.limits.max+").");else if(r.static)console.warn("THREE.ColladaLoader: Joint "+e+" is static.");else{var i=n.object,o=r.axis,a=n.transforms;we.identity();for(var s=0;s<a.length;s++){var c=a[s];if(c.sid&&-1!==c.sid.indexOf(e))switch(r.type){case"revolute":we.multiply(m.makeRotationAxis(o,THREE.Math.degToRad(t)));break;case"prismatic":we.multiply(m.makeTranslation(o.x*t,o.y*t,o.z*t));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+r.type)}else switch(c.type){case"matrix":we.multiply(c.obj);break;case"translate":we.multiply(m.makeTranslation(c.obj.x,c.obj.y,c.obj.z));break;case"scale":we.scale(c.obj);break;case"rotate":we.multiply(m.makeRotationAxis(c.obj,c.angle))}}i.matrix.copy(we),i.matrix.decompose(i.position,i.quaternion,i.scale),u[e].position=t}}else console.log("THREE.ColladaLoader: "+e+" does not exist.")}}}function g(e,t){var n=t.getAttribute("name"),r=i.joints[e];a.traverse((function(i){i.name===n&&(u[e]={object:i,transforms:_e(t),joint:r,position:r.zeroPosition})}))}}();var We=function(e){return Fe(a(n(e,"instance_visual_scene")[0].getAttribute("url")))}(n(je,"scene")[0]);return"Z_UP"===ze.upAxis&&We.quaternion.setFromEuler(new THREE.Euler(-Math.PI/2,0,0)),We.scale.multiplyScalar(ze.unit),{animations:Ve,kinematics:Ge,library:qe,scene:We}}}},99434:function(e){e.exports=THREE.FBXLoader=function(){var e,t,n;function r(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager}function i(e){this.textureLoader=e}function o(){}function a(){}function s(){}function u(){}function c(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t}function l(){}function d(e){var t=e.match(/FBXVersion: (\d+)/);if(t)return parseInt(t[1]);throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.")}function f(e){return e/46186158e3}r.prototype={constructor:r,crossOrigin:"anonymous",load:function(e,t,n,r){var i=this,o=THREE.LoaderUtils.extractUrlBase(e),a=new THREE.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.load(e,(function(n){try{var a=i.parse(n,o);t(a)}catch(s){setTimeout((function(){r&&r(s),i.manager.itemError(e)}),0)}}),n,r)},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(t,n){if(function(e){var t="Kaydara FBX Binary \0";return e.byteLength>=t.length&&t===_(e,0,t.length)}(t))e=(new u).parse(t);else{var r=_(t);if(!function(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var i=0;i<t.length;++i){if(r(1)===t[i])return!1}return!0}(r))throw new Error("THREE.FBXLoader: Unknown format.");if(d(r)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+d(r));e=(new s).parse(r)}return new i(new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin)).parse(e)}},i.prototype={constructor:i,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),i=this.parseMaterials(r),a=this.parseDeformers(),s=(new o).parse(a);return this.parseScene(a,s,i),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],i=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var o={ID:r,relationship:i};t.get(n).parents.push(o),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:i};t.get(r).children.push(a)}));return t},parseImages:function(){var t={},n={};if("Video"in e.Objects){var r=e.Objects.Video;for(var i in r){var o=r[i];if(t[c=parseInt(i)]=o.RelativeFilename||o.Filename,"Content"in o){var a=o.Content instanceof ArrayBuffer&&o.Content.byteLength>0,s="string"===typeof o.Content&&""!==o.Content;if(a||s){var u=this.parseImage(r[i]);n[o.RelativeFilename||o.Filename]=u}}}}for(var c in t){var l=t[c];void 0!==n[l]?t[c]=n[l]:t[c]=t[c].split("\\").pop()}return t},parseImage:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,i=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(i){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":if("function"!==typeof THREE.TGALoader)return void console.warn("FBXLoader: THREE.TGALoader is required to load TGA textures");null===THREE.Loader.Handlers.get(".tga")&&THREE.Loader.Handlers.add(/\.tga$/i,new THREE.TGALoader),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+i+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var o=new Uint8Array(n);return window.URL.createObjectURL(new Blob([o],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var i in r){var o=this.parseTexture(r[i],t);n.set(parseInt(i),o)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,i=e.WrapModeV,o=void 0!==r?r.value:0,a=void 0!==i?i.value:0;if(n.wrapS=0===o?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,n.wrapT=0===a?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n},loadTexture:function(e,n){var r,i,o=this.textureLoader.path,a=t.get(e.id).children;void 0!==a&&a.length>0&&void 0!==n[a[0].ID]&&(0!==(r=n[a[0].ID]).indexOf("blob:")&&0!==r.indexOf("data:")||this.textureLoader.setPath(void 0));var s=e.FileName.slice(-3).toLowerCase();if("tga"===s){var u=THREE.Loader.Handlers.get(".tga");null===u?(console.warn("FBXLoader: TGALoader not found, creating empty placeholder texture for",r),i=new THREE.Texture):i=u.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),i=new THREE.Texture):i=this.textureLoader.load(r);return this.textureLoader.setPath(o),i},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var i in r){var o=this.parseMaterial(r[i],t);null!==o&&n.set(parseInt(i),o)}}return n},parseMaterial:function(e,n){var r=e.id,i=e.attrName,o=e.ShadingModel;if("object"===typeof o&&(o=o.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(o.toLowerCase()){case"phong":a=new THREE.MeshPhongMaterial;break;case"lambert":a=new THREE.MeshLambertMaterial;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',o),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=i,a},parseParameters:function(e,n,r){var i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(i.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(i.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(i.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var o=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":i.bumpMap=o.getTexture(n,e.ID);break;case"DiffuseColor":i.map=o.getTexture(n,e.ID);break;case"DisplacementColor":i.displacementMap=o.getTexture(n,e.ID);break;case"EmissiveColor":i.emissiveMap=o.getTexture(n,e.ID);break;case"NormalMap":i.normalMap=o.getTexture(n,e.ID);break;case"ReflectionColor":i.envMap=o.getTexture(n,e.ID),i.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":i.specularMap=o.getTexture(n,e.ID);break;case"TransparentColor":i.alphaMap=o.getTexture(n,e.ID),i.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",t)}})),i},getTexture:function(n,r){return"LayeredTexture"in e.Objects&&r in e.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),r=t.get(r).children[0].ID),n.get(r)},parseDeformers:function(){var n={},r={};if("Deformer"in e.Objects){var i=e.Objects.Deformer;for(var o in i){var a=i[o],s=t.get(parseInt(o));if("Skin"===a.attrType){var u=this.parseSkeleton(s,i);u.ID=o,s.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),u.geometryID=s.parents[0].ID,n[o]=u}else if("BlendShape"===a.attrType){var c={id:o};c.rawTargets=this.parseMorphTargets(s,i),c.id=o,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[o]=c}}}return{skeletons:n,morphTargets:r}},parseSkeleton:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var i={ID:e.ID,indices:[],weights:[],transform:(new THREE.Matrix4).fromArray(r.Transform.a),transformLink:(new THREE.Matrix4).fromArray(r.TransformLink.a),linkMode:r.Mode};"Indexes"in r&&(i.indices=r.Indexes.a,i.weights=r.Weights.a),n.push(i)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],i=0;i<e.children.length;i++){if(8===i){console.warn("FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.");break}var o=e.children[i],a=n[o.ID],s={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;t.get(parseInt(o.ID)).children.forEach((function(e){void 0===e.relationship&&(s.geoID=e.ID)})),r.push(s)}return r},parseScene:function(r,i,o){n=new THREE.Group;var s=this.parseModels(r.skeletons,i,o),u=e.Objects.Model,c=this;s.forEach((function(e){var r=u[e.ID];c.setLookAtProperties(e,r),t.get(e.ID).parents.forEach((function(t){var n=s.get(t.ID);void 0!==n&&n.add(e)})),null===e.parent&&n.add(e)})),this.bindSkeleton(r.skeletons,i,s),this.createAmbientLight(),this.setupMorphMaterials();var l=(new a).parse();1===n.children.length&&n.children[0].isGroup&&(n.children[0].animations=l,n=n.children[0]),n.animations=l},parseModels:function(n,r,i){var o=new Map,a=e.Objects.Model;for(var s in a){var u=parseInt(s),c=a[s],l=t.get(u),d=this.buildSkeleton(l,n,u,c.attrName);if(!d){switch(c.attrType){case"Camera":d=this.createCamera(l);break;case"Light":d=this.createLight(l);break;case"Mesh":d=this.createMesh(l,r,i);break;case"NurbsCurve":d=this.createCurve(l,r);break;case"LimbNode":case"Null":default:d=new THREE.Group}d.name=THREE.PropertyBinding.sanitizeNodeName(c.attrName),d.ID=u}this.setModelTransforms(d,c),o.set(u,d)}return o},buildSkeleton:function(e,t,n,r){var i=null;return e.parents.forEach((function(e){for(var o in t){var a=t[o];a.rawBones.forEach((function(t,o){if(t.ID===e.ID){var s=i;(i=new THREE.Bone).matrixWorld.copy(t.transformLink),i.name=THREE.PropertyBinding.sanitizeNodeName(r),i.ID=n,a.bones[o]=i,null!==s&&i.add(s)}}))}})),i},createCamera:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var i=0;void 0!==r.CameraProjectionType&&1===r.CameraProjectionType.value&&(i=1);var o=1;void 0!==r.NearPlane&&(o=r.NearPlane.value/1e3);var a=1e3;void 0!==r.FarPlane&&(a=r.FarPlane.value/1e3);var s=window.innerWidth,u=window.innerHeight;void 0!==r.AspectWidth&&void 0!==r.AspectHeight&&(s=r.AspectWidth.value,u=r.AspectHeight.value);var c=s/u,l=45;void 0!==r.FieldOfView&&(l=r.FieldOfView.value);var d=r.FocalLength?r.FocalLength.value:null;switch(i){case 0:n=new THREE.PerspectiveCamera(l,c,o,a),null!==d&&n.setFocalLength(d);break;case 1:n=new THREE.OrthographicCamera(-s/2,s/2,u/2,-u/2,o,a);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+i+"."),n=new THREE.Object3D}}return n},createLight:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var i;i=void 0===r.LightType?0:r.LightType.value;var o=16777215;void 0!==r.Color&&(o=(new THREE.Color).fromArray(r.Color.value));var a=void 0===r.Intensity?1:r.Intensity.value/100;void 0!==r.CastLightOnObject&&0===r.CastLightOnObject.value&&(a=0);var s=0;void 0!==r.FarAttenuationEnd&&(s=void 0!==r.EnableFarAttenuation&&0===r.EnableFarAttenuation.value?0:r.FarAttenuationEnd.value);switch(i){case 0:n=new THREE.PointLight(o,a,s,1);break;case 1:n=new THREE.DirectionalLight(o,a);break;case 2:var u=Math.PI/3;void 0!==r.InnerAngle&&(u=THREE.Math.degToRad(r.InnerAngle.value));var c=0;void 0!==r.OuterAngle&&(c=THREE.Math.degToRad(r.OuterAngle.value),c=Math.max(c,1)),n=new THREE.SpotLight(o,a,s,u,c,1);break;default:console.warn("THREE.FBXLoader: Unknown light type "+r.LightType.value+", defaulting to a THREE.PointLight."),n=new THREE.PointLight(o,a)}void 0!==r.CastShadows&&1===r.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var r,i=null,o=null,a=[];return e.children.forEach((function(e){t.has(e.ID)&&(i=t.get(e.ID)),n.has(e.ID)&&a.push(n.get(e.ID))})),a.length>1?o=a:a.length>0?o=a[0]:(o=new THREE.MeshPhongMaterial({color:13421772}),a.push(o)),"color"in i.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),i.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(i,o)):r=new THREE.Mesh(i,o),r},createCurve:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new THREE.LineBasicMaterial({color:3342591,linewidth:1});return new THREE.Line(n,r)},setModelTransforms:function(e,t){var n={};"RotationOrder"in t&&(n.eulerOrder=parseInt(t.RotationOrder.value)),"Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value);var r=E(n);e.applyMatrix(r)},setLookAtProperties:function(r,i){"LookAtProperty"in i&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var i=e.Objects.Model[t.ID];if("Lcl_Translation"in i){var o=i.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(o),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(o))}}}))},bindSkeleton:function(e,n,r){var i=this.parsePoseNodes();for(var o in e){var a=e[o];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var o=e.ID;t.get(o).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),i[e.ID])}))}}))}},parsePoseNodes:function(){var t={};if("Pose"in e.Objects){var n=e.Objects.Pose;for(var r in n)if("BindPose"===n[r].attrType){var i=n[r].PoseNode;Array.isArray(i)?i.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[i.Node]=(new THREE.Matrix4).fromArray(i.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],i=t[1],o=t[2];if(0!==r||0!==i||0!==o){var a=new THREE.Color(r,i,o);n.add(new THREE.AmbientLight(a,1))}}},setupMorphMaterials:function(){n.traverse((function(e){if(e.isMesh&&(e.geometry.morphAttributes.position||e.geometry.morphAttributes.normal)){var t=e.uuid,r=e.material.uuid,i=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(i=!0)})),!0===i&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},o.prototype={constructor:o,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var i=e.Objects.Geometry;for(var o in i){var a=t.get(parseInt(o)),s=this.parseGeometry(a,i[o],n);r.set(parseInt(o),s)}}return r},parseGeometry:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}},parseMeshGeometry:function(t,n,r){var i=r.skeletons,o=r.morphTargets,a=t.parents.map((function(t){return e.Objects.Model[t.ID]}));if(0!==a.length){var s=t.children.reduce((function(e,t){return void 0!==i[t.ID]&&(e=i[t.ID]),e}),null),u=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[t.ID]),e}),null),c=a[0],l={};"RotationOrder"in c&&(l.eulerOrder=c.RotationOrder.value),"GeometricTranslation"in c&&(l.translation=c.GeometricTranslation.value),"GeometricRotation"in c&&(l.rotation=c.GeometricRotation.value),"GeometricScaling"in c&&(l.scale=c.GeometricScaling.value);var d=E(l);return this.genGeometry(n,s,u,d)}},genGeometry:function(e,t,n,r){var i=new THREE.BufferGeometry;e.attrName&&(i.name=e.attrName);var o=this.parseGeoNode(e,t),a=this.genBuffers(o),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),i.addAttribute("position",s),a.colors.length>0&&i.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(i.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),i.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),i.FBX_Deformer=t),a.normal.length>0){var u=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(u),i.addAttribute("normal",u)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),i.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),o.material&&"AllSame"!==o.material.mappingType){var c=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==c&&(i.addGroup(l,t-l,c),c=e,l=t)})),i.groups.length>0){var d=i.groups[i.groups.length-1],f=d.start+d.count;f!==a.materialIndex.length&&i.addGroup(f,a.materialIndex.length-f,c)}0===i.groups.length&&i.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(i,e,n,r),i},parseGeoNode:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];for(var r=0;e.LayerElementUV[r];)n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,i=!1,o=[],a=[],s=[],u=[],c=[],l=[],d=this;return e.vertexIndices.forEach((function(f,h){var m=!1;f<0&&(f^=-1,m=!0);var g=[],v=[];if(o.push(3*f,3*f+1,3*f+2),e.color){var y=p(h,n,f,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[f]&&e.weightTable[f].forEach((function(e){v.push(e.weight),g.push(e.id)})),v.length>4){i||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!0);var b=[0,0,0,0],E=[0,0,0,0];v.forEach((function(e,t){var n=e,r=g[t];E.forEach((function(e,t,i){if(n>e){i[t]=n,n=e;var o=b[t];b[t]=r,r=o}}))})),g=b,v=E}for(;v.length<4;)v.push(0),g.push(0);for(var T=0;T<4;++T)c.push(v[T]),l.push(g[T])}if(e.normal){y=p(h,n,f,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var x=p(h,n,f,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=p(h,n,f,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,m&&(d.genFace(t,e,o,x,a,s,u,c,l,r),n++,r=0,o=[],a=[],s=[],u=[],c=[],l=[])})),t},genFace:function(e,t,n,r,i,o,a,s,u,c){for(var l=2;l<c;l++)e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(l-1)]),e.vertexWeights.push(s[4*(l-1)+1]),e.vertexWeights.push(s[4*(l-1)+2]),e.vertexWeights.push(s[4*(l-1)+3]),e.vertexWeights.push(s[4*l]),e.vertexWeights.push(s[4*l+1]),e.vertexWeights.push(s[4*l+2]),e.vertexWeights.push(s[4*l+3]),e.weightsIndices.push(u[0]),e.weightsIndices.push(u[1]),e.weightsIndices.push(u[2]),e.weightsIndices.push(u[3]),e.weightsIndices.push(u[4*(l-1)]),e.weightsIndices.push(u[4*(l-1)+1]),e.weightsIndices.push(u[4*(l-1)+2]),e.weightsIndices.push(u[4*(l-1)+3]),e.weightsIndices.push(u[4*l]),e.weightsIndices.push(u[4*l+1]),e.weightsIndices.push(u[4*l+2]),e.weightsIndices.push(u[4*l+3])),t.color&&(e.colors.push(o[0]),e.colors.push(o[1]),e.colors.push(o[2]),e.colors.push(o[3*(l-1)]),e.colors.push(o[3*(l-1)+1]),e.colors.push(o[3*(l-1)+2]),e.colors.push(o[3*l]),e.colors.push(o[3*l+1]),e.colors.push(o[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(i[0]),e.normal.push(i[1]),e.normal.push(i[2]),e.normal.push(i[3*(l-1)]),e.normal.push(i[3*(l-1)+1]),e.normal.push(i[3*(l-1)+2]),e.normal.push(i[3*l]),e.normal.push(i[3*l+1]),e.normal.push(i[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(a[n][0]),e.uvs[n].push(a[n][1]),e.uvs[n].push(a[n][2*(l-1)]),e.uvs[n].push(a[n][2*(l-1)+1]),e.uvs[n].push(a[n][2*l]),e.uvs[n].push(a[n][2*l+1])}))},addMorphTargets:function(t,n,r,i){if(null!==r){t.morphAttributes.position=[],t.morphAttributes.normal=[];var o=this;r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&o.genMorphGeometry(t,n,a,i)}))}},genMorphGeometry:function(e,t,n,r){var i=new THREE.BufferGeometry;n.attrName&&(i.name=n.attrName);for(var o=void 0!==t.PolygonVertexIndex?t.PolygonVertexIndex.a:[],a=void 0!==t.Vertices?t.Vertices.a.slice():[],s=void 0!==n.Vertices?n.Vertices.a:[],u=void 0!==n.Indexes?n.Indexes.a:[],c=0;c<u.length;c++){var l=3*u[c];a[l]+=s[3*c],a[l+1]+=s[3*c+1],a[l+2]+=s[3*c+2]}var d={vertexIndices:o,vertexPositions:a},f=this.genBuffers(d),h=new THREE.Float32BufferAttribute(f.vertex,3);h.name=n.attrName,r.applyToBufferAttribute(h),e.morphAttributes.position.push(h)},parseNormals:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a,i=[];return"IndexToDirect"===n&&("NormalIndex"in e?i=e.NormalIndex.a:"NormalsIndex"in e&&(i=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:i,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,i=[];return"IndexToDirect"===n&&(i=e.UVIndex.a),{dataSize:2,buffer:r,indices:i,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,i=[];return"IndexToDirect"===n&&(i=e.ColorIndex.a),{dataSize:4,buffer:r,indices:i,mappingType:t,referenceType:n}},parseMaterialIndices:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType;if("NoMappingInformation"===t)return{dataSize:1,buffer:[0],indices:[0],mappingType:"AllSame",referenceType:n};for(var r=e.Materials.a,i=[],o=0;o<r.length;++o)i.push(o);return{dataSize:1,buffer:r,indices:i,mappingType:t,referenceType:n}},parseNurbsGeometry:function(e){if(void 0===THREE.NURBSCurve)return console.error("THREE.FBXLoader: The loader relies on THREE.NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."),new THREE.BufferGeometry;var t=parseInt(e.Order);if(isNaN(t))return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s",e.Order,e.id),new THREE.BufferGeometry;for(var n,r,i=t-1,o=e.KnotVector.a,a=[],s=e.Points.a,u=0,c=s.length;u<c;u+=4)a.push((new THREE.Vector4).fromArray(s,u));if("Closed"===e.Form)a.push(a[0]);else if("Periodic"===e.Form){n=i,r=o.length-1-n;for(u=0;u<i;++u)a.push(a[u])}var l=new THREE.NURBSCurve(i,o,a,n,r).getPoints(7*a.length),d=new Float32Array(3*l.length);l.forEach((function(e,t){e.toArray(d,3*t)}));var f=new THREE.BufferGeometry;return f.addAttribute("position",new THREE.BufferAttribute(d,3)),f}},a.prototype={constructor:a,parse:function(){var e=[],t=this.parseClips();if(void 0===t)return e;for(var n in t){var r=t[n],i=this.addClip(r);e.push(i)}return e},parseClips:function(){if(void 0!==e.Objects.AnimationCurve){var t=this.parseAnimationCurveNodes();this.parseAnimationCurves(t);var n=this.parseAnimationLayers(t);return this.parseAnimStacks(n)}},parseAnimationCurveNodes:function(){var t=e.Objects.AnimationCurveNode,n=new Map;for(var r in t){var i=t[r];if(null!==i.attrName.match(/S|R|T|DeformPercent/)){var o={id:i.id,attr:i.attrName,curves:{}};n.set(o.id,o)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var i in r){var o={id:r[i].id,times:r[i].KeyTime.a.map(f),values:r[i].KeyValueFloat.a},a=t.get(o.id);if(void 0!==a){var s=a.parents[0].ID,u=a.parents[0].relationship;u.match(/X/)?n.get(s).curves.x=o:u.match(/Y/)?n.get(s).curves.y=o:u.match(/Z/)?n.get(s).curves.z=o:u.match(/d|DeformPercent/)&&n.has(s)&&(n.get(s).curves.morph=o)}}},parseAnimationLayers:function(n){var r=e.Objects.AnimationLayer,i=new Map;for(var o in r){var a=[],s=t.get(parseInt(o));if(void 0!==s){var u=s.children,c=this;u.forEach((function(r,i){if(n.has(r.ID)){var o=n.get(r.ID);if(void 0!==o.curves.x||void 0!==o.curves.y||void 0!==o.curves.z){if(void 0===a[i]){t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(h=e.ID)}));var s=e.Objects.Model[h.toString()],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),initialPosition:[0,0,0],initialRotation:[0,0,0],initialScale:[1,1,1],transform:c.getModelAnimTransform(s)};"PreRotation"in s&&(u.preRotations=s.PreRotation.value),"PostRotation"in s&&(u.postRotations=s.PostRotation.value),a[i]=u}a[i][o.attr]=o}else if(void 0!==o.curves.morph){if(void 0===a[i]){var l;t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(l=e.ID)}));var d=t.get(l).parents[0].ID,f=t.get(d).parents[0].ID,h=t.get(f).parents[0].ID;s=e.Objects.Model[h],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),morphName:e.Objects.Deformer[l].attrName};a[i]=u}a[i][o.attr]=o}}})),i.set(parseInt(o),a)}}return i},getModelAnimTransform:function(e){var t={};return"RotationOrder"in e&&(t.eulerOrder=parseInt(e.RotationOrder.value)),"Lcl_Translation"in e&&(t.translation=e.Lcl_Translation.value),"RotationOffset"in e&&(t.rotationOffset=e.RotationOffset.value),"Lcl_Rotation"in e&&(t.rotation=e.Lcl_Rotation.value),"PreRotation"in e&&(t.preRotation=e.PreRotation.value),"PostRotation"in e&&(t.postRotation=e.PostRotation.value),"Lcl_Scaling"in e&&(t.scale=e.Lcl_Scaling.value),E(t)},parseAnimStacks:function(n){var r=e.Objects.AnimationStack,i={};for(var o in r){var a=t.get(parseInt(o)).children;a.length>1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var s=n.get(a[0].ID);i[o]={name:r[o].attrName,layer:s}}return i},addClip:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new THREE.AnimationClip(e.name,-1,t)},generateTracks:function(e){var t=[],n=new THREE.Vector3,r=new THREE.Quaternion,i=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,i),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),i=i.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var o=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==o&&t.push(o)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var a=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotations,e.postRotations);void 0!==a&&t.push(a)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,i,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var u=this.generateMorphTrack(e);void 0!==u&&t.push(u)}return t},generateVectorTrack:function(e,t,n,r){var i=this.getTimesForAllAxes(t),o=this.getKeyframeTrackValues(i,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,i,o)},generateRotationTrack:function(e,t,n,r,i){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(THREE.Math.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(THREE.Math.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(THREE.Math.degToRad));var o=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(o,t,n);void 0!==r&&((r=r.map(THREE.Math.degToRad)).push("ZYX"),r=(new THREE.Euler).fromArray(r),r=(new THREE.Quaternion).setFromEuler(r)),void 0!==i&&((i=i.map(THREE.Math.degToRad)).push("ZYX"),i=(new THREE.Euler).fromArray(i),i=(new THREE.Quaternion).setFromEuler(i).inverse());for(var s=new THREE.Quaternion,u=new THREE.Euler,c=[],l=0;l<a.length;l+=3)u.set(a[l],a[l+1],a[l+2],"ZYX"),s.setFromEuler(u),void 0!==r&&s.premultiply(r),void 0!==i&&s.multiply(i),s.toArray(c,l/3*4);return new THREE.QuaternionKeyframeTrack(e+".quaternion",o,c)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,r=t.values.map((function(e){return e/100})),i=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new THREE.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+i+"]",t.times,r)},getTimesForAllAxes:function(e){var t=[];return void 0!==e.x&&(t=t.concat(e.x.times)),void 0!==e.y&&(t=t.concat(e.y.times)),void 0!==e.z&&(t=t.concat(e.z.times)),t=t.sort((function(e,t){return e-t})).filter((function(e,t,n){return n.indexOf(e)==t}))},getKeyframeTrackValues:function(e,t,n){var r=n,i=[],o=-1,a=-1,s=-1;return e.forEach((function(e){if(t.x&&(o=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==o){var n=t.x.values[o];i.push(n),r[0]=n}else i.push(r[0]);if(-1!==a){var u=t.y.values[a];i.push(u),r[1]=u}else i.push(r[1]);if(-1!==s){var c=t.z.values[s];i.push(c),r[2]=c}else i.push(r[2])})),i},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,i=Math.abs(r);if(i>=180){for(var o=i/180,a=r/o,s=n+a,u=e.times[t-1],c=(e.times[t]-u)/o,l=u+c,d=[],f=[];l<e.times[t];)d.push(l),l+=c,f.push(s),s+=a;e.times=w(e.times,t,d),e.values=w(e.values,t,f)}}}},s.prototype={constructor:s,getPrevNode:function(){return this.nodeStack[this.currentIndent-2]},getCurrentNode:function(){return this.nodeStack[this.currentIndent-1]},getCurrentProp:function(){return this.currentProp},pushStack:function(e){this.nodeStack.push(e),this.currentIndent+=1},popStack:function(){this.nodeStack.pop(),this.currentIndent-=1},setCurrentProp:function(e,t){this.currentProp=e,this.currentPropName=t},parse:function(e){this.currentIndent=0,console.log("FBXTree: ",l),this.allNodes=new l,this.nodeStack=[],this.currentProp=[],this.currentPropName="";var t=this,n=e.split(/[\r\n]+/);return n.forEach((function(e,r){var i=e.match(/^[\s\t]*;/),o=e.match(/^[\s\t]*$/);if(!i&&!o){var a=e.match("^\\t{"+t.currentIndent+"}(\\w+):(.*){",""),s=e.match("^\\t{"+t.currentIndent+"}(\\w+):[\\s\\t\\r\\n](.*)"),u=e.match("^\\t{"+(t.currentIndent-1)+"}}");a?t.parseNodeBegin(e,a):s?t.parseNodeProperty(e,s,n[++r]):u?t.popStack():e.match(/^[^\s\t}]/)&&t.parseNodePropertyContinued(e)}})),this.allNodes},parseNodeBegin:function(e,t){var n=t[1].trim().replace(/^"/,"").replace(/"$/,""),r=t[2].split(",").map((function(e){return e.trim().replace(/^"/,"").replace(/"$/,"")})),i={name:n},o=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,i):n in a?("PoseNode"===n?a.PoseNode.push(i):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==o.id&&(a[n][o.id]=i)):"number"===typeof o.id?(a[n]={},a[n][o.id]=i):"Properties70"!==n&&(a[n]="PoseNode"===n?[i]:i),"number"===typeof o.id&&(i.id=o.id),""!==o.name&&(i.attrName=o.name),""!==o.type&&(i.attrType=o.type),this.pushStack(i)},parseNodeAttr:function(e){var t=e[0];""!==e[0]&&(t=parseInt(e[0]),isNaN(t)&&(t=e[0]));var n="",r="";return e.length>1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}},parseNodeProperty:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());var o=this.getCurrentNode();if("Properties70"!==o.name){if("C"===r){var a=i.split(",").slice(1),s=parseInt(a[0]),u=parseInt(a[1]),c=i.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,i=t.length;n<i;n++,r++)e[r]=t[n]}(i=[s,u],c=c.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===o[r]&&(o[r]=[])}"Node"===r&&(o.id=i),r in o&&Array.isArray(o[r])?o[r].push(i):"a"!==r?o[r]=i:o.a=i,this.setCurrentProp(o,r),"a"===r&&","!==i.slice(-1)&&(o.a=x(i))}else this.parseNodeSpecialProperty(e,r,i)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=x(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];switch(o){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":u=parseFloat(u);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":u=x(u)}this.getPrevNode()[i]={type:o,type2:a,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),i)}},u.prototype={constructor:u,parse:function(e){var t=new c(e);t.skip(23);var n=t.getUint32();console.log("THREE.FBXLoader: FBX binary version: "+n);for(var r=new l;!this.endOfContent(t);){var i=this.parseNode(t,n);null!==i&&r.add(i.name,i)}return r},endOfContent:function(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()},parseNode:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),i=t>=7500?e.getUint64():e.getUint32(),o=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(o);if(0===r)return null;for(var s=[],u=0;u<i;u++)s.push(this.parseProperty(e));var c=s.length>0?s[0]:"",l=s.length>1?s[1]:"",d=s.length>2?s[2]:"";for(n.singleProperty=1===i&&e.getOffset()===r;r>e.getOffset();){var f=this.parseNode(e,t);null!==f&&this.parseSubNode(a,n,f)}return n.propertyList=s,"number"===typeof c&&(n.id=c),""!==l&&(n.attrName=l),""!==d&&(n.attrType=d),""!==a&&(n.name=a),n},parseSubNode:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var i=[];n.propertyList.forEach((function(e,t){0!==t&&i.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(i)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var o,a=n.propertyList[0],s=n.propertyList[1],u=n.propertyList[2],c=n.propertyList[3];0===a.indexOf("Lcl ")&&(a=a.replace("Lcl ","Lcl_")),0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),o="Color"===s||"ColorRGB"===s||"Vector"===s||"Vector3D"===s||0===s.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[a]={type:s,type2:u,flag:c,value:o}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)},parseProperty:function(e){var t=e.getString(1);switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":var n=e.getUint32();return e.getArrayBuffer(n);case"S":n=e.getUint32();return e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var r=e.getUint32(),i=e.getUint32(),o=e.getUint32();if(0===i)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}"undefined"===typeof Zlib&&console.error("THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js");var a=new c(new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(o))).decompress().buffer);switch(t){case"b":case"c":return a.getBooleanArray(r);case"d":return a.getFloat64Array(r);case"f":return a.getFloat32Array(r);case"i":return a.getInt32Array(r);case"l":return a.getInt64Array(r)}default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}},c.prototype={constructor:c,getOffset:function(){return this.offset},size:function(){return this.dv.buffer.byteLength},skip:function(e){this.offset+=e},getBoolean:function(){return 1===(1&this.getUint8())},getBooleanArray:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getBoolean());return t},getUint8:function(){var e=this.dv.getUint8(this.offset);return this.offset+=1,e},getInt16:function(){var e=this.dv.getInt16(this.offset,this.littleEndian);return this.offset+=2,e},getInt32:function(){var e=this.dv.getInt32(this.offset,this.littleEndian);return this.offset+=4,e},getInt32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt32());return t},getUint32:function(){var e=this.dv.getUint32(this.offset,this.littleEndian);return this.offset+=4,e},getInt64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),2147483648&t?(t=4294967295&~t,4294967295===(e=4294967295&~e)&&(t=t+1&4294967295),-(4294967296*t+(e=e+1&4294967295))):4294967296*t+e},getInt64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt64());return t},getUint64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),4294967296*t+e},getFloat32:function(){var e=this.dv.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e},getFloat32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat32());return t},getFloat64:function(){var e=this.dv.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e},getFloat64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat64());return t},getArrayBuffer:function(e){var t=this.dv.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t},getString:function(e){for(var t=[],n=0;n<e;n++)t[n]=this.getUint8();var r=t.indexOf(0);return r>=0&&(t=t.slice(0,r)),THREE.LoaderUtils.decodeText(new Uint8Array(t))}},l.prototype={constructor:l,add:function(e,t){this[e]=t}};var h=[];function p(e,t,n,r){var i;switch(r.mappingType){case"ByPolygonVertex":i=e;break;case"ByPolygon":i=t;break;case"ByVertice":i=n;break;case"AllSame":i=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(i=r.indices[i]);var o=i*r.dataSize,a=o+r.dataSize;return function(e,t,n,r){for(var i=n,o=0;i<r;i++,o++)e[o]=t[i];return e}(h,r.buffer,o,a)}var m=new THREE.Matrix4,g=new THREE.Euler,v=new THREE.Vector3,y=new THREE.Vector3,b=new THREE.Matrix4;function E(e){var t=new THREE.Matrix4;y.set(0,0,0),b.identity();var n,r=e.eulerOrder?T(e.eulerOrder):T(0);(e.translation&&y.fromArray(e.translation),e.rotationOffset&&y.add(v.fromArray(e.rotationOffset)),e.rotation)&&((n=e.rotation.map(THREE.Math.degToRad)).push(r),b.makeRotationFromEuler(g.fromArray(n)));e.preRotation&&((n=e.preRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(g.fromArray(n)),b.premultiply(m));e.postRotation&&((n=e.postRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(g.fromArray(n)),m.getInverse(m),b.multiply(m));return e.scale&&t.scale(v.fromArray(e.scale)),t.setPosition(y),t.multiply(b),t}function T(e){var t=["ZYX","YZX","XZY","ZXY","YXZ","XYZ"];return 6===e?(console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."),t[0]):t[e]}function x(e){return e.split(",").map((function(e){return parseFloat(e)}))}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),THREE.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function w(e,t,n){return e.slice(0,t).concat(n).concat(e.slice(t))}return r}()},16453:function(e){e.exports=Object.assign((function(){}),{FACE_1:0,FACE_2:1,FACE_3:2,FACE_4:3,L_SHOULDER_1:4,R_SHOULDER_1:5,L_SHOULDER_2:6,R_SHOULDER_2:7,SELECT:8,START:9,DPAD_UP:12,DPAD_DOWN:13,DPAD_LEFT:14,DPAD_RIGHT:15,VENDOR:16})},44379:function(e){e.exports=function(e,t,n){this.type=e,this.index=t,this.pressed=n.pressed,this.value=n.value}},82667:function(e){e.exports={size:5,cellSize:10,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5},autogenerated:!0,cells:[{q:-1,r:0,s:1,h:1,walkable:!0,userData:{}},{q:0,r:-1,s:1,h:1,walkable:!0,userData:{}},{q:0,r:0,s:0,h:1,walkable:!0,userData:{}},{q:1,r:-1,s:0,h:1,walkable:!0,userData:{}},{q:-1,r:1,s:0,h:0,walkable:!0,userData:{}},{q:0,r:1,s:-1,h:0,walkable:!0,userData:{}},{q:1,r:0,s:-1,h:0,walkable:!0,userData:{}}]}},34657:function(e){function t(e){const t=document.getElementById(e),n=t.parentNode;try{n&&n.removeChild(t)}catch(r){}}function n(e,n,r){return new r((function(r,i){const o=n.timeout||5e3,a="script_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),s=function(e,t){var n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.id=t,n.src=e,n}(e,a),u=setTimeout((function(){i(new Error("Script request to "+e+" timed out")),t(a)}),o),c=function(e){clearTimeout(e)};s.addEventListener("load",(function(e){r({ok:!0}),c(u),t(a)})),s.addEventListener("error",(function(n){i(new Error("Script request to "+e+" failed "+n)),c(u),t(a)})),function(e){const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(s)}))}e.exports=function(e){return e=e||{},function(t,r){return n(t,r=r||{},e.Promise||Promise)}}},63471:function(e){var n=e.exports={VERSION:"0.1.1",PI:Math.PI,TAU:2*Math.PI,DEG_TO_RAD:.0174532925,RAD_TO_DEG:57.2957795,SQRT3:Math.sqrt(3),TILE:"tile",ENT:"entity",STR:"structure",HEX:"hex",SQR:"square",ABS:"abstract"};n.Board=function(e,t){if(!e)throw new Error("You must pass in a grid system for the board to use.");this.tiles=[],this.tileGroup=null,this.group=new THREE.Object3D,this.grid=null,this.overlay=null,this.finder=new n.AStarFinder(t),n.Loader.init(),this.setGrid(e)},n.Board.prototype={setEntityOnTile:function(e,t){var n=this.grid.cellToPixel(t.cell);e.position.copy(n),e.position.y+=e.heightOffset||0,e.tile&&(e.tile.entity=null),e.tile=t,t.entity=e},addTile:function(e){-1===this.tiles.indexOf(e)&&(this.tiles.push(e),this.snapTileToGrid(e),e.position.y=0,this.tileGroup.add(e.mesh),this.grid.add(e.cell),e.cell.tile=e)},removeTile:function(e){if(e){var t=this.tiles.indexOf(e);this.grid.remove(e.cell),-1!==t&&this.tiles.splice(t,1),e.dispose()}},removeAllTiles:function(){if(this.tileGroup)for(var e=this.tileGroup.children,t=0;t<e.length;t++)this.tileGroup.remove(e[t])},getTileAtCell:function(e){var t=this.grid.cellToHash(e);return e.tile||("undefined"!=typeof this.grid.cells[t]?this.grid.cells[t].tile:null)},snapToGrid:function(e){var t=this.grid.pixelToCell(e);e.copy(this.grid.cellToPixel(t))},snapTileToGrid:function(e){if(e.cell)e.position.copy(this.grid.cellToPixel(e.cell));else{var t=this.grid.pixelToCell(e.position);e.position.copy(this.grid.cellToPixel(t))}return e},getRandomTile:function(){var e=n.Tools.randomInt(0,this.tiles.length-1);return this.tiles[e]},findPath:function(e,t,n){return this.finder.findPath(e.cell,t.cell,n,this.grid)},setGrid:function(e){this.group.remove(this.tileGroup),this.grid&&e!==this.grid&&(this.removeAllTiles(),this.tiles.forEach((function(e){this.grid.remove(e.cell),e.dispose()})),this.grid.dispose()),this.grid=e,this.tiles=[],this.tileGroup=new THREE.Object3D,this.group.add(this.tileGroup)},generateOverlay:function(e){var t=new THREE.LineBasicMaterial({color:0,opacity:.3});this.overlay&&this.group.remove(this.overlay),this.overlay=new THREE.Object3D,this.grid.generateOverlay(e,this.overlay,t),this.group.add(this.overlay)},generateTilemap:function(e){this.reset();var t=this.grid.generateTiles(e);this.tiles=t,this.tileGroup=new THREE.Object3D;for(var n=0;n<t.length;n++)this.tileGroup.add(t[n].mesh);this.group.add(this.tileGroup)},reset:function(){this.removeAllTiles(),this.tileGroup&&this.group.remove(this.tileGroup)}},n.Board.prototype.constructor=n.Board,n.Cell=function(e,t,r,i){this.q=e||0,this.r=t||0,this.s=r||0,this.h=i||1,this.tile=null,this.userData={},this.walkable=!0,this._calcCost=0,this._priority=0,this._visited=!1,this._parent=null,this.uniqueID=n.LinkedList.generateID()},n.Cell.prototype={set:function(e,t,n){return this.q=e,this.r=t,this.s=n,this},copy:function(e){return this.q=e.q,this.r=e.r,this.s=e.s,this.h=e.h,this.tile=e.tile||null,this.userData=e.userData||{},this.walkable=e.walkable,this},add:function(e){return this.q+=e.q,this.r+=e.r,this.s+=e.s,this},equals:function(e){return this.q===e.q&&this.r===e.r&&this.s===e.s}},n.Cell.prototype.constructor=n.Cell,n.HexGrid=function(e){e=e||{},this.type=n.HEX,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t,r=[];for(t=0;6>t;t++)r.push(this._createVertex(t));for(this.cellShape=new THREE.Shape,this.cellShape.moveTo(r[0].x,r[0].y),t=1;6>t;t++)this.cellShape.lineTo(r[t].x,r[t].y);this.cellShape.lineTo(r[0].x,r[0].y),this.cellShape.autoClose=!0,this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=r,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this._hashDelimeter=".",this._directions=[new n.Cell(1,-1,0),new n.Cell(1,0,-1),new n.Cell(0,1,-1),new n.Cell(-1,1,0),new n.Cell(-1,0,1),new n.Cell(0,-1,1)],this._diagonals=[new n.Cell(2,-1,-1),new n.Cell(1,1,-2),new n.Cell(-1,2,-1),new n.Cell(-2,1,1),new n.Cell(-1,-1,2),new n.Cell(1,-2,1)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.HexGrid.TWO_THIRDS=2/3,n.HexGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._cellWidth*.75,this._vec3.y=e.h,this._vec3.z=-(e.s-e.r)*this._cellLength*.5,this._vec3},pixelToCell:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel)},getCellAt:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r+this._hashDelimeter+e.s},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r),Math.abs(e.s-t.s))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){var t,r,i,o;for(e=e||{},this.size="undefined"==typeof e.size?this.size:e.size,t=-this.size;t<this.size+1;t++)for(r=-this.size;r<this.size+1;r++)i=-t-r,Math.abs(t)<=this.size&&Math.abs(r)<=this.size&&Math.abs(i)<=this.size&&(o=new n.Cell(t,r,i),this.add(o))},generateOverlay:function(e,t,r){var i,o,a,s=this.cellShape.createPointsGeometry();for(i=-e;e+1>i;i++)for(o=-e;e+1>o;o++)if(a=-i-o,Math.abs(i)<=e&&Math.abs(o)<=e&&Math.abs(a)<=e){this._cel.set(i,o,a);var u=new THREE.Line(s,r);u.position.copy(this.cellToPixel(this._cel)),u.rotation.x=90*n.DEG_TO_RAD,t.add(u)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){var i=this;n.Tools.getJSON({url:e,callback:function(e){i.fromJSON(e),t.call(r||null,e)},cache:!1,scope:i})},fromJSON:function(e){var t,r,i=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<i.length;t++)(r=new n.Cell).copy(i[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n},_createVertex:function(e){var t=n.TAU/6*e;return new THREE.Vector3(this.cellSize*Math.cos(t),this.cellSize*Math.sin(t),0)},_cubeRound:function(e){var t=Math.round(e.q),n=Math.round(e.r),r=Math.round(e.s),i=Math.abs(t-e.q),o=Math.abs(n-e.r),a=Math.abs(r-e.s);return i>o&&i>a?t=-n-r:o>a?n=-t-r:r=-t-n,this._cel.set(t,n,r)}},n.HexGrid.prototype.constructor=n.HexGrid,n.SqrGrid=function(e){e=e||{},this.type=n.SQR,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t=[];t.push(new THREE.Vector3),t.push(new THREE.Vector3(-this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,-this.cellSize)),this.cellShape=new THREE.Shape,this.cellShape.moveTo(-this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,-this.cellSize),this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=t,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._fullCellSize=2*this.cellSize,this._hashDelimeter=".",this._directions=[new n.Cell(1,0,0),new n.Cell(0,-1,0),new n.Cell(-1,0,0),new n.Cell(0,1,0)],this._diagonals=[new n.Cell(-1,-1,0),new n.Cell(-1,1,0),new n.Cell(1,1,0),new n.Cell(1,-1,0)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.SqrGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._fullCellSize,this._vec3.y=e.h,this._vec3.z=e.r*this._fullCellSize,this._vec3},pixelToCell:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n,0)},getCellAt:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,i,o=this._directions.length;for(this._list.length=0,r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);if(t)for(r=0;o>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(i=this.cells[this.cellToHash(this._cel)])||n&&!n(e,i)||this._list.push(i);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var i=Math.abs(e.h);1>i&&(i=1);var o=this._geoCache[i];o||(this.extrudeSettings.amount=i,o=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[i]=o);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:o,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,i,o=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._fullCellSize=2*this.cellSize,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)i=this.cells[t],(r=this.generateTile(i,a.tileScale,a.material)).position.copy(this.cellToPixel(i)),r.position.y=0,o.push(r);return o},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){e=e||{},this.size="undefined"==typeof e.size?this.size:e.size;var t,r,i,o=Math.ceil(this.size/2);for(t=-o;o>t;t++)for(r=-o;o>r;r++)i=new n.Cell(t,r+1),this.add(i)},generateOverlay:function(e,t,r){var i,o,a=Math.ceil(e/2);for(i=-a;a>i;i++)for(o=-a;a>o;o++){this._cel.set(i,o);var s=new THREE.Line(this.cellGeo,r);s.position.copy(this.cellToPixel(this._cel)),s.rotation.x=90*n.DEG_TO_RAD,t.add(s)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){n.Tools.getJSON({url:e,callback:function(e){this.fromJSON(e),t.call(r||null,e)},cache:!1,scope:this})},fromJSON:function(e){var t,r,i=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._fullCellSize=2*this.cellSize,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<i.length;t++)(r=new n.Cell).copy(i[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n}},n.SqrGrid.prototype.constructor=n.SqrGrid,n.Tile=function(e){e=e||{};var t={cell:null,geometry:null,material:null};if(!(t=n.Tools.merge(t,e)).cell||!t.geometry)throw new Error("Missing vg.Tile configuration");this.cell=t.cell,this.cell.tile&&this.cell.tile!==this&&this.cell.tile.dispose(),this.cell.tile=this,this.uniqueID=n.Tools.generateID(),this.geometry=t.geometry,this.material=t.material,this.material||(this.material=new THREE.MeshPhongMaterial({color:n.Tools.randomizeRGB("30, 30, 30",13)})),this.objectType=n.TILE,this.entity=null,this.userData={},this.selected=!1,this.highlight="0x0084cc",this.mesh=new THREE.Mesh(this.geometry,this.material),this.mesh.userData.structure=this,this.position=this.mesh.position,this.rotation=this.mesh.rotation,this.rotation.x=-90*n.DEG_TO_RAD,this.mesh.scale.set(t.scale,t.scale,1),this.material.emissive?this._emissive=this.material.emissive.getHex():this._emissive=null},n.Tile.prototype={select:function(){return this.material.emissive&&this.material.emissive.setHex(this.highlight),this.selected=!0,this},deselect:function(){return null!==this._emissive&&this.material.emissive&&this.material.emissive.setHex(this._emissive),this.selected=!1,this},toggle:function(){return this.selected?this.deselect():this.select(),this},dispose:function(){this.cell&&this.cell.tile&&(this.cell.tile=null),this.cell=null,this.position=null,this.rotation=null,this.mesh.parent&&this.mesh.parent.remove(this.mesh),this.mesh.userData.structure=null,this.mesh=null,this.material=null,this.userData=null,this.entity=null,this.geometry=null,this._emissive=null}},n.Tile.prototype.constructor=n.Tile,function(){var e=function(){this.obj=null,this.next=null,this.prev=null,this.free=!0},t=function(){this.first=null,this.last=null,this.length=0,this.objToNodeMap={},this.uniqueID=Date.now()+""+Math.floor(1e3*Math.random()),this.sortArray=[]};t.generateID=function(){return Math.random().toString(36).slice(2)+Date.now()},(t.prototype={getNode:function(e){return this.objToNodeMap[e.uniqueID]},addNode:function(n){var r=new e;if(!n.uniqueID)try{n.uniqueID=t.generateID()}catch(i){return console.error("[LinkedList.addNode] obj passed is immutable: cannot attach necessary identifier"),null}return r.obj=n,r.free=!1,this.objToNodeMap[n.uniqueID]=r,r},swapObjects:function(e,t){this.objToNodeMap[e.obj.uniqueID]=null,this.objToNodeMap[t.uniqueID]=e,e.obj=t},add:function(e){var t=this.objToNodeMap[e.uniqueID];if(t){if(!1===t.free)return;t.obj=e,t.free=!1,t.next=null,t.prev=null}else t=this.addNode(e);if(this.first){if(!this.last)throw new Error("[LinkedList.add] No last in the list -- that shouldn't happen here");this.last.next=t,t.prev=this.last,this.last=t,t.next=null}else this.first=t,this.last=t,t.next=null,t.prev=null;this.length++,this.showDebug&&this.dump("after add")},has:function(e){return!!this.objToNodeMap[e.uniqueID]},moveUp:function(e){this.dump("before move up");var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.prev){var n=t.prev,r=n.prev;t==this.last&&(this.last=n);var i=t.next;r&&(r.next=t),t.next=n,t.prev=n.prev,n.next=i,n.prev=t,this.first==n&&(this.first=t)}},moveDown:function(e){var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.next){var n=t.next;this.moveUp(n.obj),this.last==n&&(this.last=t)}},sort:function(e){var t,n,r=this.sortArray,i=this.first;for(r.length=0;i;)r.push(i.obj),i=i.next;for(this.clear(),r.sort(e),n=r.length,t=0;n>t;t++)this.add(r[t])},remove:function(e){var t=this.getNode(e);return!(!t||t.free)&&(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev||(this.first=t.next),t.next||(this.last=t.prev),t.free=!0,t.prev=null,t.next=null,this.length--,!0)},shift:function(){var e=this.first;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first=e.next,e.next||(this.last=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},pop:function(){var e=this.last;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.last=e.prev,e.prev||(this.first=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},concat:function(e){for(var t=e.first;t;)this.add(t.obj),t=t.next},clear:function(){for(var e=this.first;e;)e.free=!0,e=e.next;this.first=null,this.length=0},dispose:function(){for(var e=this.first;e;)e.obj=null,e=e.next;this.first=null,this.objToNodeMap=null},dump:function(e){console.log("===================="+e+"=====================");for(var t=this.first;t;)console.log("{"+t.obj.toString()+"} previous="+(t.prev?t.prev.obj:"NULL")),t=t.next();console.log("==================================="),console.log("Last: {"+(this.last?this.last.obj:"NULL")+"} First: {"+(this.first?this.first.obj:"NULL")+"}")}}).constructor=t,n.LinkedList=t}(),function(){var e=function(e,t,n,r,i){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=i||0};(e.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this.isOnce&&this.detach()),t},detach:function(){return this.isBound()?this.signal.remove(this._listener,this.context):null},isBound:function(){return!!this.signal&&!!this._listener},_destroy:function(){delete this.signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this.isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}).constructor=e;var t=function(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}};t.prototype={memorize:!1,_shouldPropagate:!0,active:!0,validateListener:function(e,t){if("function"!=typeof e)throw new Error("Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))},_registerListener:function(t,n,r,i){var o,a=this._indexOfListener(t,r);if(-1!==a){if((o=this._bindings[a]).isOnce!==n)throw new Error("You cannot add"+(n?"":"Once")+"() then add"+(n?"Once":"")+"() the same listener without removing the relationship first.")}else o=new e(this,t,n,r,i),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_addBinding:function(e){var t=this._bindings.length;do{t--}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return this.validateListener(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return this.validateListener(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){this.validateListener(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(e){"undefined"==typeof e&&(e=null);for(var t=this._bindings.length;t--;)e?this._bindings[t].context===e&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)):this._bindings[t]._destroy();e||(this._bindings.length=0)},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var e,t=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=t),n){e=this._bindings.slice(),this._shouldPropagate=!0;do{n--}while(e[n]&&this._shouldPropagate&&!1!==e[n].execute(t))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},t.prototype.constructor=t,n.Signal=t}(),n.AStarFinder=function(e){e=e||{};var t={allowDiagonal:!1,heuristicFilter:null};t=n.Tools.merge(t,e),this.allowDiagonal=t.allowDiagonal,this.heuristicFilter=t.heuristicFilter,this.list=new n.LinkedList},n.AStarFinder.prototype={findPath:function(e,t,r,i){var o,a,s,u,c,l;for(r=r||this.heuristicFilter,i.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(o=this.list.shift())._visited=!0,o===t)return n.PathUtil.backtrace(t);for(c=0,l=(s=i.getNeighbors(o,this.allowDiagonal,r)).length;l>c;c++)if((u=s[c]).walkable&&(a=o._calcCost+i.distance(o,u),!u._visited||a<u._calcCost)){if(u._visited=!0,u._parent=o,u._calcCost=a,u._priority=a+i.distance(t,u),u===t)return n.PathUtil.backtrace(t);this.list.add(u)}}return null},compare:function(e,t){return e._priority-t._priority}},n.AStarFinder.prototype.constructor=n.AStarFinder,n.PathUtil={backtrace:function(e){for(var t=[e];e._parent;)e=e._parent,t.push(e);return t.reverse()},biBacktrace:function(e,t){var n=this.backtrace(e),r=this.backtrace(t);return n.concat(r.reverse())},pathLength:function(e){var t,n,r,i,o,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],i=n[0]-r[0],o=n[1]-r[1],a+=Math.sqrt(i*i+o*o);return a},interpolate:function(e,t,n,r){var i,o,a,s,u,c,l=Math.abs,d=[];for(i=n>e?1:-1,o=r>t?1:-1,u=(a=l(n-e))-(s=l(r-t));e!==n||t!==r;)d.push([e,t]),(c=2*u)>-s&&(u-=s,e+=i),a>c&&(u+=a,t+=o);return d},expandPath:function(e){var t,n,r,i,o,a,s=[],u=e.length;if(2>u)return s;for(o=0;u-1>o;++o)for(t=e[o],n=e[o+1],i=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;i-1>a;++a)s.push(r[a]);return s.push(e[u-1]),s},smoothenPath:function(e,t){var n,r,i,o,a,s,u,c,l,d,f,h,p=t.length,m=t[0][0],g=t[0][1],v=t[p-1][0],y=t[p-1][1];for(a=[[n=m,r=g]],u=2;p>u;++u){for(i=(l=t[u])[0],o=l[1],d=this.interpolate(n,r,i,o),h=!1,c=1;c<d.length;++c)if(f=d[c],!e.isWalkableAt(f[0],f[1])){h=!0;break}h&&(s=t[u-1],a.push(s),n=s[0],r=s[1])}return a.push([v,y]),a},compressPath:function(e){if(e.length<3)return e;var t,n,r,i,o,a,s=[],u=e[0][0],c=e[0][1],l=e[1][0],d=e[1][1],f=l-u,h=d-c;for(f/=o=Math.sqrt(f*f+h*h),h/=o,s.push([u,c]),a=2;a<e.length;a++)t=l,n=d,r=f,i=h,f=(l=e[a][0])-t,h=(d=e[a][1])-n,h/=o=Math.sqrt(f*f+h*h),((f/=o)!==r||h!==i)&&s.push([t,n]);return s.push([l,d]),s}},n.Loader={manager:null,imageLoader:null,crossOrigin:!1,init:function(e){this.crossOrigin=e||!1,this.manager=new THREE.LoadingManager((function(){}),(function(){}),(function(){console.warn("Error loading images")})),this.imageLoader=new THREE.ImageLoader(this.manager),this.imageLoader.crossOrigin=e},loadTexture:function(e,t,n,r){var i=new THREE.Texture(null,t);return this.imageLoader.load(e,(function(e){i.image=e,i.needsUpdate=!0,n&&n(i)}),null,(function(e){r&&r(e)})),i.sourceFile=e,i}},n.MouseCaster=function(e,t,r){this.down=!1,this.rightDown=!1,this.pickedObject=null,this.selectedObject=null,this.allHits=null,this.active=!0,this.shift=!1,this.ctrl=!1,this.wheel=0,this.position=new THREE.Vector3,this.screenPosition=new THREE.Vector2,this.signal=new n.Signal,this.group=e,this._camera=t,this._raycaster=new THREE.Raycaster,this._preventDefault=!1,(r=r||document).addEventListener("mousemove",this._onDocumentMouseMove.bind(this),!1),r.addEventListener("mousedown",this._onDocumentMouseDown.bind(this),!1),r.addEventListener("mouseup",this._onDocumentMouseUp.bind(this),!1),r.addEventListener("mousewheel",this._onMouseWheel.bind(this),!1),r.addEventListener("DOMMouseScroll",this._onMouseWheel.bind(this),!1)},n.MouseCaster.OVER="over",n.MouseCaster.OUT="out",n.MouseCaster.DOWN="down",n.MouseCaster.UP="up",n.MouseCaster.CLICK="click",n.MouseCaster.WHEEL="wheel",n.MouseCaster.prototype={update:function(){if(this.active){this._raycaster.setFromCamera(this.screenPosition,this._camera);var e,t,r=this._raycaster.intersectObject(this.group,!0);r.length>0?(t=(e=r[0]).object.userData.structure,this.pickedObject!=t&&(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=t,this.selectedObject=null,this.signal.dispatch(n.MouseCaster.OVER,this.pickedObject)),this.position.copy(e.point),this.screenPosition.z=e.distance):(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=null,this.selectedObject=null),this.allHits=r}},preventDefault:function(){this._preventDefault=!0},_onDocumentMouseDown:function(e){return(e=e||window.event).preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.pickedObject&&(this.selectedObject=this.pickedObject),this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.down=1===e.which,this.rightDown=3===e.which,void this.signal.dispatch(n.MouseCaster.DOWN,this.pickedObject))},_onDocumentMouseUp:function(e){return e.preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.signal.dispatch(n.MouseCaster.UP,this.pickedObject),this.selectedObject&&this.pickedObject&&this.selectedObject.uniqueID===this.pickedObject.uniqueID&&this.signal.dispatch(n.MouseCaster.CLICK,this.pickedObject),this.down=1!==e.which&&this.down,void(this.rightDown=3!==e.which&&this.rightDown))},_onDocumentMouseMove:function(e){e.preventDefault(),this.screenPosition.x=e.clientX/window.innerWidth*2-1,this.screenPosition.y=-e.clientY/window.innerHeight*2+1},_onMouseWheel:function(e){if(this.active){e.preventDefault(),e.stopPropagation();var t=0;void 0!==e.wheelDelta?t=e.wheelDelta:void 0!==e.detail&&(t=-e.detail),t>0?this.wheel++:this.wheel--,this.signal.dispatch(n.MouseCaster.WHEEL,this.wheel)}}},n.MouseCaster.prototype.constructor=n.MouseCaster,n.Scene=function(e,t){var r={element:document.body,alpha:!0,antialias:!0,clearColor:"#fff",sortObjects:!1,fog:null,light:new THREE.DirectionalLight(16777215),lightPosition:null,cameraType:"PerspectiveCamera",cameraPosition:null,orthoZoom:4},i={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(i=n.Tools.merge(i,t)),this.renderer=new THREE.WebGLRenderer({alpha:r.alpha,antialias:r.antialias}),this.renderer.setClearColor(r.clearColor,0),this.renderer.sortObjects=r.sortObjects,this.width=window.innerWidth,this.height=window.innerHeight,this.orthoZoom=r.orthoZoom,this.container=new THREE.Scene,this.container.fog=r.fog,this.container.add(new THREE.AmbientLight(14540253)),r.lightPosition||r.light.position.set(-1,1,-1).normalize(),this.container.add(r.light),"OrthographicCamera"===r.cameraType){var o=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(o/-2,o/2,a/2,a/-2,1,5e3)}else this.camera=new THREE.PerspectiveCamera(50,this.width/this.height,1,5e3);this.contolled=!!t,this.contolled&&(this.controls=new THREE.OrbitControls(this.camera,this.renderer.domElement),this.controls.minDistance=i.minDistance,this.controls.maxDistance=i.maxDistance,this.controls.zoomSpeed=i.zoomSpeed,this.controls.noZoom=i.noZoom),r.cameraPosition&&this.camera.position.copy(r.cameraPosition),window.addEventListener("resize",function(){if(this.width=window.innerWidth,this.height=window.innerHeight,"OrthographicCamera"===this.camera.type){var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2}else this.camera.aspect=this.width/this.height;this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height)}.bind(this),!1),this.attachTo(r.element)},n.Scene.prototype={attachTo:function(e){e.style.width=this.width+"px",e.style.height=this.height+"px",this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),e.appendChild(this.renderer.domElement)},add:function(e){this.container.add(e)},remove:function(e){this.container.remove(e)},render:function(){this.contolled&&this.controls.update(),this.renderer.render(this.container,this.camera)},updateOrthoZoom:function(){if(this.orthoZoom<=0)this.orthoZoom=0;else{var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2,this.camera.updateProjectionMatrix()}},focusOn:function(e){this.camera.lookAt(e.position)}},n.Scene.prototype.constructor=n.Scene,n.SelectionManager=function(e){this.mouse=e,this.onSelect=new n.Signal,this.onDeselect=new n.Signal,this.selected=null,this.toggleSelection=!1,this.mouse.signal.add(this.onMouse,this)},n.SelectionManager.prototype={select:function(e,t){e&&(t=t||!0,this.selected!==e&&this.clearSelection(t),e.selected?this.toggleSelection&&(t&&this.onDeselect.dispatch(e),e.deselect()):e.select(),this.selected=e,t&&this.onSelect.dispatch(e))},clearSelection:function(e){e=e||!0,this.selected&&(e&&this.onDeselect.dispatch(this.selected),this.selected.deselect()),this.selected=null},onMouse:function(e,t){switch(e){case n.MouseCaster.DOWN:t||this.clearSelection();break;case n.MouseCaster.CLICK:this.select(t)}}},n.SelectionManager.prototype.constructor=n.SelectionManager,n.Tools={clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},sign:function(e){return e&&e/Math.abs(e)},random:function(e,t){return 1===arguments.length?Math.random()*e-.5*e:Math.random()*(t-e)+e},randomInt:function(e,t){return 1===arguments.length?Math.random()*e-.5*e|0:Math.random()*(t-e+1)+e|0},normalize:function(e,t,n){return(e-t)/(n-t)},getShortRotation:function(e){return(e%=this.TAU)>this.PI?e-=this.TAU:e<-this.PI&&(e+=this.TAU),e},generateID:function(){return Math.random().toString(36).slice(2)+Date.now()},isPlainObject:function(e){if("object"!=typeof e||e.nodeType||e===e.window)return!1;try{if(e.constructor&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},merge:function(e,t){var n=this,r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach((function(t,r){"undefined"==typeof i[r]?i[r]=t:n.isPlainObject(t)?i[r]=n.merge(e[r],t):-1===e.indexOf(t)&&i.push(t)})),i):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){i[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?i[r]=n.merge(e[r],t[r]):i[r]=t[r]})),i)},now:function(){return window.nwf?window.nwf.system.Performance.elapsedTime:window.performance.now()},empty:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},radixSort:function(e,t,n,r){if(r=r||31,!((t=t||0)>=(n=n||e.length)-1||0>r)){for(var i=t,o=n,a=1<<r;o>i;)if(e[i]&a){--o;var s=e[i];e[i]=e[o],e[o]=s}else++i;this.radixSort(e,t,o,r-1),this.radixSort(e,o,n,r-1)}},randomizeRGB:function(e,t){var n,r,i=e.split(","),o="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(i[n])+t)?r=0:r>255&&(r=255),o+=r+",";return(o=o.substring(0,o.length-1))+")"},getJSON:function(e){var t=new XMLHttpRequest,n="undefined"!=typeof e.cache&&e.cache?e.url:e.url+"?t="+Math.floor(1e4*Math.random())+Date.now();t.onreadystatechange=function(){if(200!==this.status)0!==this.status&&console.warn("[Tools.getJSON] Error: "+this.status+" ("+this.statusText+") :: "+e.url);else{var t=null;try{t=JSON.parse(this.responseText)}catch(n){return}e.callback.call(e.scope||null,t)}},t.open("GET",n,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Content-Type","application/json"),t.send("")}}},77454:function(){!function(e){var t="KeyboardEvent"in e;t||(e.KeyboardEvent=function(){throw TypeError("Illegal constructor")}),"DOM_KEY_LOCATION_STANDARD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_STANDARD=0),"DOM_KEY_LOCATION_LEFT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_LEFT=1),"DOM_KEY_LOCATION_RIGHT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_RIGHT=2),"DOM_KEY_LOCATION_NUMPAD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD=3);var n=window.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,r=window.KeyboardEvent.DOM_KEY_LOCATION_LEFT,i=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,o=window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;function a(e,t){return-1!==String(e).indexOf(t)}var s=a(navigator.platform,"Win")?"win":a(navigator.platform,"Mac")?"mac":a(navigator.platform,"CrOS")?"cros":a(navigator.platform,"Linux")?"linux":a(navigator.userAgent,"iPad")||a(navigator.platform,"iPod")||a(navigator.platform,"iPhone")?"ios":"",u=a(navigator.userAgent,"Chrome/")?"chrome":a(navigator.vendor,"Apple")?"safari":a(navigator.userAgent,"MSIE")?"ie":a(navigator.userAgent,"Gecko/")?"moz":a(navigator.userAgent,"Opera/")?"opera":"",c=u+"-"+s;function l(e,t,n){c!==t&&u!==t&&s!==t||Object.keys(n).forEach((function(t){e[t]=n[t]}))}var d={3:{code:"Cancel"},6:{code:"Help"},8:{code:"Backspace"},9:{code:"Tab"},12:{code:"Clear"},13:{code:"Enter"},16:{code:"Shift"},17:{code:"Control"},18:{code:"Alt"},19:{code:"Pause"},20:{code:"CapsLock"},21:{code:"KanaMode"},22:{code:"HangulMode"},23:{code:"JunjaMode"},24:{code:"FinalMode"},25:{code:"KanjiMode"},27:{code:"Escape"},28:{code:"Convert"},29:{code:"NonConvert"},30:{code:"Accept"},31:{code:"ModeChange"},32:{code:"Space"},33:{code:"PageUp"},34:{code:"PageDown"},35:{code:"End"},36:{code:"Home"},37:{code:"ArrowLeft"},38:{code:"ArrowUp"},39:{code:"ArrowRight"},40:{code:"ArrowDown"},41:{code:"Select"},42:{code:"Print"},43:{code:"Execute"},44:{code:"PrintScreen"},45:{code:"Insert"},46:{code:"Delete"},47:{code:"Help"},48:{code:"Digit0",keyCap:"0"},49:{code:"Digit1",keyCap:"1"},50:{code:"Digit2",keyCap:"2"},51:{code:"Digit3",keyCap:"3"},52:{code:"Digit4",keyCap:"4"},53:{code:"Digit5",keyCap:"5"},54:{code:"Digit6",keyCap:"6"},55:{code:"Digit7",keyCap:"7"},56:{code:"Digit8",keyCap:"8"},57:{code:"Digit9",keyCap:"9"},65:{code:"KeyA",keyCap:"a"},66:{code:"KeyB",keyCap:"b"},67:{code:"KeyC",keyCap:"c"},68:{code:"KeyD",keyCap:"d"},69:{code:"KeyE",keyCap:"e"},70:{code:"KeyF",keyCap:"f"},71:{code:"KeyG",keyCap:"g"},72:{code:"KeyH",keyCap:"h"},73:{code:"KeyI",keyCap:"i"},74:{code:"KeyJ",keyCap:"j"},75:{code:"KeyK",keyCap:"k"},76:{code:"KeyL",keyCap:"l"},77:{code:"KeyM",keyCap:"m"},78:{code:"KeyN",keyCap:"n"},79:{code:"KeyO",keyCap:"o"},80:{code:"KeyP",keyCap:"p"},81:{code:"KeyQ",keyCap:"q"},82:{code:"KeyR",keyCap:"r"},83:{code:"KeyS",keyCap:"s"},84:{code:"KeyT",keyCap:"t"},85:{code:"KeyU",keyCap:"u"},86:{code:"KeyV",keyCap:"v"},87:{code:"KeyW",keyCap:"w"},88:{code:"KeyX",keyCap:"x"},89:{code:"KeyY",keyCap:"y"},90:{code:"KeyZ",keyCap:"z"},91:{code:"OSLeft",location:r},92:{code:"OSRight",location:i},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:o},97:{code:"Numpad1",keyCap:"1",location:o},98:{code:"Numpad2",keyCap:"2",location:o},99:{code:"Numpad3",keyCap:"3",location:o},100:{code:"Numpad4",keyCap:"4",location:o},101:{code:"Numpad5",keyCap:"5",location:o},102:{code:"Numpad6",keyCap:"6",location:o},103:{code:"Numpad7",keyCap:"7",location:o},104:{code:"Numpad8",keyCap:"8",location:o},105:{code:"Numpad9",keyCap:"9",location:o},106:{code:"NumpadMultiply",keyCap:"*",location:o},107:{code:"NumpadAdd",keyCap:"+",location:o},108:{code:"NumpadComma",keyCap:",",location:o},109:{code:"NumpadSubtract",keyCap:"-",location:o},110:{code:"NumpadDecimal",keyCap:".",location:o},111:{code:"NumpadDivide",keyCap:"/",location:o},112:{code:"F1"},113:{code:"F2"},114:{code:"F3"},115:{code:"F4"},116:{code:"F5"},117:{code:"F6"},118:{code:"F7"},119:{code:"F8"},120:{code:"F9"},121:{code:"F10"},122:{code:"F11"},123:{code:"F12"},124:{code:"F13"},125:{code:"F14"},126:{code:"F15"},127:{code:"F16"},128:{code:"F17"},129:{code:"F18"},130:{code:"F19"},131:{code:"F20"},132:{code:"F21"},133:{code:"F22"},134:{code:"F23"},135:{code:"F24"},144:{code:"NumLock",location:o},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:i},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:i},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:i},166:{code:"BrowserBack"},167:{code:"BrowserForward"},168:{code:"BrowserRefresh"},169:{code:"BrowserStop"},170:{code:"BrowserSearch"},171:{code:"BrowserFavorites"},172:{code:"BrowserHome"},173:{code:"VolumeMute"},174:{code:"VolumeDown"},175:{code:"VolumeUp"},176:{code:"MediaTrackNext"},177:{code:"MediaTrackPrevious"},178:{code:"MediaStop"},179:{code:"MediaPlayPause"},180:{code:"LaunchMail"},181:{code:"MediaSelect"},182:{code:"LaunchApp1"},183:{code:"LaunchApp2"},186:{code:"Semicolon",keyCap:";"},187:{code:"Equal",keyCap:"="},188:{code:"Comma",keyCap:","},189:{code:"Minus",keyCap:"-"},190:{code:"Period",keyCap:"."},191:{code:"Slash",keyCap:"/"},192:{code:"Backquote",keyCap:"`"},219:{code:"BracketLeft",keyCap:"["},220:{code:"Backslash",keyCap:"\\"},221:{code:"BracketRight",keyCap:"]"},222:{code:"Quote",keyCap:"'"},226:{code:"IntlBackslash",keyCap:"\\"},229:{code:"Process"},246:{code:"Attn"},247:{code:"CrSel"},248:{code:"ExSel"},249:{code:"EraseEof"},250:{code:"Play"},251:{code:"ZoomToggle"},254:{code:"Clear"}};l(d,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:o},189:{code:"NumpadSubtract",keyCap:"-",location:o}}),l(d,"moz-mac",{12:{code:"NumLock",location:o},173:{code:"Minus",keyCap:"-"}}),l(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(d,"chrome-mac",{93:{code:"OSRight",location:i}}),l(d,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),l(d,"ios",{10:{code:"Enter",location:n}}),l(d,"safari-mac",{91:{code:"OSLeft",location:r},93:{code:"OSRight",location:i},229:{code:"KeyQ",keyCap:"Q"}});var f={};"cros"===s&&(f["U+00A0"]={code:"ShiftLeft",location:r},f["U+00A1"]={code:"ShiftRight",location:i},f["U+00A2"]={code:"ControlLeft",location:r},f["U+00A3"]={code:"ControlRight",location:i},f["U+00A4"]={code:"AltLeft",location:r},f["U+00A5"]={code:"AltRight",location:i}),"chrome-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"safari-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"ios"===s&&(f["U+0010"]={code:"Function"},f["U+001C"]={code:"ArrowLeft"},f["U+001D"]={code:"ArrowRight"},f["U+001E"]={code:"ArrowUp"},f["U+001F"]={code:"ArrowDown"},f["U+0001"]={code:"Home"},f["U+0004"]={code:"End"},f["U+000B"]={code:"PageUp"},f["U+000C"]={code:"PageDown"});var h=[];h[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},h[i]={16:{code:"ShiftRight",location:i},17:{code:"ControlRight",location:i},18:{code:"AltRight",location:i}},h[o]={13:{code:"NumpadEnter",location:o}},l(h[o],"moz",{109:{code:"NumpadSubtract",location:o},107:{code:"NumpadAdd",location:o}}),l(h[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(h[i],"moz-mac",{224:{code:"OSRight",location:i}}),l(h[i],"moz-win",{91:{code:"OSRight",location:i}}),l(h[i],"mac",{93:{code:"OSRight",location:i}}),l(h[o],"chrome-mac",{12:{code:"NumLock",location:o}}),l(h[o],"safari-mac",{12:{code:"NumLock",location:o},187:{code:"NumpadAdd",location:o},189:{code:"NumpadSubtract",location:o},190:{code:"NumpadDecimal",location:o},191:{code:"NumpadDivide",location:o}});var p={ShiftLeft:{key:"Shift"},ShiftRight:{key:"Shift"},ControlLeft:{key:"Control"},ControlRight:{key:"Control"},AltLeft:{key:"Alt"},AltRight:{key:"Alt"},OSLeft:{key:"OS"},OSRight:{key:"OS"},NumpadEnter:{key:"Enter"},Space:{key:" "},Digit0:{key:"0",shiftKey:")"},Digit1:{key:"1",shiftKey:"!"},Digit2:{key:"2",shiftKey:"@"},Digit3:{key:"3",shiftKey:"#"},Digit4:{key:"4",shiftKey:"$"},Digit5:{key:"5",shiftKey:"%"},Digit6:{key:"6",shiftKey:"^"},Digit7:{key:"7",shiftKey:"&"},Digit8:{key:"8",shiftKey:"*"},Digit9:{key:"9",shiftKey:"("},KeyA:{key:"a",shiftKey:"A"},KeyB:{key:"b",shiftKey:"B"},KeyC:{key:"c",shiftKey:"C"},KeyD:{key:"d",shiftKey:"D"},KeyE:{key:"e",shiftKey:"E"},KeyF:{key:"f",shiftKey:"F"},KeyG:{key:"g",shiftKey:"G"},KeyH:{key:"h",shiftKey:"H"},KeyI:{key:"i",shiftKey:"I"},KeyJ:{key:"j",shiftKey:"J"},KeyK:{key:"k",shiftKey:"K"},KeyL:{key:"l",shiftKey:"L"},KeyM:{key:"m",shiftKey:"M"},KeyN:{key:"n",shiftKey:"N"},KeyO:{key:"o",shiftKey:"O"},KeyP:{key:"p",shiftKey:"P"},KeyQ:{key:"q",shiftKey:"Q"},KeyR:{key:"r",shiftKey:"R"},KeyS:{key:"s",shiftKey:"S"},KeyT:{key:"t",shiftKey:"T"},KeyU:{key:"u",shiftKey:"U"},KeyV:{key:"v",shiftKey:"V"},KeyW:{key:"w",shiftKey:"W"},KeyX:{key:"x",shiftKey:"X"},KeyY:{key:"y",shiftKey:"Y"},KeyZ:{key:"z",shiftKey:"Z"},Numpad0:{key:"0"},Numpad1:{key:"1"},Numpad2:{key:"2"},Numpad3:{key:"3"},Numpad4:{key:"4"},Numpad5:{key:"5"},Numpad6:{key:"6"},Numpad7:{key:"7"},Numpad8:{key:"8"},Numpad9:{key:"9"},NumpadMultiply:{key:"*"},NumpadAdd:{key:"+"},NumpadComma:{key:","},NumpadSubtract:{key:"-"},NumpadDecimal:{key:"."},NumpadDivide:{key:"/"},Semicolon:{key:";",shiftKey:":"},Equal:{key:"=",shiftKey:"+"},Comma:{key:",",shiftKey:"<"},Minus:{key:"-",shiftKey:"_"},Period:{key:".",shiftKey:">"},Slash:{key:"/",shiftKey:"?"},Backquote:{key:"`",shiftKey:"~"},BracketLeft:{key:"[",shiftKey:"{"},Backslash:{key:"\\",shiftKey:"|"},BracketRight:{key:"]",shiftKey:"}"},Quote:{key:"'",shiftKey:'"'},IntlBackslash:{key:"\\",shiftKey:"|"}};l(p,"mac",{OSLeft:{key:"Meta"},OSRight:{key:"Meta"}});var m={Esc:"Escape",Nonconvert:"NonConvert",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Menu:"ContextMenu",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",SelectMedia:"MediaSelect",HalfWidth:"Hankaku",FullWidth:"Zenkaku",RomanCharacters:"Romaji",Crsel:"CrSel",Exsel:"ExSel",Zoom:"ZoomToggle"},g=function(e,t){var n={};return Object.keys(e).forEach((function(r){var i=e[r];t in i&&(n[i[t]]=i)})),n}(d,"code");try{var v=t&&"location"in new KeyboardEvent("")}catch(b){}function y(e){var t="keyCode"in e?e.keyCode:"which"in e?e.which:0,n=function(){if(v||"keyLocation"in e){var n=v?e.location:e.keyLocation;if(n&&t in h[n])return h[n][t]}return"keyIdentifier"in e&&e.keyIdentifier in f?f[e.keyIdentifier]:t in d?d[t]:null}();if(!n)return null;var r=function(){var t=p[n.code];return t?e.shiftKey&&"shiftKey"in t?t.shiftKey:t.key:n.code}();return{code:n.code,key:r,location:n.location,keyCap:n.keyCap}}"KeyboardEvent"in e&&"defineProperty"in Object&&function(){function e(e,t,n){t in e||Object.defineProperty(e,t,n)}if(e(KeyboardEvent.prototype,"code",{get:function(){var e=y(this);return e?e.code:""}}),"key"in KeyboardEvent.prototype){var t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key");Object.defineProperty(KeyboardEvent.prototype,"key",{get:function(){var e=t.get.call(this);return m.hasOwnProperty(e)?m[e]:e}})}e(KeyboardEvent.prototype,"key",{get:function(){var e=y(this);return e&&"key"in e?e.key:"Unidentified"}}),e(KeyboardEvent.prototype,"location",{get:function(){var e=y(this);return e&&"location"in e?e.location:n}}),e(KeyboardEvent.prototype,"locale",{get:function(){return""}})}(),"queryKeyCap"in e.KeyboardEvent||(e.KeyboardEvent.queryKeyCap=function(e,t){if(e=String(e),!g.hasOwnProperty(e))return"Undefined";if(t&&"en-us"!==String(t).toLowerCase())throw Error("Unsupported locale");var n=g[e];return n.keyCap||n.code||"Undefined"}),e.identifyKey=function(e){if(!("code"in e)){var t=y(e);e.code=t?t.code:"",e.key=t&&"key"in t?t.key:"Unidentified",e.location="location"in e?e.location:"keyLocation"in e?e.keyLocation:t&&"location"in t?t.location:n,e.locale=""}}}(window)},33386:function(e){e.exports=AFRAME.registerComponent("checkpoint-controls",{schema:{enabled:{default:!0},mode:{default:"teleport",oneOf:["teleport","animate"]},animateSpeed:{default:3}},init:function(){this.active=!0,this.checkpoint=null,this.isNavMeshConstrained=!1,this.offset=new THREE.Vector3,this.position=new THREE.Vector3,this.targetPosition=new THREE.Vector3},play:function(){this.active=!0},pause:function(){this.active=!1},setCheckpoint:function(e){const t=this.el;this.active&&this.checkpoint!==e&&(this.checkpoint&&t.emit("navigation-end",{checkpoint:this.checkpoint}),this.checkpoint=e,this.sync(),this.position.distanceTo(this.targetPosition)<.1?this.checkpoint=null:(t.emit("navigation-start",{checkpoint:e}),"teleport"===this.data.mode&&(this.el.setAttribute("position",this.targetPosition),this.checkpoint=null,t.emit("navigation-end",{checkpoint:e}),t.components["movement-controls"].updateNavLocation())))},isVelocityActive:function(){return!(!this.active||!this.checkpoint)},getVelocity:function(){if(!this.active)return;const e=this.data,t=this.offset,n=this.position,r=this.targetPosition,i=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:i}),t.set(0,0,0)):(t.setLength(e.animateSpeed),t)},sync:function(){const e=this.offset,t=this.position,n=this.targetPosition;t.copy(this.el.getAttribute("position")),this.checkpoint.object3D.getWorldPosition(n),n.add(this.checkpoint.components.checkpoint.getOffset()),e.copy(n).sub(t)}})},45062:function(e,t,n){const r=n(16453),i=n(44379),o=.2,a="left",s="right",u=1,c=2;e.exports=AFRAME.registerComponent("gamepad-controls",{GamepadButton:r,schema:{enabled:{default:!0},camera:{default:"[camera]",type:"selector"},rotationSensitivity:{default:2}},init:function(){const e=this.el.sceneEl;this.system=e.systems["tracked-controls-webxr"]||{controllers:[]},this.prevTime=window.performance.now(),this.buttons={};const t=this.el.object3D.rotation;this.pitch=new THREE.Object3D,this.pitch.rotation.x=THREE.Math.degToRad(t.x),this.yaw=new THREE.Object3D,this.yaw.position.y=10,this.yaw.rotation.y=THREE.Math.degToRad(t.y),this.yaw.add(this.pitch),this._lookVector=new THREE.Vector2,this._moveVector=new THREE.Vector2,this._dpadVector=new THREE.Vector2,e.addBehavior(this)},update:function(){this.tick()},tick:function(e,t){this.updateButtonState(),this.updateRotation(t)},remove:function(){},isVelocityActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y;return Math.abs(n)>o||Math.abs(r)>o},getVelocityDelta:function(){const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y,i=new THREE.Vector3;return Math.abs(n)>o&&(i.x+=n),Math.abs(r)>o&&(i.z+=r),i},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(c,e),Math.abs(e.x)>o||Math.abs(e.y)>o},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,i=t.camera.components["look-controls"],a=i&&i.pitchObject&&i.yawObject;a&&(r.rotation.copy(i.pitchObject.rotation),n.rotation.copy(i.yawObject.rotation));const s=this._lookVector;this.getJoystick(c,s),Math.abs(s.x)<=o&&(s.x=0),Math.abs(s.y)<=o&&(s.y=0),s.multiplyScalar(t.rotationSensitivity*e/1e3),n.rotation.y-=s.x,r.rotation.x-=s.y,r.rotation.x=Math.max(-Math.PI/2,Math.min(Math.PI/2,r.rotation.x)),t.camera.object3D.rotation.set(r.rotation.x,n.rotation.y,0),a&&(i.pitchObject.rotation.copy(r.rotation),i.yawObject.rotation.copy(n.rotation))},updateButtonState:function(){const e=this.getGamepad(s);if(this.data.enabled&&e)for(var t=0;t<e.buttons.length;t++)e.buttons[t].pressed&&!this.buttons[t]?this.emit(new i("gamepadbuttondown",t,e.buttons[t])):!e.buttons[t].pressed&&this.buttons[t]&&this.emit(new i("gamepadbuttonup",t,e.buttons[t])),this.buttons[t]=e.buttons[t].pressed;else Object.keys(this.buttons)&&(this.buttons={})},emit:function(e){this.el.emit(e.type,e),this.el.emit(e.type+":"+e.index,new i(e.type,e.index,e))},getGamepad:function(){const e=[],t=[];return function(n){const r=this.el.sceneEl.components["proxy-controls"],i=r&&r.isConnected()&&r.getGamepad(0);if(i)return i;e.length=0;for(let t=0;t<this.system.controllers.length;t++){const r=this.system.controllers[t],i=r?r.gamepad:null;if(e.push(i),i&&i.handedness===n)return i}const o=navigator.getGamepads?navigator.getGamepads():t;for(let e=0;e<o.length;e++){const t=o[e];if(t&&t.hand===n)return t}return e[0]||o[0]}}(),getButton:function(e){return this.getGamepad(s).buttons[e]},getAxis:function(e){return this.getGamepad(e>1?s:a).axes[e]},getJoystick:function(e,t){const n=this.getGamepad(e===u?a:s);if("xr-standard"===n.mapping)switch(e){case u:return t.set(n.axes[2],n.axes[3]);case c:return t.set(n.axes[0],n.axes[1])}else switch(e){case u:return t.set(n.axes[0],n.axes[1]);case c:return t.set(n.axes[2],n.axes[3])}throw new Error('Unexpected joystick index "%d".',e)},getDpad:function(e){const t=this.getGamepad(a);return t.buttons[r.DPAD_RIGHT]?e.set((t.buttons[r.DPAD_RIGHT].pressed?1:0)+(t.buttons[r.DPAD_LEFT].pressed?-1:0),(t.buttons[r.DPAD_UP].pressed?-1:0)+(t.buttons[r.DPAD_DOWN].pressed?1:0)):e.set(0,0)},isConnected:function(){const e=this.getGamepad(a);return!(!e||!e.connected)},getID:function(){return this.getGamepad(a).id}})},52406:function(e,t,n){n(33386),n(45062),n(32250),n(79048),n(43819),n(99893)},32250:function(e,t,n){n(77454);const r=window.KeyboardEvent;e.exports=AFRAME.registerComponent("keyboard-controls",{schema:{enabled:{default:!0},debug:{default:!1}},init:function(){this.dVelocity=new THREE.Vector3,this.localKeys={},this.listeners={keydown:this.onKeyDown.bind(this),keyup:this.onKeyUp.bind(this),blur:this.onBlur.bind(this)},this.attachEventListeners()},isVelocityActive:function(){return this.data.enabled&&!!Object.keys(this.getKeys()).length},getVelocityDelta:function(){const e=this.data,t=this.getKeys();return this.dVelocity.set(0,0,0),e.enabled&&((t.KeyW||t.ArrowUp)&&(this.dVelocity.z-=1),(t.KeyA||t.ArrowLeft)&&(this.dVelocity.x-=1),(t.KeyS||t.ArrowDown)&&(this.dVelocity.z+=1),(t.KeyD||t.ArrowRight)&&(this.dVelocity.x+=1)),this.dVelocity.clone()},play:function(){this.attachEventListeners()},pause:function(){this.removeEventListeners()},remove:function(){this.pause()},attachEventListeners:function(){window.addEventListener("keydown",this.listeners.keydown,!1),window.addEventListener("keyup",this.listeners.keyup,!1),window.addEventListener("blur",this.listeners.blur,!1)},removeEventListeners:function(){window.removeEventListener("keydown",this.listeners.keydown),window.removeEventListener("keyup",this.listeners.keyup),window.removeEventListener("blur",this.listeners.blur)},onKeyDown:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(this.localKeys[e.code]=!0,this.emit(e))},onKeyUp:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(delete this.localKeys[e.code],this.emit(e))},onBlur:function(){for(let e in this.localKeys)this.localKeys.hasOwnProperty(e)&&delete this.localKeys[e]},emit:function(e){"__keyboard-controls-proxy"in e&&this.el.emit(e.type,e),this.el.emit(e.type+":"+e.code,new r(e.type,e)),this.data.debug&&console.log(e.type+":"+e.code)},isPressed:function(e){return e in this.getKeys()},getKeys:function(){return this.isProxied()?this.el.sceneEl.components["proxy-controls"].getKeyboard():this.localKeys},isProxied:function(){const e=this.el.sceneEl.components["proxy-controls"];return e&&e.isConnected()}})},43819:function(e){const t="-controls";e.exports=AFRAME.registerComponent("movement-controls",{dependencies:["rotation"],schema:{enabled:{default:!0},controls:{default:["gamepad","trackpad","keyboard","touch"]},speed:{default:.3,min:0},fly:{default:!1},constrainToNavMesh:{default:!1},camera:{default:"[movement-controls] [camera]",type:"selector"}},init:function(){const e=this.el;this.velocityCtrl=null,this.velocity=new THREE.Vector3,this.heading=new THREE.Quaternion,this.navGroup=null,this.navNode=null,e.sceneEl.hasLoaded?this.injectControls():e.sceneEl.addEventListener("loaded",this.injectControls.bind(this))},update:function(e){const t=this.el,n=this.data,r=t.sceneEl.systems.nav;t.sceneEl.hasLoaded&&this.injectControls(),r&&n.constrainToNavMesh!==e.constrainToNavMesh&&(n.constrainToNavMesh?r.addAgent(this):r.removeAgent(this))},injectControls:function(){const e=this.data;var n;for(let r=0;r<e.controls.length;r++)n=e.controls[r]+t,this.el.components[n]||this.el.setAttribute(n,"")},updateNavLocation:function(){this.navGroup=null,this.navNode=null},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,i){if(!i)return;const o=this.el,a=this.data;if(!a.enabled)return;this.updateVelocityCtrl();const s=this.velocityCtrl,u=this.velocity;if(s)if(i/1e3>.2?u.set(0,0,0):this.updateVelocity(i),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(u.lengthSq()<1e-5)return;e.copy(o.object3D.position),t.copy(u).multiplyScalar(i/1e3).add(e);const r=o.sceneEl.systems.nav;this.navGroup=null===this.navGroup?r.getGroup(e):this.navGroup,this.navNode=this.navNode||r.getNode(e,this.navGroup),this.navNode=r.clampStep(e,t,this.navGroup,this.navNode,n),o.object3D.position.copy(n)}else o.hasAttribute("velocity")?o.setAttribute("velocity",u):(o.object3D.position.x+=u.x*i/1e3,o.object3D.position.y+=u.y*i/1e3,o.object3D.position.z+=u.z*i/1e3)}}(),updateVelocityCtrl:function(){const e=this.data;if(e.enabled){for(let n=0,r=e.controls.length;n<r;n++){const r=this.el.components[e.controls[n]+t];if(r&&r.isVelocityActive())return void(this.velocityCtrl=r)}this.velocityCtrl=null}},updateVelocity:function(){const e=new THREE.Vector2,t=new THREE.Quaternion;return function(n){let r;const i=this.el,o=this.velocityCtrl,a=this.velocity,s=this.data;if(o){if(!o.getVelocityDelta){if(o.getVelocity)return void a.copy(o.getVelocity());if(o.getPositionDelta)return void a.copy(o.getPositionDelta(n).multiplyScalar(1e3/n));throw new Error("Incompatible movement controls: ",o)}r=o.getVelocityDelta(n)}if(i.hasAttribute("velocity")&&!s.constrainToNavMesh&&a.copy(this.el.getAttribute("velocity")),r&&s.enabled){const n=s.camera;t.copy(n.object3D.quaternion),t.premultiply(i.object3D.quaternion),r.applyQuaternion(t);const o=r.length();s.fly?(a.copy(r),a.multiplyScalar(16.66667*this.data.speed)):(e.set(r.x,r.z),e.setLength(o*this.data.speed*16.66667),a.x=e.x,a.z=e.y)}}}()})},79048:function(e){e.exports=AFRAME.registerComponent("touch-controls",{schema:{enabled:{default:!0},reverseEnabled:{default:!0}},init:function(){this.dVelocity=new THREE.Vector3,this.bindMethods(),this.direction=0},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.el.sceneEl,t=e.canvas;t?(t.addEventListener("touchstart",this.onTouchStart),t.addEventListener("touchend",this.onTouchEnd)):e.addEventListener("render-target-loaded",this.addEventListeners.bind(this))},removeEventListeners:function(){const e=this.el.sceneEl&&this.el.sceneEl.canvas;e&&(e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchend",this.onTouchEnd))},isVelocityActive:function(){return this.data.enabled&&!!this.direction},getVelocityDelta:function(){return this.dVelocity.z=this.direction,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)},onTouchStart:function(e){this.direction=-1,this.data.reverseEnabled&&2===e.touches.length&&(this.direction=1),e.preventDefault()},onTouchEnd:function(e){this.direction=0,e.preventDefault()}})},99893:function(e){e.exports=AFRAME.registerComponent("trackpad-controls",{schema:{enabled:{default:!0},enableNegX:{default:!0},enablePosX:{default:!0},enableNegZ:{default:!0},enablePosZ:{default:!0},mode:{default:"touch",oneOf:["swipe","touch","press"]}},init:function(){this.dVelocity=new THREE.Vector3,this.zVel=0,this.xVel=0,this.bindMethods()},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.data,t=this.el.sceneEl;switch(t.addEventListener("axismove",this.onAxisMove),e.mode){case"swipe":case"touch":t.addEventListener("trackpadtouchstart",this.onTouchStart),t.addEventListener("trackpadtouchend",this.onTouchEnd);break;case"press":t.addEventListener("trackpaddown",this.onTouchStart),t.addEventListener("trackpadup",this.onTouchEnd)}},removeEventListeners:function(){const e=this.el.sceneEl;e.removeEventListener("axismove",this.onAxisMove),e.removeEventListener("trackpadtouchstart",this.onTouchStart),e.removeEventListener("trackpadtouchend",this.onTouchEnd),e.removeEventListener("trackpaddown",this.onTouchStart),e.removeEventListener("trackpadup",this.onTouchEnd)},isVelocityActive:function(){return this.data.enabled&&this.isMoving},getVelocityDelta:function(){return this.dVelocity.z=this.isMoving?-this.zVel:1,this.dVelocity.x=this.isMoving?this.xVel:1,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onAxisMove=this.onAxisMove.bind(this)},onTouchStart:function(e){switch(this.data.mode){case"swipe":this.canRecordAxis=!0,this.startingAxisData=[];break;case"touch":case"press":this.isMoving=!0}e.preventDefault()},onTouchEnd:function(e){"swipe"==this.data.mode&&(this.startingAxisData=[]),this.isMoving=!1,e.preventDefault()},onAxisMove:function(e){switch(this.data.mode){case"swipe":return this.handleSwipeAxis(e);case"touch":case"press":return this.handleTouchAxis(e)}},handleSwipeAxis:function(e){const t=this.data,n=e.detail.axis;if(0===this.startingAxisData.length&&this.canRecordAxis&&(this.canRecordAxis=!1,this.startingAxisData[0]=n[0],this.startingAxisData[1]=n[1]),this.startingAxisData.length>0){let e=0,r=0;t.enableNegX&&n[0]<this.startingAxisData[0]&&(e=-1),t.enablePosX&&n[0]>this.startingAxisData[0]&&(e=1),t.enablePosZ&&n[1]>this.startingAxisData[1]&&(r=-1),t.enableNegZ&&n[1]<this.startingAxisData[1]&&(r=1);const i=Math.abs(this.startingAxisData[1]-n[1]);Math.abs(this.startingAxisData[0]-n[0])>i?(this.zVel=0,this.xVel=e,this.isMoving=!0):(this.xVel=0,this.zVel=r,this.isMoving=!0)}},handleTouchAxis:function(e){const t=this.data,n=e.detail.axis;let r=0,i=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(i=-1),t.enableNegZ&&n[1]<0&&(i=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=i)}})},76591:function(e){const t={once:THREE.LoopOnce,repeat:THREE.LoopRepeat,pingpong:THREE.LoopPingPong};function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}e.exports=AFRAME.registerComponent("animation-mixer",{schema:{clip:{default:"*"},duration:{default:0},clampWhenFinished:{default:!1,type:"boolean"},crossFadeDuration:{default:0},loop:{default:"repeat",oneOf:Object.keys(t)},repetitions:{default:1/0,min:0},timeScale:{default:1}},init:function(){this.model=null,this.mixer=null,this.activeActions=[];const e=this.el.getObject3D("mesh");e?this.load(e):this.el.addEventListener("model-loaded",(e=>{this.load(e.detail.model)}))},load:function(e){const t=this.el;this.model=e,this.mixer=new THREE.AnimationMixer(e),this.mixer.addEventListener("loop",(e=>{t.emit("animation-loop",{action:e.action,loopDelta:e.loopDelta})})),this.mixer.addEventListener("finished",(e=>{t.emit("animation-finished",{action:e.action,direction:e.direction})})),this.data.clip&&this.update({})},remove:function(){this.mixer&&this.mixer.stopAllAction()},update:function(e){if(!e)return;const n=this.data,r=AFRAME.utils.diff(n,e);if("clip"in r)return this.stopAction(),void(n.clip&&this.playAction());this.activeActions.forEach((e=>{"duration"in r&&n.duration&&e.setDuration(n.duration),"clampWhenFinished"in r&&(e.clampWhenFinished=n.clampWhenFinished),("loop"in r||"repetitions"in r)&&e.setLoop(t[n.loop],n.repetitions),"timeScale"in r&&e.setEffectiveTimeScale(n.timeScale)}))},stopAction:function(){const e=this.data;for(let t=0;t<this.activeActions.length;t++)e.crossFadeDuration?this.activeActions[t].fadeOut(e.crossFadeDuration):this.activeActions[t].stop();this.activeActions.length=0},playAction:function(){if(!this.mixer)return;const e=this.model,r=this.data,i=e.animations||(e.geometry||{}).animations||[];if(!i.length)return;const o=(a=r.clip,new RegExp("^"+a.split(/\*+/).map(n).join(".*")+"$"));var a;for(let n,s=0;n=i[s];s++)if(n.name.match(o)){const i=this.mixer.clipAction(n,e);i.enabled=!0,i.clampWhenFinished=r.clampWhenFinished,r.duration&&i.setDuration(r.duration),1!==r.timeScale&&i.setEffectiveTimeScale(r.timeScale),i.setLoop(t[r.loop],r.repetitions).fadeIn(r.crossFadeDuration).play(),this.activeActions.push(i)}},tick:function(e,t){this.mixer&&!isNaN(t)&&this.mixer.update(t/1e3)}})},62290:function(e,t,n){THREE.ColladaLoader=n(20203),e.exports.Component=AFRAME.registerComponent("collada-model-legacy",{schema:{type:"asset"},init:function(){this.model=null,this.loader=new THREE.ColladaLoader},update:function(){var e=this,t=this.el,n=this.data,r=this.el.sceneEl.systems.renderer;n&&(this.remove(),this.loader.load(n,(function(n){e.model=n.scene,e.model.traverse((function(e){if(e.isMesh){var t=e.material;t.color&&r.applyColorCorrection(t.color),t.map&&r.applyColorCorrection(t.map),t.emissive&&r.applyColorCorrection(t.emissive),t.emissiveMap&&r.applyColorCorrection(t.emissiveMap)}})),t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"collada",model:e.model})})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},5310:function(e,t,n){THREE.FBXLoader=n(99434),e.exports=AFRAME.registerComponent("fbx-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){const e=this.data;if(!e.src)return;this.remove();const t=new THREE.FBXLoader;e.crossorigin&&t.setCrossOrigin(e.crossorigin),t.load(e.src,this.load.bind(this))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"fbx",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},88837:function(e,t,n){const r=n(34657)(),i=function(){let e;return function(){return e=e||r("https://cdn.jsdelivr.net/gh/mrdoob/three.js@r86/examples/js/loaders/GLTFLoader.js"),e}}();e.exports=AFRAME.registerComponent("gltf-model-legacy",{schema:{type:"model"},init:function(){this.model=null,this.loader=null,this.loaderPromise=i().then((()=>{this.loader=new THREE.GLTFLoader,this.loader.setCrossOrigin("Anonymous")}))},update:function(){const e=this,t=this.el,n=this.data;n&&(this.remove(),this.loaderPromise.then((()=>{this.loader.load(n,(function(n){e.model=n.scene,e.model.animations=n.animations,t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"gltf",model:e.model})}))})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},29874:function(e,t,n){n(76591),n(62290),n(5310),n(88837),n(30171)},30171:function(e){e.exports=AFRAME.registerComponent("object-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){let e;const t=this.data;t.src&&(this.remove(),e=new THREE.ObjectLoader,t.crossorigin&&e.setCrossOrigin(t.crossorigin),e.load(t.src,(e=>{e.traverse((e=>{e instanceof THREE.SkinnedMesh&&e.material&&(e.material.skinning=!!(e.geometry&&e.geometry.bones||[]).length)})),this.load(e)})))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"json",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},37642:function(e){e.exports=AFRAME.registerComponent("checkpoint",{schema:{offset:{default:{x:0,y:0,z:0},type:"vec3"}},init:function(){this.active=!1,this.targetEl=null,this.fire=this.fire.bind(this),this.offset=new THREE.Vector3},update:function(){this.offset.copy(this.data.offset)},play:function(){this.el.addEventListener("click",this.fire)},pause:function(){this.el.removeEventListener("click",this.fire)},remove:function(){this.pause()},fire:function(){const e=this.el.sceneEl.querySelector("[checkpoint-controls]");if(!e)throw new Error("No `checkpoint-controls` component found.");e.components["checkpoint-controls"].setCheckpoint(this.el)},getOffset:function(){return this.offset.copy(this.data.offset)}})},74795:function(e){function t(e,t,n,r){e&&(t=t||[],e.traverse((e=>{if(!e.isMesh)return;var i;((i=e.material)?Array.isArray(i)?i:i.materials?i.materials:[i]:[]).forEach((e=>{e&&!("envMap"in e)||t.length&&-1===t.indexOf(e.name)||(e.envMap=n,e.reflectivity=r,e.needsUpdate=!0)}))})))}e.exports=AFRAME.registerComponent("cube-env-map",{multiple:!0,schema:{path:{default:""},extension:{default:"jpg",oneOf:["jpg","png"]},format:{default:"RGBFormat",oneOf:["RGBFormat","RGBAFormat"]},enableBackground:{default:!1},reflectivity:{default:1,min:0,max:1},materials:{default:[]}},init:function(){const e=this.data;this.texture=(new THREE.CubeTextureLoader).load([e.path+"posx."+e.extension,e.path+"negx."+e.extension,e.path+"posy."+e.extension,e.path+"negy."+e.extension,e.path+"posz."+e.extension,e.path+"negz."+e.extension]),this.texture.format=THREE[e.format],this.object3dsetHandler=()=>{const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,this.texture,n.reflectivity)},this.el.addEventListener("object3dset",this.object3dsetHandler)},update:function(e){const n=this.data,r=this.el.getObject3D("mesh");let i=[],o=[];if(n.materials.length&&(e.materials?(i=n.materials.filter((t=>!e.materials.includes(t))),o=e.materials.filter((e=>!n.materials.includes(e)))):i=n.materials),i.length&&t(r,i,this.texture,n.reflectivity),o.length&&t(r,o,null,1),e.materials&&n.reflectivity!==e.reflectivity){const i=n.materials.filter((t=>e.materials.includes(t)));i.length&&t(r,i,this.texture,n.reflectivity)}this.data.enableBackground&&!e.enableBackground?this.setBackground(this.texture):!this.data.enableBackground&&e.enableBackground&&this.setBackground(null)},remove:function(){this.el.removeEventListener("object3dset",this.object3dsetHandler);const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,null,1),n.enableBackground&&this.setBackground(null)},setBackground:function(e){this.el.sceneEl.object3D.background=e}})},79511:function(e){e.exports=AFRAME.registerComponent("grab",{init:function(){this.system=this.el.sceneEl.systems.physics,this.GRABBED_STATE="grabbed",this.grabbing=!1,this.hitEl=null,this.physics=this.el.sceneEl.systems.physics,this.constraint=null,this.onHit=this.onHit.bind(this),this.onGripOpen=this.onGripOpen.bind(this),this.onGripClose=this.onGripClose.bind(this)},play:function(){const e=this.el;e.addEventListener("hit",this.onHit),e.addEventListener("gripdown",this.onGripClose),e.addEventListener("gripup",this.onGripOpen),e.addEventListener("trackpaddown",this.onGripClose),e.addEventListener("trackpadup",this.onGripOpen),e.addEventListener("triggerdown",this.onGripClose),e.addEventListener("triggerup",this.onGripOpen)},pause:function(){const e=this.el;e.removeEventListener("hit",this.onHit),e.removeEventListener("gripdown",this.onGripClose),e.removeEventListener("gripup",this.onGripOpen),e.removeEventListener("trackpaddown",this.onGripClose),e.removeEventListener("trackpadup",this.onGripOpen),e.removeEventListener("triggerdown",this.onGripClose),e.removeEventListener("triggerup",this.onGripOpen)},onGripClose:function(){this.grabbing=!0},onGripOpen:function(){const e=this.hitEl;this.grabbing=!1,e&&(e.removeState(this.GRABBED_STATE),this.hitEl=void 0,this.system.removeConstraint(this.constraint),this.constraint=null)},onHit:function(e){const t=e.detail.el;t&&!t.is(this.GRABBED_STATE)&&this.grabbing&&!this.hitEl&&(t.addState(this.GRABBED_STATE),this.hitEl=t,this.constraint=new CANNON.LockConstraint(this.el.body,t.body),this.system.addConstraint(this.constraint))}})},59236:function(e,t,n){n(37642),n(74795),n(79511),n(70765),n(80837),n(58310),n(78240),n(91790)},70765:function(e){e.exports=AFRAME.registerComponent("jump-ability",{dependencies:["velocity"],schema:{on:{default:"keydown:Space gamepadbuttondown:0"},playerHeight:{default:1.764},maxJumps:{default:1},distance:{default:5},debug:{default:!1}},init:function(){this.velocity=0,this.numJumps=0;const e=this.beginJump.bind(this),t=this.data.on.split(" ");this.bindings={};for(let n=0;n<t.length;n++)this.bindings[t[n]]=e,this.el.addEventListener(t[n],e);this.bindings.collide=this.onCollide.bind(this),this.el.addEventListener("collide",this.bindings.collide)},remove:function(){for(var e in this.bindings)this.bindings.hasOwnProperty(e)&&(this.el.removeEventListener(e,this.bindings[e]),delete this.bindings[e]);this.el.removeEventListener("collide",this.bindings.collide),delete this.bindings.collide},beginJump:function(){if(this.numJumps<this.data.maxJumps){const e=this.data,t=Math.sqrt(-2*e.distance*-24.8),n=this.el.getAttribute("velocity");this.el.setAttribute("velocity",{x:n.x,y:t,z:n.z}),this.numJumps++,this.el.emit("jumpstart")}},onCollide:function(){this.numJumps>0&&this.el.emit("jumpend"),this.numJumps=0}})},80837:function(e){const t=1e-6;e.exports=AFRAME.registerComponent("kinematic-body",{dependencies:["velocity"],schema:{mass:{default:5},radius:{default:1.3},linearDamping:{default:.05},enableSlopes:{default:!0},enableJumps:{default:!1}},init:function(){this.system=this.el.sceneEl.systems.physics,this.system.addComponent(this);const e=this.el,t=this.data,n=(new CANNON.Vec3).copy(e.object3D.getWorldPosition(new THREE.Vector3));this.body=new CANNON.Body({material:this.system.getMaterial("staticMaterial"),position:n,mass:t.mass,linearDamping:t.linearDamping,fixedRotation:!0}),this.body.addShape(new CANNON.Sphere(t.radius),new CANNON.Vec3(0,t.radius,0)),this.body.el=this.el,this.el.body=this.body,this.system.addBody(this.body),e.hasAttribute("wasd-controls")&&console.warn("[kinematic-body] Not compatible with wasd-controls, use movement-controls.")},remove:function(){this.system.removeBody(this.body),this.system.removeComponent(this),delete this.el.body},beforeStep:function(e,t){if(!t)return;const n=this.el,r=this.data,i=this.body;r.enableJumps||i.velocity.set(0,0,0),i.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,i=new THREE.Vector3;return function(o,a){if(!a)return;let s,u,c=this.body,l=this.data,d=!1,f=-1/0,h=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),i.set(0,0,0),e.copy(this.el.getAttribute("velocity")),c.velocity.copy(e);for(var p,m=0;p=h[m];m++)if(p.enabled){if(c.id===p.bi.id)p.ni.negate(r);else{if(c.id!==p.bj.id)continue;r.copy(p.ni)}d=c.velocity.dot(r)<-t,d&&r.y<=.5?e.projectOnPlane(r):r.y>.5&&(s=c.id===p.bi.id?Math.abs(p.rj.y+p.bj.position.y):Math.abs(p.ri.y+p.bi.position.y),s>f&&(f=s,i.copy(r),u=c.id===p.bi.id?p.bj:p.bi))}n.copy(e).normalize(),u&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?i.y<1-t&&i.copy(this.raycastToGround(u,i)):i.set(0,1,0),e.projectOnPlane(i)):this.system.driver.world&&e.add(this.system.driver.world.gravity.scale(4*a/1e3)),c.velocity.copy(e),this.el.setAttribute("velocity",c.velocity),this.el.setAttribute("position",c.position)}}(),raycastToGround:function(e,t){let n,r,i=this.body.position,o=this.body.position.clone();return n=new CANNON.Ray(i,o),n._updateDirection(),n.intersectBody(e),n.hasHit?(r=n.result.hitNormalWorld,Math.abs(r.y)>Math.abs(t.y)?r:t):t}})},58310:function(e){e.exports=AFRAME.registerComponent("mesh-smooth",{init:function(){this.el.addEventListener("model-loaded",(e=>{e.detail.model.traverse((e=>{e.isMesh&&e.geometry.computeVertexNormals()}))}))}})},78240:function(e){e.exports=AFRAME.registerComponent("normal-material",{init:function(){this.material=new THREE.MeshNormalMaterial({flatShading:!0}),this.applyMaterial=this.applyMaterial.bind(this),this.el.addEventListener("object3dset",this.applyMaterial)},remove:function(){this.el.removeEventListener("object3dset",this.applyMaterial)},applyMaterial:function(){this.el.object3D.traverse((e=>{e.isMesh&&(e.material=this.material)}))}})},91790:function(e){e.exports=AFRAME.registerComponent("sphere-collider",{schema:{objects:{default:""},state:{default:"collided"},radius:{default:.05},watch:{default:!0}},init:function(){this.observer=null,this.els=[],this.collisions=[],this.handleHit=this.handleHit.bind(this),this.handleHitEnd=this.handleHitEnd.bind(this)},remove:function(){this.pause()},play:function(){const e=this.el.sceneEl;this.data.watch&&(this.observer=new MutationObserver(this.update.bind(this,null)),this.observer.observe(e,{childList:!0,subtree:!0}))},pause:function(){this.observer&&(this.observer.disconnect(),this.observer=null)},update:function(){const e=this.data;let t;t=e.objects?this.el.sceneEl.querySelectorAll(e.objects):this.el.sceneEl.children,this.els=Array.prototype.slice.call(t)},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,i=new THREE.Box3,o=new Map;return function(){const a=this.el,s=this.data,u=a.getObject3D("mesh"),c=[];let l;var d;u&&(o.clear(),a.object3D.getWorldPosition(e),a.object3D.getWorldScale(n),l=s.radius*(d=n,Math.max.apply(null,d.toArray())),this.els.forEach((function(n){let a,s,u,d;if(!n.isEntity)return;if(s=n.getObject3D("mesh"),!s)return;if(i.setFromObject(s).getSize(r),d=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*d*d),i.getCenter(t),!a)return;u=e.distanceTo(t),u<a+l&&(c.push(n),o.set(n,u))})),c.sort(((e,t)=>o.get(e)>o.get(t)?1:-1)).forEach(this.handleHit),0===c.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!o.has(e))).forEach(this.handleHitEnd),this.collisions=c)}}(),handleHit:function(e){e.emit("hit"),e.addState(this.data.state),this.el.emit("hit",{el:e})},handleHitEnd:function(e){e.emit("hitend"),e.removeState(this.data.state),this.el.emit("hitend",{el:e})}})},82578:function(e,t,n){n(38453),n(11250),n(31465)},11250:function(e){e.exports=AFRAME.registerComponent("nav-agent",{schema:{destination:{type:"vec3"},active:{default:!1},speed:{default:2}},init:function(){this.system=this.el.sceneEl.systems.nav,this.system.addAgent(this),this.group=null,this.path=[],this.raycaster=new THREE.Raycaster},remove:function(){this.system.removeAgent(this)},update:function(){this.path.length=0},updateNavLocation:function(){this.group=null,this.path=[]},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,i){const o=this.el,a=this.data,s=this.raycaster,u=a.speed*i/1e3;if(!a.active)return;if(!this.path.length){const t=this.el.object3D.position;this.group=this.group||this.system.getGroup(t),this.path=this.system.getPath(t,e.copy(a.destination),this.group)||[],o.emit("navigation-start")}if(!this.path.length)return console.warn("[nav] Unable to find path to %o.",a.destination),this.el.setAttribute("nav-agent",{active:!1}),void o.emit("navigation-end");const c=o.object3D.position,l=this.path[0];t.subVectors(l,c);let d;if(t.length()<u){if(this.path.shift(),!this.path.length)return this.el.setAttribute("nav-agent",{active:!1}),void o.emit("navigation-end");n.copy(c),d=this.path[0]}else n.copy(t.setLength(u)).add(c),d=l;d.y=c.y,o.object3D.lookAt(d),s.ray.origin.copy(n),s.ray.origin.y+=1.5,s.ray.direction.y=-1;const f=s.intersectObject(this.system.getNavMesh());f.length?(t.subVectors(f[0].point,c),c.add(t.setLength(u))):c.copy(n)}}()})},38453:function(e){e.exports=AFRAME.registerComponent("nav-mesh",{init:function(){this.system=this.el.sceneEl.systems.nav,this.hasLoadedNavMesh=!1,this.el.addEventListener("object3dset",this.loadNavMesh.bind(this))},play:function(){this.hasLoadedNavMesh||this.loadNavMesh()},loadNavMesh:function(){const e=this.el.getObject3D("mesh"),t=this.el.sceneEl.object3D;if(!e)return;let n;if(e.traverse((e=>{e.isMesh&&(n=e)})),!n)return;const r=n.geometry.isBufferGeometry?(new THREE.Geometry).fromBufferGeometry(n.geometry):n.geometry.clone();t.updateMatrixWorld(),r.applyMatrix(n.matrixWorld),this.system.setNavMeshGeometry(r),this.hasLoadedNavMesh=!0}})},31465:function(e,t,n){const{Pathfinding:r}=n(56594),i=new r,o="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),i.setZoneData(o,r.createZone(e)),Array.from(this.agents).forEach((e=>e.updateNavLocation()))},getNavMesh:function(){return this.navMesh},addAgent:function(e){this.agents.add(e)},removeAgent:function(e){this.agents.delete(e)},getPath:function(e,t,n){return this.navMesh?i.findPath(e,t,o,n):null},getGroup:function(e){return this.navMesh?i.getGroup(o,e):null},getNode:function(e,t){return this.navMesh?i.getClosestNode(e,o,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?i.clampStep(e,t,r,o,n,a):(a.copy(t),this.getNode(t,n)):(a.copy(t),null)}})},50386:function(e){e.exports=AFRAME.registerPrimitive("a-grid",{defaultComponents:{geometry:{primitive:"plane",width:75,height:75},rotation:{x:-90,y:0,z:0},material:{src:"url(https://cdn.jsdelivr.net/gh/donmccurdy/[email protected]/assets/grid.png)",repeat:"75 75"}},mappings:{width:"geometry.width",height:"geometry.height",src:"material.src"}})},23535:function(e,t,n){const r=n(63471),i=n(82667);e.exports.Primitive=AFRAME.registerPrimitive("a-hexgrid",{defaultComponents:{hexgrid:{}},mappings:{src:"hexgrid.src"}}),e.exports.Component=AFRAME.registerComponent("hexgrid",{dependencies:["material"],schema:{src:{type:"asset"}},init:function(){const e=this.data;e.src?fetch(e.src).then((e=>e.json())).then((e=>this.addMesh(e))):this.addMesh(i)},addMesh:function(e){const t=new r.HexGrid;t.fromJSON(e);const n=new r.Board(t);n.generateTilemap(),this.el.setObject3D("mesh",n.group),this.addMaterial()},addMaterial:function(){const e=(this.el.components.material||{}).material;e&&this.el.object3D.traverse((t=>{t.isMesh&&(t.material=e)}))},remove:function(){this.el.removeObject3D("mesh")}})},59307:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-ocean",{defaultComponents:{ocean:{},rotation:{x:-90,y:0,z:0}},mappings:{width:"ocean.width",depth:"ocean.depth",density:"ocean.density",amplitude:"ocean.amplitude",amplitudeVariance:"ocean.amplitudeVariance",speed:"ocean.speed",speedVariance:"ocean.speedVariance",color:"ocean.color",opacity:"ocean.opacity"}}),e.exports.Component=AFRAME.registerComponent("ocean",{schema:{width:{default:10,min:0},depth:{default:10,min:0},density:{default:10},amplitude:{default:.1},amplitudeVariance:{default:.3},speed:{default:1},speedVariance:{default:2},color:{default:"#7AD2F7",type:"color"},opacity:{default:.8}},play:function(){const e=this.el,t=this.data;let n=e.components.material;const r=new THREE.PlaneGeometry(t.width,t.depth,t.density,t.density);r.mergeVertices(),this.waves=[];for(let i,o=0,a=r.vertices.length;o<a;o++)i=r.vertices[o],this.waves.push({z:i.z,ang:Math.random()*Math.PI*2,amp:t.amplitude+Math.random()*t.amplitudeVariance,speed:(t.speed+Math.random()*t.speedVariance)/1e3});n||(n={},n.material=new THREE.MeshPhongMaterial({color:t.color,transparent:t.opacity<1,opacity:t.opacity,shading:THREE.FlatShading})),this.mesh=new THREE.Mesh(r,n.material),e.setObject3D("mesh",this.mesh)},remove:function(){this.el.removeObject3D("mesh")},tick:function(e,t){if(!t)return;const n=this.mesh.geometry.vertices;for(let r,i,o=0;r=n[o];o++)i=this.waves[o],r.z=i.z+Math.sin(i.ang)*i.amp,i.ang+=i.speed*t;this.mesh.geometry.verticesNeedUpdate=!0}})},50699:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-tube",{defaultComponents:{tube:{}},mappings:{path:"tube.path",segments:"tube.segments",radius:"tube.radius","radial-segments":"tube.radialSegments",closed:"tube.closed"}}),e.exports.Component=AFRAME.registerComponent("tube",{schema:{path:{default:[]},segments:{default:64},radius:{default:1},radialSegments:{default:8},closed:{default:!1}},init:function(){const e=this.el,t=this.data;let n=e.components.material;if(!t.path.length)return void console.error("[a-tube] `path` property expected but not found.");const r=new THREE.CatmullRomCurve3(t.path.map((function(e){return e=e.split(" "),new THREE.Vector3(Number(e[0]),Number(e[1]),Number(e[2]))}))),i=new THREE.TubeGeometry(r,t.segments,t.radius,t.radialSegments,t.closed);n||(n={},n.material=new THREE.MeshPhongMaterial),this.mesh=new THREE.Mesh(i,n.material),this.el.setObject3D("mesh",this.mesh)},update:function(e){Object.keys(e).length&&(this.remove(),this.init())},remove:function(){this.mesh&&this.el.removeObject3D("mesh")}})},36699:function(e,t,n){n(50386),n(23535),n(59307),n(50699)},31359:function(e,t,n){if("undefined"===typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");let r=n(92539);"default"in r&&(r=r.default);let i=n(81398);"default"in i&&(i=i.default);const o=function(e){return"string"===typeof e?JSON.parse(e):e},a=function(e){if("function"===typeof e)return e;const t=eval;try{return t("("+e+")")}catch(n){}return null},s=function(e){return isNaN(parseFloat(e))?a(e)?a(e):e:parseFloat(e)};AFRAME.registerComponent("forcegraph",{schema:{jsonUrl:{type:"string",default:""},nodes:{parse:o,default:[]},links:{parse:o,default:[]},numDimensions:{type:"number",default:3},dagMode:{type:"string",default:""},dagLevelDistance:{type:"number",default:0},dagNodeFilter:{parse:a,function:()=>!0},onDagError:{parse:a,default:void 0},nodeRelSize:{type:"number",default:4},nodeId:{type:"string",default:"id"},nodeVal:{parse:s,default:"val"},nodeResolution:{type:"number",default:8},nodeVisibility:{parse:s,default:!0},nodeColor:{parse:s,default:"color"},nodeAutoColorBy:{parse:s,default:""},nodeOpacity:{type:"number",default:.75},nodeThreeObject:{parse:s,default:null},nodeThreeObjectExtend:{parse:s,default:!1},linkSource:{type:"string",default:"source"},linkTarget:{type:"string",default:"target"},linkVisibility:{parse:s,default:!0},linkColor:{parse:s,default:"color"},linkAutoColorBy:{parse:s,default:""},linkOpacity:{type:"number",default:.2},linkWidth:{parse:s,default:0},linkResolution:{type:"number",default:6},linkCurvature:{parse:s,default:0},linkCurveRotation:{parse:s,default:0},linkMaterial:{parse:s,default:null},linkThreeObject:{parse:s,default:null},linkThreeObjectExtend:{parse:s,default:!1},linkPositionUpdate:{parse:a,default:null},linkDirectionalArrowLength:{parse:s,default:0},linkDirectionalArrowColor:{parse:s,default:null},linkDirectionalArrowRelPos:{parse:s,default:.5},linkDirectionalArrowResolution:{type:"number",default:8},linkDirectionalParticles:{parse:s,default:0},linkDirectionalParticleSpeed:{parse:s,default:.01},linkDirectionalParticleWidth:{parse:s,default:.5},linkDirectionalParticleColor:{parse:s,default:null},linkDirectionalParticleResolution:{type:"number",default:4},onNodeHover:{parse:a,default:()=>{}},onLinkHover:{parse:a,default:()=>{}},onNodeClick:{parse:a,default:()=>{}},onLinkClick:{parse:a,default:()=>{}},forceEngine:{type:"string",default:"d3"},d3AlphaMin:{type:"number",default:0},d3AlphaDecay:{type:"number",default:.0228},d3VelocityDecay:{type:"number",default:.4},ngraphPhysics:{parse:o,default:null},warmupTicks:{type:"int",default:0},cooldownTicks:{type:"int",default:1e18},cooldownTime:{type:"int",default:15e3},onEngineTick:{parse:a,default:function(){}},onEngineStop:{parse:a,default:function(){}}},getGraphBbox:function(){return this.forceGraph||(this.forceGraph=new i),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new i);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new i);const e=this.forceGraph,t=e.d3Force.apply(e,arguments);return t===e?this:t},d3ReheatSimulation:function(){return this.forceGraph&&this.forceGraph.d3ReheatSimulation(),this},refresh:function(){return this.forceGraph&&this.forceGraph.refresh(),this},init:function(){const e=this.state={};e.infoEl=document.createElement("a-text"),e.infoEl.setAttribute("position","0 -0.1 -1"),e.infoEl.setAttribute("width",1),e.infoEl.setAttribute("align","center"),e.infoEl.setAttribute("color","lavender");const t=document.querySelector("a-entity[camera], a-camera");t.appendChild(e.infoEl),e.cameraObj=t.object3D.children.filter((function(e){return"PerspectiveCamera"===e.type}))[0],this.el.sceneEl.addEventListener("camera-set-active",(function(t){e.cameraObj=t.detail.cameraEl.components.camera.camera})),this.forceGraph||(this.forceGraph=new i),this.forceGraph.onFinishUpdate((()=>this.el.setObject3D("forcegraphGroup",this.forceGraph))).onLoading((()=>e.infoEl.setAttribute("value","Loading..."))).onFinishLoading((()=>e.infoEl.setAttribute("value",""))),this.el.addEventListener("raycaster-intersected",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("raycaster-intersected-cleared",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("click",(()=>e.hoverObj&&this.data["on"+("node"===e.hoverObj.__graphObjType?"Node":"Link")+"Click"](e.hoverObj.__data)))},remove:function(){this.state.infoEl.remove(),this.el.removeObject3D("forcegraphGroup")},update:function(e){const t=this,n=this.data,r=AFRAME.utils.diff(n,e);["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].filter((function(e){return e in r})).forEach((function(e){t.forceGraph[e](""!==n[e]?n[e]:null)})),("nodes"in r||"links"in r)&&t.forceGraph.graphData({nodes:n.nodes,links:n.links})},tick:function(e,t){const n=this.state,r=this.data,i=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let o=i?i.object:void 0;for(;o&&!o.hasOwnProperty("__graphObjType");)o=o.parent;if(o!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,i=o?o.__graphObjType:null,a=o?o.__data:null;e&&e!==i&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),i&&r["on"+("node"===i?"Node":"Link")+"Hover"](a,e===i?t:null),n.hoverObj=o}this.forceGraph.tickFrame()}})},18869:function(e){"use strict";e.exports=function(e){if(e)throw e}},30932:function(e){"use strict";e.exports=function(e,t){var n,r=String(e),i=0;if("string"!==typeof t)throw new Error("Expected character");n=r.indexOf(t);for(;-1!==n;)i++,n=r.indexOf(t,n+t.length);return i}},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(67294),o=n(71755),a=r(n(90233)),s=r(n(37763)),u=r(n(96705)),c=n(79762),l=n(68527),d=n(68921),f=n(4612),h=n(52072),p=n(96356);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){return a(e,t,{keys:["value","label"]})}function v(e){return i.createElement(l.Text,null,i.createElement(l.Box,{as:"span"},"Create")," ",i.createElement(l.Box,{as:"span",bg:"yellow.300",fontWeight:"bold"},'"',e,'"'))}t.CUIAutoComplete=function(e){var t=e.items,n=e.optionFilterFunc,r=void 0===n?g:n,a=e.itemRenderer,y=e.highlightItemBg,b=void 0===y?"gray.100":y,E=e.placeholder,T=e.label,x=e.listStyleProps,_=e.labelStyleProps,w=e.inputStyleProps,k=e.toggleButtonStyleProps,C=e.tagStyleProps,A=e.selectedIconProps,S=e.listItemStyleProps,O=e.onCreateItem,D=e.icon,I=e.hideToggleButton,N=void 0!==I&&I,R=e.disableCreateItem,M=void 0!==R&&R,P=e.createItemRenderer,L=void 0===P?v:P,F=e.renderCustomInput,j=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),H=i.useState(!1),B=H[0],z=H[1],U=i.useState(""),V=U[0],G=U[1],K=i.useState(t),q=K[0],W=K[1],$=i.useRef(null),Z=o.useMultipleSelection(j),Y=Z.getSelectedItemProps,X=Z.getDropdownProps,Q=Z.addSelectedItem,J=Z.removeSelectedItem,ee=Z.selectedItems,te=ee.map((function(e){return e.value})),ne=o.useCombobox({inputValue:V,selectedItem:void 0,items:q,onInputValueChange:function(e){var n=e.selectedItem,i=r(t,e.inputValue||"");B&&i.length>0&&z(!1),n||W(i)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case o.useCombobox.stateChangeTypes.InputBlur:return m({},n,{isOpen:!1});case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:return m({},n,{highlightedIndex:e.highlightedIndex,inputValue:V,isOpen:!0});case o.useCombobox.stateChangeTypes.FunctionSelectItem:return m({},n,{inputValue:V});default:return n}},onStateChange:function(e){var n=e.inputValue,r=e.selectedItem;switch(e.type){case o.useCombobox.stateChangeTypes.InputChange:G(n||"");break;case o.useCombobox.stateChangeTypes.InputKeyDownEnter:case o.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):O&&B?(O(r),z(!1),W(t),G("")):Q(r),fe(null))}}}),re=ne.isOpen,ie=ne.getToggleButtonProps,oe=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ue=ne.getComboboxProps,ce=ne.highlightedIndex,le=ne.getItemProps,de=ne.openMenu,fe=ne.selectItem,he=ne.setHighlightedIndex;return i.useEffect((function(){0!==q.length||M||(z(!0),W([{label:""+V,value:V}]),he(0))}),[q,z,he,V,M]),u((function(){W(t)}),[t]),i.createElement(l.Stack,null,i.createElement(c.FormLabel,Object.assign({},m({},oe({}),_)),T),ee&&i.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return i.createElement(p.Tag,Object.assign({mb:1},C,{key:"selected-item-"+t},Y({selectedItem:e,index:t})),i.createElement(p.TagLabel,null,e.label),i.createElement(p.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),i.createElement(l.Stack,Object.assign({isInline:!0},ue()),F?F(m({},w,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:$}))),m({},k,ie(),{ariaLabel:"toggle menu",hideToggleButton:N})):i.createElement(i.Fragment,null,i.createElement(f.Input,Object.assign({},w,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:$})))),!N&&i.createElement(d.Button,Object.assign({},k,ie(),{"aria-label":"toggle menu"}),i.createElement(h.ArrowDownIcon,null)))),i.createElement(l.Box,{pb:4,mb:4},i.createElement(l.List,Object.assign({bg:"white",borderRadius:"4px",border:re&&"1px solid rgba(0,0,0,0.1)",boxShadow:"6px 5px 8px rgba(0,50,30,0.02)"},x,ae()),re&&q.map((function(e,t){return i.createElement(l.ListItem,Object.assign({px:2,py:1,borderBottom:"1px solid rgba(0,0,0,0.01)"},S,{bg:ce===t?b:"inherit",key:""+e.value+t},le({item:e,index:t})),B?L(e.label):i.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&i.createElement(l.ListIcon,Object.assign({as:D||h.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},A)),a?a(e):i.createElement(s,{autoEscape:!0,searchWords:[V||""],textToHighlight:(n=e,n.label)})));var n})))))}},47647:function(e,t,n){"use strict";e.exports=n(45403)},56851:function(e,t){"use strict";t.parse=function(e){var t,n=[],r=String(e||""),i=r.indexOf(","),o=0,a=!1;for(;!a;)-1===i&&(i=r.length,a=!0),!(t=r.slice(o,i).trim())&&a||n.push(t),o=i+1,i=r.indexOf(",",o);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(i+","+r).trim()}},20296:function(e){function t(e,t,n){var r,i,o,a,s;function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),i=n(6189),o={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=o[t];if("undefined"===typeof s&&(s=function(e){var t=i(e),n=r(t);return o[t]=o[e]=o[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function c(){2===arguments.length?"string"===typeof arguments[1]?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},71755:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return q},resetIdCounter:function(){return w},useCombobox:function(){return Me},useMultipleSelection:function(){return Ke},useSelect:function(){return we}});var r=n(63366),i=n(87462),o=n(97326),a=n(94578),s=n(45697),u=n.n(s),c=n(67294);n(21726);function l(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function f(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}var p=n(70655),m=0;function g(e){return"function"===typeof e?e:v}function v(){}function y(e,t){e&&function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!l(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],p=e;l(p)&&u(p);){if((p=p.parentElement)===c){d.push(p);break}null!=p&&p===document.body&&f(p)&&!f(document.documentElement)||null!=p&&f(p,s)&&d.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),E=b.height,T=b.width,x=b.top,_=b.right,w=b.bottom,k=b.left,C="start"===i||"nearest"===i?x:"end"===i?w:x+E/2,A="center"===o?k+T/2:"end"===o?_:k,S=[],O=0;O<d.length;O++){var D=d[O],I=D.getBoundingClientRect(),N=I.height,R=I.width,M=I.top,P=I.right,L=I.bottom,F=I.left;if("if-needed"===r&&x>=0&&k>=0&&w<=g&&_<=m&&x>=M&&w<=L&&k>=F&&_<=P)return S;var j=getComputedStyle(D),H=parseInt(j.borderLeftWidth,10),B=parseInt(j.borderTopWidth,10),z=parseInt(j.borderRightWidth,10),U=parseInt(j.borderBottomWidth,10),V=0,G=0,K="offsetWidth"in D?D.offsetWidth-D.clientWidth-H-z:0,q="offsetHeight"in D?D.offsetHeight-D.clientHeight-B-U:0;if(c===D)V="start"===i?C:"end"===i?C-g:"nearest"===i?h(y,y+g,g,B,U,y+C,y+C+E,E):C-g/2,G="start"===o?A:"center"===o?A-m/2:"end"===o?A-m:h(v,v+m,m,H,z,v+A,v+A+T,T),V=Math.max(0,V+y),G=Math.max(0,G+v);else{V="start"===i?C-M-B:"end"===i?C-L+U+q:"nearest"===i?h(M,L,N,B,U+q,C,C+E,E):C-(M+N/2)+q/2,G="start"===o?A-F-H:"center"===o?A-(F+R/2)+K/2:"end"===o?A-P+z+K:h(F,P,R,H,z+K,A,A+T,T);var W=D.scrollLeft,$=D.scrollTop;C+=$-(V=Math.max(0,Math.min($+V,D.scrollHeight-N+q))),A+=W-(G=Math.max(0,Math.min(W+G,D.scrollWidth-R+K)))}S.push({el:D,top:V,left:G})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function E(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}function _(){return String(m++)}function w(){m=0}function k(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function C(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function A(e){return"string"===typeof e.type}function S(e){return e.props}var O=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function D(e){void 0===e&&(e={});var t={};return O.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function I(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=N(t,r)?t[r]:e[r],n}),{})}function N(e,t){return void 0!==e[t]}function R(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function M(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var o=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);var s=P(e,a,n,r,i);return-1===s?t>=n?-1:t:s}function P(e,t,n,r,i){var o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?P(1,0,n,r,!1):P(-1,n-1,n,r,!1):-1}function L(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var F=E((function(e){H(e).textContent=""}),500);function j(e,t){var n=H(t);e&&(n.textContent=e,F(t))}function H(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var B=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),z=["refKey","ref"],U=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],G=["refKey","ref"],K=["onMouseMove","onMouseDown","onClick","onPress","index","item"],q=function(){var e=function(e){function t(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+_(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=D(t),n.internalSetState((0,i.Z)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=D(t),n.internalSetState((0,i.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var i=n.items[e];null!=i&&n.selectItem(i,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,(0,i.Z)({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var u=s?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},l={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(l[e]=u[e],N(n.props,e)||(c[e]=u[e]))})),s&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,(0,i.Z)({},n.getStateAndHelpers(),u)),c}),(function(){g(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(a,z),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=u,n.getRootProps.suppressRefError=f;var h=n.getState().isOpen;return(0,i.Z)(((o={})[u]=x(c,n.rootRef),o.role="combobox",o["aria-expanded"]=h,o["aria-haspopup"]="listbox",o["aria-owns"]=h?n.menuId:null,o["aria-labelledby"]=n.labelId,o),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=M(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=M(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var i=this.items[r],o=this.getItemNodeFromIndex(r);if(null==i||o&&o.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset((0,i.Z)({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=(0,i.Z)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=(0,i.Z)({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var i=P(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var i=P(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(i,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,u=t.onBlur,c=(0,r.Z)(t,U),l=n.getState().isOpen,d={onClick:T(o,n.buttonHandleClick),onKeyDown:T(a,n.buttonHandleKeyDown),onKeyUp:T(s,n.buttonHandleKeyUp),onBlur:T(u,n.buttonHandleBlur)},f=c.disabled?{}:d;return(0,i.Z)({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},f,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=R(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call((0,o.Z)(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return(0,i.Z)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,a=t.onBlur,s=t.onChange,u=t.onInput;t.onChangeText;var c=(0,r.Z)(t,V),l={};var d,f=n.getState(),h=f.inputValue,p=f.isOpen,m=f.highlightedIndex;c.disabled||((d={}).onChange=T(s,u,n.inputHandleChange),d.onKeyDown=T(o,n.inputHandleKeyDown),d.onBlur=T(a,n.inputHandleBlur),l=d);return(0,i.Z)({"aria-autocomplete":"list","aria-activedescendant":p&&"number"===typeof m&&m>=0?n.getItemId(m):null,"aria-controls":p?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},l,c)},n.inputHandleKeyDown=function(e){var t=R(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call((0,o.Z)(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=(0,r.Z)(a,G),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=u,n.getMenuProps.suppressRefError=f,(0,i.Z)(((o={})[u]=x(c,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,a=o.onMouseMove,s=o.onMouseDown,u=o.onClick;o.onPress;var c=o.index,l=o.item,d=void 0===l?void 0:l,f=(0,r.Z)(o,K);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var h=u,p=((t={onMouseMove:T(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:T(s,(function(e){e.preventDefault()}))}).onClick=T(h,(function(){n.selectItemAtIndex(c,{type:9})})),t),m=f.disabled?{onMouseDown:p.onMouseDown}:p;return(0,i.Z)({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=D(e),n.internalSetState((function(t){var r=t.selectedItem;return(0,i.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=D(e),n.internalSetState((function(t){var r=t.isOpen;return(0,i.Z)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),i=r.isOpen,o=r.highlightedIndex;i&&n.getItemCount()>0&&"number"===typeof o&&n.setHighlightedIndex(o,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=E((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage((0,i.Z)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,j(o,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,u=a.initialHighlightedIndex,c=void 0===u?s:u,l=a.defaultIsOpen,d=a.initialIsOpen,f=void 0===d?l:d,h=a.initialInputValue,p=void 0===h?"":h,m=a.initialSelectedItem,v=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:f,inputValue:p,selectedItem:v});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}(0,a.Z)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){return void 0===e&&(e=this.state),I(e,this.props)},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),i=this.getState().highlightedIndex;if(r>0){var o=M(e,i,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(o,t)}},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,i=e.isOpen,o=this.props.itemToString,a=this.id,s=this.getRootProps,u=this.getToggleButtonProps,c=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,h=this.openMenu,p=this.closeMenu,m=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,E=this.clearSelection,T=this.clearItems;return{getRootProps:s,getToggleButtonProps:u,getLabelProps:c,getMenuProps:l,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:h,closeMenu:p,toggleMenu:m,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:E,clearItems:T,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:o,id:a,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:r}},n.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!L(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},o=function(t){var n=L(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",i),a.addEventListener("touchend",o),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},n.componentDidUpdate=function(e,t){N(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=C(this.props.children,v);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=C(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:A(t)?(0,c.cloneElement)(t,this.getRootProps(S(t))):void 0:null},t}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:k,itemToString:function(e){return null==e?"":String(e)},onStateChange:v,onInputValueChange:v,onUserAction:v,onChange:v,onSelect:v,onOuterClick:v,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"===typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=B,e}();var W=["isInitialMount","highlightedIndex","items","environment"],$={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Z(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,a=t.type,s="on"+te(e)+"Change";o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]((0,i.Z)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,i.Z)({type:o},a))}var Y=E((function(e,t){j(e(),t)}),200),X="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?c.useLayoutEffect:c.useEffect;function Q(e){var t=e.id,n=void 0===t?"downshift-"+_():t,r=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,c.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){o.current=n,t=I(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,i.Z)({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),u=s[0],l=s[1],d=ne(n),f=(0,c.useCallback)((function(e){return l((0,i.Z)({props:d.current},e))}),[d]),h=o.current;return(0,c.useEffect)((function(){h&&r.current&&r.current!==u&&Z(h,I(r.current,h.props),u),r.current=u}),[u,n,h]),[u,f]}function ie(e,t,n){var r=re(e,t,n),i=r[0],o=r[1];return[I(i,n),o]}var oe={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=$);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=$),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function ue(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),i=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function ce(e,t,n,r){var i=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return 0===i.length?-1:void 0!==o&&u===o?o:void 0!==a?a:s?0===n?i.indexOf(s):M(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}function le(e,t,n,r){var i=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var o=function(){i.current.isMouseDown=!0},a=function(o){i.current.isMouseDown=!1,e&&!L(o.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(o){!e||i.current.isTouchMove||L(o.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}),[e,n]),i}var de=function(){return v};function fe(e,t,n){var o=n.isInitialMount,a=n.highlightedIndex,s=n.items,u=n.environment,l=(0,r.Z)(n,W);(0,c.useEffect)((function(){o||Y((function(){return e((0,i.Z)({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},l))}),u.document)}),t)}function he(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,a=e.scrollIntoView,s=(0,c.useRef)(!0);return X((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(i(t),o))}),[t]),s}var pe=v;function me(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ce(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ce(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.Z)({},e,r)}function ge(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var u=(s+n+1)%r.length,c=r[u];if(void 0!==c&&i(c).toLowerCase().startsWith(a)){var l=o(u);if(!(null===l||void 0===l?void 0:l.hasAttribute("disabled")))return u}}return n}u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().func,u().string,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var ve=(0,p.__assign)((0,p.__assign)({},oe),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),ye=v;var be=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Ee(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case 15:var s=t.key,u=""+e.inputValue+s,c=ge({keysSoFar:u,highlightedIndex:e.selectedItem?o.items.indexOf(e.selectedItem):-1,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:u},c>=0&&{selectedItem:o.items[c]});break;case 13:n={highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=(0,i.Z)({isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:P(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:P(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=ge({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,i.Z)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:M(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 1:n={highlightedIndex:M(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return(0,i.Z)({},e,n)}var Te=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],xe=["onClick","onKeyDown","refKey","ref"],_e=["item","index","onMouseMove","onClick","refKey","ref"];function we(e){void 0===e&&(e={}),ye(e,we);var t=(0,i.Z)({},ve,e),n=t.items,o=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,u=t.defaultIsOpen,l=t.itemToString,d=t.getA11ySelectionMessage,f=t.getA11yStatusMessage,h=ie(Ee,ue(t),t),p=h[0],m=h[1],g=p.isOpen,v=p.highlightedIndex,y=p.selectedItem,b=p.inputValue,_=(0,c.useRef)(null),w=(0,c.useRef)(null),k=(0,c.useRef)({}),C=(0,c.useRef)(!0),A=(0,c.useRef)(null),S=Q(t),O=(0,c.useRef)(),D=(0,c.useRef)(!0),I=ne({state:p,props:t}),N=(0,c.useCallback)((function(e){return k.current[S.getItemId(e)]}),[S]);fe(f,[g,v,b,n],(0,i.Z)({isInitialMount:D.current,previousResultCount:O.current,items:n,environment:a,itemToString:l},p)),fe(d,[y],(0,i.Z)({isInitialMount:D.current,previousResultCount:O.current,items:n,environment:a,itemToString:l},p));var M=he({menuElement:w.current,highlightedIndex:v,isOpen:g,itemRefs:k,scrollIntoView:o,getItemNodeFromIndex:N});(0,c.useEffect)((function(){return A.current=E((function(e){e({type:21,inputValue:""})}),500),function(){A.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&A.current(m)}),[m,b]),pe({isInitialMount:D.current,props:t,state:p}),(0,c.useEffect)((function(){D.current?(s||u||g)&&w.current&&w.current.focus():g?w.current&&w.current.focus():a.document.activeElement===w.current&&_.current&&(C.current=!1,_.current.focus())}),[g]),(0,c.useEffect)((function(){D.current||(O.current=n.length)}));var P=le(g,[w,_],a,(function(){m({type:8})})),L=de();(0,c.useEffect)((function(){D.current=!1}),[]),(0,c.useEffect)((function(){g||(k.current={})}),[g]);var F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:N,shiftKey:e.shiftKey})}}}),[m,N]),j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:N,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:N})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:N})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,N]),H=(0,c.useCallback)((function(){m({type:16})}),[m]),B=(0,c.useCallback)((function(){m({type:18})}),[m]),z=(0,c.useCallback)((function(){m({type:17})}),[m]),U=(0,c.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),V=(0,c.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),G=(0,c.useCallback)((function(){m({type:22})}),[m]),K=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),q=(0,c.useCallback)((function(e){return(0,i.Z)({id:S.labelId,htmlFor:S.toggleButtonId},e)}),[S]),W=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.onKeyDown,l=o.onBlur,d=o.ref,f=(0,r.Z)(o,Te),h=(void 0===t?{}:t).suppressRefError,p=void 0!==h&&h,g=I.current.state;return L("getMenuProps",p,u,w),(0,i.Z)(((n={})[u]=x(d,(function(e){w.current=e})),n.id=S.menuId,n.role="listbox",n["aria-labelledby"]=S.labelId,n.tabIndex=-1,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(g.highlightedIndex)},{onMouseLeave:T(a,(function(){m({type:9})})),onKeyDown:T(c,(function(e){var t=R(e);t&&j[t]?j[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:N})})),onBlur:T(l,(function(){!1!==C.current?!P.current.isMouseDown&&m({type:8}):C.current=!0}))},f)}),[m,I,j,P,L,S,N]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onClick,s=o.onKeyDown,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,d=(0,r.Z)(o,xe),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,p=(0,i.Z)(((n={})[c]=x(l,(function(e){_.current=e})),n.id=S.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=I.current.state.isOpen,n["aria-labelledby"]=S.labelId+" "+S.toggleButtonId,n),d);return d.disabled||(p.onClick=T(a,(function(){m({type:12})})),p.onKeyDown=T(s,(function(e){var t=R(e);t&&F[t]?F[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:N})}))),L("getToggleButtonProps",h,c,_),p}),[m,I,F,L,S,N]),getLabelProps:q,getMenuProps:W,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.item,a=n.index,s=n.onMouseMove,u=n.onClick,c=n.refKey,l=void 0===c?"ref":c,d=n.ref,f=(0,r.Z)(n,_e),h=I.current,p=h.state,g=h.props,v=J(a,o,g.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var y=(0,i.Z)(((t={role:"option","aria-selected":""+(v===p.highlightedIndex),id:S.getItemId(v)})[l]=x(d,(function(e){e&&(k.current[S.getItemId(v)]=e)})),t),f);return f.disabled||(y.onMouseMove=T(s,(function(){a!==p.highlightedIndex&&(M.current=!1,m({type:10,index:a}))})),y.onClick=T(u,(function(){m({type:11,index:a})}))),y}),[m,I,M,S]),toggleMenu:H,openMenu:z,closeMenu:B,setHighlightedIndex:U,selectItem:V,reset:G,setInputValue:K,highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}we.stateChangeTypes=be;var ke=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().string,u().string,u().string,u().func,u().string,u().string,u().func,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var Ce=v;var Ae=(0,i.Z)({},oe,{getA11yStatusMessage:k,circularNavigation:!0});function Se(e,t){var n,r=t.type,o=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:M(a?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:M(a?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ce(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 5:n=(0,i.Z)({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex],isOpen:ae(o,"isOpen"),highlightedIndex:ae(o,"highlightedIndex"),inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 2:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:P(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:P(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=(0,i.Z)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(o,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return me(e,t,ke)}return(0,i.Z)({},e,n)}var Oe=["onMouseLeave","refKey","ref"],De=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Ie=["onClick","onPress","refKey","ref"],Ne=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Re=["refKey","ref"];function Me(e){void 0===e&&(e={}),Ce(e,Me);var t=(0,i.Z)({},Ae,e),n=t.initialIsOpen,o=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,u=t.environment,l=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,f=t.itemToString,h=function(e,t,n){var r=(0,c.useRef)(),i=re(e,t,n),o=i[0],a=i[1];return(0,c.useEffect)((function(){N(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)})),[I(o,n),a]}(Se,function(e){var t=ue(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,i.Z)({},t,{inputValue:r})}(t),t),p=h[0],m=h[1],g=p.isOpen,v=p.highlightedIndex,y=p.selectedItem,b=p.inputValue,E=(0,c.useRef)(null),_=(0,c.useRef)({}),w=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useRef)(null),A=(0,c.useRef)(!0),S=Q(t),O=(0,c.useRef)(),D=ne({state:p,props:t}),M=(0,c.useCallback)((function(e){return _.current[S.getItemId(e)]}),[S]);fe(l,[g,v,b,a],(0,i.Z)({isInitialMount:A.current,previousResultCount:O.current,items:a,environment:u,itemToString:f},p)),fe(d,[y],(0,i.Z)({isInitialMount:A.current,previousResultCount:O.current,items:a,environment:u,itemToString:f},p));var P=he({menuElement:E.current,highlightedIndex:v,isOpen:g,itemRefs:_,scrollIntoView:s,getItemNodeFromIndex:M});pe({isInitialMount:A.current,props:t,state:p}),(0,c.useEffect)((function(){(n||o||g)&&w.current&&w.current.focus()}),[]),(0,c.useEffect)((function(){A.current||(O.current=a.length)}));var L=le(g,[C,E,k],u,(function(){m({type:7,selectItem:!1})})),F=de();(0,c.useEffect)((function(){A.current=!1}),[]),(0,c.useEffect)((function(){g||(_.current={})}),[g]);var j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},ArrowUp:function(e){e.preventDefault(),m({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:M})},Home:function(e){D.current.state.isOpen&&(e.preventDefault(),m({type:3,getItemNodeFromIndex:M}))},End:function(e){D.current.state.isOpen&&(e.preventDefault(),m({type:4,getItemNodeFromIndex:M}))},Escape:function(){var e=D.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&m({type:2})},Enter:function(e){var t=D.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),m({type:5,getItemNodeFromIndex:M}))}}}),[m,D,M]),H=(0,c.useCallback)((function(e){return(0,i.Z)({id:S.labelId,htmlFor:S.inputId},e)}),[S]),B=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,u=void 0===s?"ref":s,c=o.ref,l=(0,r.Z)(o,Oe),d=(void 0===t?{}:t).suppressRefError;return F("getMenuProps",void 0!==d&&d,u,E),(0,i.Z)(((n={})[u]=x(c,(function(e){E.current=e})),n.id=S.menuId,n.role="listbox",n["aria-labelledby"]=S.labelId,n.onMouseLeave=T(a,(function(){m({type:8})})),n),l)}),[m,F,S]),z=(0,c.useCallback)((function(e){var t,n,o=void 0===e?{}:e,a=o.item,s=o.index,u=o.refKey,c=void 0===u?"ref":u,l=o.ref,d=o.onMouseMove,f=o.onClick;o.onPress;var h=(0,r.Z)(o,De),p=D.current,g=p.props,v=p.state,y=J(s,a,g.items);if(y<0)throw new Error("Pass either item or item index in getItemProps!");var b=f;return(0,i.Z)(((t={})[c]=x(l,(function(e){e&&(_.current[S.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===v.highlightedIndex),t.id=S.getItemId(y),t),!h.disabled&&((n={onMouseMove:T(d,(function(){s!==v.highlightedIndex&&(P.current=!1,m({type:9,index:s}))}))}).onClick=T(b,(function(){m({type:10,index:s}),w.current&&w.current.focus()})),n),h)}),[m,D,P,S]),U=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,u=n.ref,c=(0,r.Z)(n,Ie);return(0,i.Z)(((t={})[s]=x(u,(function(e){k.current=e})),t.id=S.toggleButtonId,t.tabIndex=-1,t),!c.disabled&&(0,i.Z)({},{onClick:T(o,(function(){m({type:11}),!D.current.state.isOpen&&w.current&&w.current.focus()}))}),c)}),[m,D,S]),V=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.onKeyDown,s=o.onChange,u=o.onInput,c=o.onBlur;o.onChangeText;var l=o.refKey,d=void 0===l?"ref":l,f=o.ref,h=(0,r.Z)(o,Ne),p=(void 0===t?{}:t).suppressRefError;F("getInputProps",void 0!==p&&p,d,w);var g,v=D.current.state,y={};h.disabled||((g={}).onChange=T(s,u,(function(e){m({type:6,inputValue:e.target.value})})),g.onKeyDown=T(a,(function(e){var t=R(e);t&&j[t]&&j[t](e)})),g.onBlur=T(c,(function(){v.isOpen&&!L.current.isMouseDown&&m({type:7,selectItem:!0})})),y=g);return(0,i.Z)(((n={})[d]=x(f,(function(e){w.current=e})),n.id=S.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=S.menuId,n),v.isOpen&&v.highlightedIndex>-1&&{"aria-activedescendant":S.getItemId(v.highlightedIndex)},{"aria-labelledby":S.labelId,autoComplete:"off",value:v.inputValue},y,h)}),[m,j,D,L,F,S]),G=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=(0,r.Z)(o,Re),l=(void 0===t?{}:t).suppressRefError;return F("getComboboxProps",void 0!==l&&l,s,C),(0,i.Z)(((n={})[s]=x(u,(function(e){C.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=S.menuId,n["aria-expanded"]=D.current.state.isOpen,n),c)}),[D,F,S]),K=(0,c.useCallback)((function(){m({type:12})}),[m]),q=(0,c.useCallback)((function(){m({type:14})}),[m]),W=(0,c.useCallback)((function(){m({type:13})}),[m]),$=(0,c.useCallback)((function(e){m({type:15,highlightedIndex:e})}),[m]),Z=(0,c.useCallback)((function(e){m({type:16,selectedItem:e})}),[m]);return{getItemProps:z,getLabelProps:H,getMenuProps:B,getInputProps:V,getComboboxProps:G,getToggleButtonProps:U,toggleMenu:K,openMenu:W,closeMenu:q,setHighlightedIndex:$,setInputValue:(0,c.useCallback)((function(e){m({type:17,inputValue:e})}),[m]),selectItem:Z,reset:(0,c.useCallback)((function(){m({type:18})}),[m]),highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}Me.stateChangeTypes=ke;var Pe={activeIndex:-1,selectedItems:[]};function Le(e,t){return se(e,t,Pe)}function Fe(e,t){return ae(e,t,Pe)}function je(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}u().array,u().array,u().array,u().func,u().func,u().func,u().number,u().number,u().number,u().func,u().func,u().string,u().string,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var He={itemToString:oe.itemToString,stateReducer:oe.stateReducer,environment:oe.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Be=v;var ze=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function Ue(e,t){var n,r=t.type,o=t.index,a=t.props,s=t.selectedItem,u=e.activeIndex,c=e.selectedItems;switch(r){case 0:n={activeIndex:o};break;case 4:n={activeIndex:u-1<0?0:u-1};break;case 3:n={activeIndex:u+1>=c.length?-1:u+1};break;case 2:case 1:var l=u;1===c.length?l=-1:u===c.length-1&&(l=c.length-2),n=(0,i.Z)({selectedItems:[].concat(c.slice(0,u),c.slice(u+1))},{activeIndex:l});break;case 5:n={activeIndex:c.length-1};break;case 6:n={selectedItems:c.slice(0,c.length-1)};break;case 8:n={selectedItems:[].concat(c,[s])};break;case 7:n={activeIndex:-1};break;case 9:var d=u,f=c.indexOf(s);1===c.length?d=-1:f===c.length-1&&(d=c.length-2),n=(0,i.Z)({selectedItems:[].concat(c.slice(0,f),c.slice(f+1))},{activeIndex:d});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:Fe(a,"activeIndex"),selectedItems:Fe(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.Z)({},e,n)}var Ve=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ge=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function Ke(e){void 0===e&&(e={}),Be(e,Ke);var t=(0,i.Z)({},He,e),n=t.getA11yRemovalMessage,o=t.itemToString,a=t.environment,s=t.keyNavigationNext,u=t.keyNavigationPrevious,l=ie(Ue,function(e){return{activeIndex:Le(e,"activeIndex"),selectedItems:Le(e,"selectedItems")}}(t),t),d=l[0],f=l[1],h=d.activeIndex,p=d.selectedItems,m=(0,c.useRef)(!0),g=(0,c.useRef)(null),v=(0,c.useRef)(p),y=(0,c.useRef)();y.current=[];var b=ne({state:d,props:t});(0,c.useEffect)((function(){if(!m.current){if(p.length<v.current.length){var e=v.current.find((function(e){return p.indexOf(e)<0}));j(n({itemToString:o,resultCount:p.length,removedSelectedItem:e,activeIndex:h,activeSelectedItem:p[h]}),a.document)}v.current=p}}),[p.length]),(0,c.useEffect)((function(){m.current||(-1===h&&g.current?g.current.focus():y.current[h]&&y.current[h].focus())}),[h]),pe({isInitialMount:m.current,props:t,state:d});var E=de();(0,c.useEffect)((function(){m.current=!1}),[]);var _=(0,c.useMemo)((function(){var e;return(e={})[u]=function(){f({type:4})},e[s]=function(){f({type:3})},e.Delete=function(){f({type:1})},e.Backspace=function(){f({type:2})},e}),[f,s,u]),w=(0,c.useMemo)((function(){var e;return(e={})[u]=function(e){je(e)&&f({type:5})},e.Backspace=function(e){je(e)&&f({type:6})},e}),[f,u]);return{getSelectedItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.refKey,a=void 0===o?"ref":o,s=n.ref,u=n.onClick,c=n.onKeyDown,l=n.selectedItem,d=n.index,h=(0,r.Z)(n,Ve),p=b.current.state;if(J(d,l,p.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return(0,i.Z)(((t={})[a]=x(s,(function(e){e&&y.current.push(e)})),t.tabIndex=d===p.activeIndex?0:-1,t.onClick=T(u,(function(){f({type:0,index:d})})),t.onKeyDown=T(c,(function(e){var t=R(e);t&&_[t]&&_[t](e)})),t),h)}),[f,b,_]),getDropdownProps:(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,a=o.refKey,s=void 0===a?"ref":a,u=o.ref,c=o.onKeyDown,l=o.onClick,d=o.preventKeyAction,h=void 0!==d&&d,p=(0,r.Z)(o,Ge),m=(void 0===t?{}:t).suppressRefError;E("getDropdownProps",void 0!==m&&m,s,g);return(0,i.Z)(((n={})[s]=x(u,(function(e){e&&(g.current=e)})),n),!h&&{onKeyDown:T(c,(function(e){var t=R(e);t&&w[t]&&w[t](e)})),onClick:T(l,(function(){f({type:7})}))},p)}),[f,w,E]),addSelectedItem:(0,c.useCallback)((function(e){f({type:8,selectedItem:e})}),[f]),removeSelectedItem:(0,c.useCallback)((function(e){f({type:9,selectedItem:e})}),[f]),setSelectedItems:(0,c.useCallback)((function(e){f({type:10,selectedItems:e})}),[f]),setActiveIndex:(0,c.useCallback)((function(e){f({type:11,activeIndex:e})}),[f]),reset:(0,c.useCallback)((function(){f({type:12})}),[f]),selectedItems:p,activeIndex:h}}Ke.stateChangeTypes=ze},56781:function(e,t){"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,d=60120,f=60115,h=60116,p=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case l:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case f:case s:return e;default:return t}}case r:return t}}}},21726:function(e,t,n){"use strict";n(56781)},63150:function(e){"use strict";e.exports=e=>{if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,l,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=u(d,n),d!==(i=u(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,l=r&&o(r)?r:[]):l=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,l,i)})):"undefined"!==typeof i&&s(d,{name:n,newValue:i}));return d}},38252:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},53316:function(e){function t(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function r(e,t,n,r,i){return n.bind(t,e,r,i)}function i(e,i){return r(e,this,1===e.length?t:n,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},21102:function(e,t,n){"use strict";var r=n(46291),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},46291:function(e){!function(){var t;function n(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,c="",l=!1,d=!1,f=function(){return a[o++]},h=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<u;++s)if(t=e[s],l)switch(l=!1,"."==t?(d=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(d=!0,t=e[s+=2]):d=!0,i=h(),t){case"b":c+=parseInt(f(),10).toString(2);break;case"c":c+="string"===typeof(n=f())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(f(),10);break;case"f":r=String(parseFloat(f()).toFixed(i||6)),c+=d?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(f());break;case"o":c+="0"+parseInt(f(),10).toString(8);break;case"s":c+=f();break;case"x":c+="0x"+parseInt(f(),10).toString(16);break;case"X":c+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?l=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!==typeof console&&"function"===typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},53869:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(70655),i=n(67294),o=n(6717);var a=n(8626),s=n(45930),u=0;function c(){var e=u;return u++,e}var l=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,u=e.custom,l=e.presenceAffectsLayout,f=(0,s.h)(d),h=(0,s.h)(c),p=(0,i.useMemo)((function(){return{id:h,initial:n,isPresent:r,custom:u,onExitComplete:function(e){f.set(e,!0);var t=!0;f.forEach((function(e){e||(t=!1)})),t&&(null===o||void 0===o||o())},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),l?void 0:[r]);return(0,i.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[r]),i.useEffect((function(){!r&&!f.size&&(null===o||void 0===o||o())}),[r]),i.createElement(a.O.Provider,{value:p},t)};function d(){return new Map}var f=n(49870);function h(e){return e.key||""}var p=function(e){var t=e.children,n=e.custom,a=e.initial,s=void 0===a||a,u=e.onExitComplete,c=e.exitBeforeEnter,d=e.presenceAffectsLayout,p=void 0===d||d,m=function(){var e=(0,i.useRef)(!1),t=(0,r.__read)((0,i.useState)(0),2),n=t[0],a=t[1];return(0,o.z)((function(){return e.current=!0})),(0,i.useCallback)((function(){!e.current&&a(n+1)}),[n])}(),g=(0,i.useContext)(f.WH);(0,f.Md)(g)&&(m=g.forceUpdate);var v=(0,i.useRef)(!0),y=function(e){var t=[];return i.Children.forEach(e,(function(e){(0,i.isValidElement)(e)&&t.push(e)})),t}(t),b=(0,i.useRef)(y),E=(0,i.useRef)(new Map).current,T=(0,i.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=h(e);t.set(n,e)}))}(y,E),v.current)return v.current=!1,i.createElement(i.Fragment,null,y.map((function(e){return i.createElement(l,{key:h(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:p},e)})));for(var x=(0,r.__spreadArray)([],(0,r.__read)(y)),_=b.current.map(h),w=y.map(h),k=_.length,C=0;C<k;C++){var A=_[C];-1===w.indexOf(A)?T.add(A):T.delete(A)}return c&&T.size&&(x=[]),T.forEach((function(e){if(-1===w.indexOf(e)){var t=E.get(e);if(t){var r=_.indexOf(e);x.splice(r,0,i.createElement(l,{key:h(t),isPresent:!1,onExitComplete:function(){E.delete(e),T.delete(e);var t=b.current.findIndex((function(t){return t.key===e}));b.current.splice(t,1),T.size||(b.current=y,m(),u&&u())},custom:n,presenceAffectsLayout:p},t))}}})),x=x.map((function(e){var t=e.key;return T.has(t)?e:i.createElement(l,{key:h(e),isPresent:!0,presenceAffectsLayout:p},e)})),b.current=x,i.createElement(i.Fragment,null,T.size?x:x.map((function(e){return(0,i.cloneElement)(e)})))}},69283:function(e,t,n){"use strict";n.d(t,{EN:function(){return s},oO:function(){return a}});var r=n(67294),i=n(8626),o=n(45930);function a(){var e=(0,r.useContext)(i.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,o=e.register,a=l();(0,r.useEffect)((function(){return o(a)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(a)}]:[!0]}function s(e){return null===e||e.isPresent}var u=0,c=function(){return u++},l=function(){return(0,o.h)(c)}},7646:function(e,t,n){"use strict";var r,i;n.d(t,{z:function(){return r},c:function(){return i}}),function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(r||(r={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(i||(i={}))},8626:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(67294).createContext)(null)},49870:function(e,t,n){"use strict";n.d(t,{bg:function(){return p},WH:function(){return h},Md:function(){return m}});var r=n(67294),i=n(70655),o=n(9839),a=n(58839),s=n(27565),u=n(519),c=n(7646),l={layoutReady:function(e){return e.notifyLayoutReady()}};function d(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?l:t,r=n.layoutReady,d=n.parent;(0,s.U)((function(t,n){var s=Array.from(e).sort(u._),l=d?(0,a.kv)(d):[];n((function(){(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(l)),(0,i.__read)(s)).forEach((function(e){return e.resetTransform()}))})),t((function(){s.forEach(a.de)})),n((function(){l.forEach((function(e){return e.restoreTransform()})),s.forEach(r)})),t((function(){s.forEach((function(e){e.isPresent&&(e.presence=c.z.Present)}))})),n((function(){o.iW.preRender(),o.iW.render()})),t((function(){o.ZP.postRender((function(){return s.forEach(f)})),e.clear()}))})),(0,s.R)()}}}function f(e){e.prevViewportBox=e.projection.target}var h=(0,r.createContext)(d()),p=(0,r.createContext)(d());function m(e){return!!e.forceUpdate}},99860:function(e,t,n){"use strict";n.d(t,{E:function(){return bo}});var r=n(70655),i=n(67294),o=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:o(["layout","layoutId","drag","_layoutResetTransform"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:o(["layout","layoutId"])};var s=(0,i.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=(0,i.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),d=(0,i.createContext)({});var f=n(8626),h=n(69283),p=(0,i.createContext)(null),m="undefined"!==typeof window,g=m?i.useLayoutEffect:i.useEffect;function v(e,t,n,o){var a=(0,i.useContext)(l),u=(0,i.useContext)(s),c=(0,i.useContext)(d).visualElement,m=(0,i.useContext)(f.O),v=function(e){var t=e.layoutId,n=(0,i.useContext)(p);return n&&void 0!==t?n+"-"+t:t}(n),y=(0,i.useRef)(void 0);o||(o=u.renderer),!y.current&&o&&(y.current=o(e,{visualState:t,parent:c,props:(0,r.__assign)((0,r.__assign)({},n),{layoutId:v}),presenceId:null===m||void 0===m?void 0:m.id,blockInitialAnimation:!1===(null===m||void 0===m?void 0:m.initial)}));var b=y.current;return g((function(){b&&(b.setProps((0,r.__assign)((0,r.__assign)((0,r.__assign)({},a),n),{layoutId:v})),b.isPresent=(0,h.EN)(m),b.isPresenceRoot=!c||c.presenceId!==(null===m||void 0===m?void 0:m.id),b.syncRender())})),(0,i.useEffect)((function(){var e;b&&(null===(e=b.animationState)||void 0===e||e.animateChanges())})),g((function(){return function(){return null===b||void 0===b?void 0:b.notifyUnmount()}}),[]),b}function y(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function b(e){return Array.isArray(e)}function E(e){return"string"===typeof e||b(e)}function T(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"string"===typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"===typeof t?t(null!==n&&void 0!==n?n:e.custom,r,i):t}function x(e,t,n){var r=e.getProps();return T(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function _(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||E(e.initial)||E(e.animate)||E(e.whileHover)||E(e.whileDrag)||E(e.whileTap)||E(e.whileFocus)||E(e.exit)}function w(e){return Boolean(_(e)||e.variants)}function k(e,t){var n=function(e,t){if(_(e)){var n=e.initial,r=e.animate;return{initial:!1===n||E(n)?n:void 0,animate:E(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(d)),r=n.initial,o=n.animate;return(0,i.useMemo)((function(){return{initial:r,animate:o}}),t?[C(r),C(o)]:[])}function C(e){return Array.isArray(e)?e.join(" "):e}function A(e){var t=e.preloadedFeatures,n=e.createVisualElement,o=e.useRender,f=e.useVisualState,h=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(a[t].Component=n)}}(t),(0,i.forwardRef)((function(e,t){var p=(0,i.useContext)(l).isStatic,g=null,b=k(e,p),E=f(e,p);return!p&&m&&(b.visualElement=v(h,E,e,n),g=function(e,t,n){var o=[];if((0,i.useContext)(s),!t)return null;for(var l=0;l<c;l++){var d=u[l],f=a[d],h=f.isEnabled,p=f.Component;h(e)&&p&&o.push(i.createElement(p,(0,r.__assign)({key:d},e,{visualElement:t})))}return o}(e,b.visualElement)),i.createElement(i.Fragment,null,i.createElement(d.Provider,{value:b},o(h,e,function(e,t,n){return(0,i.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):y(n)&&(n.current=r))}),[t])}(E,b.visualElement,t),E,p)),g)}))}function S(e){function t(t,n){return void 0===n&&(n={}),A(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var O=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function D(e){return"string"===typeof e&&!e.includes("-")&&!!(O.indexOf(e)>-1||/[A-Z]/.test(e))}var I={};var N=["","X","Y","Z"],R=["transformPerspective","x","y","z"];function M(e,t){return R.indexOf(e)-R.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return N.forEach((function(t){return R.push(e+t)}))}));var P=new Set(R);function L(e){return P.has(e)}var F=new Set(["originX","originY","originZ"]);function j(e){return F.has(e)}function H(e,t){var n=t.layout,r=t.layoutId;return L(e)||j(e)||(n||void 0!==r)&&(!!I[e]||"opacity"===e)}var B=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function U(e){return e.startsWith("--")}var V=function(e,t){return t&&"number"===typeof e?t.transform(e):e},G=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},K=function(e){return e%1?Number(e.toFixed(5)):e},q=/(-)?([\d]*\.?[\d])+/g,W=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,$=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Z(e){return"string"===typeof e}var Y=function(e){return{test:function(t){return Z(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},X=Y("deg"),Q=Y("%"),J=Y("px"),ee=Y("vh"),te=Y("vw"),ne=(0,r.__assign)((0,r.__assign)({},Q),{parse:function(e){return Q.parse(e)/100},transform:function(e){return Q.transform(100*e)}}),re={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},ie=(0,r.__assign)((0,r.__assign)({},re),{transform:G(0,1)}),oe=(0,r.__assign)((0,r.__assign)({},re),{default:1}),ae=(0,r.__assign)((0,r.__assign)({},re),{transform:Math.round}),se={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:oe,scaleX:oe,scaleY:oe,scaleZ:oe,skew:X,skewX:X,skewY:X,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:ie,originX:ne,originY:ne,originZ:J,zIndex:ae,fillOpacity:ie,strokeOpacity:ie,numOctaves:ae};function ue(e,t,n,r,i,o,a,s){var u,c=e.style,l=e.vars,d=e.transform,f=e.transformKeys,h=e.transformOrigin;f.length=0;var p=!1,m=!1,g=!0;for(var v in t){var y=t[v];if(U(v))l[v]=y;else{var b=se[v],E=V(y,b);if(L(v)){if(p=!0,d[v]=E,f.push(v),!g)continue;y!==(null!==(u=b.default)&&void 0!==u?u:0)&&(g=!1)}else if(j(v))h[v]=E,m=!0;else if((null===n||void 0===n?void 0:n.isHydrated)&&(null===r||void 0===r?void 0:r.isHydrated)&&I[v]){var T=I[v].process(y,r,n),x=I[v].applyTo;if(x)for(var _=x.length,w=0;w<_;w++)c[x[w]]=T;else c[v]=T}else c[v]=E}}r&&n&&a&&s?(c.transform=a(r.deltaFinal,r.treeScale,p?d:void 0),o&&(c.transform=o(d,c.transform)),c.transformOrigin=s(r)):(p&&(c.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";o.sort(M);for(var d=!1,f=o.length,h=0;h<f;h++){var p=o[h];l+=(z[p]||p)+"("+i[p]+") ","z"===p&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):c&&n&&(l="none"),l}(e,i,g,o)),m&&(c.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ;return n+" "+i+" "+(void 0===o?0:o)}(h)))}var ce=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function le(e,t,n){for(var r in t)B(t[r])||H(r,n)||(e[r]=t[r])}function de(e,t,n){var o={};return le(o,e.style||{},e),Object.assign(o,function(e,t,n){var o=e.transformTemplate;return(0,i.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ue(e,t,void 0,void 0,{enableHardwareAcceleration:!n},o);var i=e.vars,a=e.style;return(0,r.__assign)((0,r.__assign)({},i),a)}),[t])}(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}function fe(e,t,n){var r={},i=de(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=i,r}var he=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function pe(e){return he.has(e)}var me=function(e){return!pe(e)};try{var ge=n(46600).Z;me=function(e){return e.startsWith("on")?!pe(e):ge(e)}}catch(Eo){}function ve(e,t,n){return"string"===typeof e?e:J.transform(t+n*e)}var ye=function(e,t){return J.transform(e*t)},be={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ee={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,t,n,i,o,a,s,u){var c=t.attrX,l=t.attrY,d=t.originX,f=t.originY,h=t.pathLength,p=t.pathSpacing,m=void 0===p?1:p,g=t.pathOffset,v=void 0===g?0:g;ue(e,(0,r.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i,o,a,s,u),e.attrs=e.style,e.style={};var y=e.attrs,b=e.style,E=e.dimensions,T=e.totalPathLength;y.transform&&(E&&(b.transform=y.transform),delete y.transform),E&&(void 0!==d||void 0!==f||b.transform)&&(b.transformOrigin=function(e,t,n){return ve(t,e.x,e.width)+" "+ve(n,e.y,e.height)}(E,void 0!==d?d:.5,void 0!==f?f:.5)),void 0!==c&&(y.x=c),void 0!==l&&(y.y=l),void 0!==T&&void 0!==h&&function(e,t,n,r,i,o){void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=!0);var a=o?be:Ee;e[a.offset]=ye(-i,t);var s=ye(n,t),u=ye(r,t);e[a.array]=s+" "+u}(y,T,h,m,v,!1)}var xe=function(){return(0,r.__assign)((0,r.__assign)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function _e(e,t){var n=(0,i.useMemo)((function(){var n=xe();return Te(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.__assign)((0,r.__assign)({},n.attrs),{style:(0,r.__assign)({},n.style)})}),[t]);if(e.style){var o={};le(o,e.style,e),n.style=(0,r.__assign)((0,r.__assign)({},o),n.style)}return n}function we(e){void 0===e&&(e=!1);return function(t,n,o,a,s){var u=a.latestValues,c=(D(t)?_e:fe)(n,u,s),l=function(e,t,n){var r={};for(var i in e)(me(i)||!0===n&&pe(i)||!t&&!pe(i))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),d=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},l),c),{ref:o});return(0,i.createElement)(t,d)}}var ke=/([a-z])([A-Z])/g,Ce=function(e){return e.replace(ke,"$1-$2").toLowerCase()};function Ae(e,t){var n=t.style,r=t.vars;for(var i in Object.assign(e.style,n),r)e.style.setProperty(i,r[i])}var Se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Oe(e,t){for(var n in Ae(e,t),t.attrs)e.setAttribute(Se.has(n)?n:Ce(n),t.attrs[n])}function De(e){var t=e.style,n={};for(var r in t)(B(t[r])||H(r,e))&&(n[r]=t[r]);return n}function Ie(e){var t=De(e);for(var n in e){if(B(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Ne(e){return"object"===typeof e&&"function"===typeof e.start}var Re=n(45930),Me=function(e){return Array.isArray(e)};function Pe(e){var t,n=B(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function Le(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:je(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Fe=function(e){return function(t,n){var r=(0,i.useContext)(d),o=(0,i.useContext)(f.O);return n?Le(e,t,r,o):(0,Re.h)((function(){return Le(e,t,r,o)}))}};function je(e,t,n,i){var o={},a=!1===(null===n||void 0===n?void 0:n.initial),s=i(e);for(var u in s)o[u]=Pe(s[u]);var c=e.initial,l=e.animate,d=_(e),f=w(e);t&&f&&!d&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var h=a||!1===c?l:c;h&&"boolean"!==typeof h&&!Ne(h)&&(Array.isArray(h)?h:[h]).forEach((function(t){var n=T(e,t);if(n){var i=n.transitionEnd;n.transition;var a=(0,r.__rest)(n,["transitionEnd","transition"]);for(var s in a)o[s]=a[s];for(var s in i)o[s]=i[s]}}));return o}var He={useVisualState:Fe({scrapeMotionValuesFromProps:Ie,createRenderState:xe,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),Te(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Oe(t,r)}})};var Be,ze={useVisualState:Fe({scrapeMotionValuesFromProps:De,createRenderState:ce})};function Ue(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ve(e,t,n,r){(0,i.useEffect)((function(){var i=e.current;if(n&&i)return Ue(i,t,n,r)}),[e,t,n,r])}function Ge(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ke(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(Be||(Be={}));var qe={pageX:0,pageY:0};function We(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||qe;return{x:n[t+"X"],y:n[t+"Y"]}}function $e(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ze(e,t){return void 0===t&&(t="page"),{point:Ke(e)?We(e,t):$e(e,t)}}var Ye=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Ze(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Xe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Qe={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Je(e){return m&&null===window.onpointerdown?e:m&&null===window.ontouchstart?Qe[e]:m&&null===window.onmousedown?Xe[e]:e}function et(e,t,n,r){return Ue(e,Je(t),Ye(n,"pointerdown"===t),r)}function tt(e,t,n,r){return Ve(e,Je(t),n&&Ye(n,"pointerdown"===t),r)}function nt(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var rt=nt("dragHorizontal"),it=nt("dragVertical");function ot(e){var t=!1;if("y"===e)t=it();else if("x"===e)t=rt();else{var n=rt(),r=it();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function at(){var e=ot(!0);return!e||(e(),!1)}function st(e,t,n){return function(r,i){var o;Ge(r)&&!at()&&(null===n||void 0===n||n(r,i),null===(o=e.animationState)||void 0===o||o.setActive(Be.Hover,t))}}var ut=function(e,t){return!!t&&(e===t||ut(e,t.parentElement))},ct=n(6717),lt=function(e,t){return function(n){return t(e(n))}},dt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(lt)};var ft=function(e){return function(t){return e(t),null}},ht={tap:ft((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(!1),c=(0,i.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return l(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Be.Tap,!1),!at()}function f(e,n){d()&&(ut(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function h(e,t){d()&&(null===r||void 0===r||r(e,t))}tt(a,"pointerdown",s?function(e,t){var r;l(),u.current||(u.current=!0,c.current=dt(et(window,"pointerup",f),et(window,"pointercancel",h)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(Be.Tap,!0))}:void 0),(0,ct.z)(l)})),focus:ft((function(e){var t=e.whileFocus,n=e.visualElement;Ve(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Be.Focus,!0)}:void 0),Ve(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Be.Focus,!1)}:void 0)})),hover:ft((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;tt(i,"pointerenter",t||r?st(i,!0,t):void 0),tt(i,"pointerleave",n||r?st(i,!1,n):void 0)}))};function pt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var mt=function(e,t,n){return Math.min(Math.max(n,e),t)},gt=.001;function vt(e){var t,n,r=e.duration,i=void 0===r?800:r,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c,d=1-a;d=mt(.05,1,d),i=mt(.01,10,i/1e3),d<1?(t=function(e){var t=e*d,n=t*i,r=t-u,o=yt(e,d),a=Math.exp(-n);return gt-r/o*a},n=function(e){var n=e*d*i,r=n*u+u,o=Math.pow(d,2)*Math.pow(e,2)*i,a=Math.exp(-n),s=yt(Math.pow(e,2),d);return(-t(e)+gt>0?-1:1)*((r-o)*a)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-.001},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var f=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:i};var h=Math.pow(f,2)*l;return{stiffness:h,damping:2*d*Math.sqrt(l*h),duration:i}}function yt(e,t){return e*Math.sqrt(1-t*t)}var bt=["duration","bounce"],Et=["stiffness","damping","mass"];function Tt(e,t){return t.some((function(t){return void 0!==e[t]}))}function xt(e){var t=e.from,n=void 0===t?0:t,i=e.to,o=void 0===i?1:i,a=e.restSpeed,s=void 0===a?2:a,u=e.restDelta,c=(0,r.__rest)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},d=function(e){var t=(0,r.__assign)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Tt(e,Et)&&Tt(e,bt)){var n=vt(e);(t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),f=d.stiffness,h=d.damping,p=d.mass,m=d.velocity,g=d.duration,v=d.isResolvedFromDuration,y=_t,b=_t;function E(){var e=m?-m/1e3:0,t=o-n,r=h/(2*Math.sqrt(f*p)),i=Math.sqrt(f/p)/1e3;if(null!==u&&void 0!==u||(u=Math.abs(o-n)<=1?.01:.4),r<1){var a=yt(i,r);y=function(n){var s=Math.exp(-r*i*n);return o-s*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},b=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)y=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var s=i*Math.sqrt(r*r-1);y=function(n){var a=Math.exp(-r*i*n),u=Math.min(s*n,300);return o-a*((e+r*i*t)*Math.sinh(u)+s*t*Math.cosh(u))/s}}}return E(),{next:function(e){var t=y(e);if(v)l.done=e>=g;else{var n=1e3*b(e),r=Math.abs(n)<=s,i=Math.abs(o-t)<=u;l.done=r&&i}return l.value=l.done?o:t,l},flipTarget:function(){var e;m=-m,n=(e=[o,n])[0],o=e[1],E()}}}xt.needsInterpolation=function(e,t){return"string"===typeof e||"string"===typeof t};var _t=function(e){return 0},wt=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},kt=function(e,t,n){return-n*e+n*t+e},Ct=function(e,t){return function(n){return Boolean(Z(n)&&$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},At=function(e,t,n){return function(r){var i;if(!Z(r))return r;var o=r.match(q),a=o[0],s=o[1],u=o[2],c=o[3];return(i={})[e]=parseFloat(a),i[t]=parseFloat(s),i[n]=parseFloat(u),i.alpha=void 0!==c?parseFloat(c):1,i}},St=G(0,255),Ot=(0,r.__assign)((0,r.__assign)({},re),{transform:function(e){return Math.round(St(e))}}),Dt={test:Ct("rgb","red"),parse:At("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,o=void 0===i?1:i;return"rgba("+Ot.transform(t)+", "+Ot.transform(n)+", "+Ot.transform(r)+", "+K(ie.transform(o))+")"}};var It={test:Ct("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Dt.transform},Nt={test:Ct("hsl","hue"),parse:At("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,o=void 0===i?1:i;return"hsla("+Math.round(t)+", "+Q.transform(K(n))+", "+Q.transform(K(r))+", "+K(ie.transform(o))+")"}},Rt=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Mt=[It,Dt,Nt],Pt=function(e){return Mt.find((function(t){return t.test(e)}))},Lt=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ft=function(e,t){var n=Pt(e),i=Pt(t);Lt(e),Lt(t),n.transform,i.transform;var o=n.parse(e),a=i.parse(t),s=(0,r.__assign)({},o),u=n===Nt?kt:Rt;return function(e){for(var t in s)"alpha"!==t&&(s[t]=u(o[t],a[t],e));return s.alpha=kt(o.alpha,a.alpha,e),n.transform(s)}},jt={test:function(e){return Dt.test(e)||It.test(e)||Nt.test(e)},parse:function(e){return Dt.test(e)?Dt.parse(e):Nt.test(e)?Nt.parse(e):It.parse(e)},transform:function(e){return Z(e)?e:e.hasOwnProperty("red")?Dt.transform(e):Nt.transform(e)}},Ht="${c}",Bt="${n}";function zt(e){var t=[],n=0,r=e.match(W);r&&(n=r.length,e=e.replace(W,Ht),t.push.apply(t,r.map(jt.parse)));var i=e.match(q);return i&&(e=e.replace(q,Bt),t.push.apply(t,i.map(re.parse))),{values:t,numColors:n,tokenised:e}}function Ut(e){return zt(e).values}function Vt(e){var t=zt(e),n=t.values,r=t.numColors,i=t.tokenised,o=n.length;return function(e){for(var t=i,n=0;n<o;n++)t=t.replace(n<r?Ht:Bt,n<r?jt.transform(e[n]):K(e[n]));return t}}var Gt=function(e){return"number"===typeof e?0:e};var Kt={test:function(e){var t,n,r,i;return isNaN(e)&&Z(e)&&(null!==(n=null===(t=e.match(q))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(W))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Ut,createTransformer:Vt,getAnimatableNone:function(e){var t=Ut(e);return Vt(e)(t.map(Gt))}},qt=function(e){return"number"===typeof e};function Wt(e,t){return qt(e)?function(n){return kt(e,t,n)}:jt.test(e)?Ft(e,t):Xt(e,t)}var $t=function(e,t){var n=(0,r.__spreadArray)([],e),i=n.length,o=e.map((function(e,n){return Wt(e,t[n])}));return function(e){for(var t=0;t<i;t++)n[t]=o[t](e);return n}},Zt=function(e,t){var n=(0,r.__assign)((0,r.__assign)({},e),t),i={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=Wt(e[o],t[o]));return function(e){for(var t in i)n[t]=i[t](e);return n}};function Yt(e){for(var t=Kt.parse(e),n=t.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}var Xt=function(e,t){var n=Kt.createTransformer(t),r=Yt(e),i=Yt(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&(r.numNumbers,i.numNumbers),dt($t(r.parsed,i.parsed),n)},Qt=function(e,t){return function(n){return kt(e,t,n)}};function Jt(e,t,n){for(var r,i=[],o=n||("number"===typeof(r=e[0])?Qt:"string"===typeof r?jt.test(r)?Ft:Xt:Array.isArray(r)?$t:"object"===typeof r?Zt:void 0),a=e.length-1,s=0;s<a;s++){var u=o(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;u=dt(c,u)}i.push(u)}return i}function en(e,t,n){var r=void 0===n?{}:n,i=r.clamp,o=void 0===i||i,a=r.ease,s=r.mixer,u=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=Jt(t,a,s),l=2===u?function(e,t){var n=e[0],r=e[1],i=t[0];return function(e){return i(wt(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(i){var o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>i||s===r);s++);o=s-1}var u=wt(e[o],e[o+1],i);return t[o](u)}}(e,c);return o?function(t){return l(mt(e[0],e[u-1],t))}:l}var tn,nn=function(e){return function(t){return 1-e(1-t)}},rn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},on=function(e){return function(t){return t*t*((e+1)*t-e)}},an=function(e){return e},sn=(tn=2,function(e){return Math.pow(e,tn)}),un=nn(sn),cn=rn(sn),ln=function(e){return 1-Math.sin(Math.acos(e))},dn=nn(ln),fn=rn(dn),hn=on(1.525),pn=nn(hn),mn=rn(hn),gn=function(e){var t=on(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),vn=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},yn=nn(vn);function bn(e,t){return e.map((function(){return t||cn})).splice(0,e.length-1)}function En(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,o=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(i)?i:[n,i],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),u);function f(){return en(d,l,{ease:Array.isArray(o)?o:bn(l,o)})}var h=f();return{next:function(e){return c.value=h(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),h=f()}}}var Tn={keyframes:En,spring:xt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,i=void 0===r?0:r,o=e.power,a=void 0===o?.8:o,s=e.timeConstant,u=void 0===s?350:s,c=e.restDelta,l=void 0===c?.5:c,d=e.modifyTarget,f={done:!1,value:i},h=a*n,p=i+h,m=void 0===d?p:d(p);return m!==p&&(h=m-i),{next:function(e){var t=-h*Math.exp(-e/u);return f.done=!(t>l||t<-l),f.value=f.done?m:m+t,f},flipTarget:function(){}}}};var xn=n(9839);function _n(e,t,n){return void 0===n&&(n=0),e-t-n}var wn=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return xn.ZP.update(t,!0)},stop:function(){return xn.qY.update(t)}}};function kn(e){var t,n,i,o,a,s=e.from,u=e.autoplay,c=void 0===u||u,l=e.driver,d=void 0===l?wn:l,f=e.elapsed,h=void 0===f?0:f,p=e.repeat,m=void 0===p?0:p,g=e.repeatType,v=void 0===g?"loop":g,y=e.repeatDelay,b=void 0===y?0:y,E=e.onPlay,T=e.onStop,x=e.onComplete,_=e.onRepeat,w=e.onUpdate,k=(0,r.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=k.to,A=0,S=k.duration,O=!1,D=!0,I=function(e){if(Array.isArray(e.to))return En;if(Tn[e.type])return Tn[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?En:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?xt:En}(k);(null===(n=(t=I).needsInterpolation)||void 0===n?void 0:n.call(t,s,C))&&(a=en([0,100],[s,C],{clamp:!1}),s=0,C=100);var N=I((0,r.__assign)((0,r.__assign)({},k),{from:s,to:C}));function R(){A++,"reverse"===v?h=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?_n(t+-e,t,n):t-(e-t)+n}(h,S,b,D=A%2===0):(h=_n(h,S,b),"mirror"===v&&N.flipTarget()),O=!1,_&&_()}function M(e){if(D||(e=-e),h+=e,!O){var t=N.next(Math.max(0,h));o=t.value,a&&(o=a(o)),O=D?t.done:h<=0}null===w||void 0===w||w(o),O&&(0===A&&(null!==S&&void 0!==S||(S=h)),A<m?function(e,t,n,r){return r?e>=t+n:e<=-n}(h,S,b,D)&&R():(i.stop(),x&&x()))}return c&&(null===E||void 0===E||E(),(i=d(M)).start()),{stop:function(){null===T||void 0===T||T(),i.stop()}}}function Cn(e,t){return t?e*(1e3/t):0}var An=function(e){return 1e3*e},Sn=function(e,t){return 1-3*t+3*e},On=function(e,t){return 3*t-6*e},Dn=function(e){return 3*e},In=function(e,t,n){return((Sn(t,n)*e+On(t,n))*e+Dn(t))*e},Nn=function(e,t,n){return 3*Sn(t,n)*e*e+2*On(t,n)*e+Dn(t)};var Rn=.1;function Mn(e,t,n,r){if(e===t&&n===r)return an;for(var i=new Float32Array(11),o=0;o<11;++o)i[o]=In(o*Rn,e,n);function a(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=Rn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*Rn,s=Nn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var o=Nn(t,n,r);if(0===o)return t;t-=(In(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0;do{(o=In(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+Rn,e,n)}return function(e){return 0===e||1===e?e:In(a(e),t,r)}}var Pn={linear:an,easeIn:sn,easeInOut:cn,easeOut:un,circIn:ln,circInOut:fn,circOut:dn,backIn:hn,backInOut:mn,backOut:pn,anticipate:gn,bounceIn:yn,bounceInOut:function(e){return e<.5?.5*(1-vn(1-2*e)):.5*vn(2*e-1)+.5},bounceOut:vn},Ln=function(e){if(Array.isArray(e)){e.length;var t=(0,r.__read)(e,4);return Mn(t[0],t[1],t[2],t[3])}return"string"===typeof e?Pn[e]:e},Fn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Kt.test(t)||t.startsWith("url(")))},jn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Hn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Bn=function(){return{type:"keyframes",ease:"linear",duration:.3}},zn=function(e){return{type:"keyframes",duration:.8,values:e}},Un={x:jn,y:jn,z:jn,rotate:jn,rotateX:jn,rotateY:jn,rotateZ:jn,scaleX:Hn,scaleY:Hn,scale:Hn,opacity:Bn,backgroundColor:Bn,color:Bn,default:Hn},Vn=new Set(["brightness","contrast","saturate","opacity"]);function Gn(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=(r.match(q)||[])[0];if(!i)return e;var o=r.replace(i,""),a=Vn.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}var Kn=/([a-z-]*)\(.*?\)/g,qn=(0,r.__assign)((0,r.__assign)({},Kt),{getAnimatableNone:function(e){var t=e.match(Kn);return t?t.map(Gn).join(" "):e}}),Wn=(0,r.__assign)((0,r.__assign)({},se),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:qn,WebkitFilter:qn}),$n=function(e){return Wn[e]};function Zn(e,t){var n,r=$n(e);return r!==qn&&(r=Kt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Yn(e){var t=e.ease,n=e.times,i=e.yoyo,o=e.flip,a=e.loop,s=(0,r.__rest)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.__assign)({},s);return n&&(u.offset=n),s.duration&&(u.duration=An(s.duration)),s.repeatDelay&&(u.repeatDelay=An(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(Ln):Ln(t)),"tween"===s.type&&(u.type="keyframes"),(i||a||o)&&(!0,i?u.repeatType="reverse":a?u.repeatType="loop":o&&(u.repeatType="mirror"),u.repeat=a||i||o||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function Xn(e,t,n){var i;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.__spreadArray)([],(0,r.__read)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r.__rest)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.__assign)((0,r.__assign)({},e),function(e,t){var n;return n=Me(t)?zn:Un[e]||Un.default,(0,r.__assign)({to:t},n(t))}(n,t.to))),(0,r.__assign)((0,r.__assign)({},t),Yn(e))}function Qn(e,t,n,i,o){var a,s=tr(i,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=Fn(e,n);"none"===u&&c&&"string"===typeof n?u=Zn(e,n):Jn(u)&&"string"===typeof n?u=er(n):!Array.isArray(n)&&Jn(n)&&"string"===typeof u&&(n=er(u));var l=Fn(e,u);return l&&c&&!1!==s.type?function(){var i={from:u,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,i=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,s=e.min,u=e.max,c=e.power,l=void 0===c?.8:c,d=e.timeConstant,f=void 0===d?750:d,h=e.bounceStiffness,p=void 0===h?500:h,m=e.bounceDamping,g=void 0===m?10:m,v=e.restDelta,y=void 0===v?1:v,b=e.modifyTarget,E=e.driver,T=e.onUpdate,x=e.onComplete;function _(e){return void 0!==s&&e<s||void 0!==u&&e>u}function w(e){return void 0===s?u:void 0===u||Math.abs(s-e)<Math.abs(u-e)?s:u}function k(e){null===t||void 0===t||t.stop(),t=kn((0,r.__assign)((0,r.__assign)({},e),{driver:E,onUpdate:function(t){var n;null===T||void 0===T||T(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:x}))}function C(e){k((0,r.__assign)({type:"spring",stiffness:p,damping:g,restDelta:y},e))}if(_(i))C({from:i,velocity:a,to:w(i)});else{var A=l*a+i;"undefined"!==typeof b&&(A=b(A));var S,O,D=w(A),I=D===s?-1:1;k({type:"decay",from:i,velocity:a,timeConstant:f,power:l,restDelta:y,modifyTarget:b,onUpdate:_(A)?function(e){S=O,O=e,a=Cn(e-S,(0,xn.$B)().delta),(1===I&&e>D||-1===I&&e<D)&&C({from:e,to:D,velocity:a})}:void 0})}return{stop:function(){return null===t||void 0===t?void 0:t.stop()}}}((0,r.__assign)((0,r.__assign)({},i),s)):kn((0,r.__assign)((0,r.__assign)({},Xn(s,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;i.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(n),o(),null===(e=null===s||void 0===s?void 0:s.onComplete)||void 0===e||e.call(s),{stop:function(){}}}}function Jn(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function er(e){return"number"===typeof e?0:Zn("",e)}function tr(e,t){return e[t]||e.default||e}function nr(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var o,a,s=Qn(e,t,n,r,i),u=function(e,t){var n;return null!==(n=(tr(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),c=function(){return a=s()};return u?o=setTimeout(c,An(u)):c(),function(){clearTimeout(o),null===a||void 0===a||a.stop()}}))}function rr(e,t){-1===e.indexOf(t)&&e.push(t)}function ir(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var or=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rr(this.subscriptions,e),function(){return ir(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ar=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new or,this.velocityUpdateSubscribers=new or,this.renderSubscribers=new or,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=(0,xn.$B)(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,xn.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return xn.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Cn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function sr(e){return new ar(e)}var ur=function(e){return function(t){return t.test(e)}},cr=[re,J,Q,X,te,ee,{test:function(e){return"auto"===e},parse:function(e){return e}}],lr=function(e){return cr.find(ur(e))},dr=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(cr)),[jt,Kt]),fr=function(e){return dr.find(ur(e))};function hr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sr(n))}function pr(e,t){var n=x(e,t),i=n?e.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o;i.transition;var s,u=(0,r.__rest)(i,["transitionEnd","transition"]);for(var c in u=(0,r.__assign)((0,r.__assign)({},u),a)){hr(e,c,(s=u[c],Me(s)?s[s.length-1]||0:s))}}function mr(e,t){if(t)return(t[e]||t.default||t).from}function gr(e,t,n){var i;void 0===n&&(n={});var o=x(e,t,n.custom),a=(o||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=o?function(){return vr(e,o,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=s.delayChildren,a=void 0===o?0:o,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var s=[],u=(e.variantChildren.size-1)*i,c=1===o?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),u-e*i};return Array.from(e.variantChildren).sort(yr).forEach((function(e,i){s.push(gr(e,t,(0,r.__assign)((0,r.__assign)({},a),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+i,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,r.__read)("beforeChildren"===l?[u,c]:[c,u],2),f=d[0],h=d[1];return f().then(h)}return Promise.all([u(),c(n.delay)])}function vr(e,t,n){var i,o=void 0===n?{}:n,a=o.delay,s=void 0===a?0:a,u=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,h=l.transitionEnd,p=(0,r.__rest)(l,["transition","transitionEnd"]);u&&(f=u);var m=[],g=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var v in p){var y=e.getValue(v),b=p[v];if(!(!y||void 0===b||g&&br(g,v))){var E=nr(v,y,b,(0,r.__assign)({delay:s},f));m.push(E)}}return Promise.all(m).then((function(){h&&pr(e,h)}))}function yr(e,t){return e.sortNodePosition(t)}function br(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Er=[Be.Animate,Be.Hover,Be.Tap,Be.Drag,Be.Focus,Be.Exit],Tr=(0,r.__spreadArray)([],(0,r.__read)(Er)).reverse(),xr=Er.length;function _r(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var i=t.map((function(t){return gr(e,t,n)}));r=Promise.all(i)}else if("string"===typeof t)r=gr(e,t,n);else{var o="function"===typeof t?x(e,t,n.custom):t;r=vr(e,o,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function wr(e){var t=_r(e),n=function(){var e;return(e={})[Be.Animate]=kr(!0),e[Be.Hover]=kr(),e[Be.Tap]=kr(),e[Be.Drag]=kr(),e[Be.Focus]=kr(),e[Be.Exit]=kr(),e}(),i={},o=!0,a=function(t,n){var i=x(e,n);if(i){i.transition;var o=i.transitionEnd,a=(0,r.__rest)(i,["transition","transitionEnd"]);t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),a),o)}return t};function s(s,u){for(var c,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set,p={},m=1/0,g=function(t){var i=Tr[t],g=n[i],v=null!==(c=l[i])&&void 0!==c?c:d[i],y=E(v),T=i===u?g.isActive:null;!1===T&&(m=t);var x=v===d[i]&&v!==l[i]&&y;if(x&&o&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys=(0,r.__assign)({},p),!g.isActive&&null===T||!v&&!g.prevProp||Ne(v)||"boolean"===typeof v)return"continue";var _=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!pt(t,e);return!1}(g.prevProp,v)||i===u&&g.isActive&&!x&&y||t>m&&y,w=Array.isArray(v)?v:[v],k=w.reduce(a,{});!1===T&&(k={});var C=g.prevResolvedValues,A=void 0===C?{}:C,S=(0,r.__assign)((0,r.__assign)({},A),k),O=function(e){_=!0,h.delete(e),g.needsAnimating[e]=!0};for(var D in S){var I=k[D],N=A[D];p.hasOwnProperty(D)||(I!==N?Me(I)&&Me(N)?pt(I,N)?g.protectedKeys[D]=!0:O(D):void 0!==I?O(D):h.add(D):void 0!==I&&h.has(D)?O(D):g.protectedKeys[D]=!0)}g.prevProp=v,g.prevResolvedValues=k,g.isActive&&(p=(0,r.__assign)((0,r.__assign)({},p),k)),o&&e.blockInitialAnimation&&(_=!1),_&&!x&&f.push.apply(f,(0,r.__spreadArray)([],(0,r.__read)(w.map((function(e){return{animation:e,options:(0,r.__assign)({type:i},s)}})))))},v=0;v<xr;v++)g(v);if(i=(0,r.__assign)({},p),h.size){var y={};h.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var T=Boolean(f.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(T=!1),o=!1,T?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,r,i){var o;return n[t].isActive===r?Promise.resolve():(null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(i,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function kr(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Cr={animation:ft((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=wr(t)),Ne(n)&&(0,i.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:ft((function(e){var t=e.custom,n=e.visualElement,o=(0,r.__read)((0,h.oO)(),2),a=o[0],s=o[1],u=(0,i.useContext)(f.O);(0,i.useEffect)((function(){var e,r,i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Be.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===i||void 0===i||i.then(s))}),[a])}))},Ar=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Sr=function(e){return Ar(e)&&e.hasOwnProperty("z")},Or=function(e,t){return Math.abs(e-t)};function Dr(e,t){if(qt(e)&&qt(t))return Or(e,t);if(Ar(e)&&Ar(t)){var n=Or(e.x,t.x),r=Or(e.y,t.y),i=Sr(e)&&Sr(t)?Or(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Ir=function(){function e(e,t,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Mr(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Dr(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=(0,xn.$B)().timestamp;i.history.push((0,r.__assign)((0,r.__assign)({},o),{timestamp:a}));var s=i.handlers,u=s.onStart,c=s.onMove;t||(u&&u(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=Nr(t,i.transformPagePoint),Ge(e)&&0===e.buttons?i.handlePointerUp(e,t):xn.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Mr(Nr(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(Ke(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Nr(Ze(e),this.transformPagePoint),s=a.point,u=(0,xn.$B)().timestamp;this.history=[(0,r.__assign)((0,r.__assign)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,Mr(a,this.history)),this.removeListeners=dt(et(window,"pointermove",this.handlePointerMove),et(window,"pointerup",this.handlePointerUp),et(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),xn.qY.update(this.updatePoint)},e}();function Nr(e,t){return t?{point:t(e.point)}:e}function Rr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mr(e,t){var n=e.point;return{point:n,delta:Rr(n,Lr(t)),offset:Rr(n,Pr(t)),velocity:Fr(t,.1)}}function Pr(e){return e[0]}function Lr(e){return e[e.length-1]}function Fr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Lr(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var jr=n(93327);function Hr(e){return[e("x"),e("y")]}function Br(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?kt(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?kt(i,e,n.max):Math.min(e,i)),e}function zr(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ur(e,t){var n,i=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,r.__read)([o,i],2))[0],o=n[1]),{min:e.min+i,max:e.min+o}}function Vr(e,t,n){return{min:Gr(e,t),max:Gr(e,n)}}function Gr(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Kr(e,t){var n=e.getBoundingClientRect();return(0,jr.RX)((0,jr.dV)(n,t))}function qr(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Dr(e,t)<n}function Wr(e){return e.max-e.min}function $r(e,t){var n=.5,r=Wr(e),i=Wr(t);return i>r?n=wt(t.min,t.max-r,e.min):r>i&&(n=wt(e.min,e.max-i,t.min)),mt(0,1,n)}function Zr(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=kt(t.min,t.max,e.origin),e.scale=Wr(n)/Wr(t),qr(e.scale,1,1e-4)&&(e.scale=1),e.translate=kt(n.min,n.max,e.origin)-e.originPoint,qr(e.translate)&&(e.translate=0)}function Yr(e,t,n,r){Zr(e.x,t.x,n.x,Xr(r.originX)),Zr(e.y,t.y,n.y,Xr(r.originY))}function Xr(e){return"number"===typeof e?e:.5}function Qr(e,t,n){e.min=n.min+t.min,e.max=e.min+Wr(t)}var Jr=n(58839);function ei(e,t){return{min:t.min-e.min,max:t.max-e.min}}function ti(e,t){return{x:ei(e.x,t.x),y:ei(e.y,t.y)}}function ni(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ri(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function ii(e,t){e.min=t.min,e.max=t.max}function oi(e,t,n){return n+t*(e-n)}function ai(e,t,n,r,i){return void 0!==i&&(e=oi(e,i,r)),oi(e,n,r)+t}function si(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ai(e.min,t,n,r,i),e.max=ai(e.max,t,n,r,i)}function ui(e,t){var n=t.x,r=t.y;si(e.x,n.translate,n.scale,n.originPoint),si(e.y,r.translate,r.scale,r.originPoint)}function ci(e,t,n,i){var o=(0,r.__read)(i,3),a=o[0],s=o[1],u=o[2];e.min=t.min,e.max=t.max;var c=void 0!==n[u]?n[u]:.5,l=kt(t.min,t.max,c);si(e,n[a],n[s],l,n.scale)}var li=["x","scaleX","originX"],di=["y","scaleY","originY"];function fi(e,t,n){ci(e.x,t.x,n,li),ci(e.y,t.y,n,di)}function hi(e,t,n,r,i){return e=oi(e-=t,1/n,r),void 0!==i&&(e=oi(e,1/i,r)),e}function pi(e,t,n){var i=(0,r.__read)(n,3),o=i[0],a=i[1],s=i[2];!function(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var o=kt(e.min,e.max,r)-t;e.min=hi(e.min,t,n,o,i),e.max=hi(e.max,t,n,o,i)}(e,t[o],t[a],t[s],t.scale)}function mi(e,t){pi(e.x,t,li),pi(e.y,t,di)}var gi,vi=n(27565),yi=new WeakMap,bi=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,jr.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),yi.set(t,this)}return e.prototype.start=function(e,t){var n=this,i=void 0===t?{}:t,o=i.snapToCursor,a=void 0!==o&&o,s=i.cursorProgress,u=this.props.transformPagePoint;this.panSession=new Ir(e,{onSessionStart:function(e){var t;n.stopMotion();var i=function(e){return Ze(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,vi.U)((function(e,t){var o=(0,Jr.kv)(n.visualElement),u=(0,Jr.e3)(n.visualElement),c=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(o)),(0,r.__read)(u)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,Jr.de)(n.visualElement),u.forEach(Jr.de)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(i))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Hr((function(t){if(!l){var r=e.target[t],o=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:wt(o,a,i[t])}var u=n.getAxisMotionValue(t);u&&(n.originPoint[t]=u.get())}))})),t((function(){xn.iW.update(),xn.iW.preRender(),xn.iW.render(),xn.iW.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,i,o,a=n.props,s=a.drag,u=a.dragPropagation;(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ot(s),n.openGlobalLock))&&((0,vi.R)(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,e,t),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(Be.Drag,!0))},onMove:function(e,t){var r,i,o,a,s=n.props,u=s.dragPropagation,c=s.dragDirectionLock;if(u||n.openGlobalLock){var l=t.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,e,t),gi=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:u})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,i=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(i,n):function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:zr(e.x,r,o),y:zr(e.y,n,i)}}(i,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Vr(e,"left","right"),y:Vr(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Hr((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=t.current;this.constraintsBox=Kr(o,i);var a=function(e,t){return{x:Ur(e.x,t.x),y:Ur(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,jr._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,jr.RX)(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Be.Drag,!1)},e.prototype.stop=function(e,t){var n,r,i;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=t.velocity;this.animateDragEnd(a),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Hr((function(n){if(Ei(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var i=t.visualElement.getLayoutState().layout,o=i[n].max-i[n].min,a=i[n].min+o/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Ei(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],i=this.constraints?Br(r,this.constraints[e],this.elastic[e]):r;n.set(i)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],i=r.max-r.min,o=this.cursorProgress[e],a=function(e,t,n,r,i){var o=e-t*n;return r?Br(o,r,i):o}(t[e],i,o,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+i)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,o=void 0!==i&&i,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,d=void 0===l?.35:l,f=e.dragMomentum,h=void 0===f||f,p=(0,r.__rest)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.__assign)({drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:h},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,i="_drag"+e.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?mi(n=ti(r.projection.target,e.projection.target),r.getLatestValues()):n=ti(r.getLayoutState().layout,e.getLayoutState().layout),Hr((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(u&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var d=ti(l.projection.targetFinal,c);Hr((function(e){var t=d[e],n=t.min,r=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var f=Hr((function(n){var l;if(Ei(n,i,t.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},f=a?200:1e6,h=a?40:1e7,p=(0,r.__assign)((0,r.__assign)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,u)}}));return Promise.all(f).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Hr((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),nr(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(y(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Hr((function(t){r[t]=$r(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){Hr((function(t){if(Ei(t,n,null)){var i=function(e,t,n){var r=e.max-e.min,i=kt(t.min,t.max-r,n);return{min:i,max:i+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),o=i.min,a=i.max;e.visualElement.setProjectionTargetAxis(t,o,a)}}))})),setTimeout(vi.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,vi.U)((function(n,r){var i=(0,Jr.kv)(t.visualElement);r((function(){return i.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,Jr.de)(t.visualElement)})),r((function(){return i.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=et(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=Ue(window,"resize",(function(){t.scalePoint()})),i=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),o=e.prevDragCursor;return o&&this.start(gi,{cursorProgress:o}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===i||void 0===i||i(),t.cancelDrag()}},e}();function Ei(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Ti={pan:ft((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(null),c=(0,i.useContext)(l).transformPagePoint,d={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,i.useEffect)((function(){null!==u.current&&u.current.updateHandlers(d)})),tt(a,"pointerdown",s&&function(e){u.current=new Ir(e,d,{transformPagePoint:c})}),(0,ct.z)((function(){return u.current&&u.current.end()}))})),drag:ft((function(e){var t=e.dragControls,n=e.visualElement,o=(0,i.useContext)(l).transformPagePoint,a=(0,Re.h)((function(){return new bi({visualElement:n})}));a.setProps((0,r.__assign)((0,r.__assign)({},e),{transformPagePoint:o})),(0,i.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,i.useEffect)((function(){return a.mount(n)}),[])}))},xi=n(7646);function _i(e){return"string"===typeof e&&e.startsWith("var(--")}var wi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ki(e,t,n){void 0===n&&(n=1);var i=(0,r.__read)(function(e){var t=wi.exec(e);if(!t)return[,];var n=(0,r.__read)(t,3);return[n[1],n[2]]}(e),2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(t).getPropertyValue(o);return s?s.trim():_i(a)?ki(a,t,n+1):a}}function Ci(e,t){return e/(t.max-t.min)*100}var Ai="_$css";var Si={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!J.test(e))return e;e=parseFloat(e)}return Ci(e,r.x)+"% "+Ci(e,r.y)+"%"}},Oi={borderRadius:(0,r.__assign)((0,r.__assign)({},Si),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Si,borderTopRightRadius:Si,borderBottomLeftRadius:Si,borderBottomRightRadius:Si,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(wi,(function(e){return a.push(e),Ai})));var s=Kt.parse(e);if(s.length>5)return i;var u=Kt.createTransformer(e),c="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=d;var f=kt(l,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=f),"number"===typeof s[3+c]&&(s[3+c]/=f);var h=u(s);if(o){var p=0;h=h.replace(Ai,(function(){var e=a[p];return p++,e}))}return h}}},Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,jr.VZ)(),t.currentAnimationTarget=(0,jr.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,s=i.visibilityAction,u=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,d=(0,r.__rest)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=t.props,h=f.visualElement,p=f.layout;if(!1===u)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===u){u&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var m=!1,g=h.getProjectionParent();if(g){var v=g.prevViewportBox,y=g.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),o&&!ni(l,g)&&l.prevViewportBox&&(v=l.prevViewportBox)),v&&Li(l,o,a)&&(m=!0,n=ti(v,n),e=ti(y,e))}var b=Ii(n,e),E=Hr((function(i){var o,a;if("position"===p){var u=e[i].max-e[i].min;n[i].max=n[i].min+u}if(!h.projection.isTargetLocked)return void 0===s?b?t.animateAxis(i,e[i],n[i],(0,r.__assign)((0,r.__assign)({},d),{isRelative:m})):(null===(a=(o=t.stopAxisAnimation)[i])||void 0===a||a.call(o),h.setProjectionTargetAxis(i,e[i].min,e[i].max,m)):void h.setVisibility(s===xi.c.Show)}));return h.syncRender(),Promise.all(E).then((function(){t.isAnimatingTree=!1,c&&c(),h.notifyLayoutAnimationComplete()}))}},t}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=nr,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)I[t]=e[t]}(Oi)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Hr((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var i,o,a=this,s=void 0===r?{}:r,u=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!Mi(t,this.currentAnimationTarget[e])){null===(o=(i=this.stopAxisAnimation)[e])||void 0===o||o.call(i),this.isAnimating[e]=!0;var l=this.props.visualElement,d=this.frameTarget[e],f=l.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var h=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=kt(t.min,n.min,r),e.max=kt(t.max,n.max,r)}(d,n,t,r),l.setProjectionTargetAxis(e,d.min,d.max,c)};h();var p=f.onChange(h);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),p()},this.currentAnimationTarget[e]=t;var m=u||l.getDefaultTransition()||Pi;return nr("x"===e?"layoutX":"layoutY",f,1e3,m&&tr(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(i.Component);function Ii(e,t){return!Ri(e)&&!Ri(t)&&(!Mi(e.x,t.x)||!Mi(e.y,t.y))}var Ni={min:0,max:0};function Ri(e){return Mi(e.x,Ni)&&Mi(e.y,Ni)}function Mi(e,t){return e.min===t.min&&e.max===t.max}var Pi={duration:.45,ease:[.4,0,.1,1]};function Li(e,t,n){return e||!e&&!(t||n)}var Fi=n(49870),ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,Fi.Md)(t)&&t.register(r),(0,Fi.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Fi.Md)(t)&&t.remove(r),(0,Fi.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Fi.Md)(t)?t.syncUpdate():((0,Jr.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Fi.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(i.Component);var Hi={measureLayout:function(e){var t=(0,i.useContext)(Fi.WH),n=(0,i.useContext)(Fi.bg);return i.createElement(ji,(0,r.__assign)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.__read)((0,h.oO)(),2)[1];return i.createElement(Di,(0,r.__assign)({},e,{safeToRemove:t}))}};function Bi(){return{isHydrated:!1,layout:(0,jr.VZ)(),layoutCorrected:(0,jr.VZ)(),treeScale:{x:1,y:1},delta:(0,jr.pY)(),deltaFinal:(0,jr.pY)(),deltaTransform:""}}var zi=Bi();function Ui(e,t,n){var r=e.x,i=e.y,o="translate3d("+r.translate/t.x+"px, "+i.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate("+a+") "),s&&(o+="rotateX("+s+") "),u&&(o+="rotateY("+u+") ")}return o+="scale("+r.scale+", "+i.scale+")",n||o!==Gi?o:""}function Vi(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Gi=Ui(zi.delta,zi.treeScale,{x:1,y:1}),Ki=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function qi(e,t,n,r){var i,o,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;o=s,ii((i=u).x,o.x),ii(i.y,o.y),function(e,t,n){var r=n.length;if(r){var i,o;t.x=t.y=1;for(var a=0;a<r;a++)o=(i=n[a]).getLayoutState().delta,t.x*=o.x.scale,t.y*=o.y.scale,ui(e,o),ri(i)&&fi(e,e,i.getLatestValues())}}(u,c,n),Yr(a,u,l,r)}var Wi=n(519),$i=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){ir(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Wi._),this.isDirty=!1,this.children.forEach(e)},e}();var Zi=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.resetTransform,d=e.restoreTransform,f=e.removeValueFromRenderState,h=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,g=e.props,v=e.presenceId,y=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var T,x,k,C,A,S,O=b.latestValues,D=b.renderState,I=function(){var e=Ki.map((function(){return new or})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Ki.forEach((function(r){var i;null===(i=t[r])||void 0===i||i.call(t);var o="on"+r,a=e[o];a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+Ki[t]]=function(t){return e.add(t)},n["notify"+Ki[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.__spreadArray)([],(0,r.__read)(t)))}})),n}(),N={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:(0,jr.VZ)(),targetFinal:(0,jr.VZ)()},R=N,M=O,P=Bi(),L=!1,F=new Map,j=new Map,H={},z=(0,r.__assign)({},O);function U(){T&&(X.isProjectionReady()&&(fi(R.targetFinal,R.target,M),Yr(P.deltaFinal,P.layoutCorrected,R.targetFinal,O)),V(),u(T,D))}function V(){var e=O;if(C&&C.isActive()){var n=C.getCrossfadeState(X);n&&(e=n)}i(X,D,e,R,P,t,g)}function G(){I.notifyUpdate(O)}function K(){X.layoutTree.forEach(Xi)}var q=p(g);for(var W in q){var $=q[W];void 0!==O[W]&&B($)&&$.set(O[W],!1)}var Z=_(g),Y=w(g),X=(0,r.__assign)((0,r.__assign)({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,path:m?(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(m.path)),[m]):[],layoutTree:m?m.layoutTree:new $i,presenceId:v,projection:N,variantChildren:Y?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===m||void 0===m?void 0:m.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(T)},mount:function(e){T=X.current=e,X.pointTo(X),Y&&m&&!Z&&(S=null===m||void 0===m?void 0:m.addVariantChild(X)),null===m||void 0===m||m.children.add(X)},unmount:function(){xn.qY.update(G),xn.qY.render(U),xn.qY.preRender(X.updateLayoutProjection),j.forEach((function(e){return e()})),X.stopLayoutAnimation(),X.layoutTree.remove(X),null===S||void 0===S||S(),null===m||void 0===m||m.children.delete(X),null===k||void 0===k||k(),I.clearAllListeners()},addVariantChild:function(e){var t,n=X.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return h&&n===e.treeType?h(X.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return Y?X:null===m||void 0===m?void 0:m.getClosestVariantNode()},scheduleUpdateLayoutProjection:m?m.scheduleUpdateLayoutProjection:function(){return xn.ZP.preRender(X.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return g.layoutId},getInstance:function(){return T},getStaticValue:function(e){return O[e]},setStaticValue:function(e,t){return O[e]=t},getLatestValues:function(){return O},setVisibility:function(e){X.isVisible!==e&&(X.isVisible=e,X.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(X,e,g,t)},addValue:function(e,t){X.hasValue(e)&&X.removeValue(e),F.set(e,t),O[e]=t.get(),function(e,t){var n=t.onChange((function(t){O[e]=t,g.onUpdate&&xn.ZP.update(G,!1,!0)})),r=t.onRenderRequest(X.scheduleRender);j.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;F.delete(e),null===(t=j.get(e))||void 0===t||t(),j.delete(e),delete O[e],f(e,D)},hasValue:function(e){return F.has(e)},getValue:function(e,t){var n=F.get(e);return void 0===n&&void 0!==t&&(n=sr(t),X.addValue(e,n)),n},forEachValue:function(e){return F.forEach(e)},readValue:function(e){var n;return null!==(n=O[e])&&void 0!==n?n:c(T,e,t)},setBaseTarget:function(e,t){z[e]=t},getBaseTarget:function(e){if(o){var t=o(g,e);if(void 0!==t&&!B(t))return t}return z[e]}},I),{build:function(){return V(),D},scheduleRender:function(){xn.ZP.render(U,!1,!0)},syncRender:U,setProps:function(e){g=e,I.updatePropListeners(e),H=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(B(o))e.addValue(i,o);else if(B(a))e.addValue(i,sr(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,sr(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(X,p(g),H)},getProps:function(){return g},getVariant:function(e){var t;return null===(t=g.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return g.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===m||void 0===m?void 0:m.getVariantContext();if(!Z){var t=(null===m||void 0===m?void 0:m.getVariantContext())||{};return void 0!==g.initial&&(t.initial=g.initial),t}for(var n={},r=0;r<eo;r++){var i=Ji[r],o=g[i];(E(o)||!1===o)&&(n[i]=o)}return n},enableLayoutProjection:function(){N.isEnabled=!0,X.layoutTree.add(X)},lockProjectionTarget:function(){N.isTargetLocked=!0},unlockProjectionTarget:function(){X.stopLayoutAnimation(),N.isTargetLocked=!1},getLayoutState:function(){return P},setCrossfader:function(e){C=e},isProjectionReady:function(){return N.isEnabled&&N.isHydrated&&P.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=X.getProjectionAnimationProgress()[e],i=n?N.relativeTarget[e]:N.target[e],o=i.min,a=i.max-o;return r.clearListeners(),r.set(o),r.set(o),r.onChange((function(t){X.setProjectionTargetAxis(e,t,t+a,n)})),X.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){Hr((function(e){return X.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=s(T,t);return e||mi(n,O),n},getProjectionAnimationProgress:function(){return A||(A={x:sr(0),y:sr(0)}),A},setProjectionTargetAxis:function(e,t,n,r){var i;void 0===r&&(r=!1),r?(N.relativeTarget||(N.relativeTarget=(0,jr.VZ)()),i=N.relativeTarget[e]):(N.relativeTarget=void 0,i=N.target[e]),N.isHydrated=!0,i.min=t,i.max=n,L=!0,I.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=P.layout);var n=X.getProjectionAnimationProgress(),r=n.x,i=n.y,o=!N.relativeTarget&&!N.isTargetLocked&&!r.isAnimating()&&!i.isAnimating();(e||o)&&Hr((function(e){var n=t[e],r=n.min,i=n.max;X.setProjectionTargetAxis(e,r,i)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=ti(t.getLayoutState().layout,e.getLayoutState().layout);Hr((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(X),X.notifyLayoutUpdate(P.layout,X.prevViewportBox||P.layout,e)},resetTransform:function(){return l(X,T,g)},restoreTransform:function(){return d(T,D)},updateLayoutProjection:function(){if(X.isProjectionReady()){var e=P.delta,t=P.treeScale,n=t.x,r=t.y,i=P.deltaTransform;qi(P,R,X.path,O),L&&X.notifyViewportBoxUpdate(R.target,e),L=!1;var o=Ui(e,t);o===i&&n===t.x&&r===t.y||X.scheduleRender(),P.deltaTransform=o}},updateTreeLayoutProjection:function(){X.layoutTree.forEach(Yi),xn.ZP.preRender(K,!1,!0)},getProjectionParent:function(){if(void 0===x){for(var e=!1,t=X.path.length-1;t>=0;t--){var n=X.path[t];if(n.projection.isEnabled){e=n;break}}x=e}return x},resolveRelativeTargetBox:function(){var e=X.getProjectionParent();if(N.relativeTarget&&e&&(function(e,t){Qr(e.target.x,e.relativeTarget.x,t.target.x),Qr(e.target.y,e.relativeTarget.y,t.target.y)}(N,e.projection),ri(e))){var t=N.target;fi(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(g._layoutResetTransform)},pointTo:function(e){R=e.projection,M=e.getLatestValues(),null===k||void 0===k||k(),k=dt(e.onSetAxisTarget(X.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;X.isPresent?X.presence=xi.z.Present:null===(e=X.layoutSafeToRemove)||void 0===e||e.call(X)})))},isPresent:!0,presence:xi.z.Entering});return X}};function Yi(e){e.resolveRelativeTargetBox()}function Xi(e){e.updateLayoutProjection()}var Qi,Ji=(0,r.__spreadArray)(["initial"],(0,r.__read)(Er)),eo=Ji.length,to=new Set(["width","height","top","left","right","bottom","x","y"]),no=function(e){return to.has(e)},ro=function(e,t){e.set(t,!1),e.set(t)},io=function(e){return e===re||e===J};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Qi||(Qi={}));var oo=function(e,t){return parseFloat(e.split(", ")[t])},ao=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return oo(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?oo(a[1],e):0}},so=new Set(["x","y","z"]),uo=R.filter((function(e){return!so.has(e)}));var co={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ao(4,13),y:ao(5,14)},lo=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,r.__assign)({},t),i=(0,r.__assign)({},i);var o=Object.keys(t).filter(no),a=[],s=!1,u=[];if(o.forEach((function(r){var o=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],d=t[r],f=lr(l);if(Me(d))for(var h=d.length,p=null===d[0]?1:0;p<h;p++)c?lr(d[p]):(c=lr(d[p]))===f||io(f)&&io(c);else c=lr(d);if(f!==c)if(io(f)&&io(c)){var m=o.get();"string"===typeof m&&o.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&c===J&&(t[r]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?o.set(c.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return uo.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),u.push(r),i[r]=void 0!==i[r]?i[r]:t[r],ro(o,d))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var i=t.getValue(n);ro(i,co[n](r,s)),e[n]=co[n](u,o)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.__read)(t,2),i=n[0],o=n[1];e.getValue(i).set(o)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function fo(e,t,n,r){return function(e){return Object.keys(e).some(no)}(t)?lo(e,t,n,r):{target:t,transitionEnd:r}}var ho=function(e,t,n,i){var o=function(e,t,n){var i,o=(0,r.__rest)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var s in n&&(n=(0,r.__assign)({},n)),e.forEachValue((function(e){var t=e.get();if(_i(t)){var n=ki(t,a);n&&e.set(n)}})),o){var u=o[s];if(_i(u)){var c=ki(u,a);c&&(o[s]=c,n&&(null!==(i=n[s])&&void 0!==i||(n[s]=u)))}}return{target:o,transitionEnd:n}}(e,t,i);return fo(e,t=o.target,n,i=o.transitionEnd)};var po={treeType:"dom",readValueFromInstance:function(e,t){if(L(t)){var n=$n(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(U(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Kr(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,i){var o=n.transformValues;void 0===i&&(i=!0);var a=t.transition,s=t.transitionEnd,u=(0,r.__rest)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=mr(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(u,a||{},e);if(o&&(s&&(s=o(s)),u&&(u=o(u)),c&&(c=o(c))),i){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var c=0;c<u;c++){var l=s[c],d=t[l],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(i=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==i?i:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!fr(f)&&Kt.test(d)&&(f=Zn(l,d)),e.addValue(l,sr(f)),null!==(o=(a=n)[l])&&void 0!==o||(a[l]=f),e.setBaseTarget(l,f))}}(e,u,c);var l=ho(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.__assign)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:De,build:function(e,t,n,r,i,o,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&i.isHydrated;ue(t,n,r,i,o,a.transformTemplate,s?Ui:void 0,s?Vi:void 0)},render:Ae},mo=Zi(po),go=Zi((0,r.__assign)((0,r.__assign)({},po),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return L(t)?(null===(n=$n(t))||void 0===n?void 0:n.default)||0:(t=Se.has(t)?t:Ce(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ie,build:function(e,t,n,r,i,o,a){var s=r.isEnabled&&i.isHydrated;Te(t,n,r,i,o,a.transformTemplate,s?Ui:void 0,s?Vi:void 0)},render:Oe})),vo=function(e,t){return D(e)?go(t,{enableHardwareAcceleration:!1}):mo(t,{enableHardwareAcceleration:!0})},yo=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},Cr),ht),Ti),Hi),bo=S((function(e,t){return function(e,t,n,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=D(e)?He:ze;return(0,r.__assign)((0,r.__assign)({},s),{preloadedFeatures:n,useRender:we(a),createVisualElement:i,Component:e})}(e,t,yo,vo)}))},58839:function(e,t,n){"use strict";n.d(t,{kv:function(){return s},e3:function(){return u},x7:function(){return l},de:function(){return c}});var r=n(9839),i=n(93327),o=n(519);function a(e){return e.projection.isEnabled||e.shouldResetTransform()}function s(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&s(n,t),a(e)&&t.push(e),t}function u(e){var t=[],n=function(e){a(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(o._)}function c(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,i.nP)(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),r.ZP.update((function(){return e.rebaseProjectionTarget()}))}}function l(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}},27565:function(e,t,n){"use strict";n.d(t,{U:function(){return o},R:function(){return a}});var r=new Set;function i(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function o(e){return r.add(e),function(){return r.delete(e)}}function a(){if(r.size){var e=0,t=[[]],n=[],o=function(n){return i(t,n,e)},a=function(t){i(n,t,e),e++};r.forEach((function(t){t(o,a),e=0})),r.clear();for(var u=n.length,c=0;c<=u;c++)t[c]&&t[c].forEach(s),n[c]&&n[c].forEach(s)}}var s=function(e){return e()}},519:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=function(e,t){return e.depth-t.depth}},93327:function(e,t,n){"use strict";n.d(t,{VZ:function(){return u},_6:function(){return a},RX:function(){return o},nP:function(){return c},pY:function(){return d},dV:function(){return s}});var r=n(70655);function i(e){return e}function o(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function a(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}function s(e,t){var n=e.top,r=e.left,o=e.bottom,a=e.right;void 0===t&&(t=i);var s=t({x:r,y:n}),u=t({x:a,y:o});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function u(){return{x:{min:0,max:1},y:{min:0,max:1}}}function c(e){return{x:(0,r.__assign)({},e.x),y:(0,r.__assign)({},e.y)}}var l={translate:0,scale:1,origin:0,originPoint:0};function d(){return{x:(0,r.__assign)({},l),y:(0,r.__assign)({},l)}}},45930:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(67294);function i(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6717:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(67294);function i(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},23405:function(e){e.exports=function(e){return[...e].reduce(((e,[t,n])=>(e[t]=n,e)),{})}},69671:function(e,t,n){const r=n(81701);e.exports=o;const i=Object.hasOwnProperty;function o(){if(!(this instanceof o))return new o;this.reset()}function a(e,t){return"string"!==typeof e?"":(t||(e=e.toLowerCase()),e.replace(r,"").replace(/ /g,"-"))}o.prototype.slug=function(e,t){const n=this;let r=a(e,!0===t);const o=r;for(;i.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r},o.prototype.reset=function(){this.occurrences=Object.create(null)},o.slug=a},81701:function(e){e.exports=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08BE-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D04\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1ABF-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31BB-\u31EF\u3200-\u33FF\u4DB6-\u4DFF\u9FF0-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7C7-\uA7F6\uA828-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB68-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD47-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD-\uDDCF\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC60-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD00-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD823-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D-\uD83F\uD87B-\uD87D\uD87F-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD822[\uDEF3-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD869[\uDED7-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g},76331:function(e,t,n){"use strict";var r=n(97247),i=n(11218),o=n(99560),a=n(99640),s=n(36582),u=n(56851),c=n(57848),l=n(70006),d=n(48145),f=d("root"),h=d("element"),p=d("text");function m(e,t,n){var r,o,a=n.schema,s=a,u=t.tagName,c={},d=[],f=-1;for(r in"html"===a.space&&"svg"===u.toLowerCase()&&(s=i,n.schema=s),t.properties)g(c,r,t.properties[r],n,u);if(n.vdom&&("html"===s.space?u=u.toUpperCase():c.namespace=l[s.space]),n.prefix&&(n.key++,c.key=n.prefix+n.key),t.children)for(;++f<t.children.length;)o=t.children[f],h(o)?d.push(m(e,o,n)):p(o)&&d.push(o.value);return n.schema=a,d.length?e.call(t,u,c,d):e.call(t,u,c)}function g(e,t,n,r,i){var l,d=o(r.schema,t);null==n||n!==n||!1===n&&(r.vue||r.vdom||r.hyperscript)||!n&&d.boolean&&(r.vue||r.vdom||r.hyperscript)||(n&&"object"===typeof n&&"length"in n&&(n=(d.commaSeparated?u:s).stringify(n)),d.boolean&&r.hyperscript&&(n=""),"style"===d.property&&"string"===typeof n&&(r.react||r.vue||r.vdom)&&(n=function(e,t){var n={};try{c(e,r)}catch(i){throw i.message=t+"[style]"+i.message.slice("undefined".length),i}return n;function r(e,t){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),n[e.replace(/-([a-z])/g,y)]=t}}(n,i)),r.vue?"style"!==d.property&&(l="attrs"):d.mustUseProperty||(r.vdom?"style"!==d.property&&(l="attributes"):r.hyperscript&&(l="attrs")),l?(e[l]||(e[l]={}),e[l][d.attribute]=n):d.space&&r.react?e[a[d.property]||d.property]=n:e[d.attribute]=n)}function v(e){return Boolean(e&&e.context&&e.cleanup)}function y(e,t){return t.toUpperCase()}e.exports=function(e,t,n){var o,a=n||{},s=function(e){var t=e&&e("div");return Boolean(t&&("_owner"in t||"_store"in t)&&null==t.key)}(e),u=function(e){var t=e&&e("div");return Boolean(t&&t.context&&t.context._isVue)}(e),c=function(e){return e&&"VirtualNode"===e("div").type}(e);if("function"!==typeof e)throw new Error("h is not a function");"string"===typeof a||"boolean"===typeof a?(o=a,a={}):o=a.prefix;if(f(t))t=1===t.children.length&&h(t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!h(t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return m(e,t,{schema:"svg"===a.space?i:r,prefix:null==o?s||u||c?"h-":null:o,key:0,react:s,vue:u,vdom:c,hyperscript:v(e)})}},92114:function(e,t,n){"use strict";var r=n(9505),i=n(31742),o=n(99560),a=n(97247),s=n(11218),u=n(14787),c=n(70006);e.exports=function(e,t){var n,r=t||{};r.messages?(n=r,r={}):n=r.file;return f(e,{schema:"svg"===r.space?s:a,file:n,verbose:r.verbose})};var l={}.hasOwnProperty,d={"#document":h,"#document-fragment":h,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function f(e,t){var n,r,i,o=t.schema,u=l.call(d,e.nodeName)?d[e.nodeName]:p;return u===p&&(t.schema=e.namespaceURI===c.svg?s:a),e.childNodes&&(n=function(e,t){var n=-1,r=[];for(;++n<e.length;)r[n]=f(e[n],t);return r}(e.childNodes,t)),r=u(e,n,t),e.sourceCodeLocation&&t.file&&(i=m(r,e.sourceCodeLocation,t))&&(t.location=!0,r.position=i),t.schema=o,r}function h(e,t,n){var r,i,o={type:"root",children:t,data:{quirksMode:"quirks"===e.mode||"limited-quirks"===e.mode}};return n.file&&n.location&&(r=String(n.file),i=u(r),o.position={start:i.toPoint(0),end:i.toPoint(r.length)}),o}function p(e,t,n){for(var o,a,s,u,c,l="svg"===n.schema.space?r:i,d={},h=-1;++h<e.attrs.length;)d[((a=e.attrs[h]).prefix?a.prefix+":":"")+a.name]=a.value;return"template"===(o=l(e.tagName,d,t)).tagName&&"content"in e&&(u=(s=e.sourceCodeLocation)&&s.startTag&&g(s.startTag).end,c=s&&s.endTag&&g(s.endTag).start,o.content=f(e.content,n),(u||c)&&n.file&&(o.content.position={start:u,end:c})),o}function m(e,t,n){var r,i,a,s=g(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(s.end=Object.assign({},r.position.end)),n.verbose)){for(i in a={},t.attrs)a[o(n.schema,i).property]=g(t.attrs[i]);e.data={position:{opening:g(t.startTag),closing:t.endTag?g(t.endTag):null,properties:a}}}return s}function g(e){var t=v({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=v({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function v(e){return e.line&&e.column?e:null}},83216:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return n(t)&&t.tagName===e}}(e);if(null===e||void 0===e)return n;if("object"===typeof e)return function(e){var n=function(e){var n=e.length,r=-1,i=[];for(;++r<n;)i[r]=t(e[r]);return i}(e),r=n.length;return i;function i(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}(e);if("function"===typeof e)return function(e){return t;function t(t){return n(t)&&Boolean(e.apply(this,arguments))}}(e);throw new Error("Expected function, string, or array as test")}function n(e){return e&&"object"===typeof e&&"element"===e.type&&"string"===typeof e.tagName}e.exports=t},78892:function(e){"use strict";e.exports=function(e,n){var r,i,o,a=e||"",s=n||"div",u={},c=0;for(;c<a.length;)t.lastIndex=c,o=t.exec(a),(r=a.slice(c,o?o.index:a.length))&&(i?"#"===i?u.id=r:u.className?u.className.push(r):u.className=[r]:s=r,c+=r.length),o&&(i=o[0],c++);return{type:"element",tagName:s,properties:u,children:[]}};var t=/[#.]/g},85330:function(e,t,n){"use strict";var r=n(96464),i=n(83216),o=n(33262);e.exports=function(e){var t,n,i,o,a=e.children||[],s=h(e),c=y(e,{}),l=-1;if("text"===e.type||"comment"===e.type)return m(e,{whiteSpace:c,breakBefore:!0,breakAfter:!0});t=[];for(;++l<a.length;)t=t.concat(p(a[l],l,e,{whiteSpace:c,breakBefore:l?null:s,breakAfter:l<a.length-1?u(a[l+1]):s}));l=-1,n=[];for(;++l<t.length;)"number"===typeof(i=t[l])?void 0!==o&&i>o&&(o=i):i&&(o&&n.push(r("\n",o)),o=0,n.push(i));return n.join("")};var a=/\n/g,s=/[\t ]+/g,u=i("br"),c=i("p"),l=i(["th","td"]),d=i("tr"),f=i(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),h=i(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function p(e,t,n,r){return"element"===e.type?function(e,t,n,r){var i,a,s=y(e,r),m=e.children||[],g=-1,v=[];if(f(e))return v;u(e)||d(e)&&o(n,e,d)?a="\n":c(e)?(i=2,a=2):h(e)&&(i=1,a=1);for(;++g<m.length;)v=v.concat(p(m[g],g,e,{whiteSpace:s,breakBefore:g?null:i,breakAfter:g<m.length-1?u(m[g+1]):a}));l(e)&&o(n,e,l)&&v.push("\t");i&&v.unshift(i);a&&v.push(a);return v}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):g(e)]:[]}function m(e,t){for(var n,r,i,o=String(e.value),s=[],u=[],c=0,l=-1;c<o.length;)a.lastIndex=c,r=(n=a.exec(o))?n.index:o.length,s.push(v(o.slice(c,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),c=r+1;for(;++l<s.length;)8203===s[l].charCodeAt(s[l].length-1)||l<s.length-1&&8203===s[l+1].charCodeAt(0)?(u.push(s[l]),i=""):s[l]&&(i&&u.push(i),u.push(s[l]),i=" ");return u.join("")}function g(e){return String(e.value)}function v(e,t,n){for(var r,i,o=[],a=0;a<e.length;)s.lastIndex=a,i=(r=s.exec(e))?r.index:e.length,a||i||!r||t||o.push(""),a!==i&&o.push(e.slice(a,i)),a=r?i+r[0].length:i;return a===i||n||o.push(""),o.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},62502:function(e,t,n){"use strict";var r=n(99560),i=n(66632),o=n(78892),a=n(36582).parse,s=n(56851).parse;e.exports=function(e,t,n){var i=n?function(e){var t,n=e.length,r=-1,i={};for(;++r<n;)i[(t=e[r]).toLowerCase()]=t;return i}(n):null;return function(e,n){var r,a=o(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=i&&u.call(i,d)?i[d]:d,n&&c(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)f(a.properties,r,n[r]);l(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function f(t,n,i){var o,u,c;null!==i&&void 0!==i&&i===i&&(u=(o=r(e,n)).property,"string"===typeof(c=i)&&(o.spaceSeparated?c=a(c):o.commaSeparated?c=s(c):o.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===u&&"string"!==typeof i&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===u&&t.className&&(c=t.className.concat(c)),t[u]=function(e,t,n){var r,i,o;if("object"!==typeof n||!("length"in n))return d(e,t,n);i=n.length,r=-1,o=[];for(;++r<i;)o[r]=d(e,t,n[r]);return o}(o,u,c))}};var u={}.hasOwnProperty;function c(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}function l(e,t){var n,r;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)l(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function d(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof r||""!==r&&i(n)!==i(t)||(r=!0)),r}},52579:function(e,t,n){"use strict";var r=n(97247),i=n(62502)(r,"div");i.displayName="html",e.exports=i},31742:function(e,t,n){"use strict";e.exports=n(52579)},9505:function(e,t,n){"use strict";var r=n(11218),i=n(76947),o=n(62502)(r,"g",i);o.displayName="svg",e.exports=o},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=(t instanceof Array?t.length?t:[void 0]:[t]).map((function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}})),c=e.reduce((function(e,t){var r=e,i=t;return u.forEach((function(e,t){var a,c=e.keyAccessor;if(e.isProp){var l=i,d=l[c],f=n(l,[c].map(s));a=d,i=f}else a=c(i,t);t+1<u.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):o?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(i)):r[a]=i})),e}),{});o instanceof Function&&function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;n===u.length?Object.keys(t).forEach((function(e){return t[e]=o(t[e])})):Object.values(t).forEach((function(t){return e(t,n+1)}))}(c);var l=c;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===u.length?l.push({keys:n,vals:t}):Object.entries(t).forEach((function(t){var o=r(t,2),a=o[0],s=o[1];return e(s,[].concat(i(n),[a]))}))}(c),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(u,c):c}e.exports=function(e,u){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var d=1,f=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=u.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(u.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=d,n.column=f,n.source=e,!u.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function E(e){var t;for(e=e||[];t=T();)!1!==t&&e.push(t);return e}function T(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function x(){var e=p(),n=y(i);if(n){if(T(),!y(o))return v("property missing ':'");var r=y(a),u=e({type:"declaration",property:l(n[0].replace(t,c)),value:r?l(r[0].replace(t,c)):c});return y(s),u}}return b(),function(){var e,t=[];for(E(t);e=x();)!1!==e&&(t.push(e),E(t));return t}()}},48738:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},33310:function(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},32802:function(e,t){var n,r,i;function o(e){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,s,u,c={},l={};function d(e){var t={};return e.forEach((function(e,n){t[e]=!0})),Object.keys(t)}function f(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function h(e,t){var n=e._assoc_mat[t]?Object.keys(e._assoc_mat[t]):[],r=0;return n.forEach((function(n,i){var o=e._assoc_mat[t][n]||1;t===n&&(o*=2),r+=o})),r}function p(e,t){return"undefined"===typeof e._assoc_mat[t]?[]:Object.keys(e._assoc_mat[t])}function m(e,t,n){return e._assoc_mat[t]?e._assoc_mat[t][n]:void 0}function g(e){var t={};return e.forEach((function(e,n){t[e.source]=t[e.source]||{},t[e.source][e.target]=e.weight,t[e.target]=t[e.target]||{},t[e.target][e.source]=e.weight})),t}function v(e){if(null===e||"object"!==o(e))return e;var t=e.constructor();for(var n in e)t[n]=v(e[n]);return t}function y(e,t,n){t.nodes_to_com={},t.total_weight=0,t.internals={},t.degrees={},t.gdegrees={},t.loops={},t.total_weight=function(e){var t=0;return e.edges.forEach((function(e){t+=e.weight})),t}(e),"undefined"===typeof n?e.nodes.forEach((function(n,r){t.nodes_to_com[n]=r;var i=h(e,n);if(i<0)throw new TypeError("Graph should only have positive weights.");t.degrees[r]=i,t.gdegrees[n]=i,t.loops[n]=m(e,n,n)||0,t.internals[r]=t.loops[n]})):e.nodes.forEach((function(r,i){var o=n[r];t.nodes_to_com[r]=o;var a=h(e,r);t.degrees[o]=(t.degrees[o]||0)+a,t.gdegrees[r]=a;var s=0;p(e,r).forEach((function(t){var i=e._assoc_mat[r][t];if(i<=0)throw new TypeError("Graph should only have positive weights.");n[t]===o&&(s+=t===r?i:i/2)})),t.internals[o]=(t.internals[o]||0)+s}))}function b(e){var t=e.total_weight,n=0;return d(f(e.nodes_to_com)).forEach((function(r,i){var o=e.internals[r]||0,a=e.degrees[r]||0;t>0&&(n=n+o/t-Math.pow(a/(2*t),2))})),n}function E(e,t,n){var r={};return p(t,e).forEach((function(i){if(i!==e){var o=t._assoc_mat[e][i]||1,a=n.nodes_to_com[i];r[a]=(r[a]||0)+o}})),r}function T(e,t,n,r){r.nodes_to_com[e]=+t,r.degrees[t]=(r.degrees[t]||0)+(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)+n+(r.loops[e]||0)}function x(e,t,n,r){r.degrees[t]=(r.degrees[t]||0)-(r.gdegrees[e]||0),r.internals[t]=(r.internals[t]||0)-n-(r.loops[e]||0),r.nodes_to_com[e]=-1}function _(e){var t=0,n=v(e),r={};return Object.keys(e).forEach((function(i){var o=e[i],a="undefined"===typeof r[o]?-1:r[o];-1===a&&(r[o]=t,a=t,t+=1),n[i]=a})),n}function w(e,t){for(var n=!0,r=0,i=b(t),o=i;n&&-1!==r&&(i=o,n=!1,r+=1,e.nodes.forEach((function(r,i){var o=t.nodes_to_com[r],a=(t.gdegrees[r]||0)/(2*t.total_weight),s=E(r,e,t);x(r,o,s[o]||0,t);var u=o,c=0;Object.keys(s).forEach((function(e){var n=s[e]-(t.degrees[e]||0)*a;n>c&&(c=n,u=e)})),T(r,u,s[u]||0,t),u!==o&&(n=!0)})),!((o=b(t))-i<1e-7)););}function k(e,t){var n,r,i={nodes:[],edges:[],_assoc_mat:{}},o=f(e);return i.nodes=i.nodes.concat(d(o)),t.edges.forEach((function(t,o){r=t.weight||1;var a=e[t.source],s=e[t.target];n=m(i,a,s)||0,function(e,t){!function(e,t){e._assoc_mat[t.source]=e._assoc_mat[t.source]||{},e._assoc_mat[t.source][t.target]=t.weight,e._assoc_mat[t.target]=e._assoc_mat[t.target]||{},e._assoc_mat[t.target][t.source]=t.weight}(e,t),l[t.source+"_"+t.target]?e.edges[l[t.source+"_"+t.target]].weight=t.weight:(e.edges.push(t),l[t.source+"_"+t.target]=e.edges.length-1)}(i,{source:a,target:s,weight:n+r})})),l={},i}"undefined"!==typeof self&&self,r=[],void 0===(i="function"===typeof(n=function(){return function(){var e=function(){var e=function(e,t){if(0===e.edges.length){var n={};return e.nodes.forEach((function(e){n[e]=e})),n}var r={};y(c,r,t);var i=b(r),o=[];w(c,r);var a=b(r),s=_(r.nodes_to_com);o.push(s),i=a;var u=k(s,c);for(y(u,r);w(u,r),!((a=b(r))-i<1e-7);)s=_(r.nodes_to_com),o.push(s),i=a,y(u=k(s,u),r);return o}(c,u);return function(e,t){for(var n=v(e[0]),r=function(t){Object.keys(n).forEach((function(r,i){var o=r,a=n[r];n[o]=e[t][a]}))},i=1;i<t+1;i++)r(i);return n}(e,e.length-1)};return e.nodes=function(t){return arguments.length>0&&(a=t),e},e.edges=function(t){if("undefined"===typeof a)throw new TypeError("Graph nodes are undefined");if(arguments.length>0){s=t;var n=g(t);c={nodes:a,edges:s,_assoc_mat:n}}return e},e.partition_init=function(t){return arguments.length>0&&(u=t),e},e}})?n.apply(t,r):n)||(e.exports=i)},36808:function(e,t,n){var r,i;!function(o){if(void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!==typeof document){"number"===typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(c){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(l){}if(i[c]=u,e===c)break}catch(l){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},44858:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(20296),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=a((function e(t,n){var r=n.default,i=void 0===r?null:r,o=n.triggerUpdate,a=void 0===o||o,s=n.onChange,u=void 0===s?function(e,t){}:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.defaultVal=i,this.triggerUpdate=a,this.onChange=u}));function l(e){var t=e.stateInit,n=void 0===t?function(){return{}}:t,r=e.props,o=void 0===r?{}:r,a=e.methods,u=void 0===a?{}:a,l=e.aliases,d=void 0===l?{}:l,f=e.init,h=void 0===f?function(){}:f,p=e.update,m=void 0===p?function(){}:p,g=Object.keys(o).map((function(e){return new c(e,o[e])}));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function o(t){return a(t,e),c(),o}var a=function(e,n){h.call(o,e,t,n),t.initialised=!0},c=i()((function(){t.initialised&&(m.call(o,t,r),r={})}),1);return g.forEach((function(e){o[e.name]=function(e){var n=e.name,i=e.triggerUpdate,a=void 0!==i&&i,s=e.onChange,u=void 0===s?function(e,t){}:s,l=e.defaultVal,d=void 0===l?null:l;return function(e){var i=t[n];if(!arguments.length)return i;var s=void 0===e?d:e;return t[n]=s,u.call(o,s,t,i),!r.hasOwnProperty(n)&&(r[n]=i),a&&c(),o}}(e)})),Object.keys(u).forEach((function(e){o[e]=function(){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=u[e]).call.apply(n,[o,t].concat(i))}})),Object.entries(d).forEach((function(e){var t=s(e,2),n=t[0],r=t[1];return o[n]=o[r]})),o.resetProps=function(){return g.forEach((function(e){o[e.name](e.defaultVal)})),o},o.resetProps(),t._rerender=c,o}}},93096:function(e,t,n){var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=c||l||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,m=function(){return d.Date.now()};function g(e,t,n){var i,o,a,s,u,c,l=0,d=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function E(e){return l=e,u=setTimeout(x,t),d?b(e):s}function T(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=a}function x(){var e=m();if(T(e))return _(e);u=setTimeout(x,function(e){var n=t-(e-c);return f?p(n,a-(e-l)):n}(e))}function _(e){return u=void 0,g&&i?b(e):(i=o=void 0,s)}function w(){var e=m(),n=T(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return E(c);if(f)return u=setTimeout(x,t),b(c)}return void 0===u&&(u=setTimeout(x,t)),s}return t=y(t)||0,v(n)&&(d=!!n.leading,a=(f="maxWait"in n)?h(y(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},w.flush=function(){return void 0===u?s:_(m())},w}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}},52491:function(e){"use strict";e.exports=function(e,t){var n,r,i=0,o=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),r=e.indexOf(t),n=r;for(;-1!==r;)i++,r===n?i>o&&(o=i):i=1,n=r+1,r=e.indexOf(t,n);return o}},78234:function(e,t,n){"use strict";var r=n(96464);e.exports=function(e,t){var n,l,d,f,h,p,m,g,v,y,b,E=t||{},T=!1!==E.padding,x=!1!==E.delimiterStart,_=!1!==E.delimiterEnd,w=(E.align||[]).concat(),k=!1!==E.alignDelimiters,C=[],A=E.stringLength||u,S=-1,O=e.length,D=[],I=[],N=[],R=[],M=[],P=0;for(;++S<O;){for(n=e[S],l=-1,d=n.length,N=[],R=[],d>P&&(P=d);++l<d;)L=n[l],p=null===L||void 0===L?"":String(L),!0===k&&(h=A(p),R[l]=h,(void 0===(f=M[l])||h>f)&&(M[l]=h)),N.push(p);D[S]=N,I[S]=R}var L;if(l=-1,d=P,"object"===typeof w&&"length"in w)for(;++l<d;)C[l]=c(w[l]);else for(b=c(w);++l<d;)C[l]=b;l=-1,d=P,N=[],R=[];for(;++l<d;)b=C[l],v="",y="",108===b?v=a:b===s?y=a:99===b&&(v=a,y=a),h=k?Math.max(1,M[l]-v.length-y.length):1,p=v+r("-",h)+y,!0===k&&((h=v.length+h+y.length)>M[l]&&(M[l]=h),R[l]=h),N[l]=p;D.splice(1,0,N),I.splice(1,0,R),S=-1,O=D.length,m=[];for(;++S<O;){for(N=D[S],R=I[S],l=-1,d=P,g=[];++l<d;)p=N[l]||"",v="",y="",!0===k&&(h=M[l]-(R[l]||0),(b=C[l])===s?v=r(o,h):99===b?h%2===0?(v=r(o,h/2),y=v):(v=r(o,h/2+.5),y=r(o,h/2-.5)):y=r(o,h)),!0===x&&0===l&&g.push("|"),!0!==T||!1===k&&""===p||!0!==x&&0===l||g.push(o),!0===k&&g.push(v),g.push(p),!0===k&&g.push(y),!0===T&&g.push(o),!0!==_&&l===d-1||g.push("|");g=g.join(""),!1===_&&(g=g.replace(i,"")),m.push(g)}return m.join("\n")};var i=/ +$/,o=" ",a=":",s=114;function u(e){return e.length}function c(e){var t="string"===typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===s?s:67===t||99===t?99:0}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(87462),i=n(76826),o=n.n(i),a={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},s={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};c.rankings=a,c.caseRankings=s;var u=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function c(e,t,n){void 0===n&&(n={});var r=n,i=r.keys,o=r.threshold,s=void 0===o?a.MATCHES:o,c=r.baseSort,d=void 0===c?u:c;return e.reduce((function(e,r,o){var u=function(e,t,n,r){if(!t)return{rankedItem:e,rank:l(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"===typeof t&&(t=t.key);var n;n="function"===typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:f(n)})})),t}),[])}(e,t).reduce((function(e,t,i){var o=e.rank,s=e.rankedItem,u=e.keyIndex,c=e.keyThreshold,d=t.itemValue,f=t.attributes,h=l(d,n,r),p=s,m=f.minRanking,g=f.maxRanking,v=f.threshold;return h<m&&h>=a.MATCHES?h=m:h>g&&(h=g),h>o&&(o=h,u=i,c=v,p=d),{rankedItem:p,rank:o,keyIndex:u,keyThreshold:c}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,i,t,n),c=u.rankedItem,d=u.rank,h=u.keyIndex,p=u.keyThreshold;d>=(void 0===p?s:p)&&e.push({rankedItem:c,item:r,rank:d,index:o,keyIndex:h});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,i=1,o=e.rank,a=e.keyIndex,s=t.rank,u=t.keyIndex;return o===s?a===u?n(e,t):a<u?r:i:o>s?r:i}(e,t,d)})).map((function(e){return e.item}))}function l(e,t,n){if(e=d(e,n),(t=d(t,n)).length>e.length)return a.NO_MATCH;if(e===t)return a.CASE_SENSITIVE_EQUAL;var r=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return s.KEBAB;if(!t&&r&&!n)return s.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?s.PASCAL:s.CAMEL}return s.NO_CASE}(e),i=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case s.SNAKE:return"_"===e[r-1];case s.KEBAB:return"-"===e[r-1];case s.PASCAL:case s.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,r),o=function(e,t,n){var r=null;switch(n){case s.SNAKE:r="_";break;case s.KEBAB:r="-";break;case s.PASCAL:case s.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var i=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=i[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,r);return(e=e.toLowerCase())===(t=t.toLowerCase())?a.EQUAL+r:0===e.indexOf(t)?a.STARTS_WITH+r:-1!==e.indexOf(" "+t)?a.WORD_STARTS_WITH+r:i?a.STRING_CASE+r:r>0&&o?a.STRING_CASE_ACRONYM+r:-1!==e.indexOf(t)?a.CONTAINS+r:1===t.length?a.NO_MATCH:-1!==function(e){var t="";return e.split(" ").forEach((function(e){e.split("-").forEach((function(e){t+=e.substr(0,1)}))})),t}(e).indexOf(t)?a.ACRONYM+r:function(e,t){var n=0,r=0;function i(e,t,r){for(var i=r;i<t.length;i++){if(t[i]===e)return n+=1,i+1}return-1}function o(e){var r=n/t.length;return a.MATCHES+r*(1/e)}var s=i(t[0],e,0);if(s<0)return a.NO_MATCH;r=s;for(var u=1;u<t.length;u++){if(!((r=i(t[u],e,r))>-1))return a.NO_MATCH}return o(r-s)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=o()(e)),e}function f(e){return"string"===typeof e&&(e={key:e}),(0,r.Z)({maxRanking:1/0,minRanking:-1/0},e)}t.default=c},86630:function(e,t,n){"use strict";var r=n(62854);e.exports=function(e,t){return function(e){return t;function t(t){var n=t&&o(t);return n&&i.call(e,n)?e[n]:null}}(function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",n),t;function n(e){var n=o(e.identifier);i.call(t,n)||(t[n]=e)}}(e))};var i={}.hasOwnProperty;function o(e){return e.toUpperCase()}},52962:function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o;"string"===typeof t||t&&"function"===typeof t.exec?o=[[t,n]]:(o=t,r=n);return s(e,i=r||{},function e(t){var n=t[0];return r;function r(r,o){var u,c,l,d,f=n[0],h=n[1],p=[],m=0,g=o.children.indexOf(r);for(f.lastIndex=0,c=f.exec(r.value);c&&(u=c.index,!1!==(d=h.apply(null,[].concat(c,{index:c.index,input:c.input})))&&(m!==u&&p.push({type:"text",value:r.value.slice(m,u)}),"string"===typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(p=[].concat(p,d)),m=u+c[0].length),f.global);)c=f.exec(r.value);if(void 0===u?(p=[r],g--):(m<r.value.length&&p.push({type:"text",value:r.value.slice(m)}),p.unshift(g,1),a.apply(o.children,p)),t.length>1)for(l=e(t.slice(1)),u=-1;++u<p.length;)"text"===(r=p[u]).type?l(r,o):s(r,i,l);return g+p.length+1}}(function(e){var t,n,r=[];if("object"!==typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([u(e[n][0]),c(e[n][1])]);else for(t in e)r.push([u(t),c(e[t])]);return r}(o))),e};var r=n(99294),i=n(48145),o=n(63150),a=[].splice;function s(e,t,n){var o=i(t.ignore||[]);return r(e,"text",(function(e,t){var r,i,a=-1;for(;++a<t.length;){if(r=t[a],o(r,i?i.children.indexOf(r):void 0,i))return;i=r}return n(e,i)})),[]}function u(e){return"string"===typeof e?new RegExp(o(e),"g"):e}function c(e){return"function"===typeof e?e:function(){return e}}},52524:function(e,t,n){"use strict";e.exports=function(e,t,n){"string"!==typeof t&&(n=t,t=void 0);return function(e){var t=e||{},n=function(e,t){var n=-1;for(;++n<t.length;)h(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:v(fe),autolinkProtocol:F,autolinkEmail:F,atxHeading:v(ue),blockQuote:v(re),characterEscape:F,characterReference:F,codeFenced:v(ie),codeFencedFenceInfo:y,codeFencedFenceMeta:y,codeIndented:v(ie,y),codeText:v(oe,y),codeTextData:F,data:F,codeFlowValue:F,definition:v(ae),definitionDestinationString:y,definitionLabelString:y,definitionTitleString:y,emphasis:v(se),hardBreakEscape:v(ce),hardBreakTrailing:v(ce),htmlFlow:v(le,y),htmlFlowData:F,htmlText:v(le,y),htmlTextData:F,image:v(de),label:y,link:v(fe),listItem:v(pe),listItemValue:w,listOrdered:v(he,_),listUnordered:v(he),paragraph:v(me),reference:X,referenceString:y,resourceDestinationString:y,resourceTitleString:y,setextHeading:v(ue),strong:v(ge),thematicBreak:v(ye)},exit:{atxHeading:E(),atxHeadingSequence:R,autolink:E(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:E(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:ee,codeFenced:E(S),codeFencedFence:A,codeFencedFenceInfo:k,codeFencedFenceMeta:C,codeFlowValue:j,codeIndented:E(O),codeText:E(V),codeTextData:j,data:j,definition:E(),definitionDestinationString:N,definitionLabelString:D,definitionTitleString:I,emphasis:E(),hardBreakEscape:E(B),hardBreakTrailing:E(B),htmlFlow:E(z),htmlFlowData:j,htmlText:E(U),htmlTextData:j,image:E(K),label:W,labelText:q,lineEnding:H,link:E(G),listItem:E(),listOrdered:E(),listUnordered:E(),paragraph:E(),referenceString:Q,resourceDestinationString:$,resourceTitleString:Z,resource:Y,setextHeading:E(L),setextHeadingLineSequence:P,setextHeadingText:M,strong:E(),thematicBreak:E()}},t.mdastExtensions||[]),u={};return c;function c(e){for(var t,r={type:"root",children:[]},a=[],s=[],u=-1,c={stack:[r],tokenStack:a,config:n,enter:b,exit:T,buffer:y,resume:x,setData:p,getData:m};++u<e.length;)"listOrdered"!==e[u][1].type&&"listUnordered"!==e[u][1].type||("enter"===e[u][0]?s.push(u):u=l(e,s.pop(u),u));for(u=-1;++u<e.length;)t=n[e[u][0]],o.call(t,e[u][1].type)&&t[e[u][1].type].call(i({sliceSerialize:e[u][2].sliceSerialize},c),e[u][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+f({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:g(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:g(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<n.transforms.length;)r=n.transforms[u](r)||r;return r}function l(e,t,n){for(var r,i,o,a,s,u,c,l=t-1,d=-1,f=!1;++l<=n;)if("listUnordered"===(s=e[l])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,c=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||c||d||u||(u=l),c=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(c=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(i=l,o=void 0;i--;)if("lineEnding"===(a=e[i])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;o&&(e[o][1].type="lineEndingBlank",f=!0),a[1].type="lineEnding",o=i}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;u&&(!o||u<o)&&(r._spread=!0),r.end=g(o?e[o][1].start:s[1].end),e.splice(o||l,0,["exit",r,s[2]]),l++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:g(s[1].start)},e.splice(l,0,["enter",r,s[2]]),l++,n++,u=void 0,c=!0)}return e[t][1]._spread=f,n}function p(e,t){u[e]=t}function m(e){return u[e]}function g(e){return{line:e.line,column:e.column,offset:e.offset}}function v(e,t){return n;function n(n){b.call(this,e(n),n),t&&t.call(this,n)}}function y(){this.stack.push({type:"fragment",children:[]})}function b(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:g(t.start)},e}function E(e){return t;function t(t){e&&e.call(this,t),T.call(this,t)}}function T(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): it\u2019s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+f({start:n.start,end:n.end})+") is open");return t.position.end=g(e.end),t}function x(){return r(this.stack.pop())}function _(){p("expectingFirstListItemValue",!0)}function w(e){m("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),p("expectingFirstListItemValue"))}function k(){var e=this.resume();this.stack[this.stack.length-1].lang=e}function C(){var e=this.resume();this.stack[this.stack.length-1].meta=e}function A(){m("flowCodeInside")||(this.buffer(),p("flowCodeInside",!0))}function S(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p("flowCodeInside")}function O(){var e=this.resume();this.stack[this.stack.length-1].value=e}function D(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()}function I(){var e=this.resume();this.stack[this.stack.length-1].title=e}function N(){var e=this.resume();this.stack[this.stack.length-1].url=e}function R(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)}function M(){p("setextHeadingSlurpLineEnding",!0)}function P(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function L(){p("setextHeadingSlurpLineEnding")}function F(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n=ve()).position={start:g(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function j(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=g(e.end)}function H(e){var t=this.stack[this.stack.length-1];if(m("atHardBreak"))return t.children[t.children.length-1].position.end=g(e.end),void p("atHardBreak");!m("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(F.call(this,e),j.call(this,e))}function B(){p("atHardBreak",!0)}function z(){var e=this.resume();this.stack[this.stack.length-1].value=e}function U(){var e=this.resume();this.stack[this.stack.length-1].value=e}function V(){var e=this.resume();this.stack[this.stack.length-1].value=e}function G(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),p("referenceType")}function K(){var e=this.stack[this.stack.length-1];m("inReference")?(e.type+="Reference",e.referenceType=m("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),p("referenceType")}function q(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()}function W(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,p("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function $(){var e=this.resume();this.stack[this.stack.length-1].url=e}function Z(){var e=this.resume();this.stack[this.stack.length-1].title=e}function Y(){p("inReference")}function X(){p("referenceType","collapsed")}function Q(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),p("referenceType","full")}function J(e){p("characterReferenceType",e.type)}function ee(e){var t,n,r=this.sliceSerialize(e),i=m("characterReferenceType");i?(t=s(r,"characterReferenceMarkerNumeric"===i?10:16),p("characterReferenceType")):t=d(r),(n=this.stack.pop()).value+=t,n.position.end=g(e.end)}function te(e){j.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function ne(e){j.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function re(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function ue(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function de(){return{type:"image",title:null,url:"",alt:null}}function fe(){return{type:"link",title:null,url:"",children:[]}}function he(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function pe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function me(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function ye(){return{type:"thematicBreak"}}}(n)(l(u(n).document().write(c()(e,t,!0))))};var r=n(4999),i=n(99198),o=n(46706),a=n(35478),s=n(10596),u=n(32976),c=n(30162),l=n(61242),d=n(89435),f=n(75432);function h(e,t){var n,r;for(n in t)r=o.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},39671:function(e,t,n){"use strict";e.exports=n(52524)},2215:function(e,t,n){e.exports=function(e){var t,n=r(e),s=n.length,u=-1,c={},l={};for(;++u<s;)t=n[u],c[t.type]=i(t),l[t.type]=o,l[t.type+"Value"]=a;return{enter:c,exit:l}};var r=n(74035);function i(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function o(e){var t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function a(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}},63934:function(e,t,n){e.exports=function(e){var t,n=[],a={},s=r(e),u=s.length,c=-1;for(;++c<u;)t=s[c],a[t.type]=i(t),n.push({atBreak:!0,character:o(t,"open").charAt(0)});return{unsafe:n,handlers:a}};var r=n(74035);function i(e){var t=o(e,"open"),n=o(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+n}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57824:function(e,t,n){var r=n(30932),i=n(52962),o=n(36996),a=n(10395);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function u(e,t,n,i,o){var a,s,u="";return!!l(o)&&(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!!function(e){var t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n)&&(!!(a=function(e){var t,n,i,o=/[!"&'),.:;<>?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(o=o[0]).indexOf(")"),n=r(e,"("),i=r(e,")");-1!==t&&n>i;)e+=o.slice(0,t+1),t=(o=o.slice(t+1)).indexOf(")"),i++;return[e,o]}(n+i))[0]&&(s={type:"link",title:null,url:u+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s)))}function c(e,t,n,r){return!(!l(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function l(e,t){var n=e.input.charCodeAt(e.index-1);return(n!==n||a(n)||o(n))&&(!t||47!==n)}t.transforms=[function(e){i(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,u],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,c]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.exit={literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},45574:function(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},89828:function(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},9888:function(e,t,n){var r=n(25362);function i(e,t,n){var i=n.enter("emphasis"),o=r(e,n,{before:"~",after:"~"});return i(),"~~"+o+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:i},i.peek=function(){return"~"}},4865:function(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function i(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,i));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},63046:function(e,t,n){var r=n(25362),i=n(11595),o=n(78234);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n){return l(function(e,t){var n=e.children,r=-1,i=n.length,o=[],a=t.enter("table");for(;++r<i;)o[r]=d(n[r],t);return a(),o}(e,n),e.align)},tableRow:function(e,t,n){var r=l([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:c,inlineCode:function(e,t,n){var r=i(e,t,n);-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function c(e,t,n){var i=n.enter("tableCell"),o=r(e,n,{before:u,after:u});return i(),o}function l(e,t){return o(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,i=n.length,o=[],a=t.enter("tableRow");++r<i;)o[r]=c(n[r],0,t);return a(),o}}},29511:function(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"===typeof n.checked&&o&&"text"===o.type){for(;++a<i.length;)if("paragraph"===i[a].type){t=i[a];break}t===r&&(o.value=o.value.slice(1),0===o.value.length?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}}},94625:function(e,t,n){var r=n(48618);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var i=r(e,t,n),o=e.children[0];"boolean"===typeof e.checked&&o&&"paragraph"===o.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}},10438:function(e,t,n){var r=n(57824),i=n(89828),o=n(4865),a=n(29511),s={}.hasOwnProperty;function u(e,t){var n,r,i;for(n in t)r=s.call(e,n)?e[n]:e[n]={},i=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,i):Object.assign(r,i)}e.exports=function(e){var t={transforms:[],canContainEols:[]},n=e.length,r=-1;for(;++r<n;)u(t,e[r]);return t}([r,i,o,a])},48135:function(e,t,n){var r=n(45574),i=n(9888),o=n(63046),a=n(94625),s=n(2564);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,i,o(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},54550:function(e,t){"use strict";function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}t.enter={mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},e),this.buffer()}},t.exit={mathFlow:function(e){var t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t,this.setData("mathFlowInside")},mathFlowFence:function(){if(this.getData("mathFlowInside"))return;this.buffer(),this.setData("mathFlowInside",!0)},mathFlowFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},mathFlowValue:n,mathText:function(e){var t=this.resume(),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t},mathTextData:n}},74749:function(e,t,n){"use strict";t.unsafe=[{character:"\r",inConstruct:["mathFlowMeta"]},{character:"\r",inConstruct:["mathFlowMeta"]},{character:"$",inConstruct:["mathFlowMeta","phrasing"]},{atBreak:!0,character:"$",after:"\\$"}],t.handlers={math:function(e,t,n){var a,s=e.value||"",u=r("$",Math.max(i(s,"$")+1,2)),c=n.enter("mathFlow"),l=u;e.meta&&(a=n.enter("mathFlowMeta"),l+=o(n,e.meta,{before:"$",after:" ",encode:["$"]}),a());l+="\n",s&&(l+=s+"\n");return l+=u,c(),l},inlineMath:a},a.peek=function(){return"$"};var r=n(96464),i=n(52491),o=n(51113);function a(e){for(var t,n=e.value||"",i=1,o="";new RegExp("(^|[^$])"+r("\\$",i)+"([^$]|$)").test(n);)i++;return/[^ \r\n]/.test(n)&&(/[ \r\n$]/.test(n.charAt(0))||/[ \r\n$]/.test(n.charAt(n.length-1)))&&(o=" "),(t=r("$",i))+o+n+o+t}},55288:function(e,t,n){"use strict";e.exports=n(31601)},95426:function(e,t,n){"use strict";e.exports=function(e,t){var n,i,o=t.children||[],a=o.length,s=[],u=-1;for(;++u<a;)(n=r(e,o[u],t))&&(u&&"break"===o[u-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(i=n.children&&n.children[0])&&i.value&&(i.value=i.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(60719)},61696:function(e,t,n){"use strict";e.exports=function(e){var t,n,a,s,u=e.footnoteById,c=e.footnoteOrder,l=c.length,d=-1,f=[];for(;++d<l;)(t=u[c[d].toUpperCase()])&&(a=t.children.concat(),s=a[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"\u21a9"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),f.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));if(0===f.length)return null;return e(null,"div",{className:["footnotes"]},o([r(e),i(e,{type:"list",ordered:!0,children:f})],!0))};var r=n(37552),i=n(47888),o=n(96115)},34590:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(i(e,t),!0))};var r=n(96115),i=n(95426)},13562:function(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(50914)},37891:function(e,t,n){"use strict";e.exports=function(e,t){var n,i=t.value?t.value+"\n":"",o=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};o&&(a.className=["language-"+o]);n=e(t,"code",a,[r("text",i)]),t.meta&&(n.data={meta:t.meta});return e(t.position,"pre",[n])};var r=n(50914)},59381:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(95426)},80790:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(95426)},58235:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,i=String(t.identifier);-1===n.indexOf(i)&&n.push(i);return e(t.position,"sup",{id:"fnref-"+i},[e(t,"a",{href:"#fn-"+i,className:["footnote-ref"]},[r("text",t.label||i)])])};var r=n(50914)},85758:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteById,i=e.footnoteOrder,o=1;for(;o in n;)o++;return o=String(o),i.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:o,position:t.position})};var r=n(58235)},34890:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(95426)},92202:function(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(50914)},71454:function(e,t,n){"use strict";e.exports=function(e,t){var n,o=e.definition(t.identifier);if(!o)return i(e,t);n={src:r(o.url||""),alt:t.alt},null!==o.title&&void 0!==o.title&&(n.title=o.title);return e(t,"img",n)};var r=n(70729),i=n(713)},5037:function(e,t,n){"use strict";var r=n(70729);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"img",n)}},44617:function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(34590),break:n(13562),code:n(37891),delete:n(59381),emphasis:n(80790),footnoteReference:n(58235),footnote:n(85758),heading:n(34890),html:n(92202),imageReference:n(71454),image:n(5037),inlineCode:n(28409),linkReference:n(79266),link:n(20404),listItem:n(94463),list:n(47888),paragraph:n(68346),root:n(68100),strong:n(4970),table:n(72605),text:n(50989),thematicBreak:n(37552),toml:r,yaml:r,definition:r,footnoteDefinition:r}},28409:function(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(50914)},79266:function(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);if(!a)return i(e,t);n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title);return e(t,"a",n,o(e,t))};var r=n(70729),i=n(713),o=n(95426)},20404:function(e,t,n){"use strict";var r=n(70729),i=n(95426);e.exports=function(e,t){var n={href:r(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);return e(t,"a",n,i(e,t))}},94463:function(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,u,c=i(e,t),l=c[0],d=n?function(e){var t=e.spread,n=e.children,r=n.length,i=-1;for(;!t&&++i<r;)t=o(n[i]);return t}(n):o(t),f={},h=[];"boolean"===typeof t.checked&&(l&&"p"===l.tagName||(l=e(null,"p",[]),c.unshift(l)),l.children.length>0&&l.children.unshift(r("text"," ")),l.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),f.className=["task-list-item"]);a=c.length,s=-1;for(;++s<a;)u=c[s],(d||0!==s||"p"!==u.tagName)&&h.push(r("text","\n")),"p"!==u.tagName||d?h.push(u):h=h.concat(u.children);a&&(d||"p"!==u.tagName)&&h.push(r("text","\n"));return e(t,"li",f,h)};var r=n(50914),i=n(95426);function o(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}},47888:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a={},s=t.ordered?"ol":"ul",u=-1;"number"===typeof t.start&&1!==t.start&&(a.start=t.start);n=i(e,t),o=n.length;for(;++u<o;)if(n[u].properties.className&&-1!==n[u].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(96115),i=n(95426)},68346:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(95426)},68100:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",i(o(e,t))))};var r=n(50914),i=n(96115),o=n(95426)},4970:function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(95426)},72605:function(e,t,n){"use strict";e.exports=function(e,t){var n,a,s,u,c,l=t.children,d=l.length,f=t.align||[],h=f.length,p=[];for(;d--;){for(a=l[d].children,u=0===d?"th":"td",n=h||a.length,s=[];n--;)c=a[n],s[n]=e(c,u,{align:f[n]},c?o(e,c):[]);p[d]=e(l[d],"tr",i(s,!0))}return e(t,"table",i([e(p[0].position,"thead",i([p[0]],!0))].concat(p[1]?e({start:r.start(p[1]),end:r.end(p[p.length-1])},"tbody",i(p.slice(1),!0)):[]),!0))};var r=n(77361),i=n(96115),o=n(95426)},50989:function(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(50914)},37552:function(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},31601:function(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||f||(f=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,u={};return h.dangerous=r,h.definition=s(e),h.footnoteById=u,h.footnoteOrder=[],h.augment=c,h.handlers=Object.assign({},l,n.handlers),h.unknownHandler=n.unknownHandler,h.passThrough=n.passThrough,i(e,"footnoteDefinition",p),h;function c(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:o.start(r),end:o.end(r)}),t}function h(e,t,n,r){return void 0!==r&&null!==r||"object"!==typeof n||!("length"in n)||(r=n,n={}),c(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function p(e){var t=String(e.identifier).toUpperCase();d.call(u,t)||(u[t]=e)}}(e,t),h=u(n,e),p=c(n);p&&(h.children=h.children.concat(r("text","\n"),p));return h};var r=n(50914),i=n(62854),o=n(77361),a=n(61744),s=n(86630),u=n(60719),c=n(61696),l=n(44617),d={}.hasOwnProperty,f=!1},60719:function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");r=o.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.indexOf(i)>-1?s:e.unknownHandler;return("function"===typeof r?r:a)(e,t,n)};var r=n(50914),i=n(95426),o={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};if(o.call(t,"hName")||o.call(t,"hProperties")||o.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",i(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=i(e,t),n):t}},713:function(e,t,n){"use strict";e.exports=function(e,t){var n,o,a,s=t.referenceType,u="]";"collapsed"===s?u+="[]":"full"===s&&(u+="["+(t.label||t.identifier)+"]");if("imageReference"===t.type)return r("text","!["+t.alt+u);n=i(e,t),(o=n[0])&&"text"===o.type?o.value="["+o.value:n.unshift(r("text","["));(a=n[n.length-1])&&"text"===a.type?a.value+=u:n.push(r("text",u));return n};var r=n(50914),i=n(95426)},96115:function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i<o;)i&&n.push(r("text","\n")),n.push(e[i]);t&&e.length>0&&n.push(r("text","\n"));return n};var r=n(50914)},2564:function(e){e.exports=function e(t,n){var r,i=-1;if(n.extensions)for(;++i<n.extensions.length;)e(t,n.extensions[i]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},11595:function(e,t,n){e.exports=i,i.peek=function(){return"`"};var r=n(84553);function i(e,t,n){for(var i,o,a,s,u=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/[ \r\n`]/.test(u.charAt(0))||/[ \r\n`]/.test(u.charAt(u.length-1)))&&(u=" "+u+" ");++l<n.unsafe.length;)if((i=n.unsafe[l]).atBreak)for(o=r(i);a=o.exec(u);)s=a.index,10===u.charCodeAt(s)&&13===u.charCodeAt(s-1)&&s--,u=u.slice(0,s)+" "+u.slice(a.index+1);return c+u+c}},48618:function(e,t,n){e.exports=function(e,t,n){var u,c,l,d=i(n),f=o(n);t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+".");u=d.length+1,("tab"===f||"mixed"===f&&(t&&t.spread||e.spread))&&(u=4*Math.ceil(u/4));return l=n.enter("listItem"),c=s(a(e,n),(function(e,t,n){if(t)return(n?"":r(" ",u))+e;return(n?d:d+r(" ",u-d.length))+e})),l(),c};var r=n(96464),i=n(89400),o=n(56636),a=n(93493),s=n(92670)},89400:function(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},56636:function(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},93493:function(e,t,n){e.exports=function(e,t){var n,i=e.children||[],o=[],a=-1;for(;++a<i.length;)n=i[a],o.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<i.length&&o.push(s(n,i[a+1]));return o.join("");function s(n,i){for(var o,a=-1;++a<t.join.length&&!0!==(o=t.join[a](n,i,e,t))&&1!==o;){if("number"===typeof o)return r("\n",1+Number(o));if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(96464)},25362:function(e){e.exports=function(e,t,n){var r,i,o,a=e.children||[],s=[],u=-1,c=n.before;for(;++u<a.length;)o=a[u],u+1<a.length?((i=t.handle.handlers[a[u+1].type])&&i.peek&&(i=i.peek),r=i?i(a[u+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===c||"\n"===c)&&"html"===o.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),c=" "),s.push(t.handle(o,e,t,{before:c,after:r})),c=s[s.length-1].slice(-1);return s.join("")}},92670:function(e){e.exports=function(e,n){var r,i=[],o=0,a=0;for(;r=t.exec(e);)s(e.slice(o,r.index)),i.push(r[0]),o=r.index+r[0].length,a++;return s(e.slice(o)),i.join("");function s(e){i.push(n(e,a,!e))}};var t=/\r?\n|\r/g},84553:function(e){e.exports=function(e){var t,n;e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g"));return e._compiled}},76112:function(e){function t(e,t,n){var r;if(!t)return n;for("string"===typeof t&&(t=[t]),r=-1;++r<t.length;)if(-1!==e.indexOf(t[r]))return!0;return!1}e.exports=function(e,n){return t(e,n.inConstruct,!0)&&!t(e,n.notInConstruct)}},51113:function(e,t,n){e.exports=function(e,t,n){var s,u,c,l,d,f,h,p,m=(n.before||"")+(t||"")+(n.after||""),g=[],v=[],y={},b=-1;for(;++b<e.unsafe.length;)if(l=e.unsafe[b],i(e.stack,l))for(d=r(l);f=d.exec(m);)s="before"in l||l.atBreak,u="after"in l,c=f.index+(s?f[1].length:0),-1===g.indexOf(c)?(g.push(c),y[c]={before:s,after:u}):(y[c].before&&!s&&(y[c].before=!1),y[c].after&&!u&&(y[c].after=!1));g.sort(o),h=n.before?n.before.length:0,p=m.length-(n.after?n.after.length:0),b=-1;for(;++b<g.length;)(c=g[b])<h||c>=p||c+1<p&&g[b+1]===c+1&&y[c].after&&!y[c+1].before&&!y[c+1].after||(h!==c&&v.push(a(m.slice(h,c),"\\")),h=c,!/[!-/:-@[-`{-~]/.test(m.charAt(c))||n.encode&&-1!==n.encode.indexOf(m.charAt(c))?(v.push("&#x"+m.charCodeAt(c).toString(16).toUpperCase()+";"),h++):v.push("\\"));return v.push(a(m.slice(h,p),n.after)),v.join("")};var r=n(84553),i=n(76112);function o(e,t){return e-t}function a(e,t){for(var n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],o=[],a=-1,s=0,u=e+t;n=r.exec(u);)i.push(n.index);for(;++a<i.length;)s!==i[a]&&o.push(e.slice(s,i[a])),o.push("\\"),s=i[a];return o.push(e.slice(s)),o.join("")}},4999:function(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},70729:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,u,c,l="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},7969:function(e,t,n){e.exports=n(36385)},74035:function(e,t,n){e.exports=function(e){var t,n=e||"yaml",r=[],i=-1;"string"!==typeof n&&"length"in n||(n=[n]);t=n.length;for(;++i<t;)r[i]=a(n[i]);return r};var r=n(21102),i={}.hasOwnProperty,o={yaml:"-",toml:"+"};function a(e){var t=e;if("string"===typeof t){if(!i.call(o,t))throw r("Missing matter definition for `%s`",t);t={type:t,marker:o[t]}}else if("object"!==typeof t)throw r("Expected matter to be an object, not `%j`",t);if(!i.call(t,"type"))throw r("Missing `type` in matter `%j`",t);if(!i.call(t,"fence")&&!i.call(t,"marker"))throw r("Missing `marker` or `fence` in matter `%j`",t);return t}},36385:function(e,t,n){e.exports=function(e){var t,n,a=r(e),s=a.length,u=-1,c={};for(;++u<s;)t=a[u],(n=o(t,"open").charCodeAt(0))in c?c[n].push(i(t)):c[n]=[i(t)];return{flow:c}};var r=n(74035);function i(e){var t,n=e.type,r=e.anywhere,i=n+"Value",a=n+"Fence",s=a+"Sequence",u={tokenize:function(e,n,r){var i=0;return function(n){if(n===t.charCodeAt(i))return e.enter(a),e.enter(s),o(n);return r(n)};function o(n){return i===t.length?(e.exit(s),-2===n||-1===n||32===n?(e.enter("whitespace"),u(n)):c(n)):n===t.charCodeAt(i)?(e.consume(n),i++,o):r(n)}function u(t){return-2===t||-1===t||32===t?(e.consume(t),u):(e.exit("whitespace"),c(t))}function c(t){return-5===t||-4===t||-3===t||null===t?(e.exit(a),n(t)):r(t)}},partial:!0};return{tokenize:function(a,s,c){var l=this;return function(i){var s=l.now();if(1!==s.column||!r&&1!==s.line)return c(i);return a.enter(n),t=o(e,"open"),a.attempt(u,d,c)(i)};function d(n){return t=o(e,"close"),p(n)}function f(e){return-5===e||-4===e||-3===e||null===e?p(e):(a.enter(i),h(e))}function h(e){return-5===e||-4===e||-3===e||null===e?(a.exit(i),p(e)):(a.consume(e),h)}function p(e){return null===e?c(e):(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),a.attempt(u,m,f))}function m(e){return a.exit(n),s(e)}},concrete:!0}}function o(e,t){var n;return e.marker?(n=a(e.marker,t))+n+n:a(e.fence,t)}function a(e,t){return"string"===typeof e?e:e[t]}},57539:function(e,t,n){e.exports=n(62346)},62346:function(e,t,n){var r=n(76734),i=n(46712),o=n(89696),a=n(17238),s=n(36996),u=n(10395),c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32===87?(e.consume(t),i):n(t)}function i(t){return 87===t||t-32===87?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},l={tokenize:function(e,t,n){var r,i;return a;function a(t){return 38===t?e.check(h,l,c)(t):46===t||95===t?e.check(f,l,c)(t):o(t)||u(t)||45!==t&&s(t)?l(t):(e.consume(t),a)}function c(t){return 46===t?(i=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function l(e){return i||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(h,t,i)(a):(40===a&&n++,41===a?e.check(f,o,i)(a):E(a)?t(a):b(a)?e.check(f,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return b(i)?(e.consume(i),r):E(i)?t(i):n(i)}},partial:!0},h={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(t){return r(t)?(e.consume(t),i):59===t?(e.consume(t),o):n(t)}function o(e){return E(e)?t(e):n(e)}},partial:!0},p={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&t-32!==87||!x(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(l,e.attempt(d,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:x},m={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&t-32!==72||!_(r.previous)||k(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||t-32===84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32===84?(e.consume(t),c):n(t)}function c(t){return 80===t||t-32===80?(e.consume(t),f):n(t)}function f(t){return 83===t||t-32===83?(e.consume(t),h):h(t)}function h(t){return 58===t?(e.consume(t),p):n(t)}function p(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return o(t)||u(t)||s(t)?n(t):e.attempt(l,e.attempt(d,v),n)(t)}function v(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:_},g={tokenize:function(e,t,n){var r,o=this;return function(t){if(!T(t)||!w(o.previous)||k(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return T(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(f,d,u)(t):45===t||95===t?e.check(f,n,c)(t):i(t)?(e.consume(t),s):d(t)}function u(t){return e.consume(t),r=!0,s}function c(t){return e.consume(t),l}function l(t){return 46===t?e.check(f,n,u)(t):s(t)}function d(i){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:w},v={};t.text=v;for(var y=48;y<123;)v[y]=g,58===++y?y=65:91===y&&(y=97);function b(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function E(e){return null===e||e<0||32===e||60===e}function T(e){return 43===e||45===e||46===e||95===e||i(e)}function x(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function _(e){return null===e||!r(e)}function w(e){return 47!==e&&_(e)}function k(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}v[43]=g,v[45]=g,v[46]=g,v[95]=g,v[72]=[g,m],v[104]=[g,m],v[87]=[g,p],v[119]=[g,p]},3490:function(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,i){var o=this.previous,a=this.events,s=0;return u;function u(t){return 126!==t||126===o&&"characterEscape"!==a[a.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),c(t))}function c(a){var u,l,d=r(o);return 126===a?s>1?i(a):(e.consume(a),s++,c):s<2&&!t?i(a):(u=e.exit("strikethroughSequenceTemporary"),l=r(a),u._open=!l||2===l&&d,u._close=!d||2===d&&l,n(a))}},resolveAll:function(e,t){var n,r,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"strikethroughSequenceTemporary"===e[c][1].type&&e[c][1]._close)for(s=c;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[c][1].end.offset-e[c][1].start.offset===e[s][1].end.offset-e[s][1].start.offset){e[c][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[c][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[c][1].start)},u=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],i(u,u.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+1,c),t)),i(u,u.length,0,[["exit",r,t],["enter",e[c][1],t],["exit",e[c][1],t],["exit",n,t]]),i(e,s-1,c-s+3,u),c=s+u.length-2;break}return function(e){var t=-1,n=e.length;for(;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};null!==t&&void 0!==t||(t=!0);return{text:{126:n},insideSpan:{null:n}}};var r=n(19444),i=n(56808),o=n(58280),a=n(75923)},81286:function(e,t,n){e.exports=n(23993)},23993:function(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,u=[],c=0;return function(t){if(null===t||-5===t||-4===t||-3===t)return n(t);if(e.enter("table")._align=u,e.enter("tableHead"),e.enter("tableRow"),124===t)return l(t);return c++,e.enter("temporaryTableCellContent"),h(t)};function l(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){if(null===t)return n(t);return e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(i,n,r(e,m,"linePrefix",4))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,c++),124===t?l(t):(e.enter("temporaryTableCellContent"),h(t)))}function f(t){return-2===t||-1===t||32===t?(e.consume(t),f):(e.exit("whitespace"),d(t))}function h(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?p:h)}function p(t){return 92===t||124===t?(e.consume(t),h):h(t)}function m(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),g(t))}function g(t){return null===t||-5===t||-4===t||-3===t?T(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,u.push(null),y):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function v(t){return-2===t||-1===t||32===t?(e.consume(t),v):(e.exit("whitespace"),g(t))}function y(t){return 45===t?(e.consume(t),y):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),u[u.length-1]="left"===u[u.length-1]?"center":"right",E):g(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,y):n(t)}function E(t){return null===t||-5===t||-4===t||-3===t?T(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function T(t){return e.exit("tableDelimiterRow"),s&&c===u.length?null===t?x(t):e.check(o,x,_)(t):n(t)}function x(n){return e.exit("table"),t(n)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,w,"linePrefix",4)}function w(t){return e.enter("tableBody"),k(t)}function k(t){return e.enter("tableRow"),124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function C(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),A}function A(t){return null===t||-5===t||-4===t||-3===t?function(t){if(e.exit("tableRow"),null===t)return I(t);return e.check(o,I,N)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),S):124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function S(t){return-2===t||-1===t||32===t?(e.consume(t),S):(e.exit("whitespace"),A(t))}function O(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),A(t)):(e.consume(t),92===t?D:O)}function D(t){return 92===t||124===t?(e.consume(t),O):O(t)}function I(t){return e.exit("tableBody"),x(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,k,"linePrefix",4)}},resolve:function(e,t){var n,r,i,o,a,s,u,c,l,d,f=e.length,h=-1;for(;++h<f;)n=e[h][1],o&&("temporaryTableCellContent"===n.type&&(c=c||h,l=h),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!l||(s={type:"tableContent",start:e[c][1].start,end:e[l][1].end},u={type:"chunkText",start:s.start,end:s.end,contentType:"text"},e.splice(c,l-c+1,["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t]),h-=l-c-3,f=e.length,c=void 0,l=void 0)),"exit"===e[h][0]&&d&&d+1<h&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<h||"whitespace"!==e[d][1].type))&&(a={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[h][1].end},e.splice(h+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),h+=2,f=e.length,d=h+1),"tableRow"===n.type&&(o="enter"===e[h][0])&&(d=h+1),"tableDelimiterRow"===n.type&&(i="enter"===e[h][0])&&(d=h+1),"tableHead"===n.type&&(r="enter"===e[h][0]);return e},interruptible:!0}};var r=n(52928),i={tokenize:function(e,t,n){return function(t){if(45!==t)return n(t);return e.enter("setextUnderline"),r(t)};function r(t){return 45===t?(e.consume(t),r):i(t)}function i(r){return-2===r||-1===r||32===r?(e.consume(r),i):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},o={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),4===++r?t:i):null===o||o<0?t(o):n(o)}},partial:!0}},5675:function(e,t,n){e.exports=n(27224)},27224:function(e,t,n){var r=n(88367),i=n(52928),o=n(15096),a={tokenize:function(e,t,n){var r=this;return function(t){if(91!==t||null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return i(e,(function(e){return o(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)}),"whitespace")}t.text={91:a}},82747:function(e,t,n){e.exports=n(2518)},2518:function(e,t,n){var r=n(12952),i=n(57539),o=n(3490),a=n(81286),s=n(5675);e.exports=function(e){return r([i,o(e),a,s])}},50444:function(e,t,n){e.exports=n(92349)},92349:function(e,t,n){"use strict";t.flow={36:n(13857)},t.text={36:n(27141)}},13857:function(e,t,n){"use strict";t.tokenize=function(e,t,n){var o=this,a=r(this.events,"linePrefix"),s=0;return function(t){if(36!==t)throw new Error("expected `$`");return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathFlowFenceSequence"),s<2?n(t):i(e,c,"whitespace")(t))}function c(t){return null===t||-5===t||-4===t||-3===t?d(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return null===t||-5===t||-4===t||-3===t?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(t)):36===t?n(t):(e.consume(t),l)}function d(n){return e.exit("mathFlowFence"),o.interrupt?t(n):f(n)}function f(t){return null===t?p(t):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt({tokenize:m,partial:!0},p,a?i(e,f,"linePrefix",a+1):f)):(e.enter("mathFlowValue"),h(t))}function h(t){return null===t||-5===t||-4===t||-3===t?(e.exit("mathFlowValue"),f(t)):(e.consume(t),h)}function p(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){var r=0;return i(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(t)}),"linePrefix",4);function o(t){return 36===t?(e.consume(t),r++,o):r<s?n(t):(e.exit("mathFlowFenceSequence"),i(e,a,"whitespace")(t))}function a(r){return null===r||-5===r||-4===r||-3===r?(e.exit("mathFlowFence"),t(r)):n(r)}}},t.concrete=!0;var r=n(15096),i=n(52928)},27141:function(e,t){"use strict";function n(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}t.tokenize=function(e,t,r){var i,o,a=this,s=0;return function(t){if(36!==t)throw new Error("expected `$`");if(!n.call(a,a.previous))throw new Error("expected correct previous");return e.enter("mathText"),e.enter("mathTextSequence"),u(t)};function u(t){return 36===t?(e.consume(t),s++,u):(e.exit("mathTextSequence"),c(t))}function c(t){return null===t?r(t):36===t?(o=e.enter("mathTextSequence"),i=0,d(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):-5===t||-4===t||-3===t?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||-5===t||-4===t||-3===t?(e.exit("mathTextData"),c(t)):(e.consume(t),l)}function d(n){return 36===n?(e.consume(n),i++,d):i===s?(e.exit("mathTextSequence"),e.exit("mathText"),t(n)):(o.type="mathTextData",l(n))}},t.resolve=function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},t.previous=n},76734:function(e,t,n){"use strict";var r=n(2841)(/[A-Za-z]/);e.exports=r},46712:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Za-z]/);e.exports=r},13571:function(e,t,n){"use strict";var r=n(2841)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},89696:function(e){"use strict";e.exports=function(e){return e<32||127===e}},73977:function(e,t,n){"use strict";var r=n(2841)(/\d/);e.exports=r},56238:function(e,t,n){"use strict";var r=n(2841)(/[\dA-Fa-f]/);e.exports=r},83074:function(e,t,n){"use strict";var r=n(2841)(/[!-/:-@[-`{-~]/);e.exports=r},88367:function(e){"use strict";e.exports=function(e){return e<0||32===e}},17238:function(e){"use strict";e.exports=function(e){return e<-2}},73654:function(e){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},36996:function(e,t,n){"use strict";var r=n(76830),i=n(2841)(r);e.exports=i},10395:function(e,t,n){"use strict";var r=n(2841)(/\s/);e.exports=r},99198:function(e){"use strict";var t=Object.assign;e.exports=t},93267:function(e){"use strict";var t=String.fromCharCode;e.exports=t},46706:function(e){"use strict";var t={}.hasOwnProperty;e.exports=t},57139:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},16871:function(e){"use strict";e.exports=["pre","script","style","textarea"]},21362:function(e){"use strict";var t=[].splice;e.exports=t},76830:function(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},36274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97082),i=n(47542),o=n(1349),a=n(45485),s=n(49653),u=n(36713),c=n(46597),l=n(20431),d=n(60026),f=n(93865),h=n(65694),p=n(596),m=n(76872),g=n(28911),v=n(31294),y=n(36215),b=n(60534),E=n(92607),T=n(46931),x=n(15874),_=n(37039),w={42:T,43:T,45:T,48:T,49:T,50:T,51:T,52:T,53:T,54:T,55:T,56:T,57:T,62:a},k={91:f},C={"-2":l,"-1":l,32:l},A={35:p,42:_,45:[x,_],60:m,61:x,95:_,96:c,126:c},S={38:u,92:s},O={"-5":E,"-4":E,"-3":E,33:y,38:u,42:i,60:[o,g],91:b,92:[h,s],93:v,95:i,96:d},D={null:[i,r.resolver]};t.contentInitial=k,t.disable={null:[]},t.document=w,t.flow=A,t.flowInitial=C,t.insideSpan=D,t.string=S,t.text=O},13745:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),o(t)}));return n;function o(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),o):(e.consume(t),a)}};t.tokenize=o},14201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17238),i=n(52928),o=n(66532),a=function(e){var t,n,i,a=this,c=[],l=0,d={tokenize:function(e,r){var i=0;return t={},l;function l(r){return i<c.length?(a.containerState=c[i][1],e.attempt(c[i][0].continuation,d,f)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,m(r)):(a.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,p,m)(r))}function d(e){return i++,a.containerState._closeFlow?p(e):l(e)}function f(t){return n.currentConstruct&&n.currentConstruct.lazy?(a.containerState={},e.attempt(s,p,e.attempt(u,p,e.check(o,p,h)))(t)):p(t)}function h(e){return i=c.length,t.lazy=!0,t.flowContinue=!0,m(e)}function p(e){return t.flowEnd=!0,m(e)}function m(e){return t.continued=i,a.interrupt=a.containerState=void 0,r(e)}},partial:!0};return f;function f(t){return l<c.length?(a.containerState=c[l][1],e.attempt(c[l][0].continuation,h,p)(t)):p(t)}function h(e){return l++,f(e)}function p(r){return t&&t.flowContinue?g(r):(a.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,a.containerState={},e.attempt(s,m,g)(r))}function m(e){return c.push([a.currentConstruct,a.containerState]),a.containerState=void 0,p(e)}function g(t){return null===t?(E(0,!0),void e.consume(t)):(n=n||a.parser.flow(a.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),v(t))}function v(t){return null===t?(b(e.exit("chunkFlow")),g(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,y)):(e.consume(t),v)}function y(e){return E(t.continued,t&&t.flowEnd),l=0,f(e)}function b(e){i&&(i.next=e),i=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(a.sliceStream(e))}function E(t,r){var o=c.length;for(n&&r&&(n.write([null]),i=n=void 0);o-- >t;)a.containerState=c[o][1],c[o][0].exit.call(a,e);c.length=t}},s={tokenize:function(e,t,n){return i(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},u={tokenize:function(e,t,n){return i(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=a},22871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64590),i=n(52928),o=n(66532),a=function(e){var t=this,n=e.attempt(o,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,a,i(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}};t.tokenize=a},97082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99198),i=n(75923),o=u("text"),a=u("string"),s={resolveAll:c()};function u(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){var t=r[e],i=-1;if(null===e)return!0;if(t)for(;++i<t.length;)if(!t[i].previous||t[i].previous.call(n,n.previous))return!0}},resolveAll:c("text"===e?l:void 0)}}function c(e){return function(t,n){var r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function l(e,t){for(var n,o,a,s,u,c,l,d,f=-1;++f<=e.length;)if((f===e.length||"lineEnding"===e[f][1].type)&&"data"===e[f-1][1].type){for(o=e[f-1][1],s=(n=t.sliceStream(o)).length,u=-1,c=0,l=void 0;s--;)if("string"===typeof(a=n[s])){for(u=a.length;32===a.charCodeAt(u-1);)c++,u--;if(u)break;u=-1}else if(-2===a)l=!0,c++;else if(-1!==a){s++;break}c&&(d={type:f===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-c,offset:o.end.offset-c,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:i(o.end)},o.end=i(d.start),o.start.offset===o.end.offset?r(o,d):(e.splice(f,0,["enter",d,t],["exit",d,t]),f+=2)),f++}return e}t.resolver=s,t.string=a,t.text=o},32976:function(e,t,n){"use strict";var r=n(13745),i=n(14201),o=n(22871),a=n(97082),s=n(12952),u=n(21388),c=n(28180),l=n(36274);e.exports=function(e){var t={defined:[],constructs:s([l].concat(c((e||{}).extensions))),content:n(r),document:n(i),flow:n(o),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return u(t,e,n)}}}},61242:function(e,t,n){"use strict";var r=n(84423);e.exports=function(e){for(;!r(e););return e}},30162:function(e){"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,i="";return function(o,a,s){var u,c,l,d,f,h=[];o=i+o.toString(a),l=0,i="",n&&(65279===o.charCodeAt(0)&&l++,n=void 0);for(;l<o.length;){if(t.lastIndex=l,u=t.exec(o),d=u?u.index:o.length,f=o.charCodeAt(d),!u){i=o.slice(l);break}if(10===f&&l===d&&e)h.push(-3),e=void 0;else if(e&&(h.push(-5),e=void 0),l<d&&(h.push(o.slice(l,d)),r+=d-l),0===f)h.push(65533),r++;else if(9===f)for(c=4*Math.ceil(r/4),h.push(-2);r++<c;)h.push(-1);else 10===f?(h.push(-4),r=1):(e=!0,r=1);l=d+1}s&&(e&&h.push(-5),i&&h.push(i),h.push(null));return h}}},47542:function(e,t,n){"use strict";var r=n(78811),i=n(56808),o=n(19444),a=n(15644),s=n(58280),u=n(75923),c={name:"attention",tokenize:function(e,t){var n,r=o(this.previous);return function(t){return e.enter("attentionSequence"),n=t,i(t)};function i(a){var s,u,c,l;return a===n?(e.consume(a),i):(s=e.exit("attentionSequence"),c=!(u=o(a))||2===u&&r,l=!r||2===r&&u,s._open=42===n?c:c&&(r||!l),s._close=42===n?l:l&&(u||!c),t(a))}},resolveAll:function(e,t){var n,o,c,l,d,f,h,p,m=-1;for(;++m<e.length;)if("enter"===e[m][0]&&"attentionSequence"===e[m][1].type&&e[m][1]._close)for(n=m;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[m][1]).charCodeAt(0)){if((e[n][1]._close||e[m][1]._open)&&(e[m][1].end.offset-e[m][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[m][1].end.offset-e[m][1].start.offset)%3))continue;f=e[n][1].end.offset-e[n][1].start.offset>1&&e[m][1].end.offset-e[m][1].start.offset>1?2:1,l={type:f>1?"strongSequence":"emphasisSequence",start:a(u(e[n][1].end),-f),end:u(e[n][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:u(e[m][1].start),end:a(u(e[m][1].start),f)},c={type:f>1?"strongText":"emphasisText",start:u(e[n][1].end),end:u(e[m][1].start)},o={type:f>1?"strong":"emphasis",start:u(l.start),end:u(d.end)},e[n][1].end=u(l.start),e[m][1].start=u(d.end),h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=r(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=r(h,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",c,t]]),h=r(h,s(t.parser.constructs.insideSpan.null,e.slice(n+1,m),t)),h=r(h,[["exit",c,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[m][1].end.offset-e[m][1].start.offset?(p=2,h=r(h,[["enter",e[m][1],t],["exit",e[m][1],t]])):p=0,i(e,n-1,m-n+3,h),m=n+h.length-p-2;break}m=-1;for(;++m<e.length;)"attentionSequence"===e[m][1].type&&(e[m][1].type="data");return e}};e.exports=c},1349:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(13571),a=n(89696),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u};function u(t){return r(t)?(e.consume(t),c):o(t)?f(t):n(t)}function c(e){return 43===e||45===e||46===e||i(e)?l(e):f(e)}function l(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||i(t))&&s++<32?(e.consume(t),l):f(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),g(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function f(t){return 64===t?(e.consume(t),s=0,h):o(t)?(e.consume(t),f):n(t)}function h(e){return i(e)?p(e):n(e)}function p(t){return 46===t?(e.consume(t),s=0,h):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",g(t)):m(t)}function m(t){return(45===t||i(t))&&s++<63?(e.consume(t),45===t?m:p):n(t)}function g(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},45485:function(e,t,n){"use strict";var r=n(73654),i=n(52928),o={name:"blockQuote",tokenize:function(e,t,n){var i=this;return function(t){if(62===t)return i.containerState.open||(e.enter("blockQuote",{_container:!0}),i.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o;return n(t)};function o(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return i(e,e.attempt(o,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=o},49653:function(e,t,n){"use strict";var r=n(83074),i={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return r(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}};e.exports=i},36713:function(e,t,n){"use strict";var r=n(89435),i=n(46712),o=n(73977),a=n(56238);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=s(r),c={name:"characterReference",tokenize:function(e,t,n){var r,s,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),r=31,s=i,h(t))}function f(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=a,h):(e.enter("characterReferenceValue"),r=7,s=o,h(t))}function h(o){var a;return 59===o&&l?(a=e.exit("characterReferenceValue"),s!==i||u.default(c.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)):s(o)&&l++<r?(e.consume(o),h):n(o)}}};e.exports=c},46597:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(15096),a=n(52928),s={name:"codeFenced",tokenize:function(e,t,n){var s,u=this,c={tokenize:function(e,t,n){var i=0;return a(e,o,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}function u(t){return t===s?(e.consume(t),i++,u):i<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,c,"whitespace")(t))}function c(i){return null===i||r(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0},l=o(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,f(t)};function f(t){return t===s?(e.consume(t),d++,f):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,h,"whitespace")(t))}function h(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||i(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,m,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),p)}function m(t){return null===t||r(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(t))}function g(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===s?n(t):(e.consume(t),g)}function v(n){return e.exit("codeFencedFence"),u.interrupt?t(n):y(n)}function y(t){return null===t?E(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(c,E,l?a(e,y,"linePrefix",l+1):y)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),b)}function E(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},20431:function(e,t,n){"use strict";var r=n(17238),i=n(56808),o=n(15096),a=n(52928),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(u,i,n);function i(n){return null===n?t(n):r(n)?e.attempt(u,i,t)(n):(e.enter("codeFlowValue"),o(n))}function o(t){return null===t||r(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return i(e,0,0,[["enter",n,t]]),i(e,e.length,0,[["exit",n,t]]),e}},u={tokenize:function(e,t,n){var i=this;return a(e,(function s(u){if(r(u))return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a(e,s,"linePrefix",5);return o(i.events,"linePrefix")<4?n(u):t(u)}),"linePrefix",5)},partial:!0};e.exports=s},60026:function(e,t,n){"use strict";var r=n(17238),i={name:"codeText",tokenize:function(e,t,n){var i,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):96===t?(o=e.enter("codeTextSequence"),i=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),c)}function l(n){return 96===n?(e.consume(n),i++,l):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",c(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[i][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=i},64590:function(e,t,n){"use strict";var r=n(17238),i=n(15096),o=n(84423),a=n(52928),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?o(t):r(t)?e.check(u,a,o)(t):(e.consume(t),i)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),i}},resolve:function(e){return o(e),e},interruptible:!0,lazy:!0},u={tokenize:function(e,t,n){var o=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):o.parser.constructs.disable.null.indexOf("codeIndented")>-1||i(o.events,"linePrefix")<4?e.interrupt(o.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},93865:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(35478),a=n(38229),s=n(97154),u=n(52928),c=n(31056),l=n(59283),d={name:"definition",tokenize:function(e,t,n){var i,l=this;return function(t){return e.enter("definition"),s.call(l,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return i=o(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,a(e,e.attempt(f,u(e,h,"whitespace"),u(e,h,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function h(o){return null===o||r(o)?(e.exit("definition"),l.parser.defined.indexOf(i)<0&&l.parser.defined.push(i),t(o)):n(o)}}},f={tokenize:function(e,t,n){return function(t){return i(t)?c(e,o)(t):n(t)};function o(t){return 34===t||39===t||40===t?l(e,u(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},38229:function(e,t,n){"use strict";var r=n(89696),i=n(88367),o=n(17238);e.exports=function(e,t,n,a,s,u,c,l,d){var f=d||1/0,h=0;return function(t){if(60===t)return e.enter(a),e.enter(s),e.enter(u),e.consume(t),e.exit(u),p;if(r(t)||41===t)return n(t);return e.enter(a),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(t)};function p(n){return 62===n?(e.enter(u),e.consume(n),e.exit(u),e.exit(s),e.exit(a),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||o(t)?n(t):(e.consume(t),92===t?g:m)}function g(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function v(o){return 40===o?++h>f?n(o):(e.consume(o),v):41===o?h--?(e.consume(o),v):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):null===o||i(o)?h?n(o):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(a),t(o)):r(o)?n(o):(e.consume(o),92===o?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}}},97154:function(e,t,n){"use strict";var r=n(17238),i=n(73654);e.exports=function(e,t,n,o,a,s){var u,c=this,l=0;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(i){return null===i||91===i||93===i&&!u||94===i&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?n(i):93===i?(e.exit(s),e.enter(a),e.consume(i),e.exit(a),e.exit(o),t):r(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(i))}function f(t){return null===t||91===t||93===t||r(t)||l++>999?(e.exit("chunkString"),d(t)):(e.consume(t),u=u||!i(t),92===t?h:f)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,f):f(t)}}},52928:function(e,t,n){"use strict";var r=n(73654);e.exports=function(e,t,n,i){var o=i?i-1:1/0,a=0;return function(i){if(r(i))return e.enter(n),s(i);return t(i)};function s(i){return r(i)&&a++<o?(e.consume(i),s):(e.exit(n),t(i))}}},59283:function(e,t,n){"use strict";var r=n(17238),i=n(52928);e.exports=function(e,t,n,o,a,s){var u;return function(t){return e.enter(o),e.enter(a),e.consume(t),e.exit(a),u=40===t?41:t,c};function c(n){return n===u?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),t):(e.enter(s),l(n))}function l(t){return t===u?(e.exit(s),c(u)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===u||null===t||r(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?f:d)}function f(t){return t===u||92===t?(e.consume(t),d):d(t)}}},31056:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928);e.exports=function(e,t){var n;return function a(s){if(r(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a;if(i(s))return o(e,a,n?"linePrefix":"lineSuffix")(s);return t(s)}}},65694:function(e,t,n){"use strict";var r=n(17238),i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),i};function i(i){return r(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}};e.exports=i},596:function(e,t,n){"use strict";var r=n(17238),i=n(88367),o=n(73654),a=n(56808),s=n(52928),u={name:"headingAtx",tokenize:function(e,t,n){var a=this,u=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(r){return 35===r&&u++<6?(e.consume(r),c):null===r||i(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):l(r)):n(r)}function l(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):o(n)?s(e,l,"whitespace")(n):(e.enter("atxHeadingText"),f(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),l(t))}function f(t){return null===t||35===t||i(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),f)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},a(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};e.exports=u},76872:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(93267),c=n(57139),l=n(16871),d=n(66532),f={name:"htmlFlow",tokenize:function(e,t,n){var d,f,p,m,g,v=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),y};function y(i){return 33===i?(e.consume(i),b):47===i?(e.consume(i),x):63===i?(e.consume(i),d=3,v.interrupt?t:U):r(i)?(e.consume(i),p=u(i),f=!0,_):n(i)}function b(i){return 45===i?(e.consume(i),d=2,E):91===i?(e.consume(i),d=5,p="CDATA[",m=0,T):r(i)?(e.consume(i),d=4,v.interrupt?t:U):n(i)}function E(r){return 45===r?(e.consume(r),v.interrupt?t:U):n(r)}function T(r){return r===p.charCodeAt(m++)?(e.consume(r),m===p.length?v.interrupt?t:P:T):n(r)}function x(t){return r(t)?(e.consume(t),p=u(t),_):n(t)}function _(r){return null===r||47===r||62===r||a(r)?47!==r&&f&&l.indexOf(p.toLowerCase())>-1?(d=1,v.interrupt?t(r):P(r)):c.indexOf(p.toLowerCase())>-1?(d=6,47===r?(e.consume(r),w):v.interrupt?t(r):P(r)):(d=7,v.interrupt?n(r):f?C(r):k(r)):45===r||i(r)?(e.consume(r),p+=u(r),_):n(r)}function w(r){return 62===r?(e.consume(r),v.interrupt?t:P):n(r)}function k(t){return s(t)?(e.consume(t),k):R(t)}function C(t){return 47===t?(e.consume(t),R):58===t||95===t||r(t)?(e.consume(t),A):s(t)?(e.consume(t),C):R(t)}function A(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),A):S(t)}function S(t){return 61===t?(e.consume(t),O):s(t)?(e.consume(t),S):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),g=t,D):s(t)?(e.consume(t),O):(g=void 0,I(t))}function D(t){return t===g?(e.consume(t),N):null===t||o(t)?n(t):(e.consume(t),D)}function I(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?S(t):(e.consume(t),I)}function N(e){return 47===e||62===e||s(e)?C(e):n(e)}function R(t){return 62===t?(e.consume(t),M):n(t)}function M(t){return s(t)?(e.consume(t),M):null===t||o(t)?P(t):n(t)}function P(t){return 45===t&&2===d?(e.consume(t),j):60===t&&1===d?(e.consume(t),H):62===t&&4===d?(e.consume(t),V):63===t&&3===d?(e.consume(t),U):93===t&&5===d?(e.consume(t),z):!o(t)||6!==d&&7!==d?null===t||o(t)?L(t):(e.consume(t),P):e.check(h,V,L)(t)}function L(t){return e.exit("htmlFlowData"),F(t)}function F(t){return null===t?G(t):o(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F):(e.enter("htmlFlowData"),P(t))}function j(t){return 45===t?(e.consume(t),U):P(t)}function H(t){return 47===t?(e.consume(t),p="",B):P(t)}function B(t){return 62===t&&l.indexOf(p.toLowerCase())>-1?(e.consume(t),V):r(t)&&p.length<8?(e.consume(t),p+=u(t),B):P(t)}function z(t){return 93===t?(e.consume(t),U):P(t)}function U(t){return 62===t?(e.consume(t),V):P(t)}function V(t){return null===t||o(t)?(e.exit("htmlFlowData"),G(t)):(e.consume(t),V)}function G(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},h={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=f},28911:function(e,t,n){"use strict";var r=n(76734),i=n(46712),o=n(17238),a=n(88367),s=n(73654),u=n(52928),c={name:"htmlText",tokenize:function(e,t,n){var c,l,d,f,h=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),p};function p(t){return 33===t?(e.consume(t),m):47===t?(e.consume(t),S):63===t?(e.consume(t),C):r(t)?(e.consume(t),I):n(t)}function m(t){return 45===t?(e.consume(t),g):91===t?(e.consume(t),l="CDATA[",d=0,T):r(t)?(e.consume(t),k):n(t)}function g(t){return 45===t?(e.consume(t),v):n(t)}function v(t){return null===t||62===t?n(t):45===t?(e.consume(t),y):b(t)}function y(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),E):o(t)?(f=b,H(t)):(e.consume(t),b)}function E(t){return 45===t?(e.consume(t),z):b(t)}function T(t){return t===l.charCodeAt(d++)?(e.consume(t),d===l.length?x:T):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),_):o(t)?(f=x,H(t)):(e.consume(t),x)}function _(t){return 93===t?(e.consume(t),w):x(t)}function w(t){return 62===t?z(t):93===t?(e.consume(t),w):x(t)}function k(t){return null===t||62===t?z(t):o(t)?(f=k,H(t)):(e.consume(t),k)}function C(t){return null===t?n(t):63===t?(e.consume(t),A):o(t)?(f=C,H(t)):(e.consume(t),C)}function A(e){return 62===e?z(e):C(e)}function S(t){return r(t)?(e.consume(t),O):n(t)}function O(t){return 45===t||i(t)?(e.consume(t),O):D(t)}function D(t){return o(t)?(f=D,H(t)):s(t)?(e.consume(t),D):z(t)}function I(t){return 45===t||i(t)?(e.consume(t),I):47===t||62===t||a(t)?N(t):n(t)}function N(t){return 47===t?(e.consume(t),z):58===t||95===t||r(t)?(e.consume(t),R):o(t)?(f=N,H(t)):s(t)?(e.consume(t),N):z(t)}function R(t){return 45===t||46===t||58===t||95===t||i(t)?(e.consume(t),R):M(t)}function M(t){return 61===t?(e.consume(t),P):o(t)?(f=M,H(t)):s(t)?(e.consume(t),M):N(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,L):o(t)?(f=P,H(t)):s(t)?(e.consume(t),P):(e.consume(t),c=void 0,j)}function L(t){return t===c?(e.consume(t),F):null===t?n(t):o(t)?(f=L,H(t)):(e.consume(t),L)}function F(e){return 62===e||47===e||a(e)?N(e):n(e)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?N(t):(e.consume(t),j)}function H(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u(e,B,"linePrefix",h.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function B(t){return e.enter("htmlTextData"),f(t)}function z(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=c},31294:function(e,t,n){"use strict";var r=n(88367),i=n(78811),o=n(56808),a=n(35478),s=n(58280),u=n(75923),c=n(38229),l=n(97154),d=n(59283),f=n(31056),h={name:"labelEnd",tokenize:function(e,t,n){var r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){if(!r)return n(t);return r._inactive?c(t):(i=o.parser.defined.indexOf(a(o.sliceSerialize({start:r.end,end:o.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(p,t,i?t:c)(n):91===n?e.attempt(m,t,i?e.attempt(g,t,c):c)(n):i?t(n):c(n)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,a,c,l,d,f,h=e.length,p=0;for(;h--;)if(c=e[h][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[h][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(d){if("enter"===e[h][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=h,"labelLink"!==c.type)){p=2;break}}else"labelEnd"===c.type&&(d=h);return n={type:"labelLink"===e[l][1].type?"link":"image",start:u(e[l][1].start),end:u(e[e.length-1][1].end)},r={type:"label",start:u(e[l][1].start),end:u(e[d][1].end)},a={type:"labelText",start:u(e[l+p+2][1].end),end:u(e[d-2][1].start)},f=i(f=[["enter",n,t],["enter",r,t]],e.slice(l+1,l+p+3)),f=i(f,[["enter",a,t]]),f=i(f,s(t.parser.constructs.insideSpan.null,e.slice(l+p+4,d-3),t)),f=i(f,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),f=i(f,e.slice(d+1)),f=i(f,[["exit",n,t]]),o(e,l,e.length,f),e},resolveAll:function(e){var t,n=-1;for(;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},p={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,i)};function i(t){return 41===t?s(t):c(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function o(t){return r(t)?f(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},m={tokenize:function(e,t,n){var r=this;return function(t){return l.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},g={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=h},36215:function(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},60534:function(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(31294).resolveAll};e.exports=r},92607:function(e,t,n){"use strict";var r=n(52928),i={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=i},46931:function(e,t,n){"use strict";var r=n(73977),i=n(73654),o=n(15096),a=n(18892),s=n(52928),u=n(66532),c=n(37039),l={name:"list",tokenize:function(e,t,n){var s=this,l=o(s.events,"linePrefix"),f=0;return function(t){var i=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,n,p)(t):p(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(t)}return n(t)};function h(t){return r(t)&&++f<10?(e.consume(t),h):(!s.interrupt||f<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),p(t)):n(t)}function p(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(u,s.interrupt?n:m,e.attempt(d,v,g))}function m(e){return s.containerState.initialBlankLine=!0,l++,v(e)}function g(t){return i(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),v):n(t)}function v(n){return s.containerState.size=l+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(u,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!i(n))return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(f,t,o)(n)}));function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(l,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return i(e)||!o(r.events,"listItemPrefixWhitespace")?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},f={tokenize:function(e,t,n){var r=this;return s(e,(function(e){return o(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=l},66532:function(e,t,n){"use strict";var r=n(17238),i=n(52928),o={tokenize:function(e,t,n){return i(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=o},15874:function(e,t,n){"use strict";var r=n(17238),i=n(75923),o=n(52928),a={name:"setextUnderline",tokenize:function(e,t,n){var i,a,s=this,u=s.events.length;for(;u--;)if("lineEnding"!==s.events[u][1].type&&"linePrefix"!==s.events[u][1].type&&"content"!==s.events[u][1].type){a="paragraph"===s.events[u][1].type;break}return function(t){if(!s.lazy&&(s.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,c(t);return n(t)};function c(t){return t===i?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),o(e,l,"lineSuffix")(t))}function l(i){return null===i||r(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){var n,r,o,a,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);a={type:"setextHeading",start:i(e[r][1].start),end:i(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=i(e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};e.exports=a},37039:function(e,t,n){"use strict";var r=n(17238),i=n(73654),o=n(52928),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,u(t)};function u(l){return l===a?(e.enter("thematicBreakSequence"),c(l)):i(l)?o(e,u,"whitespace")(l):s<3||null!==l&&!r(l)?n(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===a?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),u(t))}}};e.exports=a},78811:function(e,t,n){"use strict";var r=n(56808);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},56808:function(e,t,n){"use strict";var r=n(21362);e.exports=function(e,t,n,i){var o,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(o=Array.from(i)).unshift(t,n),r.apply(e,o);else for(n&&r.apply(e,[t,n]);s<i.length;)(o=i.slice(s,s+1e4)).unshift(t,0),r.apply(e,o),s+=1e4,t+=1e4}},19444:function(e,t,n){"use strict";var r=n(88367),i=n(36996),o=n(10395);e.exports=function(e){return null===e||r(e)||o(e)?1:i(e)?2:void 0}},12952:function(e,t,n){"use strict";var r=n(46706),i=n(56808),o=n(28180);function a(e,t){var n,i,a,u;for(n in t)for(u in i=r.call(e,n)?e[n]:e[n]={},a=t[n])i[u]=s(o(a[u]),r.call(i,u)?i[u]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return i(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},21388:function(e,t,n){"use strict";var r=n(99198),i=n(17238),o=n(78811),a=n(56808),s=n(28180),u=n(58280),c=n(23082),l=n(75923),d=n(12774);e.exports=function(e,t,n){var f=n?l(n):{line:1,column:1,offset:0},h={},p=[],m=[],g=[],v={consume:function(e){i(e)?(f.line++,f.column=1,f.offset+=-3===e?2:1,A()):-1!==e&&(f.column++,f.offset++);f._bufferIndex<0?f._index++:(f._bufferIndex++,f._bufferIndex===m[f._index].length&&(f._bufferIndex=-1,f._index++));y.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=T(),y.events.push(["enter",n,y]),g.push(n),n},exit:function(e){var t=g.pop();return t.end=T(),y.events.push(["exit",t,y]),t},attempt:k((function(e,t){C(e,t.from)})),check:k(w),interrupt:k(w,{interrupt:!0}),lazy:k(w,{lazy:!0})},y={previous:null,events:[],parser:e,sliceStream:E,sliceSerialize:function(e){return c(E(e))},now:T,defineSkip:function(e){h[e.line]=e.column,A()},write:function(e){if(m=o(m,e),x(),null!==m[m.length-1])return[];return C(t,0),y.events=u(p,y.events,y),y.events}},b=t.tokenize.call(y,v);return t.resolveAll&&p.push(t),f._index=0,f._bufferIndex=-1,y;function E(e){return d(m,e)}function T(){return l(f)}function x(){for(var e,t;f._index<m.length;)if("string"===typeof(t=m[f._index]))for(e=f._index,f._bufferIndex<0&&(f._bufferIndex=0);f._index===e&&f._bufferIndex<t.length;)_(t.charCodeAt(f._bufferIndex));else _(t)}function _(e){b=b(e)}function w(e,t){t.restore()}function k(e,t){return function(n,i,o){var a,u,c,l;return n.tokenize||"length"in n?d(s(n)):function(e){if(e in n||null in n)return d(n.null?s(n[e]).concat(s(n.null)):n[e])(e);return o(e)};function d(e){return a=e,h(e[u=0])}function h(e){return function(n){l=function(){var e=T(),t=y.previous,n=y.currentConstruct,r=y.events.length,i=Array.from(g);return{restore:o,from:r};function o(){f=e,y.previous=t,y.currentConstruct=n,y.events.length=r,g=i,A()}}(),c=e,e.partial||(y.currentConstruct=e);if(e.name&&y.parser.constructs.disable.null.indexOf(e.name)>-1)return m();return e.tokenize.call(t?r({},y,t):y,v,p,m)(n)}}function p(t){return e(c,l),i}function m(e){return l.restore(),++u<a.length?h(a[u]):o}}}function C(e,t){e.resolveAll&&p.indexOf(e)<0&&p.push(e),e.resolve&&a(y.events,t,y.events.length-t,e.resolve(y.events.slice(t),y)),e.resolveTo&&(y.events=e.resolveTo(y.events,y))}function A(){f.line in h&&f.column<2&&(f.column=h[f.line],f.offset+=h[f.line]-1)}}},28180:function(e){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},15644:function(e){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},35478:function(e){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},15096:function(e,t,n){"use strict";var r=n(18892);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},2841:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){return function(t){return e.test(r(t))}}},58280:function(e){"use strict";e.exports=function(e,t,n){for(var r,i=[],o=-1;++o<e.length;)(r=e[o].resolveAll)&&i.indexOf(r)<0&&(t=r(t,n),i.push(r));return t}},10596:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":r(n)}},23082:function(e,t,n){"use strict";var r=n(93267);e.exports=function(e){for(var t,n,i,o=-1,a=[];++o<e.length;){if("string"===typeof(t=e[o]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(i)continue;n=" "}else n=r(t);i=-2===t,a.push(n)}return a.join("")}},75923:function(e,t,n){"use strict";var r=n(99198);e.exports=function(e){return r({},e)}},18892:function(e){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"===typeof e[t]?e[t].length:1;return n}},12774:function(e){"use strict";e.exports=function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;return r===o?n=[e[r].slice(i,a)]:(n=e.slice(r,o),i>-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a))),n}},84423:function(e,t,n){"use strict";var r=n(99198),i=n(56808),o=n(75923);function a(e,t){for(var n,r,o,a,s,u,c=e[t][1],l=e[t][2],d=t-1,f=[],h=c._tokenizer||l.parser[c.contentType](c.start),p=h.events,m=[],g={};c;){for(;e[++d][1]!==c;);f.push(d),c._tokenizer||(n=l.sliceStream(c),c.next||n.push(null),r&&h.defineSkip(c.start),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=!0),h.write(n),c.isInFirstContentOfListItem&&(h._gfmTasklistFirstContentOfListItem=void 0)),r=c,c=c.next}for(c=r,o=p.length;o--;)"enter"===p[o][0]?a=!0:a&&p[o][1].type===p[o-1][1].type&&p[o][1].start.line!==p[o][1].end.line&&(v(p.slice(o+1,s)),c._tokenizer=c.next=void 0,c=c.previous,s=o+1);for(h.events=c._tokenizer=c.next=void 0,v(p.slice(0,s)),o=-1,u=0;++o<m.length;)g[u+m[o][0]]=u+m[o][1],u+=m[o][1]-m[o][0]-1;return g;function v(t){var n=f.pop();m.unshift([n,n+t.length-1]),i(e,n,2,t)}}e.exports=function(e){for(var t,n,s,u,c,l,d,f={},h=-1;++h<e.length;){for(;h in f;)h=f[h];if(t=e[h],h&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[h-1][1].type&&((s=0)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[s][1].type&&(s+=2),s<l.length&&"content"===l[s][1].type))for(;++s<l.length&&"content"!==l[s][1].type;)"chunkText"===l[s][1].type&&(l[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(f,a(e,h)),h=f[h],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=h,n=void 0;s--&&("lineEnding"===(u=e[s])[1].type||"lineEndingBlank"===u[1].type);)"enter"===u[0]&&(n&&(e[n][1].type="lineEndingBlank"),u[1].type="lineEnding",n=s);n&&(t[1].end=o(e[n][1].start),(c=e.slice(n,h)).unshift(t),i(e,n,h-n+1,c))}}return!d}},39917:function(e,t,n){"use strict";var r=n(53848),i=n(83115);t.default=function(e){var t=e.src,n=e.sizes,i=e.unoptimized,u=void 0!==i&&i,l=e.priority,d=void 0!==l&&l,p=e.loading,g=e.lazyBoundary,v=void 0===g?"200px":g,y=e.className,b=e.quality,E=e.width,T=e.height,k=e.objectFit,C=e.objectPosition,A=e.onLoadingComplete,S=e.loader,O=void 0===S?w:S,D=e.placeholder,I=void 0===D?"empty":D,N=e.blurDataURL,R=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["src","sizes","unoptimized","priority","loading","lazyBoundary","className","quality","width","height","objectFit","objectPosition","onLoadingComplete","loader","placeholder","blurDataURL"]),M=n?"responsive":"intrinsic";"layout"in R&&(R.layout&&(M=R.layout),delete R.layout);var P="";if(function(e){return"object"===typeof e&&(m(e)||function(e){return void 0!==e.src}(e))}(t)){var L=m(t)?t.default:t;if(!L.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(L)));if(N=N||L.blurDataURL,P=L.src,(!M||"fill"!==M)&&(T=T||L.height,E=E||L.width,!L.height||!L.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(L)))}t="string"===typeof t?t:P;var F=_(E),j=_(T),H=_(b),B=!d&&("lazy"===p||"undefined"===typeof p);(t.startsWith("data:")||t.startsWith("blob:"))&&(u=!0,B=!1);h.has(t)&&(B=!1);0;var z,U,V,G=c.useIntersection({rootMargin:v,disabled:!B}),K=r(G,2),q=K[0],W=K[1],$=!B||W,Z={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:k,objectPosition:C},Y="blur"===I?{filter:"blur(20px)",backgroundSize:k||"cover",backgroundImage:'url("'.concat(N,'")'),backgroundPosition:C||"0% 0%"}:{};if("fill"===M)z={display:"block",overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",margin:0};else if("undefined"!==typeof F&&"undefined"!==typeof j){var X=j/F,Q=isNaN(X)?"100%":"".concat(100*X,"%");"responsive"===M?(z={display:"block",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={display:"block",boxSizing:"border-box",paddingTop:Q}):"intrinsic"===M?(z={display:"inline-block",maxWidth:"100%",overflow:"hidden",position:"relative",boxSizing:"border-box",margin:0},U={boxSizing:"border-box",display:"block",maxWidth:"100%"},V='<svg width="'.concat(F,'" height="').concat(j,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')):"fixed"===M&&(z={overflow:"hidden",boxSizing:"border-box",display:"inline-block",position:"relative",width:F,height:j})}else 0;var J={src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",srcSet:void 0,sizes:void 0};$&&(J=x({src:t,unoptimized:u,layout:M,width:F,quality:H,sizes:n,loader:O}));var ee=t;return o.default.createElement("div",{style:z},U?o.default.createElement("div",{style:U},V?o.default.createElement("img",{style:{maxWidth:"100%",display:"block",margin:0,border:"none",padding:0},alt:"","aria-hidden":!0,src:"data:image/svg+xml;base64,".concat(s.toBase64(V))}):null):null,o.default.createElement("img",Object.assign({},R,J,{decoding:"async","data-nimg":M,className:y,ref:function(e){q(e),function(e,t,n,r,i){if(!e)return;var o=function(){e.src.startsWith("data:")||("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if("blur"===r&&(e.style.filter="none",e.style.backgroundSize="none",e.style.backgroundImage="none"),h.add(t),i){var n=e.naturalWidth,o=e.naturalHeight;i({naturalWidth:n,naturalHeight:o})}}))};e.complete?o():e.onload=o}(e,ee,0,I,A)},style:f({},Z,Y)})),o.default.createElement("noscript",null,o.default.createElement("img",Object.assign({},R,x({src:t,unoptimized:u,layout:M,width:F,quality:H,sizes:n,loader:O}),{decoding:"async","data-nimg":M,style:Z,className:y,loading:p||"lazy"}))),d?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+J.src+J.srcSet+J.sizes,rel:"preload",as:"image",href:J.srcSet?void 0:J.src,imagesrcset:J.srcSet,imagesizes:J.sizes})):null)};var o=d(n(67294)),a=d(n(70639)),s=n(28997),u=n(5809),c=n(7426);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return e&&e.__esModule?e:{default:e}}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}var h=new Set;var p=new Map([["default",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality;0;return"".concat(t,"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(i||75)}],["imgix",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=new URL("".concat(t).concat(k(n))),a=o.searchParams;a.set("auto",a.get("auto")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),i&&a.set("q",i.toString());return o.href}],["cloudinary",function(e){var t=e.root,n=e.src,r=e.width,i=e.quality,o=["f_auto","c_limit","w_"+r,"q_"+(i||"auto")].join(",")+"/";return"".concat(t).concat(o).concat(k(n))}],["akamai",function(e){var t=e.root,n=e.src,r=e.width;return"".concat(t).concat(k(n),"?imwidth=").concat(r)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function m(e){return void 0!==e.default}var g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom"}||u.imageConfigDefault,v=g.deviceSizes,y=g.imageSizes,b=g.loader,E=g.path,T=(g.domains,[].concat(i(v),i(y)));function x(e){var t=e.src,n=e.unoptimized,r=e.layout,o=e.width,a=e.quality,s=e.sizes,u=e.loader;if(n)return{src:t,srcSet:void 0,sizes:void 0};var c=function(e,t,n){if(n&&("fill"===t||"responsive"===t)){for(var r,o=/(^|\s)(1?\d?\d)vw/g,a=[];r=o.exec(n);r)a.push(parseInt(r[2]));if(a.length){var s=.01*Math.min.apply(Math,a);return{widths:T.filter((function(e){return e>=v[0]*s})),kind:"w"}}return{widths:T,kind:"w"}}return"number"!==typeof e||"fill"===t||"responsive"===t?{widths:v,kind:"w"}:{widths:i(new Set([e,2*e].map((function(e){return T.find((function(t){return t>=e}))||T[T.length-1]})))),kind:"x"}}(o,r,s),l=c.widths,d=c.kind,f=l.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:l.map((function(e,n){return"".concat(u({src:t,quality:a,width:e})," ").concat("w"===d?e:n+1).concat(d)})).join(", "),src:u({src:t,quality:a,width:l[f]})}}function _(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function w(e){var t=p.get(b);if(t)return t(f({root:E},e));throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(u.VALID_LOADERS.join(", "),". Received: ").concat(b))}function k(e){return"/"===e[0]?e.slice(1):e}v.sort((function(e,t){return e-t})),T.sort((function(e,t){return e-t}))},7426:function(e,t,n){"use strict";var r=n(53848);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!a,u=i.useRef(),c=i.useState(!1),l=r(c,2),d=l[0],f=l[1],h=i.useCallback((function(e){u.current&&(u.current(),u.current=void 0),n||d||e&&e.tagName&&(u.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=s.get(t);if(n)return n;var r=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return s.set(t,n={id:t,observer:i,elements:r}),n}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){a.delete(e),o.unobserve(e),0===a.size&&(o.disconnect(),s.delete(i))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,d]);return i.useEffect((function(){if(!a&&!d){var e=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(e)}}}),[d]),[h,d]};var i=n(67294),o=n(73447),a="undefined"!==typeof IntersectionObserver;var s=new Map},28997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64=function(e){return window.btoa(e)}},15352:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(d){o.e(d)}finally{o.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return o}})},76554:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n;if(void 0===t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(d){o.e(d)}finally{o.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return o}})},65574:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,i,o,a,s,u,c=e._root,l={data:n},d=e._x0,f=e._x1;if(!c)return e._root=l,e;for(;c.length;)if((a=t>=(i=(d+f)/2))?d=i:f=i,r=c,!(c=c[s=+a]))return r[s]=l,e;if(t===(o=+e._x.call(null,c.data)))return l.next=c,r?r[s]=l:e._root=l,e;do{r=r?r[s]=new Array(2):e._root=new Array(2),(a=t>=(i=(d+f)/2))?d=i:f=i}while((s=+a)===(u=+(o>=i)));return r[u]=c,r[s]=l,e}function i(e,t,n){this.node=e,this.x0=t,this.x1=n}function o(e){return e[0]}function a(e,t){var n=new s(null==t?o:t,NaN,NaN);return null==e?n:n.addAll(e)}function s(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function u(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return a}});var c=a.prototype=s.prototype;c.copy=function(){var e,t,n=new s(this._x,this._x0,this._x1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(e=[{source:r,target:n._root=new Array(2)}];r=e.pop();)for(var i=0;i<2;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(2)}):r.target[i]=u(t));return n},c.add=function(e){var t=+this._x.call(null,e);return r(this.cover(t),t,e)},c.addAll=function(e){var t,n,i=e.length,o=new Array(i),a=1/0,s=-1/0;for(t=0;t<i;++t)isNaN(n=+this._x.call(null,e[t]))||(o[t]=n,n<a&&(a=n),n>s&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;t<i;++t)r(this,o[t],e[t]);return this},c.cover=function(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var r,i,o=n-t||1,a=this._root;t>e||e>=n;)switch(i=+(e<t),(r=new Array(2))[i]=a,a=r,o*=2,i){case 0:n=t+o;break;case 1:t=n-o}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._x1=n,this},c.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},c.extent=function(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]},c.find=function(e,t){var n,r,o,a,s,u=this._x0,c=this._x1,l=[],d=this._root;for(d&&l.push(new i(d,u,c)),null==t?t=1/0:(u=e-t,c=e+t);a=l.pop();)if(!(!(d=a.node)||(r=a.x0)>c||(o=a.x1)<u))if(d.length){var f=(r+o)/2;l.push(new i(d[1],f,o),new i(d[0],r,f)),(s=+(e>=f))&&(a=l[l.length-1],l[l.length-1]=l[l.length-1-s],l[l.length-1-s]=a)}else{var h=Math.abs(e-+this._x.call(null,d.data));h<t&&(t=h,u=e-h,c=e+h,n=d.data)}return n},c.remove=function(e){if(isNaN(o=+this._x.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l=this._root,d=this._x0,f=this._x1;if(!l)return this;if(l.length)for(;;){if((s=o>=(a=(d+f)/2))?d=a:f=a,t=l,!(l=l[u=+s]))return this;if(!l.length)break;t[u+1&1]&&(n=t,c=u)}for(;l.data!==e;)if(r=l,!(l=l.next))return this;return(i=l.next)&&delete l.next,r?(i?r.next=i:delete r.next,this):t?(i?t[u]=i:delete t[u],(l=t[0]||t[1])&&l===(t[1]||t[0])&&!l.length&&(n?n[c]=l:this._root=l),this):(this._root=i,this)},c.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},c.root=function(){return this._root},c.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},c.visit=function(e){var t,n,r,o,a=[],s=this._root;for(s&&a.push(new i(s,this._x0,this._x1));t=a.pop();)if(!e(s=t.node,r=t.x0,o=t.x1)&&s.length){var u=(r+o)/2;(n=s[1])&&a.push(new i(n,u,o)),(n=s[0])&&a.push(new i(n,r,u))}return this},c.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._x1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.x1,c=(s+u)/2;(a=o[0])&&n.push(new i(a,s,c)),(a=o[1])&&n.push(new i(a,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.x1);return this},c.x=function(e){return arguments.length?(this._x=e,this):this._x}},54586:function(e,t){"use strict";var n={value:function(){}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new i(r)}function i(e){this._=e}function o(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function a(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}i.prototype=r.prototype={constructor:i,on:function(e,t){var n,r=this._,i=o(e+"",r),u=-1,c=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u<c;)if(n=(e=i[u]).type)r[n]=s(r[n],e.name,t);else if(null==t)for(n in r)r[n]=s(r[n],e.name,null);return this}for(;++u<c;)if((n=(e=i[u]).type)&&(n=a(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new i(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}},t.Z=r},54625:function(e,t,n){"use strict";function r(e,t,n){var r,i=1;function o(){var o,a,s=r.length,u=0,c=0,l=0;for(o=0;o<s;++o)u+=(a=r[o]).x||0,c+=a.y||0,l+=a.z||0;for(u=(u/s-e)*i,c=(c/s-t)*i,l=(l/s-n)*i,o=0;o<s;++o)a=r[o],u&&(a.x-=u),c&&(a.y-=c),l&&(a.z-=l)}return null==e&&(e=0),null==t&&(t=0),null==n&&(n=0),o.initialize=function(e){r=e},o.x=function(t){return arguments.length?(e=+t,o):e},o.y=function(e){return arguments.length?(t=+e,o):t},o.z=function(e){return arguments.length?(n=+e,o):n},o.strength=function(e){return arguments.length?(i=+e,o):i},o}n.d(t,{Z:function(){return r}})},12282:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},14286:function(e,t,n){"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{Z:function(){return r}})},66252:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(12282),i=n(14286);function o(e){return e.index}function a(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function s(e){var t,n,s,u,c,l,d,f=o,h=function(e){return 1/Math.min(c[e.source.index],c[e.target.index])},p=(0,r.Z)(30),m=1;function g(r){for(var o=0,a=e.length;o<m;++o)for(var s,c,f,h,p,g=0,v=0,y=0,b=0;g<a;++g)c=(s=e[g]).source,v=(f=s.target).x+f.vx-c.x-c.vx||(0,i.Z)(d),u>1&&(y=f.y+f.vy-c.y-c.vy||(0,i.Z)(d)),u>2&&(b=f.z+f.vz-c.z-c.vz||(0,i.Z)(d)),v*=h=((h=Math.sqrt(v*v+y*y+b*b))-n[g])/h*r*t[g],y*=h,b*=h,f.vx-=v*(p=l[g]),u>1&&(f.vy-=y*p),u>2&&(f.vz-=b*p),c.vx+=v*(p=1-p),u>1&&(c.vy+=y*p),u>2&&(c.vz+=b*p)}function v(){if(s){var r,i,o=s.length,u=e.length,d=new Map(s.map((function(e,t){return[f(e,t,s),e]})));for(r=0,c=new Array(o);r<u;++r)(i=e[r]).index=r,"object"!==typeof i.source&&(i.source=a(d,i.source)),"object"!==typeof i.target&&(i.target=a(d,i.target)),c[i.source.index]=(c[i.source.index]||0)+1,c[i.target.index]=(c[i.target.index]||0)+1;for(r=0,l=new Array(u);r<u;++r)i=e[r],l[r]=c[i.source.index]/(c[i.source.index]+c[i.target.index]);t=new Array(u),y(),n=new Array(u),b()}}function y(){if(s)for(var n=0,r=e.length;n<r;++n)t[n]=+h(e[n],n,e)}function b(){if(s)for(var t=0,r=e.length;t<r;++t)n[t]=+p(e[t],t,e)}return null==e&&(e=[]),g.initialize=function(e){s=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d=n.find((function(e){return"function"===typeof e}))||Math.random,u=n.find((function(e){return[1,2,3].includes(e)}))||2,v()},g.links=function(t){return arguments.length?(e=t,v(),g):e},g.id=function(e){return arguments.length?(f=e,g):f},g.iterations=function(e){return arguments.length?(m=+e,g):m},g.strength=function(e){return arguments.length?(h="function"===typeof e?e:(0,r.Z)(+e),y(),g):h},g.distance=function(e){return arguments.length?(p="function"===typeof e?e:(0,r.Z)(+e),b(),g):p},g}},3286:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(65574),i=n(29052),o=n(15145),a=n(12282),s=n(14286),u=n(55061);function c(){var e,t,n,c,l,d,f=(0,a.Z)(-30),h=1,p=1/0,m=.81;function g(a){var s,c=e.length,d=(1===t?(0,r.Z)(e,u.x):2===t?(0,i.Z)(e,u.x,u.y):3===t?(0,o.Z)(e,u.x,u.y,u.z):null).visitAfter(y);for(l=a,s=0;s<c;++s)n=e[s],d.visit(b)}function v(){if(e){var t,n,r=e.length;for(d=new Array(r),t=0;t<r;++t)n=e[t],d[n.index]=+f(n,t,e)}}function y(e){var n,r,i,o,a,s,u=0,c=0,l=e.length;if(l){for(i=o=a=s=0;s<l;++s)(n=e[s])&&(r=Math.abs(n.value))&&(u+=n.value,c+=r,i+=r*(n.x||0),o+=r*(n.y||0),a+=r*(n.z||0));u*=Math.sqrt(4/l),e.x=i/c,t>1&&(e.y=o/c),t>2&&(e.z=a/c)}else{(n=e).x=n.data.x,t>1&&(n.y=n.data.y),t>2&&(n.z=n.data.z);do{u+=d[n.data.index]}while(n=n.next)}e.value=u}function b(e,r,i,o,a){if(!e.value)return!0;var u=[i,o,a][t-1],f=e.x-n.x,g=t>1?e.y-n.y:0,v=t>2?e.z-n.z:0,y=u-r,b=f*f+g*g+v*v;if(y*y/m<b)return b<p&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===g&&(b+=(g=(0,s.Z)(c))*g),t>2&&0===v&&(b+=(v=(0,s.Z)(c))*v),b<h&&(b=Math.sqrt(h*b)),n.vx+=f*e.value*l/b,t>1&&(n.vy+=g*e.value*l/b),t>2&&(n.vz+=v*e.value*l/b)),!0;if(!(e.length||b>=p)){(e.data!==n||e.next)&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===g&&(b+=(g=(0,s.Z)(c))*g),t>2&&0===v&&(b+=(v=(0,s.Z)(c))*v),b<h&&(b=Math.sqrt(h*b)));do{e.data!==n&&(y=d[e.data.index]*l/b,n.vx+=f*y,t>1&&(n.vy+=g*y),t>2&&(n.vz+=v*y))}while(e=e.next)}}return g.initialize=function(n){e=n;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];c=i.find((function(e){return"function"===typeof e}))||Math.random,t=i.find((function(e){return[1,2,3].includes(e)}))||2,v()},g.strength=function(e){return arguments.length?(f="function"===typeof e?e:(0,a.Z)(+e),v(),g):f},g.distanceMin=function(e){return arguments.length?(h=e*e,g):Math.sqrt(h)},g.distanceMax=function(e){return arguments.length?(p=e*e,g):Math.sqrt(p)},g.theta=function(e){return arguments.length?(m=e*e,g):Math.sqrt(m)},g}},77729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12282);function i(e,t,n,i){var o,a,s,u,c=(0,r.Z)(.1);function l(e){for(var r=0,c=o.length;r<c;++r){var l=o[r],d=l.x-t||1e-6,f=(l.y||0)-n||1e-6,h=(l.z||0)-i||1e-6,p=Math.sqrt(d*d+f*f+h*h),m=(u[r]-p)*s[r]*e/p;l.vx+=d*m,a>1&&(l.vy+=f*m),a>2&&(l.vz+=h*m)}}function d(){if(o){var t,n=o.length;for(s=new Array(n),u=new Array(n),t=0;t<n;++t)u[t]=+e(o[t],t,o),s[t]=isNaN(u[t])?0:+c(o[t],t,o)}}return"function"!==typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==n&&(n=0),null==i&&(i=0),l.initialize=function(e){o=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a=n.find((function(e){return[1,2,3].includes(e)}))||2,d()},l.strength=function(e){return arguments.length?(c="function"===typeof e?e:(0,r.Z)(+e),d(),l):c},l.radius=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l.z=function(e){return arguments.length?(i=+e,l):i},l}},55061:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},x:function(){return a},y:function(){return s},z:function(){return u}});var r=n(54586),i=n(50867),o=4294967296;function a(e){return e.x}function s(e){return e.y}function u(e){return e.z}var c=Math.PI*(3-Math.sqrt(5)),l=20*Math.PI/(9+Math.sqrt(221));function d(e,t){t=t||2;var n,a=Math.min(3,Math.max(1,Math.round(t))),s=1,u=.001,d=1-Math.pow(u,1/300),f=0,h=.6,p=new Map,m=(0,i.HT)(y),g=(0,r.Z)("tick","end"),v=function(){var e=1;return function(){return(e=(1664525*e+1013904223)%o)/o}}();function y(){b(),g.call("tick",n),s<u&&(m.stop(),g.call("end",n))}function b(t){var r,i,o=e.length;void 0===t&&(t=1);for(var u=0;u<t;++u)for(s+=(f-s)*d,p.forEach((function(e){e(s)})),r=0;r<o;++r)null==(i=e[r]).fx?i.x+=i.vx*=h:(i.x=i.fx,i.vx=0),a>1&&(null==i.fy?i.y+=i.vy*=h:(i.y=i.fy,i.vy=0)),a>2&&(null==i.fz?i.z+=i.vz*=h:(i.z=i.fz,i.vz=0));return n}function E(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),null!=t.fz&&(t.z=t.fz),isNaN(t.x)||a>1&&isNaN(t.y)||a>2&&isNaN(t.z)){var i=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),o=n*c,s=n*l;1===a?t.x=i:2===a?(t.x=i*Math.cos(o),t.y=i*Math.sin(o)):(t.x=i*Math.sin(o)*Math.cos(s),t.y=i*Math.cos(o),t.z=i*Math.sin(o)*Math.sin(s))}(isNaN(t.vx)||a>1&&isNaN(t.vy)||a>2&&isNaN(t.vz))&&(t.vx=0,a>1&&(t.vy=0),a>2&&(t.vz=0))}}function T(t){return t.initialize&&t.initialize(e,v,a),t}return null==e&&(e=[]),E(),n={tick:b,restart:function(){return m.restart(y),n},stop:function(){return m.stop(),n},numDimensions:function(e){return arguments.length?(a=Math.min(3,Math.max(1,Math.round(e))),p.forEach(T),n):a},nodes:function(t){return arguments.length?(e=t,E(),p.forEach(T),n):e},alpha:function(e){return arguments.length?(s=+e,n):s},alphaMin:function(e){return arguments.length?(u=+e,n):u},alphaDecay:function(e){return arguments.length?(d=+e,n):+d},alphaTarget:function(e){return arguments.length?(f=+e,n):f},velocityDecay:function(e){return arguments.length?(h=1-e,n):1-h},randomSource:function(e){return arguments.length?(v=e,p.forEach(T),n):v},force:function(e,t){return arguments.length>1?(null==t?p.delete(e):p.set(e,T(t)),n):p.get(e)},find:function(){var t,n,r,i,o,s,u=Array.prototype.slice.call(arguments),c=u.shift()||0,l=(a>1?u.shift():null)||0,d=(a>2?u.shift():null)||0,f=u.shift()||1/0,h=0,p=e.length;for(f*=f,h=0;h<p;++h)(i=(t=c-(o=e[h]).x)*t+(n=l-(o.y||0))*n+(r=d-(o.z||0))*r)<f&&(s=o,f=i);return s},on:function(e,t){return arguments.length>1?(g.on(e,t),n):g.on(e)}}}},15145:function(e,t,n){"use strict";function r(e,t,n,r,i){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var o,a,s,u,c,l,d,f,h,p,m,g,v=e._root,y={data:i},b=e._x0,E=e._y0,T=e._z0,x=e._x1,_=e._y1,w=e._z1;if(!v)return e._root=y,e;for(;v.length;)if((f=t>=(a=(b+x)/2))?b=a:x=a,(h=n>=(s=(E+_)/2))?E=s:_=s,(p=r>=(u=(T+w)/2))?T=u:w=u,o=v,!(v=v[m=p<<2|h<<1|f]))return o[m]=y,e;if(c=+e._x.call(null,v.data),l=+e._y.call(null,v.data),d=+e._z.call(null,v.data),t===c&&n===l&&r===d)return y.next=v,o?o[m]=y:e._root=y,e;do{o=o?o[m]=new Array(8):e._root=new Array(8),(f=t>=(a=(b+x)/2))?b=a:x=a,(h=n>=(s=(E+_)/2))?E=s:_=s,(p=r>=(u=(T+w)/2))?T=u:w=u}while((m=p<<2|h<<1|f)===(g=(d>=u)<<2|(l>=s)<<1|c>=a));return o[g]=v,o[m]=y,e}function i(e,t,n,r,i,o,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}function o(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function u(e,t,n,r){var i=new c(null==t?o:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function c(e,t,n,r,i,o,a,s,u){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=s,this._z1=u,this._root=void 0}function l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return u}});var d=u.prototype=c.prototype;d.copy=function(){var e,t,n=new c(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=l(r),n;for(e=[{source:r,target:n._root=new Array(8)}];r=e.pop();)for(var i=0;i<8;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(8)}):r.target[i]=l(t));return n},d.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),i=+this._z.call(null,e);return r(this.cover(t,n,i),t,n,i,e)},d.addAll=function(e){var t,n,i,o,a,s=e.length,u=new Array(s),c=new Array(s),l=new Array(s),d=1/0,f=1/0,h=1/0,p=-1/0,m=-1/0,g=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||isNaN(a=+this._z.call(null,t))||(u[n]=i,c[n]=o,l[n]=a,i<d&&(d=i),i>p&&(p=i),o<f&&(f=o),o>m&&(m=o),a<h&&(h=a),a>g&&(g=a));if(d>p||f>m||h>g)return this;for(this.cover(d,f,h).cover(p,m,g),n=0;n<s;++n)r(this,u[n],c[n],l[n],e[n]);return this},d.cover=function(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,s=this._y1,u=this._z1;if(isNaN(r))a=(r=Math.floor(e))+1,s=(i=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var c,l,d=a-r||1,f=this._root;r>e||e>=a||i>t||t>=s||o>n||n>=u;)switch(l=(n<o)<<2|(t<i)<<1|e<r,(c=new Array(8))[l]=f,f=c,d*=2,l){case 0:a=r+d,s=i+d,u=o+d;break;case 1:r=a-d,s=i+d,u=o+d;break;case 2:a=r+d,i=s-d,u=o+d;break;case 3:r=a-d,i=s-d,u=o+d;break;case 4:a=r+d,s=i+d,o=u-d;break;case 5:r=a-d,s=i+d,o=u-d;break;case 6:a=r+d,i=s-d,o=u-d;break;case 7:r=a-d,i=s-d,o=u-d}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=s,this._z1=u,this},d.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},d.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},d.find=function(e,t,n,r){var o,a,s,u,c,l,d,f,h,p=this._x0,m=this._y0,g=this._z0,v=this._x1,y=this._y1,b=this._z1,E=[],T=this._root;for(T&&E.push(new i(T,p,m,g,v,y,b)),null==r?r=1/0:(p=e-r,m=t-r,g=n-r,v=e+r,y=t+r,b=n+r,r*=r);f=E.pop();)if(!(!(T=f.node)||(a=f.x0)>v||(s=f.y0)>y||(u=f.z0)>b||(c=f.x1)<p||(l=f.y1)<m||(d=f.z1)<g))if(T.length){var x=(a+c)/2,_=(s+l)/2,w=(u+d)/2;E.push(new i(T[7],x,_,w,c,l,d),new i(T[6],a,_,w,x,l,d),new i(T[5],x,s,w,c,_,d),new i(T[4],a,s,w,x,_,d),new i(T[3],x,_,u,c,l,w),new i(T[2],a,_,u,x,l,w),new i(T[1],x,s,u,c,_,w),new i(T[0],a,s,u,x,_,w)),(h=(n>=w)<<2|(t>=_)<<1|e>=x)&&(f=E[E.length-1],E[E.length-1]=E[E.length-1-h],E[E.length-1-h]=f)}else{var k=e-+this._x.call(null,T.data),C=t-+this._y.call(null,T.data),A=n-+this._z.call(null,T.data),S=k*k+C*C+A*A;if(S<r){var O=Math.sqrt(r=S);p=e-O,m=t-O,g=n-O,v=e+O,y=t+O,b=n+O,o=T.data}}return o},d.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e))||isNaN(s=+this._z.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l,d,f,h,p,m,g=this._root,v=this._x0,y=this._y0,b=this._z0,E=this._x1,T=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((d=o>=(u=(v+E)/2))?v=u:E=u,(f=a>=(c=(y+T)/2))?y=c:T=c,(h=s>=(l=(b+x)/2))?b=l:x=l,t=g,!(g=g[p=h<<2|f<<1|d]))return this;if(!g.length)break;(t[p+1&7]||t[p+2&7]||t[p+3&7]||t[p+4&7]||t[p+5&7]||t[p+6&7]||t[p+7&7])&&(n=t,m=p)}for(;g.data!==e;)if(r=g,!(g=g.next))return this;return(i=g.next)&&delete g.next,r?(i?r.next=i:delete r.next,this):t?(i?t[p]=i:delete t[p],(g=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&g===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!g.length&&(n?n[m]=g:this._root=g),this):(this._root=i,this)},d.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},d.root=function(){return this._root},d.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},d.visit=function(e){var t,n,r,o,a,s,u,c,l=[],d=this._root;for(d&&l.push(new i(d,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=l.pop();)if(!e(d=t.node,r=t.x0,o=t.y0,a=t.z0,s=t.x1,u=t.y1,c=t.z1)&&d.length){var f=(r+s)/2,h=(o+u)/2,p=(a+c)/2;(n=d[7])&&l.push(new i(n,f,h,p,s,u,c)),(n=d[6])&&l.push(new i(n,r,h,p,f,u,c)),(n=d[5])&&l.push(new i(n,f,o,p,s,h,c)),(n=d[4])&&l.push(new i(n,r,o,p,f,h,c)),(n=d[3])&&l.push(new i(n,f,h,a,s,u,p)),(n=d[2])&&l.push(new i(n,r,h,a,f,u,p)),(n=d[1])&&l.push(new i(n,f,o,a,s,h,p)),(n=d[0])&&l.push(new i(n,r,o,a,f,h,p))}return this},d.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.z0,l=t.x1,d=t.y1,f=t.z1,h=(s+l)/2,p=(u+d)/2,m=(c+f)/2;(a=o[0])&&n.push(new i(a,s,u,c,h,p,m)),(a=o[1])&&n.push(new i(a,h,u,c,l,p,m)),(a=o[2])&&n.push(new i(a,s,p,c,h,d,m)),(a=o[3])&&n.push(new i(a,h,p,c,l,d,m)),(a=o[4])&&n.push(new i(a,s,u,m,h,p,f)),(a=o[5])&&n.push(new i(a,h,u,m,l,p,f)),(a=o[6])&&n.push(new i(a,s,p,m,h,d,f)),(a=o[7])&&n.push(new i(a,h,p,m,l,d,f))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.z0,t.x1,t.y1,t.z1);return this},d.x=function(e){return arguments.length?(this._x=e,this):this._x},d.y=function(e){return arguments.length?(this._y=e,this):this._y},d.z=function(e){return arguments.length?(this._z=e,this):this._z}},29052:function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,c,l,d,f,h=e._root,p={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!h)return e._root=p,e;for(;h.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a,i=h,!(h=h[d=l<<1|c]))return i[d]=p,e;if(s=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===s&&n===u)return p.next=h,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(l=n>=(a=(g+y)/2))?g=a:y=a}while((d=l<<1|c)===(f=(u>=a)<<1|s>=o));return i[f]=h,i[d]=p,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function o(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new u(null==t?o:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function u(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return s}});var l=s.prototype=u.prototype;l.copy=function(){var e,t,n=new u(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=c(t));return n},l.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},l.addAll=function(e){var t,n,i,o,a=e.length,s=new Array(a),u=new Array(a),c=1/0,l=1/0,d=-1/0,f=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,u[n]=o,i<c&&(c=i),i>d&&(d=i),o<l&&(l=o),o>f&&(f=o));if(c>d||l>f)return this;for(this.cover(c,l).cover(d,f),n=0;n<a;++n)r(this,s[n],u[n],e[n]);return this},l.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a,s,u=i-n||1,c=this._root;n>e||e>=i||r>t||t>=o;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},l.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},l.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(e,t,n){var r,o,a,s,u,c,l,d=this._x0,f=this._y0,h=this._x1,p=this._y1,m=[],g=this._root;for(g&&m.push(new i(g,d,f,h,p)),null==n?n=1/0:(d=e-n,f=t-n,h=e+n,p=t+n,n*=n);c=m.pop();)if(!(!(g=c.node)||(o=c.x0)>h||(a=c.y0)>p||(s=c.x1)<d||(u=c.y1)<f))if(g.length){var v=(o+s)/2,y=(a+u)/2;m.push(new i(g[3],v,y,s,u),new i(g[2],o,y,v,u),new i(g[1],v,a,s,y),new i(g[0],o,a,v,y)),(l=(t>=y)<<1|e>=v)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=c)}else{var b=e-+this._x.call(null,g.data),E=t-+this._y.call(null,g.data),T=b*b+E*E;if(T<n){var x=Math.sqrt(n=T);d=e-x,f=t-x,h=e+x,p=t+x,r=g.data}}return r},l.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l,d,f,h=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!h)return this;if(h.length)for(;;){if((c=o>=(s=(p+g)/2))?p=s:g=s,(l=a>=(u=(m+v)/2))?m=u:v=u,t=h,!(h=h[d=l<<1|c]))return this;if(!h.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[f]=h:this._root=h),this):(this._root=i,this)},l.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},l.root=function(){return this._root},l.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},l.visit=function(e){var t,n,r,o,a,s,u=[],c=this._root;for(c&&u.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=u.pop();)if(!e(c=t.node,r=t.x0,o=t.y0,a=t.x1,s=t.y1)&&c.length){var l=(r+a)/2,d=(o+s)/2;(n=c[3])&&u.push(new i(n,l,d,a,s)),(n=c[2])&&u.push(new i(n,r,d,l,s)),(n=c[1])&&u.push(new i(n,l,o,a,d)),(n=c[0])&&u.push(new i(n,r,o,l,d))}return this},l.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var a,s=t.x0,u=t.y0,c=t.x1,l=t.y1,d=(s+c)/2,f=(u+l)/2;(a=o[0])&&n.push(new i(a,s,u,d,f)),(a=o[1])&&n.push(new i(a,d,u,c,f)),(a=o[2])&&n.push(new i(a,s,f,d,l)),(a=o[3])&&n.push(new i(a,d,f,c,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},l.x=function(e){return arguments.length?(this._x=e,this):this._x},l.y=function(e){return arguments.length?(this._y=e,this):this._y}},59735:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},93704:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});class r extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(o(this,e),t)}delete(e){return super.delete(a(this,e))}}Set;function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function o({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function s(e){return null!==e&&"object"===typeof e?e.valueOf():e}function u(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function c(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=Symbol("implicit");function f(){var e=new r,t=[],n=[],i=d;function o(r){var o=e.get(r);if(void 0===o){if(i!==d)return i;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;var i,a=c(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.has(s)||e.set(s,t.push(s)-1)}}catch(u){a.e(u)}finally{a.f()}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return f(t,n).unknown(i)},u.apply(o,arguments),o}},50867:function(e,t,n){"use strict";n.d(t,{zO:function(){return h},B7:function(){return m},HT:function(){return g}});var r,i,o=0,a=0,s=0,u=0,c=0,l=0,d="object"===typeof performance&&performance.now?performance:Date,f=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function h(){return c||(f(p),c=d.now()+l)}function p(){c=0}function m(){this._call=this._time=this._next=null}function g(e,t,n){var r=new m;return r.restart(e,t,n),r}function v(){c=(u=d.now())+l,o=a=0;try{!function(){h(),++o;for(var e,t=r;t;)(e=c-t._time)>=0&&t._call.call(void 0,e),t=t._next;--o}()}finally{o=0,function(){var e,t,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,b(o)}(),c=0}}function y(){var e=d.now(),t=e-u;t>1e3&&(l-=t,u=e)}function b(e){o||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(v,e-d.now()-l)),s&&(s=clearInterval(s))):(s||(u=d.now(),s=setInterval(y,1e3)),o=1,f(v)))}m.prototype=g.prototype={constructor:m,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?h():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},85062:function(){},5809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0;t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60}},9008:function(e,t,n){e.exports=n(70639)},25675:function(e,t,n){e.exports=n(39917)},84245:function(e){e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject");for(var t=["on","fire","off"],n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw new Error("Subject cannot be eventified, since it already has property '"+t[n]+"'")}(e);var t=function(e){var t=Object.create(null);return{on:function(n,r,i){if("function"!==typeof r)throw new Error("callback is expected to be a function");var o=t[n];return o||(o=t[n]=[]),o.push({callback:r,ctx:i}),e},off:function(n,r){if("undefined"===typeof n)return t=Object.create(null),e;if(t[n])if("function"!==typeof r)delete t[n];else for(var i=t[n],o=0;o<i.length;++o)i[o].callback===r&&i.splice(o,1);return e},fire:function(n){var r,i=t[n];if(!i)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var o=0;o<i.length;++o){var a=i[o];a.callback.apply(a.ctx,r)}return e}}}(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}},16505:function(e,t,n){e.exports=function(e,t){if(!e)throw new Error("Graph structure cannot be undefined");var o=(t&&t.createSimulator||n(45818))(t);if(Array.isArray(t))throw new Error("Physics settings is expected to be an object");var a=e.version>19?function(t){var n=e.getLinks(t);return n?1+n.size/3:1}:function(t){var n=e.getLinks(t);return n?1+n.length/3:1};t&&"function"===typeof t.nodeMass&&(a=t.nodeMass);var s=new Map,u={},c=0,l=o.settings.springTransform||i;c=0,e.forEachNode((function(e){g(e.id),c+=1})),e.forEachLink(y),e.on("changed",m);var d=!1,f={step:function(){if(0===c)return h(!0),!0;var e=o.step();f.lastMove=e,f.fire("step");var t=e/c<=.01;return h(t),t},getNodePosition:function(e){return T(e).pos},setNodePosition:function(e){var t=T(e);t.setPosition.apply(t,Array.prototype.slice.call(arguments,1))},getLinkPosition:function(e){var t=u[e];if(t)return{from:t.from.pos,to:t.to.pos}},getGraphRect:function(){return o.getBBox()},forEachBody:p,pinNode:function(e,t){T(e.id).isPinned=!!t},isNodePinned:function(e){return T(e.id).isPinned},dispose:function(){e.off("changed",m),f.fire("disposed")},getBody:function(e){return s.get(e)},getSpring:function(t,n){var r;if(void 0===n)r="object"!==typeof t?t:t.id;else{var i=e.hasLink(t,n);if(!i)return;r=i.id}return u[r]},getForceVectorLength:function(){var e=0,t=0;return p((function(n){e+=Math.abs(n.force.x),t+=Math.abs(n.force.y)})),Math.sqrt(e*e+t*t)},simulator:o,graph:e,lastMove:0};return r(f),f;function h(e){var t;d!==e&&(d=e,t=e,f.fire("stable",t))}function p(e){s.forEach(e)}function m(t){for(var n=0;n<t.length;++n){var r=t[n];"add"===r.changeType?(r.node&&g(r.node.id),r.link&&y(r.link)):"remove"===r.changeType&&(r.node&&v(r.node),r.link&&b(r.link))}c=e.getNodesCount()}function g(t){var n=s.get(t);if(!n){var r=e.getNode(t);if(!r)throw new Error("initBody() was called with unknown node id");var i=r.position;if(!i){var a=function(e){var t=[];if(!e.links)return t;for(var n=Math.min(e.links.length,2),r=0;r<n;++r){var i=e.links[r],o=i.fromId!==e.id?s.get(i.fromId):s.get(i.toId);o&&o.pos&&t.push(o)}return t}(r);i=o.getBestNewBodyPosition(a)}(n=o.addBodyAt(i)).id=t,s.set(t,n),E(t),function(e){return e&&(e.isPinned||e.data&&e.data.isPinned)}(r)&&(n.isPinned=!0)}}function v(e){var t=e.id,n=s.get(t);n&&(s.delete(t),o.removeBody(n))}function y(e){E(e.fromId),E(e.toId);var t=s.get(e.fromId),n=s.get(e.toId),r=o.addSpring(t,n,e.length);l(e,r),u[e.id]=r}function b(t){var n=u[t.id];if(n){var r=e.getNode(t.fromId),i=e.getNode(t.toId);r&&E(r.id),i&&E(i.id),delete u[t.id],o.removeSpring(n)}}function E(e){var t=s.get(e);if(t.mass=a(e),Number.isNaN(t.mass))throw new Error("Node mass should be a number")}function T(e){var t=s.get(e);return t||(g(e),t=s.get(e)),t}},e.exports.simulator=n(45818);var r=n(84245);function i(){}},15189:function(e,t,n){const r=n(16422);e.exports=function(e){return function(t,n){let i=n&&n.indent||0,o=n&&void 0!==n.join?n.join:"\n",a=Array(i+1).join(" "),s=[];for(let u=0;u<e;++u){let e=r(u),n=0===u?"":a;s.push(n+t.replace(/{var}/g,e))}return s.join(o)}}},30891:function(e,t,n){e.exports=function(e){let t=i(e);return new Function("bodies","settings","random",t)},e.exports.generateFunctionBody=i;const r=n(15189);function i(e){let t=r(e);return`\n var boundingBox = {\n ${t("min_{var}: 0, max_{var}: 0,",{indent:4})}\n };\n\n return {\n box: boundingBox,\n\n update: updateBoundingBox,\n\n reset: resetBoundingBox,\n\n getBestNewPosition: function (neighbors) {\n var ${t("base_{var} = 0",{join:", "})};\n\n if (neighbors.length) {\n for (var i = 0; i < neighbors.length; ++i) {\n let neighborPos = neighbors[i].pos;\n ${t("base_{var} += neighborPos.{var};",{indent:10})}\n }\n\n ${t("base_{var} /= neighbors.length;",{indent:8})}\n } else {\n ${t("base_{var} = (boundingBox.min_{var} + boundingBox.max_{var}) / 2;",{indent:8})}\n }\n\n var springLength = settings.springLength;\n return {\n ${t("{var}: base_{var} + (random.nextDouble() - 0.5) * springLength,",{indent:8})}\n };\n }\n };\n\n function updateBoundingBox() {\n var i = bodies.length;\n if (i === 0) return; // No bodies - no borders.\n\n ${t("var max_{var} = -Infinity;",{indent:4})}\n ${t("var min_{var} = Infinity;",{indent:4})}\n\n while(i--) {\n // this is O(n), it could be done faster with quadtree, if we check the root node bounds\n var bodyPos = bodies[i].pos;\n ${t("if (bodyPos.{var} < min_{var}) min_{var} = bodyPos.{var};",{indent:6})}\n ${t("if (bodyPos.{var} > max_{var}) max_{var} = bodyPos.{var};",{indent:6})}\n }\n\n ${t("boundingBox.min_{var} = min_{var};",{indent:4})}\n ${t("boundingBox.max_{var} = max_{var};",{indent:4})}\n }\n\n function resetBoundingBox() {\n ${t("boundingBox.min_{var} = boundingBox.max_{var} = 0;",{indent:4})}\n }\n`}},6410:function(e,t,n){const r=n(15189);function i(e,t){return`\n${a(e,t)}\n${o(e)}\nreturn {Body: Body, Vector: Vector};\n`}function o(e){let t=r(e),n=t("{var}",{join:", "});return`\nfunction Body(${n}) {\n this.isPinned = false;\n this.pos = new Vector(${n});\n this.force = new Vector();\n this.velocity = new Vector();\n this.mass = 1;\n\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.reset = function() {\n this.force.reset();\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.setPosition = function (${n}) {\n ${t("this.pos.{var} = {var} || 0;",{indent:2})}\n};`}function a(e,t){let n=r(e),i="";return t&&(i=`${n("\n var v{var};\nObject.defineProperty(this, '{var}', {\n set: function(v) { \n if (!Number.isFinite(v)) throw new Error('Cannot set non-numbers to {var}');\n v{var} = v; \n },\n get: function() { return v{var}; }\n});")}`),`function Vector(${n("{var}",{join:", "})}) {\n ${i}\n if (typeof arguments[0] === 'object') {\n // could be another vector\n let v = arguments[0];\n ${n('if (!Number.isFinite(v.{var})) throw new Error("Expected value is not a finite number at Vector constructor ({var})");',{indent:4})}\n ${n("this.{var} = v.{var};",{indent:4})}\n } else {\n ${n('this.{var} = typeof {var} === "number" ? {var} : 0;',{indent:4})}\n }\n }\n \n Vector.prototype.reset = function () {\n ${n("this.{var} = ",{join:""})}0;\n };`}e.exports=function(e,t){let n=i(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=i,e.exports.getVectorCode=a,e.exports.getBodyCode=o},36647:function(e,t,n){const r=n(15189);function i(e){return`\n if (!Number.isFinite(options.dragCoefficient)) throw new Error('dragCoefficient is not a finite number');\n\n return {\n update: function(body) {\n ${r(e)("body.force.{var} -= options.dragCoefficient * body.velocity.{var};",{indent:6})}\n }\n };\n`}e.exports=function(e){let t=i(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=i},34079:function(e,t,n){const r=n(15189);function i(e){let t=r(e);return`\n if (!Number.isFinite(options.springCoefficient)) throw new Error('Spring coefficient is not a number');\n if (!Number.isFinite(options.springLength)) throw new Error('Spring length is not a number');\n\n return {\n /**\n * Updates forces acting on a spring\n */\n update: function (spring) {\n var body1 = spring.from;\n var body2 = spring.to;\n var length = spring.length < 0 ? options.springLength : spring.length;\n ${t("var d{var} = body2.pos.{var} - body1.pos.{var};",{indent:6})}\n var r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n if (r === 0) {\n ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:8})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n }\n\n var d = r - length;\n var coefficient = ((spring.coefficient > 0) ? spring.coefficient : options.springCoefficient) * d / r;\n\n ${t("body1.force.{var} += coefficient * d{var}",{indent:6})};\n body1.springCount += 1;\n body1.springLength += r;\n\n ${t("body2.force.{var} -= coefficient * d{var}",{indent:6})};\n body2.springCount += 1;\n body2.springLength += r;\n }\n };\n`}e.exports=function(e){let t=i(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=i},51763:function(e,t,n){const r=n(15189);function i(e){let t=r(e);return`\n var length = bodies.length;\n if (length === 0) return 0;\n\n ${t("var d{var} = 0, t{var} = 0;",{indent:2})}\n\n for (var i = 0; i < length; ++i) {\n var body = bodies[i];\n if (body.isPinned) continue;\n\n if (adaptiveTimeStepWeight && body.springCount) {\n timeStep = (adaptiveTimeStepWeight * body.springLength/body.springCount);\n }\n\n var coeff = timeStep / body.mass;\n\n ${t("body.velocity.{var} += coeff * body.force.{var};",{indent:4})}\n ${t("var v{var} = body.velocity.{var};",{indent:4})}\n var v = Math.sqrt(${t("v{var} * v{var}",{join:" + "})});\n\n if (v > 1) {\n // We normalize it so that we move within timeStep range. \n // for the case when v <= 1 - we let velocity to fade out.\n ${t("body.velocity.{var} = v{var} / v;",{indent:6})}\n }\n\n ${t("d{var} = timeStep * body.velocity.{var};",{indent:4})}\n\n ${t("body.pos.{var} += d{var};",{indent:4})}\n\n ${t("t{var} += Math.abs(d{var});",{indent:4})}\n }\n\n return (${t("t{var} * t{var}",{join:" + "})})/length;\n`}e.exports=function(e){let t=i(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=i},1584:function(e,t,n){const r=n(15189),i=n(16422);function o(e){let t=r(e),n=Math.pow(2,e);return`\n${l()}\n${c(e)}\n${a(e)}\n${u(e)}\n${s(e)}\n\nfunction createQuadTree(options, random) {\n options = options || {};\n options.gravity = typeof options.gravity === 'number' ? options.gravity : -1;\n options.theta = typeof options.theta === 'number' ? options.theta : 0.8;\n\n var gravity = options.gravity;\n var updateQueue = [];\n var insertStack = new InsertStack();\n var theta = options.theta;\n\n var nodesCache = [];\n var currentInCache = 0;\n var root = newNode();\n\n return {\n insertBodies: insertBodies,\n\n /**\n * Gets root node if it is present\n */\n getRoot: function() {\n return root;\n },\n\n updateBodyForce: update,\n\n options: function(newOptions) {\n if (newOptions) {\n if (typeof newOptions.gravity === 'number') {\n gravity = newOptions.gravity;\n }\n if (typeof newOptions.theta === 'number') {\n theta = newOptions.theta;\n }\n\n return this;\n }\n\n return {\n gravity: gravity,\n theta: theta\n };\n }\n };\n\n function newNode() {\n // To avoid pressure on GC we reuse nodes.\n var node = nodesCache[currentInCache];\n if (node) {\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}(" node.")}\n node.body = null;\n node.mass = ${t("node.mass_{var} = ",{join:""})}0;\n ${t("node.min_{var} = node.max_{var} = ",{join:""})}0;\n } else {\n node = new QuadNode();\n nodesCache[currentInCache] = node;\n }\n\n ++currentInCache;\n return node;\n }\n\n function update(sourceBody) {\n var queue = updateQueue;\n var v;\n ${t("var d{var};",{indent:4})}\n var r; \n ${t("var f{var} = 0;",{indent:4})}\n var queueLength = 1;\n var shiftIdx = 0;\n var pushIdx = 1;\n\n queue[0] = root;\n\n while (queueLength) {\n var node = queue[shiftIdx];\n var body = node.body;\n\n queueLength -= 1;\n shiftIdx += 1;\n var differentBody = (body !== sourceBody);\n if (body && differentBody) {\n // If the current node is a leaf node (and it is not source body),\n // calculate the force exerted by the current node on body, and add this\n // amount to body's net force.\n ${t("d{var} = body.pos.{var} - sourceBody.pos.{var};",{indent:8})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n if (r === 0) {\n // Poor man's protection against zero distance.\n ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n }\n\n // This is standard gravitation force calculation but we divide\n // by r^3 to save two operations when normalizing force vector.\n v = gravity * body.mass * sourceBody.mass / (r * r * r);\n ${t("f{var} += v * d{var};",{indent:8})}\n } else if (differentBody) {\n // Otherwise, calculate the ratio s / r, where s is the width of the region\n // represented by the internal node, and r is the distance between the body\n // and the node's center-of-mass\n ${t("d{var} = node.mass_{var} / node.mass - sourceBody.pos.{var};",{indent:8})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n if (r === 0) {\n // Sorry about code duplication. I don't want to create many functions\n // right away. Just want to see performance first.\n ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n }\n // If s / r < \u03b8, treat this internal node as a single body, and calculate the\n // force it exerts on sourceBody, and add this amount to sourceBody's net force.\n if ((node.max_${i(0)} - node.min_${i(0)}) / r < theta) {\n // in the if statement above we consider node's width only\n // because the region was made into square during tree creation.\n // Thus there is no difference between using width or height.\n v = gravity * node.mass * sourceBody.mass / (r * r * r);\n ${t("f{var} += v * d{var};",{indent:10})}\n } else {\n // Otherwise, run the procedure recursively on each of the current node's children.\n\n // I intentionally unfolded this loop, to save several CPU cycles.\n${function(){let e=Array(11).join(" "),t=[];for(let r=0;r<n;++r)t.push(e+`if (node.quad${r}) {`),t.push(e+` queue[pushIdx] = node.quad${r};`),t.push(e+" queueLength += 1;"),t.push(e+" pushIdx += 1;"),t.push(e+"}");return t.join("\n")}()}\n }\n }\n }\n\n ${t("sourceBody.force.{var} += f{var};",{indent:4})}\n }\n\n function insertBodies(bodies) {\n ${t("var {var}min = Number.MAX_VALUE;",{indent:4})}\n ${t("var {var}max = Number.MIN_VALUE;",{indent:4})}\n var i = bodies.length;\n\n // To reduce quad tree depth we are looking for exact bounding box of all particles.\n while (i--) {\n var pos = bodies[i].pos;\n ${t("if (pos.{var} < {var}min) {var}min = pos.{var};",{indent:6})}\n ${t("if (pos.{var} > {var}max) {var}max = pos.{var};",{indent:6})}\n }\n\n // Makes the bounds square.\n var maxSideLength = -Infinity;\n ${t("if ({var}max - {var}min > maxSideLength) maxSideLength = {var}max - {var}min ;",{indent:4})}\n\n currentInCache = 0;\n root = newNode();\n ${t("root.min_{var} = {var}min;",{indent:4})}\n ${t("root.max_{var} = {var}min + maxSideLength;",{indent:4})}\n\n i = bodies.length - 1;\n if (i >= 0) {\n root.body = bodies[i];\n }\n while (i--) {\n insert(bodies[i], root);\n }\n }\n\n function insert(newBody) {\n insertStack.reset();\n insertStack.push(root, newBody);\n\n while (!insertStack.isEmpty()) {\n var stackItem = insertStack.pop();\n var node = stackItem.node;\n var body = stackItem.body;\n\n if (!node.body) {\n // This is internal node. Update the total mass of the node and center-of-mass.\n ${t("var {var} = body.pos.{var};",{indent:8})}\n node.mass += body.mass;\n ${t("node.mass_{var} += body.mass * {var};",{indent:8})}\n\n // Recursively insert the body in the appropriate quadrant.\n // But first find the appropriate quadrant.\n var quadIdx = 0; // Assume we are in the 0's quad.\n ${t("var min_{var} = node.min_{var};",{indent:8})}\n ${t("var max_{var} = (min_{var} + node.max_{var}) / 2;",{indent:8})}\n\n${function(t){let n=[],r=Array(t+1).join(" ");for(let o=0;o<e;++o)n.push(r+`if (${i(o)} > max_${i(o)}) {`),n.push(r+` quadIdx = quadIdx + ${Math.pow(2,o)};`),n.push(r+` min_${i(o)} = max_${i(o)};`),n.push(r+` max_${i(o)} = node.max_${i(o)};`),n.push(r+"}");return n.join("\n")}(8)}\n\n var child = getChild(node, quadIdx);\n\n if (!child) {\n // The node is internal but this quadrant is not taken. Add\n // subnode to it.\n child = newNode();\n ${t("child.min_{var} = min_{var};",{indent:10})}\n ${t("child.max_{var} = max_{var};",{indent:10})}\n child.body = body;\n\n setChild(node, quadIdx, child);\n } else {\n // continue searching in this quadrant.\n insertStack.push(child, body);\n }\n } else {\n // We are trying to add to the leaf node.\n // We have to convert current leaf into internal node\n // and continue adding two nodes.\n var oldBody = node.body;\n node.body = null; // internal nodes do not cary bodies\n\n if (isSamePosition(oldBody.pos, body.pos)) {\n // Prevent infinite subdivision by bumping one node\n // anywhere in this quadrant\n var retriesCount = 3;\n do {\n var offset = random.nextDouble();\n ${t("var d{var} = (node.max_{var} - node.min_{var}) * offset;",{indent:12})}\n\n ${t("oldBody.pos.{var} = node.min_{var} + d{var};",{indent:12})}\n retriesCount -= 1;\n // Make sure we don't bump it out of the box. If we do, next iteration should fix it\n } while (retriesCount > 0 && isSamePosition(oldBody.pos, body.pos));\n\n if (retriesCount === 0 && isSamePosition(oldBody.pos, body.pos)) {\n // This is very bad, we ran out of precision.\n // if we do not return from the method we'll get into\n // infinite loop here. So we sacrifice correctness of layout, and keep the app running\n // Next layout iteration should get larger bounding box in the first step and fix this\n return;\n }\n }\n // Next iteration should subdivide node further.\n insertStack.push(node, oldBody);\n insertStack.push(node, body);\n }\n }\n }\n}\nreturn createQuadTree;\n\n`}function a(e){let t=r(e);return`\n function isSamePosition(point1, point2) {\n ${t("var d{var} = Math.abs(point1.{var} - point2.{var});",{indent:2})}\n \n return ${t("d{var} < 1e-8",{join:" && "})};\n } \n`}function s(e){var t=Math.pow(2,e);return`\nfunction setChild(node, idx, child) {\n ${function(){let e=[];for(let n=0;n<t;++n){let t=0===n?" ":" else ";e.push(`${t}if (idx === ${n}) node.quad${n} = child;`)}return e.join("\n")}()}\n}`}function u(e){return`function getChild(node, idx) {\n${function(){let t=[],n=Math.pow(2,e);for(let e=0;e<n;++e)t.push(` if (idx === ${e}) return node.quad${e};`);return t.join("\n")}()}\n return null;\n}`}function c(e){let t=r(e),n=Math.pow(2,e);return`\nfunction QuadNode() {\n // body stored inside this node. In quad tree only leaf nodes (by construction)\n // contain bodies:\n this.body = null;\n\n // Child nodes are stored in quads. Each quad is presented by number:\n // 0 | 1\n // -----\n // 2 | 3\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}(" this.")}\n\n // Total mass of current node\n this.mass = 0;\n\n // Center of mass coordinates\n ${t("this.mass_{var} = 0;",{indent:2})}\n\n // bounding box coordinates\n ${t("this.min_{var} = 0;",{indent:2})}\n ${t("this.max_{var} = 0;",{indent:2})}\n}\n`}function l(){return"\n/**\n * Our implementation of QuadTree is non-recursive to avoid GC hit\n * This data structure represent stack of elements\n * which we are trying to insert into quad tree.\n */\nfunction InsertStack () {\n this.stack = [];\n this.popIdx = 0;\n}\n\nInsertStack.prototype = {\n isEmpty: function() {\n return this.popIdx === 0;\n },\n push: function (node, body) {\n var item = this.stack[this.popIdx];\n if (!item) {\n // we are trying to avoid memory pressure: create new element\n // only when absolutely necessary\n this.stack[this.popIdx] = new InsertStackElement(node, body);\n } else {\n item.node = node;\n item.body = body;\n }\n ++this.popIdx;\n },\n pop: function () {\n if (this.popIdx > 0) {\n return this.stack[--this.popIdx];\n }\n },\n reset: function () {\n this.popIdx = 0;\n }\n};\n\nfunction InsertStackElement(node, body) {\n this.node = node; // QuadTree node\n this.body = body; // physical body which needs to be inserted to node\n}\n"}e.exports=function(e){let t=o(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=o,e.exports.getInsertStackCode=l,e.exports.getQuadNodeCode=c,e.exports.isSamePosition=a,e.exports.getChildBodyCode=u,e.exports.setChildBodyCode=s},16422:function(e){e.exports=function(e){return 0===e?"x":1===e?"y":2===e?"z":"c"+(e+1)}},45818:function(e,t,n){e.exports=function(e){var t=n(68403),d=n(35510),f=n(84245);if(e){if(void 0!==e.springCoeff)throw new Error("springCoeff was renamed to springCoefficient");if(void 0!==e.dragCoeff)throw new Error("dragCoeff was renamed to dragCoefficient")}e=d(e,{springLength:10,springCoefficient:.8,gravity:-12,theta:.8,dragCoefficient:.9,timeStep:.5,adaptiveTimeStepWeight:0,dimensions:2,debug:!1});var h=c[e.dimensions];if(!h){var p=e.dimensions;h={Body:r(p,e.debug),createQuadTree:i(p),createBounds:o(p),createDragForce:a(p),createSpringForce:s(p),integrate:u(p)},c[p]=h}var m=h.Body,g=h.createQuadTree,v=h.createBounds,y=h.createDragForce,b=h.createSpringForce,E=h.integrate,T=n(78712).random(42),x=[],_=[],w=g(e,T),k=v(x,e,T),C=b(e,T),A=y(e),S=[],O=new Map,D=0;R("nbody",(function(){if(0===x.length)return;w.insertBodies(x);var e=x.length;for(;e--;){var t=x[e];t.isPinned||(t.reset(),w.updateBodyForce(t),A.update(t))}})),R("spring",(function(){var e=_.length;for(;e--;)C.update(_[e])}));var I={bodies:x,quadTree:w,springs:_,settings:e,addForce:R,removeForce:function(e){var t=S.indexOf(O.get(e));if(t<0)return;S.splice(t,1),O.delete(e)},getForces:function(){return O},step:function(){for(var t=0;t<S.length;++t)S[t](D);var n=E(x,e.timeStep,e.adaptiveTimeStepWeight);return D+=1,n},addBody:function(e){if(!e)throw new Error("Body is required");return x.push(e),e},addBodyAt:function(e){if(!e)throw new Error("Body position is required");var t=(e=>new m(e))(e);return x.push(t),t},removeBody:function(e){if(e){var t=x.indexOf(e);if(!(t<0))return x.splice(t,1),0===x.length&&k.reset(),!0}},addSpring:function(e,n,r,i){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var o=new t(e,n,r,i>=0?i:-1);return _.push(o),o},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=_.indexOf(e);return t>-1?(_.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return k.getBestNewPosition(e)},getBBox:N,getBoundingBox:N,invalidateBBox:function(){console.warn("invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call")},gravity:function(t){return void 0!==t?(e.gravity=t,w.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,w.options({theta:t}),this):e.theta},random:T};return function(e,t){for(var n in e)l(e,t,n)}(e,I),f(I),I;function N(){return k.update(),k.box}function R(e,t){if(O.has(e))throw new Error("Force "+e+" is already added");O.set(e,t),S.push(t)}};var r=n(6410),i=n(1584),o=n(30891),a=n(36647),s=n(34079),u=n(51763),c={};function l(e,t,n){if(e.hasOwnProperty(n)&&"function"!==typeof t[n]){var r=Number.isFinite(e[n]);t[n]=r?function(r){if(void 0!==r){if(!Number.isFinite(r))throw new Error("Value of "+n+" should be a valid number.");return e[n]=r,t}return e[n]}:function(r){return void 0!==r?(e[n]=r,t):e[n]}}}},68403:function(e){e.exports=function(e,t,n,r){this.from=e,this.to=t,this.length=n,this.coefficient=r}},54736:function(e,t,n){e.exports=function(e){"uniqueLinkId"in(e=e||{})&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n","\n","Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."),e.multigraph=e.uniqueLinkId);void 0===e.multigraph&&(e.multigraph=!1);if("function"!==typeof Map)throw new Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");var t=new Map,n=[],c={},l=0,d=e.multigraph?function(e,t,n){var r=u(e,t),i=c.hasOwnProperty(r);if(i||C(e,t)){i||(c[r]=0);var o="@"+ ++c[r];r=u(e+o,t+o)}return new s(e,t,n,r)}:function(e,t,n){var r=u(e,t);return new s(e,t,n,r)},f=[],h=A,p=A,m=A,g=A,v={addNode:E,addLink:function(e,t,r){m();var i=T(e)||E(e),o=T(t)||E(t),s=d(e,t,r);n.push(s),a(i,s),e!==t&&a(o,s);return h(s,"add"),g(),s},removeLink:k,removeNode:x,getNode:T,getNodeCount:_,getLinkCount:w,getLinksCount:w,getNodesCount:_,getLinks:function(e){var t=T(e);return t?t.links:null},forEachNode:D,forEachLinkedNode:function(e,n,r){var i=T(e);if(i&&i.links&&"function"===typeof n)return r?function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(o.fromId===n&&r(t.get(o.toId),o))return!0}}(i.links,e,n):function(e,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=o.fromId===n?o.toId:o.fromId;if(r(t.get(a),o))return!0}}(i.links,e,n)},forEachLink:function(e){var t,r;if("function"===typeof e)for(t=0,r=n.length;t<r;++t)e(n[t])},beginUpdate:m,endUpdate:g,clear:function(){m(),D((function(e){x(e.id)})),g()},hasLink:C,hasNode:T,getLink:C};return r(v),function(){var e=v.on;function t(){return v.beginUpdate=m=S,v.endUpdate=g=O,h=y,p=b,v.on=e,e.apply(v,arguments)}v.on=t}(),v;function y(e,t){f.push({link:e,changeType:t})}function b(e,t){f.push({node:e,changeType:t})}function E(e,n){if(void 0===e)throw new Error("Invalid node identifier");m();var r=T(e);return r?(r.data=n,p(r,"update")):(r=new o(e,n),p(r,"add")),t.set(e,r),g(),r}function T(e){return t.get(e)}function x(e){var n=T(e);if(!n)return!1;m();var r=n.links;if(r){n.links=null;for(var i=0;i<r.length;++i)k(r[i])}return t.delete(e),p(n,"remove"),g(),!0}function _(){return t.size}function w(){return n.length}function k(e){if(!e)return!1;var t=i(e,n);if(t<0)return!1;m(),n.splice(t,1);var r=T(e.fromId),o=T(e.toId);return r&&(t=i(e,r.links))>=0&&r.links.splice(t,1),o&&(t=i(e,o.links))>=0&&o.links.splice(t,1),h(e,"remove"),g(),!0}function C(e,t){var n,r=T(e);if(!r||!r.links)return null;for(n=0;n<r.links.length;++n){var i=r.links[n];if(i.fromId===e&&i.toId===t)return i}return null}function A(){}function S(){l+=1}function O(){0===(l-=1)&&f.length>0&&(v.fire("changed",f),f.length=0)}function D(e){if("function"!==typeof e)throw new Error("Function is expected to iterate over graph nodes. You passed "+e);for(var n=t.values(),r=n.next();!r.done;){if(e(r.value))return!0;r=n.next()}}};var r=n(84245);function i(e,t){if(!t)return-1;if(t.indexOf)return t.indexOf(e);var n,r=t.length;for(n=0;n<r;n+=1)if(t[n]===e)return n;return-1}function o(e,t){this.id=e,this.links=null,this.data=t}function a(e,t){e.links?e.links.push(t):e.links=[t]}function s(e,t,n,r){this.fromId=e,this.toId=t,this.data=n,this.id=r}function u(e,t){return e.toString()+"\ud83d\udc49 "+t.toString()}},35510:function(e){e.exports=function e(t,n){var r;t||(t={});if(n)for(r in n)if(n.hasOwnProperty(r)){var i=t.hasOwnProperty(r),o=typeof n[r];!i||typeof t[r]!==o?t[r]=n[r]:"object"===o&&(t[r]=e(t[r],n[r]))}return t}},78712:function(e){function t(e){return new n("number"===typeof e?e:+new Date)}function n(e){this.seed=e}function r(e){return Math.sqrt(2*Math.PI/e)*Math.pow(1/Math.E*(e+1/(12*e-1/(10*e))),e)}function i(){var e=this.seed;return e=4294967295&(3042594569^(e=(e=4294967295&((e=(e=4294967295&(3345072700^(e=e+2127912214+(e<<12)&4294967295)^e>>>19))+374761393+(e<<5)&4294967295)+3550635116^e<<9))+4251993797+(e<<3)&4294967295)^e>>>16),this.seed=e,(268435455&e)/268435456}e.exports=t,e.exports.random=t,e.exports.randomIterator=function(e,n){var r=n||t();if("function"!==typeof r.next)throw new Error("customRandom does not match expected API: next() function is missing");return{forEach:function(t){var n,i,o;for(n=e.length-1;n>0;--n)i=r.next(n+1),o=e[i],e[i]=e[n],e[n]=o,t(o);e.length&&t(e[0])},shuffle:function(){var t,n,i;for(t=e.length-1;t>0;--t)n=r.next(t+1),i=e[n],e[n]=e[t],e[t]=i;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=i,n.prototype.uniform=i,n.prototype.gaussian=function(){var e,t,n;do{t=2*this.nextDouble()-1,n=2*this.nextDouble()-1,e=t*t+n*n}while(e>=1||0===e);return t*Math.sqrt(-2*Math.log(e)/e)},n.prototype.levy=function(){var e=1.5,t=Math.pow(r(2.5)*Math.sin(Math.PI*e/2)/(r(1.25)*e*Math.pow(2,.25)),1/e);return this.gaussian()*t/Math.pow(Math.abs(this.gaussian()),1/e)}},29033:function(e,t){"use strict";function n(e,t={}){return r(e)}function r(e){return e?Array.isArray(e)?i(e):"string"===typeof e.value?e.value:"children"in e?i(e.children):"":""}function i(e){return e.map(r).join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0,t.toString=n,t.default=n},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";if((t=t||document.createElement("i")).innerHTML=r,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==r&&n}},31515:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152),i="html",o=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=o.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],u=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=u.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function l(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===i&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==i)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:o;if(d(n,e))return r.QUIRKS;if(e=null===t?u:c,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+l(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+l(n)),r}},41734:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:function(e,t,n){"use strict";const r=n(55763),i=n(16152),o=i.TAG_NAMES,a=i.NAMESPACES,s=i.ATTRS,u="text/html",c="application/xhtml+xml",l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},f=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h={[o.B]:!0,[o.BIG]:!0,[o.BLOCKQUOTE]:!0,[o.BODY]:!0,[o.BR]:!0,[o.CENTER]:!0,[o.CODE]:!0,[o.DD]:!0,[o.DIV]:!0,[o.DL]:!0,[o.DT]:!0,[o.EM]:!0,[o.EMBED]:!0,[o.H1]:!0,[o.H2]:!0,[o.H3]:!0,[o.H4]:!0,[o.H5]:!0,[o.H6]:!0,[o.HEAD]:!0,[o.HR]:!0,[o.I]:!0,[o.IMG]:!0,[o.LI]:!0,[o.LISTING]:!0,[o.MENU]:!0,[o.META]:!0,[o.NOBR]:!0,[o.OL]:!0,[o.P]:!0,[o.PRE]:!0,[o.RUBY]:!0,[o.S]:!0,[o.SMALL]:!0,[o.SPAN]:!0,[o.STRONG]:!0,[o.STRIKE]:!0,[o.SUB]:!0,[o.SUP]:!0,[o.TABLE]:!0,[o.TT]:!0,[o.U]:!0,[o.UL]:!0,[o.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===o.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||h[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=l[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=f[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===o.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===s.ENCODING){const e=n[r].value.toLowerCase();return e===u||e===c}return t===a.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}(e,t))}},16152:function(e,t){"use strict";const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},54284:function(e,t){"use strict";const n=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},23843:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:function(e,t,n){"use strict";const r=n(23843),i=n(70050),o=n(46110),a=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,i,e.opts),a.install(this.tokenizer,o)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},23288:function(e,t,n){"use strict";const r=n(23843),i=n(57930),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=o.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:function(e,t,n){"use strict";const r=n(23843),i=n(23288),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);const n=o.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},11077:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},452:function(e,t,n){"use strict";const r=n(81704),i=n(55763),o=n(46110),a=n(11077),s=n(16152).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),o={};t.type===i.END_TAG_TOKEN&&r===t.tagName?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,o);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=r&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},46110:function(e,t,n){"use strict";const r=n(81704),i=n(55763),o=n(57930);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,o),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===i.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(i.MODE).forEach((r=>{const o=i.MODE[r];n[o]=function(n){e.ctLoc=e._getCurrentLocation(),t[o].call(this,n)}})),n}}},57930:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},12484:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===t.MARKER_ENTRY)break;const s=a.element,u=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===o&&u.length===r&&n.push({idx:e,attrs:u})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,o=Object.create(null);for(let e=0;e<i;e++){const t=r[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let r=0;r<n;r++){const i=t[r].attrs[e];if(o[i.name]!==i.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:function(e,t,n){"use strict";const r=n(55763),i=n(46519),o=n(12484),a=n(452),s=n(22232),u=n(81704),c=n(17296),l=n(8904),d=n(31515),f=n(88779),h=n(41734),p=n(54284),m=n(16152),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},E="hidden",T="INITIAL_MODE",x="BEFORE_HTML_MODE",_="BEFORE_HEAD_MODE",w="IN_HEAD_MODE",k="IN_HEAD_NO_SCRIPT_MODE",C="AFTER_HEAD_MODE",A="IN_BODY_MODE",S="TEXT_MODE",O="IN_TABLE_MODE",D="IN_TABLE_TEXT_MODE",I="IN_CAPTION_MODE",N="IN_COLUMN_GROUP_MODE",R="IN_TABLE_BODY_MODE",M="IN_ROW_MODE",P="IN_CELL_MODE",L="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",j="IN_TEMPLATE_MODE",H="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",z="AFTER_FRAMESET_MODE",U="AFTER_AFTER_BODY_MODE",V="AFTER_AFTER_FRAMESET_MODE",G={[g.TR]:M,[g.TBODY]:R,[g.THEAD]:R,[g.TFOOT]:R,[g.CAPTION]:I,[g.COLGROUP]:N,[g.TABLE]:O,[g.BODY]:A,[g.FRAMESET]:B},K={[g.CAPTION]:O,[g.COLGROUP]:O,[g.TBODY]:O,[g.TFOOT]:O,[g.THEAD]:O,[g.COL]:N,[g.TR]:R,[g.TD]:M,[g.TH]:M},q={[T]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(h.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[x]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode=_):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||se(e,t)},[r.EOF_TOKEN]:se},[_]:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode=w):ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?ue(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:ue},[w]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:de},[k]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?ce(e,t):n===g.NOSCRIPT?e._err(h.nestedNoscriptInHead):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=w):n===g.BR?fe(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[C]:{[r.CHARACTER_TOKEN]:he,[r.NULL_CHARACTER_TOKEN]:he,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=A):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode=B):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(h.abandonedHeadElementChild),e.openElements.push(e.headElement),ce(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(h.misplacedStartTagForHeadElement):he(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?he(e,t):n===g.TEMPLATE?le(e,t):e._err(h.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:he},[A]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Ce,[r.END_TAG_TOKEN]:De,[r.EOF_TOKEN]:Ie},[S]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ie,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(h.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[O]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Re,[r.END_TAG_TOKEN]:Me,[r.EOF_TOKEN]:Ie},[D]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:Le,[r.DOCTYPE_TOKEN]:Le,[r.START_TAG_TOKEN]:Le,[r.END_TAG_TOKEN]:Le,[r.EOF_TOKEN]:Le},[I]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,e._processToken(t)):Ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&De(e,t)},[r.EOF_TOKEN]:Ie},[N]:{[r.CHARACTER_TOKEN]:Fe,[r.NULL_CHARACTER_TOKEN]:Fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?ce(e,t):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O):n===g.TEMPLATE?le(e,t):n!==g.COL&&Fe(e,t)},[r.EOF_TOKEN]:Ie},[R]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode=M):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=M,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&Me(e,t)},[r.EOF_TOKEN]:Ie},[M]:{[r.CHARACTER_TOKEN]:Ne,[r.NULL_CHARACTER_TOKEN]:Ne,[r.WHITESPACE_CHARACTER_TOKEN]:Ne,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode=P,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&Me(e,t)},[r.EOF_TOKEN]:Ie},[P]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):Ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=M):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&De(e,t)},[r.EOF_TOKEN]:Ie},[L]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:je,[r.END_TAG_TOKEN]:He,[r.EOF_TOKEN]:Ie},[F]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):je(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):He(e,t)},[r.EOF_TOKEN]:Ie},[j]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)ce(e,t);else{const r=K[n]||A;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&le(e,t)},[r.EOF_TOKEN]:Be},[H]:{[r.CHARACTER_TOKEN]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Ce(e,t):ze(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=U):ze(e,t)},[r.EOF_TOKEN]:oe},[B]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=z))},[r.EOF_TOKEN]:oe},[z]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=V)},[r.EOF_TOKEN]:oe},[U]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Ce(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:Ue,[r.EOF_TOKEN]:oe},[V]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:pe,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:oe}};function W(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oe(e,t),n}function $(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Z(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Y(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Y(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function X(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function J(e,t){let n;for(let r=0;r<8&&(n=W(e,t),n);r++){const t=$(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=Z(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),X(e,i,r),Q(e,t,n)}}function ee(){}function te(e){e._err(h.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function ie(e,t){e._insertCharacters(t)}function oe(e){e.stopped=!0}function ae(e,t){e._err(h.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=x,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=_,e._processToken(t)}function ue(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=w,e._processToken(t)}function ce(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode=k):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j,e._pushTmplInsertionMode(j)):n===g.HEAD?e._err(h.misplacedStartTagForHeadElement):de(e,t)}function le(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=C):n===g.BODY||n===g.BR||n===g.HTML?de(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(h.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(h.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=C,e._processToken(t)}function fe(e,t){const n=t.type===r.EOF_TOKEN?h.openElementsLeftAfterEof:h.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function he(e,t){e._insertFakeElement(g.BODY),e.insertionMode=A,e._processToken(t)}function pe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ge(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function ve(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Te(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function xe(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function _e(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function we(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Ce(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ye(e,t):n===g.P?ge(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ge(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.items[r],i=e.treeAdapter.getTagName(t);let o=null;if(n===g.LI&&i===g.LI?o=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(t))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?ye(e,t):n===g.BR?Ee(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===g.RB?we(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&ke(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ge(e,t):n===g.PRE?ve(e,t):n===g.BIG?ye(e,t):n===g.IMG||n===g.WBR?Ee(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?we(e,t):n!==g.COL&&ke(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?ce(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ge(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?ye(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?Ee(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&ke(e,t);break;case 5:n===g.STYLE||n===g.TITLE?ce(e,t):n===g.ASIDE?ge(e,t):n===g.SMALL?ye(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=O}(e,t):n===g.EMBED?Ee(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?Te(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,Ee(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&ke(e,t);break;case 6:n===g.SCRIPT?ce(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ge(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?ye(e,t):n===g.APPLET||n===g.OBJECT?be(e,t):n===g.KEYGEN?Ee(e,t):n===g.SOURCE?Te(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===O||e.insertionMode===I||e.insertionMode===R||e.insertionMode===M||e.insertionMode===P?e.insertionMode=F:e.insertionMode=L}(e,t):n===g.OPTION?_e(e,t):ke(e,t);break;case 7:n===g.BGSOUND?ce(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ge(e,t):n===g.LISTING?ve(e,t):n===g.MARQUEE?be(e,t):n===g.NOEMBED?xe(e,t):n!==g.CAPTION&&ke(e,t);break;case 8:n===g.BASEFONT?ce(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode=B)}(e,t):n===g.FIELDSET?ge(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=S}(e,t):n===g.TEMPLATE?ce(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?xe(e,t):ke(e,t):n===g.OPTGROUP?_e(e,t):n!==g.COLGROUP&&ke(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ge(e,t):ke(e,t);break;default:ke(e,t)}}function Ae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Se(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Oe(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const t=e.openElements.items[r];if(e.treeAdapter.getTagName(t)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(t);break}if(e._isSpecialElement(t))break}}function De(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?J(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):Oe(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ae(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?J(e,t):Oe(e,t);break;case 3:n===g.BIG?J(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ae(e,t):Oe(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=H)}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=H,e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?J(e,t):n===g.MAIN||n===g.MENU?Ae(e,t):Oe(e,t);break;case 5:n===g.ASIDE?Ae(e,t):n===g.SMALL?J(e,t):Oe(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ae(e,t):n===g.APPLET||n===g.OBJECT?Se(e,t):n===g.STRIKE||n===g.STRONG?J(e,t):Oe(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ae(e,t):n===g.MARQUEE?Se(e,t):Oe(e,t);break;case 8:n===g.FIELDSET?Ae(e,t):n===g.TEMPLATE?le(e,t):Oe(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ae(e,t):Oe(e,t);break;default:Oe(e,t)}}function Ie(e,t){e.tmplInsertionModeStackTop>-1?Be(e,t):e.stopped=!0}function Ne(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D,e._processToken(t)):Pe(e,t)}function Re(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=R,e._processToken(t)}(e,t):Pe(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=N,e._processToken(t)}(e,t):Pe(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Pe(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?ce(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=R}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E?e._appendElement(t,v.HTML):Pe(e,t),t.ackSelfClosing=!0}(e,t):Pe(e,t);break;case 6:n===g.SCRIPT?ce(e,t):Pe(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode=I}(e,t):Pe(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=N}(e,t):n===g.TEMPLATE?ce(e,t):Pe(e,t);break;default:Pe(e,t)}}function Me(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?le(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Pe(e,t)}function Pe(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Le(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Pe(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Fe(e,t){e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=O,e._processToken(t))}function je(e,t){const n=t.tagName;n===g.HTML?Ce(e,t):n===g.OPTION?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.OPTGROUP?(e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,v.HTML)):n===g.INPUT||n===g.KEYGEN||n===g.TEXTAREA||n===g.SELECT?e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),n!==g.SELECT&&e._processToken(t)):n!==g.SCRIPT&&n!==g.TEMPLATE||ce(e,t)}function He(e,t){const n=t.tagName;if(n===g.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===g.OPTION&&n===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===g.OPTGROUP&&e.openElements.pop()}else n===g.OPTION?e.openElements.currentTagName===g.OPTION&&e.openElements.pop():n===g.SELECT&&e.openElements.hasInSelectScope(g.SELECT)?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode()):n===g.TEMPLATE&&le(e,t)}function Be(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function ze(e,t){e.insertionMode=A,e._processToken(t)}function Ue(e,t){e.insertionMode=A,e._processToken(t)}e.exports=class{constructor(e){this.options=l(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&u.install(this,a),this.options.onParseError&&u.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(j),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=T,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=S}switchToPlaintextParsing(){this.insertionMode=S,this.originalInsertionMode=A,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK)&&!i||!this._isIntegrationPoint(t,v.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!i||!this._isIntegrationPoint(t,v.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){q[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){q.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=p.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?ie(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?f.adjustTokenMathMLAttrs(t):r===v.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(h.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===o.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=M}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=G[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode=P;break}if(!t&&r===g.HEAD){this.insertionMode=w;break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?C:_;break}if(t){this.insertionMode=A;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode=F)}this.insertionMode=L}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},46519:function(e,t,n){"use strict";const r=n(16152),i=r.TAG_NAMES,o=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function u(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===o.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===o.MATHML;break;case 4:if(e===i.HTML)return t===o.HTML;if(e===i.DESC)return t===o.SVG;break;case 5:if(e===i.TABLE)return t===o.HTML;if(e===i.MTEXT)return t===o.MATHML;if(e===i.TITLE)return t===o.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===o.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===o.HTML;case 8:return e===i.TEMPLATE&&t===o.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===o.SVG;case 14:return e===i.ANNOTATION_XML&&t===o.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===o.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===o.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===o.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(u(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===o.HTML)return!0;if(u(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||u(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||u(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:function(e,t,n){"use strict";const r=n(77118),i=n(54284),o=n(5482),a=n(41734),s=i.CODE_POINTS,u=i.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},l="DATA_STATE",d="RCDATA_STATE",f="RAWTEXT_STATE",h="SCRIPT_DATA_STATE",p="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",T="RAWTEXT_LESS_THAN_SIGN_STATE",x="RAWTEXT_END_TAG_OPEN_STATE",_="RAWTEXT_END_TAG_NAME_STATE",w="SCRIPT_DATA_LESS_THAN_SIGN_STATE",k="SCRIPT_DATA_END_TAG_OPEN_STATE",C="SCRIPT_DATA_END_TAG_NAME_STATE",A="SCRIPT_DATA_ESCAPE_START_STATE",S="SCRIPT_DATA_ESCAPE_START_DASH_STATE",O="SCRIPT_DATA_ESCAPED_STATE",D="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",N="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",M="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",P="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",z="BEFORE_ATTRIBUTE_NAME_STATE",U="ATTRIBUTE_NAME_STATE",V="AFTER_ATTRIBUTE_NAME_STATE",G="BEFORE_ATTRIBUTE_VALUE_STATE",K="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",W="ATTRIBUTE_VALUE_UNQUOTED_STATE",$="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",Y="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",oe="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",ue="DOCTYPE_STATE",ce="BEFORE_DOCTYPE_NAME_STATE",le="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",fe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",he="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",pe="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ge="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ve="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ee="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Te="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",xe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",_e="BOGUS_DOCTYPE_STATE",we="CDATA_SECTION_STATE",ke="CDATA_SECTION_BRACKET_STATE",Ce="CDATA_SECTION_END_STATE",Ae="CHARACTER_REFERENCE_STATE",Se="NAMED_CHARACTER_REFERENCE_STATE",Oe="AMBIGUOS_AMPERSAND_STATE",De="NUMERIC_CHARACTER_REFERENCE_STATE",Ie="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ne="DECIMAL_CHARACTER_REFERENCE_START_STATE",Re="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Me="DECIMAL_CHARACTER_REFERENCE_STATE",Pe="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Le(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Fe(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function je(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function He(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function Be(e){return He(e)||je(e)}function ze(e){return Be(e)||Fe(e)}function Ue(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function Ve(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function Ge(e){return e+32}function Ke(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function qe(e){return String.fromCharCode(Ge(e))}function We(e,t){const n=o[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,a=o[e];if(a<t)r=e+1;else{if(!(a>t))return o[e+n];i=e-1}}return-1}class $e{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=l,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:$e.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const o=e.length;let a,u=0,c=t;for(;u<o;u++){if(u>0&&(c=this._consume(),r++),c===s.EOF){i=!1;break}if(a=e[u],c!==a&&(n||c!==Ge(a))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==u.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==u.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:$e.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:$e.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:$e.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:$e.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:$e.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===$e.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===$e.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===$e.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=$e.CHARACTER_TOKEN;Le(e)?t=$e.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=$e.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ke(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken($e.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=We(0,e);for(this.tempBuff.push(e);r>-1;){const e=o[r],i=e<7;i&&1&e&&(t=2&e?[o[++r],o[++r]]:[o[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=i?4&e?We(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===K||this.returnState===q||this.returnState===W}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||ze(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=Ke(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[l](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=m:e===s.AMPERSAND?(this.returnState=l,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=Ae):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=T:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=w:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=X:e===s.SOLIDUS?this.state=g:Be(e)?(this._createStartTagToken(),this._reconsumeInState(v)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Y)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(l))}[g](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(v)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=l):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Y))}[v](e){Le(e)?this.state=z:e===s.SOLIDUS?this.state=Z:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):je(e)?this.currentToken.tagName+=qe(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Ke(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(d))}[E](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this.state=l,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[T](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=x):(this._emitChars("<"),this._reconsumeInState(f))}[x](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(_)):(this._emitChars("</"),this._reconsumeInState(f))}[_](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[w](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=k):e===s.EXCLAMATION_MARK?(this.state=A,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(h))}[k](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(C)):(this._emitChars("</"),this._reconsumeInState(h))}[C](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(h)}}[A](e){e===s.HYPHEN_MINUS?(this.state=S,this._emitChars("-")):this._reconsumeInState(h)}[S](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):this._reconsumeInState(h)}[O](e){e===s.HYPHEN_MINUS?(this.state=D,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=N:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[D](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=N:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[I](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=N:e===s.GREATER_THAN_SIGN?(this.state=h,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=O,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=O,this._emitCodePoint(e))}[N](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=R):Be(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(P)):(this._emitChars("<"),this._reconsumeInState(O))}[R](e){Be(e)?(this._createEndTagToken(),this._reconsumeInState(M)):(this._emitChars("</"),this._reconsumeInState(O))}[M](e){if(je(e))this.currentToken.tagName+=qe(e),this.tempBuff.push(e);else if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=z);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(O)}}[P](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?L:O,this._emitCodePoint(e)):je(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):He(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(O)}[L](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[F](e){e===s.HYPHEN_MINUS?(this.state=j,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[j](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=H,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=h,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[H](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=B,this._emitChars("/")):this._reconsumeInState(L)}[B](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?O:L,this._emitCodePoint(e)):je(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):He(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(L)}[z](e){Le(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(V):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=U):(this._createAttr(""),this._reconsumeInState(U)))}[U](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(V),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(G):je(e)?this.currentAttr.name+=qe(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ke(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ke(e)}[V](e){Le(e)||(e===s.SOLIDUS?this.state=Z:e===s.EQUALS_SIGN?this.state=G:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(U)))}[G](e){Le(e)||(e===s.QUOTATION_MARK?this.state=K:e===s.APOSTROPHE?this.state=q:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=l,this._emitCurrentToken()):this._reconsumeInState(W))}[K](e){e===s.QUOTATION_MARK?this.state=$:e===s.AMPERSAND?(this.returnState=K,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[q](e){e===s.APOSTROPHE?this.state=$:e===s.AMPERSAND?(this.returnState=q,this.state=Ae):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[W](e){Le(e)?this._leaveAttrValue(z):e===s.AMPERSAND?(this.returnState=W,this.state=Ae):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Ke(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[$](e){Le(e)?this._leaveAttrValue(z):e===s.SOLIDUS?this._leaveAttrValue(Z):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(z))}[Z](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(z))}[Y](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=Ke(e)}[X](e){this._consumeSequenceIfMatch(u.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(u.DOCTYPE_STRING,e,!1)?this.state=ue:this._consumeSequenceIfMatch(u.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=we:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Y):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Y))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=oe:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ke(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=ie:this._reconsumeInState(oe)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[oe](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=oe):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[ue](e){Le(e)?this.state=ce:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ce):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ce))}[ce](e){Le(e)||(je(e)?(this._createDoctypeToken(qe(e)),this.state=le):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=le):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Ke(e)),this.state=le))}[le](e){Le(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):je(e)?this.currentToken.name+=qe(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ke(e)}[de](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(u.PUBLIC_STRING,e,!1)?this.state=fe:this._consumeSequenceIfMatch(u.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e)))}[fe](e){Le(e)?this.state=he:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=pe):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e))}[he](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=pe):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e)))}[pe](e){e===s.QUOTATION_MARK?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ke(e)}[me](e){e===s.APOSTROPHE?this.state=ge:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ke(e)}[ge](e){Le(e)?this.state=ve:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Te):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e))}[ve](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=Te):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e)))}[ye](e){Le(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Te):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e))}[be](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=Te):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_e)))}[Ee](e){e===s.QUOTATION_MARK?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ke(e)}[Te](e){e===s.APOSTROPHE?this.state=xe:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ke(e)}[xe](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(_e)))}[_e](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[we](e){e===s.RIGHT_SQUARE_BRACKET?this.state=ke:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Ce:(this._emitChars("]"),this._reconsumeInState(we))}[Ce](e){e===s.GREATER_THAN_SIGN?this.state=l:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(we))}[Ae](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=De):ze(e)?this._reconsumeInState(Se):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Se](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Oe}[Oe](e){ze(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ke(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[De](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ie):this._reconsumeInState(Ne)}[Ie](e){!function(e){return Fe(e)||Ue(e)||Ve(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Re)}[Ne](e){Fe(e)?this._reconsumeInState(Me):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Re](e){Ue(e)?this.charRefCode=16*this.charRefCode+e-55:Ve(e)?this.charRefCode=16*this.charRefCode+e-87:Fe(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Pe:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Pe))}[Me](e){Fe(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Pe:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Pe))}[Pe](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}$e.CHARACTER_TOKEN="CHARACTER_TOKEN",$e.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",$e.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",$e.START_TAG_TOKEN="START_TAG_TOKEN",$e.END_TAG_TOKEN="END_TAG_TOKEN",$e.COMMENT_TOKEN="COMMENT_TOKEN",$e.DOCTYPE_TOKEN="DOCTYPE_TOKEN",$e.EOF_TOKEN="EOF_TOKEN",$e.HIBERNATION_TOKEN="HIBERNATION_TOKEN",$e.MODE={DATA:l,RCDATA:d,RAWTEXT:f,SCRIPT_DATA:h,PLAINTEXT:p},$e.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=$e},5482:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:function(e,t,n){"use strict";const r=n(54284),i=n(41734),o=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,o.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===o.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===o.CARRIAGE_RETURN)return this.skipNextNewLine=!0,o.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===o.LINE_FEED||e===o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},o=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if("#documentType"===e.childNodes[o].nodeName){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):o(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}o(e,i(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,i(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},8904:function(e){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},81704:function(e){"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"===typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=t},81725:function(e){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},2974:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},18059:function(e,t,n){var r=n(34155),i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])m(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,i){if(y(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===r.noDeprecation)return e;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=l(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(_(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return d(n)}var c,E="",w=!1,k=["{","}"];(h(n)&&(w=!0,k=["[","]"]),_(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),T(n)&&(E=" "+Date.prototype.toUTCString.call(n)),x(n)&&(E=" "+d(n)),0!==a.length||w&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)S(t,String(a))?o.push(f(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return f(e,n,r,s,t,w)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,E,k)):k[0]+E+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),S(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function m(e){return null===e}function g(e){return"number"===typeof e}function v(e){return"string"===typeof e}function y(e){return void 0===e}function b(e){return E(e)&&"[object RegExp]"===w(e)}function E(e){return"object"===typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===w(e)}function x(e){return E(e)&&("[object Error]"===w(e)||e instanceof Error)}function _(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=E,t.isDate=T,t.isError=x,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(2974);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=n(81725),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},62520:function(e,t,n){"use strict";var r=n(34155),i="win32"===r.platform,o=n(18059);function a(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,l={};function d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=c.exec(r);return[n,i[1],i[2],i[3]]}function f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function h(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}l.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var s;if(i>=0?s=arguments[i]:e?(s=r.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=r.cwd(),!o.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=f(s),c=u.device,l=u.isUnc,d=u.isAbsolute,p=u.tail;if((!c||!e||c.toLowerCase()===e.toLowerCase())&&(e||(e=c),n||(t=p+"\\"+t,n=d),e&&n))break}}return l&&(e=h(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},l.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,s=/[\\\/]$/.test(o);return(o=a(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&s&&(o+="\\"),r&&(n=h(n)),n+(i?"\\":"")+o},l.isAbsolute=function(e){return f(e).isAbsolute},l.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),l.normalize(r)},l.relative=function(e,t){e=l.resolve(e),t=l.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),i=s(t.split("\\")),o=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(o.length,a.length),c=u,d=0;d<u;d++)if(o[d]!==a[d]){c=d;break}if(0==c)return t;var f=[];for(d=c;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(c))).join("\\")},l._makeLong=function(e){if(!o.isString(e))return e;if(!e)return"";var t=l.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},l.dirname=function(e){var t=d(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},l.basename=function(e,t){var n=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return d(e)[3]},l.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,r=e.base||"";return n?n[n.length-1]===l.sep?n+r:n+l.sep+r:r},l.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=d(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},l.sep="\\",l.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m={};function g(e){return p.exec(e).slice(1)}m.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:r.cwd();if(!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},m.normalize=function(e){var t=m.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},m.isAbsolute=function(e){return"/"===e.charAt(0)},m.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return m.normalize(e)},m.relative=function(e,t){e=m.resolve(e).substr(1),t=m.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),i=Math.min(n.length,r.length),o=i,a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}var u=[];for(a=o;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(o))).join("/")},m._makeLong=function(e){return e},m.dirname=function(e){var t=g(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},m.basename=function(e,t){var n=g(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},m.extname=function(e){return g(e)[3]},m.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+m.sep:"")+(e.base||"")},m.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=g(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},m.sep="/",m.delimiter=":",e.exports=i?l:m,e.exports.posix=m,e.exports.win32=l},75:function(e,t,n){var r=n(34155);(function(){var t,n,i,o,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof r&&null!==r&&r.hrtime?(e.exports=function(){return(t()-a)/1e6},n=r.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)},87236:function(e){var t=null,n=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),o=n.length;o>=0;o--){var a=n[o]+i;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},99560:function(e,t,n){"use strict";var r=n(66632),i=n(98805),o=n(57643),a="data";e.exports=function(e,t){var n=r(t),f=t,h=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(u,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(u.test(t))return e;"-"!==(t=t.replace(c,l)).charAt(0)&&(t="-"+t);return a+t}(t),h=i);return new h(f,t)};var s=/^data[-\w.:]+$/i,u=/-[a-z]/g,c=/[A-Z]/g;function l(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(61805);e.exports=r([o,i,a,s,u])},67716:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),o=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),o=n(10855),a=r.boolean,s=r.overloadedBoolean,u=r.booleanish,c=r.number,l=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:l,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:l,cols:c,colSpan:null,content:null,contentEditable:u,controls:a,controlsList:l,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:l,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:l,itemRef:l,itemScope:a,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:c,pattern:null,ping:l,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:l,required:a,reversed:a,rows:c,rowSpan:c,sandbox:l,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:u,width:c,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},45789:function(e,t,n){"use strict";var r=n(17e3),i=n(17596),o=n(28740),a=r.boolean,s=r.number,u=r.spaceSeparated,c=r.commaSeparated,l=r.commaOrSpaceSeparated;e.exports=i({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o,properties:{about:l,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c,g2:c,glyphName:c,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:l,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l,rev:l,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l,requiredFeatures:l,requiredFonts:l,requiredFormats:l,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:l,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),i=n(99607),o=n(98805);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],u=e.attributes||{},c=e.properties,l=e.transform,d={},f={};for(t in c)n=new o(t,l(u,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new i(d,f,a)}},98805:function(e,t,n){"use strict";var r=n(57643),i=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function s(e,t,n,s){var c,l=-1;for(u(this,"space",s),r.call(this,e,t);++l<a;)u(this,c=o[l],(n&i[c])===i[c])}function u(e,t,n){n&&(e[t]=n)}},57643:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},19940:function(e,t,n){"use strict";var r=n(47529),i=n(99607);e.exports=function(e){var t,n,o=e.length,a=[],s=[],u=-1;for(;++u<o;)t=e[u],a.push(t.property),s.push(t.normal),n=t.space;return new i(r.apply(null,a),r.apply(null,s),n)}},99607:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},17e3:function(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},8289:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},5812:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},94397:function(e,t,n){"use strict";var r=n(17596),i=n(10855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i,properties:{xmlns:null,xmlnsXLink:null}})},66632:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},11218:function(e,t,n){"use strict";var r=n(19940),i=n(8289),o=n(5812),a=n(94397),s=n(67716),u=n(45789);e.exports=r([o,i,a,s,u])},54087:function(e,t,n){for(var r=n(75),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,16.666666666666668-(t-l));l=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},29119:function(e,t,n){"use strict";n.d(t,{e:function(){return w}});var r=n(67294),i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return i(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:o(o({position:"absolute",userSelect:"none"},a[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),u=n(53316),c=n.n(u),l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},f={width:"auto",height:"auto"},h=c()((function(e,t,n){return Math.max(Math.min(e,n),t)})),p=c()((function(e,t){return Math.round(e/t)*t})),m=c()((function(e,t){return new RegExp(e,"i").test(t)})),g=function(e){return Boolean(e.touches&&e.touches.length)},v=c()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n}),0),i=Math.abs(t[r]-e);return 0===n||i<n?t[r]:e})),y=c()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),b=c()((function(e){return"auto"===(e=e.toString())||y(e,"px")||y(e,"%")||y(e,"vh")||y(e,"vw")||y(e,"vmax")||y(e,"vmin")?e:e+"px"})),E=function(e,t,n,r){if(e&&"string"===typeof e){if(y(e,"px"))return Number(e.replace("px",""));if(y(e,"%"))return t*(Number(e.replace("%",""))/100);if(y(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(y(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},T=c()((function(e,t,n,r,i,o,a){return r=E(r,e.width,t,n),i=E(i,e.height,t,n),o=E(o,e.width,t,n),a=E(a,e.height,t,n),{maxWidth:"undefined"===typeof r?void 0:Number(r),maxHeight:"undefined"===typeof i?void 0:Number(i),minWidth:"undefined"===typeof o?void 0:Number(o),minHeight:"undefined"===typeof a?void 0:Number(a)}})),x=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],_="__resizable_base__",w=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(_):t.className+=_,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:"undefined"===typeof(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:"undefined"===typeof(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if("undefined"===typeof e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&y(e.propsSize[t].toString(),"%")){if(y(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return b(e.state[t])};return{width:t&&"undefined"!==typeof t.width&&!this.state.isResizing?b(t.width):n("width"),height:t&&"undefined"!==typeof t.height&&!this.state.isResizing?b(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||"undefined"!==typeof n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,i=this.props.boundsByDirection,o=this.state.direction,a=i&&m("left",o),s=i&&m("top",o);if("parent"===this.props.bounds){var u=this.parentNode;u&&(n=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,o=i.direction,a=i.original,s=this.props,u=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,l=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,h=c||0,p=l||0;return m("right",o)&&(d=a.width+(e-a.x)*r/n,u&&(f=(d-p)/this.ratio+h)),m("left",o)&&(d=a.width-(e-a.x)*r/n,u&&(f=(d-p)/this.ratio+h)),m("bottom",o)&&(f=a.height+(t-a.y)*r/n,u&&(d=(f-h)*this.ratio+p)),m("top",o)&&(f=a.height-(t-a.y)*r/n,u&&(d=(f-h)*this.ratio+p)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,o=i.lockAspectRatio,a=i.lockAspectRatioExtraHeight,s=i.lockAspectRatioExtraWidth,u="undefined"===typeof r.width?10:r.width,c="undefined"===typeof n.width||n.width<0?e:n.width,l="undefined"===typeof r.height?10:r.height,d="undefined"===typeof n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(o){var m=(l-f)*this.ratio+p,g=(d-f)*this.ratio+p,v=(u-p)/this.ratio+f,y=(c-p)/this.ratio+f,b=Math.max(u,m),E=Math.min(c,g),T=Math.max(l,v),x=Math.min(d,y);e=h(e,b,E),t=h(t,T,x)}else e=h(e,u,c),t=h(t,l,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!==typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,o=r.top,a=r.right,s=r.bottom;this.resizableLeft=i,this.resizableRight=a,this.resizableTop=o,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,i=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,i=e.nativeEvent.clientY):e.nativeEvent&&g(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,i=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&("undefined"!==typeof this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),"undefined"!==typeof this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"===typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:r,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:d(d({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(u)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&g(e))try{e.preventDefault(),e.stopPropagation()}catch(D){}var t=this.props,n=t.maxWidth,r=t.maxHeight,i=t.minWidth,o=t.minHeight,a=g(e)?e.touches[0].clientX:e.clientX,s=g(e)?e.touches[0].clientY:e.clientY,u=this.state,c=u.direction,l=u.original,d=u.width,f=u.height,h=this.getParentSize(),m=T(h,this.window.innerWidth,this.window.innerHeight,n,r,i,o);n=m.maxWidth,r=m.maxHeight,i=m.minWidth,o=m.minHeight;var b=this.calculateNewSizeFromDirection(a,s),E=b.newHeight,x=b.newWidth,_=this.calculateNewMaxFromBoundary(n,r),w=this.calculateNewSizeFromAspectRatio(x,E,{width:_.maxWidth,height:_.maxHeight},{width:i,height:o});if(x=w.newWidth,E=w.newHeight,this.props.grid){var k=p(x,this.props.grid[0]),C=p(E,this.props.grid[1]),A=this.props.snapGap||0;x=0===A||Math.abs(k-x)<=A?k:x,E=0===A||Math.abs(C-E)<=A?C:E}this.props.snap&&this.props.snap.x&&(x=v(x,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=v(E,this.props.snap.y,this.props.snapGap));var S={width:x-l.width,height:E-l.height};if(d&&"string"===typeof d)if(y(d,"%"))x=x/h.width*100+"%";else if(y(d,"vw")){x=x/this.window.innerWidth*100+"vw"}else if(y(d,"vh")){x=x/this.window.innerHeight*100+"vh"}if(f&&"string"===typeof f)if(y(f,"%"))E=E/h.height*100+"%";else if(y(f,"vw")){E=E/this.window.innerWidth*100+"vw"}else if(y(f,"vh")){E=E/this.window.innerHeight*100+"vh"}var O={width:this.createSizeForCssProperty(x,"width"),height:this.createSizeForCssProperty(E,"height")};"row"===this.flexDir?O.flexBasis=O.width:"column"===this.flexDir&&(O.flexBasis=O.height),this.setState(O),this.props.onResize&&this.props.onResize(e,c,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,i=t.original;if(n&&this.resizable){var o={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,o),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:d(d({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,i=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,u=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(s,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:i&&i[t],className:o&&o[t]},c&&c[t]?c[t]:null):null}));return r.createElement("div",{className:u,style:a},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==x.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=d(d(d({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return r.createElement(i,d({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent)},33485:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:i},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),i=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:i},n))};var i,o=n(67294),a=(i=o)&&i.__esModule?i:{default:i};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},36164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(54087),a=v(o),s=v(n(53879)),u=n(67294),c=v(n(45697)),l=v(n(77928)),d=v(n(66445)),f=v(n(18309)),h=v(n(51608)),p=v(n(43840)),m=n(58285),g=n(33485);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var E=function(e){function t(e){var n;y(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,s=e.scrollHeight,u=void 0===s?0:s,c=e.clientWidth,l=void 0===c?0:c,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-l)||0,top:i/(u-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:a,scrollHeight:u,clientWidth:l,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,o=r.clientWidth,a=(0,h.default)(this.trackHorizontal),s=Math.ceil(o/i*a);return a<=s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,o=r.clientHeight,a=(0,p.default)(this.trackVertical),s=Math.ceil(o/i*a);return a<=s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,h.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,p.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),o=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),o=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect().left;this.prevPageX=r-(n-i)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect().top;this.prevPageY=r-(n-i)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,i=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(i)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,d.default)()){var o=i.scrollLeft,a=i.clientWidth,u=i.scrollWidth,c=(0,h.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),f={width:l,transform:"translateX("+o/(u-a)*(c-l)+"px)"},m=i.scrollTop,g=i.clientHeight,v=i.scrollHeight,y=(0,p.default)(this.trackVertical),b=this.getThumbVerticalHeight(),E={height:b,transform:"translateY("+m/(v-g)*(y-b)+"px)"};if(r){var T={visibility:u>a?"visible":"hidden"},x={visibility:v>g?"visible":"hidden"};(0,s.default)(this.trackHorizontal,T),(0,s.default)(this.trackVertical,x)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,E)}n&&n(i),"function"===typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,i=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,f=n.tagName,h=(n.hideTracksWhenNotNeeded,n.autoHide),p=(n.autoHideTimeout,n.autoHideDuration),g=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,E=n.style,T=n.children,x=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),_=this.state.didMountUniversal,w=r({},m.containerStyleDefault,v&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),E),k=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},m.viewStyleAutoHeight,{minHeight:(0,l.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t}),v&&g&&!_&&{minHeight:y,maxHeight:b},g&&!_&&m.viewStyleUniversalInitial),C={transition:"opacity "+p+"ms",opacity:0},A=r({},m.trackHorizontalStyleDefault,h&&C,(!t||g&&!_)&&{display:"none"}),S=r({},m.trackVerticalStyleDefault,h&&C,(!t||g&&!_)&&{display:"none"});return(0,u.createElement)(f,r({},x,{style:w,ref:function(t){e.container=t}}),[(0,u.cloneElement)(i({style:k}),{key:"view",ref:function(t){e.view=t}},T),(0,u.cloneElement)(o({style:A}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(s({style:m.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(a({style:S}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(c({style:m.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=E,E.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},E.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},58285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},86658:function(e,t,n){"use strict";t.$B=void 0;var r,i=n(36164),o=(r=i)&&r.__esModule?r:{default:r};t.ZP=o.default,t.$B=o.default},43840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}},51608:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}},66445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e&&!1!==a)return a;if("undefined"!==typeof document){var t=document.createElement("div");(0,o.default)(t,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}else a=0;return a||0};var r,i=n(53879),o=(r=i)&&r.__esModule?r:{default:r};var a=!1},77928:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},18309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},24878:function(e,n,r){"use strict";r.d(n,{f$:function(){return Uo},s6:function(){return zo}});var i=r(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t){var n=new Set(t);return Object.assign.apply(Object,[{}].concat(s(Object.entries(e).filter((function(e){var t=a(e,1)[0];return!n.has(t)})).map((function(e){var t=a(e,2);return o({},t[0],t[1])})))))},d=r(23405),f=r.n(d);function h(e){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"===typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=function(e,t){var n="object"===h(t)?t:{wrapperElementType:t,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,o=void 0===r?"div":r,a=n.nodeMapper,s=void 0===a?function(e){return e}:a,u=n.methodNames,c=void 0===u?[]:u,d=n.initPropNames,g=void 0===d?[]:d;return(0,i.forwardRef)((function(t,n){var r=(0,i.useRef)(),a=p((0,i.useState)({}),2),u=a[0],d=a[1];(0,i.useEffect)((function(){return d(t)}));var h=(0,i.useMemo)((function(){var n=f()(g.filter((function(e){return t.hasOwnProperty(e)})).map((function(e){return[e,t[e]]})));return e(n)}),[]);(0,i.useLayoutEffect)((function(){h(s(r.current))}),[]),(0,i.useEffect)((function(){return h._destructor instanceof Function?h._destructor:void 0}),[]);var v=(0,i.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return h[e]instanceof Function?h[e].apply(h,n):void 0}),[h]),y=l(t,[].concat(m(c),m(g)));return Object.keys(y).filter((function(e){return u[e]!==t[e]})).forEach((function(e){return v(e,t[e])})),(0,i.useImperativeHandle)(n,(function(){return f()(c.map((function(e){return[e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v.apply(void 0,[e].concat(n))}]})))})),i.createElement(o,{ref:r})}))},b=(r(75569),r(60401),r(31359),r(44858)),E=r(92539);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"===typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".graph-nav-info {\n position: absolute;\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n font-family: Sans-serif;\n z-index: 1000;\n}");var S=(0,b.Z)({props:{width:{default:window.innerWidth,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.width=e)}},height:{default:window.innerHeight,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.height=e)}},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},backgroundColor:{default:"#002"},showNavInfo:{default:!0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeLabel:{default:"name"},nodeDesc:{default:"desc"},onNodeHover:{},onNodeClick:{},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkLabel:{default:"name"},linkDesc:{default:"desc"},onLinkHover:{},onLinkClick:{},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:x(x({},Object.assign.apply(Object,[{}].concat(k(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return _({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container),t.container.style.position="relative",t.container.style.width=t.width,t.container.style.height=t.height,t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="graph-nav-info",t.navInfo.textContent="Mouse drag: look, gamepad/arrow/wasd keys: move";var n,r,i,o,a,s=document.createElement("a-scene");s.setAttribute("embedded",""),s.appendChild(t.sky=document.createElement("a-sky")),t.sky.setAttribute("radius",3e3),s.appendChild(n=document.createElement("a-entity")),n.setAttribute("position","0 0 300"),n.setAttribute("movement-controls","fly: true; speed: 7"),n.appendChild(r=document.createElement("a-entity")),r.setAttribute("camera",""),r.setAttribute("position","0 0 0"),r.setAttribute("look-controls","reverseMouseDrag: false; pointerLockEnabled: false"),r.appendChild(i=document.createElement("a-text")),i.setAttribute("position","0 -0.3 -1"),i.setAttribute("width",2),i.setAttribute("align","center"),i.setAttribute("color","lavender"),i.setAttribute("value",""),r.appendChild(o=document.createElement("a-text")),o.setAttribute("position","0 -0.4 -1"),o.setAttribute("width",1.3),o.setAttribute("align","center"),o.setAttribute("color","lavender"),o.setAttribute("value",""),t.raycasterEls=[],s.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor","rayOrigin: mouse; mouseCursorStylesEnabled: true"),a.setAttribute("raycaster","objects: [forcegraph]; interval: 100"),t.raycasterEls.push(a),["left","right"].forEach((function(e){var r;n.appendChild(r=document.createElement("a-entity")),r.setAttribute("laser-controls","hand: ".concat(e)),r.setAttribute("raycaster","objects: [forcegraph]; interval: 100; lineColor: steelblue; lineOpacity: 0.85"),t.raycasterEls.push(r)})),s.appendChild(t.forcegraph=document.createElement("a-entity")),t.forcegraph.setAttribute("forcegraph",null),t.container.appendChild(s),t.forcegraph.setAttribute("forcegraph",Object.assign.apply(Object,k(["node","link"].map((function(e){var n={node:"Node",link:"Link"}[e];return _({},"on".concat(n,"Hover"),(function(r,a){var s=r&&(0,E.default)(t["".concat(e,"Label")])(r)||"",u=r&&(0,E.default)(t["".concat(e,"Desc")])(r)||"";i.setAttribute("value",s),o.setAttribute("value",u),t["on".concat(n,"Hover")]&&t["on".concat(n,"Hover")](r,a)}))})))))},update:function(e,t){t.hasOwnProperty("backgroundColor")&&e.sky.setAttribute("color",e.backgroundColor),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none");var n=["onNodeHover","onLinkHover","onNodeClick","onLinkClick"].some((function(t){return e[t]}));e.raycasterEls.forEach((function(e){return e.setAttribute("raycaster",n?"objects: [forcegraph]; interval: 100":"objects: __none__")}));var r=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","onNodeClick","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","onLinkClick","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],i=Object.assign.apply(Object,[{}].concat(k(Object.entries(e).filter((function(e){var n=w(e,2),i=n[0],o=n[1];return t.hasOwnProperty(i)&&-1!==r.indexOf(i)&&void 0!==o&&null!==o})).map((function(e){var t=w(e,2);return _({},t[0],t[1])}))),k(Object.entries(e.graphData).map((function(e){var t=w(e,2);return _({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",i)}}),O=r(45697),D=r.n(O);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"===typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var j=(0,b.Z)({props:{width:{},height:{},yOffset:{default:1.5},glScale:{default:200},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},onNodeHover:{},onNodeClick:{},onLinkHover:{},onLinkClick:{},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:N(N({},Object.assign.apply(Object,[{}].concat(P(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return R({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n[e].apply(n,i);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.markerAttrs,i=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var o=document.createElement("a-scene");o.setAttribute("embedded",""),o.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(i).forEach((function(e){var t=M(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),o.appendChild(s),o.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor"),a.setAttribute("raycaster","objects: [forcegraph]"),t.forcegraph=document.createElement("a-entity"),t.forcegraph.setAttribute("forcegraph",null),s.appendChild(t.forcegraph);var u=document.createElement("a-entity");u.setAttribute("camera",""),o.appendChild(u),t.container.appendChild(o)},update:function(e,t){t.hasOwnProperty("width")&&e.width&&(e.container.style.width=e.width),t.hasOwnProperty("height")&&e.height&&(e.container.style.height=e.height),t.hasOwnProperty("glScale")&&e.forcegraph.setAttribute("scale",P(new Array(3)).map((function(){return 1/e.glScale})).join(" ")),t.hasOwnProperty("yOffset")&&e.forcegraph.setAttribute("position","0 ".concat(e.yOffset," 0"));var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","onNodeHover","onNodeClick","onLinkHover","onLinkClick","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(P(Object.entries(e).filter((function(e){var r=M(e,2),i=r[0],o=r[1];return t.hasOwnProperty(i)&&-1!==n.indexOf(i)&&void 0!==o&&null!==o})).map((function(e){var t=M(e,2);return R({},t[0],t[1])}))),P(Object.entries(e.graphData).map((function(e){var t=M(e,2);return R({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),H=r(99477);const B=new H.JOQ,z=new H.iMs,U=new H.FM8,V=new H.Pa4,G=new H.Pa4,K=new H.Pa4,q=new H.yGw;class W extends H.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,i=null;const o=[],a=this;function s(){n.addEventListener("pointermove",c),n.addEventListener("pointerdown",l),n.addEventListener("pointerup",d),n.addEventListener("pointerleave",d)}function u(){n.removeEventListener("pointermove",c),n.removeEventListener("pointerdown",l),n.removeEventListener("pointerup",d),n.removeEventListener("pointerleave",d),n.style.cursor=""}function c(s){if(!1!==a.enabled){if(f(s),z.setFromCamera(U,t),r)return z.ray.intersectPlane(B,G)&&r.position.copy(G.sub(V).applyMatrix4(q)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0){const e=o[0].object;B.setFromNormalAndCoplanarPoint(t.getWorldDirection(B.normal),K.setFromMatrixPosition(e.matrixWorld)),i!==e&&null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null),i!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",i=e)}else null!==i&&(a.dispatchEvent({type:"hoveroff",object:i}),n.style.cursor="auto",i=null)}}function l(i){!1!==a.enabled&&(f(i),o.length=0,z.setFromCamera(U,t),z.intersectObjects(e,!0,o),o.length>0&&(r=!0===a.transformGroup?e[0]:o[0].object,B.setFromNormalAndCoplanarPoint(t.getWorldDirection(B.normal),K.setFromMatrixPosition(r.matrixWorld)),z.ray.intersectPlane(B,G)&&(q.copy(r.parent.matrixWorld).invert(),V.copy(G).sub(K.setFromMatrixPosition(r.matrixWorld))),n.style.cursor="move",a.dispatchEvent({type:"dragstart",object:r})))}function d(){!1!==a.enabled&&(r&&(a.dispatchEvent({type:"dragend",object:r}),r=null),n.style.cursor=i?"pointer":"auto")}function f(e){const t=n.getBoundingClientRect();U.x=(e.clientX-t.left)/t.width*2-1,U.y=-(e.clientY-t.top)/t.height*2+1}s(),this.enabled=!0,this.transformGroup=!1,this.activate=s,this.deactivate=u,this.dispose=function(){u()},this.getObjects=function(){return e},this.getRaycaster=function(){return z}}}var $=r(81398);const Z={type:"change"},Y={type:"start"},X={type:"end"};class Q extends H.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.');const n=this,r=-1,i=0,o=1,a=2,s=3,u=4;this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:H.RsA.ROTATE,MIDDLE:H.RsA.DOLLY,RIGHT:H.RsA.PAN},this.target=new H.Pa4;const c=1e-6,l=new H.Pa4;let d=1,f=r,h=r,p=0,m=0,g=0;const v=new H.Pa4,y=new H.FM8,b=new H.FM8,E=new H.Pa4,T=new H.FM8,x=new H.FM8,_=new H.FM8,w=new H.FM8,k=[],C={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){const e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};const A=function(){const e=new H.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),S=function(){const e=new H.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function O(e){!1!==n.enabled&&(0===k.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",D),n.domElement.addEventListener("pointerup",I)),function(e){k.push(e)}(e),"touch"===e.pointerType?function(e){switch(j(e),k.length){case 1:f=s,b.copy(S(k[0].pageX,k[0].pageY)),y.copy(b);break;default:f=u;const e=k[0].pageX-k[1].pageX,t=k[0].pageY-k[1].pageY;m=p=Math.sqrt(e*e+t*t);const n=(k[0].pageX+k[1].pageX)/2,r=(k[0].pageY+k[1].pageY)/2;_.copy(A(n,r)),w.copy(_)}n.dispatchEvent(Y)}(e):function(e){if(f===r)switch(e.button){case n.mouseButtons.LEFT:f=i;break;case n.mouseButtons.MIDDLE:f=o;break;case n.mouseButtons.RIGHT:f=a;break;default:f=r}const t=h!==r?h:f;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||(_.copy(A(e.pageX,e.pageY)),w.copy(_)):(T.copy(A(e.pageX,e.pageY)),x.copy(T)):(b.copy(S(e.pageX,e.pageY)),y.copy(b));n.dispatchEvent(Y)}(e))}function D(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(j(e),k.length){case 1:y.copy(b),b.copy(S(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===k[0].pointerId?k[1]:k[0];return C[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;m=Math.sqrt(n*n+r*r);const i=(e.pageX+t.x)/2,o=(e.pageY+t.y)/2;w.copy(A(i,o))}}(e):function(e){const t=h!==r?h:f;t!==i||n.noRotate?t!==o||n.noZoom?t!==a||n.noPan||w.copy(A(e.pageX,e.pageY)):x.copy(A(e.pageX,e.pageY)):(y.copy(b),b.copy(S(e.pageX,e.pageY)))}(e))}function I(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(k.length){case 0:f=r;break;case 1:f=s,b.copy(S(e.pageX,e.pageY)),y.copy(b);break;case 2:f=u,b.copy(S(e.pageX-y.pageX,e.pageY-y.pageY)),y.copy(b)}n.dispatchEvent(X)}(e):(f=r,n.dispatchEvent(X)),F(e),0===k.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",D),n.domElement.removeEventListener("pointerup",I)))}function N(e){F(e)}function R(e){!1!==n.enabled&&(window.removeEventListener("keydown",R),h===r&&(e.code!==n.keys[i]||n.noRotate?e.code!==n.keys[o]||n.noZoom?e.code!==n.keys[a]||n.noPan||(h=a):h=o:h=i))}function M(){!1!==n.enabled&&(h=r,window.addEventListener("keydown",R))}function P(e){if(!1!==n.enabled&&!0!==n.noZoom){switch(e.preventDefault(),e.deltaMode){case 2:T.y-=.025*e.deltaY;break;case 1:T.y-=.01*e.deltaY;break;default:T.y-=25e-5*e.deltaY}n.dispatchEvent(Y),n.dispatchEvent(X)}}function L(e){!1!==n.enabled&&e.preventDefault()}function F(e){delete C[e.pointerId];for(let t=0;t<k.length;t++)if(k[t].pointerId==e.pointerId)return void k.splice(t,1)}function j(e){let t=C[e.pointerId];void 0===t&&(t=new H.FM8,C[e.pointerId]=t),t.set(e.pageX,e.pageY)}this.rotateCamera=function(){const e=new H.Pa4,t=new H._fP,r=new H.Pa4,i=new H.Pa4,o=new H.Pa4,a=new H.Pa4;return function(){a.set(b.x-y.x,b.y-y.y,0);let s=a.length();s?(v.copy(n.object.position).sub(n.target),r.copy(v).normalize(),i.copy(n.object.up).normalize(),o.crossVectors(i,r).normalize(),i.setLength(b.y-y.y),o.setLength(b.x-y.x),a.copy(i.add(o)),e.crossVectors(a,v).normalize(),s*=n.rotateSpeed,t.setFromAxisAngle(e,s),v.applyQuaternion(t),n.object.up.applyQuaternion(t),E.copy(e),g=s):!n.staticMoving&&g&&(g*=Math.sqrt(1-n.dynamicDampingFactor),v.copy(n.object.position).sub(n.target),t.setFromAxisAngle(E,g),v.applyQuaternion(t),n.object.up.applyQuaternion(t)),y.copy(b)}}(),this.zoomCamera=function(){let e;f===u?(e=p/m,p=m,n.object.isPerspectiveCamera?v.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(e=1+(x.y-T.y)*n.zoomSpeed,1!==e&&e>0&&(n.object.isPerspectiveCamera?v.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?T.copy(x):T.y+=(x.y-T.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new H.FM8,t=new H.Pa4,r=new H.Pa4;return function(){if(e.copy(w).sub(_),e.lengthSq()){if(n.object.isOrthographicCamera){const t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(v.length()*n.panSpeed),r.copy(v).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?_.copy(w):_.add(e.subVectors(w,_).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(v.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,v.setLength(n.maxDistance)),T.copy(x)),v.lengthSq()<n.minDistance*n.minDistance&&(n.object.position.addVectors(n.target,v.setLength(n.minDistance)),T.copy(x)))},this.update=function(){v.subVectors(n.object.position,n.target),n.noRotate||n.rotateCamera(),n.noZoom||n.zoomCamera(),n.noPan||n.panCamera(),n.object.position.addVectors(n.target,v),n.object.isPerspectiveCamera?(n.checkDistances(),n.object.lookAt(n.target),l.distanceToSquared(n.object.position)>c&&(n.dispatchEvent(Z),l.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(l.distanceToSquared(n.object.position)>c||d!==n.object.zoom)&&(n.dispatchEvent(Z),l.copy(n.object.position),d=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){f=r,h=r,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),v.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent(Z),l.copy(n.object.position),d=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",L),n.domElement.removeEventListener("pointerdown",O),n.domElement.removeEventListener("pointercancel",N),n.domElement.removeEventListener("wheel",P),n.domElement.removeEventListener("pointermove",D),n.domElement.removeEventListener("pointerup",I),window.removeEventListener("keydown",R),window.removeEventListener("keyup",M)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",O),this.domElement.addEventListener("pointercancel",N),this.domElement.addEventListener("wheel",P,{passive:!1}),window.addEventListener("keydown",R),window.addEventListener("keyup",M),this.handleResize(),this.update()}}const J={type:"change"},ee={type:"start"},te={type:"end"};class ne extends H.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new H.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:H.RsA.ROTATE,MIDDLE:H.RsA.DOLLY,RIGHT:H.RsA.PAN},this.touches={ONE:H.QmN.ROTATE,TWO:H.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",G),this._domElementKeyEvents=e},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(J),n.update(),i=r.NONE},this.update=function(){const t=new H.Pa4,d=(new H._fP).setFromUnitVectors(e.up,new H.Pa4(0,1,0)),f=d.clone().invert(),h=new H.Pa4,p=new H._fP,m=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(d),a.setFromVector3(t),n.autoRotate&&i===r.NONE&&_(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let g=n.minAzimuthAngle,v=n.maxAzimuthAngle;return isFinite(g)&&isFinite(v)&&(g<-Math.PI?g+=m:g>Math.PI&&(g-=m),v<-Math.PI?v+=m:v>Math.PI&&(v-=m),a.theta=g<=v?Math.max(g,Math.min(v,a.theta)):a.theta>(g+v)/2?Math.max(g,a.theta):Math.min(v,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),a.radius*=u,a.radius=Math.max(n.minDistance,Math.min(n.maxDistance,a.radius)),!0===n.enableDamping?n.target.addScaledVector(c,n.dampingFactor):n.target.add(c),t.setFromSpherical(a),t.applyQuaternion(f),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,c.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),c.set(0,0,0)),u=1,!!(l||h.distanceToSquared(n.object.position)>o||8*(1-p.dot(n.object.quaternion))>o)&&(n.dispatchEvent(J),h.copy(n.object.position),p.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",K),n.domElement.removeEventListener("pointerdown",j),n.domElement.removeEventListener("pointercancel",U),n.domElement.removeEventListener("wheel",V),n.domElement.removeEventListener("pointermove",B),n.domElement.removeEventListener("pointerup",z),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",G)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let i=r.NONE;const o=1e-6,a=new H.$V,s=new H.$V;let u=1;const c=new H.Pa4;let l=!1;const d=new H.FM8,f=new H.FM8,h=new H.FM8,p=new H.FM8,m=new H.FM8,g=new H.FM8,v=new H.FM8,y=new H.FM8,b=new H.FM8,E=[],T={};function x(){return Math.pow(.95,n.zoomSpeed)}function _(e){s.theta-=e}function w(e){s.phi-=e}const k=function(){const e=new H.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),c.add(e)}}(),C=function(){const e=new H.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),c.add(e)}}(),A=function(){const e=new H.Pa4;return function(t,r){const i=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;e.copy(o).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),k(2*t*a/i.clientHeight,n.object.matrix),C(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(k(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),C(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function S(e){n.object.isPerspectiveCamera?u/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function O(e){n.object.isPerspectiveCamera?u*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function D(e){d.set(e.clientX,e.clientY)}function I(e){p.set(e.clientX,e.clientY)}function N(){if(1===E.length)d.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);d.set(e,t)}}function R(){if(1===E.length)p.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);p.set(e,t)}}function M(){const e=E[0].pageX-E[1].pageX,t=E[0].pageY-E[1].pageY,n=Math.sqrt(e*e+t*t);v.set(0,n)}function P(e){if(1==E.length)f.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}h.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;_(2*Math.PI*h.x/t.clientHeight),w(2*Math.PI*h.y/t.clientHeight),d.copy(f)}function L(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}g.subVectors(m,p).multiplyScalar(n.panSpeed),A(g.x,g.y),p.copy(m)}function F(e){const t=$(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);y.set(0,o),b.set(0,Math.pow(y.y/v.y,n.zoomSpeed)),S(b.y),v.copy(y)}function j(e){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",B),n.domElement.addEventListener("pointerup",z)),function(e){E.push(e)}(e),"touch"===e.pointerType?function(e){switch(W(e),E.length){case 1:switch(n.touches.ONE){case H.QmN.ROTATE:if(!1===n.enableRotate)return;N(),i=r.TOUCH_ROTATE;break;case H.QmN.PAN:if(!1===n.enablePan)return;R(),i=r.TOUCH_PAN;break;default:i=r.NONE}break;case 2:switch(n.touches.TWO){case H.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&M(),n.enablePan&&R(),i=r.TOUCH_DOLLY_PAN;break;case H.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&M(),n.enableRotate&&N(),i=r.TOUCH_DOLLY_ROTATE;break;default:i=r.NONE}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(ee)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case H.RsA.DOLLY:if(!1===n.enableZoom)return;!function(e){v.set(e.clientX,e.clientY)}(e),i=r.DOLLY;break;case H.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;I(e),i=r.PAN}else{if(!1===n.enableRotate)return;D(e),i=r.ROTATE}break;case H.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;D(e),i=r.ROTATE}else{if(!1===n.enablePan)return;I(e),i=r.PAN}break;default:i=r.NONE}i!==r.NONE&&n.dispatchEvent(ee)}(e))}function B(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(W(e),i){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;P(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;L(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&F(e),n.enablePan&&L(e)}(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&F(e),n.enableRotate&&P(e)}(e),n.update();break;default:i=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(i){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),h.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;_(2*Math.PI*h.x/t.clientHeight),w(2*Math.PI*h.y/t.clientHeight),d.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;!function(e){y.set(e.clientX,e.clientY),b.subVectors(y,v),b.y>0?S(x()):b.y<0&&O(x()),v.copy(y),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){m.set(e.clientX,e.clientY),g.subVectors(m,p).multiplyScalar(n.panSpeed),A(g.x,g.y),p.copy(m),n.update()}(e)}}(e))}function z(e){q(e),0===E.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",B),n.domElement.removeEventListener("pointerup",z)),n.dispatchEvent(te),i=r.NONE}function U(e){q(e)}function V(e){!1!==n.enabled&&!1!==n.enableZoom&&i===r.NONE&&(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?O(x()):e.deltaY>0&&S(x()),n.update()}(e),n.dispatchEvent(te))}function G(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:A(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:A(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:A(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:A(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function K(e){!1!==n.enabled&&e.preventDefault()}function q(e){delete T[e.pointerId];for(let t=0;t<E.length;t++)if(E[t].pointerId==e.pointerId)return void E.splice(t,1)}function W(e){let t=T[e.pointerId];void 0===t&&(t=new H.FM8,T[e.pointerId]=t),t.set(e.pageX,e.pageY)}function $(e){const t=e.pointerId===E[0].pointerId?E[1]:E[0];return T[t.pointerId]}n.domElement.addEventListener("contextmenu",K),n.domElement.addEventListener("pointerdown",j),n.domElement.addEventListener("pointercancel",U),n.domElement.addEventListener("wheel",V,{passive:!1}),this.update()}}const re={type:"change"};class ie extends H.pBf{constructor(e,t){super(),void 0===t&&(console.warn('THREE.FlyControls: The second parameter "domElement" is now mandatory.'),t=document),this.object=e,this.domElement=t,this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1;const n=this,r=1e-6,i=new H._fP,o=new H.Pa4;this.tmpQuaternion=new H._fP,this.mouseStatus=0,this.moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this.moveVector=new H.Pa4(0,0,0),this.rotationVector=new H.Pa4(0,0,0),this.keydown=function(e){if(!e.altKey){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this.moveState.forward=1;break;case"KeyS":this.moveState.back=1;break;case"KeyA":this.moveState.left=1;break;case"KeyD":this.moveState.right=1;break;case"KeyR":this.moveState.up=1;break;case"KeyF":this.moveState.down=1;break;case"ArrowUp":this.moveState.pitchUp=1;break;case"ArrowDown":this.moveState.pitchDown=1;break;case"ArrowLeft":this.moveState.yawLeft=1;break;case"ArrowRight":this.moveState.yawRight=1;break;case"KeyQ":this.moveState.rollLeft=1;break;case"KeyE":this.moveState.rollRight=1}this.updateMovementVector(),this.updateRotationVector()}},this.keyup=function(e){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this.moveState.forward=0;break;case"KeyS":this.moveState.back=0;break;case"KeyA":this.moveState.left=0;break;case"KeyD":this.moveState.right=0;break;case"KeyR":this.moveState.up=0;break;case"KeyF":this.moveState.down=0;break;case"ArrowUp":this.moveState.pitchUp=0;break;case"ArrowDown":this.moveState.pitchDown=0;break;case"ArrowLeft":this.moveState.yawLeft=0;break;case"ArrowRight":this.moveState.yawRight=0;break;case"KeyQ":this.moveState.rollLeft=0;break;case"KeyE":this.moveState.rollRight=0}this.updateMovementVector(),this.updateRotationVector()},this.mousedown=function(e){if(this.dragToLook)this.mouseStatus++;else{switch(e.button){case 0:this.moveState.forward=1;break;case 2:this.moveState.back=1}this.updateMovementVector()}},this.mousemove=function(e){if(!this.dragToLook||this.mouseStatus>0){const t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.mouseup=function(e){if(this.dragToLook)this.mouseStatus--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()},this.update=function(e){const t=e*n.movementSpeed,a=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*a,n.rotationVector.y*a,n.rotationVector.z*a,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(o.distanceToSquared(n.object.position)>r||8*(1-i.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),i.copy(n.object.quaternion),o.copy(n.object.position))},this.updateMovementVector=function(){const e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",oe),this.domElement.removeEventListener("mousedown",s),this.domElement.removeEventListener("mousemove",a),this.domElement.removeEventListener("mouseup",u),window.removeEventListener("keydown",c),window.removeEventListener("keyup",l)};const a=this.mousemove.bind(this),s=this.mousedown.bind(this),u=this.mouseup.bind(this),c=this.keydown.bind(this),l=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",oe),this.domElement.addEventListener("mousemove",a),this.domElement.addEventListener("mousedown",s),this.domElement.addEventListener("mouseup",u),window.addEventListener("keydown",c),window.addEventListener("keyup",l),this.updateMovementVector(),this.updateRotationVector()}}function oe(e){e.preventDefault()}var ae={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"};class se{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const ue=new H.iKG(-1,1,1,-1,0,1),ce=new H.u9r;ce.setAttribute("position",new H.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),ce.setAttribute("uv",new H.a$l([0,2,0,0,2,0],2));class le{constructor(e){this._mesh=new H.Kj0(ce,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,ue)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class de extends se{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof H.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=H.rDY.clone(e.uniforms),this.material=new H.jyz({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new le(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}}class fe extends se{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){const r=e.getContext(),i=e.state;let o,a;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,o,4294967295),i.buffers.stencil.setClear(a),i.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class he extends se{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class pe{constructor(e,t){if(this.renderer=e,void 0===t){const n={minFilter:H.wem,magFilter:H.wem,format:H.wk1},r=e.getSize(new H.FM8);this._pixelRatio=e.getPixelRatio(),this._width=r.width,this._height=r.height,(t=new H.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,n)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===ae&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===de&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new de(ae),this.clock=new H.SUY}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t<this.passes.length;t++)if(this.passes[t].enabled)return!1;return!0}render(e){void 0===e&&(e=this.clock.getDelta());const t=this.renderer.getRenderTarget();let n=!1;for(let r=0,i=this.passes.length;r<i;r++){const t=this.passes[r];if(!1!==t.enabled){if(t.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(r),t.render(this.renderer,this.writeBuffer,this.readBuffer,e,n),t.needsSwap){if(n){const t=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(t.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),n.setFunc(t.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==fe&&(t instanceof fe?n=!0:t instanceof he&&(n=!1))}}this.renderer.setRenderTarget(t)}reset(e){if(void 0===e){const t=this.renderer.getSize(new H.FM8);this._pixelRatio=this.renderer.getPixelRatio(),this._width=t.width,this._height=t.height,(e=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(e,t){this._width=e,this._height=t;const n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let i=0;i<this.passes.length;i++)this.passes[i].setSize(n,r)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}}new H.iKG(-1,1,1,-1,0,1);const me=new H.u9r;me.setAttribute("position",new H.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),me.setAttribute("uv",new H.a$l([0,2,0,0,2,0],2));class ge extends se{constructor(e,t,n,r,i){super(),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==i?i:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new H.Ilk}render(e,t,n){const r=e.autoClear;let i,o;e.autoClear=!1,void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),i=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:n),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor&&e.setClearColor(this._oldClearColor,i),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),e.autoClear=r}}var ve=r(87462),ye=r(97326),be=r(94578);function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=r(89611);function xe(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _e(e,t,n){return(_e=xe()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,Te.Z)(i,n.prototype),i}).apply(null,arguments)}function we(e){var t="function"===typeof Map?new Map:void 0;return(we=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _e(e,arguments,Ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,Te.Z)(r,e)})(e)}var ke=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,ye.Z)(n)}return(0,be.Z)(t,e),t}(we(Error));function Ce(e){return Math.round(255*e)}function Ae(e,t,n){return Ce(e)+","+Ce(t)+","+Ce(n)}function Se(e,t,n,r){if(void 0===r&&(r=Ae),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(i%2-1)),s=0,u=0,c=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,c=a):i>=3&&i<4?(u=a,c=o):i>=4&&i<5?(s=a,c=o):i>=5&&i<6&&(s=o,c=a);var l=n-o/2;return r(s+l,u+l,c+l)}var Oe={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var De=/^#[a-fA-F0-9]{6}$/,Ie=/^#[a-fA-F0-9]{8}$/,Ne=/^#[a-fA-F0-9]{3}$/,Re=/^#[a-fA-F0-9]{4}$/,Me=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Pe=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Le=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Fe=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function je(e){if("string"!==typeof e)throw new ke(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Oe[t]?"#"+Oe[t]:e}(e);if(t.match(De))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Ie)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Ne))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Re)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=Me.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=Pe.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var a=Le.exec(t);if(a){var s="rgb("+Se(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Me.exec(s);if(!u)throw new ke(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=Fe.exec(t.substring(0,50));if(c){var l="rgb("+Se(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Me.exec(l);if(!d)throw new ke(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])}}throw new ke(5)}var He=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Be(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ze(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return He("#"+Be(e)+Be(t)+Be(n));if("object"===typeof e&&void 0===t&&void 0===n)return He("#"+Be(e.red)+Be(e.green)+Be(e.blue));throw new ke(6)}function Ue(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var i=je(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?ze(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ze(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}function Ve(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ve(e,t,r)}}function Ge(e){return Ve(e,e.length,[])}function Ke(e,t,n){return Math.max(e,Math.min(t,n))}function qe(e,t){if("transparent"===t)return t;var n=je(t),r="number"===typeof n.alpha?n.alpha:1;return Ue((0,ve.Z)({},n,{alpha:Ke(0,1,(100*r+100*parseFloat(e))/100)}))}var We=Ge(qe);var $e=r(36194);function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Qe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){if(e){if("string"===typeof e)return Je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}");var et=window.THREE?window.THREE:{WebGLRenderer:H.CP7,Scene:H.xsS,PerspectiveCamera:H.cPb,Raycaster:H.iMs,TextureLoader:H.dpR,Vector2:H.FM8,Vector3:H.Pa4,Box3:H.ZzF,Color:H.Ilk,Mesh:H.Kj0,SphereGeometry:H.xo$,MeshBasicMaterial:H.vBJ,BackSide:H._Li,EventDispatcher:H.pBf,MOUSE:H.RsA,Quaternion:H._fP,Spherical:H.$V,Clock:H.SUY},tt=(0,b.Z)({props:{width:{default:window.innerWidth,onChange:function(e,t,n){isNaN(e)&&(t.width=n)}},height:{default:window.innerHeight,onChange:function(e,t,n){isNaN(e)&&(t.height=n)}},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null,t.toolTipElem&&(t.toolTipElem.innerHTML="")},triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{default:function(){return-1},triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(e){if(e.initialised){if(e.controls.update&&e.controls.update(e.clock.getDelta()),e.postProcessingComposer?e.postProcessingComposer.render():e.renderer.render(e.scene,e.camera),e.extraRenderers.forEach((function(t){return t.render(e.scene,e.camera)})),e.enablePointerInteraction){var t=null;if(e.hoverDuringDrag||!e.isPointerDragging){var n=this.intersectingObjects(e.pointerPos.x,e.pointerPos.y).filter((function(t){return e.hoverFilter(t.object)})).sort((function(t,n){return e.hoverOrderComparator(t.object,n.object)})),r=n.length?n[0]:null;t=r?r.object:null,e.intersectionPoint=r?r.point:null}t!==e.hoverObj&&(e.onHover(t,e.hoverObj),e.toolTipElem.innerHTML=t&&(0,E.default)(e.tooltipContent)(t)||"",e.hoverObj=t)}$e.ZP.update()}return this},getPointerPos:function(e){var t=e.pointerPos;return{x:t.x,y:t.y}},cameraPosition:function(e,t,n,r){var i=e.camera;if(t&&e.initialised){var o=t,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},i.position),u=d();new $e.ZP.Tween(s).to(o,r).easing($e.ZP.Easing.Quadratic.Out).onUpdate(c).start(),new $e.ZP.Tween(u).to(a,r/3).easing($e.ZP.Easing.Quadratic.Out).onUpdate(l).start()}else c(o),l(a);return this}return Object.assign({},i.position,{lookAt:d()});function c(e){var t=e.x,n=e.y,r=e.z;void 0!==t&&(i.position.x=t),void 0!==n&&(i.position.y=n),void 0!==r&&(i.position.z=r)}function l(t){e.controls.target=new et.Vector3(t.x,t.y,t.z)}function d(){return Object.assign(new et.Vector3(0,0,-1e3).applyQuaternion(i.quaternion).add(i.position))}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.fitToBbox(this.getBbox.apply(this,i),t,n)},fitToBbox:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e.camera;if(t){var o=new et.Vector3(0,0,0),a=2*Math.max.apply(Math,Xe(Object.entries(t).map((function(e){var t=Ye(e,2),n=t[0],r=t[1];return Math.max.apply(Math,Xe(r.map((function(e){return Math.abs(o[n]-e)}))))})))),s=(1-2*r/e.height)*i.fov,u=a/Math.atan(s*Math.PI/180),c=u/i.aspect,l=Math.max(u,c);if(l>0){var d=o.clone().sub(i.position).normalize().multiplyScalar(-l);this.cameraPosition(d,o,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new et.Box3(new et.Vector3(0,0,0),new et.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,Xe(["x","y","z"].map((function(e){return Ze({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var i=new et.Vector3(t,n,r);return i.project(this.camera()),{x:(i.x+1)*e.width/2,y:-(i.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new et.Raycaster;return o.setFromCamera(i,e.camera),Object.assign({},o.ray.at(r,new et.Vector3))},intersectingObjects:function(e,t,n){var r=new et.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new et.Raycaster;return i.params.Line.threshold=e.lineHoverPrecision,i.setFromCamera(r,e.camera),i.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new et.Scene,camera:new et.PerspectiveCamera,clock:new et.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.rendererConfig,a=void 0===o?{}:o,s=n.extraRenderers,u=void 0===s?[]:s,c=n.waitForLoadComplete,l=void 0===c||c;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[i]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new et.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach((function(e){return t.container.addEventListener(e,(function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(t.container);t.pointerPos.x=n.pageX-r.left,t.pointerPos.y=n.pageY-r.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, 21px)")}}),{passive:!0})})),t.container.addEventListener("pointerup",(function(e){t.isPointerPressed=!1,t.isPointerDragging&&(t.isPointerDragging=!1,!t.clickAfterDrag)||requestAnimationFrame((function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)}))}),{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",(function(e){t.onRightClick&&e.preventDefault()})),t.renderer=new et.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=u,t.extraRenderers.forEach((function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)})),t.postProcessingComposer=new pe(t.renderer),t.postProcessingComposer.addPass(new ge(t.scene,t.camera)),t.controls=new{trackball:Q,orbit:ne,fly:ie}[i](t.camera,t.renderer.domElement),"fly"===i&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==i&&"orbit"!==i||(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",(function(){t.controlsEngaged=!0})),t.controls.addEventListener("change",(function(){t.controlsEngaged&&(t.controlsDragging=!0)})),t.controls.addEventListener("end",(function(){t.controlsEngaged=!1,t.controlsDragging=!1}))),[t.renderer,t.postProcessingComposer].concat(Xe(t.extraRenderers)).forEach((function(e){return e.setSize(t.width,t.height)})),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new et.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!l,window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width=e.width,e.container.style.height=e.height,[e.renderer,e.postProcessingComposer].concat(Xe(e.extraRenderers)).forEach((function(t){return t.setSize(e.width,e.height)})),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=e.skyRadius),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new et.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=je(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new et.Color(We(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new et.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new et.MeshBasicMaterial({map:t,side:et.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),!e.loadComplete&&r()})):(e.skysphere.visible=!1,e.skysphere.material.map=null,!e.loadComplete&&r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach((function(t){return e.scene.remove(t)})),e.objects.forEach((function(t){return e.scene.add(t)})))}});function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e){return function(e){if(Array.isArray(e))return at(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function st(e,t){var n=new t;return{linkProp:function(t){return{default:n[t](),onChange:function(n,r){r[e][t](n)},triggerUpdate:!1}},linkMethod:function(t){return function(n){for(var r=n[e],i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r[t].apply(r,o);return s===r?this:s}}}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".graph-info-msg {\n top: 50%;\n width: 100%;\n text-align: center;\n color: lavender;\n opacity: 0.7;\n font-size: 22px;\n position: absolute;\n font-family: Sans-serif;\n}\n\n.scene-container .clickable {\n cursor: pointer;\n}\n\n.scene-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.scene-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}");var ut=window.THREE?window.THREE:{AmbientLight:H.Mig,DirectionalLight:H.Ox3,Vector3:H.Pa4},ct=st("forceGraph",$.default),lt=Object.assign.apply(Object,ot(["jsonUrl","graphData","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeColor","nodeAutoColorBy","nodeOpacity","nodeVisibility","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaDecay","d3VelocityDecay","d3AlphaMin","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return it({},e,ct.linkProp(e))})))),dt=Object.assign.apply(Object,ot(["refresh","getGraphBbox","d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return it({},e,ct.linkMethod(e))})))),ft=st("renderObjs",tt),ht=Object.assign.apply(Object,ot(["width","height","backgroundColor","showNavInfo","enablePointerInteraction"].map((function(e){return it({},e,ft.linkProp(e))})))),pt=Object.assign.apply(Object,ot(["cameraPosition","postProcessingComposer"].map((function(e){return it({},e,ft.linkMethod(e))}))).concat([{graph2ScreenCoords:ft.linkMethod("getScreenCoords"),screen2GraphCoords:ft.linkMethod("getSceneCoords")}]));function mt(e){for(var t=e;t&&!t.hasOwnProperty("__graphObjType");)t=t.parent;return t}var gt=(0,b.Z)({props:rt(rt({nodeLabel:{default:"name",triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:1,onChange:function(e,t){return t.renderObjs.lineHoverPrecision(e)},triggerUpdate:!1},enableNavigationControls:{default:!0,onChange:function(e,t){var n=t.renderObjs.controls();n&&(n.enabled=e)},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1}},lt),ht),methods:rt(rt({zoomToFit:function(e,t,n){for(var r,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return e.renderObjs.fitToBbox((r=e.forceGraph).getGraphBbox.apply(r,o),t,n),this},pauseAnimation:function(e){return null!==e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return null===e.animationFrameRequestId&&this._animationCycle(),this},_animationCycle:function(e){e.enablePointerInteraction&&(this.renderer().domElement.style.cursor=null),e.forceGraph.tickFrame(),e.renderObjs.tick(),e.animationFrameRequestId=requestAnimationFrame(this._animationCycle)},scene:function(e){return e.renderObjs.scene()},camera:function(e){return e.renderObjs.camera()},renderer:function(e){return e.renderObjs.renderer()},controls:function(e){return e.renderObjs.controls()},tbControls:function(e){return e.renderObjs.tbControls()},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},dt),pt),stateInit:function(e){var t=e.controlType,n=e.rendererConfig,r=e.extraRenderers;return{forceGraph:new $.default,renderObjs:tt({controlType:t,rendererConfig:n,extraRenderers:r})}},init:function(e,t){e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.style.position="relative";var n=document.createElement("div");t.container.appendChild(n),t.renderObjs(n);var r,i=t.renderObjs.camera(),o=t.renderObjs.renderer(),a=t.renderObjs.controls();a.enabled=!!t.enableNavigationControls,t.lastSetCameraZ=i.position.z,t.container.appendChild(r=document.createElement("div")),r.className="graph-info-msg",r.textContent="",t.forceGraph.onLoading((function(){r.textContent="Loading..."})).onFinishLoading((function(){r.textContent=""})).onUpdate((function(){t.graphData=t.forceGraph.graphData(),0===i.position.x&&0===i.position.y&&i.position.z===t.lastSetCameraZ&&t.graphData.nodes.length&&(i.lookAt(t.forceGraph.position),t.lastSetCameraZ=i.position.z=170*Math.cbrt(t.graphData.nodes.length))})).onFinishUpdate((function(){if(t._dragControls){var e=t.graphData.nodes.find((function(e){return e.__initialFixedPos&&!e.__disposeControlsAfterDrag}));e?e.__disposeControlsAfterDrag=!0:t._dragControls.dispose(),t._dragControls=void 0}if(t.enableNodeDrag&&t.enablePointerInteraction&&"d3"===t.forceEngine){var n=t._dragControls=new W(t.graphData.nodes.map((function(e){return e.__threeObj})).filter((function(e){return e})),i,o.domElement);n.addEventListener("dragstart",(function(e){a.enabled=!1,e.object.__initialPos=e.object.position.clone(),e.object.__prevPos=e.object.position.clone();var t=mt(e.object).__data;!t.__initialFixedPos&&(t.__initialFixedPos={fx:t.fx,fy:t.fy,fz:t.fz}),!t.__initialPos&&(t.__initialPos={x:t.x,y:t.y,z:t.z}),["x","y","z"].forEach((function(e){return t["f".concat(e)]=t[e]})),o.domElement.classList.add("grabbable")})),n.addEventListener("drag",(function(e){var n=mt(e.object);if(!e.object.hasOwnProperty("__graphObjType")){var r=e.object.__initialPos,i=e.object.__prevPos,o=e.object.position;n.position.add(o.clone().sub(i)),i.copy(o),o.copy(r)}var a=n.__data,s=n.position,u={x:s.x-a.x,y:s.y-a.y,z:s.z-a.z};["x","y","z"].forEach((function(e){return a["f".concat(e)]=a[e]=s[e]})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),a.__dragged=!0,t.onNodeDrag(a,u)})),n.addEventListener("dragend",(function(e){delete e.object.__initialPos,delete e.object.__prevPos;var r=mt(e.object).__data;r.__disposeControlsAfterDrag&&(n.dispose(),delete r.__disposeControlsAfterDrag);var i=r.__initialFixedPos,s=r.__initialPos,u={x:s.x-r.x,y:s.y-r.y,z:s.z-r.z};i&&(["x","y","z"].forEach((function(e){var t="f".concat(e);void 0===i[t]&&delete r[t]})),delete r.__initialFixedPos,delete r.__initialPos,r.__dragged&&(delete r.__dragged,t.onNodeDragEnd(r,u))),t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.enableNavigationControls&&(a.enabled=!0,a.domElement&&a.domElement.ownerDocument&&a.domElement.ownerDocument.dispatchEvent(new PointerEvent("pointerup",{pointerType:"touch"}))),o.domElement.classList.remove("grabbable")}))}})),t.renderObjs.objects([new ut.AmbientLight(12303291),new ut.DirectionalLight(16777215,.6),t.forceGraph]).hoverOrderComparator((function(e,t){var n=mt(e);if(!n)return 1;var r=mt(t);if(!r)return-1;var i=function(e){return"node"===e.__graphObjType};return i(r)-i(n)})).tooltipContent((function(e){var n=mt(e);return n&&(0,E.default)(t["".concat(n.__graphObjType,"Label")])(n.__data)||""})).hoverDuringDrag(!1).onHover((function(e){var n=mt(e);if(n!==t.hoverObj){var r=t.hoverObj?t.hoverObj.__graphObjType:null,i=t.hoverObj?t.hoverObj.__data:null,a=n?n.__graphObjType:null,s=n?n.__data:null;if(r&&r!==a){var u=t["on".concat("node"===r?"Node":"Link","Hover")];u&&u(null,i)}if(a){var c=t["on".concat("node"===a?"Node":"Link","Hover")];c&&c(s,r===a?i:null)}o.domElement.classList[n&&t["on".concat("node"===a?"Node":"Link","Click")]||!n&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=n}})).clickAfterDrag(!1).onClick((function(e,n){var r=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","Click")];i&&i(r.__data,n)}else t.onBackgroundClick&&t.onBackgroundClick(n)})).onRightClick((function(e,n){var r=mt(e);if(r){var i=t["on".concat("node"===r.__graphObjType?"Node":"Link","RightClick")];i&&i(r.__data,n)}else t.onBackgroundRightClick&&t.onBackgroundRightClick(n)})),this._animationCycle()}}),vt=r(92809);function yt(){}function bt(e){return null==e?yt:function(){return this.querySelector(e)}}function Et(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Tt(){return[]}function xt(e){return null==e?Tt:function(){return this.querySelectorAll(e)}}function _t(e){return function(){return this.matches(e)}}function wt(e){return function(t){return t.matches(e)}}var kt=Array.prototype.find;function Ct(){return this.firstElementChild}var At=Array.prototype.filter;function St(){return Array.from(this.children)}function Ot(e){return new Array(e.length)}function Dt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function It(e){return function(){return e}}function Nt(e,t,n,r,i,o){for(var a,s=0,u=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Dt(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function Rt(e,t,n,r,i,o,a){var s,u,c,l=new Map,d=t.length,f=o.length,h=new Array(d);for(s=0;s<d;++s)(u=t[s])&&(h[s]=c=a.call(u,u.__data__,s,t)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(e,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new Dt(e,o[s]);for(s=0;s<d;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function Mt(e){return e.__data__}function Pt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Lt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ft(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Dt.prototype={constructor:Dt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Ht="http://www.w3.org/1999/xhtml",Bt={svg:"http://www.w3.org/2000/svg",xhtml:Ht,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zt(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Bt.hasOwnProperty(t)?{space:Bt[t],local:e}:e}function Ut(e){return function(){this.removeAttribute(e)}}function Vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gt(e,t){return function(){this.setAttribute(e,t)}}function Kt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Wt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function $t(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zt(e){return function(){this.style.removeProperty(e)}}function Yt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Xt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Qt(e,t){return e.style.getPropertyValue(t)||$t(e).getComputedStyle(e,null).getPropertyValue(t)}function Jt(e){return function(){delete this[e]}}function en(e,t){return function(){this[e]=t}}function tn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function nn(e){return e.trim().split(/^|\s+/)}function rn(e){return e.classList||new on(e)}function on(e){this._node=e,this._names=nn(e.getAttribute("class")||"")}function an(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sn(e,t){for(var n=rn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function un(e){return function(){an(this,e)}}function cn(e){return function(){sn(this,e)}}function ln(e,t){return function(){(t.apply(this,arguments)?an:sn)(this,e)}}function dn(){this.textContent=""}function fn(e){return function(){this.textContent=e}}function hn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function pn(){this.innerHTML=""}function mn(e){return function(){this.innerHTML=e}}function gn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function vn(){this.nextSibling&&this.parentNode.appendChild(this)}function yn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ht&&t.documentElement.namespaceURI===Ht?t.createElement(e):t.createElementNS(n,e)}}function En(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tn(e){var t=zt(e);return(t.local?En:bn)(t)}function xn(){return null}function _n(){var e=this.parentNode;e&&e.removeChild(this)}function wn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cn(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function An(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Sn(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function On(e,t,n){var r=$t(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Dn(e,t){return function(){return On(this,e,t)}}function In(e,t){return function(){return On(this,e,t.apply(this,arguments))}}on.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Nn=r(809),Rn=r.n(Nn),Mn=Rn().mark(Pn);function Pn(){var e,t,n,r,i,o,a;return Rn().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),Mn,this)}var Ln=[null];function Fn(e,t){this._groups=e,this._parents=t}function jn(){return new Fn([[document.documentElement]],Ln)}Fn.prototype=jn.prototype=(0,vt.Z)({constructor:Fn,select:function(e){"function"!==typeof e&&(e=bt(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=e.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new Fn(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return Et(e.apply(this,arguments))}}(e):xt(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new Fn(r,i)},selectChild:function(e){return this.select(null==e?Ct:function(e){return function(){return kt.call(this.children,e)}}("function"===typeof e?e:wt(e)))},selectChildren:function(e){return this.selectAll(null==e?St:function(e){return function(){return At.call(this.children,e)}}("function"===typeof e?e:wt(e)))},filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Fn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Mt);var n=t?Rt:Nt,r=this._parents,i=this._groups;"function"!==typeof e&&(e=It(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],d=i[c],f=d.length,h=Pt(e.call(l,l&&l.__data__,c,r)),p=h.length,m=s[c]=new Array(p),g=a[c]=new Array(p),v=u[c]=new Array(f);n(l,d,m,g,v,h,t);for(var y,b,E=0,T=0;E<p;++E)if(y=m[E]){for(E>=T&&(T=E+1);!(b=g[T])&&++T<p;);y._next=b||null}}return(a=new Fn(a,r))._enter=s,a._exit=u,a},enter:function(){return new Fn(this._enter||this._groups.map(Ot),this._parents)},exit:function(){return new Fn(this._exit||this._groups.map(Ot),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],d=r[u],f=l.length,h=s[u]=new Array(f),p=0;p<f;++p)(c=l[p]||d[p])&&(h[p]=c);for(;u<i;++u)s[u]=n[u];return new Fn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Lt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(t)}return new Fn(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=Ft(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=zt(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Vt:Ut:"function"===typeof t?n.local?Wt:qt:n.local?Kt:Gt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Zt:"function"===typeof t?Xt:Yt)(e,t,null==n?"":n)):Qt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Jt:"function"===typeof t?tn:en)(e,t)):this.node()[e]},classed:function(e,t){var n=nn(e+"");if(arguments.length<2){for(var r=rn(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?ln:t?un:cn)(n,t))},text:function(e){return arguments.length?this.each(null==e?dn:("function"===typeof e?hn:fn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?pn:("function"===typeof e?gn:mn)(e)):this.node().innerHTML},raise:function(){return this.each(vn)},lower:function(){return this.each(yn)},append:function(e){var t="function"===typeof e?e:Tn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Tn(e),r=null==t?xn:"function"===typeof t?t:bt(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(_n)},clone:function(e){return this.select(e?kn:wn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Cn(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Sn:An,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?In:Dn)(e,t))}},Symbol.iterator,Pn);var Hn=jn;function Bn(e){return"string"===typeof e?new Fn([[document.querySelector(e)]],[document.documentElement]):new Fn([[e]],Ln)}var zn=r(54586),Un={passive:!1},Vn={capture:!0,passive:!1};function Gn(e){e.stopImmediatePropagation()}function Kn(e){e.preventDefault(),e.stopImmediatePropagation()}function qn(e){var t=e.document.documentElement,n=Bn(e).on("dragstart.drag",Kn,Vn);"onselectstart"in t?n.on("selectstart.drag",Kn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wn(e,t){var n=e.document.documentElement,r=Bn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Kn,Vn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function $n(e){return((e=Math.exp(e))+1/e)/2}var Zn=function e(t,n,r){function i(e,i){var o,a,s=e[0],u=e[1],c=e[2],l=i[0],d=i[1],f=i[2],h=l-s,p=d-u,m=h*h+p*p;if(m<1e-12)a=Math.log(f/c)/t,o=function(e){return[s+e*h,u+e*p,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),v=(f*f-c*c+r*m)/(2*c*n*g),y=(f*f-c*c-r*m)/(2*f*n*g),b=Math.log(Math.sqrt(v*v+1)-v),E=Math.log(Math.sqrt(y*y+1)-y);a=(E-b)/t,o=function(e){var r,i=e*a,o=$n(b),l=c/(n*g)*(o*(r=t*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+l*h,u+l*p,c*o/$n(t*i+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function Yn(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Xn=r(50867);function Qn(e,t,n){var r=new Xn.B7;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}var Jn=(0,zn.Z)("start","end","cancel","interrupt"),er=[];function tr(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,l,d,f;if(1!==n.state)return u();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return Qn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(Qn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,l=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=(0,Xn.HT)(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:Jn,tween:er,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function nr(e,t){var n=ir(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function rr(e,t){var n=ir(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ir(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function or(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}var ar,sr=r(13311),ur=180/Math.PI,cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lr(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*ur,skewX:Math.atan(u)*ur,scaleX:a,scaleY:s}}function dr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,sr.Z)(e,i)},{i:u-2,x:(0,sr.Z)(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,sr.Z)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,sr.Z)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,sr.Z)(e,n)},{i:s-2,x:(0,sr.Z)(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var fr=dr((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?cr:lr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),hr=dr((function(e){return null==e?cr:(ar||(ar=document.createElementNS("http://www.w3.org/2000/svg","g")),ar.setAttribute("transform",e),(e=ar.transform.baseVal.consolidate())?lr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):cr)}),", ",")",")");function pr(e,t){var n,r;return function(){var i=rr(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function mr(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=rr(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}function gr(e,t,n){var r=e._id;return e.each((function(){var e=rr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return ir(e,r).value[t]}}var vr=r(94798),yr=r(20439),br=r(25996);function Er(e,t){var n;return("number"===typeof t?sr.Z:t instanceof vr.ZP?yr.ZP:(n=(0,vr.ZP)(t))?(t=n,yr.ZP):br.Z)(e,t)}function Tr(e){return function(){this.removeAttribute(e)}}function xr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _r(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function wr(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function kr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttribute(e)}}function Cr(e,t,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Ar(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Sr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Or(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Sr(e,i)),n}return i._value=t,i}function Dr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ar(e,i)),n}return i._value=t,i}function Ir(e,t){return function(){nr(this,e).delay=+t.apply(this,arguments)}}function Nr(e,t){return t=+t,function(){nr(this,e).delay=t}}function Rr(e,t){return function(){rr(this,e).duration=+t.apply(this,arguments)}}function Mr(e,t){return t=+t,function(){rr(this,e).duration=t}}function Pr(e,t){if("function"!==typeof t)throw new Error;return function(){rr(this,e).ease=t}}function Lr(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?nr:rr;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var Fr=Hn.prototype.constructor;function jr(e){return function(){this.style.removeProperty(e)}}function Hr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Br(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Hr(e,o,n)),r}return o._value=t,o}function zr(e){return function(t){this.textContent=e.call(this,t)}}function Ur(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&zr(r)),t}return r._value=e,r}var Vr=0;function Gr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Kr(){return++Vr}var qr=Hn.prototype;Gr.prototype=function(e){return Hn().transition(e)}.prototype=(0,vt.Z)({constructor:Gr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=bt(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,d=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=e.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),d[f]=u,tr(d[f],t,n,f,d,ir(s,n)));return new Gr(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=xt(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,d=0;d<l;++d)if(u=c[d]){for(var f,h=e.call(u,u.__data__,d,c),p=ir(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&tr(f,t,n,m,h,p);o.push(h),a.push(u)}return new Gr(o,a,t,n)},selectChild:qr.selectChild,selectChildren:qr.selectChildren,filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Gr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=t[s],l=n[s],d=c.length,f=a[s]=new Array(d),h=0;h<d;++h)(u=c[h]||l[h])&&(f[h]=u);for(;s<r;++s)a[s]=t[s];return new Gr(a,this._parents,this._name,this._id)},selection:function(){return new Fr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Kr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=ir(a,t);tr(a,e,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Gr(r,this._parents,e,n)},call:qr.call,nodes:qr.nodes,node:qr.node,size:qr.size,empty:qr.empty,each:qr.each,on:function(e,t){var n=this._id;return arguments.length<2?ir(this.node(),n).on.on(e):this.each(Lr(n,e,t))},attr:function(e,t){var n=zt(e),r="transform"===n?hr:Er;return this.attrTween(e,"function"===typeof t?(n.local?Cr:kr)(n,r,gr(this,"attr."+e,t)):null==t?(n.local?xr:Tr)(n):(n.local?wr:_r)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=zt(e);return this.tween(n,(r.local?Or:Dr)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?fr:Er;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Qt(this,e),a=(this.style.removeProperty(e),Qt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,jr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=Qt(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Qt(this,e)),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}(e,r,gr(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var u=rr(this,e),c=u.on,l=null==u.value[a]?o||(o=jr(t)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=Qt(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Br(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(gr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Ur(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=ir(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?pr:mr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ir:Nr)(t,e)):ir(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Rr:Mr)(t,e)):ir(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Pr(t,e)):ir(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;rr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=rr(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===i&&o()}))}},Symbol.iterator,qr[Symbol.iterator]);var Wr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function $r(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}Hn.prototype.interrupt=function(e){return this.each((function(){or(this,e)}))},Hn.prototype.transition=function(e){var t,n;e instanceof Gr?(t=e._id,e=e._name):(t=Kr(),(n=Wr).time=(0,Xn.zO)(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&tr(a,e,t,c,s,n||$r(a,t));return new Gr(r,this._parents,e,t)};var Zr=function(e){return function(){return e}};function Yr(e,t){var n=t.sourceEvent,r=t.target,i=t.transform,o=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Xr(e,t,n){this.k=e,this.x=t,this.y=n}Xr.prototype={constructor:Xr,scale:function(e){return 1===e?this:new Xr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Xr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Qr=new Xr(1,0,0);function Jr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Qr;return e.__zoom}function ei(e){e.stopImmediatePropagation()}function ti(e){e.preventDefault(),e.stopImmediatePropagation()}function ni(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function ri(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function ii(){return this.__zoom||Qr}function oi(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ai(){return navigator.maxTouchPoints||"ontouchstart"in this}function si(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function ui(){var e,t,n,r=ni,i=ri,o=si,a=oi,s=ai,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,d=Zn,f=(0,zn.Z)("start","zoom","end"),h=500,p=0,m=10;function g(e){e.property("__zoom",ii).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",C).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new Xr(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Xr(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",(function(){T(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){T(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,a=T(e,o).event(r),s=i.apply(e,o),u=null==n?b(s):"function"===typeof n?n.apply(e,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,o):t,h=d(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=h(e),n=c/t[2];e=new Xr(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function T(e,t,n){return!n&&e.__zooming||new x(e,t)}function x(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(r.apply(this,arguments)){var s=T(this,n).event(e),l=this.__zoom,d=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,a.apply(this,arguments)))),f=Yn(e);if(s.wheel)s.mouse[0][0]===f[0]&&s.mouse[0][1]===f[1]||(s.mouse[1]=l.invert(s.mouse[0]=f)),clearTimeout(s.wheel);else{if(l.k===d)return;s.mouse=[f,l.invert(f)],or(this),s.start()}ti(e),s.wheel=setTimeout(h,150),s.zoom("mouse",o(y(v(l,d),s.mouse[0],s.mouse[1]),s.extent,c))}function h(){s.wheel=null,s.end()}}function w(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,u=T(this,i,!0).event(e),l=Bn(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",g,!0),d=Yn(e,s),f=e.clientX,h=e.clientY;qn(e.view),ei(e),u.mouse=[d,this.__zoom.invert(d)],or(this),u.start()}function m(e){if(ti(e),!u.moved){var t=e.clientX-f,n=e.clientY-h;u.moved=t*t+n*n>p}u.event(e).zoom("mouse",o(y(u.that.__zoom,u.mouse[0]=Yn(e,s),u.mouse[1]),u.extent,c))}function g(e){l.on("mousemove.zoom mouseup.zoom",null),Wn(e.view,u.moved),ti(e),u.event(e).end()}}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,u=Yn(e.changedTouches?e.changedTouches[0]:e,this),d=s.invert(u),f=s.k*(e.shiftKey?.5:2),h=o(y(v(s,f),u,d),i.apply(this,n),c);ti(e),l>0?Bn(this).transition().duration(l).call(E,h,u,e):Bn(this).call(g.transform,h,u,e)}}function C(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,c,l,d=n.touches,f=d.length,p=T(this,o,n.changedTouches.length===f).event(n);for(ei(n),u=0;u<f;++u)l=[l=Yn(c=d[u],this),this.__zoom.invert(l),c.identifier],p.touch0?p.touch1||p.touch0[2]===l[2]||(p.touch1=l,p.taps=0):(p.touch0=l,s=!0,p.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(p.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),h)),or(this),p.start())}}function A(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a,s,u,l=T(this,n).event(e),d=e.changedTouches,f=d.length;for(ti(e),i=0;i<f;++i)s=Yn(a=d[i],this),l.touch0&&l.touch0[2]===a.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===a.identifier&&(l.touch1[0]=s);if(a=l.that.__zoom,l.touch1){var h=l.touch0[0],p=l.touch0[1],m=l.touch1[0],g=l.touch1[1],b=(b=m[0]-h[0])*b+(b=m[1]-h[1])*b,E=(E=g[0]-p[0])*E+(E=g[1]-p[1])*E;a=v(a,Math.sqrt(b/E)),s=[(h[0]+m[0])/2,(h[1]+m[1])/2],u=[(p[0]+g[0])/2,(p[1]+g[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",o(y(a,s,u),l.extent,c))}}function S(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var a,s,u=T(this,i).event(e),c=e.changedTouches,l=c.length;for(ei(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),h),a=0;a<l;++a)s=c[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=Yn(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<m)){var d=Bn(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",ii),e!==i?E(e,t,n,r):i.interrupt().each((function(){T(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},g.scaleBy=function(e,t,n,r){g.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return o(y(v(r,u),a,s),e,c)}),n,r)},g.translateBy=function(e,t,n,r){g.transform(e,(function(){return o(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)}),null,r)},g.translateTo=function(e,t,n,r,a){g.transform(e,(function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return o(Qr.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},x.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Bn(this.that).datum();f.call(e,this.that,new Yr(e,{sourceEvent:this.sourceEvent,target:g,type:e,transform:this.that.__zoom,dispatch:f}),t)}},g.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:Zr(+e),g):a},g.filter=function(e){return arguments.length?(r="function"===typeof e?e:Zr(!!e),g):r},g.touchable=function(e){return arguments.length?(s="function"===typeof e?e:Zr(!!e),g):s},g.extent=function(e){return arguments.length?(i="function"===typeof e?e:Zr([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):i},g.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],g):[u[0],u[1]]},g.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(o=e,g):o},g.duration=function(e){return arguments.length?(l=+e,g):l},g.interpolate=function(e){return arguments.length?(d=e,g):d},g.on=function(){var e=f.on.apply(f,arguments);return e===f?g:e},g.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,g):Math.sqrt(p)},g.tapDistance=function(e){return arguments.length?(m=+e,g):m},g}Jr.prototype=Xr.prototype;var ci=function(e){return function(){return e}};function li(e,t){var n=t.sourceEvent,r=t.subject,i=t.target,o=t.identifier,a=t.active,s=t.x,u=t.y,c=t.dx,l=t.dy,d=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:d}})}function di(e){return!e.ctrlKey&&!e.button}function fi(){return this.parentNode}function hi(e,t){return null==t?{x:e.x,y:e.y}:t}function pi(){return navigator.maxTouchPoints||"ontouchstart"in this}li.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var mi=r(76554),gi=r(15352),vi=r(93096),yi=r.n(vi),bi=r(17621),Ei=r.n(bi);function Ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _i(e){return function(e){if(Array.isArray(e))return wi(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return wi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ki=function(e,t,n){return(e<<16)+(t<<8)+n},Ci=function(e,t){return 123*e%Math.pow(2,t)},Ai=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;Ti(this,e),this.csBits=t,this.registry=["__reserved for background__"]}var t,n,r;return t=e,(n=[{key:"register",value:function(e){if(this.registry.length>=Math.pow(2,24-this.csBits))return null;var t,n=this.registry.length,r=Ci(n,this.csBits),i=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),i}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=Ei()(e).toRgb(),n=t.r,r=t.g,i=t.b;return ki(n,r,i)}(e):ki.apply(void 0,_i(e));if(!t)return null;var n=t&Math.pow(2,24-this.csBits)-1,r=t>>24-this.csBits&Math.pow(2,this.csBits)-1;return Ci(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&xi(t.prototype,n),r&&xi(t,r),e}(),Si=r(55061),Oi=r(66252),Di=r(3286),Ii=r(54625),Ni=r(77729);const{abs:Ri,cos:Mi,sin:Pi,acos:Li,atan2:Fi,sqrt:ji,pow:Hi}=Math;function Bi(e){return e<0?-Hi(-e,1/3):Hi(e,1/3)}const zi=Math.PI,Ui=2*zi,Vi=zi/2,Gi=Number.MAX_SAFE_INTEGER||9007199254740991,Ki=Number.MIN_SAFE_INTEGER||-9007199254740991,qi={x:0,y:0,z:0},Wi={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,t){const n=t(e);let r=n.x*n.x+n.y*n.y;return"undefined"!==typeof n.z&&(r+=n.z*n.z),ji(r)},compute:function(e,t,n){if(0===e)return t[0].t=0,t[0];const r=t.length-1;if(1===e)return t[r].t=1,t[r];const i=1-e;let o=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:i*o[0].x+e*o[1].x,y:i*o[0].y+e*o[1].y,t:e};return n&&(t.z=i*o[0].z+e*o[1].z),t}if(r<4){let t,a,s,u=i*i,c=e*e,l=0;2===r?(o=[o[0],o[1],o[2],qi],t=u,a=i*e*2,s=c):3===r&&(t=u*i,a=u*e*3,s=i*c*3,l=e*c);const d={x:t*o[0].x+a*o[1].x+s*o[2].x+l*o[3].x,y:t*o[0].y+a*o[1].y+s*o[2].y+l*o[3].y,t:e};return n&&(d.z=t*o[0].z+a*o[1].z+s*o[2].z+l*o[3].z),d}const a=JSON.parse(JSON.stringify(t));for(;a.length>1;){for(let t=0;t<a.length-1;t++)a[t]={x:a[t].x+(a[t+1].x-a[t].x)*e,y:a[t].y+(a[t+1].y-a[t].y)*e},"undefined"!==typeof a[t].z&&(a[t]=a[t].z+(a[t+1].z-a[t].z)*e);a.splice(a.length-1,1)}return a[0].t=e,a[0]},computeWithRatios:function(e,t,n,r){const i=1-e,o=n,a=t;let s,u=o[0],c=o[1],l=o[2],d=o[3];return u*=i,c*=e,2===a.length?(s=u+c,{x:(u*a[0].x+c*a[1].x)/s,y:(u*a[0].y+c*a[1].y)/s,z:!!r&&(u*a[0].z+c*a[1].z)/s,t:e}):(u*=i,c*=2*i,l*=e*e,3===a.length?(s=u+c+l,{x:(u*a[0].x+c*a[1].x+l*a[2].x)/s,y:(u*a[0].y+c*a[1].y+l*a[2].y)/s,z:!!r&&(u*a[0].z+c*a[1].z+l*a[2].z)/s,t:e}):(u*=i,c*=1.5*i,l*=3*i,d*=e*e*e,4===a.length?(s=u+c+l+d,{x:(u*a[0].x+c*a[1].x+l*a[2].x+d*a[3].x)/s,y:(u*a[0].y+c*a[1].y+l*a[2].y+d*a[3].y)/s,z:!!r&&(u*a[0].z+c*a[1].z+l*a[2].z+d*a[3].z)/s,t:e}):void 0))},derive:function(e,t){const n=[];for(let r=e,i=r.length,o=i-1;i>1;i--,o--){const e=[];for(let n,i=0;i<o;i++)n={x:o*(r[i+1].x-r[i].x),y:o*(r[i+1].y-r[i].y)},t&&(n.z=o*(r[i+1].z-r[i].z)),e.push(n);n.push(e),r=e}return n},between:function(e,t,n){return t<=e&&e<=n||Wi.approximately(e,t)||Wi.approximately(e,n)},approximately:function(e,t,n){return Ri(e-t)<=(n||1e-6)},length:function(e){const t=Wi.Tvalues.length;let n=0;for(let r,i=0;i<t;i++)r=.5*Wi.Tvalues[i]+.5,n+=Wi.Cvalues[i]*Wi.arcfn(r,e);return.5*n},map:function(e,t,n,r,i){return r+(i-r)*((e-t)/(n-t))},lerp:function(e,t,n){const r={x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)};return void 0!==t.z&&void 0!==n.z&&(r.z=t.z+e*(n.z-t.z)),r},pointToString:function(e){let t=e.x+"/"+e.y;return"undefined"!==typeof e.z&&(t+="/"+e.z),t},pointsToString:function(e){return"["+e.map(Wi.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=n.x-e.x,a=n.y-e.y;return Fi(r*a-i*o,r*o+i*a)},round:function(e,t){const n=""+e,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+t))},dist:function(e,t){const n=e.x-t.x,r=e.y-t.y;return ji(n*n+r*r)},closest:function(e,t){let n,r,i=Hi(2,63);return e.forEach((function(e,o){r=Wi.dist(t,e),r<i&&(i=r,n=o)})),{mdist:i,mpos:n}},abcratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Hi(e,t)+Hi(1-e,t);return Ri((n-1)/n)},projectionratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Hi(1-e,t);return n/(Hi(e,t)+n)},lli8:function(e,t,n,r,i,o,a,s){const u=(e-n)*(o-s)-(t-r)*(i-a);return 0!=u&&{x:((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/u,y:((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/u}},lli4:function(e,t,n,r){const i=e.x,o=e.y,a=t.x,s=t.y,u=n.x,c=n.y,l=r.x,d=r.y;return Wi.lli8(i,o,a,s,u,c,l,d)},lli:function(e,t){return Wi.lli4(e,e.c,t,t.c)},makeline:function(e,t){const n=e.x,r=e.y,i=t.x,o=t.y,a=(i-n)/3,s=(o-r)/3;return new ro(n,r,n+a,r+s,n+2*a,r+2*s,i,o)},findbbox:function(e){let t=Gi,n=Gi,r=Ki,i=Ki;return e.forEach((function(e){const o=e.bbox();t>o.x.min&&(t=o.x.min),n>o.y.min&&(n=o.y.min),r<o.x.max&&(r=o.x.max),i<o.y.max&&(i=o.y.max)})),{x:{min:t,mid:(t+r)/2,max:r,size:r-t},y:{min:n,mid:(n+i)/2,max:i,size:i-n}}},shapeintersections:function(e,t,n,r,i){if(!Wi.bboxoverlap(t,r))return[];const o=[],a=[e.startcap,e.forward,e.back,e.endcap],s=[n.startcap,n.forward,n.back,n.endcap];return a.forEach((function(t){t.virtual||s.forEach((function(r){if(r.virtual)return;const a=t.intersects(r,i);a.length>0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,o.push(a))}))})),o},makeshape:function(e,t,n){const r=t.points.length,i=e.points.length,o=Wi.makeline(t.points[r-1],e.points[0]),a=Wi.makeline(e.points[i-1],t.points[0]),s={startcap:o,forward:e,back:t,endcap:a,bbox:Wi.findbbox([o,e,t,a]),intersections:function(e){return Wi.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,i,o=Gi,a=Ki;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(let s=0,u=n.length;s<u;s++)r=n[s],i=e.get(r),i[t]<o&&(o=i[t]),i[t]>a&&(a=i[t]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,t){const n=t.p1.x,r=t.p1.y,i=-Fi(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*Mi(i)-(e.y-r)*Pi(i),y:(e.x-n)*Pi(i)+(e.y-r)*Mi(i)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=Wi.align(e,t),i=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,o=e-2*t+n;if(0!==o){const r=-ji(t*t-e*n),a=-e+t;return[-(r+a)/o,-(-r+a)/o].filter(i)}return t!==n&&0===o?[(2*t-n)/(2*t-2*n)].filter(i):[]}const o=r[0].y,a=r[1].y,s=r[2].y;let u=3*a-o-3*s+r[3].y,c=3*o-6*a+3*s,l=-3*o+3*a,d=o;if(Wi.approximately(u,0)){if(Wi.approximately(c,0))return Wi.approximately(l,0)?[]:[-d/l].filter(i);const e=ji(l*l-4*c*d),t=2*c;return[(e-l)/t,(-l-e)/t].filter(i)}c/=u,l/=u,d/=u;const f=(3*l-c*c)/3,h=f/3,p=(2*c*c*c-9*c*l+27*d)/27,m=p/2,g=m*m+h*h*h;let v,y,b,E,T;if(g<0){const e=-f/3,t=ji(e*e*e),n=-p/(2*t),r=Li(n<-1?-1:n>1?1:n),o=2*Bi(t);return b=o*Mi(r/3)-c/3,E=o*Mi((r+Ui)/3)-c/3,T=o*Mi((r+2*Ui)/3)-c/3,[b,E,T].filter(i)}if(0===g)return v=m<0?Bi(-m):-Bi(m),b=2*v-c/3,E=-v-c/3,[b,E].filter(i);{const e=ji(g);return v=Bi(-m+e),y=Bi(m+e),[v-y-c/3].filter(i)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],i=t-2*n+r;if(0!==i){const e=-ji(n*n-t*r),o=-t+n;return[-(e+o)/i,-(-e+o)/i]}return n!==r&&0===i?[(2*n-r)/(2*(n-r))]:[]}if(2===e.length){const t=e[0],n=e[1];return t!==n?[t/(t-n)]:[]}return[]},curvature:function(e,t,n,r,i){let o,a,s,u,c=0,l=0;const d=Wi.compute(e,t),f=Wi.compute(e,n),h=d.x*d.x+d.y*d.y;if(r?(o=ji(Hi(d.y*f.z-f.y*d.z,2)+Hi(d.z*f.x-f.z*d.x,2)+Hi(d.x*f.y-f.x*d.y,2)),a=Hi(h+d.z*d.z,1.5)):(o=d.x*f.y-d.y*f.x,a=Hi(h,1.5)),0===o||0===a)return{k:0,r:0};if(c=o/a,l=a/o,!i){const i=Wi.curvature(e-.001,t,n,r,!0).k,o=Wi.curvature(e+.001,t,n,r,!0).k;u=(o-c+(c-i))/2,s=(Ri(o-c)+Ri(c-i))/2}return{k:c,r:l,dk:u,adk:s}},inflections:function(e){if(e.length<4)return[];const t=Wi.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,i=t[1].x*t[2].y,o=18*(-3*n+2*r+3*i-t[3].x*t[2].y),a=18*(3*n-r-3*i),s=18*(i-n);if(Wi.approximately(o,0)){if(!Wi.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const u=a*a-4*o*s,c=Math.sqrt(u),l=2*o;return Wi.approximately(l,0)?[]:[(c-a)/l,-(a+c)/l].filter((function(e){return 0<=e&&e<=1}))},bboxoverlap:function(e,t){const n=["x","y"],r=n.length;for(let i,o,a,s,u=0;u<r;u++)if(i=n[u],o=e[i].mid,a=t[i].mid,s=(e[i].size+t[i].size)/2,Ri(o-a)>=s)return!1;return!0},expandbox:function(e,t){t.x.min<e.x.min&&(e.x.min=t.x.min),t.y.min<e.y.min&&(e.y.min=t.y.min),t.z&&t.z.min<e.z.min&&(e.z.min=t.z.min),t.x.max>e.x.max&&(e.x.max=t.x.max),t.y.max>e.y.max&&(e.y.max=t.y.max),t.z&&t.z.max>e.z.max&&(e.z.max=t.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,t,n){const r=e.bbox(),i=t.bbox(),o=1e5,a=n||.5;if(r.x.size+r.y.size<a&&i.x.size+i.y.size<a)return[(o*(e._t1+e._t2)/2|0)/o+"/"+(o*(t._t1+t._t2)/2|0)/o];let s=e.split(.5),u=t.split(.5),c=[{left:s.left,right:u.left},{left:s.left,right:u.right},{left:s.right,right:u.right},{left:s.right,right:u.left}];c=c.filter((function(e){return Wi.bboxoverlap(e.left.bbox(),e.right.bbox())}));let l=[];return 0===c.length||(c.forEach((function(e){l=l.concat(Wi.pairiteration(e.left,e.right,a))})),l=l.filter((function(e,t){return l.indexOf(e)===t}))),l},getccenter:function(e,t,n){const r=t.x-e.x,i=t.y-e.y,o=n.x-t.x,a=n.y-t.y,s=r*Mi(Vi)-i*Pi(Vi),u=r*Pi(Vi)+i*Mi(Vi),c=o*Mi(Vi)-a*Pi(Vi),l=o*Pi(Vi)+a*Mi(Vi),d=(e.x+t.x)/2,f=(e.y+t.y)/2,h=(t.x+n.x)/2,p=(t.y+n.y)/2,m=d+s,g=f+u,v=h+c,y=p+l,b=Wi.lli8(d,f,m,g,h,p,v,y),E=Wi.dist(b,e);let T,x=Fi(e.y-b.y,e.x-b.x),_=Fi(t.y-b.y,t.x-b.x),w=Fi(n.y-b.y,n.x-b.x);return x<w?((x>_||_>w)&&(x+=Ui),x>w&&(T=w,w=x,x=T)):w<_&&_<x?(T=w,w=x,x=T):w+=Ui,b.s=x,b.e=w,b.r=E,b},numberSort:function(e,t){return e-t}};class $i{constructor(e){this.curves=[],this._3d=!1,e&&(this.curves=e,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map((function(e){return Wi.pointsToString(e.points)})).join(", ")+"]"}addCurve(e){this.curves.push(e),this._3d=this._3d||e._3d}length(){return this.curves.map((function(e){return e.length()})).reduce((function(e,t){return e+t}))}curve(e){return this.curves[e]}bbox(){const e=this.curves;for(var t=e[0].bbox(),n=1;n<e.length;n++)Wi.expandbox(t,e[n].bbox());return t}offset(e){const t=[];return this.curves.forEach((function(n){t.push(...n.offset(e))})),new $i(t)}}const{abs:Zi,min:Yi,max:Xi,cos:Qi,sin:Ji,acos:eo,sqrt:to}=Math,no=Math.PI;class ro{constructor(e){let t=e&&e.forEach?e:Array.from(arguments).slice(),n=!1;if("object"===typeof t[0]){n=t.length;const e=[];t.forEach((function(t){["x","y","z"].forEach((function(n){"undefined"!==typeof t[n]&&e.push(t[n])}))})),t=e}let r=!1;const i=t.length;if(n){if(n>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");r=!0}}else if(6!==i&&8!==i&&9!==i&&12!==i&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const o=this._3d=!r&&(9===i||12===i)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let d=0,f=o?3:2;d<i;d+=f){var s={x:t[d],y:t[d+1]};o&&(s.z=t[d+2]),a.push(s)}const u=this.order=a.length-1,c=this.dims=["x","y"];o&&c.push("z"),this.dimlen=c.length;const l=Wi.align(a,{p1:a[0],p2:a[u]});this._linear=!l.some((e=>Zi(e.y)>1e-4)),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(e,t,n,r){if("undefined"===typeof r&&(r=.5),0===r)return new ro(t,t,n);if(1===r)return new ro(e,t,t);const i=ro.getABC(2,e,t,n,r);return new ro(e,i.A,n)}static cubicFromPoints(e,t,n,r,i){"undefined"===typeof r&&(r=.5);const o=ro.getABC(3,e,t,n,r);"undefined"===typeof i&&(i=Wi.dist(t,o.C));const a=i*(1-r)/r,s=Wi.dist(e,n),u=(n.x-e.x)/s,c=(n.y-e.y)/s,l=i*u,d=i*c,f=a*u,h=a*c,p=t.x-l,m=t.y-d,g=t.x+f,v=t.y+h,y=o.A,b=y.x+(p-y.x)/(1-r),E=y.y+(m-y.y)/(1-r),T=y.x+(g-y.x)/r,x=y.y+(v-y.y)/r,_={x:e.x+(b-e.x)/r,y:e.y+(E-e.y)/r},w={x:n.x+(T-n.x)/(1-r),y:n.y+(x-n.y)/(1-r)};return new ro(e,_,w,n)}static getUtils(){return Wi}getUtils(){return ro.getUtils()}static get PolyBezier(){return $i}valueOf(){return this.toString()}toString(){return Wi.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const e=this.points,t=["M",e[0].x,e[0].y,2===this.order?"Q":"C"];for(let n=1,r=e.length;n<r;n++)t.push(e[n].x),t.push(e[n].y);return t.join(" ")}setRatios(e){if(e.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=e,this._lut=[]}verify(){const e=this.coordDigest();e!==this._print&&(this._print=e,this.update())}coordDigest(){return this.points.map((function(e,t){return""+t+e.x+e.y+(e.z?e.z:0)})).join("")}update(){this._lut=[],this.dpoints=Wi.derive(this.points,this._3d),this.computedirection()}computedirection(){const e=this.points,t=Wi.angle(e[0],e[this.order],e[1]);this.clockwise=t>0}length(){return Wi.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,i=.5){const o=Wi.projectionratio(i,e),a=1-o,s={x:o*t.x+a*r.x,y:o*t.y+a*r.y},u=Wi.abcratio(i,e);return{A:{x:n.x+(n.x-s.x)/u,y:n.y+(n.y-s.y)/u},B:n,C:s,S:t,E:r}}getABC(e,t){t=t||this.get(e);let n=this.points[0],r=this.points[this.order];return ro.getABC(this.order,n,t,r,e)}getLUT(e){if(this.verify(),e=e||100,this._lut.length===e)return this._lut;this._lut=[],e--;for(let t,n,r=0;r<e;r++)n=r/(e-1),t=this.compute(n),t.t=n,this._lut.push(t);return this._lut}on(e,n){n=n||5;const r=this.getLUT(),i=[];for(let t,o=0,a=0;o<r.length;o++)t=r[o],Wi.dist(t,e)<n&&(i.push(t),a+=o/r.length);return!!i.length&&(t/=i.length)}project(e){const t=this.getLUT(),n=t.length-1,r=Wi.closest(t,e),i=r.mpos,o=(i-1)/n,a=(i+1)/n,s=.1/n;let u,c,l=r.mdist,d=o,f=d;for(l+=1;d<a+s;d+=s)u=this.compute(d),c=Wi.dist(e,u),c<l&&(l=c,f=d);return f=f<0?0:f>1?1:f,u=this.compute(f),u.t=f,u.d=l,u}get(e){return this.compute(e)}point(e){return this.points[e]}compute(e){return this.ratios?Wi.computeWithRatios(e,this.points,this.ratios,this._3d):Wi.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,i,o=1;o<n;o++)r=e[o],i=e[o-1],t[o]={x:(n-o)/n*r.x+o/n*i.x,y:(n-o)/n*r.y+o/n*i.y};return t[n]=e[n-1],new ro(t)}derivative(e){return Wi.compute(e,this.dpoints[0],this._3d)}dderivative(e){return Wi.compute(e,this.dpoints[1],this._3d)}align(){let e=this.points;return new ro(Wi.align(e,{p1:e[0],p2:e[e.length-1]}))}curvature(e){return Wi.curvature(e,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Wi.inflections(this.points)}normal(e){return this._3d?this.__normal3(e):this.__normal2(e)}__normal2(e){const t=this.derivative(e),n=to(t.x*t.x+t.y*t.y);return{x:-t.y/n,y:t.x/n}}__normal3(e){const t=this.derivative(e),n=this.derivative(e+.01),r=to(t.x*t.x+t.y*t.y+t.z*t.z),i=to(n.x*n.x+n.y*n.y+n.z*n.z);t.x/=r,t.y/=r,t.z/=r,n.x/=i,n.y/=i,n.z/=i;const o={x:n.y*t.z-n.z*t.y,y:n.z*t.x-n.x*t.z,z:n.x*t.y-n.y*t.x},a=to(o.x*o.x+o.y*o.y+o.z*o.z);o.x/=a,o.y/=a,o.z/=a;const s=[o.x*o.x,o.x*o.y-o.z,o.x*o.z+o.y,o.x*o.y+o.z,o.y*o.y,o.y*o.z-o.x,o.x*o.z-o.y,o.y*o.z+o.x,o.z*o.z];return{x:s[0]*t.x+s[1]*t.y+s[2]*t.z,y:s[3]*t.x+s[4]*t.y+s[5]*t.z,z:s[6]*t.x+s[7]*t.y+s[8]*t.z}}hull(e){let t=this.points,n=[],r=[],i=0;for(r[i++]=t[0],r[i++]=t[1],r[i++]=t[2],3===this.order&&(r[i++]=t[3]);t.length>1;){n=[];for(let o,a=0,s=t.length-1;a<s;a++)o=Wi.lerp(e,t[a],t[a+1]),r[i++]=o,n.push(o);t=n}return r}split(e,t){if(0===e&&t)return this.split(t).left;if(1===t)return this.split(e).right;const n=this.hull(e),r={left:2===this.order?new ro([n[0],n[3],n[5]]):new ro([n[0],n[4],n[7],n[9]]),right:2===this.order?new ro([n[5],n[4],n[2]]):new ro([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=Wi.map(0,0,1,this._t1,this._t2),r.left._t2=Wi.map(e,0,1,this._t1,this._t2),r.right._t1=Wi.map(e,0,1,this._t1,this._t2),r.right._t2=Wi.map(1,0,1,this._t1,this._t2),t?(t=Wi.map(t,e,1,0,1),r.right.split(t).left):r}extrema(){const e={};let t=[];return this.dims.forEach(function(n){let r=function(e){return e[n]},i=this.dpoints[0].map(r);e[n]=Wi.droots(i),3===this.order&&(i=this.dpoints[1].map(r),e[n]=e[n].concat(Wi.droots(i))),e[n]=e[n].filter((function(e){return e>=0&&e<=1})),t=t.concat(e[n].sort(Wi.numberSort))}.bind(this)),e.values=t.sort(Wi.numberSort).filter((function(e,n){return t.indexOf(e)===n})),e}bbox(){const e=this.extrema(),t={};return this.dims.forEach(function(n){t[n]=Wi.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return Wi.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),i={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(i.z=n.z+r.z*t),i}if(this._linear){const t=this.normal(0),n=this.points.map((function(n){const r={x:n.x+e*t.x,y:n.y+e*t.y};return n.z&&t.z&&(r.z=n.z+e*t.z),r}));return[new ro(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=Wi.angle(this.points[0],this.points[3],this.points[1]),t=Wi.angle(this.points[0],this.points[3],this.points[2]);if(e>0&&t<0||e<0&&t>0)return!1}const e=this.normal(0),t=this.normal(1);let n=e.x*t.x+e.y*t.y;return this._3d&&(n+=e.z*t.z),Zi(eo(n))<no/3}reduce(){let e,t,n=0,r=0,i=.01,o=[],a=[],s=this.extrema().values;for(-1===s.indexOf(0)&&(s=[0].concat(s)),-1===s.indexOf(1)&&s.push(1),n=s[0],e=1;e<s.length;e++)r=s[e],t=this.split(n,r),t._t1=n,t._t2=r,o.push(t),n=r;return o.forEach((function(e){for(n=0,r=0;r<=1;)for(r=n+i;r<=1.01;r+=i)if(t=e.split(n,r),!t.simple()){if(r-=i,Zi(n-r)<i)return[];t=e.split(n,r),t._t1=Wi.map(n,0,1,e._t1,e._t2),t._t2=Wi.map(r,0,1,e._t1,e._t2),a.push(t),n=r;break}n<1&&(t=e.split(n,1),t._t1=Wi.map(n,0,1,e._t1,e._t2),t._t2=e._t2,a.push(t))})),a}scale(e){const t=this.order;let n=!1;if("function"===typeof e&&(n=e),n&&2===t)return this.raise().scale(n);const r=this.clockwise,i=n?n(0):e,o=n?n(1):e,a=[this.offset(0,10),this.offset(1,10)],s=this.points,u=[],c=Wi.lli4(a[0],a[0].c,a[1],a[1].c);if(!c)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach((function(e){const n=u[e*t]=Wi.copy(s[e*t]);n.x+=(e?o:i)*a[e].n.x,n.y+=(e?o:i)*a[e].n.y})),n?([0,1].forEach((function(i){if(2!==t||!i){var o=s[i+1],a={x:o.x-c.x,y:o.y-c.y},l=n?n((i+1)/t):e;n&&!r&&(l=-l);var d=to(a.x*a.x+a.y*a.y);a.x/=d,a.y/=d,u[i+1]={x:o.x+l*a.x,y:o.y+l*a.y}}})),new ro(u)):([0,1].forEach((e=>{if(2===t&&e)return;const n=u[e*t],r=this.derivative(e),i={x:n.x+r.x,y:n.y+r.y};u[e+1]=Wi.lli4(n,i,c,s[e+1])})),new ro(u))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const i=this.reduce(),o=i.length,a=[];let s,u=[],c=0,l=this.length();const d="undefined"!==typeof n&&"undefined"!==typeof r;function f(e,t,n,r,i){return function(o){const a=r/n,s=(r+i)/n,u=t-e;return Wi.map(o,0,1,e+a*u,e+s*u)}}i.forEach((function(i){const o=i.length();d?(a.push(i.scale(f(e,n,l,c,o))),u.push(i.scale(f(-t,-r,l,c,o)))):(a.push(i.scale(e)),u.push(i.scale(-t))),c+=o})),u=u.map((function(e){return s=e.points,s[3]?e.points=[s[3],s[2],s[1],s[0]]:e.points=[s[2],s[1],s[0]],e})).reverse();const h=a[0].points[0],p=a[o-1].points[a[o-1].points.length-1],m=u[o-1].points[u[o-1].points.length-1],g=u[0].points[0],v=Wi.makeline(m,h),y=Wi.makeline(p,g),b=[v].concat(a).concat([y]).concat(u);b.length;return new $i(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,i=[];for(let o=1,a=r.length;o<a/2;o++){const e=Wi.makeshape(r[o],r[a-o],n);e.startcap.virtual=o>1,e.endcap.virtual=o<a/2-1,i.push(e)}return i}intersects(e,t){return e?e.p1&&e.p2?this.lineIntersects(e):(e instanceof ro&&(e=e.reduce()),this.curveintersects(this.reduce(),e,t)):this.selfintersects(t)}lineIntersects(e){const t=Yi(e.p1.x,e.p2.x),n=Yi(e.p1.y,e.p2.y),r=Xi(e.p1.x,e.p2.x),i=Xi(e.p1.y,e.p2.y);return Wi.roots(this.points,e).filter((e=>{var o=this.get(e);return Wi.between(o.x,t,r)&&Wi.between(o.y,n,i)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let i,o,a,s=0;s<n;s++)o=t.slice(s,s+1),a=t.slice(s+2),i=this.curveintersects(o,a,e),r.push(...i);return r}curveintersects(e,t,n){const r=[];e.forEach((function(e){t.forEach((function(t){e.overlaps(t)&&r.push({left:e,right:t})}))}));let i=[];return r.forEach((function(e){const t=Wi.pairiteration(e.left,e.right,n);t.length>0&&(i=i.concat(t))})),i}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const i=(r-n)/4,o=this.get(n+i),a=this.get(r-i),s=Wi.dist(e,t),u=Wi.dist(e,o),c=Wi.dist(e,a);return Zi(u-s)+Zi(c-s)}_iterate(e,t){let n,r=0,i=1;do{n=0,i=1;let o,a,s,u,c,l=this.get(r),d=!1,f=!1,h=i,p=1,m=0;do{if(f=d,u=s,h=(r+i)/2,m++,o=this.get(h),a=this.get(i),s=Wi.getccenter(l,o,a),s.interval={start:r,end:i},d=this._error(s,l,r,i)<=e,c=f&&!d,c||(p=i),d){if(i>=1){if(s.interval.end=p=1,u=s,i>1){let e={x:s.x+s.r*Qi(s.e),y:s.y+s.r*Ji(s.e)};s.e+=Wi.angle({x:s.x,y:s.y},e,this.get(1))}break}i+=(i-r)/2}else i=h}while(!c&&n++<100);if(n>=100)break;u=u||s,t.push(u),r=p}while(i<1);return t}}var io=r(1527),oo=r(93704),ao=r(59735);function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e){return(co="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){return(fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ho(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function po(e,t,n){return(po=ho()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&fo(i,n.prototype),i}).apply(null,arguments)}function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||vo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(e){return function(e){if(Array.isArray(e))return yo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vo(e,t){if(e){if("string"===typeof e)return yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yo(e,t):void 0}}function yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".force-graph-container canvas {\n display: block;\n user-select: none;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.force-graph-container .graph-tooltip {\n position: absolute;\n transform: translate(-50%, 25px);\n font-family: sans-serif;\n font-size: 16px;\n padding: 4px;\n border-radius: 3px;\n color: #eee;\n background: rgba(0,0,0,0.65);\n visibility: hidden; /* by default */\n}\n\n.force-graph-container .clickable {\n cursor: pointer;\n}\n\n.force-graph-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.force-graph-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n");var bo=(0,oo.Z)(ao.Z);function Eo(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=bo(t(e))}))}var To=function(e,t){return t.onNeedsRedraw&&t.onNeedsRedraw()},xo=(0,b.Z)({props:{graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},dagMode:{onChange:function(e,t){!e&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:To},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:To},nodeColor:{default:"color",triggerUpdate:!1,onChange:To},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:To},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:To},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:To},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:To},linkColor:{default:"color",triggerUpdate:!1,onChange:To},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:To},linkWidth:{default:1,triggerUpdate:!1,onChange:To},linkCurvature:{default:0,triggerUpdate:!1,onChange:To},linkCanvasObject:{triggerUpdate:!1,onChange:To},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:To},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:To},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:To},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:To},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.velocityDecay(e)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(e,t,n){return void 0===n?e.forceLayout.force(t):(e.forceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},isEngineRunning:function(e){return!!e.engineRunning},tickFrame:function(e){return!e.isShadow&&e.engineRunning&&(++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.forceLayout.tick(),e.onEngineTick())),function(){var t=(0,E.default)(e.linkVisibility),n=(0,E.default)(e.linkColor),r=(0,E.default)(e.linkWidth),i=(0,E.default)(e.linkLineDash),o=(0,E.default)(e.linkCurvature),a=(0,E.default)(e.linkCanvasObjectMode),s=e.ctx,u=2*e.isShadow,c=e.graphData.links.filter(t);c.forEach((function(e){var t=o(e);if(!t)return void(e.__controlPoints=null);var n=e.source,r=e.target;if(!n||!r||!n.hasOwnProperty("x")||!r.hasOwnProperty("x"))return;var i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(i>0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=i*t,u={x:(n.x+r.x)/2+s*Math.cos(a-Math.PI/2),y:(n.y+r.y)/2+s*Math.sin(a-Math.PI/2)};e.__controlPoints=[u.x,u.y]}else{var c=70*t;e.__controlPoints=[r.x,r.y-c,r.x+c,r.y]}}));var l=[],d=[],f=c;if(e.linkCanvasObject){var h=[],p=[];c.forEach((function(e){return({before:l,after:d,replace:h}[a(e)]||p).push(e)})),f=[].concat(go(l),d,p),l=l.concat(h)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var m=(0,io.Z)(f,[n,r,i]);s.save(),Object.entries(m).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(o).forEach((function(t){var n=mo(t,2),r=n[0],o=n[1],c=(r||1)/e.globalScale+u;Object.entries(o).forEach((function(e){var t=mo(e,2);t[0];var n=t[1],r=i(n[0]);s.beginPath(),n.forEach((function(e){var t=e.source,n=e.target;if(t&&n&&t.hasOwnProperty("x")&&n.hasOwnProperty("x")){s.moveTo(t.x,t.y);var r=e.__controlPoints;r?s[2===r.length?"quadraticCurveTo":"bezierCurveTo"].apply(s,go(r).concat([n.x,n.y])):s.lineTo(n.x,n.y)}})),s.strokeStyle=a,s.lineWidth=c,s.setLineDash(r||[]),s.stroke()}))}))})),s.restore(),s.save(),d.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalArrowLength),n=(0,E.default)(e.linkDirectionalArrowRelPos),r=(0,E.default)(e.linkVisibility),i=(0,E.default)(e.linkDirectionalArrowColor||e.linkColor),o=(0,E.default)(e.nodeVal),a=e.ctx;a.save(),e.graphData.links.filter(r).forEach((function(r){var s=t(r);if(s&&!(s<0)){var u=r.source,c=r.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,o(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,f=Math.min(1,Math.max(0,n(r))),h=i(r)||"rgba(0,0,0,0.28)",p=s/1.6/2,m=r.__controlPoints&&po(ro,[u.x,u.y].concat(go(r.__controlPoints),[c.x,c.y])),g=m?function(e){return m.get(e)}:function(e){return{x:u.x+(c.x-u.x)*e||0,y:u.y+(c.y-u.y)*e||0}},v=m?m.length():Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2)),y=l+s+(v-l-d-s)*f,b=g(y/v),E=g((y-s)/v),T=g((y-.8*s)/v),x=Math.atan2(b.y-E.y,b.x-E.x)-Math.PI/2;a.beginPath(),a.moveTo(b.x,b.y),a.lineTo(E.x+p*Math.cos(x),E.y+p*Math.sin(x)),a.lineTo(T.x,T.y),a.lineTo(E.x-p*Math.cos(x),E.y-p*Math.sin(x)),a.fillStyle=h,a.fill()}}})),a.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalParticles),n=(0,E.default)(e.linkDirectionalParticleSpeed),r=(0,E.default)(e.linkDirectionalParticleWidth),i=(0,E.default)(e.linkVisibility),o=(0,E.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(i).forEach((function(i){var s=t(i);if(i.hasOwnProperty("__photons")&&i.__photons.length){var u=i.source,c=i.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=n(i),d=i.__photons||[],f=Math.max(0,r(i)/2)/Math.sqrt(e.globalScale),h=o(i)||"rgba(0,0,0,0.28)";a.fillStyle=h;var p=i.__controlPoints?po(ro,[u.x,u.y].concat(go(i.__controlPoints),[c.x,c.y])):null,m=0,g=!1;d.forEach((function(e){var t=!!e.__singleHop;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=t?0:m/s),!t&&m++,e.__progressRatio+=l,e.__progressRatio>=1){if(t)return void(g=!0);e.__progressRatio=e.__progressRatio%1}var n=e.__progressRatio,r=p?p.get(n):{x:u.x+(c.x-u.x)*n||0,y:u.y+(c.y-u.y)*n||0};a.beginPath(),a.arc(r.x,r.y,f,0,2*Math.PI,!1),a.fill()})),g&&(i.__photons=i.__photons.filter((function(e){return!e.__singleHop||e.__progressRatio<=1})))}}})),a.restore()}(),function(){var t=(0,E.default)(e.nodeVisibility),n=(0,E.default)(e.nodeVal),r=(0,E.default)(e.nodeColor),i=(0,E.default)(e.nodeCanvasObjectMode),o=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);o.save(),s.forEach((function(t){var s=i(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,o,e.globalScale),"replace"!==s)){var u=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;o.beginPath(),o.arc(t.x,t.y,u,0,2*Math.PI,!1),o.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",o.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else o.restore()})),o.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,Si.Z)().force("link",(0,Oi.Z)()).force("charge",(0,Di.Z)()).force("center",(0,Ii.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.ctx=e},update:function(e){if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&Eo(e.graphData.nodes,(0,E.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&Eo(e.graphData.links,(0,E.default)(e.linkAutoColorBy),e.linkColor),e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]})),!e.isShadow){var t=(0,E.default)(e.linkDirectionalParticles);e.graphData.links.forEach((function(e){var n=Math.round(Math.abs(t(e)));n?e.__photons=go(Array(n)).map((function(){return{}})):delete e.__photons}))}e.forceLayout.stop().alpha(1).nodes(e.graphData.nodes);var n=e.forceLayout.force("link");n&&n.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var r=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===co(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(go(Object.entries(c).filter((function(e){return!mo(e,2)[1].skip})).map((function(e){var t=mo(e,2);return lo({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0,o=e.length;i<o;i++){var a=e[i];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(go(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),u(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(go(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),i=Math.max.apply(Math,go(Object.values(r||[]))),o=e.dagLevelDistance||e.graphData.nodes.length/(i||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var a=function(t,n){return function(a){return t?(r[a[e.nodeId]]-i/2)*o*(n?-1:1):void 0}},s=a(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),u=a(-1!==["td","bu"].indexOf(e.dagMode),"bu"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=s(e),e.fy=u(e)}))}e.forceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,Ni.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?i-n:n)*o})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null);for(var c=0;c<e.warmupTicks&&!(e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin);c++)e.forceLayout.tick();this.resetCountdown(),e.onFinishUpdate()}});function _o(e,t){var n=e instanceof Array?e:[e],r=new t;return{linkProp:function(e){return{default:r[e](),onChange:function(t,r){n.forEach((function(n){return r[n][e](t)}))},triggerUpdate:!1}},linkMethod:function(e){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=[];return n.forEach((function(n){var r=t[n],o=r[e].apply(r,i);o!==r&&a.push(o)})),a.length?a[0]:this}}}}var wo=_o("forceGraph",xo),ko=_o(["forceGraph","shadowGraph"],xo),Co=Object.assign.apply(Object,go(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return lo({},e,wo.linkProp(e))}))).concat(go(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(e){return lo({},e,ko.linkProp(e))}))))),Ao=Object.assign.apply(Object,go(["d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return lo({},e,wo.linkMethod(e))}))));function So(e){if(e.canvas){var t=e.canvas.width,n=e.canvas.height;300===t&&150===n&&(t=n=0);var r=window.devicePixelRatio;t/=r,n/=r,[e.canvas,e.shadowCanvas].forEach((function(i){i.style.width="".concat(e.width,"px"),i.style.height="".concat(e.height,"px"),i.width=e.width*r,i.height=e.height*r,t||n||i.getContext("2d").scale(r,r)}));var i=Jr(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-t)/2/i,(e.height-n)/2/i),e.needsRedraw=!0}}function Oo(e){var t=window.devicePixelRatio;e.setTransform(t,0,0,t,0,0)}function Do(e,t,n){e.save(),Oo(e),e.clearRect(0,0,t,n),e.restore()}var Io=(0,b.Z)({props:uo({width:{default:window.innerWidth,onChange:function(e,t){return So(t)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(e,t){return So(t)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){[{type:"Node",objs:e.nodes},{type:"Link",objs:e.links}].forEach((function(e){var n=e.type;e.objs.filter((function(e){if(!e.hasOwnProperty("__indexColor"))return!0;var n=t.colorTracker.lookup(e.__indexColor);return!n||!n.hasOwnProperty("d")||n.d!==e})).forEach((function(e){e.__indexColor=t.colorTracker.register({type:n,d:e})}))})),t.forceGraph.graphData(e),t.shadowGraph.graphData(e)},triggerUpdate:!1},backgroundColor:{onChange:function(e,t){t.canvas&&e&&(t.canvas.style.background=e)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(e,t){t.shadowGraph.nodeCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null),t.flushShadowCanvas&&t.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(e,t){t.shadowGraph.linkCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null),t.flushShadowCanvas&&t.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(e,t){t.zoom.scaleExtent([e,t.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(e,t){t.zoom.scaleExtent([t.zoom.scaleExtent()[0],e])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},Co),aliases:{stopAnimation:"pauseAnimation"},methods:uo({graph2ScreenCoords:function(e,t,n){var r=Jr(e.canvas);return{x:t*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(e,t,n){var r=Jr(e.canvas);return{x:(t-r.x)/r.k,y:(n-r.y)/r.k}},centerAt:function(e,t,n,r){if(!e.canvas)return null;if(void 0!==t||void 0!==n){var i=Object.assign({},void 0!==t?{x:t}:{},void 0!==n?{y:n}:{});return r?new $e.ZP.Tween(o()).to(i,r).easing($e.ZP.Easing.Quadratic.Out).onUpdate(a).start():a(i),this}return o();function o(){var t=Jr(e.canvas);return{x:(e.width/2-t.x)/t.k,y:(e.height/2-t.y)/t.k}}function a(t){var n=t.x,r=t.y;e.zoom.translateTo(e.zoom.__baseElem,void 0===n?o().x:n,void 0===r?o().y:r),e.needsRedraw=!0}},zoom:function(e,t,n){return e.canvas?void 0!==t?(n?new $e.ZP.Tween({k:r()}).to({k:t},n).easing($e.ZP.Easing.Quadratic.Out).onUpdate((function(e){return i(e.k)})).start():i(t),this):r():null;function r(){return Jr(e.canvas).k}function i(t){e.zoom.scaleTo(e.zoom.__baseElem,t),e.needsRedraw=!0}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=this.getGraphBbox.apply(this,i);if(a){var s={x:(a.x[0]+a.x[1])/2,y:(a.y[0]+a.y[1])/2},u=Math.max(1e-12,Math.min(1e12,(e.width-2*n)/(a.x[1]-a.x[0]),(e.height-2*n)/(a.y[1]-a.y[0])));this.centerAt(s.x,s.y,t),this.zoom(u,t)}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=(0,E.default)(e.nodeVal),r=function(t){return Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize},i=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return i.length?{x:[(0,mi.Z)(i,(function(e){return e.x-e.r})),(0,gi.Z)(i,(function(e){return e.x+e.r}))],y:[(0,mi.Z)(i,(function(e){return e.y-e.r})),(0,gi.Z)(i,(function(e){return e.y+e.r}))]}:null},pauseAnimation:function(e){return e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return e.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},Ao),stateInit:function(){return{lastSetZoom:1,zoom:ui(),forceGraph:new xo,shadowGraph:(new xo).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Ai}},init:function(e,t){var n=this;e.innerHTML="";var r=document.createElement("div");r.classList.add("force-graph-container"),r.style.position="relative",e.appendChild(r),t.canvas=document.createElement("canvas"),t.backgroundColor&&(t.canvas.style.background=t.backgroundColor),r.appendChild(t.canvas),t.shadowCanvas=document.createElement("canvas");var i=t.canvas.getContext("2d"),o=t.shadowCanvas.getContext("2d"),a={x:-1e12,y:-1e12},s=function(){var e=null,n=window.devicePixelRatio,r=a.x>0&&a.y>0?o.getImageData(a.x*n,a.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Bn(t.canvas).call(function(){var e,t,n,r,i=di,o=fi,a=hi,s=pi,u={},c=(0,zn.Z)("start","drag","end"),l=0,d=0;function f(e){e.on("mousedown.drag",h).filter(s).on("touchstart.drag",g).on("touchmove.drag",v,Un).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,s){if(!r&&i.call(this,a,s)){var u=b(this,o.call(this,a,s),a,s,"mouse");u&&(Bn(a.view).on("mousemove.drag",p,Vn).on("mouseup.drag",m,Vn),qn(a.view),Gn(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if(Kn(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}u.mouse("drag",r)}function m(e){Bn(e.view).on("mousemove.drag mouseup.drag",null),Wn(e.view,n),Kn(e),u.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(Gn(e),r("start",e,a[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=u[r[t].identifier])&&(Kn(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<o;++t)(n=u[i[t].identifier])&&(Gn(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var s,d,h,p=c.copy(),m=Yn(o||n,t);if(null!=(h=a.call(e,new li("beforestart",{sourceEvent:n,target:f,identifier:i,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),r)))return s=h.x-m[0]||0,d=h.y-m[1]||0,function n(o,a,c){var g,v=m;switch(o){case"start":u[i]=n,g=l++;break;case"end":delete u[i],--l;case"drag":m=Yn(c||a,t),g=l}p.call(o,e,new li(o,{sourceEvent:a,subject:h,target:f,identifier:i,active:g,x:m[0]+s,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:p}),r)}}return f.filter=function(e){return arguments.length?(i="function"===typeof e?e:ci(!!e),f):i},f.container=function(e){return arguments.length?(o="function"===typeof e?e:ci(e),f):o},f.subject=function(e){return arguments.length?(a="function"===typeof e?e:ci(e),f):a},f.touchable=function(e){return arguments.length?(s="function"===typeof e?e:ci(!!e),f):s},f.on=function(){var e=c.on.apply(c,arguments);return e===c?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}().subject((function(){if(!t.enableNodeDrag)return null;var e=s();return e&&"Node"===e.type?e.d:null})).on("start",(function(e){var n=e.subject;n.__initialDragPos={x:n.x,y:n.y,fx:n.fx,fy:n.fy},e.active||(n.fx=n.x,n.fy=n.y),t.canvas.classList.add("grabbable")})).on("drag",(function(e){var n=e.subject,r=n.__initialDragPos,i=e,o=Jr(t.canvas).k,a={x:r.x+(i.x-r.x)/o-n.x,y:r.y+(i.y-r.y)/o-n.y};["x","y"].forEach((function(e){return n["f".concat(e)]=n[e]=r[e]+(i[e]-r[e])/o})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),t.isPointerDragging=!0,n.__dragged=!0,t.onNodeDrag(n,a)})).on("end",(function(e){var n=e.subject,r=n.__initialDragPos,i={x:n.x-r.x,y:n.y-r.y};void 0===r.fx&&(n.fx=void 0),void 0===r.fy&&(n.fy=void 0),delete n.__initialDragPos,t.forceGraph.d3AlphaTarget()&&t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.canvas.classList.remove("grabbable"),t.isPointerDragging=!1,n.__dragged&&(delete n.__dragged,t.onNodeDragEnd(n,i))}))),t.zoom(t.zoom.__baseElem=Bn(t.canvas)),t.zoom.__baseElem.on("dblclick.zoom",null),t.zoom.filter((function(e){return!e.button&&t.enableZoomPanInteraction&&(t.enableZoomInteraction||"wheel"!==e.type)&&(t.enablePanInteraction||"wheel"===e.type)})).on("zoom",(function(e){var r=e.transform;[i,o].forEach((function(e){Oo(e),e.translate(r.x,r.y),e.scale(r.k,r.k)})),t.onZoom&&t.onZoom(uo(uo({},r),n.centerAt())),t.needsRedraw=!0})).on("end",(function(e){return t.onZoomEnd&&t.onZoomEnd(uo(uo({},e.transform),n.centerAt()))})),So(t),t.forceGraph.onNeedsRedraw((function(){return t.needsRedraw=!0})).onFinishUpdate((function(){Jr(t.canvas).k===t.lastSetZoom&&t.graphData.nodes.length&&(t.zoom.scaleTo(t.zoom.__baseElem,t.lastSetZoom=4/Math.cbrt(t.graphData.nodes.length)),t.needsRedraw=!0)}));var u=document.createElement("div");u.classList.add("graph-tooltip"),r.appendChild(u),["pointermove","pointerdown"].forEach((function(e){return r.addEventListener(e,(function(n){"pointerdown"===e&&(t.isPointerPressed=!0,t.pointerDownEvent=n),!t.isPointerDragging&&"pointermove"===n.type&&t.onBackgroundClick&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0);var i=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(r);a.x=n.pageX-i.left,a.y=n.pageY-i.top,u.style.top="".concat(a.y,"px"),u.style.left="".concat(a.x,"px")}),{passive:!0})})),r.addEventListener("pointerup",(function(e){if(t.isPointerPressed=!1,t.isPointerDragging)t.isPointerDragging=!1;else{var n=[e,t.pointerDownEvent];requestAnimationFrame((function(){if(0===e.button)if(t.hoverObj){var r=t["on".concat(t.hoverObj.type,"Click")];r&&r.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundClick&&t.onBackgroundClick.apply(t,n);if(2===e.button)if(t.hoverObj){var i=t["on".concat(t.hoverObj.type,"RightClick")];i&&i.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundRightClick&&t.onBackgroundRightClick.apply(t,n)}))}}),{passive:!0}),r.addEventListener("contextmenu",(function(e){return!(t.onBackgroundRightClick||t.onNodeRightClick||t.onLinkRightClick)||(e.preventDefault(),!1)})),t.forceGraph(i),t.shadowGraph(o);var c=yi()((function(){Do(o,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,E.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Jr(t.canvas);t.shadowGraph.globalScale(e.k).tickFrame()}),800);t.flushShadowCanvas=c.flush,(this._animationCycle=function e(){var n=!t.autoPauseRedraw||!!t.needsRedraw||t.forceGraph.isEngineRunning()||t.graphData.links.some((function(e){return e.__photons&&e.__photons.length}));if(t.needsRedraw=!1,t.enablePointerInteraction){var r=t.isPointerDragging?null:s();if(r!==t.hoverObj){var o=t.hoverObj,a=o?o.type:null,l=r?r.type:null;if(a&&a!==l){var d=t["on".concat(a,"Hover")];d&&d(null,o.d)}if(l){var f=t["on".concat(l,"Hover")];f&&f(r.d,a===l?o.d:null)}var h=r&&(0,E.default)(t["".concat(r.type.toLowerCase(),"Label")])(r.d)||"";u.style.visibility=h?"visible":"hidden",u.innerHTML=h,t.canvas.classList[r&&t["on".concat(l,"Click")]||!r&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=r}n&&c()}if(n){Do(i,t.width,t.height);var p=Jr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(i,p),t.forceGraph.globalScale(p).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(i,p)}$e.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),No={width:D().number,height:D().number,graphData:D().shape({nodes:D().arrayOf(D().object).isRequired,links:D().arrayOf(D().object).isRequired}),backgroundColor:D().string,nodeRelSize:D().number,nodeId:D().string,nodeLabel:D().oneOfType([D().string,D().func]),nodeVal:D().oneOfType([D().number,D().string,D().func]),nodeVisibility:D().oneOfType([D().bool,D().string,D().func]),nodeColor:D().oneOfType([D().string,D().func]),nodeAutoColorBy:D().oneOfType([D().string,D().func]),onNodeHover:D().func,onNodeClick:D().func,linkSource:D().string,linkTarget:D().string,linkLabel:D().oneOfType([D().string,D().func]),linkVisibility:D().oneOfType([D().bool,D().string,D().func]),linkColor:D().oneOfType([D().string,D().func]),linkAutoColorBy:D().oneOfType([D().string,D().func]),linkWidth:D().oneOfType([D().number,D().string,D().func]),linkCurvature:D().oneOfType([D().number,D().string,D().func]),linkDirectionalArrowLength:D().oneOfType([D().number,D().string,D().func]),linkDirectionalArrowColor:D().oneOfType([D().string,D().func]),linkDirectionalArrowRelPos:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticles:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleSpeed:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleWidth:D().oneOfType([D().number,D().string,D().func]),linkDirectionalParticleColor:D().oneOfType([D().string,D().func]),onLinkHover:D().func,onLinkClick:D().func,dagMode:D().oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:D().number,dagNodeFilter:D().func,onDagError:D().func,d3AlphaMin:D().number,d3AlphaDecay:D().number,d3VelocityDecay:D().number,warmupTicks:D().number,cooldownTicks:D().number,cooldownTime:D().number,onEngineTick:D().func,onEngineStop:D().func,getGraphBbox:D().func},Ro={zoomToFit:D().func,onNodeRightClick:D().func,onNodeDrag:D().func,onNodeDragEnd:D().func,onLinkRightClick:D().func,linkHoverPrecision:D().number,onBackgroundClick:D().func,onBackgroundRightClick:D().func,enablePointerInteraction:D().bool,enableNodeDrag:D().bool},Mo={showNavInfo:D().bool,nodeOpacity:D().number,nodeResolution:D().number,nodeThreeObject:D().oneOfType([D().object,D().string,D().func]),nodeThreeObjectExtend:D().oneOfType([D().bool,D().string,D().func]),linkOpacity:D().number,linkResolution:D().number,linkCurveRotation:D().oneOfType([D().number,D().string,D().func]),linkMaterial:D().oneOfType([D().object,D().string,D().func]),linkThreeObject:D().oneOfType([D().object,D().string,D().func]),linkThreeObjectExtend:D().oneOfType([D().bool,D().string,D().func]),linkPositionUpdate:D().func,linkDirectionalArrowResolution:D().number,linkDirectionalParticleResolution:D().number,forceEngine:D().oneOf(["d3","ngraph"]),ngraphPhysics:D().object,numDimensions:D().oneOf([1,2,3])},Po=Object.assign({},No,Ro,{linkLineDash:D().oneOfType([D().arrayOf(D().number),D().string,D().func]),nodeCanvasObjectMode:D().oneOfType([D().string,D().func]),nodeCanvasObject:D().func,nodePointerAreaPaint:D().func,linkCanvasObjectMode:D().oneOfType([D().string,D().func]),linkCanvasObject:D().func,linkPointerAreaPaint:D().func,autoPauseRedraw:D().bool,minZoom:D().number,maxZoom:D().number,enableZoomInteraction:D().bool,enablePanInteraction:D().bool,onZoom:D().func,onZoomEnd:D().func,onRenderFramePre:D().func,onRenderFramePost:D().func}),Lo=Object.assign({},No,Ro,Mo,{enableNavigationControls:D().bool,controlType:D().oneOf(["trackball","orbit","fly"]),rendererConfig:D().object,extraRenderers:D().arrayOf(D().shape({render:D().func.isRequired}))}),Fo=Object.assign({},No,Mo,{nodeDesc:D().oneOfType([D().string,D().func]),linkDesc:D().oneOfType([D().string,D().func])}),jo=Object.assign({},No,Mo,{markerAttrs:D().object,yOffset:D().number,glScale:D().number});const Ho=y(S,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});Ho.displayName="ForceGraphVR",Ho.propTypes=Fo;const Bo=y(j,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Bo.displayName="ForceGraphAR",Bo.propTypes=jo;const zo=y(gt,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});zo.displayName="ForceGraph3D",zo.propTypes=Lo;const Uo=y(Io,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Uo.displayName="ForceGraph2D",Uo.propTypes=Po},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}t.default=c;var o=n(3),a=i(n(4)),s=n(14),u=i(n(15));function c(e){var t=e.activeClassName,n=void 0===t?"":t,i=e.activeIndex,a=void 0===i?-1:i,c=e.activeStyle,l=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,h=e.className,p=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,v=e.highlightStyle,y=void 0===v?{}:v,b=e.highlightTag,E=void 0===b?"mark":b,T=e.sanitize,x=e.searchWords,_=e.textToHighlight,w=e.unhighlightClassName,k=void 0===w?"":w,C=e.unhighlightStyle,A=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),S=(0,o.findAll)({autoEscape:l,caseSensitive:f,findChunks:p,sanitize:T,searchWords:x,textToHighlight:_}),O=E,D=-1,I="",N=void 0,R=(0,u.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",r({className:h},A,{children:S.map((function(e,t){var r=_.substr(e.start,e.end-e.start);if(e.highlight){D++;var i=void 0;i="object"===typeof g?f?g[r]:(g=R(g))[r.toLowerCase()]:g;var o=D===+a;I=i+" "+(o?n:""),N=!0===o&&null!=c?Object.assign({},y,c):y;var u={children:r,className:I,key:t,style:N};return"string"!==typeof O&&(u.highlightIndex=D),(0,s.createElement)(O,u)}return(0,s.createElement)("span",{children:r,className:k,key:t,style:C})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,o=e.caseSensitive,a=void 0!==o&&o,s=e.findChunks,u=void 0===s?r:s,c=e.sanitize,l=e.searchWords,d=e.textToHighlight;return i({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=void 0===r?o:r,a=e.searchWords,s=e.textToHighlight;return s=i(s),a.filter((function(e){return e})).reduce((function(e,r){r=i(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(r,n?"g":"gi"),a=void 0;a=o.exec(s);){var u=a.index,c=o.lastIndex;c>u&&e.push({start:u,end:c}),a.index==o.lastIndex&&o.lastIndex++}return e}),[])};t.findChunks=r;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],i=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{var o=0;t.forEach((function(e){i(o,e.start,!1),i(e.start,e.end,!0),o=e.end})),i(o,n,!1)}return r};function o(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(7),i=n(8),o=n(9),a=n(10),s=n(11),u=n(12);e.exports=function(e,n){var c="function"===typeof Symbol&&Symbol.iterator;var l="<<anonymous>>",d={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:p(r.thatReturnsNull),arrayOf:function(e){return p((function(t,n,r,i,o){if("function"!==typeof e)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=e(a,u,r,i,o+"["+u+"]",s);if(c instanceof Error)return c}return null}))},element:p((function(t,n,r,i,o){var a=t[n];return e(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return p((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||l;return new h("Invalid "+i+" `"+o+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:p((function(e,t,n,r,i){return g(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return p((function(t,n,r,i,o){if("function"!==typeof e)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=v(a);if("object"!==u)return new h("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return p((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new h("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!==typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),r.thatReturnsNull}return p((function(t,n,r,i,o){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,i,o,s))return null;return new h("Invalid "+i+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(e){return p((function(t,n,r,i,o){var a=t[n],u=v(a);if("object"!==u)return new h("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var d=l(a,c,r,i,o+"."+c,s);if(d)return d}}return null}))},exact:function(e){return p((function(t,n,r,i,o){var u=t[n],c=v(u);if("object"!==c)return new h("Invalid "+i+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var d in l){var f=e[d];if(!f)return new h("Invalid "+i+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(u,d,r,i,o+"."+d,s);if(p)return p}return null}))}};function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function u(u,c,d,f,p,m,g){if(f=f||l,m=m||d,g!==s)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var v=f+":"+d;!r[v]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,f),r[v]=!0,a++)}return null==c[d]?u?null===c[d]?new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `null`."):new h("The "+p+" `"+m+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,d,f,p,m)}var c=u.bind(null,!1);return c.isRequired=u.bind(null,!0),c}function m(e){return p((function(t,n,r,i,o,a){var s=t[n];return v(s)!==e?new h("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if("undefined"===typeof e||null===e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=u,d.PropTypes=d,d}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,o,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],d=0;(c=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var r=n(7);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!==typeof console&&console.error(o);try{throw new Error(o)}catch(a){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(n){s=n(a);for(var d=0;d<s.length;d++)i.call(a,s[d])&&(u[s[d]]=a[s[d]])}}return u}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(8),i=n(9),o=n(11),a={};e.exports=function(e,n,s,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var d;try{r("function"===typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",s,l,typeof e[l]),d=e[l](n,l,u,s,null,o)}catch(h){d=h}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,l,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var r=n(7),i=n(8),o=n(11);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=n(67294)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,i=[],o=void 0,a=!1,s=function(e,n){return t(e,i[n])},u=function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];return a&&r===this&&n.length===i.length&&n.every(s)?o:(a=!0,r=this,i=n,o=e.apply(this,n))};return u}}])},44405:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function u(e){return e&&e.map((function(e,t){return r.createElement(e.tag,a({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return r.createElement(l,a({attr:a({},e.attr)},t),u(e.child))}}function l(e){var t=function(t){var n,i=e.attr,o=e.size,u=e.title,c=s(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==o?r.createElement(o.Consumer,null,(function(e){return t(e)})):t(i)}},49909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67294);t.default=function(e,t,n){var i=r.useRef(void 0);i.current&&n(t,i.current)||(i.current=t),r.useEffect(e,i.current)}},96705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70655),i=n(85987),o=r.__importDefault(n(49909));t.default=function(e,t){o.default(e,t,i.isDeepEqual)}},85987:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var r=n(70655).__importDefault(n(38252));t.isClient="object"===typeof window,t.on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.removeEventListener.apply(e,t)},t.isDeepEqual=r.default},22003:function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function i(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e}var a=function(e,t){this.target=t,this.type=e},s=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return r(t,e),t}(a),u=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var i=e.call(this,"close",r)||this;return i.wasClean=!0,i.code=t,i.reason=n,i}return r(t,e),t}(a),c=function(){if("undefined"!==typeof WebSocket)return WebSocket},l={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},d=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?l.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"===typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?l.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug("enqueue",e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var i=function(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),o=i.next();!o.done;o=i.next()){var a=o.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,o(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,i=void 0===r?l.minReconnectionDelay:r,o=e.maxReconnectionDelay,a=void 0===o?l.maxReconnectionDelay:o,s=0;return this._retryCount>0&&(s=i*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"===typeof e)return Promise.resolve(e);if("function"===typeof e){var t=e();if("string"===typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?l.maxRetries:n,i=t.connectionTimeout,o=void 0===i?l.connectionTimeout:i,a=t.WebSocket,s=void 0===a?c():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),"undefined"===typeof(u=s)||!u||2!==u.CLOSING)throw Error("No valid WebSocket class provided");var u;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),o))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new u(e,t,this))}catch(n){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.Z=d},71167:function(e,t,n){const r=n(62854),i=n(20527).renderToString,o=n(18835),a=n(13322),s=n(85330);e.exports=function(e){const t=e||{},n=t.throwOnError||!1;return function(e,o){function a(e){const r=e.properties.className||[],a=r.includes("math-inline"),d=r.includes("math-display");if(!a&&!d)return;const f=s(e);let h;try{h=i(f,u({},t,{displayMode:d,throwOnError:!0}))}catch(p){const r=n?"fail":"message",a=[l,p.name.toLowerCase()].join(":");o[r](p.message,e.position,a),h=i(f,u({},t,{displayMode:d,throwOnError:!1,strict:"ignore"}))}e.children=c.parse(h).children}r(e,"element",a)}};const u=Object.assign,c=o().use(a,{fragment:!0,position:!1}),l="rehype-katex"},13322:function(e,t,n){"use strict";var r=n(92114),i=n(7045),o=n(92471),a={2:!0,1:!1,0:null};function s(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=Object.assign({},e,this.data("settings")),n=t.position;n="boolean"!==typeof n||n,this.Parser=function(e,u){var c=t.fragment?"parseFragment":"parse",l=t.emitParseErrors?function(n){var r,i,c=n.code,l=c.replace(/-[a-z]/g,s),d=t[l],f=void 0===d||null===d||d,h="number"===typeof f?f:f?1:0,p={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};function g(e){return e.replace(/%c(?:-(\d+))?/g,v).replace(/%x/g,y)}function v(t,r){var i=r?-parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}h&&(r=o[l]||{reason:"",description:""},(i=u.message(g(r.reason),{start:p,end:m})).source="parse-error",i.ruleId=c,i.fatal=a[h],i.note=g(r.description),i.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+c)}:null,d=new i({sourceCodeLocationInfo:n,onParseError:l,scriptingEnabled:!1});return r(d[c](e),{space:t.space,file:u,verbose:t.verbose})}}},27431:function(e,t,n){"use strict";var r=n(76331),i=n(90478);e.exports=function(e){var t=e||{},n=t.createElement;function s(e,r,i){var s=e;return i&&a.has(e)&&(i=i.filter((function(e){return"\n"!==e}))),t.components&&o.call(t.components,e)&&(s=t.components[e],t.passNode&&(r.node=this)),n(s,r,i)}this.Compiler=function(e){var o=r(s,i(e),t.prefix);return"root"===e.type?(o="div"!==o.type||1===e.children.length&&"element"===e.children[0].type?[o]:o.props.children,n(t.Fragment||"div",{},o)):o}};var o={}.hasOwnProperty,a=new Set(["table","thead","tbody","tfoot","tr","th","td"])},67597:function(e){e.exports=function(e={}){return function(t,n){let r;function i(t){return function({type:t,value:i}){const o=e[t];if(!o||"function"!==typeof o)return;try{const e=o(i);if(!e)return;return r?(n.data[r]=n.data[r]||{},Object.assign(n.data[r],e)):Object.assign(n.data,e),1}catch(a){return function({message:t,column:r,line:i,name:o},a){let s=e.throws?"fail":"message";return void n[s](t,{line:i,column:r},`parseFrontMatter:${a}:${o}`)}(a,t)}}(t)?1:function({children:t}){if(!t)return;for(let n=0;n<t.length;n++){if(i(t[n]))return e.remove&&(t.splice(n,1),n--),1}return}(t)}"function"===typeof e&&(e.yaml=e),"function"!==typeof e&&e.name&&(r=e.name),i(t)}}},15941:function(e,t,n){"use strict";var r=n(7969),i=n(2215),o=n(63934);e.exports=function(e){var t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",r(e)),n("fromMarkdownExtensions",i(e)),n("toMarkdownExtensions",o(e))}},10043:function(e,t,n){"use strict";var r,i=n(82747),o=n(10438),a=n(48135);e.exports=function(e){var t=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin"));function n(e,n){t[e]?t[e].push(n):t[e]=[n]}n("micromarkExtensions",i(e)),n("fromMarkdownExtensions",o),n("toMarkdownExtensions",a(e))}},93545:function(e,t,n){"use strict";var r,i=n(50444),o=n(54550),a=n(74749);e.exports=function(){var e=this.data();!r&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(r=!0,console.warn("[remark-math] Warning: please upgrade to remark 13 to use this plugin"));function t(t,n){e[t]?e[t].push(n):e[t]=[n]}t("micromarkExtensions",i),t("fromMarkdownExtensions",o),t("toMarkdownExtensions",a)}},12861:function(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(39671)},78818:function(e,t,n){"use strict";var r=n(55288);e.exports=function(e,t){e&&!e.process&&(t=e,e=null);return e?function(e,t){return n;function n(n,i,o){function a(e){o(e)}e.run(r(n,t),i,a)}}(e,t):function(e){return t;function t(t){return r(t,e)}}(t)}},44549:function(e,t,n){const r=n(80135),i=n(46955);function o(e){for(let t=6;t>0;t--)i(e,(e=>"heading"===e.type&&e.depth===t),a)}function a(e,t){const n=e,i=n.depth,o=t[t.length-1],a=r(o,n,(e=>"heading"===e.type&&e.depth<=i||"export"===e.type)),s=o.children.indexOf(n),u=o.children.indexOf(a),c=o.children.slice(s,u>0?u:void 0),l={type:"section",depth:i,children:c,data:{hName:"section"}};o.children.splice(s,l.children.length,l)}e.exports=function(){return o}},80135:function(e,t,n){"use strict";var r=n(34185);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},34185:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return i;if("object"===typeof e)return("length"in e?r:n)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,i=-1;++i<r;)n[i]=t(e[i]);return n}(e),r=n.length;return function(){var e=-1;for(;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function i(){return!0}e.exports=t},46955:function(e,t,n){"use strict";e.exports=a;var r=n(34185),i="skip",o=!1;function a(e,t,n,a){var u;function c(e,r,l){var d,f=[];return(t&&!u(e,r,l[l.length-1]||null)||(f=s(n(e,l)))[0]!==o)&&e.children&&f[0]!==i&&(d=s(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===o)return n;s="number"===typeof n[1]?n[1]:s+i}}(e.children,l.concat(e))))[0]===o?d:f}"function"===typeof t&&"function"!==typeof n&&(a=n,n=t,t=null),u=r(t),c(e,null,[])}function s(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[true,e]:[e]}a.CONTINUE=true,a.SKIP=i,a.EXIT=o},80816:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=-2,i=0,o=null,a=32;function s(e){return e<i||e===a}function u(e){return e<r}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=t,r="[[",i="]]";function a(e,t,a){var c,l,d=0,f=0,h=0;return function(t){return t!==r.charCodeAt(f)?a(t):(e.enter("wikiLink"),e.enter("wikiLinkMarker"),p(t))};function p(t){return f===r.length?(e.exit("wikiLinkMarker"),function(t){if(u(t)||t===o)return a(t);return e.enter("wikiLinkData"),e.enter("wikiLinkTarget"),m(t)}(t)):t!==r.charCodeAt(f)?a(t):(e.consume(t),f++,p)}function m(t){return t===n.charCodeAt(d)?c?(e.exit("wikiLinkTarget"),e.enter("wikiLinkAliasMarker"),g(t)):a(t):t===i.charCodeAt(h)?c?(e.exit("wikiLinkTarget"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(c=!0),e.consume(t),m)}function g(t){return d===n.length?(e.exit("wikiLinkAliasMarker"),e.enter("wikiLinkAlias"),v(t)):t!==n.charCodeAt(d)?a(t):(e.consume(t),d++,g)}function v(t){return t===i.charCodeAt(h)?l?(e.exit("wikiLinkAlias"),e.exit("wikiLinkData"),e.enter("wikiLinkMarker"),y(t)):a(t):u(t)||t===o?a(t):(s(t)||(l=!0),e.consume(t),v)}function y(n){return h===i.length?(e.exit("wikiLinkMarker"),e.exit("wikiLink"),t(n)):n!==i.charCodeAt(h)?a(n):(e.consume(n),h++,y)}}var c={tokenize:a};return{text:{91:c}}}var l,d=n(51113),f=n.n(d);function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.permalinks||[],n=function(e){return[e.replace(/ /g,"_").toLowerCase()]},r=e.pageResolver||n,i=e.newClassName||"new",o=e.wikiLinkClassName||"internal",a=function(e){return"#/page/".concat(e)},s=e.hrefTemplate||a;function u(e){this.enter({type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},e)}function c(e){return e[e.length-1]}function l(e){var t=this.sliceSerialize(e);c(this.stack).data.alias=t}function d(e){var t=this.sliceSerialize(e);c(this.stack).value=t}function f(e){var n=this.exit(e),a=r(n.value),u=a.find((function(e){return-1!==t.indexOf(e)})),c=void 0!==u;c||(u=a[0]);var l=n.value;n.data.alias&&(l=n.data.alias);var d=o;c||(d+=" "+i),n.data.alias=l,n.data.permalink=u,n.data.exists=c,n.data.hName="a",n.data.hProperties={className:d,href:s(u)},n.data.hChildren=[{type:"text",value:l}]}return{enter:{wikiLink:u},exit:{wikiLinkTarget:d,wikiLinkAlias:l,wikiLink:f}}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.aliasDivider||":",n=[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}];function r(e,n,r){var i,o=r.enter("wikiLink"),a=f()(r,e.value,{before:"[",after:"]"}),s=f()(r,e.data.alias,{before:"[",after:"]"});return i=s!==a?"[[".concat(a).concat(t).concat(s,"]]"):"[[".concat(a,"]]"),o(),i}return{unsafe:n,handlers:{wikiLink:r}}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){t[e]?t[e].push(n):t[e]=[n]}!l&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(l=!0,console.warn("[remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",c(e)),n("fromMarkdownExtensions",h(e)),n("toMarkdownExtensions",p(e))}m.wikiLinkPlugin=m;var g=m},76826:function(e){var t={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u0108":"C","\u0109":"c","\u010a":"C","\u010b":"c","\u010c":"C","\u010d":"c","C\u0306":"C","c\u0306":"c","\u010e":"D","\u010f":"d","\u0110":"D","\u0111":"d","\u0112":"E","\u0113":"e","\u0114":"E","\u0115":"e","\u0116":"E","\u0117":"e","\u0118":"E","\u0119":"e","\u011a":"E","\u011b":"e","\u011c":"G","\u01f4":"G","\u011d":"g","\u01f5":"g","\u011e":"G","\u011f":"g","\u0120":"G","\u0121":"g","\u0122":"G","\u0123":"g","\u0124":"H","\u0125":"h","\u0126":"H","\u0127":"h","\u1e2a":"H","\u1e2b":"h","\u0128":"I","\u0129":"i","\u012a":"I","\u012b":"i","\u012c":"I","\u012d":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0132":"IJ","\u0133":"ij","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u1e30":"K","\u1e31":"k","K\u0306":"K","k\u0306":"k","\u0139":"L","\u013a":"l","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u013f":"L","\u0140":"l","\u0141":"l","\u0142":"l","\u1e3e":"M","\u1e3f":"m","M\u0306":"M","m\u0306":"m","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0149":"n","N\u0306":"N","n\u0306":"n","\u014c":"O","\u014d":"o","\u014e":"O","\u014f":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","P\u0306":"P","p\u0306":"p","\u0154":"R","\u0155":"r","\u0156":"R","\u0157":"r","\u0158":"R","\u0159":"r","R\u0306":"R","r\u0306":"r","\u0212":"R","\u0213":"r","\u015a":"S","\u015b":"s","\u015c":"S","\u015d":"s","\u015e":"S","\u0218":"S","\u0219":"s","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u021b":"t","\u021a":"T","\u0164":"T","\u0165":"t","\u0166":"T","\u0167":"t","T\u0306":"T","t\u0306":"t","\u0168":"U","\u0169":"u","\u016a":"U","\u016b":"u","\u016c":"U","\u016d":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0216":"U","\u0217":"u","V\u0306":"V","v\u0306":"v","\u0174":"W","\u0175":"w","\u1e82":"W","\u1e83":"w","X\u0306":"X","x\u0306":"x","\u0176":"Y","\u0177":"y","\u0178":"Y","Y\u0306":"Y","y\u0306":"y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u017f":"s","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01cd":"A","\u01ce":"a","\u01cf":"I","\u01d0":"i","\u01d1":"O","\u01d2":"o","\u01d3":"U","\u01d4":"u","\u01d5":"U","\u01d6":"u","\u01d7":"U","\u01d8":"u","\u01d9":"U","\u01da":"u","\u01db":"U","\u01dc":"u","\u1ee8":"U","\u1ee9":"u","\u1e78":"U","\u1e79":"u","\u01fa":"A","\u01fb":"a","\u01fc":"AE","\u01fd":"ae","\u01fe":"O","\u01ff":"o","\xde":"TH","\xfe":"th","\u1e54":"P","\u1e55":"p","\u1e64":"S","\u1e65":"s","X\u0301":"X","x\u0301":"x","\u0403":"\u0413","\u0453":"\u0433","\u040c":"\u041a","\u045c":"\u043a","A\u030b":"A","a\u030b":"a","E\u030b":"E","e\u030b":"e","I\u030b":"I","i\u030b":"i","\u01f8":"N","\u01f9":"n","\u1ed2":"O","\u1ed3":"o","\u1e50":"O","\u1e51":"o","\u1eea":"U","\u1eeb":"u","\u1e80":"W","\u1e81":"w","\u1ef2":"Y","\u1ef3":"y","\u0200":"A","\u0201":"a","\u0204":"E","\u0205":"e","\u0208":"I","\u0209":"i","\u020c":"O","\u020d":"o","\u0210":"R","\u0211":"r","\u0214":"U","\u0215":"u","B\u030c":"B","b\u030c":"b","\u010c\u0323":"C","\u010d\u0323":"c","\xca\u030c":"E","\xea\u030c":"e","F\u030c":"F","f\u030c":"f","\u01e6":"G","\u01e7":"g","\u021e":"H","\u021f":"h","J\u030c":"J","\u01f0":"j","\u01e8":"K","\u01e9":"k","M\u030c":"M","m\u030c":"m","P\u030c":"P","p\u030c":"p","Q\u030c":"Q","q\u030c":"q","\u0158\u0329":"R","\u0159\u0329":"r","\u1e66":"S","\u1e67":"s","V\u030c":"V","v\u030c":"v","W\u030c":"W","w\u030c":"w","X\u030c":"X","x\u030c":"x","Y\u030c":"Y","y\u030c":"y","A\u0327":"A","a\u0327":"a","B\u0327":"B","b\u0327":"b","\u1e10":"D","\u1e11":"d","\u0228":"E","\u0229":"e","\u0190\u0327":"E","\u025b\u0327":"e","\u1e28":"H","\u1e29":"h","I\u0327":"I","i\u0327":"i","\u0197\u0327":"I","\u0268\u0327":"i","M\u0327":"M","m\u0327":"m","O\u0327":"O","o\u0327":"o","Q\u0327":"Q","q\u0327":"q","U\u0327":"U","u\u0327":"u","X\u0327":"X","x\u0327":"x","Z\u0327":"Z","z\u0327":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),i=new RegExp(n,""),o=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=o,e.exports.has=function(e){return!!e.match(i)},e.exports.remove=o},96464:function(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!==typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var i=e.length*r;if(t!==e||"undefined"===typeof t)t=e,n="";else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,i)}},36582:function(e,t){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)},t.stringify=function(e){return e.join(" ").trim()};var n=/[ \t\n\r\f]+/g},57848:function(e,t,n){var r=n(18139);e.exports=function(e,t){var n,i=null;if(!e||"string"!==typeof e)return i;for(var o,a,s=r(e),u="function"===typeof t,c=0,l=s.length;c<l;c++)o=(n=s[c]).property,a=n.value,u?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var r=n(99477),i=n(55061),o=n(66252),a=n(3286),s=n(54625),u=n(77729),c=n(54736),l=n.n(c),d=n(16505),f=n.n(d),h=n(44858),p=n(92539),m=n(76554),g=n(15352),v=n(1527);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t,n){var r=n.objBindAttr,i=void 0===r?"__obj":r,o=n.dataBindAttr,a=void 0===o?"__data":o,s=n.idAccessor,u=n.purge,c=void 0!==u&&u,l=function(e){return e.hasOwnProperty(a)},d=t.filter((function(e){return!l(e)})),f=t.filter(l).map((function(e){return e[a]})),h=c?{enter:e,exit:f,update:[]}:function(e,t,n){var r={enter:[],update:[],exit:[]};if(n){var i=(0,v.Z)(e,n,!1),o=(0,v.Z)(t,n,!1),a=Object.assign({},i,o);Object.entries(a).forEach((function(e){var t=T(e,2),n=t[0],a=t[1],s=i.hasOwnProperty(n)?o.hasOwnProperty(n)?"update":"exit":"enter";r[s].push("update"===s?[i[n],o[n]]:a)}))}else{var s=new Set(e),u=new Set(t);new Set([].concat(x(s),x(u))).forEach((function(e){var t=s.has(e)?u.has(e)?"update":"exit":"enter";r[t].push("update"===t?[e,e]:e)}))}return r}(f,e,s);return h.update=h.update.map((function(e){var t=T(e,2),n=t[0],r=t[1];return n!==r&&(r[i]=n[i],r[i][a]=r),r})),h.exit=h.exit.concat(d.map((function(e){return b({},i,e)}))),h}var C=function(e,t,n,r,i){var o=i.createObj,a=void 0===o?function(e){return{}}:o,s=i.updateObj,u=void 0===s?function(e,t){}:s,c=i.exitObj,l=void 0===c?function(e){}:c,d=i.objBindAttr,f=void 0===d?"__obj":d,h=i.dataBindAttr,p=void 0===h?"__data":h,m=E(i,["createObj","updateObj","exitObj","objBindAttr","dataBindAttr"]),g=k(e,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({objBindAttr:f,dataBindAttr:p},m)),v=g.enter,T=g.update;g.exit.forEach((function(e){var t=e[f];delete e[f],l(t),r(t)}));var _=function(e){var t=[];return e.forEach((function(e){var n=a(e);n&&(n[p]=e,e[f]=n,t.push(n))})),t}(v);!function(e){e.forEach((function(e){var t=e[f];t&&(t[p]=e,u(t,e))}))}([].concat(x(v),x(T))),_.forEach(n)},A=n(93704),S=n(59735),O=n(17621),D=n.n(O);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){return(R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function B(e,t,n){return(B=H()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&j(i,n.prototype),i}).apply(null,arguments)}function z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?U(e):t}function G(e){var t=H();return function(){var n,r=F(e);if(t){var i=F(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(e){if("string"===typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Z=function e(t){t instanceof Array?t.forEach(e):(t.map&&t.map.dispose(),t.dispose())},Y=function e(t){t.geometry&&t.geometry.dispose(),t.material&&Z(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(e)},X=function(e){for(;e.children.length;){var t=e.children[0];e.remove(t),Y(t)}},Q=["objFilter"];function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,i=void 0===r?function(){return!0}:r,o=z(n,Q);return C(e,t.children.filter(i),(function(e){return t.add(e)}),(function(e){t.remove(e),X(e)}),N({objBindAttr:"__threeObj"},o))}var ee=function(e){return isNaN(e)?parseInt(D()(e).toHex(),16):e},te=function(e){return isNaN(e)?D()(e).getAlpha():1},ne=(0,A.Z)(S.Z);function re(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=ne(t(e))}))}var ie=window.THREE?window.THREE:{Group:r.ZAu,Mesh:r.Kj0,MeshLambertMaterial:r.YBo,Color:r.Ilk,BufferGeometry:r.u9r,BufferAttribute:r.TlE,Matrix4:r.yGw,Vector3:r.Pa4,SphereBufferGeometry:r.Aip,CylinderBufferGeometry:r.m_w,TubeBufferGeometry:r.Lcc,ConeBufferGeometry:r._3,Line:r.x12,LineBasicMaterial:r.nls,QuadraticBezierCurve3:r.mXe,CubicBezierCurve3:r.yj7,Box3:r.ZzF},oe={graph:l(),forcelayout:f()},ae=(new ie.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new ie.BufferGeometry).applyMatrix4?"applyMatrix4":"applyMatrix";var ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(t){L(i,t);var r=G(i);function i(){var t;M(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(t=r.call.apply(r,[this].concat(a))).__kapsuleInstance=e().apply(void 0,[].concat(q(n?[U(t)]:[]),a)),t}return i}(t);return Object.keys(e()).forEach((function(e){return r.prototype[e]=function(){var t,n=(t=this.__kapsuleInstance)[e].apply(t,arguments);return n===this.__kapsuleInstance?this:n}})),r}((0,h.Z)({props:{jsonUrl:{onChange:function(e,t){var n=this;e&&!t.fetchingJson&&(t.fetchingJson=!0,t.onLoading(),fetch(e).then((function(e){return e.json()})).then((function(e){t.fetchingJson=!1,t.onFinishLoading(e),n.graphData(e)})))},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},numDimensions:{default:3,onChange:function(e,t){var n=t.d3ForceLayout.force("charge");function r(e,t){e.forEach((function(e){delete e[t],delete e["v".concat(t)]}))}n&&n.strength(e>2?-60:-30),e<3&&r(t.graphData.nodes,"z"),e<2&&r(t.graphData.nodes,"y")}},dagMode:{onChange:function(e,t){!e&&"d3"===t.forceEngine&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=e.fz=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeVisibility:{default:!0},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{},linkResolution:{default:6},linkCurvature:{default:0,triggerUpdate:!1},linkCurveRotation:{default:0,triggerUpdate:!1},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{triggerUpdate:!1},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.velocityDecay(e)}},ngraphPhysics:{default:{timeStep:20,gravity:-1.2,theta:.8,springLength:30,springCoefficient:8e-4,dragCoefficient:.02}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onLoading:{default:function(){},triggerUpdate:!1},onFinishLoading:{default:function(){},triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1}},methods:{refresh:function(e){return e._flushObjects=!0,e._rerender(),this},d3Force:function(e,t,n){return void 0===n?e.d3ForceLayout.force(t):(e.d3ForceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.d3ForceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},tickFrame:function(e){var t="ngraph"!==e.forceEngine;return e.engineRunning&&function(){++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||t&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.layout[t?"tick":"step"](),e.onEngineTick());e.graphData.nodes.forEach((function(n){var r=n.__threeObj;if(r){var i=t?n:e.layout.getNodePosition(n[e.nodeId]);r.position.x=i.x,r.position.y=i.y||0,r.position.z=i.z||0}}));var n=(0,p.default)(e.linkWidth),r=(0,p.default)(e.linkCurvature),i=(0,p.default)(e.linkCurveRotation),o=(0,p.default)(e.linkThreeObjectExtend);function a(n){var o=t?n:e.layout.getLinkPosition(e.layout.graph.getLink(n.source,n.target).id),a=o[t?"source":"from"],s=o[t?"target":"to"];if(a&&s&&a.hasOwnProperty("x")&&s.hasOwnProperty("x")){var u=r(n);if(u){var c,l=new ie.Vector3(a.x,a.y||0,a.z||0),d=new ie.Vector3(s.x,s.y||0,s.z||0),f=l.distanceTo(d),h=i(n);if(f>0){var p=s.x-a.x,m=s.y-a.y||0,g=(new ie.Vector3).subVectors(d,l),v=g.clone().multiplyScalar(u).cross(0!==p||0!==m?new ie.Vector3(0,0,1):new ie.Vector3(0,1,0)).applyAxisAngle(g.normalize(),h).add((new ie.Vector3).addVectors(l,d).divideScalar(2));c=new ie.QuadraticBezierCurve3(l,v,d)}else{var y=70*u,b=-h,E=b+Math.PI/2;c=new ie.CubicBezierCurve3(l,new ie.Vector3(y*Math.cos(E),y*Math.sin(E),0).add(l),new ie.Vector3(y*Math.cos(b),y*Math.sin(b),0).add(l),d)}n.__curve=c}else n.__curve=null}}e.graphData.links.forEach((function(r){var i=r.__lineObj;if(i){var s=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){a(r);var l=o(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?i.children[1]:i,{start:{x:u.x,y:u.y,z:u.z},end:{x:c.x,y:c.y,z:c.z}},r)||l){var d=30,f=r.__curve,h=i.children.length?i.children[0]:i;if("Line"===h.type){if(f)h.geometry.setFromPoints(f.getPoints(d));else{var p=h.geometry.getAttribute("position");p&&p.array&&6===p.array.length||h.geometry[ae]("position",p=new ie.BufferAttribute(new Float32Array(6),3)),p.array[0]=u.x,p.array[1]=u.y||0,p.array[2]=u.z||0,p.array[3]=c.x,p.array[4]=c.y||0,p.array[5]=c.z||0,p.needsUpdate=!0}h.geometry.computeBoundingSphere()}else if("Mesh"===h.type)if(f){h.geometry.type.match(/^Tube(Buffer)?Geometry$/)||(h.position.set(0,0,0),h.rotation.set(0,0,0),h.scale.set(1,1,1));var m=Math.ceil(10*n(r))/10/2,g=new ie.TubeBufferGeometry(f,d,m,e.linkResolution,!1);h.geometry.dispose(),h.geometry=g}else{if(!h.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)){var v=Math.ceil(10*n(r))/10/2,y=new ie.CylinderBufferGeometry(v,v,1,e.linkResolution,1,!1);y[se]((new ie.Matrix4).makeTranslation(0,.5,0)),y[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),h.geometry.dispose(),h.geometry=y}var b=new ie.Vector3(u.x,u.y||0,u.z||0),E=new ie.Vector3(c.x,c.y||0,c.z||0),T=b.distanceTo(E);h.position.x=b.x,h.position.y=b.y,h.position.z=b.z,h.scale.z=T,h.parent.localToWorld(E),h.lookAt(E)}}}}}))}(),function(){var n=(0,p.default)(e.linkDirectionalArrowRelPos),r=(0,p.default)(e.linkDirectionalArrowLength),i=(0,p.default)(e.nodeVal);e.graphData.links.forEach((function(o){var a=o.__arrowObj;if(a){var s=t?o:e.layout.getLinkPosition(e.layout.graph.getLink(o.source,o.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,i(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,f=r(o),h=n(o),p=o.__curve?function(e){return o.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",u,c,e),y:t("y",u,c,e),z:t("z",u,c,e)}},m=o.__curve?o.__curve.getLength():Math.sqrt(["x","y","z"].map((function(e){return Math.pow((c[e]||0)-(u[e]||0),2)})).reduce((function(e,t){return e+t}),0)),g=l+f+(m-l-d-f)*h,v=p(g/m),y=p((g-f)/m);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=B(ie.Vector3,q(["x","y","z"].map((function(e){return v[e]}))));a.parent.localToWorld(b),a.lookAt(b)}}}))}(),function(){var n=(0,p.default)(e.linkDirectionalParticleSpeed);e.graphData.links.forEach((function(r){var i=r.__photonsObj&&r.__photonsObj.children,o=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(o&&o.length||i&&i.length){var a=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),s=a[t?"source":"from"],u=a[t?"target":"to"];if(s&&u&&s.hasOwnProperty("x")&&u.hasOwnProperty("x")){var c=n(r),l=r.__curve?function(e){return r.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",s,u,e),y:t("y",s,u,e),z:t("z",s,u,e)}};[].concat(q(i||[]),q(o||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/i.length),e.__progressRatio+=c,e.__progressRatio>=1){if(n)return e.parent.remove(e),void X(e);e.__progressRatio=e.__progressRatio%1}var r=e.__progressRatio,o=l(r);["x","y","z"].forEach((function(t){return e.position[t]=o[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new ie.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,p.default)(e.linkDirectionalParticleWidth),i=Math.ceil(10*r(t))/10/2,o=e.linkDirectionalParticleResolution,a=new ie.SphereBufferGeometry(i,o,o),s=(0,p.default)(e.linkColor),u=(0,p.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",c=new ie.Color(ee(u)),l=3*e.linkOpacity,d=new ie.MeshLambertMaterial({color:c,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new ie.Mesh(a,d))}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!e.initialised)return null;var n=function e(n){var r=[];if(n.geometry){n.geometry.computeBoundingBox();var i=new ie.Box3;i.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(i)}return r.concat.apply(r,q((n.children||[]).filter((function(e){return!e.hasOwnProperty("__graphObjType")||"node"===e.__graphObjType&&t(e.__data)})).map(e)))}(e.graphScene);return n.length?Object.assign.apply(Object,q(["x","y","z"].map((function(e){return P({},e,[(0,m.Z)(n,(function(t){return t.min[e]})),(0,g.Z)(n,(function(t){return t.max[e]}))])})))):null}},stateInit:function(){return{d3ForceLayout:(0,i.Z)().force("link",(0,o.Z)()).force("charge",(0,a.Z)()).force("center",(0,s.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.graphScene=e},update:function(e,t){var n=function(e){return e.some((function(e){return t.hasOwnProperty(e)}))};if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&n(["nodeAutoColorBy","graphData","nodeColor"])&&re(e.graphData.nodes,(0,p.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&n(["linkAutoColorBy","graphData","linkColor"])&&re(e.graphData.links,(0,p.default)(e.linkAutoColorBy),e.linkColor),e._flushObjects||n(["graphData","nodeThreeObject","nodeThreeObjectExtend","nodeVal","nodeColor","nodeVisibility","nodeRelSize","nodeResolution","nodeOpacity"])){var r=(0,p.default)(e.nodeThreeObject),i=(0,p.default)(e.nodeThreeObjectExtend),o=(0,p.default)(e.nodeVal),a=(0,p.default)(e.nodeColor),s=(0,p.default)(e.nodeVisibility),c={},l={};J(e.graphData.nodes.filter(s),e.graphScene,{purge:e._flushObjects||n(["nodeThreeObject","nodeThreeObjectExtend"]),objFilter:function(e){return"node"===e.__graphObjType},createObj:function(t){var n,o=r(t),a=i(t);return o&&e.nodeThreeObject===o&&(o=o.clone()),o&&!a?n=o:((n=new ie.Mesh).__graphDefaultObj=!0,o&&a&&n.add(o)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=o(n)||1,i=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===i&&t.geometry.parameters.widthSegments===s||(c.hasOwnProperty(r)||(c[r]=new ie.SphereBufferGeometry(i,s,s)),t.geometry.dispose(),t.geometry=c[r]);var u=a(n),d=new ie.Color(ee(u||"#ffffaa")),f=e.nodeOpacity*te(u);"MeshLambertMaterial"===t.material.type&&t.material.color.equals(d)&&t.material.opacity===f||(l.hasOwnProperty(u)||(l[u]=new ie.MeshLambertMaterial({color:d,transparent:!0,opacity:f})),t.material.dispose(),t.material=l[u])}}})}if(e._flushObjects||n(["graphData","linkThreeObject","linkThreeObjectExtend","linkMaterial","linkColor","linkWidth","linkVisibility","linkResolution","linkOpacity","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution"])){var d=(0,p.default)(e.linkThreeObject),f=(0,p.default)(e.linkThreeObjectExtend),h=(0,p.default)(e.linkMaterial),m=(0,p.default)(e.linkVisibility),g=(0,p.default)(e.linkColor),v=(0,p.default)(e.linkWidth),y={},b={},E={},T=e.graphData.links.filter(m);if(J(T,e.graphScene,{objBindAttr:"__lineObj",purge:e._flushObjects||n(["linkThreeObject","linkThreeObjectExtend","linkWidth"]),objFilter:function(e){return"link"===e.__graphObjType},createObj:function(t){var n,r,i=d(t),o=f(t);if(i&&e.linkThreeObject===i&&(i=i.clone()),!i||o)if(!!v(t))n=new ie.Mesh;else{var a=new ie.BufferGeometry;a[ae]("position",new ie.BufferAttribute(new Float32Array(6),3)),n=new ie.Line(a)}return i?o?((r=new ie.Group).__graphDefaultObj=!0,r.add(n),r.add(i)):r=i:(r=n).__graphDefaultObj=!0,r.renderOrder=10,r.__graphObjType="link",r},updateObj:function(t,n){if(t.__graphDefaultObj){var r=t.children.length?t.children[0]:t,i=Math.ceil(10*v(n))/10,o=!!i;if(o){var a=i/2,s=e.linkResolution;if(!r.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)||r.geometry.parameters.radiusTop!==a||r.geometry.parameters.radialSegments!==s){if(!y.hasOwnProperty(i)){var u=new ie.CylinderBufferGeometry(a,a,1,s,1,!1);u[se]((new ie.Matrix4).makeTranslation(0,.5,0)),u[se]((new ie.Matrix4).makeRotationX(Math.PI/2)),y[i]=u}r.geometry.dispose(),r.geometry=y[i]}}var c=h(n);if(c)r.material=c;else{var l=g(n),d=new ie.Color(ee(l||"#f0f0f0")),f=e.linkOpacity*te(l),p=o?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==p||!r.material.color.equals(d)||r.material.opacity!==f){var m=o?b:E;m.hasOwnProperty(l)||(m[l]=new ie[p]({color:d,transparent:f<1,opacity:f,depthWrite:f>=1})),r.material.dispose(),r.material=m[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var x=(0,p.default)(e.linkDirectionalArrowLength),_=(0,p.default)(e.linkDirectionalArrowColor);J(T.filter(x),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new ie.Mesh(void 0,new ie.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=x(n),i=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==i){var o=new ie.ConeBufferGeometry(.25*r,r,i);o.translate(0,r/2,0),o.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=o}t.material.color=new ie.Color(_(n)||g(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var w=(0,p.default)(e.linkDirectionalParticles),k=(0,p.default)(e.linkDirectionalParticleWidth),C=(0,p.default)(e.linkDirectionalParticleColor),A={},S={};J(T.filter(w),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new ie.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,i=Math.round(Math.abs(w(n))),o=!!t.children.length&&t.children[0],a=Math.ceil(10*k(n))/10/2,s=e.linkDirectionalParticleResolution;o&&o.geometry.parameters.radius===a&&o.geometry.parameters.widthSegments===s?r=o.geometry:(S.hasOwnProperty(a)||(S[a]=new ie.SphereBufferGeometry(a,s,s)),r=S[a],o&&o.geometry.dispose());var u,c=C(n)||g(n)||"#f0f0f0",l=new ie.Color(ee(c)),d=3*e.linkOpacity;o&&o.material.color.equals(l)&&o.material.opacity===d?u=o.material:(A.hasOwnProperty(c)||(A[c]=new ie.MeshLambertMaterial({color:l,transparent:!0,opacity:d})),u=A[c],o&&o.material.dispose()),J(q(new Array(i)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new ie.Mesh(r,u)},updateObj:function(e){e.geometry=r,e.material=u}})}})}}if(e._flushObjects=!1,n(["graphData","nodeId","linkSource","linkTarget","numDimensions","forceEngine","dagMode","dagNodeFilter","dagLevelDistance"])){e.engineRunning=!1,e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]}));var O,D="ngraph"!==e.forceEngine;if(D){(O=e.d3ForceLayout).stop().alpha(1).numDimensions(e.numDimensions).nodes(e.graphData.nodes);var I=e.d3ForceLayout.force("link");I&&I.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var M=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,s=i.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,i=u(n),o=u(r);if(!c.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!c.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=c[i],s=c[o];function u(e){return"object"===R(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(q(Object.entries(c).filter((function(e){return!K(e,2)[1].skip})).map((function(e){var t=K(e,2);return P({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0,o=e.length;i<o;i++){var a=e[i];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(q(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),u(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(q(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),L=Math.max.apply(Math,q(Object.values(M||[]))),F=e.dagLevelDistance||e.graphData.nodes.length/(L||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var j=function(t,n){return function(r){return t?(M[r[e.nodeId]]-L/2)*F*(n?-1:1):void 0}},H=j(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),B=j(-1!==["td","bu"].indexOf(e.dagMode),"td"===e.dagMode),z=j(-1!==["zin","zout"].indexOf(e.dagMode),"zout"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=H(e),e.fy=B(e),e.fz=z(e)}))}e.d3ForceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,u.Z)((function(t){var n=M[t[e.nodeId]]||-1;return("radialin"===e.dagMode?L-n:n)*F})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null)}else{var U=oe.graph();e.graphData.nodes.forEach((function(t){U.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){U.addLink(e.source,e.target)})),(O=oe.forcelayout(U,N({dimensions:e.numDimensions},e.ngraphPhysics))).graph=U}for(var V=0;V<e.warmupTicks&&!(D&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin);V++)O[D?"tick":"step"]();e.layout=O,this.resetCountdown()}e.engineRunning=!0,e.onFinishUpdate()}}),(window.THREE?window.THREE:{Group:r.ZAu}).Group,!0)},56594:function(e,t,n){"use strict";n.r(t),n.d(t,{Pathfinding:function(){return m}});var r=function(){};r.computeCentroids=function(e){var t,n,r;for(t=0,n=e.faces.length;t<n;t++)(r=e.faces[t]).centroid=new THREE.Vector3(0,0,0),r.centroid.add(e.vertices[r.a]),r.centroid.add(e.vertices[r.b]),r.centroid.add(e.vertices[r.c]),r.centroid.divideScalar(3)},r.roundNumber=function(e,t){return Number(e.toFixed(t))},r.sample=function(e){return e[Math.floor(Math.random()*e.length)]},r.mergeVertexIds=function(e,t){var n=[];if(e.forEach((function(e){t.indexOf(e)>=0&&n.push(e)})),n.length<2)return[];n.includes(e[0])&&n.includes(e[e.length-1])&&e.push(e.shift()),n.includes(t[0])&&n.includes(t[t.length-1])&&t.push(t.shift()),n=[],e.forEach((function(e){t.includes(e)&&n.push(e)}));for(var r=n[1],i=n[0],o=e.slice();o[0]!==r;)o.push(o.shift());for(var a=0,s=t.slice();s[0]!==i;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),o.concat(s)},r.setPolygonCentroid=function(e,t){var n=new THREE.Vector3,r=t.vertices;e.vertexIds.forEach((function(e){n.add(r[e])})),n.divideScalar(e.vertexIds.length),e.centroid.copy(n)},r.cleanPolygon=function(e,t){for(var n=[],r=t.vertices,i=0;i<e.vertexIds.length;i++){var o,a,s,u=r[e.vertexIds[i]];0===i?(o=e.vertexIds[1],a=e.vertexIds[e.vertexIds.length-1]):i===e.vertexIds.length-1?(o=e.vertexIds[0],a=e.vertexIds[e.vertexIds.length-2]):(o=e.vertexIds[i+1],a=e.vertexIds[i-1]),s=r[a];var c=r[o].clone().sub(u),l=s.clone().sub(u),d=c.angleTo(l);if(d>Math.PI-.01&&d<Math.PI+.01){var f=[];e.neighbours.forEach((function(t){t.vertexIds.includes(e.vertexIds[i])||f.push(t)})),e.neighbours=f}else n.push(e.vertexIds[i])}e.vertexIds=n,this.setPolygonCentroid(e,t)},r.isConvex=function(e,t){var n=t.vertices;if(e.vertexIds.length<3)return!1;for(var r=!0,i=[],o=0;o<e.vertexIds.length;o++){var a,s,u=n[e.vertexIds[o]];0===o?(a=n[e.vertexIds[1]],s=n[e.vertexIds[e.vertexIds.length-1]]):o===e.vertexIds.length-1?(a=n[e.vertexIds[0]],s=n[e.vertexIds[e.vertexIds.length-2]]):(a=n[e.vertexIds[o+1]],s=n[e.vertexIds[o-1]]);var c=a.clone().sub(u),l=s.clone().sub(u),d=c.angleTo(l);if(d===Math.PI||0===d)return!1;var f=c.cross(l).y;i.push(f)}return i.forEach((function(e){0===e&&(r=!1)})),i.forEach(i[0]>0?function(e){e<0&&(r=!1)}:function(e){e>0&&(r=!1)}),r},r.distanceToSquared=function(e,t){var n=e.x-t.x,r=e.y-t.y,i=e.z-t.z;return n*n+r*r+i*i},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,i=e.length,o=i-1;++r<i;o=r)(e[r].z<=t.z&&t.z<e[o].z||e[o].z<=t.z&&t.z<e[r].z)&&t.x<(e[o].x-e[r].x)*(t.z-e[r].z)/(e[o].z-e[r].z)+e[r].x&&(n=!n);return n},r.isVectorInPolygon=function(e,t,n){var r=1e5,i=-1e5,o=[];return t.vertexIds.forEach((function(e){r=Math.min(n[e].y,r),i=Math.max(n[e].y,i),o.push(n[e])})),!!(e.y<i+.5&&e.y>r-.5&&this.isPointInPoly(o,e))},r.triarea2=function(e,t,n){return(n.x-e.x)*(t.z-e.z)-(t.x-e.x)*(n.z-e.z)},r.vequal=function(e,t){return this.distanceToSquared(e,t)<1e-5};var i=function(e){this.content=[],this.scoreFunction=e};i.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},i.prototype.pop=function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},i.prototype.remove=function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},i.prototype.size=function(){return this.content.length},i.prototype.rescoreElement=function(e){this.sinkDown(this.content.indexOf(e))},i.prototype.sinkDown=function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},i.prototype.bubbleUp=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=e+1<<1,o=i-1,a=null,s=void 0;if(o<t&&(s=this.scoreFunction(this.content[o]))<r&&(a=o),i<t&&this.scoreFunction(this.content[i])<(null===a?r:s)&&(a=i),null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}};var o=function(){};o.init=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.f=0,n.g=0,n.h=0,n.cost=1,n.visited=!1,n.closed=!1,n.parent=null}},o.cleanUp=function(e){for(var t=0;t<e.length;t++){var n=e[t];delete n.f,delete n.g,delete n.h,delete n.cost,delete n.visited,delete n.closed,delete n.parent}},o.heap=function(){return new i((function(e){return e.f}))},o.search=function(e,t,n){this.init(e);var r=this.heap();for(r.push(t);r.size()>0;){var i=r.pop();if(i===n){for(var o=i,a=[];o.parent;)a.push(o),o=o.parent;return this.cleanUp(a),a.reverse()}i.closed=!0;for(var s=this.neighbours(e,i),u=0,c=s.length;u<c;u++){var l=s[u];if(!l.closed){var d=i.g+l.cost,f=l.visited;if(!f||d<l.g){if(l.visited=!0,l.parent=i,!l.centroid||!n.centroid)throw new Error("Unexpected state");l.h=l.h||this.heuristic(l.centroid,n.centroid),l.g=d,l.f=l.g+l.h,f?r.rescoreElement(l):r.push(l)}}}}return[]},o.heuristic=function(e,t){return r.distanceToSquared(e,t)},o.neighbours=function(e,t){for(var n=[],r=0;r<t.neighbours.length;r++)n.push(e[t.neighbours[r]]);return n};var a=1,s=function(){};s.buildZone=function(e){var t=this,n=this._buildNavigationMesh(e),i={};n.vertices.forEach((function(e){e.x=r.roundNumber(e.x,2),e.y=r.roundNumber(e.y,2),e.z=r.roundNumber(e.z,2)})),i.vertices=n.vertices;var o=this._buildPolygonGroups(n);i.groups=[];var a=function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return n};return o.forEach((function(e){var n=[];e.forEach((function(i){var o=i.neighbours.map((function(t){return a(e,t)})),s=i.neighbours.map((function(e){return t._getSharedVerticesInOrder(i,e)}));i.centroid.x=r.roundNumber(i.centroid.x,2),i.centroid.y=r.roundNumber(i.centroid.y,2),i.centroid.z=r.roundNumber(i.centroid.z,2),n.push({id:a(e,i),neighbours:o,vertexIds:i.vertexIds,centroid:i.centroid,portals:s})})),i.groups.push(n)})),i},s._buildNavigationMesh=function(e){return r.computeCentroids(e),e.mergeVertices(),this._buildPolygonsFromGeometry(e)},s._buildPolygonGroups=function(e){var t=[],n=0,r=function(e){e.neighbours.forEach((function(t){void 0===t.group&&(t.group=e.group,r(t))}))};return e.polygons.forEach((function(e){void 0===e.group&&(e.group=n++,r(e)),t[e.group]||(t[e.group]=[]),t[e.group].push(e)})),t},s._buildPolygonNeighbours=function(e,t,n){var r=new Set,i=n.get(e.vertexIds[0]),o=n.get(e.vertexIds[1]),a=n.get(e.vertexIds[2]);i.forEach((function(e){(o.has(e)||a.has(e))&&r.add(t.polygons[e])})),o.forEach((function(e){a.has(e)&&r.add(t.polygons[e])})),e.neighbours=Array.from(r)},s._buildPolygonsFromGeometry=function(e){for(var t=this,n=[],r=e.vertices,i=e.faceVertexUvs,o=new Map,s=0;s<r.length;s++)o.set(s,new Set);e.faces.forEach((function(e){n.push({id:a++,vertexIds:[e.a,e.b,e.c],centroid:e.centroid,normal:e.normal,neighbours:[]}),o.get(e.a).add(n.length-1),o.get(e.b).add(n.length-1),o.get(e.c).add(n.length-1)}));var u={polygons:n,vertices:r,faceVertexUvs:i};return n.forEach((function(e){t._buildPolygonNeighbours(e,u,o)})),u},s._getSharedVerticesInOrder=function(e,t){var n=e.vertexIds,r=t.vertexIds,i=new Set;if(n.forEach((function(e){r.includes(e)&&i.add(e)})),i.size<2)return[];i.has(n[0])&&i.has(n[n.length-1])&&n.push(n.shift()),i.has(r[0])&&i.has(r[r.length-1])&&r.push(r.shift());var o=[];return n.forEach((function(e){r.includes(e)&&o.push(e)})),o};var u=function(){this.portals=[]};u.prototype.push=function(e,t){void 0===t&&(t=e),this.portals.push({left:e,right:t})},u.prototype.stringPull=function(){var e,t,n,i=this.portals,o=[],a=0,s=0,u=0;t=i[0].left,n=i[0].right,o.push(e=i[0].left);for(var c=1;c<i.length;c++){var l=i[c].left,d=i[c].right;if(r.triarea2(e,n,d)<=0){if(!(r.vequal(e,n)||r.triarea2(e,t,d)>0)){o.push(t),t=e=t,n=e,s=a=s,u=a,c=a;continue}n=d,u=c}if(r.triarea2(e,t,l)>=0){if(!(r.vequal(e,t)||r.triarea2(e,n,l)<0)){o.push(n),t=e=n,n=e,s=a=u,u=a,c=a;continue}t=l,s=c}}return 0!==o.length&&r.vequal(o[o.length-1],i[i.length-1].left)||o.push(i[i.length-1].left),this.path=o,o};var c,l,d,f,h,p,m=function(){this.zones={}};m.createZone=function(e){return s.buildZone(e)},m.prototype.setZoneData=function(e,t){this.zones[e]=t},m.prototype.getGroup=function(e,t){if(!this.zones[e])return null;var n=null,i=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,o){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a<i&&(n=o,i=a)}))})),n},m.prototype.getRandomNode=function(e,t,n,i){if(!this.zones[e])return new THREE.Vector3;n=n||null,i=i||0;var o=[];return this.zones[e].groups[t].forEach((function(e){n&&i?r.distanceToSquared(n,e.centroid)<i*i&&o.push(e.centroid):o.push(e.centroid)})),r.sample(o)||new THREE.Vector3},m.prototype.getClosestNode=function(e,t,n,i){void 0===i&&(i=!1);var o=this.zones[t].vertices,a=null,s=1/0;return this.zones[t].groups[n].forEach((function(t){var n=r.distanceToSquared(t.centroid,e);n<s&&(!i||r.isVectorInPolygon(e,t,o))&&(a=t,s=n)})),a},m.prototype.findPath=function(e,t,n,r){var i=this.zones[n].groups[r],a=this.zones[n].vertices,s=this.getClosestNode(e,n,r),c=this.getClosestNode(t,n,r,!0);if(!s||!c)return null;var l=o.search(i,s,c),d=function(e,t){for(var n=0;n<e.neighbours.length;n++)if(e.neighbours[n]===t.id)return e.portals[n]},f=new u;f.push(e);for(var h=0;h<l.length;h++){var p=l[h+1];if(p){var m=d(l[h],p);f.push(a[m[0]],a[m[1]])}}f.push(t),f.stringPull();var g=f.path.map((function(e){return new THREE.Vector3(e.x,e.y,e.z)}));return g.shift(),g},m.prototype.clampStep=(d=new THREE.Vector3,f=new THREE.Plane,h=new THREE.Triangle,p=new THREE.Vector3,function(e,t,n,r,i,o){var a=this.zones[r].vertices,s=this.zones[r].groups[i],u=[n],m={};m[n.id]=0,c=void 0,p.set(0,0,0),l=1/0,f.setFromCoplanarPoints(a[n.vertexIds[0]],a[n.vertexIds[1]],a[n.vertexIds[2]]),f.projectPoint(t,d),t.copy(d);for(var g=u.pop();g;g=u.pop()){h.set(a[g.vertexIds[0]],a[g.vertexIds[1]],a[g.vertexIds[2]]),h.closestPointToPoint(t,d),d.distanceToSquared(t)<l&&(c=g,p.copy(d),l=d.distanceToSquared(t));var v=m[g];if(!(v>2))for(var y=0;y<g.neighbours.length;y++){var b=s[g.neighbours[y]];b.id in m||(u.push(b),m[b.id]=v+1)}}return o.copy(p),c})},31122:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(99477);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p="undefined"!==typeof window&&window.THREE?window.THREE:{LinearFilter:r.wem,Sprite:r.jyi,SpriteMaterial:r.xeV,Texture:r.xEZ},m=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,a=c(u);function u(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 1)";return i(this,u),(e=a.call(this,new p.SpriteMaterial({map:new p.Texture})))._text="".concat(t),e._textHeight=n,e._color=r,e._backgroundColor=!1,e._padding=0,e._borderWidth=0,e._borderRadius=0,e._borderColor="white",e._strokeWidth=0,e._strokeColor="white",e._fontFace="Arial",e._fontSize=90,e._fontWeight="normal",e._canvas=document.createElement("canvas"),e._texture=e.material.map,e._texture.minFilter=p.LinearFilter,e._genCanvas(),e}return t=u,(n=[{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._genCanvas()}},{key:"textHeight",get:function(){return this._textHeight},set:function(e){this._textHeight=e,this._genCanvas()}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._genCanvas()}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._genCanvas()}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding=e,this._genCanvas()}},{key:"borderWidth",get:function(){return this._borderWidth},set:function(e){this._borderWidth=e,this._genCanvas()}},{key:"borderRadius",get:function(){return this._borderRadius},set:function(e){this._borderRadius=e,this._genCanvas()}},{key:"borderColor",get:function(){return this._borderColor},set:function(e){this._borderColor=e,this._genCanvas()}},{key:"fontFace",get:function(){return this._fontFace},set:function(e){this._fontFace=e,this._genCanvas()}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize=e,this._genCanvas()}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this._genCanvas()}},{key:"strokeWidth",get:function(){return this._strokeWidth},set:function(e){this._strokeWidth=e,this._genCanvas()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(e){this._strokeColor=e,this._genCanvas()}},{key:"_genCanvas",value:function(){var e=this,t=this._canvas,n=t.getContext("2d"),r=Array.isArray(this.borderWidth)?this.borderWidth:[this.borderWidth,this.borderWidth],i=r.map((function(t){return t*e.fontSize*.1})),o=(Array.isArray(this.borderRadius)?this.borderRadius:[this.borderRadius,this.borderRadius,this.borderRadius,this.borderRadius]).map((function(t){return t*e.fontSize*.1})),a=Array.isArray(this.padding)?this.padding:[this.padding,this.padding],s=a.map((function(t){return t*e.fontSize*.1})),u=this.text.split("\n"),c="".concat(this.fontWeight," ").concat(this.fontSize,"px ").concat(this.fontFace);n.font=c;var f=Math.max.apply(Math,d(u.map((function(e){return n.measureText(e).width})))),h=this.fontSize*u.length;if(t.width=f+2*i[0]+2*s[0],t.height=h+2*i[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,i[0]){var p=i[0]/2;n.lineWidth=i[0],n.beginPath(),n.moveTo(p,o[0]),n.lineTo(p,t.height-o[3]),n.moveTo(t.width-p,o[1]),n.lineTo(t.width-p,t.height-o[2]),n.stroke()}if(i[1]){var m=i[1]/2;n.lineWidth=i[1],n.beginPath(),n.moveTo(Math.max(i[0],o[0]),m),n.lineTo(t.width-Math.max(i[0],o[1]),m),n.moveTo(Math.max(i[0],o[3]),t.height-m),n.lineTo(t.width-Math.max(i[0],o[2]),t.height-m),n.stroke()}if(this.borderRadius){var g=Math.max.apply(Math,d(i)),v=g/2;n.lineWidth=g,n.beginPath(),[!!o[0]&&[o[0],v,v,o[0]],!!o[1]&&[t.width-o[1],t.width-v,v,o[1]],!!o[2]&&[t.width-o[2],t.width-v,t.height-v,t.height-o[2]],!!o[3]&&[o[3],v,t.height-v,t.height-o[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],i=t[1],o=t[2],a=t[3];n.moveTo(r,o),n.quadraticCurveTo(i,o,i,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(i[0],o[0]),[[i[0],o[0],t.width-o[1],i[1],i[1],i[1]],[t.width-i[0],t.width-i[0],t.width-i[0],i[1],o[1],t.height-o[2]],[t.width-i[0],t.width-o[2],o[3],t.height-i[1],t.height-i[1],t.height-i[1]],[i[0],i[0],i[0],t.height-i[1],t.height-o[3],o[0]]].forEach((function(e){var t=l(e,6),r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5];n.quadraticCurveTo(r,a,i,s),n.lineTo(o,u)})),n.closePath(),n.fill()):n.fillRect(i[0],i[1],t.width-2*i[0],t.height-2*i[1])),n.translate.apply(n,d(i)),n.translate.apply(n,d(s)),n.font=c,n.fillStyle=this.color,n.textBaseline="bottom";var y=this.strokeWidth>0;y&&(n.lineWidth=this.strokeWidth*this.fontSize/10,n.strokeStyle=this.strokeColor),u.forEach((function(t,r){var i=(f-n.measureText(t).width)/2,o=(r+1)*e.fontSize;y&&n.strokeText(t,i,o),n.fillText(t,i,o)})),this._texture.image=t,this._texture.needsUpdate=!0;var b=this.textHeight*u.length+2*r[1]+2*a[1];this.scale.set(b*t.width/t.height,b,0)}},{key:"clone",value:function(){return new this.constructor(this.text,this.textHeight,this.color).copy(this)}},{key:"copy",value:function(e){return p.Sprite.prototype.copy.call(this,e),this.color=e.color,this.backgroundColor=e.backgroundColor,this.padding=e.padding,this.borderWidth=e.borderWidth,this.borderColor=e.borderColor,this.fontFace=e.fontFace,this.fontSize=e.fontSize,this.fontWeight=e.fontWeight,this.strokeWidth=e.strokeWidth,this.strokeColor=e.strokeColor,this}}])&&o(t.prototype,n),r&&o(t,r),u}(p.Sprite)},17621:function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,u=i.round,c=i.min,l=i.max,d=i.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,u=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=B.hex8.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=B.hex6.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"};if(t=B.hex4.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=B.hex3.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(z(e.r)&&z(e.g)&&z(e.b)?(h=e.r,p=e.g,m=e.b,t={r:255*R(h,255),g:255*R(p,255),b:255*R(m,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):z(e.h)&&z(e.s)&&z(e.v)?(r=F(e.s),s=F(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),c=r%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c]}}(e.h,r,s),d=!0,f="hsv"):z(e.h)&&z(e.s)&&z(e.l)&&(r=F(e.s),u=F(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,u),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,m;return n=N(n),{ok:d,format:e.format||f,r:c(255,l(t.r,0)),g:c(255,l(t.g,0)),b:c(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=l(e,t,n),a=c(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:s}}function p(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=l(e,t,n),a=c(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:s}}function m(e,t,n,r){var i=[L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function g(e,t,n,r){return[L(j(r)),L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=M(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=M(n.s),f(n)}function b(e){return f(e).desaturate(100)}function E(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=M(n.l),f(n)}function T(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=l(0,c(255,n.r-u(-t/100*255))),n.g=l(0,c(255,n.g-u(-t/100*255))),n.b=l(0,c(255,n.b-u(-t/100*255))),f(n)}function x(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=M(n.l),f(n)}function _(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function w(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function k(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function A(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),i=360/n,o=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function O(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[L(u(e).toString(16)),L(u(t).toString(16)),L(u(n).toString(16)),L(j(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*R(this._r,255))+"%",g:u(100*R(this._g,255))+"%",b:u(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*R(this._r,255))+"%, "+u(100*R(this._g,255))+"%, "+u(100*R(this._b,255))+"%)":"rgba("+u(100*R(this._r,255))+"%, "+u(100*R(this._g,255))+"%, "+u(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(r=f.readability(e,t[c]))>u&&(u=r,s=f(t[c]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return c(1,l(0,e))}function P(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function j(e){return i.round(255*parseFloat(e)).toString(16)}function H(e){return P(e)/255}var B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function z(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},6189:function(e,t,n){var r=n(7966);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},71788:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():n.test(e)?(function(e){return e.replace(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(o,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,n=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;var i=/[\W_]+(.|$)/g;var o=/(.)([A-Z]+)/g},7966:function(e,t,n){var r=n(71788);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},28281:function(e,t,n){"use strict";var r=n(43368);e.exports=o,o.wrap=r;var i=[].slice;function o(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!==typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var u=e[++t],c=i.call(arguments,0),l=c.slice(1),d=n.length,f=-1;if(s)o(s);else{for(;++f<d;)null!==l[f]&&void 0!==l[f]||(l[f]=n[f]);n=l,u?r(u,a).apply(null,n):o.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!==typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},43368:function(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{n=e.apply(null,a)}catch(u){if(s&&r)throw u;return i(u)}s||(n&&"function"===typeof n.then?n.then(o,i):n instanceof Error?i(n):o(n))};function i(){r||(r=!0,n.apply(null,arguments))}function o(e){i(null,e)}}},70655:function(e,t,n){"use strict";n.r(t),n.d(t,{__extends:function(){return i},__assign:function(){return o},__rest:function(){return a},__decorate:function(){return s},__param:function(){return u},__metadata:function(){return c},__awaiter:function(){return l},__generator:function(){return d},__createBinding:function(){return f},__exportStar:function(){return h},__values:function(){return p},__read:function(){return m},__spread:function(){return g},__spreadArrays:function(){return v},__spreadArray:function(){return y},__await:function(){return b},__asyncGenerator:function(){return E},__asyncDelegator:function(){return T},__asyncValues:function(){return x},__makeTemplateObject:function(){return _},__importStar:function(){return k},__importDefault:function(){return C},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return S}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function p(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function T(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return w(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function S(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},18835:function(e,t,n){"use strict";var r=n(18869),i=n(48738),o=n(94470),a=n(33310),s=n(28281),u=n(10939);e.exports=function e(){var t,n=[],i=s(),y={},b=-1;return E.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(m("data",t),y[e]=n,E):l.call(y,e)&&y[e]||null;if(e)return m("data",t),y=e,E;return y},E.freeze=T,E.attachers=n,E.use=function(e){var r;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u(e):i(e)}r&&(y.settings=o(y.settings||{},r));return E;function i(e){u(e.plugins),e.settings&&(r=o(r||{},e.settings))}function s(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):i(e)}}function u(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function l(e,t){var r=x(e);r?(a(r[1])&&a(t)&&(t=o(!0,r[1],t)),r[1]=t):n.push(c.call(arguments))}},E.parse=function(e){var t,n=u(e);if(T(),h("parse",t=E.Parser),f(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},E.stringify=function(e,t){var n,r=u(t);if(T(),p("stringify",n=E.Compiler),g(e),f(n,"compile"))return new n(e,r).compile();return n(e,r)},E.run=_,E.runSync=function(e,t){var n,i;return _(e,t,o),v("runSync","run",i),n;function o(e,t){i=!0,n=t,r(e)}},E.process=w,E.processSync=function(e){var t,n;return T(),h("processSync",E.Parser),p("processSync",E.Compiler),w(t=u(e),i),v("processSync","process",n),t;function i(e){n=!0,r(e)}},E;function E(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(o(!0,{},y)),t}function T(){var e,r;if(t)return E;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"===typeof(r=e[0].apply(E,e.slice(1)))&&i.use(r));return t=!0,b=1/0,E}function x(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function _(e,t,n){if(g(e),T(),n||"function"!==typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,o){i.run(e,u(t),(function(t,i,a){i=i||e,t?o(t):r?r(i):n(null,i,a)}))}r(null,n)}function w(e,t){if(T(),h("process",E.Parser),p("process",E.Compiler),!t)return new Promise(n);function n(n,r){var i=u(e);d.run(E,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var c=[].slice,l={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);void 0===n||null===n||("string"===typeof n||i(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"===typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function h(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function p(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function g(e){if(!e||"string"!==typeof e.type)throw new Error("Expected node, got `"+e+"`")}function v(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},88541:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniorgAttach=t.idTsFolderFormat=t.idUuidFolderFormat=void 0;const i=r(n(62520)),o=r(n(99294)),a={idDir:"data/",useInheritance:!1,idToPath:s};function s(e){return i.default.join(e.substring(0,2),e.substring(2))}t.idUuidFolderFormat=s,t.idTsFolderFormat=function(e){return i.default.join(e.substring(0,6),e.substring(6))};function u(e,t,n){var r;e=[...e];do{let n=e.pop();for(;n&&"section"!==n.type&&"org-data"!==n.type;)n=e.pop();if(!n)return null;const i=n.children.find((e=>"property-drawer"===e.type)),o=null===(r=null===i||void 0===i?void 0:i.children.find((e=>e.key===t)))||void 0===r?void 0:r.value;if(void 0!==o)return o}while(n);return null}t.uniorgAttach=(e={})=>{const t=Object.assign(Object.assign({},a),e);return function(e,n){(0,o.default)(e,"link",((e,n)=>{if("attachment"===e.linkType){const r=function(e,t,n,r){if(i.default.isAbsolute(e.path))return e.path;const o=u(t,"DIR",r.useInheritance);if(o)return i.default.join(o,e.path);const a=u(t,"ID",r.useInheritance);if(a){const t=r.idToPath(a);return i.default.join(r.idDir,t,e.path)}return e.path}(e,n,0,t);e.linkType="file",e.path=r,e.rawLink=e.linkType+":"+e.path}}))}},t.default=t.uniorgAttach},94986:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractKeywords=void 0;const i=r(n(62854));t.extractKeywords=(e={})=>function(t,n){i.default(t,"keyword",(t=>{let r=n.data=n.data||{};e.name&&(r=r[e.name]=r[e.name]||{});let i=t.key;e.preserveCase||(i=i.toLowerCase()),r[i]=t.value}))},t.default=t.extractKeywords},89859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrgEntity=void 0;t.getOrgEntity=e=>{const t=n.find((t=>t[0]===e));return t?{name:e,latex:t[1],requireLatexMath:t[2],html:t[3],ascii:t[4],latin1:t[5],utf8:t[6]}:null};const n=[["Agrave","\\`{A}",!1,"À","A","\xc0","\xc0"],["agrave","\\`{a}",!1,"à","a","\xe0","\xe0"],["Aacute","\\'{A}",!1,"Á","A","\xc1","\xc1"],["aacute","\\'{a}",!1,"á","a","\xe1","\xe1"],["Acirc","\\^{A}",!1,"Â","A","\xc2","\xc2"],["acirc","\\^{a}",!1,"â","a","\xe2","\xe2"],["Amacr","\\bar{A}",!1,"Ā","A","\xc3","\xc3"],["amacr","\\bar{a}",!1,"ā","a","\xe3","\xe3"],["Atilde","\\~{A}",!1,"Ã","A","\xc3","\xc3"],["atilde","\\~{a}",!1,"ã","a","\xe3","\xe3"],["Auml",'\\"{A}',!1,"Ä","Ae","\xc4","\xc4"],["auml",'\\"{a}',!1,"ä","ae","\xe4","\xe4"],["Aring","\\AA{}",!1,"Å","A","\xc5","\xc5"],["AA","\\AA{}",!1,"Å","A","\xc5","\xc5"],["aring","\\aa{}",!1,"å","a","\xe5","\xe5"],["AElig","\\AE{}",!1,"Æ","AE","\xc6","\xc6"],["aelig","\\ae{}",!1,"æ","ae","\xe6","\xe6"],["Ccedil","\\c{C}",!1,"Ç","C","\xc7","\xc7"],["ccedil","\\c{c}",!1,"ç","c","\xe7","\xe7"],["Egrave","\\`{E}",!1,"È","E","\xc8","\xc8"],["egrave","\\`{e}",!1,"è","e","\xe8","\xe8"],["Eacute","\\'{E}",!1,"É","E","\xc9","\xc9"],["eacute","\\'{e}",!1,"é","e","\xe9","\xe9"],["Ecirc","\\^{E}",!1,"Ê","E","\xca","\xca"],["ecirc","\\^{e}",!1,"ê","e","\xea","\xea"],["Euml",'\\"{E}',!1,"Ë","E","\xcb","\xcb"],["euml",'\\"{e}',!1,"ë","e","\xeb","\xeb"],["Igrave","\\`{I}",!1,"Ì","I","\xcc","\xcc"],["igrave","\\`{i}",!1,"ì","i","\xec","\xec"],["Iacute","\\'{I}",!1,"Í","I","\xcd","\xcd"],["iacute","\\'{i}",!1,"í","i","\xed","\xed"],["Icirc","\\^{I}",!1,"Î","I","\xce","\xce"],["icirc","\\^{i}",!1,"î","i","\xee","\xee"],["Iuml",'\\"{I}',!1,"Ï","I","\xcf","\xcf"],["iuml",'\\"{i}',!1,"ï","i","\xef","\xef"],["Ntilde","\\~{N}",!1,"Ñ","N","\xd1","\xd1"],["ntilde","\\~{n}",!1,"ñ","n","\xf1","\xf1"],["Ograve","\\`{O}",!1,"Ò","O","\xd2","\xd2"],["ograve","\\`{o}",!1,"ò","o","\xf2","\xf2"],["Oacute","\\'{O}",!1,"Ó","O","\xd3","\xd3"],["oacute","\\'{o}",!1,"ó","o","\xf3","\xf3"],["Ocirc","\\^{O}",!1,"Ô","O","\xd4","\xd4"],["ocirc","\\^{o}",!1,"ô","o","\xf4","\xf4"],["Otilde","\\~{O}",!1,"Õ","O","\xd5","\xd5"],["otilde","\\~{o}",!1,"õ","o","\xf5","\xf5"],["Ouml",'\\"{O}',!1,"Ö","Oe","\xd6","\xd6"],["ouml",'\\"{o}',!1,"ö","oe","\xf6","\xf6"],["Oslash","\\O",!1,"Ø","O","\xd8","\xd8"],["oslash","\\o{}",!1,"ø","o","\xf8","\xf8"],["OElig","\\OE{}",!1,"Œ","OE","OE","\u0152"],["oelig","\\oe{}",!1,"œ","oe","oe","\u0153"],["Scaron","\\v{S}",!1,"Š","S","S","\u0160"],["scaron","\\v{s}",!1,"š","s","s","\u0161"],["szlig","\\ss{}",!1,"ß","ss","\xdf","\xdf"],["Ugrave","\\`{U}",!1,"Ù","U","\xd9","\xd9"],["ugrave","\\`{u}",!1,"ù","u","\xf9","\xf9"],["Uacute","\\'{U}",!1,"Ú","U","\xda","\xda"],["uacute","\\'{u}",!1,"ú","u","\xfa","\xfa"],["Ucirc","\\^{U}",!1,"Û","U","\xdb","\xdb"],["ucirc","\\^{u}",!1,"û","u","\xfb","\xfb"],["Uuml",'\\"{U}',!1,"Ü","Ue","\xdc","\xdc"],["uuml",'\\"{u}',!1,"ü","ue","\xfc","\xfc"],["Yacute","\\'{Y}",!1,"Ý","Y","\xdd","\xdd"],["yacute","\\'{y}",!1,"ý","y","\xfd","\xfd"],["Yuml",'\\"{Y}',!1,"Ÿ","Y","Y","\u0178"],["yuml",'\\"{y}',!1,"ÿ","y","\xff","\xff"],["fnof","\\textit{f}",!1,"ƒ","f","f","\u0192"],["real","\\Re",!0,"ℜ","R","R","\u211c"],["image","\\Im",!0,"ℑ","I","I","\u2111"],["weierp","\\wp",!0,"℘","P","P","\u2118"],["ell","\\ell",!0,"ℓ","ell","ell","\u2113"],["imath","\\imath",!0,"ı","[dotless i]","dotless i","\u0131"],["jmath","\\jmath",!0,"ȷ","[dotless j]","dotless j","\u0237"],["Alpha","A",!1,"Α","Alpha","Alpha","\u0391"],["alpha","\\alpha",!0,"α","alpha","alpha","\u03b1"],["Beta","B",!1,"Β","Beta","Beta","\u0392"],["beta","\\beta",!0,"β","beta","beta","\u03b2"],["Gamma","\\Gamma",!0,"Γ","Gamma","Gamma","\u0393"],["gamma","\\gamma",!0,"γ","gamma","gamma","\u03b3"],["Delta","\\Delta",!0,"Δ","Delta","Delta","\u0394"],["delta","\\delta",!0,"δ","delta","delta","\u03b4"],["Epsilon","E",!1,"Ε","Epsilon","Epsilon","\u0395"],["epsilon","\\epsilon",!0,"ε","epsilon","epsilon","\u03b5"],["varepsilon","\\varepsilon",!0,"ε","varepsilon","varepsilon","\u03b5"],["Zeta","Z",!1,"Ζ","Zeta","Zeta","\u0396"],["zeta","\\zeta",!0,"ζ","zeta","zeta","\u03b6"],["Eta","H",!1,"Η","Eta","Eta","\u0397"],["eta","\\eta",!0,"η","eta","eta","\u03b7"],["Theta","\\Theta",!0,"Θ","Theta","Theta","\u0398"],["theta","\\theta",!0,"θ","theta","theta","\u03b8"],["thetasym","\\vartheta",!0,"ϑ","theta","theta","\u03d1"],["vartheta","\\vartheta",!0,"ϑ","theta","theta","\u03d1"],["Iota","I",!1,"Ι","Iota","Iota","\u0399"],["iota","\\iota",!0,"ι","iota","iota","\u03b9"],["Kappa","K",!1,"Κ","Kappa","Kappa","\u039a"],["kappa","\\kappa",!0,"κ","kappa","kappa","\u03ba"],["Lambda","\\Lambda",!0,"Λ","Lambda","Lambda","\u039b"],["lambda","\\lambda",!0,"λ","lambda","lambda","\u03bb"],["Mu","M",!1,"Μ","Mu","Mu","\u039c"],["mu","\\mu",!0,"μ","mu","mu","\u03bc"],["nu","\\nu",!0,"ν","nu","nu","\u03bd"],["Nu","N",!1,"Ν","Nu","Nu","\u039d"],["Xi","\\Xi",!0,"Ξ","Xi","Xi","\u039e"],["xi","\\xi",!0,"ξ","xi","xi","\u03be"],["Omicron","O",!1,"Ο","Omicron","Omicron","\u039f"],["omicron","\\textit{o}",!1,"ο","omicron","omicron","\u03bf"],["Pi","\\Pi",!0,"Π","Pi","Pi","\u03a0"],["pi","\\pi",!0,"π","pi","pi","\u03c0"],["Rho","P",!1,"Ρ","Rho","Rho","\u03a1"],["rho","\\rho",!0,"ρ","rho","rho","\u03c1"],["Sigma","\\Sigma",!0,"Σ","Sigma","Sigma","\u03a3"],["sigma","\\sigma",!0,"σ","sigma","sigma","\u03c3"],["sigmaf","\\varsigma",!0,"ς","sigmaf","sigmaf","\u03c2"],["varsigma","\\varsigma",!0,"ς","varsigma","varsigma","\u03c2"],["Tau","T",!1,"Τ","Tau","Tau","\u03a4"],["Upsilon","\\Upsilon",!0,"Υ","Upsilon","Upsilon","\u03a5"],["upsih","\\Upsilon",!0,"ϒ","upsilon","upsilon","\u03d2"],["upsilon","\\upsilon",!0,"υ","upsilon","upsilon","\u03c5"],["Phi","\\Phi",!0,"Φ","Phi","Phi","\u03a6"],["phi","\\phi",!0,"φ","phi","phi","\u0278"],["varphi","\\varphi",!0,"ϕ","varphi","varphi","\u03c6"],["Chi","X",!1,"Χ","Chi","Chi","\u03a7"],["chi","\\chi",!0,"χ","chi","chi","\u03c7"],["acutex","\\acute x",!0,"´x","'x","'x","\ud835\udc65\u0301"],["Psi","\\Psi",!0,"Ψ","Psi","Psi","\u03a8"],["psi","\\psi",!0,"ψ","psi","psi","\u03c8"],["tau","\\tau",!0,"τ","tau","tau","\u03c4"],["Omega","\\Omega",!0,"Ω","Omega","Omega","\u03a9"],["omega","\\omega",!0,"ω","omega","omega","\u03c9"],["piv","\\varpi",!0,"ϖ","omega-pi","omega-pi","\u03d6"],["varpi","\\varpi",!0,"ϖ","omega-pi","omega-pi","\u03d6"],["partial","\\partial",!0,"∂","[partial differential]","[partial differential]","\u2202"],["alefsym","\\aleph",!0,"ℵ","aleph","aleph","\u2135"],["aleph","\\aleph",!0,"ℵ","aleph","aleph","\u2135"],["gimel","\\gimel",!0,"ℷ","gimel","gimel","\u2137"],["beth","\\beth",!0,"ℶ","beth","beth","\u05d1"],["dalet","\\daleth",!0,"ℸ","dalet","dalet","\u05d3"],["ETH","\\DH{}",!1,"Ð","D","\xd0","\xd0"],["eth","\\dh{}",!1,"ð","dh","\xf0","\xf0"],["THORN","\\TH{}",!1,"Þ","TH","\xde","\xde"],["thorn","\\th{}",!1,"þ","th","\xfe","\xfe"],["dots","\\dots{}",!1,"…","...","...","\u2026"],["cdots","\\cdots{}",!0,"⋯","...","...","\u22ef"],["hellip","\\dots{}",!1,"…","...","...","\u2026"],["middot","\\textperiodcentered{}",!1,"·",".","\xb7","\xb7"],["iexcl","!`",!1,"¡","!","\xa1","\xa1"],["iquest","?`",!1,"¿","?","\xbf","\xbf"],["shy","\\-",!1,"­","","",""],["ndash","--",!1,"–","-","-","\u2013"],["mdash","---",!1,"—","--","--","\u2014"],["quot","\\textquotedbl{}",!1,""",'"','"','"'],["acute","\\textasciiacute{}",!1,"´","'","\xb4","\xb4"],["ldquo","\\textquotedblleft{}",!1,"“",'"','"',"\u201c"],["rdquo","\\textquotedblright{}",!1,"”",'"','"',"\u201d"],["bdquo","\\quotedblbase{}",!1,"„",'"','"',"\u201e"],["lsquo","\\textquoteleft{}",!1,"‘","`","`","\u2018"],["rsquo","\\textquoteright{}",!1,"’","'","'","\u2019"],["sbquo","\\quotesinglbase{}",!1,"‚",",",",","\u201a"],["laquo","\\guillemotleft{}",!1,"«","<<","\xab","\xab"],["raquo","\\guillemotright{}",!1,"»",">>","\xbb","\xbb"],["lsaquo","\\guilsinglleft{}",!1,"‹","<","<","\u2039"],["rsaquo","\\guilsinglright{}",!1,"›",">",">","\u203a"],["circ","\\^{}",!1,"ˆ","^","^","\u2218"],["vert","\\vert{}",!0,"|","|","|","|"],["vbar","|",!1,"|","|","|","|"],["brvbar","\\textbrokenbar{}",!1,"¦","|","\xa6","\xa6"],["S","\\S",!1,"§","paragraph","\xa7","\xa7"],["sect","\\S",!1,"§","paragraph","\xa7","\xa7"],["amp","\\&",!1,"&","&","&","&"],["lt","\\textless{}",!1,"<","<","<","<"],["gt","\\textgreater{}",!1,">",">",">",">"],["tilde","\\textasciitilde{}",!1,"~","~","~","~"],["slash","/",!1,"/","/","/","/"],["plus","+",!1,"+","+","+","+"],["under","\\_",!1,"_","_","_","_"],["equal","=",!1,"=","=","=","="],["asciicirc","\\textasciicircum{}",!1,"^","^","^","^"],["dagger","\\textdagger{}",!1,"†","[dagger]","[dagger]","\u2020"],["dag","\\dag{}",!1,"†","[dagger]","[dagger]","\u2020"],["Dagger","\\textdaggerdbl{}",!1,"‡","[doubledagger]","[doubledagger]","\u2021"],["ddag","\\ddag{}",!1,"‡","[doubledagger]","[doubledagger]","\u2021"],["nbsp","~",!1," "," ","\xa0","\xa0"],["ensp","\\hspace*{.5em}",!1," "," "," ","\u2002"],["emsp","\\hspace*{1em}",!1," "," "," ","\u2003"],["thinsp","\\hspace*{.2em}",!1," "," "," ","\u2009"],["curren","\\textcurrency{}",!1,"¤","curr.","\xa4","\xa4"],["cent","\\textcent{}",!1,"¢","cent","\xa2","\xa2"],["pound","\\pounds{}",!1,"£","pound","\xa3","\xa3"],["yen","\\textyen{}",!1,"¥","yen","\xa5","\xa5"],["euro","\\texteuro{}",!1,"€","EUR","EUR","\u20ac"],["EUR","\\texteuro{}",!1,"€","EUR","EUR","\u20ac"],["dollar","\\$",!1,"$","$","$","$"],["USD","\\$",!1,"$","$","$","$"],["copy","\\textcopyright{}",!1,"©","(c)","\xa9","\xa9"],["reg","\\textregistered{}",!1,"®","(r)","\xae","\xae"],["trade","\\texttrademark{}",!1,"™","TM","TM","\u2122"],["minus","\\minus",!0,"−","-","-","\u2212"],["pm","\\textpm{}",!1,"±","+-","\xb1","\xb1"],["plusmn","\\textpm{}",!1,"±","+-","\xb1","\xb1"],["times","\\texttimes{}",!1,"×","*","\xd7","\xd7"],["frasl","/",!1,"⁄","/","/","\u2044"],["colon","\\colon",!0,":",":",":",":"],["div","\\textdiv{}",!1,"÷","/","\xf7","\xf7"],["frac12","\\textonehalf{}",!1,"½","1/2","\xbd","\xbd"],["frac14","\\textonequarter{}",!1,"¼","1/4","\xbc","\xbc"],["frac34","\\textthreequarters{}",!1,"¾","3/4","\xbe","\xbe"],["permil","\\textperthousand{}",!1,"‰","per thousand","per thousand","\u2030"],["sup1","\\textonesuperior{}",!1,"¹","^1","\xb9","\xb9"],["sup2","\\texttwosuperior{}",!1,"²","^2","\xb2","\xb2"],["sup3","\\textthreesuperior{}",!1,"³","^3","\xb3","\xb3"],["radic","\\sqrt{\\,}",!0,"√","[square root]","[square root]","\u221a"],["sum","\\sum",!0,"∑","[sum]","[sum]","\u2211"],["prod","\\prod",!0,"∏","[product]","[n-ary product]","\u220f"],["micro","\\textmu{}",!1,"µ","micro","\xb5","\xb5"],["macr","\\textasciimacron{}",!1,"¯","[macron]","\xaf","\xaf"],["deg","\\textdegree{}",!1,"°","degree","\xb0","\xb0"],["prime","\\prime",!0,"′","'","'","\u2032"],["Prime","\\prime{}\\prime",!0,"″","''","''","\u2033"],["infin","\\infty",!0,"∞","[infinity]","[infinity]","\u221e"],["infty","\\infty",!0,"∞","[infinity]","[infinity]","\u221e"],["prop","\\propto",!0,"∝","[proportional to]","[proportional to]","\u221d"],["propto","\\propto",!0,"∝","[proportional to]","[proportional to]","\u221d"],["not","\\textlnot{}",!1,"¬","[angled dash]","\xac","\xac"],["neg","\\neg{}",!0,"¬","[angled dash]","\xac","\xac"],["land","\\land",!0,"∧","[logical and]","[logical and]","\u2227"],["wedge","\\wedge",!0,"∧","[logical and]","[logical and]","\u2227"],["lor","\\lor",!0,"∨","[logical or]","[logical or]","\u2228"],["vee","\\vee",!0,"∨","[logical or]","[logical or]","\u2228"],["cap","\\cap",!0,"∩","[intersection]","[intersection]","\u2229"],["cup","\\cup",!0,"∪","[union]","[union]","\u222a"],["smile","\\smile",!0,"⌣","[cup product]","[cup product]","\u2323"],["frown","\\frown",!0,"⌢","[Cap product]","[cap product]","\u2322"],["int","\\int",!0,"∫","[integral]","[integral]","\u222b"],["therefore","\\therefore",!0,"∴","[therefore]","[therefore]","\u2234"],["there4","\\therefore",!0,"∴","[therefore]","[therefore]","\u2234"],["because","\\because",!0,"∵","[because]","[because]","\u2235"],["sim","\\sim",!0,"∼","~","~","\u223c"],["cong","\\cong",!0,"≅","[approx. equal to]","[approx. equal to]","\u2245"],["simeq","\\simeq",!0,"≅","[approx. equal to]","[approx. equal to]","\u2245"],["asymp","\\asymp",!0,"≈","[almost equal to]","[almost equal to]","\u2248"],["approx","\\approx",!0,"≈","[almost equal to]","[almost equal to]","\u2248"],["ne","\\ne",!0,"≠","[not equal to]","[not equal to]","\u2260"],["neq","\\neq",!0,"≠","[not equal to]","[not equal to]","\u2260"],["equiv","\\equiv",!0,"≡","[identical to]","[identical to]","\u2261"],["triangleq","\\triangleq",!0,"≜","[defined to]","[defined to]","\u225c"],["le","\\le",!0,"≤","<=","<=","\u2264"],["leq","\\le",!0,"≤","<=","<=","\u2264"],["ge","\\ge",!0,"≥",">=",">=","\u2265"],["geq","\\ge",!0,"≥",">=",">=","\u2265"],["lessgtr","\\lessgtr",!0,"≶","[less than or greater than]","[less than or greater than]","\u2276"],["lesseqgtr","\\lesseqgtr",!0,"⋚","[less than or equal or greater than or equal]","[less than or equal or greater than or equal]","\u22da"],["ll","\\ll",!0,"≪","<<","<<","\u226a"],["Ll","\\lll",!0,"⋘","<<<","<<<","\u22d8"],["lll","\\lll",!0,"⋘","<<<","<<<","\u22d8"],["gg","\\gg",!0,"≫",">>",">>","\u226b"],["Gg","\\ggg",!0,"⋙",">>>",">>>","\u22d9"],["ggg","\\ggg",!0,"⋙",">>>",">>>","\u22d9"],["prec","\\prec",!0,"≺","[precedes]","[precedes]","\u227a"],["preceq","\\preceq",!0,"≼","[precedes or equal]","[precedes or equal]","\u227c"],["preccurlyeq","\\preccurlyeq",!0,"≼","[precedes or equal]","[precedes or equal]","\u227c"],["succ","\\succ",!0,"≻","[succeeds]","[succeeds]","\u227b"],["succeq","\\succeq",!0,"≽","[succeeds or equal]","[succeeds or equal]","\u227d"],["succcurlyeq","\\succcurlyeq",!0,"≽","[succeeds or equal]","[succeeds or equal]","\u227d"],["sub","\\subset",!0,"⊂","[subset of]","[subset of]","\u2282"],["subset","\\subset",!0,"⊂","[subset of]","[subset of]","\u2282"],["sup","\\supset",!0,"⊃","[superset of]","[superset of]","\u2283"],["supset","\\supset",!0,"⊃","[superset of]","[superset of]","\u2283"],["nsub","\\not\\subset",!0,"⊄","[not a subset of]","[not a subset of","\u2284"],["sube","\\subseteq",!0,"⊆","[subset of or equal to]","[subset of or equal to]","\u2286"],["nsup","\\not\\supset",!0,"⊅","[not a superset of]","[not a superset of]","\u2285"],["supe","\\supseteq",!0,"⊇","[superset of or equal to]","[superset of or equal to]","\u2287"],["setminus","\\setminus",!0,"∖",'" ','"',"\u29f5"],["forall","\\forall",!0,"∀","[for all]","[for all]","\u2200"],["exist","\\exists",!0,"∃","[there exists]","[there exists]","\u2203"],["exists","\\exists",!0,"∃","[there exists]","[there exists]","\u2203"],["nexist","\\nexists",!0,"∃","[there does not exists]","[there does not exists]","\u2204"],["nexists","\\nexists",!0,"∃","[there does not exists]","[there does not exists]","\u2204"],["empty","\\emptyset",!0,"∅","[empty set]","[empty set]","\u2205"],["emptyset","\\emptyset",!0,"∅","[empty set]","[empty set]","\u2205"],["isin","\\in",!0,"∈","[element of]","[element of]","\u2208"],["in","\\in",!0,"∈","[element of]","[element of]","\u2208"],["notin","\\notin",!0,"∉","[not an element of]","[not an element of]","\u2209"],["ni","\\ni",!0,"∋","[contains as member]","[contains as member]","\u220b"],["nabla","\\nabla",!0,"∇","[nabla]","[nabla]","\u2207"],["ang","\\angle",!0,"∠","[angle]","[angle]","\u2220"],["angle","\\angle",!0,"∠","[angle]","[angle]","\u2220"],["perp","\\perp",!0,"⊥","[up tack]","[up tack]","\u22a5"],["parallel","\\parallel",!0,"∥","||","||","\u2225"],["sdot","\\cdot",!0,"⋅","[dot]","[dot]","\u22c5"],["cdot","\\cdot",!0,"⋅","[dot]","[dot]","\u22c5"],["lceil","\\lceil",!0,"⌈","[left ceiling]","[left ceiling]","\u2308"],["rceil","\\rceil",!0,"⌉","[right ceiling]","[right ceiling]","\u2309"],["lfloor","\\lfloor",!0,"⌊","[left floor]","[left floor]","\u230a"],["rfloor","\\rfloor",!0,"⌋","[right floor]","[right floor]","\u230b"],["lang","\\langle",!0,"⟨","<","<","\u27e8"],["rang","\\rangle",!0,"⟩",">",">","\u27e9"],["langle","\\langle",!0,"⟨","<","<","\u27e8"],["rangle","\\rangle",!0,"⟩",">",">","\u27e9"],["hbar","\\hbar",!0,"ℏ","hbar","hbar","\u210f"],["mho","\\mho",!0,"℧","mho","mho","\u2127"],["larr","\\leftarrow",!0,"←","<-","<-","\u2190"],["leftarrow","\\leftarrow",!0,"←","<-","<-","\u2190"],["gets","\\gets",!0,"←","<-","<-","\u2190"],["lArr","\\Leftarrow",!0,"⇐","<=","<=","\u21d0"],["Leftarrow","\\Leftarrow",!0,"⇐","<=","<=","\u21d0"],["uarr","\\uparrow",!0,"↑","[uparrow]","[uparrow]","\u2191"],["uparrow","\\uparrow",!0,"↑","[uparrow]","[uparrow]","\u2191"],["uArr","\\Uparrow",!0,"⇑","[dbluparrow]","[dbluparrow]","\u21d1"],["Uparrow","\\Uparrow",!0,"⇑","[dbluparrow]","[dbluparrow]","\u21d1"],["rarr","\\rightarrow",!0,"→","->","->","\u2192"],["to","\\to",!0,"→","->","->","\u2192"],["rightarrow","\\rightarrow",!0,"→","->","->","\u2192"],["rArr","\\Rightarrow",!0,"⇒","=>","=>","\u21d2"],["Rightarrow","\\Rightarrow",!0,"⇒","=>","=>","\u21d2"],["darr","\\downarrow",!0,"↓","[downarrow]","[downarrow]","\u2193"],["downarrow","\\downarrow",!0,"↓","[downarrow]","[downarrow]","\u2193"],["dArr","\\Downarrow",!0,"⇓","[dbldownarrow]","[dbldownarrow]","\u21d3"],["Downarrow","\\Downarrow",!0,"⇓","[dbldownarrow]","[dbldownarrow]","\u21d3"],["harr","\\leftrightarrow",!0,"↔","<->","<->","\u2194"],["leftrightarrow","\\leftrightarrow",!0,"↔","<->","<->","\u2194"],["hArr","\\Leftrightarrow",!0,"⇔","<=>","<=>","\u21d4"],["Leftrightarrow","\\Leftrightarrow",!0,"⇔","<=>","<=>","\u21d4"],["crarr","\\hookleftarrow",!0,"↵","<-'","<-'","\u21b5"],["hookleftarrow","\\hookleftarrow",!0,"↵","<-'","<-'","\u21b5"],["arccos","\\arccos",!0,"arccos","arccos","arccos","arccos"],["arcsin","\\arcsin",!0,"arcsin","arcsin","arcsin","arcsin"],["arctan","\\arctan",!0,"arctan","arctan","arctan","arctan"],["arg","\\arg",!0,"arg","arg","arg","arg"],["cos","\\cos",!0,"cos","cos","cos","cos"],["cosh","\\cosh",!0,"cosh","cosh","cosh","cosh"],["cot","\\cot",!0,"cot","cot","cot","cot"],["coth","\\coth",!0,"coth","coth","coth","coth"],["csc","\\csc",!0,"csc","csc","csc","csc"],["deg","\\deg",!0,"°","deg","deg","deg"],["det","\\det",!0,"det","det","det","det"],["dim","\\dim",!0,"dim","dim","dim","dim"],["exp","\\exp",!0,"exp","exp","exp","exp"],["gcd","\\gcd",!0,"gcd","gcd","gcd","gcd"],["hom","\\hom",!0,"hom","hom","hom","hom"],["inf","\\inf",!0,"inf","inf","inf","inf"],["ker","\\ker",!0,"ker","ker","ker","ker"],["lg","\\lg",!0,"lg","lg","lg","lg"],["lim","\\lim",!0,"lim","lim","lim","lim"],["liminf","\\liminf",!0,"liminf","liminf","liminf","liminf"],["limsup","\\limsup",!0,"limsup","limsup","limsup","limsup"],["ln","\\ln",!0,"ln","ln","ln","ln"],["log","\\log",!0,"log","log","log","log"],["max","\\max",!0,"max","max","max","max"],["min","\\min",!0,"min","min","min","min"],["Pr","\\Pr",!0,"Pr","Pr","Pr","Pr"],["sec","\\sec",!0,"sec","sec","sec","sec"],["sin","\\sin",!0,"sin","sin","sin","sin"],["sinh","\\sinh",!0,"sinh","sinh","sinh","sinh"],["sup","\\sup",!0,"⊃","sup","sup","sup"],["tan","\\tan",!0,"tan","tan","tan","tan"],["tanh","\\tanh",!0,"tanh","tanh","tanh","tanh"],["bull","\\textbullet{}",!1,"•","*","*","\u2022"],["bullet","\\textbullet{}",!1,"•","*","*","\u2022"],["star","\\star",!0,"*","*","*","\u22c6"],["lowast","\\ast",!0,"∗","*","*","\u2217"],["ast","\\ast",!0,"∗","*","*","*"],["odot","\\odot",!0,"o","[circled dot]","[circled dot]","\u0298"],["oplus","\\oplus",!0,"⊕","[circled plus]","[circled plus]","\u2295"],["otimes","\\otimes",!0,"⊗","[circled times]","[circled times]","\u2297"],["check","\\checkmark",!0,"✓","[checkmark]","[checkmark]","\u2713"],["checkmark","\\checkmark",!0,"✓","[checkmark]","[checkmark]","\u2713"],["para","\\P{}",!1,"¶","[pilcrow]","\xb6","\xb6"],["ordf","\\textordfeminine{}",!1,"ª","_a_","\xaa","\xaa"],["ordm","\\textordmasculine{}",!1,"º","_o_","\xba","\xba"],["cedil","\\c{}",!1,"¸","[cedilla]","\xb8","\xb8"],["oline","\\overline{~}",!0,"‾","[overline]","\xaf","\u203e"],["uml","\\textasciidieresis{}",!1,"¨","[diaeresis]","\xa8","\xa8"],["zwnj","\\/{}",!1,"‌","","","\u200c"],["zwj","",!1,"‍","","","\u200d"],["lrm","",!1,"‎","","","\u200e"],["rlm","",!1,"‏","","","\u200f"],["smiley","\\ddot\\smile",!0,"☺",":-)",":-)","\u263a"],["blacksmile","\\ddot\\smile",!0,"☻",":-)",":-)","\u263b"],["sad","\\ddot\\frown",!0,"☹",":-(",":-(","\u2639"],["frowny","\\ddot\\frown",!0,"☹",":-(",":-(","\u2639"],["clubs","\\clubsuit",!0,"♣","[clubs]","[clubs]","\u2663"],["clubsuit","\\clubsuit",!0,"♣","[clubs]","[clubs]","\u2663"],["spades","\\spadesuit",!0,"♠","[spades]","[spades]","\u2660"],["spadesuit","\\spadesuit",!0,"♠","[spades]","[spades]","\u2660"],["hearts","\\heartsuit",!0,"♥","[hearts]","[hearts]","\u2665"],["heartsuit","\\heartsuit",!0,"♥","[hearts]","[hearts]","\u2665"],["diams","\\diamondsuit",!0,"♦","[diamonds]","[diamonds]","\u25c6"],["diamondsuit","\\diamondsuit",!0,"♦","[diamonds]","[diamonds]","\u25c6"],["diamond","\\diamondsuit",!0,"⋄","[diamond]","[diamond]","\u25c6"],["Diamond","\\diamondsuit",!0,"⋄","[diamond]","[diamond]","\u25c6"],["loz","\\lozenge",!0,"◊","[lozenge]","[lozenge]","\u29eb"],["_ ","\\hspace*{0.5em}",!1," "," "," ","\u2002"],["_ ","\\hspace*{1.0em}",!1,"  "," "," ","\u2002\u2002"],["_ ","\\hspace*{1.5em}",!1,"   "," "," ","\u2002\u2002\u2002"],["_ ","\\hspace*{2.0em}",!1,"    "," "," ","\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{2.5em}",!1,"     "," "," ","\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{3.0em}",!1,"      "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{3.5em}",!1,"       "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{4.0em}",!1,"        "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{4.5em}",!1,"         "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{5.0em}",!1,"          "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{5.5em}",!1,"           "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{6.0em}",!1,"            "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{6.5em}",!1,"             "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{7.0em}",!1,"              "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{7.5em}",!1,"               "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{8.0em}",!1,"                "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{8.5em}",!1,"                 "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{9.0em}",!1,"                  "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{9.5em}",!1,"                   "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_ ","\\hspace*{10.0em}",!1,"                    "," "," ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"]]},13816:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(23080));e.exports=r.default},56166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=void 0,t.defaultOptions={todoKeywords:["TODO","DONE"],emphasisRegexpComponents:{pre:"-\u2013\u2014\\s\\('\u2019\"\u201c\u201d\\{",post:"-\u2013\u2014\\s.,:!?;'\u2019\"\u201c\u201d\\)\\}\\[",border:"\\s",body:".",newline:1},linkTypes:["eww","rmail","mhe","irc","info","gnus","docview","bbdb","w3m","printindex","index","bibentry","Autocites","autocites","supercites","Textcites","textcites","Smartcites","smartcites","footcitetexts","footcites","Parencites","parencites","Cites","cites","fnotecite","Pnotecite","pnotecite","Notecite","notecite","footfullcite","fullcite","citeurl","citedate*","citedate","citetitle*","citetitle","Citeauthor*","Autocite*","autocite*","Autocite","autocite","supercite","parencite*","cite*","Smartcite","smartcite","Textcite","textcite","footcitetext","footcite","Parencite","parencite","Cite","Citeauthor","Citealp","Citealt","Citep","Citet","citeyearpar","citeyear*","citeyear","citeauthor*","citeauthor","citetext","citenum","citealp*","citealp","citealt*","citealt","citep*","citep","citet*","citet","nocite","cite","Cref","cref","autoref","eqref","nameref","pageref","ref","label","list-of-tables","list-of-figures","addbibresource","bibliographystyle","printbibliography","nobibliography","bibliography","Acp","acp","Ac","ac","acrfull","acrlong","acrshort","glslink","glsdesc","glssymbol","Glspl","Gls","glspl","gls","bibtex","roam","notmuch-tree","notmuch-search","notmuch","attachment","id","file+sys","file+emacs","shell","news","mailto","https","http","ftp","help","file","elisp","do"],matchSexpDepth:3}},82105:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const i=r(n(10939)),o=r(n(50914)),a=n(89859),s=n(23875),u=n(56166),c=n(24314);var l;!function(e){e[e.TopComment=0]="TopComment",e[e.Headline=1]="Headline",e[e.Planning=2]="Planning",e[e.PropertyDrawer=3]="PropertyDrawer",e[e.NodeProperty=4]="NodeProperty",e[e.ListItem=5]="ListItem",e[e.TableRow=6]="TableRow",e[e.Default=7]="Default"}(l||(l={})),t.parse=function(e,t){return new d(i.default(e),t).parse()};class d{constructor(e,t={}){this.r=new c.Reader(e),this.options=Object.assign(Object.assign({},u.defaultOptions),t),this.re=new s.OrgRegexUtils(this.options)}parse(){this.parseEmptyLines();const e=this.parseElements(l.TopComment);return o.default("org-data",{contentsBegin:0,contentsEnd:this.r.endOffset()},e)}parseElements(e,t){const n=[];let r=-1;for(;!this.r.eof();){const i=this.r.offset();if(i===r)throw console.log("elements:",n,"rest:",JSON.stringify(this.r.rest())),new Error("no progress (elements)");r=i;const o=this.parseElement(e,t),a=o.type,u=o.contentsBegin,c=o.contentsEnd;void 0===u||void 0===c||(s.greaterElements.has(a)?(this.r.narrow(u,c),_(o,this.parseElements(d.nextMode(e,a,!0),"plain-list"===o.type||"list-item"===o.type?o.structure:void 0)),this.r.widen(),o.structure&&delete o.structure):(this.r.narrow(u,c),_(o,this.parseObjects(s.restrictionFor(o.type))),this.r.widen())),n.push(o),e=d.nextMode(e,a,!1)}return n}static nextMode(e,t,n){if(n){if("section"===t)return l.Headline;if("inlinetask"===t)return l.Headline;if("plain-list"===t)return l.ListItem;if("property-drawer"===t)return l.NodeProperty;if("table"===t)return l.TableRow}else{if(e===l.TopComment&&"comment"===t)return l.PropertyDrawer;if(e===l.Headline)return l.Planning;if(e===l.Planning&&"planning"===t)return l.PropertyDrawer;if(e===l.ListItem)return l.ListItem;if(e===l.TableRow)return l.TableRow;if(e===l.NodeProperty)return l.NodeProperty}return l.Default}parseElement(e,t){var n,r;if(e===l.ListItem)return this.parseListItem(t);if(e===l.TableRow)return this.parseTableRow();if(e===l.NodeProperty)return this.parseNodeProperty();if(e===l.Headline)return this.parseHeadline();if(this.atHeading())return this.parseSection();const i=0===this.r.offset()||"\n"===this.r.substring(this.r.offset()-1,this.r.offset());if(i&&this.r.lookingAt(/^[ \t]*#(?: |$)/m))return this.parseComment();if(e===l.Planning&&this.r.lookingAt(/^[ \t]*(CLOSED:|DEADLINE:|SCHEDULED:)/))return this.parsePlanning();if((e===l.Planning||(e===l.PropertyDrawer||e===l.TopComment)&&!this.r.lookingAt(/\s*$/m))&&this.r.lookingAt(/^[ \t]*:PROPERTIES:[ \t]*\n(?:[ \t]*:\S+:(?: .*)?[ \t]*\n)*?[ \t]*:END:[ \t]*$/im))return this.parsePropertyDrawer();if(!i)return this.parseParagraph({});if(this.r.lookingAt(/^[ \t]*CLOCK:/))return this.parseClock();const o=this.parseAffiliatedKeywords();if(this.r.lookingAt(h))return this.parseLatexEnvironment(o);if(this.r.lookingAt(f))return this.parseDrawer(o);if(this.r.lookingAt(/[ \t]*:( |$)/m))return this.parseFixedWidth(o);{const e=this.r.offset();if(this.r.advance(this.r.lookingAt(/^[ \t]*#\+/))){const t=this.r.lookingAt(/^begin_(\S+)/i);if(t){this.r.resetOffset(e);switch(t[1].toLowerCase()){case"center":return this.parseBlock("center-block","center",o);case"comment":return this.parseCommentBlock(o);case"example":return this.parseExampleBlock(o);case"export":return this.parseExportBlock(o);case"quote":return this.parseBlock("quote-block","quote",o);case"src":return this.parseSrcBlock(o);case"verse":return this.parseBlock("verse-block","verse",o);default:return this.parseSpecialBlock(o)}}return this.r.lookingAt(/^\S+:/)?(this.r.resetOffset(e),this.parseKeyword(o)):(this.r.resetOffset(e),this.parseParagraph(o))}}if(this.r.lookingAt(T))return this.parseFootnoteDefinition(o);if(this.r.lookingAt(/^[ \t]*-{5,}[ \t]*$/m))return this.parseHorizontalRule(o);if(this.r.lookingAt(/^%%\(/))return this.parseDiarySexp(o);const a=/[ \t]*\+(-+\+)+[ \t]*$/m;if(this.r.lookingAt(/^[ \t]*\|/))return this.parseTable(o);if(this.r.lookingAt(a)){const e=this.r.offset();this.r.advance(this.r.line());const t=this.r.offset(),i=null!==(r=null===(n=this.r.match(/^[ \t]*($|[^|])/m))||void 0===n?void 0:n.index)&&void 0!==r?r:null;this.r.advance(i);const s=this.r.offset()>t&&this.r.lookingAt(a);if(this.r.resetOffset(e),s)return this.parseTable(o)}if(this.r.lookingAt(this.re.listItemRe())){if(void 0===t){const e=this.r.offset();t=this.parseListStructure(),this.r.resetOffset(e)}return this.parseList(t,o)}return this.parseParagraph(o)}parseObjects(e){const t=[];let n=this.r.offset();for(;!this.r.eof();){const r=this.r.offset(),i=this.parseObject(e);if(!i)break;if(this.r.offset()===r)throw new Error(`no progress (parseObject): ${JSON.stringify(i)}, text: ${JSON.stringify(this.r.rest())}, objects: ${JSON.stringify(t,null,2)}`);const[a,u]=i;if(a!==n){const e=this.r.substring(n,a);t.push(o.default("text",{value:e}))}const c=u.contentsBegin,l=u.contentsEnd;void 0!==c&&void 0!==l&&(this.r.narrow(c,l),_(u,this.parseObjects(s.restrictionFor(u.type))),this.r.widen()),t.push(u),n=this.r.offset()}this.r.resetOffset(n);const r=this.r.rest();return this.r.advance(r.length),r.trim().length&&t.push(o.default("text",{value:r})),t}parseObject(e){if(e.has("table-cell"))return[this.r.offset(),this.parseTableCell()];const t=this.re.objectRe();for(;!this.r.eof();){const n=this.r.match(t);if(!n)return null;this.r.advance(n.index);const r=this.r.offset(),i=this.tryParseObject(e);if(i){if(r===this.r.offset())throw new Error("no progress (tryParseObject)");return[r,i]}this.r.resetOffset(r),this.r.advance(1)}return null}tryParseObject(e){const t=this.r.peek(2);switch(t[0]){case"^":if(e.has("superscript"))return this.parseSuperscript();break;case"_":const n=this.r.offset(),r=e.has("subscript")&&this.parseSubscript();if(r)return r;if(this.r.resetOffset(n),e.has("underline"))return this.parseUnderline();break;case"*":if(e.has("bold"))return this.parseBold();break;case"/":if(e.has("italic"))return this.parseItalic();break;case"~":if(e.has("code"))return this.parseCode();break;case"=":if(e.has("verbatim"))return this.parseVerbatim();break;case"+":if(e.has("strike-through"))return this.parseStrikeThrough();break;case"$":if(e.has("latex-fragment"))return this.parseLatexFragment();break;case"<":if("<"===t[1]);else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t);const r=e.has("link")&&this.parseLink();if(r)return r;this.r.resetOffset(t)}break;case"\\":if("\\"===t[1]);else{const t=this.r.offset(),n=e.has("entity")&&this.parseEntity();if(n)return n;this.r.resetOffset(t);const r=e.has("latex-fragment")&&this.parseLatexFragment();if(r)return r;this.r.resetOffset(t)}break;case"[":if("["===t[1]){if(e.has("link"))return this.parseLink()}else if("f"===t[1]){if(e.has("footnote-reference"))return this.parseFootnoteReference()}else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t)}break;default:if(e.has("link"))return this.parseLink()}return null}parseSection(){const e=this.r.offset(),t=this.r.forceLookingAt(/^(\*+)[ \t]/m)[1].length;this.r.advance(this.r.line());const n=this.r.match(new RegExp(`^\\*{1,${t}}[ \\t]`,"m")),r=n?this.r.offset()+n.index:this.r.endOffset();return this.r.resetOffset(r),o.default("section",{contentsBegin:e,contentsEnd:r},[])}parseHeadline(){var e,t,n;const r=this.r.offset();this.r.advance(this.r.line()),this.r.narrow(r,this.r.offset());const i=this.r.advance(this.r.forceLookingAt(/^(\*+)[ \t]+/))[1].length,a=this.r.advance(this.r.lookingAt(new RegExp("^"+this.options.todoKeywords.join("|")))),s=null!==(e=null===a||void 0===a?void 0:a[0])&&void 0!==e?e:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const u=this.r.advance(this.r.lookingAt(/^\[#.\]/)),c=null!==(t=null===u||void 0===u?void 0:u[0][2])&&void 0!==t?t:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const l=!!this.r.advance(this.r.lookingAt(/^COMMENT/));this.r.advance(this.r.lookingAt(/^[ \t]*/));const d=this.r.offset(),f=this.r.lookingAt(/^(.*?)[ \t]+:([\w@#%:]+):[ \t]*$/m),h=null!==(n=null===f||void 0===f?void 0:f[2].split(":"))&&void 0!==n?n:[],p=f?d+f.index+f[1].length:d+this.r.forceLookingAt(/.*/)[0].length,m=this.r.substring(d,p),g=d,v=p;return this.r.widen(),this.parseEmptyLines(),o.default("headline",{level:i,todoKeyword:s,priority:c,commented:l,rawValue:m,tags:h,contentsBegin:g,contentsEnd:v},[])}parsePlanning(){this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);let e=null,t=null,n=null;for(;;){const r=this.r.match(/\b(SCHEDULED:|DEADLINE:|CLOSED:) *[\[<]([^\]>]+)[\]>]/);if(!r)break;this.r.advance(r.index+r[1].length),this.r.advance(this.r.match(/^[ \t]*/));const i=r[1],o=this.parseTimestamp();"SCHEDULED:"===i&&(e=o),"DEADLINE:"===i&&(t=o),"CLOSED:"===i&&(n=o)}return this.r.widen(),this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("planning",{scheduled:e,deadline:t,closed:n})}parsePropertyDrawer(){this.r.advance(this.r.line());const e=this.r.offset(),t=this.r.forceMatch(/^[ \t]*:END:[ \t]*$/im);this.r.advance(t.index);const n=this.r.offset();return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("property-drawer",{contentsBegin:e,contentsEnd:n},[])}parseBlock(e,t,n){const r=this.r.match(new RegExp(`^[ \\t]*#\\+end_${t}[ \\t]*$`,"im"));if(!r)return this.parseParagraph(n);const i=this.r.offset(),a=i+this.r.line().length,s=i+r.index;this.r.resetOffset(s),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.default(e,{affiliated:n,contentsBegin:a,contentsEnd:s},[])}parseComment(){let e=[];for(this.r.advance(this.r.forceLookingAt(/^[ \t]*# ?/)),e.push(this.r.advance(this.r.line()));;){if(!this.r.advance(this.r.lookingAt(/^[ \t]*#( |$)/m)))break;e.push(this.r.advance(this.r.line()))}let t=e.join("");return"\n"===t[t.length-1]&&(t=t.substring(0,t.length-1)),o.default("comment",{value:t})}parseFixedWidth(e){let t=[];for(;;){const e=this.r.lookingAt(/^[ \t]*: ?(.*)$/m);if(!e)break;this.r.advance(this.r.line()),t.push(e[1])}const n=t.join("\n");return o.default("fixed-width",{affiliated:e,value:n})}parseCommentBlock(e){const t=this.parseBlock("comment-block","comment",e);if("comment-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return o.default("comment-block",{affiliated:e,value:n})}parseSrcBlock(e){const t=this.r.match(/^[ \t]*#\+end_src[ \t]*$/im);if(!t)return this.parseParagraph(e);const n=this.r.forceMatch(/^[ \t]*#\+begin_src(?: +(?<language>\S+))?(?<switches>(?: +(?:-(?:l ".+"|[ikr])|[-+]n(?: *[0-9]+)?))+)?(?<parameters>.*)[ \t]*$/im),{language:r,switches:i,parameters:a}=n.groups,u=this.r.offset(),c=u+this.r.line().length,l=u+t.index,d=s.unescapeCodeInString(this.r.substring(c,l));this.r.resetOffset(l),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.default("src-block",{affiliated:e,language:r,value:d})}parseExampleBlock(e){const t=this.parseBlock("example-block","example",e);if("example-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return o.default("example-block",{affiliated:e,value:n})}parseExportBlock(e){var t;const n=this.r.match(/^[ \t]*#\+end_export[ \t]*$/im);if(!n)return this.parseParagraph(e);const r=null!==(t=this.r.forceMatch(/^[ \t]*#\+begin_export(?:[ \t]+(\S+))?[ \t]*$/im)[1])&&void 0!==t?t:null,i=this.r.offset(),a=i+this.r.line().length,u=i+n.index,c=s.unescapeCodeInString(this.r.substring(a,u));this.r.resetOffset(u),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.default("export-block",{affiliated:e,backend:r,value:c})}parseSpecialBlock(e){const t=this.r.forceLookingAt(/[ \t]*#\+begin_(\S+)/i)[1],n=this.r.match(new RegExp(`^[ \\t]*#\\+end_${s.escapeRegExp(t)}[ \\t]*$`,"im"));if(!n)return this.r.message("incomplete block",this.r.offset(),"uniorg"),this.parseParagraph(e);const r=this.r.offset(),i=r+this.r.line().length,a=r+n.index;this.r.resetOffset(a),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return o.default("special-block",{affiliated:e,blockType:t,contentsBegin:i,contentsEnd:a},[])}parseAffiliatedKeywords(){var e,t,n,r;const i=this.r.offset(),o={};for(;!this.r.eof();){const i=this.r.lookingAt(b);if(!i)break;const a=(null!==(t=null!==(e=i.groups.dualKeyword)&&void 0!==e?e:i.groups.regularKeyword)&&void 0!==t?t:i.groups.attributeKeyword).toUpperCase(),u=null!==(n=y[a])&&void 0!==n?n:a,c=g.has(u);this.r.advance(i),this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);const l=c?this.parseObjects(s.restrictionFor("keyword")):this.r.rest().trim();this.r.widen(),this.r.advance(this.r.line());const d=m.has(u)&&null!==(r=i.groups.dualValue)&&void 0!==r?r:null,f=null===d?l:[l,d];v.has(u)||u.match(/^ATTR_/)?(o[u]=o[u]||[],o[u].push(f)):o[u]=f}return this.r.lookingAt(/^[ \t]*$/m)?(this.r.resetOffset(i),{}):o}parseKeyword(e){const t=this.r.forceLookingAt(/[ \t]*#\+(\S+):(.*)/),n=t[1].toUpperCase(),r=t[2].trim();return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("keyword",{affiliated:e,key:n,value:r})}parseLatexEnvironment(e){const t=this.r.offset(),n=this.r.advance(this.r.forceLookingAt(h))[1],r=this.r.match(p(n));if(!r)return this.r.resetOffset(t),this.parseParagraph(e);this.r.advance(r);const i=this.r.offset();this.parseEmptyLines();const a=this.r.substring(t,i);return o.default("latex-environment",{affiliated:e,value:a})}parseDrawer(e){const t=this.r.match(/^[ \t]*:END:[ \t]*$/im);if(!t)return this.r.message("incomplete drawer",this.r.offset(),"uniorg"),this.parseParagraph(e);const n=this.r.offset()+t.index,r=this.r.forceLookingAt(f)[1];this.r.advance(this.r.line());const i=this.r.offset();return this.r.resetOffset(n),this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("drawer",{affiliated:e,name:r,contentsBegin:i,contentsEnd:n},[])}parseClock(){this.r.advance(this.r.forceMatch(/^[ \t]*CLOCK:[ \t]*/));const e=this.parseTimestamp();this.r.advance(this.r.match(/^[ \t]+=>[ \t]*/));const t=this.r.advance(this.r.lookingAt(/^(\S+)[ \t]*$/m)),n=t?t[1]:null,r=n?"closed":"running";return this.parseEmptyLines(),o.default("clock",{value:e,duration:n,status:r})}parseNodeProperty(){var e;const t=this.r.forceLookingAt(/^[ \t]*:(?<key>\S+):(?:(?<value1>$)|[ \t]+(?<value2>.*?))[ \t]*$/m),n=t.groups.key,r=null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2;return this.r.advance(this.r.line()),o.default("node-property",{key:n,value:r})}parseParagraph(e){const t=this.r.offset();this.r.advance(this.r.line());let n=null;for(;n=this.r.match(this.re.paragraphSeparateRe());){this.r.advance(n.index);const e=this.r.lookingAt(/[ \t]*#\+begin_(\S+)/i);if(e){if(!this.r.match(new RegExp(`^[ \\t]*#\\+end_${e[1]}[ \\t]*$`,"im"))){this.r.advance(this.r.line());continue}break}if(this.r.lookingAt(f)){if(!this.r.match(/^[ \t]*:END:[ \t]*$/im)){this.r.advance(this.r.line());continue}break}const t=this.r.lookingAt(h);if(t){const e=t[1];if(!this.r.match(p(e))){this.r.advance(this.r.line());continue}break}const r=this.r.lookingAt(/[ \t]*#\+(\S+)\[.*\]:/);if(r){if(!m.has(r[1].toLowerCase())){this.r.advance(this.r.line());continue}break}break}const r=n?this.r.offset():this.r.endOffset();return this.r.resetOffset(r),this.parseEmptyLines(),o.default("paragraph",{affiliated:e,contentsBegin:t,contentsEnd:r},[])}parseFootnoteDefinition(e){var t;const n=this.r.forceLookingAt(T)[1],r=this.r.offset();this.r.advance(this.r.line());const i=this.r.match(x);this.r.advance(null===i||void 0===i?void 0:i.index);let a=i?this.r.offset():this.r.endOffset();if(i&&"["===i[0][0]){let e=this.r.substring(r,this.r.offset()).split("\n");for(e=e.slice(1,e.length-1);e.length;){const n=e.pop();if(0!==(null===(t=n.match(b))||void 0===t?void 0:t.index))break;this.r.advance(-n.length-1)}a=this.r.offset()}this.r.narrow(r,a),this.r.advance(this.r.forceMatch(/\][ \r\t\n]*/m));const s=this.r.offset();return this.r.widen(),this.r.resetOffset(a),this.parseEmptyLines(),o.default("footnote-definition",{affiliated:e,label:n,contentsBegin:s,contentsEnd:a},[])}parseHorizontalRule(e){return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("horizontal-rule",{affiliated:e})}parseDiarySexp(e){const t=this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1];return this.r.advance(this.r.line()),this.parseEmptyLines(),o.default("diary-sexp",{affiliated:e,value:t})}parseTable(e){const t=this.r.offset(),n=this.r.lookingAt(/^[ \t]*\|/)?"org":"table.el",r=new RegExp(`^[ \\t]*($|[^| \\t${"org"===n?"":"+"}])`,"m"),i=this.r.match(r),a=i?t+i.index:this.r.endOffset();this.r.resetOffset(a);let s="";for(;;){const e=this.r.lookingAt(/^[ \t]*#\+TBLFM: +(.*?)[ \t]*$/m);if(!e)break;s+=e[1],this.r.advance(this.r.line())}return this.parseEmptyLines(),"org"===n?o.default("table",{tableType:n,tblfm:s,contentsBegin:t,contentsEnd:a},[]):o.default("table",{affiliated:e,tableType:n,tblfm:s,value:this.r.substring(t,a)})}parseTableRow(){const e=this.r.lookingAt(/^[ \t]*\|-/)?"rule":"standard";this.r.advance(this.r.forceMatch(/\|/));const t=this.r.offset();this.r.advance(this.r.forceMatch(/^.*?[ \t]*$/m));const n="rule"===e?t:this.r.offset();return this.r.advance(this.r.line()),o.default("table-row",{rowType:e,contentsBegin:t,contentsEnd:n},[])}parseTableCell(){this.r.advance(this.r.forceLookingAt(/^[ \t]*/));const e=this.r.offset(),t=e+this.r.advance(this.r.forceLookingAt(/(.*?)[ \t]*(?:\||$)/m))[1].length;return o.default("table-cell",{contentsBegin:e,contentsEnd:t},[])}parseList(e,t){const n=this.r.offset(),r=e.find((e=>e.begin===n));if(!r)throw new Error(`parseList: cannot find item. contentsBegin: ${n}, structure: ${JSON.stringify(e,null,2)}`);const i=r.indent,a=r.tag?"descriptive":"-+*".includes(r.bullet[0])?"unordered":"ordered";let s=r.end;for(;;){const t=e.find((e=>e.begin===s&&e.indent===i));if(!t)break;s=t.end}const u=s;return this.r.resetOffset(u),o.default("plain-list",{affiliated:t,indent:i,listType:a,contentsBegin:n,contentsEnd:u,structure:e},[])}parseListItem(e){var t,n;const r=this.r.offset(),i=this.r.advance(this.r.forceMatch(this.re.fullListItemRe())),a=i.groups.bullet,s=null!==(t=i.groups.counter)&&void 0!==t?t:null,u="[ ]"===i.groups.checkbox?"off":"[x]"===(null===(n=i.groups.checkbox)||void 0===n?void 0:n.toLowerCase())?"on":"[-]"===i.groups.checkbox?"trans":null,c=e.find((e=>e.begin===r)),l=this.r.offset(),d=c.end;return this.r.resetOffset(d),o.default("list-item",{indent:c.indent,bullet:a,counter:s,checkbox:u,contentsBegin:l,contentsEnd:d,structure:e},c.tag?[c.tag]:[])}parseListStructure(){var e,t,n,r,i,a,u,c,l;const d=[],h=[];for(;!this.r.eof()&&0!==(null===(e=this.r.match(this.re.listEndRe()))||void 0===e?void 0:e.index);){const e=this.r.match(this.re.listItemRe());if(e){const f=e.groups.indent.length;for(;d.length&&d[d.length-1].indent>=f;){const e=d.pop();e.end=this.r.offset(),h.push(e)}const p=this.r.forceMatch(this.re.fullListItemRe()),{bullet:m,counter:g,checkbox:v}=p.groups;if(0===f&&m.startsWith("*"))break;let y=null;if(void 0!==p.groups.tag){const e=this.r.offset()+(null!==(n=null===(t=p.groups.indent)||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=p.groups.bullet)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(u=null===(a=p.groups.counter_group)||void 0===a?void 0:a.length)&&void 0!==u?u:0)+(null!==(l=null===(c=p.groups.checkbox_group)||void 0===c?void 0:c.length)&&void 0!==l?l:0),d=e+p.groups.tag.length;this.r.narrow(e,d),y=o.default("list-item-tag",{},this.parseObjects(s.restrictionFor("list-item"))),this.r.widen()}const b={begin:this.r.offset(),indent:f,bullet:m,counter:null!==g&&void 0!==g?g:null,checkbox:null!==v&&void 0!==v?v:null,tag:y,end:this.r.offset()};d.push(b),this.r.advance(this.r.line())}else if(this.r.match(/^[ \t]*\n/))this.r.advance(this.r.line());else{const e=this.r.forceLookingAt(/^[ \t]*/)[0].length;for(;d.length&&d[d.length-1].indent>=e;){const e=d.pop();e.end=this.r.offset(),h.push(e)}if(!d.length)break;const t=this.r.lookingAt(/[ \t]*#\+begin(:|_\S+)/i);t?this.r.advance(this.r.match(new RegExp(`^[ \\t]*#\\+end${t[1]}[ \\t]*`,"im"))):this.r.lookingAt(f)&&this.r.advance(this.r.match(/^[ \t]*:END:[ \t]*$/im)),this.r.advance(this.r.line())}}this.parseEmptyLines();const p=this.r.offset();return d.forEach((e=>{e.end=p})),h.push(...d),h.sort(((e,t)=>e.begin-t.begin))}parseSuperscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("superscript",{contentsBegin:i,contentsEnd:a,children:[]})}parseSubscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,i=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return o.default("subscript",{contentsBegin:i,contentsEnd:a,children:[]})}parseUnderline(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),o.default("underline",{contentsBegin:t,contentsEnd:n},[])}parseBold(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),o.default("bold",{contentsBegin:t,contentsEnd:n},[])}parseItalic(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),o.default("italic",{contentsBegin:t,contentsEnd:n},[])}parseCode(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),o.default("code",{value:t},[])}parseVerbatim(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),o.default("verbatim",{value:t},[])}parseStrikeThrough(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),o.default("strike-through",{contentsBegin:t,contentsEnd:n},[])}parseEntity(){var e;const t=this.r.advance(this.r.lookingAt(/^\\(?:(?<value1>_ +)|(?<value2>there4|sup[123]|frac[13][24]|[a-zA-Z]+)(?<brackets>$|\{\}|\P{Letter}))/mu));if(!t)return null;const n="{}"===t.groups.brackets;n||this.r.backoff(t.groups.brackets.length);const r=a.getOrgEntity(null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2);return r?o.default("entity",Object.assign({useBrackets:n},r)):null}parseLatexFragment(){var e;const t=this.r.offset(),n=this.r.peek(2);let r=null;if("$"!==n[0])switch(n[1]){case"(":this.r.advance(this.r.match(/\\\)/)),r=this.r.substring(t+2,this.r.offset()-2);break;case"[":this.r.advance(this.r.match(/\\\]/)),r=this.r.substring(t+2,this.r.offset()-2);break;default:{const e=this.r.advance(this.r.lookingAt(/^\\[a-zA-Z]+\*?((\[[^\]\[\n{}]*\])|(\{[^{}\n]*\}))*/));r=null===e||void 0===e?void 0:e[0]}}else if("$"===n[1]){const e=this.r.advance(this.r.match(/\$\$((?:.|\n)*?)\$\$/m));r=null===e||void 0===e?void 0:e[1]}else{if("$"===this.r.substring(this.r.offset()-1,this.r.offset())||" \t\n,.;".includes(n[1])||!(r=null===(e=this.r.advance(this.r.match(/\$((?:.|\n)*?)\$/m)))||void 0===e?void 0:e[1])||" \t\n,.".includes(this.r.substring(this.r.offset()-1,this.r.offset()))||!this.r.lookingAt(/^(\p{Punctuation}|\p{White_Space}|\p{Open_Punctuation}|\p{Close_Punctuation}|\\"|'|$)/mu))return null}const i=this.r.offset();if(t===i)return null;const a=this.r.substring(t,i);return o.default("latex-fragment",{value:a,contents:null!==r&&void 0!==r?r:a})}parseFootnoteReference(){var e;const t=this.r.offset(),n=this.r.match(E);if(!n)return null;const r=()=>{for(;;){const e=this.r.advance(this.r.match(/[\[\]]/));if(!e)return!1;if("["==e[0]){if(!r())return!1}return!0}};if(!r())return null;const i=this.r.offset(),a=t+n.index+n[0].length,s=i-1,u=n.groups.inline?"inline":"standard",c="inline"===u?null!==(e=n.groups.label_inline)&&void 0!==e?e:null:n.groups.label;return"inline"===u?o.default("footnote-reference",{label:c,footnoteType:u,contentsBegin:a,contentsEnd:s},[]):o.default("footnote-reference",{label:c,footnoteType:u},[])}parseLink(){const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(/\[\[(?<link>([^\[\]]|\\(\\\\)*[\[\]]|\\+[^\[\]])+)\](\[(?<text>[\s\S]+?)\])?\]/m));if(t){const n=t,r={};if(n.groups.text){const t=r.contentsBegin=e+2+n.groups.link.length+2;r.contentsEnd=t+n.groups.text.length}const i=n.groups.link.replace(/[ \t]*\n[ \t]*/m," ").replace(/(\\+)([\[\]])/g,((e,t)=>"\\".repeat(e.length/2)+t)),{linkType:a,path:s}=this.linkType(i);return o.default("link",Object.assign({format:"bracket",linkType:a,rawLink:i,path:s},r),[])}const n=new RegExp(`\\b${this.re.linkTypesRe()}([^\\][ \\t\\n()<>]+(?:([\\w0-9_]+)|([^\\p{Punctuation} \\t\\n]|/)))`,"u"),r=this.r.advance(this.r.lookingAt(n));if(r){const e=r;return o.default("link",{format:"plain",linkType:e[1],rawLink:e[0],path:e[2]},[])}const i=new RegExp(`<${this.re.linkTypesRe()}([^>\\n]*(?:\\n[ \\t]*[^> \\t\\n][^>\\n]*)*)>`),a=this.r.advance(this.r.lookingAt(i));if(a){const e=a,t=e[1],n=e[0].substring(1,e[0].length-1),r=e[2].replace(/[ \t]*\n[ \t]*/g,"");return o.default("link",{format:"angle",linkType:t,rawLink:n,path:r},[])}return null}linkType(e){if(e.startsWith("/")||e.match(/^\.\.?\//))return{linkType:"file",path:e};const t=e.match(new RegExp(this.re.linkTypesRe()));return t?{linkType:t[1],path:e.slice(t[0].length)}:e.startsWith("(")&&e.endsWith(")")?{linkType:"coderef",path:e.slice(1,e.length-1)}:e.startsWith("#")?{linkType:"custom-id",path:e.slice(1)}:{linkType:"fuzzy",path:e}}parseTimestamp(){const e=new RegExp(["[\\[<](\\d{4}-\\d{2}-\\d{2}(:? .*?)?)[\\]>]","(?:<[0-9]+-[0-9]+-[0-9]+[^>\\n]+?\\+[0-9]+[dwmy]>)","(?:<%%(?:([^>\\n]+))>)"].join("|"));if(!this.r.lookingAt(e))return null;const t="<"===this.r.substring(this.r.offset(),this.r.offset()+1),n=this.r.advance(this.r.match(/^([<[](%%)?.*?)[\]>](?:--([<[].*?[\]>]))?/));if(!n)return null;const r=n[0],i=n[1],a=n[3],s=!!n[2];let u=null;if(!s){const e=i.match(/[012]?[0-9]:[0-5][0-9](-([012]?[0-9]):([0-5][0-9]))/);e&&(u={hour:Number(e[2]),minute:Number(e[3])})}const c=s?"diary":t&&(a||u)?"active-range":t?"active":a||u?"inactive-range":"inactive",l=s?null:d.parseDate(i),f=l?a?d.parseDate(a):u?Object.assign(Object.assign({},l),u):null:null;return o.default("timestamp",{timestampType:c,rawValue:r,start:l,end:f})}static parseDate(e){const t=e.match(/(([0-9]{4})-([0-9]{2})-([0-9]{2})( +[^\]+0-9>\r\n -]+)?( +([0-9]{1,2}):([0-9]{2}))?)/);return t?{year:Number(t[2]),month:Number(t[3]),day:Number(t[4]),hour:t[7]?Number(t[7]):null,minute:t[8]?Number(t[8]):null}:null}parseEmptyLines(){return d.parseMulti((()=>{const e=this.r.line();return 0===e.trim().length?(this.r.advance(e.length),e):null}))}static parseMulti(e){const t=[];for(let n=e();n;n=e())t.push(n);return t}atHeading(){return null!==this.r.lookingAt(/^\*+[ \t]/)}}const f=/^[ \t]*:((?:\w|[-_])+):[ \t]*$/m,h=/^[ \t]*\\begin\{([A-Za-z0-9*]+)\}/i,p=e=>new RegExp(`\\\\end\\{${s.escapeRegExp(e)}\\}[ \\t]*$`,"mi"),m=new Set(["RESULTS","CAPTION"]),g=new Set(["CAPTION"]),v=new Set(["CAPTION","HEADER"]),y={DATA:"NAME",LABEL:"NAME",RESNAME:"NAME",SOURCE:"NAME",SRCNAME:"NAME",TBLNAME:"NAME",RESULT:"RESULTS",HEADERS:"HEADER"},b=new RegExp(["[ \\t]*#\\+(?:",[`(?<dualKeyword>${[...m].join("|")})(?:\\[(?<dualValue>.*)\\])?`,`(?<regularKeyword>${["CAPTION","DATA","HEADER","HEADERS","LABEL","NAME","PLOT","RESNAME","RESULT","RESULTS","SOURCE","SRCNAME","TBLNAME"].filter((e=>!m.has(e))).join("|")})`,"(?<attributeKeyword>ATTR_[-_A-Za-z0-9]+)"].join("|"),"):[ \\t]*"].join(""),"i"),E=/\[fn:(?:(?<label_inline>[-_\w]+)?(?<inline>:)|(?<label>[-_\w]+)\])/,T=/^\[fn:([-_\w]+)\]/,x=/^\*|^\[fn:([-_\w]+)\]|^([ \t]*\n){2,}/m;function _(e,t){var n;if("children"in e){const r=[...null!==(n=e.children)&&void 0!==n?n:[],...t];e.children=r}}},24314:function(e,t,n){"use strict";var r,i,o,a,s,u,c,l=this&&this.__classPrivateFieldSet||function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},d=this&&this.__classPrivateFieldGet||function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=void 0;const h=f(n(14787));t.Reader=class{constructor(e){r.set(this,void 0),i.set(this,void 0),o.set(this,void 0),a.set(this,0),s.set(this,void 0),u.set(this,void 0),c.set(this,[]),l(this,r,e.toString()),l(this,s,0),l(this,u,d(this,r).length),l(this,i,e),l(this,o,h.default(e))}message(e,t,n){const r=void 0!==t?d(this,o).toPoint(t):void 0;d(this,i).message(e,r,n)}advance(e){return e&&("number"===typeof e?l(this,a,d(this,a)+e):"string"===typeof e?this.rest().startsWith(e)&&l(this,a,d(this,a)+e.length):l(this,a,d(this,a)+(e.index+e[0].length))),e}backoff(e){l(this,a,Math.max(d(this,s),d(this,a)-e))}match(e){return e.exec(this.rest())}lookingAt(e){const t=this.match(e);return 0===(null===t||void 0===t?void 0:t.index)?t:null}forceMatch(e){const t=this.match(e);if(!t)throw new Error(`match error: ${e} against ${JSON.stringify(this.rest())}`);return t}forceLookingAt(e){const t=this.lookingAt(e);if(!t)throw new Error(`match (lookingAt) error: ${e} against ${JSON.stringify(this.rest())}`);return t}peek(e){return d(this,r).substring(d(this,a),d(this,a)+e)}line(){const e=this.rest(),t=e.indexOf("\n");return e.substring(0,-1===t?e.length:t+1)}rest(){return d(this,r).substring(d(this,a),d(this,u))}substring(e,t){return d(this,r).substring(e,t)}eof(){return d(this,a)>=d(this,u)}offset(){return d(this,a)}endOffset(){return d(this,u)}resetOffset(e){l(this,a,e)}narrow(e,t,n=!1){d(this,c).push({prevLeft:d(this,s),prevRight:d(this,u),prevOffset:d(this,a)}),l(this,s,e),l(this,u,t),n||l(this,a,e)}widen(e=!1){const t=d(this,c).pop();t&&(l(this,s,t.prevLeft),l(this,u,t.prevRight),e||l(this,a,t.prevOffset))}},r=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap},23080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(82105);t.default=function(){this.Parser=(e,t)=>r.parse(t)}},23875:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.unescapeCodeInString=t.greaterElements=t.restrictionFor=t.OrgRegexUtils=void 0;function n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}t.OrgRegexUtils=class{constructor(e){this.options=e}linkPlainRe(){return`${this.linkTypesRe()}([^\\]\\[ \t\\n()<>]+(?:\\([\\w0-9_]+\\)|([^\\W \t\\n]|/)))`}linkTypesRe(){return"("+this.options.linkTypes.map(n).join("|")+"):"}objectRe(){return new RegExp(["(?:[_^][-{(*+.,\\p{Letter}\\p{Number}])",`[*~=+_/][^${this.options.emphasisRegexpComponents.border}]`,this.linkPlainRe(),["\\[(?:","fn:","|","\\[","|","[0-9]{4}-[0-9]{2}-[0-9]{2}","|","[0-9]*(?:%|/[0-9]*)\\]",")"].join(""),"@@","\\{\\{\\{",`<(?:%%|<|[0-9]|${this.linkTypesRe()})`,"\\$","\\\\(?:[a-zA-Z\\[\\(]|\\\\[ \\t]*$|_ +)","(?:call|src)_"].join("|"),"mu")}listItemRe(){return new RegExp("^(?<indent> *)(\\*|-|\\+|\\d+\\.|\\d+\\)|\\w\\.|\\w\\))( |\\n)")}fullListItemRe(){return/^(?<indent>[ \t]*)(?<bullet>(?:[-+*]|(?:[0-9]+|[A-Za-z])[.)])(?:[ \t]+|$))(?<counter_group>\[@(?:start:)?(?<counter>[0-9]+|[A-Za-z])\][ \t]*)?(?<checkbox_group>(?<checkbox>\[[ X-]\])(?:[ \t]+|$))?(?:(?<tag>.*?)[ \t]+::(?:[ \t]+|$))?/im}listEndRe(){return/^[ \t]*\n[ \t]*\n/m}paragraphSeparateRe(){const e=`[${[")","."].join("")}]`;return new RegExp(["^(?:",["\\*+ ","\\[fn:[-_\\w]+\\]","%%\\(","[ \\t]*(?:"+["$","\\|","\\+(?:-+\\+)+[ \t]*$","#(?: |$|\\+(?:begin_\\S+|\\S+(?:\\[.*\\])?:[ \\t]*))",":(?: |$|[-_\\w]+:[ \\t]*$)","-{5,}[ \\t]*$","\\\\begin\\{([A-Za-z0-9*]+)\\}","CLOCK:",`(?:[-+*]|(?:[0-9]+|[A-Za-z])${e})(?:[ \\t]|$)`].join("|")+")"].join("|"),")"].join(""),"mi")}subsuperscriptRe(){return new RegExp(`(\\S)([_^])((?:${e("\\{","\\}",this.options.matchSexpDepth,"inBraces")})|(?:${e("\\(","\\)",this.options.matchSexpDepth,"inBrackets")})|(?:\\*|[+-]?[\\p{L}\\d.,\\\\]*(?:\\p{L}|\\d)))`,"u");function e(e,t,n,r=""){const i=`[^${e}${t}]*?`;let o=`(?:${i}${e}${i}${t})+${i}`,a=i;for(let s=1;s<n;s++)a=`${a}|${o}`,o=`(?:${i}${e}${o}${t})+${i}`;return`${e}(${r?`?<${r}>`:""}${a})${t}`}}emphRe(){return this.emphTemplate("*/_+")}verbatimRe(){return this.emphTemplate("=~")}emphTemplate(e){const{pre:t,post:n,border:r,newline:i,body:o}=this.options.emphasisRegexpComponents;return new RegExp([`([${t}]|^)`,`(([${e}])([^${r}]|[^${r}]${i<=0?o:`${o}*?(?:\\n${o}*?){0,${i}}`}[^${r}])\\3)`,`([${n}]|$)`].join(""))}},t.restrictionFor=function(e){const t=new Set(["bold","code","entity","export-snippet","footnote-reference","inline-babel-call","inline-src-block","italic","line-break","latex-fragment","link","macro","radio-target","statistics-cookie","strike-through","subscript","superscript","table-cell","target","timestamp","underline","verbatim"]),n=new Set(["bold","code","entity","italic","latex-fragment","strike-through","subscript","superscript","underline","verbatim"]),r=new Set(t);r.delete("table-cell");const i=new Set(r);i.delete("line-break");const o=new Set(r);return o.delete("footnote-reference"),{bold:r,"footnote-reference":r,headline:i,inlinetask:i,italic:r,"list-item":i,keyword:o,link:new Set(["export-snippet","inline-babel-call","inline-src-block","macro","statistics-cookie",...n]),paragraph:r,"radio-target":n,"strike-through":r,subscript:r,superscript:r,"table-cell":new Set(["export-snippet","footnote-reference","link","macro","radio-target","target","timestamp",...n]),"table-row":new Set(["table-cell"]),underline:r,"verse-block":r}[e]},t.greaterElements=new Set(["center-block","drawer","dynamic-block","footnote-definition","inlinetask","list-item","plain-list","property-drawer","quote-block","section","special-block","table"]),t.unescapeCodeInString=function(e){return e.replace(/^[ \t]*,(,*)(\*|#\+)/gm,"$1$2")},t.escapeRegExp=n},42728:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(10559));e.exports=r.default},65126:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.orgToHast=void 0;const i=r(n(50914)),o=r(n(31742)),a={imageFilenameExtensions:["png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm","pnm","svg"],useSections:!1,footnotesSection:e=>[u(null,"h1",{},"Footnotes:"),...e]},s=new Set(["article","aside","audio","canvas","details","figcaption","figure","footer","header","menu","meter","nav","output","progress","section","summary","video"]);function u(e,t,n,r){var i;const a=o.default(t,n||{},r||[]),s=null===(i=null===e||void 0===e?void 0:e.data)||void 0===i?void 0:i.hProperties;return s&&(a.properties=Object.assign({},a.properties,s)),a}t.orgToHast=function(e,t={}){const n=Object.assign(Object.assign({},a),t),r={footnotesOrder:[],footnotes:{}};return function e(o){var a;if(Array.isArray(o))return o.map(e).filter((e=>null!==e&&void 0!==e)).flatMap((e=>Array.isArray(e)?e:[e]));const l=o;switch(l.type){case"org-data":const o=e(l.children),d=r.footnotesOrder.map(((t,n)=>{const i=r.footnotes[t];return i?u(l,"div",{className:"footnote-definition"},[u(null,"sup",{},u(null,"a",{className:"footnum",id:`fn.${n+1}`,href:`#fnr.${n+1}`,role:"doc-backlink"},String(n+1))),u(l,"div",{className:"footdef",role:"doc-footnote"},e(i.children))]):null})).filter((e=>null!==e));return 0!==d.length&&(t.useSections?o.push(u(null,"section",{},n.footnotesSection(d))):o.push(...n.footnotesSection(d))),{type:"root",children:o};case"section":{const t=l.children[0];if(t.commented||t.tags.includes("noexport"))return null;const r=e(l.children);return n.useSections?u(l,"section",{class:`section-level-${t.level}`},r):r}case"headline":{const t=(e,t)=>e.flatMap((e=>[t,e])).slice(1),n=l.todoKeyword?[u(l,"span",{className:["todo-keyword",l.todoKeyword]},l.todoKeyword)," "]:null,r=l.priority?[u(l,"span",{className:["priority",`priority-${l.priority}`]},`[${l.priority}]`)," "]:null,o=l.tags.length?[i.default("text",{value:"\xa0\xa0\xa0"}),u(l,"span.tags",{},t(l.tags.map((e=>u(l,"span.tag",{className:`tag-${e}`},e))),"\xa0"))]:null;return u(l,`h${l.level}`,{},[n,r,e(l.children),o].filter((e=>e)))}case"plain-list":return"unordered"===l.listType?u(l,"ul",{},e(l.children)):"ordered"===l.listType?u(l,"ol",{},e(l.children)):u(l,"dl",{},e(l.children));case"list-item":return"list-item-tag"===(null===(a=l.children[0])||void 0===a?void 0:a.type)?[u(l,"dt",{},e(l.children[0].children)),u(l,"dd",{},e(l.children.slice(1)))]:u(l,"li",{},e(l.children));case"quote-block":return u(l,"blockquote",{},e(l.children));case"src-block":return u(l,"pre.src-block",{},u(l,"code",{className:l.language?`language-${l.language}`:void 0},c(l.value)));case"verse-block":return u(l,"pre.verse",{},e(l.children));case"center-block":return u(l,"div.center",{},e(l.children));case"comment-block":return null;case"example-block":return u(l,"div.exampe",{},l.value);case"export-block":return"html"===l.backend?i.default("raw",l.value):null;case"special-block":return s.has(l.blockType)?u(l,l.blockType,e(l.children)):u(l,"div",{className:["special-block",`block-${l.blockType}`]},e(l.children));case"keyword":return"HTML"===l.key?i.default("raw",l.value):null;case"horizontal-rule":return u(l,"hr",{});case"diary-sexp":return null;case"footnote-reference":let f=0,h="";if("inline"===l.footnoteType)f=r.footnotesOrder.length,r.footnotesOrder.push(f),r.footnotes[f]=l,h=`fnr.${f+1}`;else{if("standard"!==l.footnoteType)throw new Error(`unknown footnoteType: ${l.footnoteType}`);f=r.footnotesOrder.findIndex((e=>e===l.label)),-1===f&&(f=r.footnotesOrder.length,r.footnotesOrder.push(l.label),h=`fnr.${f+1}`)}return u(null,"sup",{},u(l,"a",{href:`#fn.${f+1}`,className:["footref"],id:h,role:"doc-backlink"},String(f+1)));case"footnote-definition":return r.footnotes[l.label]=l,null;case"paragraph":return u(l,"p",{},e(l.children));case"bold":return u(l,"strong",{},e(l.children));case"italic":return u(l,"em",{},e(l.children));case"superscript":return u(l,"sup",{},e(l.children));case"subscript":return u(l,"sub",{},e(l.children));case"code":return u(l,"code.inline-code",{},l.value);case"verbatim":return u(l,"code.inline-verbatim",{},l.value);case"strike-through":return u(l,"del",{},e(l.children));case"underline":return u(l,"span.underline",{style:"text-decoration: underline;"},e(l.children));case"text":return l.value;case"link":{let t=l.rawLink;"file"===l.linkType&&(t=encodeURI(t));const r=new RegExp(`.(${n.imageFilenameExtensions.join("|")})$`);return t.match(r)?u(l,"img",{src:t}):u(l,"a",{href:t},l.children.length?e(l.children):l.rawLink)}case"timestamp":return u(l,"span.timestamp",{},l.rawValue);case"planning":case"property-drawer":case"drawer":case"comment":return null;case"fixed-width":return u(l,"pre.fixed-width",{},l.value);case"clock":return null;case"latex-environment":return u(l,"div.math.math-display",{},l.value);case"latex-fragment":return u(l,"span.math.math-inline",{},l.contents.trim());case"entity":return i.default("text",{value:l.utf8});case"table":{if("table.el"===l.tableType)return u(l,"pre.table-el",{},l.value);const t=u(l,"table",{},[]);let n=!1,r=[];return l.children.forEach((i=>{"rule"===i.rowType&&(n?t.children.push(u(l,"tbody",e(r))):(t.children.push(u(l,"thead",{},r.map((t=>u(t,"tr",{},t.children.map((t=>u(t,"th",e(t.children))))))))),n=!0),r=[]),r.push(i)})),r.length&&t.children.push(u(l,"tbody",e(r))),t}case"table-row":return"standard"===l.rowType?u(l,"tr",e(l.children)):null;case"table-cell":return u(l,"td",e(l.children));default:return l}}(e)};const c=e=>{const t=e.split(/\n/g),n=Math.min(...t.map((e=>{var t,n;return null!==(n=null===(t=e.match(/\S/))||void 0===t?void 0:t.index)&&void 0!==n?n:1/0}))),r=n===1/0?0:n;return t.map((e=>e.substring(r))).join("\n")}},10559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(65126);t.default=function(e){return function(t){return r.orgToHast(t,e)}}},77890:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniorgSlug=void 0;const i=r(n(62854)),o=r(n(69671)),a=n(29033);t.uniorgSlug=(e={})=>function(e,t){const n=new o.default;i.default(e,"section",(e=>{var t;const r=e.children[0],i=r.data=r.data||{},o=i.hProperties=i.hProperties||{};if(!o.id){const i=null!==(t=function(e){var t;const n=e.children.find((e=>"property-drawer"===e.type)),r=null===(t=null===n||void 0===n?void 0:n.children)||void 0===t?void 0:t.find((e=>"node-property"===e.type&&"CUSTOM_ID"===e.key));return null===r||void 0===r?void 0:r.value}(e))&&void 0!==t?t:n.slug(a.toString(r));o.id=i}}))},t.default=t.uniorgSlug},50914:function(e){"use strict";e.exports=function(e,t,n){var r;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!==n&&void 0!==n&&(r.value=String(n));return r}},33262:function(e,t,n){"use strict";var r=n(48145);e.exports=function(e,t,n){var i,o,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");i=e.children,a=i.length,t&&t.type&&(t=i.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(o=i[t],s(o,t,e))return o;return null}},61744:function(e){"use strict";e.exports=function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}},48145:function(e){"use strict";function t(e){if(null==e)return n;if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"===typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r<e.length;)n[r]=t(e[r]);return i;function i(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(e):function(e){return t;function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(){return!0}e.exports=t},77361:function(e){"use strict";var t=i("start"),n=i("end");function r(e){return{start:t(e),end:n(e)}}function i(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},75432:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"===typeof e||(e={}),i(e.line)+":"+i(e.column)}function r(e){return e&&"object"===typeof e||(e={}),n(e.start)+"-"+n(e.end)}function i(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return r(e.position);if(t.call(e,"start")||t.call(e,"end"))return r(e);if(t.call(e,"line")||t.call(e,"column"))return n(e);return""}},66750:function(e){e.exports=function(e){return e}},99294:function(e,t,n){"use strict";e.exports=u;var r=n(48145),i=n(66750),o=!0,a="skip",s=!1;function u(e,t,n,u){var c,l;"function"===typeof t&&"function"!==typeof n&&(u=n,n=t,t=null),l=r(t),c=u?-1:1,function e(r,d,f){var h,p="object"===typeof r&&null!==r?r:{};"string"===typeof p.type&&(h="string"===typeof p.tagName?p.tagName:"string"===typeof p.name?p.name:void 0,m.displayName="node ("+i(p.type+(h?"<"+h+">":""))+")");return m;function m(){var i,h,p=f.concat(r),m=[];if((!t||l(r,d,f[f.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[o,e];return[e]}(n(r,f)))[0]===s)return m;if(r.children&&m[0]!==a)for(h=(u?r.children.length:-1)+c;h>-1&&h<r.children.length;){if((i=e(r.children[h],h,p)())[0]===s)return i;h="number"===typeof i[1]?i[1]:h+c}return m}}(e,null,[])()}u.CONTINUE=true,u.SKIP=a,u.EXIT=s},62854:function(e,t,n){"use strict";e.exports=s;var r=n(99294),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(e,t,n,i){"function"===typeof t&&"function"!==typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},7520:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}!function(e){e.Undo="UNDO",e.Redo="REDO",e.Set="SET",e.Reset="RESET"}(r||(r={}));var a={past:[],present:null,future:[]},s=function(e,t){var n=e.past,i=e.present,o=e.future;switch(t.type){case r.Undo:if(0===n.length)return e;var a=n[n.length-1];return{past:n.slice(0,n.length-1),present:a,future:[i].concat(o)};case r.Redo:if(0===o.length)return e;var s=o[0],u=o.slice(1);return{past:[].concat(n,[i]),present:s,future:u};case r.Set:var c=t.newPresent;return c===i?e:{past:[].concat(n,[i]),present:c,future:[]};case r.Reset:return{past:[],present:t.newPresent,future:[]}}};t.Z=function(e){var t=(0,i.useReducer)(s,o({},a,{present:e})),n=t[0],u=t[1],c=0!==n.past.length,l=0!==n.future.length,d=(0,i.useCallback)((function(){c&&u({type:r.Undo})}),[c]),f=(0,i.useCallback)((function(){l&&u({type:r.Redo})}),[l]);return[n,{set:(0,i.useCallback)((function(e){return u({type:r.Set,newPresent:e})}),[]),reset:(0,i.useCallback)((function(e){return u({type:r.Reset,newPresent:e})}),[]),undo:d,redo:f,canUndo:c,canRedo:l}]}},14787:function(e){"use strict";e.exports=function(e){var t=String(e),n=[],r=/\r?\n|\r/g;for(;r.exec(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toPosition:i,toOffset:function(e){var t,r=e&&e.line,i=e&&e.column;isNaN(r)||isNaN(i)||!(r-1 in n)||(t=(n[r-2]||0)+i-1||0);return t>-1&&t<n[n.length-1]?t:-1}};function i(e){var t=-1;if(e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}}},80734:function(e,t,n){"use strict";var r=n(75432);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"===typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),i=n(54228),o=n(48738);e.exports=u;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function u(e){var t,n;if(e){if("string"===typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=i.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function c(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}u.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(u.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(u.prototype,"dirname",{get:function(){return"string"===typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(u.prototype,"basename",{get:function(){return"string"===typeof this.path?r.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(u.prototype,"extname",{get:function(){return"string"===typeof this.path?r.extname(this.path):void 0},set:function(e){if(c(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(u.prototype,"stem",{get:function(){return"string"===typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},65905:function(e,t,n){"use strict";var r=n(80734),i=n(45442);e.exports=i,i.prototype.message=function(e,t,n){var i=new r(e,t,n);this.path&&(i.name=this.path+":"+i.name,i.file=this.path);return i.fatal=!1,this.messages.push(i),i},i.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},i.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},28064:function(e,t){"use strict";function n(e){var t,n;return r(e),t=47===e.charCodeAt(0),(n=function(e,t){var n,r,i="",o=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=u,s=0;continue}}else if(i.length){i="",o=0,a=u,s=0;continue}t&&(i=i.length?i+"/..":"..",o=2)}else i.length?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,i,o,a,s=0,u=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else u<0&&(o=!0,u=n+1);return u<0?"":e.slice(s,u)}if(t===e)return"";i=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(o){s=n+1;break}}else i<0&&(o=!0,i=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(u=n):(a=-1,u=i));s===u?u=i:u<0&&(u=e.length);return e.slice(s,u)},t.dirname=function(e){var t,n,i;if(r(e),!e.length)return".";t=-1,i=e.length;for(;--i;)if(47===e.charCodeAt(i)){if(n){t=i;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,i,o=-1,a=0,s=-1,u=0;r(e),i=e.length;for(;i--;)if(47!==(n=e.charCodeAt(i)))s<0&&(t=!0,s=i+1),46===n?o<0?o=i:1!==u&&(u=1):o>-1&&(u=-1);else if(t){a=i+1;break}if(o<0||s<0||0===u||1===u&&o===s-1&&o===a+1)return"";return e.slice(o,s)},t.join=function(){var e,t=-1;for(;++t<arguments.length;)r(arguments[t]),arguments[t]&&(e=void 0===e?arguments[t]:e+"/"+arguments[t]);return void 0===e?".":n(e)},t.sep="/"},54228:function(e,t){"use strict";t.cwd=function(){return"/"}},22663:function(e){function t(e){return e}e.exports=function(e,n){if(null==e)return e;var r=(n=n||{}).width||50,i="string"===typeof n.indent?n.indent:" ",o=n.newline||"\n"+i,a="function"===typeof n.escape?n.escape:t,s=".{1,"+r+"}";!0!==n.cut&&(s+="([\\s\u200b]+|$)|[^\\s\u200b]+?([\\s\u200b]+|$)");var u=new RegExp(s,"g"),c=i+(e.match(u)||[]).map((function(e){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),a(e)})).join(o);return!0===n.trim&&(c=c.replace(/[ \t]*$/gm,"")),c}},47529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},56586:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},30266:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},10219:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},80318:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16988);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},83789:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(56586);var i=n(16988);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},16988:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(56586);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},76947:function(e){"use strict";e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},99640:function(e){"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},92471:function(e){"use strict";e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},70006:function(e){"use strict";e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')}}]);
|